e9ef43819b8dc4acab88d0f9475c8451e708426f
[gnulib.git] / ChangeLog
1 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         gnulib-tool: Make caching optional.
4         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
5         Update matching short versions of --no-changelog.
6         (func_usage): Update.
7         (sed_extract_cache_prog): Renamed from ...
8         (sed_extract_prog): ... this; revert to old extraction script.
9         (func_get_description, func_get_status)
10         (func_get_notice, func_get_applicability, func_get_filelist)
11         (func_get_dependencies, func_get_autoconf_early_snippet)
12         (func_get_autoconf_snippet, func_get_automake_snippet)
13         (func_get_include_directive, func_get_link_directive)
14         (func_get_license, func_get_maintainer): If $do_cache is false,
15         use old, non-caching extraction scripts.
16         Suggestion by Bruno Haible.
17
18 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19
20         gnulib-tool: cache module metainformation.
21         * gnulib-tool (sed_extract_prog): Match newline before each
22         header, and rewrite header to a shell variable suffix.
23         (func_cache_var, func_cache_lookup_module): New functions,
24         to turn a module name into a cache variable prefix, and to
25         look up and cache module metainformation.
26         (func_get_description, func_get_status)
27         (func_get_notice, func_get_applicability, func_get_filelist)
28         (func_get_dependencies, func_get_autoconf_early_snippet)
29         (func_get_autoconf_snippet, func_get_automake_snippet)
30         (func_get_include_directive, func_get_link_directive)
31         (func_get_license, func_get_maintainer): Use
32         func_cache_lookup_module.
33
34 2010-02-07  Bruno Haible  <bruno@clisp.org>
35
36         fnctl: Fix missing dependency.
37         * modules/fcntl (Depends-on): Add getdtablesize.
38         Reported by John W. Eaton <jwe@gnu.org>.
39
40 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
41
42         Argp: fix recognition of short alias options.
43
44         * lib/argp-parse.c (convert_options): Fix improper use of
45         `|' between character values.
46         * tests/test-argp.c (group1_option): New alias option
47         --read (-r).
48         (group1_parser): Special handling for 'r'.
49         (test15): New test case.
50         (test_fun): Add test15.
51         * tests/test-argp-2.sh: Update expected --help and --usage
52         outputs.
53
54 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
55
56         * tests/test-argp.c: Fix indentation.
57
58 2010-02-04  Eric Blake  <ebb9@byu.net>
59
60         gettimeofday: expose type of second argument
61         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
62         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
63         * tests/test-gettimeofday.c: Use it to silence warning.
64         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
65         the issue.
66
67 2010-02-03  Jim Meyering  <meyering@redhat.com>
68
69         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
70         * lib/regcomp.c (TYPE_SIGNED): Define.
71         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72
73         regcomp.c: avoid a new -Wshadow warning
74         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
75
76 2010-02-01  Jim Meyering  <meyering@redhat.com>
77
78         removing useless parentheses in cpp #define directives
79         For motivation, see commit c0221df4, "define STREQ(a,b)
80         consistently, removing useless parentheses"
81         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
82         * lib/mountlist.c (MNT_IGNORE): Likewise.
83         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
84
85 2010-02-01  Eric Blake  <ebb9@byu.net>
86
87         sys_time: use link-warning
88         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
89         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
90         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
91         * modules/sys_time (Depends-on): Add warn-on-use.
92         (Makefile.am): Always build replacement.
93         (configure.ac): Update substitutions.
94         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
95         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
96         bother with SYS_TIME_H.
97         * modules/gettimeofday (configure.ac): Declare indicator.
98         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
99         in use.
100
101         closein-tests: silence compiler warning
102         * tests/test-closein.c (main): Ignore fread result.
103         * modules/closein-tests (Depends-on): Add ignore-value.
104
105         tests: silence warning about system return
106         * tests/test-areadlink-with-size.c (main): Ignore system result.
107         * tests/test-areadlink.c (main): Likewise.
108         * tests/test-areadlinkat-with-size.c (main): Likewise.
109         * tests/test-areadlinkat.c (main): Likewise.
110         * tests/test-canonicalize-lgpl.c (main): Likewise.
111         * tests/test-canonicalize.c (main): Likewise.
112         * tests/test-chown.c (main): Likewise.
113         * tests/test-fchownat.c (main): Likewise.
114         * tests/test-fdutimensat.c (main): Likewise.
115         * tests/test-fstatat.c (main): Likewise.
116         * tests/test-futimens.c (main): Likewise.
117         * tests/test-lchown.c (main): Likewise.
118         * tests/test-link.c (main): Likewise.
119         * tests/test-linkat.c (main): Likewise.
120         * tests/test-lstat.c (main): Likewise.
121         * tests/test-mkdir.c (main): Likewise.
122         * tests/test-mkdirat.c (main): Likewise.
123         * tests/test-mkfifo.c (main): Likewise.
124         * tests/test-mkfifoat.c (main): Likewise.
125         * tests/test-mknod.c (main): Likewise.
126         * tests/test-readlink.c (main): Likewise.
127         * tests/test-remove.c (main): Likewise.
128         * tests/test-rename.c (main): Likewise.
129         * tests/test-renameat.c (main): Likewise.
130         * tests/test-rmdir.c (main): Likewise.
131         * tests/test-symlink.c (main): Likewise.
132         * tests/test-symlinkat.c (main): Likewise.
133         * tests/test-unlink.c (main): Likewise.
134         * tests/test-unlinkat.c (main): Likewise.
135         * tests/test-utimens.c (main): Likewise.
136         * tests/test-utimensat.c (main): Likewise.
137         * modules/areadlink-tests (Depends-on): Add ignore-value.
138         * modules/areadlink-with-size-tests (Depends-on): Likewise.
139         * modules/areadlinkat-tests (Depends-on): Likewise.
140         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
141         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
142         * modules/canonicalize-tests (Depends-on): Likewise.
143         * modules/chown-tests (Depends-on): Likewise.
144         * modules/fdutimensat-tests (Depends-on): Likewise.
145         * modules/futimens-tests (Depends-on): Likewise.
146         * modules/lchown-tests (Depends-on): Likewise.
147         * modules/link-tests (Depends-on): Likewise.
148         * modules/linkat-tests (Depends-on): Likewise.
149         * modules/lstat-tests (Depends-on): Likewise.
150         * modules/mkdir-tests (Depends-on): Likewise.
151         * modules/mkfifo-tests (Depends-on): Likewise.
152         * modules/mkfifoat-tests (Depends-on): Likewise.
153         * modules/mknod-tests (Depends-on): Likewise.
154         * modules/openat-tests (Depends-on): Likewise.
155         * modules/readlink-tests (Depends-on): Likewise.
156         * modules/remove-tests (Depends-on): Likewise.
157         * modules/rename-tests (Depends-on): Likewise.
158         * modules/renameat-tests (Depends-on): Likewise.
159         * modules/rmdir-tests (Depends-on): Likewise.
160         * modules/symlink-tests (Depends-on): Likewise.
161         * modules/symlinkat-tests (Depends-on): Likewise.
162         * modules/unlink-tests (Depends-on): Likewise.
163         * modules/utimens-tests (Depends-on): Likewise.
164         * modules/utimensat-tests (Depends-on): Likewise.
165
166 2010-01-31  Bruno Haible  <bruno@clisp.org>
167
168         Perform the same test for many <math.h> functions.
169         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
170         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
171         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
172         of gl_MATHFUNC.
173         * modules/acos (configure.ac): Likewise.
174         * modules/asin (configure.ac): Likewise.
175         * modules/atan (configure.ac): Likewise.
176         * modules/atan2 (configure.ac): Likewise.
177         * modules/cbrt (configure.ac): Likewise.
178         * modules/copysign (configure.ac): Likewise.
179         * modules/cos (configure.ac): Likewise.
180         * modules/cosh (configure.ac): Likewise.
181         * modules/erf (configure.ac): Likewise.
182         * modules/erfc (configure.ac): Likewise.
183         * modules/exp (configure.ac): Likewise.
184         * modules/fmod (configure.ac): Likewise.
185         * modules/hypot (configure.ac): Likewise.
186         * modules/j0 (configure.ac): Likewise.
187         * modules/j1 (configure.ac): Likewise.
188         * modules/jn (configure.ac): Likewise.
189         * modules/lgamma (configure.ac): Likewise.
190         * modules/log (configure.ac): Likewise.
191         * modules/log10 (configure.ac): Likewise.
192         * modules/log1p (configure.ac): Likewise.
193         * modules/pow (configure.ac): Likewise.
194         * modules/remainder (configure.ac): Likewise.
195         * modules/sin (configure.ac): Likewise.
196         * modules/sinh (configure.ac): Likewise.
197         * modules/tan (configure.ac): Likewise.
198         * modules/tanh (configure.ac): Likewise.
199         * modules/y0 (configure.ac): Likewise.
200         * modules/y1 (configure.ac): Likewise.
201         * modules/yn (configure.ac): Likewise.
202         Suggested by Paolo Bonzini.
203
204 2010-01-31  Bruno Haible  <bruno@clisp.org>
205
206         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
207
208 2010-01-31  Bruno Haible  <bruno@clisp.org>
209
210         Work around getdelim() bug on FreeBSD 8.0.
211         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
212         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
213         not work.
214         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
215         is 1.
216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
217         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
218         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
219         a non-zero size.
220         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
221
222 2010-01-31  Bruno Haible  <bruno@clisp.org>
223
224         Work around getline() bug on FreeBSD 8.0.
225         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
226         and a non-zero size.
227         * tests/test-getline.c (main): Likewise.
228         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
229         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
230
231 2010-01-28  Eric Blake  <ebb9@byu.net>
232
233         regex: fix build failure
234         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
235         platforms.
236
237 2010-01-28  Jim Meyering  <meyering@redhat.com>
238
239         regex: do not ignore memory allocation failure
240         * lib/regex_internal.c (create_cd_newstate): Detect
241         re_node_set_init_copy failure.   Extracted from glibc commit
242         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
243
244         regex: sync more white-space changes from libc
245         * lib/regex_internal.c: White-space only changes.
246         * lib/regexec.c: Likewise.
247
248         regex: add many uses of __attribute_warn_unused_result__
249         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
250         * lib/regexec.c: Likewise.
251         Extracted from a messy glibc commit.
252
253         regcomp.c: spelling and merge-artifact from glibc
254         * lib/regcomp.c: Merge remainder of glibc's
255         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
256
257         regcomp.c: sync white-space changes from glibc
258         * lib/regcomp.c: Merge to accommodate white space
259         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
260
261         regcomp.c: do not ignore internal return values
262         * lib/regcomp.c: Do not ignore internal return values.
263         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
264         but without its white-space changes and spelling fixes.
265
266         regex_internal.h: define __attribute_warn_unused_result__
267         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
268
269         maint: add a syntax-check rule to check for vulnerable Makefile.in
270         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
271
272 2010-01-27  Jim Meyering  <meyering@redhat.com>
273
274         ncftpput-ftp: clean up spaces
275         * build-aux/ncftpput-ftp: Make Copyright line consistent.
276         Remove trailing blanks.
277
278 2010-01-27  Simon Josefsson  <simon@josefsson.org>
279
280         * build-aux/git-version-gen: Fix copyright statement.
281         * build-aux/gnupload: Likewise.
282         * tests/test-arcfour.c: Likewise.
283         * tests/test-arctwo.c: Likewise.
284         * tests/test-count-one-bits.c: Likewise.
285         * tests/test-crc.c: Likewise.
286         * tests/test-des.c: Likewise.
287         * tests/test-gc-arcfour.c: Likewise.
288         * tests/test-gc-arctwo.c: Likewise.
289         * tests/test-gc-des.c: Likewise.
290         * tests/test-gc-hmac-md5.c: Likewise.
291         * tests/test-gc-hmac-sha1.c: Likewise.
292         * tests/test-gc-md2.c: Likewise.
293         * tests/test-gc-md4.c: Likewise.
294         * tests/test-gc-md5.c: Likewise.
295         * tests/test-gc-pbkdf2-sha1.c: Likewise.
296         * tests/test-gc-rijndael.c: Likewise.
297         * tests/test-gc-sha1.c: Likewise.
298         * tests/test-gc.c: Likewise.
299         * tests/test-gethostname.c: Likewise.
300         * tests/test-gettimeofday.c: Likewise.
301         * tests/test-hash.c: Likewise.
302         * tests/test-hmac-md5.c: Likewise.
303         * tests/test-hmac-sha1.c: Likewise.
304         * tests/test-md2.c: Likewise.
305         * tests/test-md4.c: Likewise.
306         * tests/test-md5.c: Likewise.
307         * tests/test-memchr.c: Likewise.
308         * tests/test-memchr2.c: Likewise.
309         * tests/test-memcmp.c: Likewise.
310         * tests/test-memmem.c: Likewise.
311         * tests/test-memrchr.c: Likewise.
312         * tests/test-rawmemchr.c: Likewise.
313         * tests/test-read-file.c: Likewise.
314         * tests/test-rijndael.c: Likewise.
315         * tests/test-sockets.c: Likewise.
316         * tests/test-strchrnul.c: Likewise.
317         * tests/test-strstr.c: Likewise.
318         * tests/test-strtod.c: Likewise.
319         * build-aux/ncftpput-ftp: Likewise.
320
321 2010-01-26  Eric Blake  <ebb9@byu.net>
322
323         ignore-value: update recommended header name
324         * modules/ignore-value (Include): Only use <> for headers that
325         exist in glibc.
326
327 2010-01-26  Jim Meyering  <meyering@redhat.com>
328
329         test-userspec.c: avoid compiler warnings
330         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
331         and "initialization discards qualifiers..." warnings.
332         Put the first "uid" in its own scope, and make char* members "const".
333
334 2010-01-25  Bruno Haible  <bruno@clisp.org>
335
336         gnulib-tool: Make warning diagnostics consistent.
337         * gnulib-tool (func_warning): New function.
338         Use it everywhere where gnulib-tool produces output to stderr and it is
339         not a fatal error.
340
341 2010-01-25  Bruno Haible  <bruno@clisp.org>
342
343         Fix test dependencies.
344         * modules/xstrtol-tests (Depends-on): Add inttypes.
345         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
346
347 2010-01-25 Pádraig Brady <P@draigBrady.com>
348
349         syntax-check: detect incorrect boolean macro values in config.h
350         * modules/maintainer-makefile (configure.ac): Parameterize the location
351         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
352         The logic is from Eric Blake and the location indicated by Jim Meyering.
353         Note the more natural CONFIG_HEADER name is prohibited by automake
354         for backwards compatibility reasons.
355         * top/maint.mk (sc_Wundef_boolean): New rule.
356
357 2010-01-25  Jim Meyering  <meyering@redhat.com>
358
359         bootstrap: detect MacOS 10.6's shasum, too
360         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
361         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
362
363 2010-01-23  Jim Meyering  <meyering@redhat.com>
364
365         xstrtoll: new module
366         * modules/xstrtoll: New file.
367         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
368         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
369         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
370         ./configure fails if you use this module and lack "long long".
371         * modules/xstrtoll-tests: New module.
372         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
373         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
374         new init.sh-based test framework.
375
376 2010-01-24  Bruno Haible  <bruno@clisp.org>
377
378         Tests for module 'yn'.
379         * modules/yn-tests: New file.
380         * tests/test-yn.c: New file.
381
382         Tests for module 'y1'.
383         * modules/y1-tests: New file.
384         * tests/test-y1.c: New file.
385
386         Tests for module 'y0'.
387         * modules/y0-tests: New file.
388         * tests/test-y0.c: New file.
389
390         Tests for module 'tanh'.
391         * modules/tanh-tests: New file.
392         * tests/test-tanh.c: New file.
393
394         Tests for module 'tan'.
395         * modules/tan-tests: New file.
396         * tests/test-tan.c: New file.
397
398         Tests for module 'sqrt'.
399         * modules/sqrt-tests: New file.
400         * tests/test-sqrt.c: New file.
401
402         Tests for module 'sinh'.
403         * modules/sinh-tests: New file.
404         * tests/test-sinh.c: New file.
405
406         Tests for module 'sin'.
407         * modules/sin-tests: New file.
408         * tests/test-sin.c: New file.
409
410         Tests for module 'rint'.
411         * modules/rint-tests: New file.
412         * tests/test-rint.c: New file.
413
414         Tests for module 'remainder'.
415         * modules/remainder-tests: New file.
416         * tests/test-remainder.c: New file.
417
418         Tests for module 'pow'.
419         * modules/pow-tests: New file.
420         * tests/test-pow.c: New file.
421
422         Tests for module 'nextafter'.
423         * modules/nextafter-tests: New file.
424         * tests/test-nextafter.c: New file.
425
426         Tests for module 'modf'.
427         * modules/modf-tests: New file.
428         * tests/test-modf.c: New file.
429
430         Tests for module 'logb'.
431         * modules/logb-tests: New file.
432         * tests/test-logb.c: New file.
433
434         Tests for module 'log1p'.
435         * modules/log1p-tests: New file.
436         * tests/test-log1p.c: New file.
437
438         Tests for module 'log10'.
439         * modules/log10-tests: New file.
440         * tests/test-log10.c: New file.
441
442         Tests for module 'log'.
443         * modules/log-tests: New file.
444         * tests/test-log.c: New file.
445
446         Tests for module 'lgamma'.
447         * modules/lgamma-tests: New file.
448         * tests/test-lgamma.c: New file.
449
450         Tests for module 'ldexp'.
451         * modules/ldexp-tests: New file.
452         * tests/test-ldexp.c: New file.
453
454         Tests for module 'jn'.
455         * modules/jn-tests: New file.
456         * tests/test-jn.c: New file.
457
458         Tests for module 'j1'.
459         * modules/j1-tests: New file.
460         * tests/test-j1.c: New file.
461
462         Tests for module 'j0'.
463         * modules/j0-tests: New file.
464         * tests/test-j0.c: New file.
465
466         Tests for module 'hypot'.
467         * modules/hypot-tests: New file.
468         * tests/test-hypot.c: New file.
469
470         Tests for module 'fmod'.
471         * modules/fmod-tests: New file.
472         * tests/test-fmod.c: New file.
473
474         Tests for module 'fabs'.
475         * modules/fabs-tests: New file.
476         * tests/test-fabs.c: New file.
477
478         Tests for module 'exp'.
479         * modules/exp-tests: New file.
480         * tests/test-exp.c: New file.
481
482         Tests for module 'erfc'.
483         * modules/erfc-tests: New file.
484         * tests/test-erfc.c: New file.
485
486         Tests for module 'erf'.
487         * modules/erf-tests: New file.
488         * tests/test-erf.c: New file.
489
490         Tests for module 'cosh'.
491         * modules/cosh-tests: New file.
492         * tests/test-cosh.c: New file.
493
494         Tests for module 'cos'.
495         * modules/cos-tests: New file.
496         * tests/test-cos.c: New file.
497
498         Tests for module 'copysign'.
499         * modules/copysign-tests: New file.
500         * tests/test-copysign.c: New file.
501
502         Tests for module 'cbrt'.
503         * modules/cbrt-tests: New file.
504         * tests/test-cbrt.c: New file.
505
506         Tests for module 'atan2'.
507         * modules/atan2-tests: New file.
508         * tests/test-atan2.c: New file.
509
510         Tests for module 'atan'.
511         * modules/atan-tests: New file.
512         * tests/test-atan.c: New file.
513
514         Tests for module 'asin'.
515         * modules/asin-tests: New file.
516         * tests/test-asin.c: New file.
517
518         Tests for module 'acos'.
519         * modules/acos-tests: New file.
520         * tests/test-acos.c: New file.
521
522 2010-01-24  Bruno Haible  <bruno@clisp.org>
523
524         Fix tests for common <math.h> functions.
525         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
526         code snippet that references the function pointer, rather than merely
527         calling the function. Substitute the FUNC_LIBM variable.
528         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
529         * modules/acos (configure.ac): Likewise.
530         * modules/asin (configure.ac): Likewise.
531         * modules/atan (configure.ac): Likewise.
532         * modules/atan2 (configure.ac): Likewise.
533         * modules/cbrt (configure.ac): Likewise.
534         * modules/copysign (configure.ac): Likewise.
535         * modules/cos (configure.ac): Likewise.
536         * modules/cosh (configure.ac): Likewise.
537         * modules/erf (configure.ac): Likewise.
538         * modules/erfc (configure.ac): Likewise.
539         * modules/exp (configure.ac): Likewise.
540         * modules/fabs (configure.ac): Likewise.
541         * modules/fmod (configure.ac): Likewise.
542         * modules/hypot (configure.ac): Likewise.
543         * modules/j0 (configure.ac): Likewise.
544         * modules/j1 (configure.ac): Likewise.
545         * modules/jn (configure.ac): Likewise.
546         * modules/ldexp (configure.ac): Likewise.
547         * modules/lgamma (configure.ac): Likewise.
548         * modules/log (configure.ac): Likewise.
549         * modules/log10 (configure.ac): Likewise.
550         * modules/log1p (configure.ac): Likewise.
551         * modules/logb (configure.ac): Likewise.
552         * modules/modf (configure.ac): Likewise.
553         * modules/nextafter (configure.ac): Likewise.
554         * modules/pow (configure.ac): Likewise.
555         * modules/remainder (configure.ac): Likewise.
556         * modules/rint (configure.ac): Likewise.
557         * modules/sin (configure.ac): Likewise.
558         * modules/sinh (configure.ac): Likewise.
559         * modules/tan (configure.ac): Likewise.
560         * modules/tanh (configure.ac): Likewise.
561         * modules/y0 (configure.ac): Likewise.
562         * modules/y1 (configure.ac): Likewise.
563         * modules/yn (configure.ac): Likewise.
564
565 2010-01-24  Bruno Haible  <bruno@clisp.org>
566
567         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
568         * tests/test-acosl.c (x): New variable.
569         (main): Store argument in x and fetch it from x.
570         * tests/test-asinl.c (x): New variable.
571         (main): Store argument in x and fetch it from x.
572         * tests/test-atanl.c (x): New variable.
573         (main): Store argument in x and fetch it from x.
574         * tests/test-cosl.c (x): New variable.
575         (main): Store argument in x and fetch it from x.
576         * tests/test-expl.c (x): New variable.
577         (main): Store argument in x and fetch it from x.
578         * tests/test-logl.c (x): New variable.
579         (main): Store argument in x and fetch it from x.
580         * tests/test-sinl.c (x): New variable.
581         (main): Store argument in x and fetch it from x.
582         * tests/test-sqrtl.c (x): New variable.
583         (main): Store argument in x and fetch it from x.
584         * tests/test-tanl.c (x): New variable.
585         (main): Store argument in x and fetch it from x.
586
587 2010-01-24  Bruno Haible  <bruno@clisp.org>
588
589         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
590         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
591         assignments to the initial TESTS_ENVIRONMENT.
592         * doc/gnulib.texi (Unit test modules): Document it.
593         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
594         TESTS_ENVIRONMENT.
595         * modules/btowc-tests (Makefile.am): Likewise.
596         * modules/c-stack-tests (Makefile.am): Likewise.
597         * modules/c-strcase-tests (Makefile.am): Likewise.
598         * modules/copy-file-tests (Makefile.am): Likewise.
599         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
600         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
601         * modules/mbrtowc-tests (Makefile.am): Likewise.
602         * modules/mbscasecmp-tests (Makefile.am): Likewise.
603         * modules/mbscasestr-tests (Makefile.am): Likewise.
604         * modules/mbschr-tests (Makefile.am): Likewise.
605         * modules/mbscspn-tests (Makefile.am): Likewise.
606         * modules/mbsinit-tests (Makefile.am): Likewise.
607         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
608         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
609         * modules/mbspbrk-tests (Makefile.am): Likewise.
610         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
611         * modules/mbsrchr-tests (Makefile.am): Likewise.
612         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
613         * modules/mbsspn-tests (Makefile.am): Likewise.
614         * modules/mbsstr-tests (Makefile.am): Likewise.
615         * modules/nl_langinfo-tests (Makefile.am): Likewise.
616         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
617         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
618         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
619         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
620         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
621         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
622         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
623         * modules/wcrtomb-tests (Makefile.am): Likewise.
624         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
625         * modules/wcsrtombs-tests (Makefile.am): Likewise.
626         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
627         assignments from TESTS_ENVIRONMENT.
628         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
629         augmentation.
630         * modules/argp-version-etc-tests (Makefile.am): Likewise.
631         * modules/atexit-tests (Makefile.am): Likewise.
632         * modules/binary-io-tests (Makefile.am): Likewise.
633         * modules/closein-tests (Makefile.am): Likewise.
634         * modules/dprintf-posix-tests (Makefile.am): Likewise.
635         * modules/exclude-tests (Makefile.am): Likewise.
636         * modules/fflush-tests (Makefile.am): Likewise.
637         * modules/fpending-tests (Makefile.am): Likewise.
638         * modules/fprintf-posix-tests (Makefile.am): Likewise.
639         * modules/freadahead-tests (Makefile.am): Likewise.
640         * modules/freadptr-tests (Makefile.am): Likewise.
641         * modules/freadseek-tests (Makefile.am): Likewise.
642         * modules/fseek-tests (Makefile.am): Likewise.
643         * modules/fseeko-tests (Makefile.am): Likewise.
644         * modules/ftell-tests (Makefile.am): Likewise.
645         * modules/ftello-tests (Makefile.am): Likewise.
646         * modules/idpriv-drop-tests (Makefile.am): Likewise.
647         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
648         * modules/lseek-tests (Makefile.am): Likewise.
649         * modules/parse-duration-tests (Makefile.am): Likewise.
650         * modules/perror-tests (Makefile.am): Likewise.
651         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
652         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
653         * modules/pipe-tests (Makefile.am): Likewise.
654         * modules/pread-tests (Makefile.am): Likewise.
655         * modules/printf-posix-tests (Makefile.am): Likewise.
656         * modules/select-tests (Makefile.am): Likewise.
657         * modules/sigpipe-tests (Makefile.am): Likewise.
658         * modules/tsearch-tests (Makefile.am): Likewise.
659         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
660         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
661         * modules/uniname/uniname-tests (Makefile.am): Likewise.
662         * modules/uniwidth/width-tests (Makefile.am): Likewise.
663         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
664         * modules/version-etc-tests (Makefile.am): Likewise.
665         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
666         * modules/vprintf-posix-tests (Makefile.am): Likewise.
667         * modules/xalloc-die-tests (Makefile.am): Likewise.
668         * modules/xprintf-posix-tests (Makefile.am): Likewise.
669         * modules/xstrtoimax-tests (Makefile.am): Likewise.
670         * modules/xstrtol-tests (Makefile.am): Likewise.
671         * modules/xstrtoumax-tests (Makefile.am): Likewise.
672         * modules/yesno-tests (Makefile.am): Likewise.
673         Suggested by Jim Meyering.
674
675 2010-01-24  Bruno Haible  <bruno@clisp.org>
676
677         More documentation.
678         * doc/gnulib.texi (Writing modules): New chapter.
679         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
680         the new chapter.
681
682 2010-01-24  Jim Meyering  <meyering@redhat.com>
683
684         maint.mk: do not prepend "./" after filtering
685         * top/maint.mk (_prepend_srcdir_prefix): New variable
686         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
687         "./" when $(srcdir) is ".".
688
689         define STREQ(a,b) consistently, removing useless parentheses
690         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
691         since the only risk is that "a" or "b" contains an unparenthesized
692         comma, but if either did that, STREQ would have 3 or more arguments.
693         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
694         * lib/fts.c (STREQ): Remove unnecessary parentheses.
695         * lib/hash-triple.c (STREQ): Likewise.
696         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
697         * lib/getugroups.c (STREQ): Likewise.
698
699 2010-01-23  Jim Meyering  <meyering@redhat.com>
700
701         maint.mk: fix syntax-check in a non-srcdir build directory
702         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
703         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
704
705 2010-01-22  Jim Meyering  <meyering@redhat.com>
706
707         userspec: add unit tests
708         * tests/test-userspec.c: New file.
709         * modules/userspec-tests: Likewise.
710
711 2010-01-21  Jim Meyering  <meyering@redhat.com>
712
713         maint.mk: handle source file names containing "." robustly
714         * top/maint.mk (_dot_escaped_srcdir): Define.
715         (VC_LIST): Use it in LHS of sed substitution.
716
717 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
718
719         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
720         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
721         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
722         from a non-srcdir build.
723
724 2010-01-20  Eric Blake  <ebb9@byu.net>
725
726         warn-on-use: use instead of link-warning
727         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
728         * modules/unistd (Depends-on, Makefile.am): Likewise.
729         * modules/arpa_inet (Depends-on): Replace link-warning with
730         warn-on-use.
731         (Makefile.am): Update rules accordingly.
732         * modules/ctype (Depends-on, Makefile.am): Likewise.
733         * modules/dirent (Depends-on, Makefile.am): Likewise.
734         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
735         * modules/inttypes (Depends-on, Makefile.am): Likewise.
736         * modules/langinfo (Depends-on, Makefile.am): Likewise.
737         * modules/locale (Depends-on, Makefile.am): Likewise.
738         * modules/math (Depends-on, Makefile.am): Likewise.
739         * modules/search (Depends-on, Makefile.am): Likewise.
740         * modules/signal (Depends-on, Makefile.am): Likewise.
741         * modules/spawn (Depends-on, Makefile.am): Likewise.
742         * modules/stdlib (Depends-on, Makefile.am): Likewise.
743         * modules/string (Depends-on, Makefile.am): Likewise.
744         * modules/strings (Depends-on, Makefile.am): Likewise.
745         * modules/sys_file (Depends-on, Makefile.am): Likewise.
746         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
747         * modules/sys_select (Depends-on, Makefile.am): Likewise.
748         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
749         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
750         * modules/sys_times (Depends-on, Makefile.am): Likewise.
751         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
752         * modules/wchar (Depends-on, Makefile.am): Likewise.
753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
754         should be poisoned.
755         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
756         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
757         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
758         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
759         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
760         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
761         * m4/math_h.m4 (gl_MATH_H): Likewise.
762         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
763         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
764         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
765         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
766         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
767         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
768         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
769         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
772         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
773         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
774         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
775         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
776         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
777         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
778         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
779         GL_LINK_WARNING.
780         * lib/ctype.in.h: Likewise.
781         * lib/dirent.in.h: Likewise.
782         * lib/fcntl.in.h: Likewise.
783         * lib/inttypes.in.h: Likewise.
784         * lib/langinfo.in.h: Likewise.
785         * lib/locale.in.h: Likewise.
786         * lib/math.in.h: Likewise.
787         * lib/search.in.h: Likewise.
788         * lib/signal.in.h: Likewise.
789         * lib/spawn.in.h: Likewise.
790         * lib/stdio.in.h: Likewise.
791         * lib/stdlib.in.h: Likewise.
792         * lib/string.in.h: Likewise.
793         * lib/strings.in.h: Likewise.
794         * lib/sys_file.in.h: Likewise.
795         * lib/sys_ioctl.in.h: Likewise.
796         * lib/sys_select.in.h: Likewise.
797         * lib/sys_socket.in.h: Likewise.
798         * lib/sys_stat.in.h: Likewise.
799         * lib/sys_times.in.h: Likewise.
800         * lib/sys_utsname.in.h: Likewise.
801         * lib/unistd.in.h: Likewise.
802         * lib/wchar.in.h: Likewise.
803
804 2010-01-20  Bruno Haible  <bruno@clisp.org>
805
806         Avoid duplicate -lm.
807         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
808         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
811         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
812         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
813         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
814         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
815         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
816         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
817         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
818         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
819         Reported by Paolo Bonzini.
820
821 2010-01-19  Bruno Haible  <bruno@clisp.org>
822
823         langinfo, nl_langinfo: Relicense under LGPLv2+.
824         * modules/langinfo (License): Change to LGPLv2+.
825         * modules/nl_langinfo (License): Likewise.
826         Patch by David Lutterkort <lutter@redhat.com>.
827
828 2010-01-19  Bruno Haible  <bruno@clisp.org>
829
830         Avoid compilation error with cc on OSF/1 5.1.
831         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
832         statement, not before.
833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
834
835 2010-01-18  Bruno Haible  <bruno@clisp.org>
836
837         Avoid a link error due to the __printf__ symbol.
838         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
839         and 2.6.x.
840         (__format__, __printf__): Remove definitions.
841         * lib/argp-fmtstream.h: Likewise.
842         * lib/argp.h: Likewise.
843         * lib/error.h: Likewise.
844         * lib/vasnprintf.h: Likewise.
845         * lib/xprintf.h: Likewise.
846         * lib/xvasprintf.h: Likewise.
847         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
848
849 2010-01-18  Bruno Haible  <bruno@clisp.org>
850
851         Tests for module 'tanl'.
852         * modules/tanl-tests: New file.
853         * tests/test-tanl.c: New file.
854
855         Tests for module 'sqrtl'.
856         * modules/sqrtl-tests: New file.
857         * tests/test-sqrtl.c: New file.
858
859         Tests for module 'sinl'.
860         * modules/sinl-tests: New file.
861         * tests/test-sinl.c: New file.
862
863         Tests for module 'logl'.
864         * modules/logl-tests: New file.
865         * tests/test-logl.c: New file.
866
867         Tests for module 'expl'.
868         * modules/expl-tests: New file.
869         * tests/test-expl.c: New file.
870
871         Tests for module 'cosl'.
872         * modules/cosl-tests: New file.
873         * tests/test-cosl.c: New file.
874
875         Tests for module 'atanl'.
876         * modules/atanl-tests: New file.
877         * tests/test-atanl.c: New file.
878
879         Tests for module 'asinl'.
880         * modules/asinl-tests: New file.
881         * tests/test-asinl.c: New file.
882
883         Tests for module 'acosl'.
884         * modules/acosl-tests: New file.
885         * tests/test-acosl.c: New file.
886
887         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
888         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
889         tanl): Use the standard gnulib idiom.
890         * lib/cosl.c: Don't include trigl.c and sincosl.c.
891         * lib/sinl.c: Likewise.
892         * lib/tanl.c: Don't include trigl.c.
893         (kernel_tanl): Make static.
894         * lib/sincosl.c: Include trigl.h first.
895         * lib/trigl.c: Likewise.
896         * m4/acosl.m4: New file.
897         * m4/asinl.m4: New file.
898         * m4/atanl.m4: New file.
899         * m4/cosl.m4: New file.
900         * m4/expl.m4: New file.
901         * m4/logl.m4: New file.
902         * m4/sinl.m4: New file.
903         * m4/sqrtl.m4: New file.
904         * m4/tanl.m4: New file.
905         * m4/mathl.m4: Remove file.
906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
907         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
908         Don't initialize GNULIB_MATHL.
909         * modules/acosl: New file.
910         * modules/asinl: New file.
911         * modules/atanl: New file.
912         * modules/cosl: New file.
913         * modules/expl: New file.
914         * modules/logl: New file.
915         * modules/sinl: New file.
916         * modules/sqrtl: New file.
917         * modules/tanl: New file.
918         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
919         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
920         substitute GNULIB_MATHL.
921         * modules/mathl: Rewritten.
922         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
923         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
924         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
925         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
926         * doc/posix-functions/expl.texi: Mention the 'expl' module.
927         * doc/posix-functions/logl.texi: Mention the 'logl' module.
928         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
929         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
930         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
931
932 2010-01-18  Bruno Haible  <bruno@clisp.org>
933
934         sqrt: Make gl_FUNC_SQRT requirable.
935         * m4/sqrt.m4: New file.
936         * modules/sqrt (Files): Add it.
937         (configure.ac): Invoke gl_FUNC_SQRT.
938
939 2010-01-18  Bruno Haible  <bruno@clisp.org>
940
941         New modules for common <math.h> functions.
942         * m4/mathfunc.m4: New file.
943         * modules/acos: New file.
944         * modules/asin: New file.
945         * modules/atan: New file.
946         * modules/atan2: New file.
947         * modules/cbrt: New file.
948         * modules/copysign: New file.
949         * modules/cos: New file.
950         * modules/cosh: New file.
951         * modules/erf: New file.
952         * modules/erfc: New file.
953         * modules/exp: New file.
954         * modules/fabs: New file.
955         * modules/fmod: New file.
956         * modules/hypot: New file.
957         * modules/j0: New file.
958         * modules/j1: New file.
959         * modules/jn: New file.
960         * modules/ldexp: New file.
961         * modules/lgamma: New file.
962         * modules/log: New file.
963         * modules/log10: New file.
964         * modules/log1p: New file.
965         * modules/logb: New file.
966         * modules/modf: New file.
967         * modules/nextafter: New file.
968         * modules/pow: New file.
969         * modules/remainder: New file.
970         * modules/rint: New file.
971         * modules/sin: New file.
972         * modules/sinh: New file.
973         * modules/sqrt: New file.
974         * modules/tan: New file.
975         * modules/tanh: New file.
976         * modules/y0: New file.
977         * modules/y1: New file.
978         * modules/yn: New file.
979         * doc/posix-functions/acos.texi: Mention the 'acos' module.
980         * doc/posix-functions/asin.texi: Mention the 'asin' module.
981         * doc/posix-functions/atan.texi: Mention the 'atan' module.
982         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
983         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
984         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
985         * doc/posix-functions/cos.texi: Mention the 'cos' module.
986         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
987         * doc/posix-functions/erf.texi: Mention the 'erf' module.
988         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
989         * doc/posix-functions/exp.texi: Mention the 'exp' module.
990         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
991         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
992         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
993         * doc/posix-functions/j0.texi: Mention the 'j0' module.
994         * doc/posix-functions/j1.texi: Mention the 'j1' module.
995         * doc/posix-functions/jn.texi: Mention the 'jn' module.
996         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
997         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
998         * doc/posix-functions/log.texi: Mention the 'log' module.
999         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1000         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1001         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1002         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1003         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1004         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1005         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1006         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1007         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1008         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1009         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1010         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1011         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1012         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1013         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1014         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1015
1016 2010-01-18  Jim Meyering  <meyering@redhat.com>
1017
1018         ignore-value: relax license to LGPLv2+
1019         * modules/ignore-value (License): Relax to LGPLv2+.
1020
1021         getdate: don't leak when TZ contains two or more '"'s
1022         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1023         double quote in TZ after the first one.
1024
1025         readtokens: do not leak internal token_lengths buffer
1026         * lib/readtokens.c (readtokens): Free the local, lengths,
1027         when the supplied "token_lengths" parameter is NULL.
1028
1029 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1030
1031         Fix a couple of missing LIBTHREAD link failures on AIX.
1032         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1033         $(LIBTHREAD).
1034         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1035
1036         Link test-poll against INET_PTON_LIB.
1037         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1038         for inet_pton on Solaris 10.
1039
1040 2010-01-17  Bruno Haible  <bruno@clisp.org>
1041
1042         unistdio/*-sprintf: Fix typo in module description.
1043         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1044         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1045         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1046         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1047         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1048         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1049         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1051
1052 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1053
1054         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1055         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1056         variables in shell case patterns, for AIX and HP-UX ksh.
1057
1058         Split large sed scripts, for HP-UX sed.
1059         * modules/stdio: Split sed scripts around 50 sed commands,
1060         to avoid HP-UX limit of 99 commands, in the near future.
1061         * modules/string: Likewise.
1062         * modules/unistd: Likewise.
1063
1064         gnulib-tool: avoid writing in the current directory.
1065         * gnulib-tool (func_emit_lib_Makefile_am)
1066         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1067         not in the current directory, so concurrent gnulib-tool
1068         instances do not interfere.
1069
1070 2010-01-16  Jim Meyering  <meyering@redhat.com>
1071
1072         doc: update users.txt
1073         * users.txt: Add grep.
1074         (diffutils, gzip): Update URLs.
1075
1076 2010-01-12  Bruno Haible  <bruno@clisp.org>
1077
1078         posix_spawn: Avoid test failure on Cygwin.
1079         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1080         characters.
1081         Reported by Simon Josefsson.
1082
1083 2010-01-12  Bruno Haible  <bruno@clisp.org>
1084
1085         * tests/test-cond.c (main): When skipping the test, show the reason.
1086
1087 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1088
1089         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1090
1091 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1092
1093         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1094         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1095
1096 2010-01-12  Eric Blake  <ebb9@byu.net>
1097
1098         build: guarantee AS_VAR_IF
1099         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1100         (gl_AS_VAR_IF): Move...
1101         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1102         Reported by Simon Josefsson.
1103
1104 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1105
1106         * lib/stdio.in.h: Fix typo.
1107
1108 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1109
1110         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1111         libgpg-error.
1112
1113 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1114
1115         * tests/test-xalloc-die.sh: Use $EXEEXT.
1116
1117 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1118             Bruno Haible  <bruno@clisp.org>
1119
1120         getlogin, getlogin_r: Avoid test failure.
1121         * tests/test-getlogin.c: Include <stdio.h>.
1122         (main): Skip the test when the function fails because stdin is not a
1123         tty.
1124         * tests/test-getlogin_r.c: Include <stdio.h>.
1125         (main): Skip the test when the function fails because stdin is not a
1126         tty.
1127
1128 2010-01-11  Eric Blake  <ebb9@byu.net>
1129
1130         tests: avoid more large file warnings
1131         * tests/test-fflush.c: Avoid warning about ftell use.
1132         * tests/test-fseek.c: Avoid warning about fseek use.
1133
1134 2010-01-10  Bruno Haible  <bruno@clisp.org>
1135
1136         nproc: Work better on Linux when /proc and /sys are not mounted.
1137         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1138         as lower bound when, on glibc/Linux systems,
1139         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1140         Suggested by Pádraig Brady <P@draigbrady.com>.
1141         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1142
1143         nproc: Refactor.
1144         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1145         extracted from num_processors.
1146         (num_processors): Call it.
1147
1148 2010-01-11  Jim Meyering  <meyering@redhat.com>
1149
1150         utimecmp: avoid new warning from upcoming gcc-4.5.0
1151         * lib/utimecmp.c (BILLION): Define using #define rather than an
1152         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1153
1154 2010-01-11  Eric Blake  <ebb9@byu.net>
1155
1156         math: add portability warnings for classification macros
1157         * modules/math (Depends-on): Add warn-on-use.
1158         (Makefile.am): Provide new substitutions.
1159         * m4/math_h.m4 (gl_MATH_H): Require inline.
1160         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1161         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1162         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1163         implement warnings.
1164
1165         unistd: warn on use of environ without module
1166         * modules/unistd (Depends-on): Add warn-on-use.
1167         (Makefile.am): Provide new substitutions.
1168         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1169         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1170
1171         stdio: warn on suspicious uses
1172         * modules/stdio (Depends-on): Add warn-on-use.
1173         (Makefile.am): Provide new substitutions.
1174         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1175         fseeko.
1176         * lib/stdio.in.h (gets): Always warn on use.
1177         (fseek, ftell): Adjust when warnings are issued, and honor
1178         _GL_NO_LARGE_FILES as a way to silence the warning.
1179         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1180         any warning about large file offsets.
1181         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1182         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1183         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1184         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1185         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1186         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1187         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1188         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1189
1190         warn-on-use: new module
1191         * modules/warn-on-use: New file.
1192         * build-aux/warn-on-use.h: Likewise.
1193         * m4/warn-on-use.m4: Likewise.
1194         * MODULES.html.sh (Support for building): Mention it.
1195
1196 2010-01-10  Bruno Haible  <bruno@clisp.org>
1197
1198         Tests for module 'unistr/u32-strdup'.
1199         * modules/unistr/u32-strdup-tests: New file.
1200         * tests/unistr/test-u32-strdup.c: New file.
1201
1202         Tests for module 'unistr/u16-strdup'.
1203         * modules/unistr/u16-strdup-tests: New file.
1204         * tests/unistr/test-u16-strdup.c: New file.
1205
1206         Tests for module 'unistr/u8-strdup'.
1207         * modules/unistr/u8-strdup-tests: New file.
1208         * tests/unistr/test-u8-strdup.c: New file.
1209         * tests/unistr/test-strdup.h: New file.
1210
1211         Tests for module 'unistr/u32-strncmp'.
1212         * modules/unistr/u32-strncmp-tests: New file.
1213         * tests/unistr/test-u32-strncmp.c: New file.
1214
1215         Tests for module 'unistr/u16-strncmp'.
1216         * modules/unistr/u16-strncmp-tests: New file.
1217         * tests/unistr/test-u16-strncmp.c: New file.
1218
1219         Tests for module 'unistr/u8-strncmp'.
1220         * modules/unistr/u8-strncmp-tests: New file.
1221         * tests/unistr/test-u8-strncmp.c: New file.
1222         * tests/unistr/test-strncmp.h: New file.
1223
1224         Tests for module 'unistr/u32-strcoll'.
1225         * modules/unistr/u32-strcoll-tests: New file.
1226         * tests/unistr/test-u32-strcoll.c: New file.
1227
1228         Tests for module 'unistr/u16-strcoll'.
1229         * modules/unistr/u16-strcoll-tests: New file.
1230         * tests/unistr/test-u16-strcoll.c: New file.
1231
1232         Tests for module 'unistr/u8-strcoll'.
1233         * modules/unistr/u8-strcoll-tests: New file.
1234         * tests/unistr/test-u8-strcoll.c: New file.
1235
1236         Tests for module 'unistr/u32-strcmp'.
1237         * modules/unistr/u32-strcmp-tests: New file.
1238         * tests/unistr/test-u32-strcmp.c: New file.
1239         * tests/unistr/test-u32-strcmp.h: New file.
1240
1241         Tests for module 'unistr/u16-strcmp'.
1242         * modules/unistr/u16-strcmp-tests: New file.
1243         * tests/unistr/test-u16-strcmp.c: New file.
1244         * tests/unistr/test-u16-strcmp.h: New file.
1245
1246         Tests for module 'unistr/u8-strcmp'.
1247         * modules/unistr/u8-strcmp-tests: New file.
1248         * tests/unistr/test-u8-strcmp.c: New file.
1249         * tests/unistr/test-u8-strcmp.h: New file.
1250         * tests/unistr/test-strcmp.h: New file.
1251
1252         Tests for module 'unistr/u32-strncat'.
1253         * modules/unistr/u32-strncat-tests: New file.
1254         * tests/unistr/test-u32-strncat.c: New file.
1255
1256         Tests for module 'unistr/u16-strncat'.
1257         * modules/unistr/u16-strncat-tests: New file.
1258         * tests/unistr/test-u16-strncat.c: New file.
1259
1260         Tests for module 'unistr/u8-strncat'.
1261         * modules/unistr/u8-strncat-tests: New file.
1262         * tests/unistr/test-u8-strncat.c: New file.
1263         * tests/unistr/test-strncat.h: New file.
1264
1265         Tests for module 'unistr/u32-strcat'.
1266         * modules/unistr/u32-strcat-tests: New file.
1267         * tests/unistr/test-u32-strcat.c: New file.
1268
1269         Tests for module 'unistr/u16-strcat'.
1270         * modules/unistr/u16-strcat-tests: New file.
1271         * tests/unistr/test-u16-strcat.c: New file.
1272
1273         Tests for module 'unistr/u8-strcat'.
1274         * modules/unistr/u8-strcat-tests: New file.
1275         * tests/unistr/test-u8-strcat.c: New file.
1276         * tests/unistr/test-strcat.h: New file.
1277
1278         Tests for module 'unistr/u32-stpncpy'.
1279         * modules/unistr/u32-stpncpy-tests: New file.
1280         * tests/unistr/test-u32-stpncpy.c: New file.
1281
1282         Tests for module 'unistr/u16-stpncpy'.
1283         * modules/unistr/u16-stpncpy-tests: New file.
1284         * tests/unistr/test-u16-stpncpy.c: New file.
1285
1286         Tests for module 'unistr/u8-stpncpy'.
1287         * modules/unistr/u8-stpncpy-tests: New file.
1288         * tests/unistr/test-u8-stpncpy.c: New file.
1289         * tests/unistr/test-stpncpy.h: New file.
1290
1291         Tests for module 'unistr/u32-strncpy'.
1292         * modules/unistr/u32-strncpy-tests: New file.
1293         * tests/unistr/test-u32-strncpy.c: New file.
1294
1295         Tests for module 'unistr/u16-strncpy'.
1296         * modules/unistr/u16-strncpy-tests: New file.
1297         * tests/unistr/test-u16-strncpy.c: New file.
1298
1299         Tests for module 'unistr/u8-strncpy'.
1300         * modules/unistr/u8-strncpy-tests: New file.
1301         * tests/unistr/test-u8-strncpy.c: New file.
1302         * tests/unistr/test-strncpy.h: New file.
1303
1304         Tests for module 'unistr/u32-stpcpy'.
1305         * modules/unistr/u32-stpcpy-tests: New file.
1306         * tests/unistr/test-u32-stpcpy.c: New file.
1307
1308         Tests for module 'unistr/u16-stpcpy'.
1309         * modules/unistr/u16-stpcpy-tests: New file.
1310         * tests/unistr/test-u16-stpcpy.c: New file.
1311
1312         Tests for module 'unistr/u8-stpcpy'.
1313         * modules/unistr/u8-stpcpy-tests: New file.
1314         * tests/unistr/test-u8-stpcpy.c: New file.
1315         * tests/unistr/test-stpcpy.h: New file.
1316
1317         Tests for module 'unistr/u32-strcpy'.
1318         * modules/unistr/u32-strcpy-tests: New file.
1319         * tests/unistr/test-u32-strcpy.c: New file.
1320
1321         Tests for module 'unistr/u16-strcpy'.
1322         * modules/unistr/u16-strcpy-tests: New file.
1323         * tests/unistr/test-u16-strcpy.c: New file.
1324
1325         Tests for module 'unistr/u8-strcpy'.
1326         * modules/unistr/u8-strcpy-tests: New file.
1327         * tests/unistr/test-u8-strcpy.c: New file.
1328         * tests/unistr/test-strcpy.h: New file.
1329
1330         Tests for module 'unistr/u32-strnlen'.
1331         * modules/unistr/u32-strnlen-tests: New file.
1332         * tests/unistr/test-u32-strnlen.c: New file.
1333
1334         Tests for module 'unistr/u16-strnlen'.
1335         * modules/unistr/u16-strnlen-tests: New file.
1336         * tests/unistr/test-u16-strnlen.c: New file.
1337
1338         Tests for module 'unistr/u8-strnlen'.
1339         * modules/unistr/u8-strnlen-tests: New file.
1340         * tests/unistr/test-u8-strnlen.c: New file.
1341         * tests/unistr/test-strnlen.h: New file.
1342
1343         Tests for module 'unistr/u32-strlen'.
1344         * modules/unistr/u32-strlen-tests: New file.
1345         * tests/unistr/test-u32-strlen.c: New file.
1346
1347         Tests for module 'unistr/u16-strlen'.
1348         * modules/unistr/u16-strlen-tests: New file.
1349         * tests/unistr/test-u16-strlen.c: New file.
1350
1351         Tests for module 'unistr/u8-strlen'.
1352         * modules/unistr/u8-strlen-tests: New file.
1353         * tests/unistr/test-u8-strlen.c: New file.
1354
1355         Tests for module 'unistr/u32-prev'.
1356         * modules/unistr/u32-prev-tests: New file.
1357         * tests/unistr/test-u32-prev.c: New file.
1358
1359         Tests for module 'unistr/u16-prev'.
1360         * modules/unistr/u16-prev-tests: New file.
1361         * tests/unistr/test-u16-prev.c: New file.
1362
1363         Tests for module 'unistr/u8-prev'.
1364         * modules/unistr/u8-prev-tests: New file.
1365         * tests/unistr/test-u8-prev.c: New file.
1366
1367         Tests for module 'unistr/u32-next'.
1368         * modules/unistr/u32-next-tests: New file.
1369         * tests/unistr/test-u32-next.c: New file.
1370
1371         Tests for module 'unistr/u16-next'.
1372         * modules/unistr/u16-next-tests: New file.
1373         * tests/unistr/test-u16-next.c: New file.
1374
1375         Tests for module 'unistr/u8-next'.
1376         * modules/unistr/u8-next-tests: New file.
1377         * tests/unistr/test-u8-next.c: New file.
1378
1379         Tests for module 'unistr/u32-strmbtouc'.
1380         * modules/unistr/u32-strmbtouc-tests: New file.
1381         * tests/unistr/test-u32-strmbtouc.c: New file.
1382
1383         Tests for module 'unistr/u16-strmbtouc'.
1384         * modules/unistr/u16-strmbtouc-tests: New file.
1385         * tests/unistr/test-u16-strmbtouc.c: New file.
1386
1387         Tests for module 'unistr/u8-strmbtouc'.
1388         * modules/unistr/u8-strmbtouc-tests: New file.
1389         * tests/unistr/test-u8-strmbtouc.c: New file.
1390
1391         Tests for module 'unistr/u32-strmblen'.
1392         * modules/unistr/u32-strmblen-tests: New file.
1393         * tests/unistr/test-u32-strmblen.c: New file.
1394
1395         Tests for module 'unistr/u16-strmblen'.
1396         * modules/unistr/u16-strmblen-tests: New file.
1397         * tests/unistr/test-u16-strmblen.c: New file.
1398
1399         Tests for module 'unistr/u8-strmblen'.
1400         * modules/unistr/u8-strmblen-tests: New file.
1401         * tests/unistr/test-u8-strmblen.c: New file.
1402
1403         Tests for module 'unistr/u32-cpy-alloc'.
1404         * modules/unistr/u32-cpy-alloc-tests: New file.
1405         * tests/unistr/test-u32-cpy-alloc.c: New file.
1406
1407         Tests for module 'unistr/u16-cpy-alloc'.
1408         * modules/unistr/u16-cpy-alloc-tests: New file.
1409         * tests/unistr/test-u16-cpy-alloc.c: New file.
1410
1411         Tests for module 'unistr/u8-cpy-alloc'.
1412         * modules/unistr/u8-cpy-alloc-tests: New file.
1413         * tests/unistr/test-u8-cpy-alloc.c: New file.
1414         * tests/unistr/test-cpy-alloc.h: New file.
1415
1416         Tests for module 'unistr/u32-mbsnlen'.
1417         * modules/unistr/u32-mbsnlen-tests: New file.
1418         * tests/unistr/test-u32-mbsnlen.c: New file.
1419
1420         Tests for module 'unistr/u16-mbsnlen'.
1421         * modules/unistr/u16-mbsnlen-tests: New file.
1422         * tests/unistr/test-u16-mbsnlen.c: New file.
1423
1424         Tests for module 'unistr/u8-mbsnlen'.
1425         * modules/unistr/u8-mbsnlen-tests: New file.
1426         * tests/unistr/test-u8-mbsnlen.c: New file.
1427
1428         Tests for module 'unistr/u32-chr'.
1429         * modules/unistr/u32-chr-tests: New file.
1430         * tests/unistr/test-u32-chr.c: New file.
1431
1432         Tests for module 'unistr/u16-chr'.
1433         * modules/unistr/u16-chr-tests: New file.
1434         * tests/unistr/test-u16-chr.c: New file.
1435
1436         Tests for module 'unistr/u8-chr'.
1437         * modules/unistr/u8-chr-tests: New file.
1438         * tests/unistr/test-u8-chr.c: New file.
1439         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1440
1441         Tests for module 'unistr/u32-cmp2'.
1442         * modules/unistr/u32-cmp2-tests: New file.
1443         * tests/unistr/test-u32-cmp2.c: New file.
1444
1445         Tests for module 'unistr/u16-cmp2'.
1446         * modules/unistr/u16-cmp2-tests: New file.
1447         * tests/unistr/test-u16-cmp2.c: New file.
1448
1449         Tests for module 'unistr/u8-cmp2'.
1450         * modules/unistr/u8-cmp2-tests: New file.
1451         * tests/unistr/test-u8-cmp2.c: New file.
1452         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1453
1454         Tests for module 'unistr/u32-cmp'.
1455         * modules/unistr/u32-cmp-tests: New file.
1456         * tests/unistr/test-u32-cmp.c: New file.
1457
1458         Tests for module 'unistr/u16-cmp'.
1459         * modules/unistr/u16-cmp-tests: New file.
1460         * tests/unistr/test-u16-cmp.c: New file.
1461
1462         Tests for module 'unistr/u8-cmp'.
1463         * modules/unistr/u8-cmp-tests: New file.
1464         * tests/unistr/test-u8-cmp.c: New file.
1465         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1466
1467         Tests for module 'unistr/u32-set'.
1468         * modules/unistr/u32-set-tests: New file.
1469         * tests/unistr/test-u32-set.c: New file.
1470
1471         Tests for module 'unistr/u16-set'.
1472         * modules/unistr/u16-set-tests: New file.
1473         * tests/unistr/test-u16-set.c: New file.
1474
1475         Tests for module 'unistr/u8-set'.
1476         * modules/unistr/u8-set-tests: New file.
1477         * tests/unistr/test-u8-set.c: New file.
1478         * tests/unistr/test-set.h: New file.
1479
1480         Tests for module 'unistr/u32-move'.
1481         * modules/unistr/u32-move-tests: New file.
1482         * tests/unistr/test-u32-move.c: New file.
1483
1484         Tests for module 'unistr/u16-move'.
1485         * modules/unistr/u16-move-tests: New file.
1486         * tests/unistr/test-u16-move.c: New file.
1487
1488         Tests for module 'unistr/u8-move'.
1489         * modules/unistr/u8-move-tests: New file.
1490         * tests/unistr/test-u8-move.c: New file.
1491         * tests/unistr/test-move.h: New file.
1492
1493         Tests for module 'unistr/u32-cpy'.
1494         * modules/unistr/u32-cpy-tests: New file.
1495         * tests/unistr/test-u32-cpy.c: New file.
1496
1497         Tests for module 'unistr/u16-cpy'.
1498         * modules/unistr/u16-cpy-tests: New file.
1499         * tests/unistr/test-u16-cpy.c: New file.
1500
1501         Tests for module 'unistr/u8-cpy'.
1502         * modules/unistr/u8-cpy-tests: New file.
1503         * tests/unistr/test-u8-cpy.c: New file.
1504         * tests/unistr/test-cpy.h: New file.
1505
1506 2010-01-09  Bruno Haible  <bruno@clisp.org>
1507
1508         Tests for module 'unistr/u32-uctomb'.
1509         * modules/unistr/u32-uctomb-tests: New file.
1510         * tests/unistr/test-u32-uctomb.c: New file.
1511
1512         Tests for module 'unistr/u16-uctomb'.
1513         * modules/unistr/u16-uctomb-tests: New file.
1514         * tests/unistr/test-u16-uctomb.c: New file.
1515
1516         Tests for module 'unistr/u8-uctomb'.
1517         * modules/unistr/u8-uctomb-tests: New file.
1518         * tests/unistr/test-u8-uctomb.c: New file.
1519
1520         Tests for module 'unistr/u32-mbtoucr'.
1521         * modules/unistr/u32-mbtoucr-tests: New file.
1522         * tests/unistr/test-u32-mbtoucr.c: New file.
1523
1524         Tests for module 'unistr/u16-mbtoucr'.
1525         * modules/unistr/u16-mbtoucr-tests: New file.
1526         * tests/unistr/test-u16-mbtoucr.c: New file.
1527
1528         Tests for module 'unistr/u8-mbtoucr'.
1529         * modules/unistr/u8-mbtoucr-tests: New file.
1530         * tests/unistr/test-u8-mbtoucr.c: New file.
1531
1532         Tests for module 'unistr/u32-mbtouc'.
1533         * modules/unistr/u32-mbtouc-tests: New file.
1534         * tests/unistr/test-u32-mbtouc.c: New file.
1535
1536         Tests for module 'unistr/u16-mbtouc'.
1537         * modules/unistr/u16-mbtouc-tests: New file.
1538         * tests/unistr/test-u16-mbtouc.c: New file.
1539
1540         Tests for module 'unistr/u8-mbtouc'.
1541         * modules/unistr/u8-mbtouc-tests: New file.
1542         * tests/unistr/test-u8-mbtouc.c: New file.
1543
1544         Tests for module 'unistr/u32-mbtouc-unsafe'.
1545         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
1546         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
1547         * tests/unistr/test-u32-mbtouc.h: New file.
1548
1549         Tests for module 'unistr/u16-mbtouc-unsafe'.
1550         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
1551         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
1552         * tests/unistr/test-u16-mbtouc.h: New file.
1553
1554         Tests for module 'unistr/u8-mbtouc-unsafe'.
1555         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
1556         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
1557         * tests/unistr/test-u8-mbtouc.h: New file.
1558
1559         Tests for module 'unistr/u32-mblen'.
1560         * modules/unistr/u32-mblen-tests: New file.
1561         * tests/unistr/test-u32-mblen.c: New file.
1562
1563         Tests for module 'unistr/u16-mblen'.
1564         * modules/unistr/u16-mblen-tests: New file.
1565         * tests/unistr/test-u16-mblen.c: New file.
1566
1567         Tests for module 'unistr/u8-mblen'.
1568         * modules/unistr/u8-mblen-tests: New file.
1569         * tests/unistr/test-u8-mblen.c: New file.
1570
1571         Tests for module 'unistr/u32-to-u16'.
1572         * modules/unistr/u32-to-u16-tests: New file.
1573         * tests/unistr/test-u32-to-u16.c: New file.
1574
1575         Tests for module 'unistr/u32-to-u8'.
1576         * modules/unistr/u32-to-u8-tests: New file.
1577         * tests/unistr/test-u32-to-u8.c: New file.
1578
1579         Tests for module 'unistr/u16-to-u32'.
1580         * modules/unistr/u16-to-u32-tests: New file.
1581         * tests/unistr/test-u16-to-u32.c: New file.
1582
1583         Tests for module 'unistr/u16-to-u8'.
1584         * modules/unistr/u16-to-u8-tests: New file.
1585         * tests/unistr/test-u16-to-u8.c: New file.
1586
1587         Tests for module 'unistr/u8-to-u32'.
1588         * modules/unistr/u8-to-u32-tests: New file.
1589         * tests/unistr/test-u8-to-u32.c: New file.
1590
1591         Tests for module 'unistr/u8-to-u16'.
1592         * modules/unistr/u8-to-u16-tests: New file.
1593         * tests/unistr/test-u8-to-u16.c: New file.
1594
1595         Tests for module 'unistr/u32-check'.
1596         * modules/unistr/u32-check-tests: New file.
1597         * tests/unistr/test-u32-check.c: New file.
1598
1599         Tests for module 'unistr/u16-check'.
1600         * modules/unistr/u16-check-tests: New file.
1601         * tests/unistr/test-u16-check.c: New file.
1602
1603         Tests for module 'unistr/u8-check'.
1604         * modules/unistr/u8-check-tests: New file.
1605         * tests/unistr/test-u8-check.c: New file.
1606
1607         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
1608         (category_equals): New function.
1609         (main): Add more tests.
1610         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
1611
1612         * tests/unictype/test-bidi_byname.c (main): Add more tests.
1613
1614 2010-01-10  Bruno Haible  <bruno@clisp.org>
1615
1616         unistr/u*-strcoll: Try harder to distinguish different strings.
1617         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
1618         compare s1 and s2 to see if they are different.
1619
1620 2010-01-10  Bruno Haible  <bruno@clisp.org>
1621
1622         unistr/u*-stpncpy: Fix the return value.
1623         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
1624         description of the return value consistent with stpncpy in glibc.
1625         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
1626         written non-NUL unit.
1627
1628 2010-01-10  Bruno Haible  <bruno@clisp.org>
1629
1630         unistr/u*-next: Add missing dependencies.
1631         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
1632         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
1633         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
1634
1635 2010-01-10  Bruno Haible  <bruno@clisp.org>
1636
1637         unistr/u8-mbsnlen: Fix return value for incomplete character.
1638         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
1639         u8_mblen.
1640         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
1641         Remove unistr/u8-mblen.
1642         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
1643         u16_mblen.
1644         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
1645         Remove unistr/u16-mblen.
1646
1647 2010-01-10  Bruno Haible  <bruno@clisp.org>
1648
1649         wchar: Fix compilation error when <wchar.h> is used from coreutils.
1650         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
1651         Reported by Brian Gough <bjg@gnu.org> and
1652         Chris Clayton <chris2553@googlemail.com> via
1653         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
1654
1655 2010-01-09  Bruno Haible  <bruno@clisp.org>
1656
1657         unistr/u16-to-u32: Reject invalid input.
1658         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
1659         u16_mbtouc.
1660         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
1661         Remove unistr/u16-mbtouc.
1662
1663         unistr/u16-to-u8: Reject invalid input.
1664         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
1665         u16_mbtouc.
1666         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
1667         Remove unistr/u16-mbtouc.
1668
1669         unistr/u8-to-u32: Reject invalid input.
1670         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
1671         u8_mbtouc.
1672         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
1673         Remove unistr/u8-mbtouc.
1674
1675         unistr/u8-to-u16: Reject invalid input.
1676         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
1677         u8_mbtouc.
1678         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
1679         Remove unistr/u8-mbtouc.
1680
1681 2010-01-09  Bruno Haible  <bruno@clisp.org>
1682
1683         Tests for module 'getlogin'.
1684         * modules/getlogin-tests: New file.
1685         * tests/test-getlogin.c: New file.
1686
1687         New module 'getlogin'.
1688         * lib/unistd.in.h (getlogin): New declaration.
1689         * lib/getlogin.c: New file.
1690         * m4/getlogin.m4: New file.
1691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
1692         HAVE_GETLOGIN.
1693         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
1694         HAVE_GETLOGIN.
1695         * modules/getlogin: New file.
1696         * doc/posix-functions/getlogin.texi: Mention the new module.
1697         Reported by John W. Eaton <jwe@gnu.org>.
1698
1699 2010-01-09  Bruno Haible  <bruno@clisp.org>
1700
1701         getlogin_r: Support for native Windows.
1702         * lib/getlogin_r.c: Include <windows.h>
1703         (getlogin_r): Implement for native Windows.
1704         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
1705         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
1706         via John W. Eaton <jwe@gnu.org>.
1707
1708 2010-01-09  Bruno Haible  <bruno@clisp.org>
1709
1710         getlogin_r: Small fixes.
1711         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
1712         succeeds.
1713         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
1714         before testing whether getlogin_r is declared. No need to set
1715         HAVE_DECL_GETLOGIN_R to 1.
1716         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
1717
1718 2010-01-09  Bruno Haible  <bruno@clisp.org>
1719
1720         * lib/unistd.in.h (getlogin_r): Add comment.
1721
1722 2010-01-09  Bruno Haible  <bruno@clisp.org>
1723
1724         Tests for module 'getlogin_r'.
1725         * modules/getlogin_r-tests: New file.
1726         * tests/test-getlogin_r.c: New file.
1727
1728 2010-01-09  Jim Meyering  <meyering@redhat.com>
1729
1730         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
1731         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
1732         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
1733
1734 2010-01-08  Simon Josefsson  <simon@josefsson.org>
1735
1736         * lib/dup2.c (rpl_dup2): Improve comment.
1737
1738 2010-01-08  Eric Blake  <ebb9@byu.net>
1739
1740         maint.mk: allow packages to add makefile @@ exceptions
1741         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
1742         (sc_makefile_check): Rename...
1743         (sc_makefile_at_at_check): ...to this, and use hook.
1744
1745         dup2: work around mingw bug
1746         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
1747         Reported by Simon Josefsson.
1748
1749 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
1750
1751         glob: Fix C++ compilation.
1752         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
1753         C++.
1754
1755 2010-01-07  Bruno Haible  <bruno@clisp.org>
1756
1757         Fix indentation of wctype.in.h, broken since 2007-01-06.
1758         * lib/wctype.in.h: Fix indentation of preprocessor directives.
1759
1760 2010-01-07  Bruno Haible  <bruno@clisp.org>
1761
1762         mbslen: Avoid collision with system function.
1763         * lib/string.in.h [MirBSD]: Include <wchar.h>.
1764         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
1765         * m4/mbslen.m4: New file.
1766         * modules/mbslen (Files): Add it.
1767         (configure.ac): Invoke gl_MBSLEN.
1768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
1769         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
1770         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
1771         via Ian Beckwith <ianb@erislabs.net>.
1772
1773 2010-01-07  Bruno Haible  <bruno@clisp.org>
1774
1775         dirent: Document the last fix.
1776         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
1777
1778 2010-01-07  Bruno Haible  <bruno@clisp.org>
1779
1780         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
1781         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
1782         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
1783         va_list are defined.
1784         * doc/posix-headers/stdio.texi: Document the bug of missing types.
1785         Reported by Eric Blake.
1786
1787 2010-01-07  Bruno Haible  <bruno@clisp.org>
1788
1789         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
1790         * modules/xlist (Depends-on): Add 'list',
1791         * modules/xoset (Depends-on): Add 'oset'.
1792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1793
1794 2010-01-07  Bruno Haible  <bruno@clisp.org>
1795
1796         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
1797         * doc/posix-functions/strncasecmp.texi: Likewise.
1798
1799 2010-01-07  Bruno Haible  <bruno@clisp.org>
1800
1801         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
1802
1803 2010-01-07  John W. Eaton  <jwe@octave.org>
1804
1805         wctype: allow C++ use
1806         * lib/wctype.in.h: Add extern "C" block for C++.
1807
1808 2010-01-06  Eric Blake  <ebb9@byu.net>
1809
1810         maint.mk: detect incorrect GFDL usage
1811         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
1812
1813 2010-01-06  Jim Meyering  <meyering@redhat.com>
1814         and Eric Blake  <ebb9@byu.net>
1815
1816         maint.mk: ignore multi-line copyright in NEWS
1817         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
1818
1819 2010-01-06  Eric Blake  <ebb9@byu.net>
1820
1821         select: add missing dependency
1822         * modules/select-tests (Depends-on): Move sockets dependency...
1823         * modules/select (Depends-on): ...here.
1824         Reported by Ian Beckwith.
1825
1826         doc: regenerate INSTALL
1827         * doc/INSTALL: Reflect recent autoconf update.
1828         * doc/INSTALL.ISO: Likewise.
1829         * doc/INSTALL.UTF-8: Likewise.
1830
1831         pread: fix compilation on glibc
1832         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
1833         Reported by Ralf Wildenhues.
1834
1835         dirent: fix test failure
1836         * lib/dirent.in.h (includes): Guarantee ino_t.
1837         Reported by Ralf Wildenhues.
1838
1839 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
1840
1841         linkat, renameat: avoid bad free
1842         * lib/at-func2.c (at_func2): Fix typo.
1843         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
1844
1845 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1846
1847         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
1848         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
1849         to avoid failure of symlink test later.
1850
1851 2010-01-06  Eric Blake  <ebb9@byu.net>
1852
1853         stdio, unistd: guarantee ssize_t
1854         * lib/unistd.in.h (includes): Ensure that types required by POSIX
1855         2008 are exposed when needed.
1856         * lib/stdio.in.h (includes): Likewise.
1857         Reported by Ralf Wildenhues.
1858
1859 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
1860
1861         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
1862         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
1863         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
1864
1865 2010-01-06  Jim Meyering  <meyering@redhat.com>
1866
1867         readtokens: this module *does* require xalloc.h
1868         It uses only functions that were omitted by the old syntax-check rule.
1869         * lib/readtokens.c: Include "xalloc.h" once again.
1870         * modules/readtokens (Depends-on): Add xalloc.
1871         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
1872
1873 2010-01-05  Eric Blake  <ebb9@byu.net>
1874
1875         maint: support 'make announcement' from a VPATH build
1876         * top/maint.mk (announcement): Look for correct NEWS file.
1877
1878 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
1879
1880         utimens (fdutimens): ignore a negative FD, per contract
1881         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
1882         when we have a valid file descriptor.  Otherwise, using a brand
1883         new glibc (with just-patched futimens that now fails with EBADF)
1884         would cause this function to fail with ENOSYS.
1885         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
1886         See also http://bugzilla.redhat.com/552320.
1887
1888 2010-01-05  Eric Blake  <ebb9@byu.net>
1889
1890         strcase: document what it provides
1891         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
1892         gnulib module.
1893         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
1894         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
1895
1896 2010-01-05  Jim Meyering  <meyering@redhat.com>
1897
1898         maint: remove useless inclusions of "xalloc.h"
1899         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
1900         * lib/readtokens.c: Likewise.
1901         * lib/same.c: Likewise.
1902         * modules/getloadavg (Depends-on): Remove xalloc.
1903         * modules/readtokens: Likewise.
1904         * modules/same: Likewise.
1905
1906         maint.mk: include 4 more function names in alloca.h-checking regexp
1907         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
1908         regexp.  Before, we would give a false-positive (saying alloca.h
1909         is included unnecessarily) when the only uses involved omitted symbols.
1910
1911         xalloc.h: use consistent formatting
1912         * lib/xalloc.h: Move declarations to start in the first column.
1913
1914 2010-01-05  Eric Blake  <ebb9@byu.net>
1915
1916         mkdir: avoid xalloc
1917         * lib/mkdir.c (includes): Drop unused header.
1918         Reported by John W. Eaton.
1919
1920 2010-01-04  Jim Meyering  <meyering@redhat.com>
1921
1922         nl_langinfo: avoid configure-time syntax error
1923         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
1924         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
1925         the empty string.  Don't let that provoke a shell syntax error.
1926
1927         regcomp, regexec, fnmatch: avoid array bounds read error
1928         * lib/regcomp.c (build_equiv_class): From glibc:
1929         Use only the low 24 bits of a findidx return value as an index
1930         into the weights array.  Patch by Ulrich Drepper:
1931         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
1932         * lib/regexec.c (check_node_accept_bytes): Likewise.
1933         * lib/fnmatch_loop.c (FCT): Likewise.
1934
1935         regcomp: skip collseq lookup when there are no rules
1936         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
1937         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
1938
1939         regcomp: recognize ill-formed { } expressions
1940         * lib/regcomp.c (parse_dup_op): From glibc:
1941         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
1942
1943         regcomp: fix typo in comment
1944         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
1945         s/satisfy/satisfies/.
1946
1947         regcomp: sync from glibc: remove dead store
1948         * lib/regcomp.c (duplicate_node_closure): Remove useless
1949         search_duplicated_node call and dead store.
1950
1951         regcomp: sync from glibc; always use nl_langinfo
1952         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
1953         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
1954         * modules/regex (Depends-on): Add nl_langinfo.
1955
1956 2010-01-04  Eric Blake  <ebb9@byu.net>
1957
1958         fdopendir: fix configure test
1959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
1960
1961 2010-01-01  Bruno Haible  <bruno@clisp.org>
1962
1963         wchar: Remove unused configure check.
1964         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
1965
1966 2010-01-01  Eric Blake  <ebb9@byu.net>
1967
1968         headers: make check of system header explicit
1969         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
1970         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
1971         ourselves.
1972         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1974         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
1976         internals.
1977         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
1978         missing.
1979         Suggested by Bruno Haible.
1980
1981 2010-01-01  Jim Meyering  <meyering@redhat.com>
1982
1983         ChangeLog: tweak to eliminate unnecessary copyright line
1984         * ChangeLog: Remove a copyright line that was mistakenly updated
1985         by today's update-copyright run.  Reported by Eric Blake.
1986
1987         test-update-copyright: don't let envvar setting cause test failure
1988         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1989
1990 2010-01-01  Bruno Haible  <bruno@clisp.org>
1991
1992         localename: Avoid gcc warning.
1993         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
1994         function if it is not used.
1995
1996 2010-01-01  Jim Meyering  <meyering@redhat.com>
1997
1998         update nearly all FSF copyright year lists to include 2010
1999         Use the same procedure as for 2009, outlined in
2000         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2001
2002         version-etc: set COPYRIGHT_YEAR to 2010
2003         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2004
2005 2009-12-31  Eric Blake  <ebb9@byu.net>
2006
2007         doc: correct availability of cygwin 1.5.x getopt
2008         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2009         variables.
2010         * doc/posix-functions/opterr.texi (opterr): Likewise.
2011         * doc/posix-functions/optind.texi (optind): Likewise.
2012         * doc/posix-functions/optopt.texi (optopt): Likewise.
2013         * doc/posix-functions/tzname.texi (tzname): Likewise.
2014
2015         openat: update maintainer
2016         * modules/openat (Maintainer): Add myself.
2017
2018         utimens: avoid shadowing warning
2019         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2020         buffers into one, to avoid shadowing, as well as avoiding a
2021         redundant stat.
2022         Reported by Jim Meyering.
2023
2024         test-dup2: avoid compiler warning
2025         * tests/test-dup2.c (is_inheritable): Only define if used.
2026
2027 2010-01-01  Bruno Haible  <bruno@clisp.org>
2028
2029         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2030         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2031         defined, use wctomb instead of wcrtomb.
2032
2033 2010-01-01  Bruno Haible  <bruno@clisp.org>
2034
2035         iconv: Reject native Solaris iconv.
2036         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2037         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2038
2039 2009-12-31  Bruno Haible  <bruno@clisp.org>
2040
2041         * tests/test-signal.c (main): Remove test of 'SIG'.
2042
2043 2009-12-31  Bruno Haible  <bruno@clisp.org>
2044
2045         spawn: Fix incomplete fix.
2046         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2047         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2048         warnings for GNULIB_POSIXCHECK again.
2049         Reported by Eric Blake.
2050
2051 2009-12-31  Bruno Haible  <bruno@clisp.org>
2052
2053         Avoid namespace pollution on glibc systems.
2054         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2055         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2056         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2057         glibc systems.
2058
2059 2009-12-31  Bruno Haible  <bruno@clisp.org>
2060
2061         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2062         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2063         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2064         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2065         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2066         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2067         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2068
2069 2009-12-31  Bruno Haible  <bruno@clisp.org>
2070
2071         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2072         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2073         afterwards.
2074
2075 2009-12-31  Bruno Haible  <bruno@clisp.org>
2076
2077         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2078         SYS_UTSNAME_H.
2079
2080 2009-12-31  Bruno Haible  <bruno@clisp.org>
2081
2082         spawn: Fix misapplied patch.
2083         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2084         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2085         warnings for GNULIB_POSIXCHECK.
2086
2087 2009-12-31  Bruno Haible  <bruno@clisp.org>
2088
2089         times: Update after sys_times changed.
2090         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2091         * modules/times (Files): Add it.
2092         (configure.ac): Invoke gl_FUNC_TIMES.
2093
2094 2009-12-31  Bruno Haible  <bruno@clisp.org>
2095
2096         Use AC_C_INLINE where necessary.
2097         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2098         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2100         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2101         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2102         * m4/mbiter.m4 (gl_MBITER): Likewise.
2103         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2104         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2105         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2106         * modules/u64 (configure.ac): Likewise.
2107
2108 2009-12-31  Bruno Haible  <bruno@clisp.org>
2109
2110         Use AC_C_INLINE instead of module 'inline' where possible.
2111         * modules/inline (Description): Clarify purpose.
2112         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2113         * modules/count-one-bits (Depends-on): Remove inline.
2114         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2115         * modules/openat (Depends-on): Remove inline.
2116         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2117         instead of depending on module 'inline'.
2118         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2119         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2120         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2121         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2122         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2123         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2124         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2125         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2126         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2127         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2128         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2129         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2130         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2131         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2132         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2133         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2134         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2135         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2136         Likewise.
2137         * modules/unictype/property-ascii-hex-digit (Depends-on,
2138         configure.ac): Likewise.
2139         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2140         configure.ac): Likewise.
2141         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2142         configure.ac): Likewise.
2143         * modules/unictype/property-bidi-block-separator (Depends-on,
2144         configure.ac): Likewise.
2145         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2146         configure.ac): Likewise.
2147         * modules/unictype/property-bidi-common-separator (Depends-on,
2148         configure.ac): Likewise.
2149         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2150         Likewise.
2151         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2152         configure.ac): Likewise.
2153         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2154         configure.ac): Likewise.
2155         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2156         configure.ac): Likewise.
2157         * modules/unictype/property-bidi-european-digit (Depends-on,
2158         configure.ac): Likewise.
2159         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2160         configure.ac): Likewise.
2161         * modules/unictype/property-bidi-left-to-right (Depends-on,
2162         configure.ac): Likewise.
2163         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2164         configure.ac): Likewise.
2165         * modules/unictype/property-bidi-other-neutral (Depends-on,
2166         configure.ac): Likewise.
2167         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2168         Likewise.
2169         * modules/unictype/property-bidi-segment-separator (Depends-on,
2170         configure.ac): Likewise.
2171         * modules/unictype/property-bidi-whitespace (Depends-on,
2172         configure.ac): Likewise.
2173         * modules/unictype/property-combining (Depends-on, configure.ac):
2174         Likewise.
2175         * modules/unictype/property-composite (Depends-on, configure.ac):
2176         Likewise.
2177         * modules/unictype/property-currency-symbol (Depends-on,
2178         configure.ac): Likewise.
2179         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2180         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2181         Likewise.
2182         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2183         configure.ac): Likewise.
2184         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2185         Likewise.
2186         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2187         Likewise.
2188         * modules/unictype/property-extender (Depends-on, configure.ac):
2189         Likewise.
2190         * modules/unictype/property-format-control (Depends-on, configure.ac):
2191         Likewise.
2192         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2193         Likewise.
2194         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2195         Likewise.
2196         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2197         Likewise.
2198         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2199         Likewise.
2200         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2201         Likewise.
2202         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2203         Likewise.
2204         * modules/unictype/property-id-start (Depends-on, configure.ac):
2205         Likewise.
2206         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2207         Likewise.
2208         * modules/unictype/property-ids-binary-operator (Depends-on,
2209         configure.ac): Likewise.
2210         * modules/unictype/property-ids-trinary-operator (Depends-on,
2211         configure.ac): Likewise.
2212         * modules/unictype/property-ignorable-control (Depends-on,
2213         configure.ac): Likewise.
2214         * modules/unictype/property-iso-control (Depends-on, configure.ac):
2215         Likewise.
2216         * modules/unictype/property-join-control (Depends-on, configure.ac):
2217         Likewise.
2218         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2219         Likewise.
2220         * modules/unictype/property-line-separator (Depends-on, configure.ac):
2221         Likewise.
2222         * modules/unictype/property-logical-order-exception (Depends-on,
2223         configure.ac): Likewise.
2224         * modules/unictype/property-lowercase (Depends-on, configure.ac):
2225         Likewise.
2226         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2227         * modules/unictype/property-non-break (Depends-on, configure.ac):
2228         Likewise.
2229         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2230         Likewise.
2231         * modules/unictype/property-numeric (Depends-on, configure.ac):
2232         Likewise.
2233         * modules/unictype/property-other-alphabetic (Depends-on,
2234         configure.ac): Likewise.
2235         * modules/unictype/property-other-default-ignorable-code-point
2236         (Depends-on, configure.ac): Likewise.
2237         * modules/unictype/property-other-grapheme-extend (Depends-on,
2238         configure.ac): Likewise.
2239         * modules/unictype/property-other-id-continue (Depends-on,
2240         configure.ac): Likewise.
2241         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2242         Likewise.
2243         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2244         Likewise.
2245         * modules/unictype/property-other-math (Depends-on, configure.ac):
2246         Likewise.
2247         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2248         Likewise.
2249         * modules/unictype/property-paired-punctuation (Depends-on,
2250         configure.ac): Likewise.
2251         * modules/unictype/property-paragraph-separator (Depends-on,
2252         configure.ac): Likewise.
2253         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2254         Likewise.
2255         * modules/unictype/property-pattern-white-space (Depends-on,
2256         configure.ac): Likewise.
2257         * modules/unictype/property-private-use (Depends-on, configure.ac):
2258         Likewise.
2259         * modules/unictype/property-punctuation (Depends-on, configure.ac):
2260         Likewise.
2261         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2262         Likewise.
2263         * modules/unictype/property-radical (Depends-on, configure.ac):
2264         Likewise.
2265         * modules/unictype/property-sentence-terminal (Depends-on,
2266         configure.ac): Likewise.
2267         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2268         Likewise.
2269         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2270         * modules/unictype/property-terminal-punctuation (Depends-on,
2271         configure.ac): Likewise.
2272         * modules/unictype/property-titlecase (Depends-on, configure.ac):
2273         Likewise.
2274         * modules/unictype/property-unassigned-code-value (Depends-on,
2275         configure.ac): Likewise.
2276         * modules/unictype/property-unified-ideograph (Depends-on,
2277         configure.ac): Likewise.
2278         * modules/unictype/property-uppercase (Depends-on, configure.ac):
2279         Likewise.
2280         * modules/unictype/property-variation-selector (Depends-on,
2281         configure.ac): Likewise.
2282         * modules/unictype/property-white-space (Depends-on, configure.ac):
2283         Likewise.
2284         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2285         Likewise.
2286         * modules/unictype/property-xid-start (Depends-on, configure.ac):
2287         Likewise.
2288         * modules/unictype/property-zero-width (Depends-on, configure.ac):
2289         Likewise.
2290         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2291         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2292         Likewise.
2293
2294 2009-12-31  Bruno Haible  <bruno@clisp.org>
2295
2296         Remove unnecessary AC_C_INLINE invocation.
2297         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2298         since 2009-08-21.
2299
2300 2009-12-31  Jim Meyering  <meyering@redhat.com>
2301
2302         maint.mk: don't require explicit gpg_key_ID in cfg.mk
2303         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2304         With this change, we can all remove the gpg_key_ID = ... definition
2305         from our respective cfg.mk files.
2306
2307         maint.mk: create announcement template in ~/, not in /tmp
2308         * top/maint.mk (emit_upload_commands): Adjust.
2309         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2310         Remove temporary file, .ci-msg.
2311
2312 2009-12-31  Eric Blake  <ebb9@byu.net>
2313
2314         link-warning: always build headers with link warnings
2315         * modules/arpa_inet (Makefile.am): Always build replacement
2316         header.
2317         * modules/ctype (Makefile.am): Likewise.
2318         * modules/dirent (Makefile.am): Likewise.
2319         * modules/inttypes (Makefile.am): Likewise.
2320         * modules/langinfo (Makefile.am): Likewise.
2321         * modules/locale (Makefile.am): Likewise.
2322         * modules/spawn (Makefile.am): Likewise.
2323         * modules/sys_file (Makefile.am): Likewise.
2324         * modules/sys_ioctl (Makefile.am): Likewise.
2325         * modules/sys_select (Makefile.am): Likewise.
2326         * modules/sys_socket (Makefile.am): Likewise.
2327         * modules/sys_times (Makefile.am): Likewise.
2328         * modules/sys_utsname (Makefile.am): Likewise.
2329         * modules/sys_wait (Makefile.am): Likewise.
2330         * modules/wchar (Makefile.am): Likewise.
2331         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2332         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2333         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2334         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2335         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2336         Likewise.
2337         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2338         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2339         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2340         Likewise.
2341         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2342         Likewise.
2343         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2344         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2345         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2347         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2348         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2349         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2350         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2351         (gl_WCHAR_H_DEFAULTS): Likewise.
2352
2353 2009-12-31  Eric Blake  <ebb9@byu.net>
2354
2355         signal, spawn: use link warnings
2356         * lib/signal.in.h (sigset_t): Make unconditional.
2357         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2358         (sigpending, sigprocmask, sigaction): Add link warnings.
2359         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2360         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2361         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2362         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2363         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2364         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2365         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2366         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2367         (posix_spawn_file_actions_destroy)
2368         (posix_spawn_file_actions_addopen)
2369         (posix_spawn_file_actions_addclose)
2370         (posix_spawwn_file_actions_adddup2): Likewise.
2371         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2372         * tests/test-signal.c (main): Enhance test.
2373
2374         spawn: improve wrapper support
2375         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2376         (gl_SPAWN_H_DEFAULTS): New defaults.
2377         * modules/spawn (Makefile.am): Substitute them.
2378         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2379         Only declare if missing or broken.
2380
2381         sys_times, sys_utsname: use include_next
2382         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2383         header.
2384         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2385         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2386         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2387         * modules/sys_times (Depends-on): Add include_next.
2388         (Makefile.am): Substitute additional values.
2389         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2390         * lib/sys_times.in.h (includes): Include native header, if
2391         available.
2392         * lib/sys_utsname.in.h (includes): Likewise.
2393         * tests/test-sys_times.c (main): Enhance test.
2394
2395         fdutimensat: revert prior patch
2396         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2397         utimens.h.
2398         Reported by Bruno Haible.
2399
2400 2009-12-30  Eric Blake  <ebb9@byu.net>
2401
2402         sys_wait: drop link-warning dependency
2403         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2404         link-warning efforts.
2405         * lib/sys_wait.in.h: Likewise.
2406
2407         fdutimensat: remove bogus dependency
2408         * modules/fdutimensat (Depends-on): Drop inline.
2409
2410         unistd: fix typo
2411         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2412
2413 2009-12-30  Bruno Haible  <bruno@clisp.org>
2414
2415         Fix compilation error with Solaris cc.
2416         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2417         * lib/unicase/u16-is-invariant.c: Likewise.
2418         * lib/unicase/u32-is-invariant.c: Likewise.
2419         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2420
2421 2009-12-30  Bruno Haible  <bruno@clisp.org>
2422
2423         Fix test crash.
2424         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2425         locales.
2426         Reported by Simon Josefsson <simon@josefsson.org>.
2427
2428 2009-12-30  Bruno Haible  <bruno@clisp.org>
2429
2430         Fix compilation error on most platforms.
2431         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2432         Reported by Simon Josefsson <simon@josefsson.org>
2433         and Nelson H. F. Beebe <beebe@math.utah.edu>.
2434
2435 2009-12-30  Eric Blake  <ebb9@byu.net>
2436
2437         futimens, utimensat: work around ntfs-3g bug
2438         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2439         a ctime bug is present, and expand workaround to cover ntfs-3g.
2440         * lib/utimens.c (fdutimens, lutimens): Likewise.
2441         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2442         (validate_timespec): Adjust return value.
2443         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2444         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2445         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2446
2447 2009-12-29  Eric Blake  <ebb9@byu.net>
2448
2449         link-warning: make usage consistent
2450         * modules/ctype (Depends-on): Add link-warning.
2451         (Makefile.am): Update rules accordingly.
2452         * modules/langinfo (Depends-on, Makefile.am): Likewise.
2453         * modules/locale (Depends-on, Makefile.am): Likewise.
2454         * modules/sys_file (Makefile.am): Likewise.
2455         * modules/getopt-posix (Makefile.am): Delete unused link warning
2456         efforts.
2457         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2458         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2459         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2460         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2461
2462         stdio: remove unused variables
2463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2465         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2466
2467         tests: test more substitute headers
2468         * modules/ctype-tests: New file.
2469         * modules/dirent-tests: Likewise.
2470         * modules/spawn-tests: Likewise.
2471         * modules/sys_file-tests: Likewise.
2472         * modules/sys_ioctl-tests: Likewise.
2473         * modules/sys_wait-tests: Likewise.
2474         * tests/test-ctype.c: Likewise.
2475         * tests/test-dirent.c: Likewise.
2476         * tests/test-spawn.c: Likewise.
2477         * tests/test-sys_file.c: Likewise.
2478         * tests/test-sys_ioctl.c: Likewise.
2479         * tests/test-sys_wait.c: Likewise.
2480         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2481         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2482         whether or not flock is in use.
2483
2484         tests: remove License section from module
2485         * modules/arpa_inet-tests: Remove unneeded section.
2486         * modules/byteswap-tests: Likewise.
2487         * modules/ceilf-tests: Likewise.
2488         * modules/ceill-tests: Likewise.
2489         * modules/crypto/des-tests: Likewise.
2490         * modules/crypto/gc-arcfour-tests: Likewise.
2491         * modules/crypto/gc-arctwo-tests: Likewise.
2492         * modules/crypto/gc-des-tests: Likewise.
2493         * modules/crypto/gc-hmac-md5-tests: Likewise.
2494         * modules/crypto/gc-hmac-sha1-tests: Likewise.
2495         * modules/crypto/gc-md2-tests: Likewise.
2496         * modules/crypto/gc-md4-tests: Likewise.
2497         * modules/crypto/gc-md5-tests: Likewise.
2498         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2499         * modules/crypto/gc-rijndael-tests: Likewise.
2500         * modules/crypto/gc-sha1-tests: Likewise.
2501         * modules/crypto/gc-tests: Likewise.
2502         * modules/crypto/md2-tests: Likewise.
2503         * modules/crypto/md4-tests: Likewise.
2504         * modules/fcntl-h-tests: Likewise.
2505         * modules/floorf-tests: Likewise.
2506         * modules/floorl-tests: Likewise.
2507         * modules/frexp-nolibm-tests: Likewise.
2508         * modules/frexp-tests: Likewise.
2509         * modules/frexpl-nolibm-tests: Likewise.
2510         * modules/frexpl-tests: Likewise.
2511         * modules/getaddrinfo-tests: Likewise.
2512         * modules/inttypes-tests: Likewise.
2513         * modules/isfinite-tests: Likewise.
2514         * modules/isinf-tests: Likewise.
2515         * modules/ldexpl-tests: Likewise.
2516         * modules/locale-tests: Likewise.
2517         * modules/math-tests: Likewise.
2518         * modules/netdb-tests: Likewise.
2519         * modules/netinet_in-tests: Likewise.
2520         * modules/printf-frexp-tests: Likewise.
2521         * modules/printf-frexpl-tests: Likewise.
2522         * modules/priv-set-tests: Likewise.
2523         * modules/random_r-tests: Likewise.
2524         * modules/round-tests: Likewise.
2525         * modules/roundf-tests: Likewise.
2526         * modules/roundl-tests: Likewise.
2527         * modules/search-tests: Likewise.
2528         * modules/select-tests: Likewise.
2529         * modules/signal-tests: Likewise.
2530         * modules/stdbool-tests: Likewise.
2531         * modules/stddef-tests: Likewise.
2532         * modules/stdint-tests: Likewise.
2533         * modules/stdio-tests: Likewise.
2534         * modules/stdlib-tests: Likewise.
2535         * modules/string-tests: Likewise.
2536         * modules/strings-tests: Likewise.
2537         * modules/sys_select-tests: Likewise.
2538         * modules/sys_socket-tests: Likewise.
2539         * modules/sys_stat-tests: Likewise.
2540         * modules/sys_time-tests: Likewise.
2541         * modules/sys_utsname-tests: Likewise.
2542         * modules/sysexits-tests: Likewise.
2543         * modules/time-tests: Likewise.
2544         * modules/trunc-tests: Likewise.
2545         * modules/truncf-tests: Likewise.
2546         * modules/truncl-tests: Likewise.
2547         * modules/tsearch-tests: Likewise.
2548         * modules/unistd-tests: Likewise.
2549         * modules/wchar-tests: Likewise.
2550         * modules/wctype-tests: Likewise.
2551
2552         tests: fix license on several tests
2553         * tests/test-des.c: Update to GPLv3+.
2554         * tests/test-flock.c: Likewise.
2555         * tests/test-fsync.c: Likewise.
2556         * tests/test-futimens.h: Likewise.
2557         * tests/test-gc-arcfour.c: Likewise.
2558         * tests/test-gc-arctwo.c: Likewise.
2559         * tests/test-gc-des.c: Likewise.
2560         * tests/test-gc-hmac-md5.c: Likewise.
2561         * tests/test-gc-hmac-sha1.c: Likewise.
2562         * tests/test-gc-md2.c: Likewise.
2563         * tests/test-gc-md4.c: Likewise.
2564         * tests/test-gc-md5.c: Likewise.
2565         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2566         * tests/test-gc-rijndael.c: Likewise.
2567         * tests/test-gc-sha1.c: Likewise.
2568         * tests/test-gc.c: Likewise.
2569         * tests/test-getcwd.c: Likewise.
2570         * tests/test-link.c: Likewise.
2571         * tests/test-link.h: Likewise.
2572         * tests/test-lutimens.h: Likewise.
2573         * tests/test-md2.c: Likewise.
2574         * tests/test-md4.c: Likewise.
2575         * tests/test-mkdir.h: Likewise.
2576         * tests/test-rename.c: Likewise.
2577         * tests/test-rename.h: Likewise.
2578         * tests/test-safe-alloc.c: Likewise.
2579         * tests/test-utimens-common.h: Likewise.
2580         * tests/test-utimens.h: Likewise.
2581
2582         maint: sync license texts
2583         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
2584         * doc/gpl-3.0.texi: Revert copyright year update.
2585         * doc/lgpl-3.0.texi: Likewise.
2586
2587 2009-12-29  Jim Meyering  <meyering@redhat.com>
2588
2589         update nearly all FSF copyright year lists to include 2009
2590         The files named by the following are exempted:
2591             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
2592               test -f "$dst" && { echo "$dst"; continue; }
2593               test -d "$dst" || continue
2594               echo "$dst"/$(basename "$src")
2595             done > exempt
2596             git ls-files tests/unictype >> exempt
2597         In the remaining files, convert to all-interval notation if
2598         - there is already at least one year interval like 2000-2003
2599         - the file is maintained by me
2600         - the file is in lib/uni*/, where that style already prevails
2601         Otherwise, use update-copyright's default.
2602
2603 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2604         and Eric Blake  <ebb9@byu.net>
2605
2606         tests: don't require debug system() to pass
2607         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
2608         * tests/test-rmdir.h (test_rmdir_func): Likewise.
2609         * tests/test-unlink.h (test_unlink_func): Likewise.
2610         * tests/test-fstatat.c (main): ...into callers.
2611         * tests/test-lstat.c (main): Likewise.
2612         * tests/test-rmdir.c (main): Likewise.
2613         * tests/test-unlink.c (main): Likewise.
2614         * tests/test-unlinkat.c (main): Likewise.
2615         * tests/test-areadlink-with-size.c (main): Don't require a
2616         debug-only system call to pass, aiding cross-testing to mingw.
2617         * tests/test-areadlink.c (main): Likewise.
2618         * tests/test-areadlinkat-with-size.c (main): Likewise.
2619         * tests/test-areadlinkat.c (main): Likewise.
2620         * tests/test-canonicalize-lgpl.c (main): Likewise.
2621         * tests/test-canonicalize.c (main): Likewise.
2622         * tests/test-chown.c (main): Likewise.
2623         * tests/test-fchownat.c (main): Likewise.
2624         * tests/test-lchown.c (main): Likewise.
2625         * tests/test-fdutimensat.c (main): Likewise.
2626         * tests/test-futimens.c (main): Likewise.
2627         * tests/test-link.c (main): Likewise.
2628         * tests/test-linkat.c (main): Likewise.
2629         * tests/test-mkdir.c (main): Likewise.
2630         * tests/test-mkdirat.c (main): Likewise.
2631         * tests/test-mkfifo.c (main): Likewise.
2632         * tests/test-mkfifoat.c (main): Likewise.
2633         * tests/test-mknod.c (main): Likewise.
2634         * tests/test-readlink.c (main): Likewise.
2635         * tests/test-remove.c (main): Likewise.
2636         * tests/test-rename.c (main): Likewise.
2637         * tests/test-renameat.c (main): Likewise.
2638         * tests/test-symlink.c (main): Likewise.
2639         * tests/test-symlinkat.c (main): Likewise.
2640         * tests/test-utimens.c (main): Likewise.
2641         * tests/test-utimensat.c (main): Likewise.
2642
2643 2009-12-29  Simon Josefsson  <simon@josefsson.org>
2644
2645         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
2646         on $(UNUSED_PARAMETER_H) to avoid build failure.
2647
2648 2009-12-28  Jim Meyering  <meyering@redhat.com>
2649
2650         update-copyright: you may specify a max. line length other than 72
2651         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2652
2653         maint: use consistent FSF copyright line syntax
2654         * lib/posixtm.c: Add missing comma in FSF copyright line.
2655         * lib/posixtm.h: Likewise.
2656         * lib/getugroups.c: Add missing ", Inc.".
2657
2658         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
2659         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
2660         FSF copyright line.  Remove trailing blanks.
2661
2662 2009-12-28  Eric Blake  <ebb9@byu.net>
2663
2664         test-dup2: reduce dependencies
2665         * modules/cloexec (Configure.ac): Set witness.
2666         * modules/dup2-tests (Depends-on): Drop cloexec.
2667         * tests/test-dup2.c (main): Skip portion of test if cloexec module
2668         not present.
2669         Suggested by Bruno Haible.
2670
2671 2009-12-26  Bruno Haible  <bruno@clisp.org>
2672
2673         Remove an unneeded dependency.
2674         * modules/fseterr (Depends-on): Remove dup2.
2675
2676 2009-12-26  Eric Blake  <ebb9@byu.net>
2677
2678         tests: use macros.h in more places
2679         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
2680         (ASSERT_STREAM): Provide default of stderr.
2681         * tests/test-dirent-safer.c: Include macros.h, using alternate
2682         stream for assertions.
2683         * tests/test-dup-safer.c: Likewise.
2684         * tests/test-freopen-safer.c: Likewise.
2685         * tests/test-getopt.c: Likewise.
2686         * tests/test-openat-safer.c: Likewise.
2687         * tests/test-pipe.c: Likewise.
2688         * tests/test-popen-safer.c: Likewise.
2689         * modules/dirent-safer-tests (Files): Include macros.h.
2690         * modules/unistd-safer-tests (Files): Likewise.
2691         * modules/freopen-safer-tests (Files): Likewise.
2692         * modules/getopt-posix-tests (Files): Likewise.
2693         * modules/openat-safer-tests (Files): Likewise.
2694         * modules/pipe-tests (Files): Likewise.
2695
2696 2009-12-26  Bruno Haible  <bruno@clisp.org>
2697
2698         javacomp: Portability fix.
2699         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
2700         that it also works on Solaris.
2701
2702 2009-12-26  Bruno Haible  <bruno@clisp.org>
2703
2704         localename: Fix storage allocation of gl_locale_name_thread's result.
2705         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
2706         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
2707         all platforms that have 'uselocale'.
2708         (gl_locale_name_thread_unsafe): New function, extracted from
2709         gl_locale_name_thread.
2710         (gl_locale_name_thread): Call struniq on all platforms that have
2711         'uselocale'.
2712         * tests/test-localename.c (test_locale_name_thread): Check that the
2713         resulting strings are permanently allocated.
2714         * modules/localename-tests (Depends-on): Add strdup.
2715
2716 2009-12-26  Bruno Haible  <bruno@clisp.org>
2717
2718         * tests/test-localename.c (categories): Fill in the strings.
2719
2720 2009-12-26  Jim Meyering  <meyering@redhat.com>
2721
2722         isdir: complete the removal of m4/isdir.m4
2723         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
2724
2725         isdir: clean up, since at least grep still uses it
2726         * lib/isdir.c: Include "isdir.h".
2727         (S_ISDIR): Remove now-unneeded definition.
2728         * modules/isdir (Files): Add lib/isdir.h.
2729         * lib/isdir.h: New file, with declaration.
2730         * m4/isdir.m4: Remove file -- unneeded.
2731
2732 2009-12-25  Bruno Haible  <bruno@clisp.org>
2733
2734         selinux-h: Make generated .h files standalone.
2735         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
2736         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
2737         * lib/se-selinux.in.h: Likewise.
2738         * modules/selinux-h (Depends-on): Add unused-parameter.
2739         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
2740         selinux/selinux.h and selinux/context.h.
2741         Suggested by Eric Blake.
2742
2743 2009-12-25  Bruno Haible  <bruno@clisp.org>
2744
2745         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
2746         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
2747         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
2748         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
2749         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
2750
2751 2009-12-24  Bruno Haible  <bruno@clisp.org>
2752
2753         openat: Fix warning.
2754         * lib/openat-proc.c: Include <unistd.h>.
2755
2756 2009-12-24  Bruno Haible  <bruno@clisp.org>
2757
2758         New module 'unused-parameter'.
2759         * build-aux/unused-parameter.h: New file, extracted from earlier
2760         gnulib-common.m4.
2761         * modules/unused-parameter: New file.
2762         * lib/unistr.h: Include unused-parameter.h.
2763         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
2764         _GL_UNUSED.
2765         * modules/unistr/base (Depends-on): Add unused-parameter.
2766
2767 2009-12-24  Bruno Haible  <bruno@clisp.org>
2768
2769         Add missing dependencies to 'extensions' module.
2770         * m4/extensions.m4: Add comment.
2771         * modules/accept4 (Depends-on): Add extensions.
2772         * modules/dup3 (Depends-on): Likewise.
2773         * modules/fcntl (Depends-on): Likewise.
2774         * modules/futimens (Depends-on): Likewise.
2775         * modules/mknod (Depends-on): Likewise.
2776         * modules/pipe2 (Depends-on): Likewise.
2777         * modules/stat-time (Depends-on): Likewise.
2778         * modules/strcasestr-simple (Depends-on): Likewise.
2779         * modules/strsignal (Depends-on): Likewise.
2780         * modules/utimensat (Depends-on): Likewise.
2781         * modules/localcharset (Depends-on): Likewise. Needed because of
2782         gl_FCNTL_O_FLAGS.
2783         * modules/wcrtomb (Depends-on): Likewise. Needed because of
2784         AC_TYPE_MBSTATE_T.
2785         * modules/wcsnrtombs (Depends-on): Likewise.
2786         * modules/wcsrtombs (Depends-on): Likewise.
2787
2788 2009-12-24  Bruno Haible  <bruno@clisp.org>
2789
2790         binary-io: Avoid gcc warning due to SET_BINARY.
2791         * lib/binary-io.h (SET_BINARY): Cast the result to void.
2792         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
2793
2794 2009-12-24  Bruno Haible  <bruno@clisp.org>
2795
2796         Avoid future namespace pollution on glibc systems.
2797         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
2798         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
2799         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
2800         glibc systems.
2801
2802 2009-12-24  Bruno Haible  <bruno@clisp.org>
2803
2804         Refactor common macros used in tests.
2805         * tests/macros.h: New file.
2806         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
2807         and/or <stdlib.h>, if appropriate.
2808         (ASSERT, SIZEOF): Remove macros.
2809         * tests/test-areadlink-with-size.c: Likewise.
2810         * tests/test-areadlinkat.c: Likewise.
2811         * tests/test-areadlinkat-with-size.c: Likewise.
2812         * tests/test-argmatch.c: Likewise.
2813         * tests/test-argv-iter.c: Likewise.
2814         * tests/test-array-mergesort.c: Likewise.
2815         * tests/test-array_list.c: Likewise.
2816         * tests/test-array_oset.c: Likewise.
2817         * tests/test-avltree_list.c: Likewise.
2818         * tests/test-avltree_oset.c: Likewise.
2819         * tests/test-avltreehash_list.c: Likewise.
2820         * tests/test-base64.c: Likewise.
2821         * tests/test-binary-io.c: Likewise.
2822         * tests/test-bitrotate.c: Likewise.
2823         * tests/test-btowc.c: Likewise.
2824         * tests/test-byteswap.c: Likewise.
2825         * tests/test-c-ctype.c: Likewise.
2826         * tests/test-c-stack.c: Likewise.
2827         * tests/test-c-strcasecmp.c: Likewise.
2828         * tests/test-c-strcasestr.c: Likewise.
2829         * tests/test-c-strncasecmp.c: Likewise.
2830         * tests/test-c-strstr.c: Likewise.
2831         * tests/test-canonicalize-lgpl.c: Likewise.
2832         * tests/test-canonicalize.c: Likewise.
2833         * tests/test-carray_list.c: Likewise.
2834         * tests/test-ceilf1.c: Likewise.
2835         * tests/test-ceilf2.c: Likewise.
2836         * tests/test-ceill.c: Likewise.
2837         * tests/test-chown.c: Likewise.
2838         * tests/test-cloexec.c: Likewise.
2839         * tests/test-copy-acl.c: Likewise.
2840         * tests/test-copy-file.c: Likewise.
2841         * tests/test-count-one-bits.c: Likewise.
2842         * tests/test-dprintf-posix.c: Likewise.
2843         * tests/test-dup2.c: Likewise.
2844         * tests/test-dup3.c: Likewise.
2845         * tests/test-duplocale.c: Likewise.
2846         * tests/test-fbufmode.c: Likewise.
2847         * tests/test-fchdir.c: Likewise.
2848         * tests/test-fchownat.c: Likewise.
2849         * tests/test-fcntl-safer.c: Likewise.
2850         * tests/test-fcntl.c: Likewise.
2851         * tests/test-fdopendir.c: Likewise.
2852         * tests/test-fdutimensat.c: Likewise.
2853         * tests/test-fflush2.c: Likewise.
2854         * tests/test-file-has-acl.c: Likewise.
2855         * tests/test-filevercmp.c: Likewise.
2856         * tests/test-flock.c: Likewise.
2857         * tests/test-floorf1.c: Likewise.
2858         * tests/test-floorf2.c: Likewise.
2859         * tests/test-floorl.c: Likewise.
2860         * tests/test-fnmatch.c: Likewise.
2861         * tests/test-fopen.h: Likewise.
2862         * tests/test-fpending.c: Likewise.
2863         * tests/test-fprintf-posix.c: Likewise.
2864         * tests/test-fpurge.c: Likewise.
2865         * tests/test-freadable.c: Likewise.
2866         * tests/test-freadahead.c: Likewise.
2867         * tests/test-freading.c: Likewise.
2868         * tests/test-freadptr.c: Likewise.
2869         * tests/test-freadptr2.c: Likewise.
2870         * tests/test-freadseek.c: Likewise.
2871         * tests/test-freopen.c: Likewise.
2872         * tests/test-frexp.c: Likewise.
2873         * tests/test-frexpl.c: Likewise.
2874         * tests/test-fseek.c: Likewise.
2875         * tests/test-fseeko.c: Likewise.
2876         * tests/test-fstatat.c: Likewise.
2877         * tests/test-fstrcmp.c: Likewise.
2878         * tests/test-fsync.c: Likewise.
2879         * tests/test-ftell.c: Likewise.
2880         * tests/test-ftello.c: Likewise.
2881         * tests/test-func.c: Likewise.
2882         * tests/test-futimens.c: Likewise.
2883         * tests/test-fwritable.c: Likewise.
2884         * tests/test-fwriting.c: Likewise.
2885         * tests/test-getcwd.c: Likewise.
2886         * tests/test-getdate.c: Likewise.
2887         * tests/test-getdelim.c: Likewise.
2888         * tests/test-getdtablesize.c: Likewise.
2889         * tests/test-getgroups.c: Likewise.
2890         * tests/test-getline.c: Likewise.
2891         * tests/test-getndelim2.c: Likewise.
2892         * tests/test-glob.c: Likewise.
2893         * tests/test-hash.c: Likewise.
2894         * tests/test-i-ring.c: Likewise.
2895         * tests/test-iconv-utf.c: Likewise.
2896         * tests/test-iconv.c: Likewise.
2897         * tests/test-idpriv-drop.c: Likewise.
2898         * tests/test-idpriv-droptemp.c: Likewise.
2899         * tests/test-inet_ntop.c: Likewise.
2900         * tests/test-inet_pton.c: Likewise.
2901         * tests/test-isblank.c: Likewise.
2902         * tests/test-isfinite.c: Likewise.
2903         * tests/test-isinf.c: Likewise.
2904         * tests/test-isnan.c: Likewise.
2905         * tests/test-isnand.h: Likewise.
2906         * tests/test-isnanf.h: Likewise.
2907         * tests/test-isnanl.h: Likewise.
2908         * tests/test-lchown.c: Likewise.
2909         * tests/test-ldexpl.c: Likewise.
2910         * tests/test-link.c: Likewise.
2911         * tests/test-linkat.c: Likewise.
2912         * tests/test-linked_list.c: Likewise.
2913         * tests/test-linkedhash_list.c: Likewise.
2914         * tests/test-localename.c: Likewise.
2915         * tests/test-lseek.c: Likewise.
2916         * tests/test-lstat.c: Likewise.
2917         * tests/test-mbmemcasecmp.c: Likewise.
2918         * tests/test-mbmemcasecoll.c: Likewise.
2919         * tests/test-mbrtowc.c: Likewise.
2920         * tests/test-mbscasecmp.c: Likewise.
2921         * tests/test-mbscasestr1.c: Likewise.
2922         * tests/test-mbscasestr2.c: Likewise.
2923         * tests/test-mbscasestr3.c: Likewise.
2924         * tests/test-mbscasestr4.c: Likewise.
2925         * tests/test-mbschr.c: Likewise.
2926         * tests/test-mbscspn.c: Likewise.
2927         * tests/test-mbsinit.c: Likewise.
2928         * tests/test-mbsncasecmp.c: Likewise.
2929         * tests/test-mbsnrtowcs.c: Likewise.
2930         * tests/test-mbspbrk.c: Likewise.
2931         * tests/test-mbspcasecmp.c: Likewise.
2932         * tests/test-mbsrchr.c: Likewise.
2933         * tests/test-mbsrtowcs.c: Likewise.
2934         * tests/test-mbsspn.c: Likewise.
2935         * tests/test-mbsstr1.c: Likewise.
2936         * tests/test-mbsstr2.c: Likewise.
2937         * tests/test-mbsstr3.c: Likewise.
2938         * tests/test-memchr.c: Likewise.
2939         * tests/test-memchr2.c: Likewise.
2940         * tests/test-memcmp.c: Likewise.
2941         * tests/test-memmem.c: Likewise.
2942         * tests/test-memrchr.c: Likewise.
2943         * tests/test-mkdir.c: Likewise.
2944         * tests/test-mkdirat.c: Likewise.
2945         * tests/test-mkfifo.c: Likewise.
2946         * tests/test-mkfifoat.c: Likewise.
2947         * tests/test-mknod.c: Likewise.
2948         * tests/test-nanosleep.c: Likewise.
2949         * tests/test-nl_langinfo.c: Likewise.
2950         * tests/test-obstack-printf.c: Likewise.
2951         * tests/test-open.c: Likewise.
2952         * tests/test-openat.c: Likewise.
2953         * tests/test-pipe-filter-gi1.c: Likewise.
2954         * tests/test-pipe-filter-gi2-main.c: Likewise.
2955         * tests/test-pipe-filter-ii1.c: Likewise.
2956         * tests/test-pipe-filter-ii2-main.c: Likewise.
2957         * tests/test-pipe2.c: Likewise.
2958         * tests/test-popen.h: Likewise.
2959         * tests/test-posixtm.c: Likewise.
2960         * tests/test-pread.c: Likewise.
2961         * tests/test-printf-frexp.c: Likewise.
2962         * tests/test-printf-frexpl.c: Likewise.
2963         * tests/test-printf-posix.c: Likewise.
2964         * tests/test-priv-set.c: Likewise.
2965         * tests/test-quotearg.c: Likewise.
2966         * tests/test-random_r.c: Likewise.
2967         * tests/test-rawmemchr.c: Likewise.
2968         * tests/test-rbtree_list.c: Likewise.
2969         * tests/test-rbtree_oset.c: Likewise.
2970         * tests/test-rbtreehash_list.c: Likewise.
2971         * tests/test-readlink.c: Likewise.
2972         * tests/test-remove.c: Likewise.
2973         * tests/test-rename.c: Likewise.
2974         * tests/test-renameat.c: Likewise.
2975         * tests/test-rmdir.c: Likewise.
2976         * tests/test-round1.c: Likewise.
2977         * tests/test-roundf1.c: Likewise.
2978         * tests/test-roundl.c: Likewise.
2979         * tests/test-safe-alloc.c: Likewise.
2980         * tests/test-sameacls.c: Likewise.
2981         * tests/test-set-mode-acl.c: Likewise.
2982         * tests/test-setenv.c: Likewise.
2983         * tests/test-sigaction.c: Likewise.
2984         * tests/test-signbit.c: Likewise.
2985         * tests/test-sleep.c: Likewise.
2986         * tests/test-snprintf-posix.c: Likewise.
2987         * tests/test-snprintf.c: Likewise.
2988         * tests/test-sprintf-posix.c: Likewise.
2989         * tests/test-stat-time.c: Likewise.
2990         * tests/test-stat.c: Likewise.
2991         * tests/test-strcasestr.c: Likewise.
2992         * tests/test-strchrnul.c: Likewise.
2993         * tests/test-strerror.c: Likewise.
2994         * tests/test-striconv.c: Likewise.
2995         * tests/test-striconveh.c: Likewise.
2996         * tests/test-striconveha.c: Likewise.
2997         * tests/test-strsignal.c: Likewise.
2998         * tests/test-strstr.c: Likewise.
2999         * tests/test-strtod.c: Likewise.
3000         * tests/test-strverscmp.c: Likewise.
3001         * tests/test-symlink.c: Likewise.
3002         * tests/test-symlinkat.c: Likewise.
3003         * tests/test-trunc1.c: Likewise.
3004         * tests/test-trunc2.c: Likewise.
3005         * tests/test-truncf1.c: Likewise.
3006         * tests/test-truncf2.c: Likewise.
3007         * tests/test-truncl.c: Likewise.
3008         * tests/test-uname.c: Likewise.
3009         * tests/test-unlink.c: Likewise.
3010         * tests/test-unlinkat.c: Likewise.
3011         * tests/test-unsetenv.c: Likewise.
3012         * tests/test-usleep.c: Likewise.
3013         * tests/test-utimens.c: Likewise.
3014         * tests/test-utimensat.c: Likewise.
3015         * tests/test-vasnprintf-posix.c: Likewise.
3016         * tests/test-vasnprintf-posix2.c: Likewise.
3017         * tests/test-vasnprintf.c: Likewise.
3018         * tests/test-vasprintf-posix.c: Likewise.
3019         * tests/test-vasprintf.c: Likewise.
3020         * tests/test-vdprintf-posix.c: Likewise.
3021         * tests/test-vfprintf-posix.c: Likewise.
3022         * tests/test-vprintf-posix.c: Likewise.
3023         * tests/test-vsnprintf-posix.c: Likewise.
3024         * tests/test-vsnprintf.c: Likewise.
3025         * tests/test-vsprintf-posix.c: Likewise.
3026         * tests/test-wcrtomb.c: Likewise.
3027         * tests/test-wcsnrtombs.c: Likewise.
3028         * tests/test-wcsrtombs.c: Likewise.
3029         * tests/test-wctype.c: Likewise.
3030         * tests/test-wcwidth.c: Likewise.
3031         * tests/test-xfprintf-posix.c: Likewise.
3032         * tests/test-xmemdup0.c: Likewise.
3033         * tests/test-xprintf-posix.c: Likewise.
3034         * tests/test-xvasprintf.c: Likewise.
3035         * tests/unicase/test-locale-language.c: Likewise.
3036         * tests/unicase/test-mapping-part1.h: Likewise.
3037         * tests/unicase/test-predicate-part1.h: Likewise.
3038         * tests/unicase/test-u8-casecmp.c: Likewise.
3039         * tests/unicase/test-u8-casecoll.c: Likewise.
3040         * tests/unicase/test-u8-casefold.c: Likewise.
3041         * tests/unicase/test-u8-is-cased.c: Likewise.
3042         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3043         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3044         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3045         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3046         * tests/unicase/test-u8-tolower.c: Likewise.
3047         * tests/unicase/test-u8-totitle.c: Likewise.
3048         * tests/unicase/test-u8-toupper.c: Likewise.
3049         * tests/unicase/test-u16-casecmp.c: Likewise.
3050         * tests/unicase/test-u16-casecoll.c: Likewise.
3051         * tests/unicase/test-u16-casefold.c: Likewise.
3052         * tests/unicase/test-u16-is-cased.c: Likewise.
3053         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3054         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3055         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3056         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3057         * tests/unicase/test-u16-tolower.c: Likewise.
3058         * tests/unicase/test-u16-totitle.c: Likewise.
3059         * tests/unicase/test-u16-toupper.c: Likewise.
3060         * tests/unicase/test-u32-casecmp.c: Likewise.
3061         * tests/unicase/test-u32-casecoll.c: Likewise.
3062         * tests/unicase/test-u32-casefold.c: Likewise.
3063         * tests/unicase/test-u32-is-cased.c: Likewise.
3064         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3065         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3066         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3067         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3068         * tests/unicase/test-u32-tolower.c: Likewise.
3069         * tests/unicase/test-u32-totitle.c: Likewise.
3070         * tests/unicase/test-u32-toupper.c: Likewise.
3071         * tests/unicase/test-ulc-casecmp.c: Likewise.
3072         * tests/unicase/test-ulc-casecoll.c: Likewise.
3073         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3074         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3075         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3076         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3077         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3078         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3079         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3080         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3081         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3082         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3083         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3084         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3085         * tests/unictype/test-bidi_byname.c: Likewise.
3086         * tests/unictype/test-bidi_name.c: Likewise.
3087         * tests/unictype/test-bidi_of.c: Likewise.
3088         * tests/unictype/test-bidi_test.c: Likewise.
3089         * tests/unictype/test-block_list.c: Likewise.
3090         * tests/unictype/test-block_of.c: Likewise.
3091         * tests/unictype/test-block_test.c: Likewise.
3092         * tests/unictype/test-categ_and.c: Likewise.
3093         * tests/unictype/test-categ_and_not.c: Likewise.
3094         * tests/unictype/test-categ_byname.c: Likewise.
3095         * tests/unictype/test-categ_name.c: Likewise.
3096         * tests/unictype/test-categ_none.c: Likewise.
3097         * tests/unictype/test-categ_of.c: Likewise.
3098         * tests/unictype/test-categ_or.c: Likewise.
3099         * tests/unictype/test-categ_test_withtable.c: Likewise.
3100         * tests/unictype/test-combining.c: Likewise.
3101         * tests/unictype/test-decdigit.c: Likewise.
3102         * tests/unictype/test-digit.c: Likewise.
3103         * tests/unictype/test-mirror.c: Likewise.
3104         * tests/unictype/test-numeric.c: Likewise.
3105         * tests/unictype/test-pr_byname.c: Likewise.
3106         * tests/unictype/test-pr_test.c: Likewise.
3107         * tests/unictype/test-predicate-part1.h: Likewise.
3108         * tests/unictype/test-scripts.c: Likewise.
3109         * tests/unictype/test-sy_c_ident.c: Likewise.
3110         * tests/unictype/test-sy_java_ident.c: Likewise.
3111         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3112         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3113         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3114         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3115         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3116         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3117         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3118         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3119         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3120         * tests/uninorm/test-compat-decomposition.c: Likewise.
3121         * tests/uninorm/test-composition.c: Likewise.
3122         * tests/uninorm/test-decomposing-form.c: Likewise.
3123         * tests/uninorm/test-decomposition.c: Likewise.
3124         * tests/uninorm/test-u8-nfc.c: Likewise.
3125         * tests/uninorm/test-u8-nfd.c: Likewise.
3126         * tests/uninorm/test-u8-nfkc.c: Likewise.
3127         * tests/uninorm/test-u8-nfkd.c: Likewise.
3128         * tests/uninorm/test-u8-normcmp.c: Likewise.
3129         * tests/uninorm/test-u8-normcoll.c: Likewise.
3130         * tests/uninorm/test-u16-nfc.c: Likewise.
3131         * tests/uninorm/test-u16-nfd.c: Likewise.
3132         * tests/uninorm/test-u16-nfkc.c: Likewise.
3133         * tests/uninorm/test-u16-nfkd.c: Likewise.
3134         * tests/uninorm/test-u16-normcmp.c: Likewise.
3135         * tests/uninorm/test-u16-normcoll.c: Likewise.
3136         * tests/uninorm/test-u32-nfc.c: Likewise.
3137         * tests/uninorm/test-u32-nfd.c: Likewise.
3138         * tests/uninorm/test-u32-nfkc.c: Likewise.
3139         * tests/uninorm/test-u32-nfkd.c: Likewise.
3140         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3141         * tests/uninorm/test-u32-normcmp.c: Likewise.
3142         * tests/uninorm/test-u32-normcoll.c: Likewise.
3143         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3144         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3145         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3146         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3147         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3148         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3149         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3150         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3151         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3152         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3153         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3154         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3155         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3156         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3157         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3158         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3159         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3160         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3161         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3162         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3163         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3164         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3165         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3166         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3167         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3168         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3169         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3170         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3171         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3172         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3173         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3174         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3175         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3176         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3177         * tests/uniwidth/test-u8-width.c: Likewise.
3178         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3179         * tests/uniwidth/test-u16-width.c: Likewise.
3180         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3181         * tests/uniwidth/test-u32-width.c: Likewise.
3182         * tests/uniwidth/test-uc_width.c: Likewise.
3183         * tests/uniwidth/test-uc_width2.c: Likewise.
3184         * modules/acl-tests (Files): Add tests/macros.h.
3185         * modules/areadlink-tests (Files): Likewise.
3186         * modules/areadlink-with-size-tests (Files): Likewise.
3187         * modules/areadlinkat-tests (Files): Likewise.
3188         * modules/areadlinkat-with-size-tests (Files): Likewise.
3189         * modules/argmatch-tests (Files): Likewise.
3190         * modules/argv-iter-tests (Files): Likewise.
3191         * modules/array-list-tests (Files): Likewise.
3192         * modules/array-mergesort-tests (Files): Likewise.
3193         * modules/array-oset-tests (Files): Likewise.
3194         * modules/avltree-list-tests (Files): Likewise.
3195         * modules/avltree-oset-tests (Files): Likewise.
3196         * modules/avltreehash-list-tests (Files): Likewise.
3197         * modules/base64-tests (Files): Likewise.
3198         * modules/binary-io-tests (Files): Likewise.
3199         * modules/bitrotate-tests (Files): Likewise.
3200         * modules/btowc-tests (Files): Likewise.
3201         * modules/byteswap-tests (Files): Likewise.
3202         * modules/c-ctype-tests (Files): Likewise.
3203         * modules/c-stack-tests (Files): Likewise.
3204         * modules/c-strcase-tests (Files): Likewise.
3205         * modules/c-strcasestr-tests (Files): Likewise.
3206         * modules/c-strstr-tests (Files): Likewise.
3207         * modules/canonicalize-lgpl-tests (Files): Likewise.
3208         * modules/canonicalize-tests (Files): Likewise.
3209         * modules/carray-list-tests (Files): Likewise.
3210         * modules/ceilf-tests (Files): Likewise.
3211         * modules/ceill-tests (Files): Likewise.
3212         * modules/chown-tests (Files): Likewise.
3213         * modules/cloexec-tests (Files): Likewise.
3214         * modules/copy-file-tests (Files): Likewise.
3215         * modules/count-one-bits-tests (Files): Likewise.
3216         * modules/dprintf-posix-tests (Files): Likewise.
3217         * modules/dup2-tests (Files): Likewise.
3218         * modules/dup3-tests (Files): Likewise.
3219         * modules/duplocale-tests (Files): Likewise.
3220         * modules/fbufmode-tests (Files): Likewise.
3221         * modules/fchdir-tests (Files): Likewise.
3222         * modules/fcntl-safer-tests (Files): Likewise.
3223         * modules/fcntl-tests (Files): Likewise.
3224         * modules/fdopendir-tests (Files): Likewise.
3225         * modules/fdutimensat-tests (Files): Likewise.
3226         * modules/fflush-tests (Files): Likewise.
3227         * modules/filevercmp-tests (Files): Likewise.
3228         * modules/flock-tests (Files): Likewise.
3229         * modules/floorf-tests (Files): Likewise.
3230         * modules/floorl-tests (Files): Likewise.
3231         * modules/fnmatch-tests (Files): Likewise.
3232         * modules/fopen-safer-tests (Files): Likewise.
3233         * modules/fopen-tests (Files): Likewise.
3234         * modules/fpending-tests (Files): Likewise.
3235         * modules/fprintf-posix-tests (Files): Likewise.
3236         * modules/fpurge-tests (Files): Likewise.
3237         * modules/freadable-tests (Files): Likewise.
3238         * modules/freadahead-tests (Files): Likewise.
3239         * modules/freading-tests (Files): Likewise.
3240         * modules/freadptr-tests (Files): Likewise.
3241         * modules/freadseek-tests (Files): Likewise.
3242         * modules/freopen-tests (Files): Likewise.
3243         * modules/frexp-nolibm-tests (Files): Likewise.
3244         * modules/frexp-tests (Files): Likewise.
3245         * modules/frexpl-nolibm-tests (Files): Likewise.
3246         * modules/frexpl-tests (Files): Likewise.
3247         * modules/fseek-tests (Files): Likewise.
3248         * modules/fseeko-tests (Files): Likewise.
3249         * modules/fstrcmp-tests (Files): Likewise.
3250         * modules/fsync-tests (Files): Likewise.
3251         * modules/ftell-tests (Files): Likewise.
3252         * modules/ftello-tests (Files): Likewise.
3253         * modules/func-tests (Files): Likewise.
3254         * modules/futimens-tests (Files): Likewise.
3255         * modules/fwritable-tests (Files): Likewise.
3256         * modules/fwriting-tests (Files): Likewise.
3257         * modules/getcwd-tests (Files): Likewise.
3258         * modules/getdate-tests (Files): Likewise.
3259         * modules/getdelim-tests (Files): Likewise.
3260         * modules/getdtablesize-tests (Files): Likewise.
3261         * modules/getgroups-tests (Files): Likewise.
3262         * modules/getline-tests (Files): Likewise.
3263         * modules/getndelim2-tests (Files): Likewise.
3264         * modules/glob-tests (Files): Likewise.
3265         * modules/hash-tests (Files): Likewise.
3266         * modules/i-ring-tests (Files): Likewise.
3267         * modules/iconv-tests (Files): Likewise.
3268         * modules/iconv_open-utf-tests (Files): Likewise.
3269         * modules/idpriv-drop-tests (Files): Likewise.
3270         * modules/idpriv-droptemp-tests (Files): Likewise.
3271         * modules/inet_ntop-tests (Files): Likewise.
3272         * modules/inet_pton-tests (Files): Likewise.
3273         * modules/isblank-tests (Files): Likewise.
3274         * modules/isfinite-tests (Files): Likewise.
3275         * modules/isinf-tests (Files): Likewise.
3276         * modules/isnan-tests (Files): Likewise.
3277         * modules/isnand-nolibm-tests (Files): Likewise.
3278         * modules/isnand-tests (Files): Likewise.
3279         * modules/isnanf-nolibm-tests (Files): Likewise.
3280         * modules/isnanf-tests (Files): Likewise.
3281         * modules/isnanl-nolibm-tests (Files): Likewise.
3282         * modules/isnanl-tests (Files): Likewise.
3283         * modules/lchown-tests (Files): Likewise.
3284         * modules/ldexpl-tests (Files): Likewise.
3285         * modules/link-tests (Files): Likewise.
3286         * modules/linkat-tests (Files): Likewise.
3287         * modules/linked-list-tests (Files): Likewise.
3288         * modules/linkedhash-list-tests (Files): Likewise.
3289         * modules/localename-tests (Files): Likewise.
3290         * modules/lseek-tests (Files): Likewise.
3291         * modules/lstat-tests (Files): Likewise.
3292         * modules/mbmemcasecmp-tests (Files): Likewise.
3293         * modules/mbmemcasecoll-tests (Files): Likewise.
3294         * modules/mbrtowc-tests (Files): Likewise.
3295         * modules/mbscasecmp-tests (Files): Likewise.
3296         * modules/mbscasestr-tests (Files): Likewise.
3297         * modules/mbschr-tests (Files): Likewise.
3298         * modules/mbscspn-tests (Files): Likewise.
3299         * modules/mbsinit-tests (Files): Likewise.
3300         * modules/mbsncasecmp-tests (Files): Likewise.
3301         * modules/mbsnrtowcs-tests (Files): Likewise.
3302         * modules/mbspbrk-tests (Files): Likewise.
3303         * modules/mbspcasecmp-tests (Files): Likewise.
3304         * modules/mbsrchr-tests (Files): Likewise.
3305         * modules/mbsrtowcs-tests (Files): Likewise.
3306         * modules/mbsspn-tests (Files): Likewise.
3307         * modules/mbsstr-tests (Files): Likewise.
3308         * modules/memchr-tests (Files): Likewise.
3309         * modules/memchr2-tests (Files): Likewise.
3310         * modules/memcmp-tests (Files): Likewise.
3311         * modules/memmem-tests (Files): Likewise.
3312         * modules/memrchr-tests (Files): Likewise.
3313         * modules/mkdir-tests (Files): Likewise.
3314         * modules/mkfifo-tests (Files): Likewise.
3315         * modules/mkfifoat-tests (Files): Likewise.
3316         * modules/mknod-tests (Files): Likewise.
3317         * modules/nanosleep-tests (Files): Likewise.
3318         * modules/nl_langinfo-tests (Files): Likewise.
3319         * modules/obstack-printf-tests (Files): Likewise.
3320         * modules/open-tests (Files): Likewise.
3321         * modules/openat-tests (Files): Likewise.
3322         * modules/pipe-filter-gi-tests (Files): Likewise.
3323         * modules/pipe-filter-ii-tests (Files): Likewise.
3324         * modules/pipe2-tests (Files): Likewise.
3325         * modules/popen-safer-tests (Files): Likewise.
3326         * modules/popen-tests (Files): Likewise.
3327         * modules/posixtm-tests (Files): Likewise.
3328         * modules/pread-tests (Files): Likewise.
3329         * modules/printf-frexp-tests (Files): Likewise.
3330         * modules/printf-frexpl-tests (Files): Likewise.
3331         * modules/printf-posix-tests (Files): Likewise.
3332         * modules/priv-set-tests (Files): Likewise.
3333         * modules/quotearg-tests (Files): Likewise.
3334         * modules/random_r-tests (Files): Likewise.
3335         * modules/rawmemchr-tests (Files): Likewise.
3336         * modules/rbtree-list-tests (Files): Likewise.
3337         * modules/rbtree-oset-tests (Files): Likewise.
3338         * modules/rbtreehash-list-tests (Files): Likewise.
3339         * modules/readlink-tests (Files): Likewise.
3340         * modules/remove-tests (Files): Likewise.
3341         * modules/rename-tests (Files): Likewise.
3342         * modules/renameat-tests (Files): Likewise.
3343         * modules/rmdir-tests (Files): Likewise.
3344         * modules/round-tests (Files): Likewise.
3345         * modules/roundf-tests (Files): Likewise.
3346         * modules/roundl-tests (Files): Likewise.
3347         * modules/safe-alloc-tests (Files): Likewise.
3348         * modules/setenv-tests (Files): Likewise.
3349         * modules/sigaction-tests (Files): Likewise.
3350         * modules/signbit-tests (Files): Likewise.
3351         * modules/sleep-tests (Files): Likewise.
3352         * modules/snprintf-posix-tests (Files): Likewise.
3353         * modules/snprintf-tests (Files): Likewise.
3354         * modules/sprintf-posix-tests (Files): Likewise.
3355         * modules/stat-tests (Files): Likewise.
3356         * modules/stat-time-tests (Files): Likewise.
3357         * modules/strcasestr-tests (Files): Likewise.
3358         * modules/strchrnul-tests (Files): Likewise.
3359         * modules/strerror-tests (Files): Likewise.
3360         * modules/striconv-tests (Files): Likewise.
3361         * modules/striconveh-tests (Files): Likewise.
3362         * modules/striconveha-tests (Files): Likewise.
3363         * modules/strsignal-tests (Files): Likewise.
3364         * modules/strstr-tests (Files): Likewise.
3365         * modules/strtod-tests (Files): Likewise.
3366         * modules/strverscmp-tests (Files): Likewise.
3367         * modules/symlink-tests (Files): Likewise.
3368         * modules/symlinkat-tests (Files): Likewise.
3369         * modules/trunc-tests (Files): Likewise.
3370         * modules/truncf-tests (Files): Likewise.
3371         * modules/truncl-tests (Files): Likewise.
3372         * modules/uname-tests (Files): Likewise.
3373         * modules/unicase/cased-tests (Files): Likewise.
3374         * modules/unicase/ignorable-tests (Files): Likewise.
3375         * modules/unicase/locale-language-tests (Files): Likewise.
3376         * modules/unicase/tolower-tests (Files): Likewise.
3377         * modules/unicase/totitle-tests (Files): Likewise.
3378         * modules/unicase/toupper-tests (Files): Likewise.
3379         * modules/unicase/u8-casecmp-tests (Files): Likewise.
3380         * modules/unicase/u8-casecoll-tests (Files): Likewise.
3381         * modules/unicase/u8-casefold-tests (Files): Likewise.
3382         * modules/unicase/u8-is-cased-tests (Files): Likewise.
3383         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3384         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3385         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3386         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3387         * modules/unicase/u8-tolower-tests (Files): Likewise.
3388         * modules/unicase/u8-totitle-tests (Files): Likewise.
3389         * modules/unicase/u8-toupper-tests (Files): Likewise.
3390         * modules/unicase/u16-casecmp-tests (Files): Likewise.
3391         * modules/unicase/u16-casecoll-tests (Files): Likewise.
3392         * modules/unicase/u16-casefold-tests (Files): Likewise.
3393         * modules/unicase/u16-is-cased-tests (Files): Likewise.
3394         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3395         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3396         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3397         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3398         * modules/unicase/u16-tolower-tests (Files): Likewise.
3399         * modules/unicase/u16-totitle-tests (Files): Likewise.
3400         * modules/unicase/u16-toupper-tests (Files): Likewise.
3401         * modules/unicase/u32-casecmp-tests (Files): Likewise.
3402         * modules/unicase/u32-casecoll-tests (Files): Likewise.
3403         * modules/unicase/u32-casefold-tests (Files): Likewise.
3404         * modules/unicase/u32-is-cased-tests (Files): Likewise.
3405         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3406         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3407         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3408         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3409         * modules/unicase/u32-tolower-tests (Files): Likewise.
3410         * modules/unicase/u32-totitle-tests (Files): Likewise.
3411         * modules/unicase/u32-toupper-tests (Files): Likewise.
3412         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3413         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3414         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3415         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3416         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3417         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3418         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3419         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3420         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3421         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3422         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3423         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3424         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3425         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3426         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3427         * modules/unictype/bidicategory-name-tests (Files): Likewise.
3428         * modules/unictype/bidicategory-of-tests (Files): Likewise.
3429         * modules/unictype/bidicategory-test-tests (Files): Likewise.
3430         * modules/unictype/block-list-tests (Files): Likewise.
3431         * modules/unictype/block-of-tests (Files): Likewise.
3432         * modules/unictype/block-test-tests (Files): Likewise.
3433         * modules/unictype/category-C-tests (Files): Likewise.
3434         * modules/unictype/category-Cc-tests (Files): Likewise.
3435         * modules/unictype/category-Cf-tests (Files): Likewise.
3436         * modules/unictype/category-Cn-tests (Files): Likewise.
3437         * modules/unictype/category-Co-tests (Files): Likewise.
3438         * modules/unictype/category-Cs-tests (Files): Likewise.
3439         * modules/unictype/category-L-tests (Files): Likewise.
3440         * modules/unictype/category-Ll-tests (Files): Likewise.
3441         * modules/unictype/category-Lm-tests (Files): Likewise.
3442         * modules/unictype/category-Lo-tests (Files): Likewise.
3443         * modules/unictype/category-Lt-tests (Files): Likewise.
3444         * modules/unictype/category-Lu-tests (Files): Likewise.
3445         * modules/unictype/category-M-tests (Files): Likewise.
3446         * modules/unictype/category-Mc-tests (Files): Likewise.
3447         * modules/unictype/category-Me-tests (Files): Likewise.
3448         * modules/unictype/category-Mn-tests (Files): Likewise.
3449         * modules/unictype/category-N-tests (Files): Likewise.
3450         * modules/unictype/category-Nd-tests (Files): Likewise.
3451         * modules/unictype/category-Nl-tests (Files): Likewise.
3452         * modules/unictype/category-No-tests (Files): Likewise.
3453         * modules/unictype/category-P-tests (Files): Likewise.
3454         * modules/unictype/category-Pc-tests (Files): Likewise.
3455         * modules/unictype/category-Pd-tests (Files): Likewise.
3456         * modules/unictype/category-Pe-tests (Files): Likewise.
3457         * modules/unictype/category-Pf-tests (Files): Likewise.
3458         * modules/unictype/category-Pi-tests (Files): Likewise.
3459         * modules/unictype/category-Po-tests (Files): Likewise.
3460         * modules/unictype/category-Ps-tests (Files): Likewise.
3461         * modules/unictype/category-S-tests (Files): Likewise.
3462         * modules/unictype/category-Sc-tests (Files): Likewise.
3463         * modules/unictype/category-Sk-tests (Files): Likewise.
3464         * modules/unictype/category-Sm-tests (Files): Likewise.
3465         * modules/unictype/category-So-tests (Files): Likewise.
3466         * modules/unictype/category-Z-tests (Files): Likewise.
3467         * modules/unictype/category-Zl-tests (Files): Likewise.
3468         * modules/unictype/category-Zp-tests (Files): Likewise.
3469         * modules/unictype/category-Zs-tests (Files): Likewise.
3470         * modules/unictype/category-and-not-tests (Files): Likewise.
3471         * modules/unictype/category-and-tests (Files): Likewise.
3472         * modules/unictype/category-byname-tests (Files): Likewise.
3473         * modules/unictype/category-name-tests (Files): Likewise.
3474         * modules/unictype/category-none-tests (Files): Likewise.
3475         * modules/unictype/category-of-tests (Files): Likewise.
3476         * modules/unictype/category-or-tests (Files): Likewise.
3477         * modules/unictype/category-test-withtable-tests (Files): Likewise.
3478         * modules/unictype/combining-class-tests (Files): Likewise.
3479         * modules/unictype/ctype-alnum-tests (Files): Likewise.
3480         * modules/unictype/ctype-alpha-tests (Files): Likewise.
3481         * modules/unictype/ctype-blank-tests (Files): Likewise.
3482         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3483         * modules/unictype/ctype-digit-tests (Files): Likewise.
3484         * modules/unictype/ctype-graph-tests (Files): Likewise.
3485         * modules/unictype/ctype-lower-tests (Files): Likewise.
3486         * modules/unictype/ctype-print-tests (Files): Likewise.
3487         * modules/unictype/ctype-punct-tests (Files): Likewise.
3488         * modules/unictype/ctype-space-tests (Files): Likewise.
3489         * modules/unictype/ctype-upper-tests (Files): Likewise.
3490         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3491         * modules/unictype/decimal-digit-tests (Files): Likewise.
3492         * modules/unictype/digit-tests (Files): Likewise.
3493         * modules/unictype/mirror-tests (Files): Likewise.
3494         * modules/unictype/numeric-tests (Files): Likewise.
3495         * modules/unictype/property-alphabetic-tests (Files): Likewise.
3496         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3497         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3498         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3499         Likewise.
3500         * modules/unictype/property-bidi-block-separator-tests (Files):
3501         Likewise.
3502         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3503         Likewise.
3504         * modules/unictype/property-bidi-common-separator-tests (Files):
3505         Likewise.
3506         * modules/unictype/property-bidi-control-tests (Files): Likewise.
3507         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3508         Likewise.
3509         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3510         Likewise.
3511         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3512         Likewise.
3513         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3514         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3515         Likewise.
3516         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3517         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
3518         Likewise.
3519         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
3520         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
3521         * modules/unictype/property-bidi-segment-separator-tests (Files):
3522         Likewise.
3523         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
3524         * modules/unictype/property-byname-tests (Files): Likewise.
3525         * modules/unictype/property-combining-tests (Files): Likewise.
3526         * modules/unictype/property-composite-tests (Files): Likewise.
3527         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
3528         * modules/unictype/property-dash-tests (Files): Likewise.
3529         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
3530         * modules/unictype/property-default-ignorable-code-point-tests (Files):
3531         Likewise.
3532         * modules/unictype/property-deprecated-tests (Files): Likewise.
3533         * modules/unictype/property-diacritic-tests (Files): Likewise.
3534         * modules/unictype/property-extender-tests (Files): Likewise.
3535         * modules/unictype/property-format-control-tests (Files): Likewise.
3536         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
3537         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
3538         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
3539         * modules/unictype/property-hex-digit-tests (Files): Likewise.
3540         * modules/unictype/property-hyphen-tests (Files): Likewise.
3541         * modules/unictype/property-id-continue-tests (Files): Likewise.
3542         * modules/unictype/property-id-start-tests (Files): Likewise.
3543         * modules/unictype/property-ideographic-tests (Files): Likewise.
3544         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
3545         * modules/unictype/property-ids-trinary-operator-tests (Files):
3546         Likewise.
3547         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
3548         * modules/unictype/property-iso-control-tests (Files): Likewise.
3549         * modules/unictype/property-join-control-tests (Files): Likewise.
3550         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
3551         * modules/unictype/property-line-separator-tests (Files): Likewise.
3552         * modules/unictype/property-logical-order-exception-tests (Files):
3553         Likewise.
3554         * modules/unictype/property-lowercase-tests (Files): Likewise.
3555         * modules/unictype/property-math-tests (Files): Likewise.
3556         * modules/unictype/property-non-break-tests (Files): Likewise.
3557         * modules/unictype/property-not-a-character-tests (Files): Likewise.
3558         * modules/unictype/property-numeric-tests (Files): Likewise.
3559         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
3560         * modules/unictype/property-other-default-ignorable-code-point-tests
3561         (Files): Likewise.
3562         * modules/unictype/property-other-grapheme-extend-tests (Files):
3563         Likewise.
3564         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
3565         * modules/unictype/property-other-id-start-tests (Files): Likewise.
3566         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
3567         * modules/unictype/property-other-math-tests (Files): Likewise.
3568         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
3569         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
3570         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
3571         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
3572         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
3573         * modules/unictype/property-private-use-tests (Files): Likewise.
3574         * modules/unictype/property-punctuation-tests (Files): Likewise.
3575         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
3576         * modules/unictype/property-radical-tests (Files): Likewise.
3577         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
3578         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
3579         * modules/unictype/property-space-tests (Files): Likewise.
3580         * modules/unictype/property-terminal-punctuation-tests (Files):
3581         Likewise.
3582         * modules/unictype/property-test-tests (Files): Likewise.
3583         * modules/unictype/property-titlecase-tests (Files): Likewise.
3584         * modules/unictype/property-unassigned-code-value-tests (Files):
3585         Likewise.
3586         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
3587         * modules/unictype/property-uppercase-tests (Files): Likewise.
3588         * modules/unictype/property-variation-selector-tests (Files): Likewise.
3589         * modules/unictype/property-white-space-tests (Files): Likewise.
3590         * modules/unictype/property-xid-continue-tests (Files): Likewise.
3591         * modules/unictype/property-xid-start-tests (Files): Likewise.
3592         * modules/unictype/property-zero-width-tests (Files): Likewise.
3593         * modules/unictype/scripts-tests (Files): Likewise.
3594         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
3595         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
3596         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
3597         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
3598         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
3599         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
3600         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
3601         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
3602         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
3603         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
3604         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
3605         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
3606         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
3607         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
3608         * modules/uninorm/composition-tests (Files): Likewise.
3609         * modules/uninorm/decomposing-form-tests (Files): Likewise.
3610         * modules/uninorm/decomposition-tests (Files): Likewise.
3611         * modules/uninorm/filter-tests (Files): Likewise.
3612         * modules/uninorm/nfc-tests (Files): Likewise.
3613         * modules/uninorm/nfd-tests (Files): Likewise.
3614         * modules/uninorm/nfkc-tests (Files): Likewise.
3615         * modules/uninorm/nfkd-tests (Files): Likewise.
3616         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
3617         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
3618         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
3619         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
3620         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
3621         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
3622         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
3623         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3624         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
3625         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
3626         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
3627         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
3628         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3629         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
3630         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
3631         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
3632         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
3633         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3634         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
3635         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
3636         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
3637         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
3638         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3639         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
3640         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
3641         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
3642         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
3643         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
3644         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
3645         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
3646         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
3647         * modules/uniwidth/u8-width-tests (Files): Likewise.
3648         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
3649         * modules/uniwidth/u16-width-tests (Files): Likewise.
3650         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
3651         * modules/uniwidth/u32-width-tests (Files): Likewise.
3652         * modules/uniwidth/width-tests (Files): Likewise.
3653         * modules/unlink-tests (Files): Likewise.
3654         * modules/unsetenv-tests (Files): Likewise.
3655         * modules/usleep-tests (Files): Likewise.
3656         * modules/utimens-tests (Files): Likewise.
3657         * modules/utimensat-tests (Files): Likewise.
3658         * modules/vasnprintf-posix-tests (Files): Likewise.
3659         * modules/vasnprintf-tests (Files): Likewise.
3660         * modules/vasprintf-posix-tests (Files): Likewise.
3661         * modules/vasprintf-tests (Files): Likewise.
3662         * modules/vdprintf-posix-tests (Files): Likewise.
3663         * modules/vfprintf-posix-tests (Files): Likewise.
3664         * modules/vprintf-posix-tests (Files): Likewise.
3665         * modules/vsnprintf-posix-tests (Files): Likewise.
3666         * modules/vsnprintf-tests (Files): Likewise.
3667         * modules/vsprintf-posix-tests (Files): Likewise.
3668         * modules/wcrtomb-tests (Files): Likewise.
3669         * modules/wcsnrtombs-tests (Files): Likewise.
3670         * modules/wcsrtombs-tests (Files): Likewise.
3671         * modules/wctype-tests (Files): Likewise.
3672         * modules/wcwidth-tests (Files): Likewise.
3673         * modules/xmemdup0-tests (Files): Likewise.
3674         * modules/xprintf-posix-tests (Files): Likewise.
3675         * modules/xvasprintf-tests (Files): Likewise.
3676
3677 2009-12-24  Eric Blake  <ebb9@byu.net>
3678
3679         test-nanosleep: fix typo
3680         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
3681         patch.
3682         Reported by Bruno Haible.
3683
3684 2009-12-24  Bruno Haible  <bruno@clisp.org>
3685
3686         Reduce namespace pollution on glibc systems.
3687         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
3688         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
3689         systems.
3690         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
3691         <getopt.h> on glibc systems.
3692         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
3693         systems.
3694         * lib/fcntl.c: Include <unistd.h> here instead.
3695
3696 2009-12-24  Bruno Haible  <bruno@clisp.org>
3697
3698         * lib/stdlib.in.h (includes): Fix typo in today's commit.
3699
3700 2009-12-24  Eric Blake  <ebb9@byu.net>
3701
3702         tests: add signature checks
3703         * tests/signature.h (SIGNATURE_CHECK): New file.
3704         * modules/atexit-tests (Files): Use it.
3705         * modules/btowc-tests (Files): Likewise.
3706         * modules/canonicalize-lgpl-tests (Files): Likewise.
3707         * modules/ceilf-tests (Files): Likewise.
3708         * modules/ceill-tests (Files): Likewise.
3709         * modules/chown-tests (Files): Likewise.
3710         * modules/dprintf-posix-tests (Files): Likewise.
3711         * modules/dup2-tests (Files): Likewise.
3712         * modules/dup3-tests (Files): Likewise.
3713         * modules/duplocale-tests (Files): Likewise.
3714         * modules/fchdir-tests (Files): Likewise.
3715         * modules/fcntl-tests (Files): Likewise.
3716         * modules/fdopendir-tests (Files): Likewise.
3717         * modules/fflush-tests (Files): Likewise.
3718         * modules/flock-tests (Files): Likewise.
3719         * modules/floorf-tests (Files): Likewise.
3720         * modules/floorl-tests (Files): Likewise.
3721         * modules/fnmatch-tests (Files): Likewise.
3722         * modules/fopen-tests (Files): Likewise.
3723         * modules/fprintf-posix-tests (Files): Likewise.
3724         * modules/freopen-tests (Files): Likewise.
3725         * modules/frexp-nolibm-tests (Files): Likewise.
3726         * modules/frexp-tests (Files): Likewise.
3727         * modules/frexpl-nolibm-tests (Files): Likewise.
3728         * modules/frexpl-tests (Files): Likewise.
3729         * modules/fseek-tests (Files): Likewise.
3730         * modules/fseeko-tests (Files): Likewise.
3731         * modules/fsync-tests (Files): Likewise.
3732         * modules/ftell-tests (Files): Likewise.
3733         * modules/ftello-tests (Files): Likewise.
3734         * modules/futimens-tests (Files): Likewise.
3735         * modules/getaddrinfo-tests (Files): Likewise.
3736         * modules/getcwd-tests (Files): Likewise.
3737         * modules/getdelim-tests (Files): Likewise.
3738         * modules/getdtablesize-tests (Files): Likewise.
3739         * modules/getgroups-tests (Files): Likewise.
3740         * modules/gethostname-tests (Files): Likewise.
3741         * modules/getline-tests (Files): Likewise.
3742         * modules/getopt-posix-tests (Files): Likewise.
3743         * modules/gettimeofday-tests (Files): Likewise.
3744         * modules/glob-tests (Files): Likewise.
3745         * modules/iconv-tests (Files): Likewise.
3746         * modules/inet_ntop-tests (Files): Likewise.
3747         * modules/inet_pton-tests (Files): Likewise.
3748         * modules/isblank-tests (Files): Likewise.
3749         * modules/lchown-tests (Files): Likewise.
3750         * modules/ldexpl-tests (Files): Likewise.
3751         * modules/link-tests (Files): Likewise.
3752         * modules/linkat-tests (Files): Likewise.
3753         * modules/lseek-tests (Files): Likewise.
3754         * modules/lstat-tests (Files): Likewise.
3755         * modules/mbrtowc-tests (Files): Likewise.
3756         * modules/mbsinit-tests (Files): Likewise.
3757         * modules/mbsnrtowcs-tests (Files): Likewise.
3758         * modules/mbsrtowcs-tests (Files): Likewise.
3759         * modules/memchr-tests (Files): Likewise.
3760         * modules/memcmp-tests (Files): Likewise.
3761         * modules/memmem-tests (Files): Likewise.
3762         * modules/memrchr-tests (Files): Likewise.
3763         * modules/mkdir-tests (Files): Likewise.
3764         * modules/mkfifo-tests (Files): Likewise.
3765         * modules/mkfifoat-tests (Files): Likewise.
3766         * modules/mknod-tests (Files): Likewise.
3767         * modules/nanosleep-tests (Files): Likewise.
3768         * modules/nl_langinfo-tests (Files): Likewise.
3769         * modules/obstack-printf-tests (Files): Likewise.
3770         * modules/open-tests (Files): Likewise.
3771         * modules/openat-tests (Files): Likewise.
3772         * modules/perror-tests (Files): Likewise.
3773         * modules/pipe2-tests (Files): Likewise.
3774         * modules/poll-tests (Files): Likewise.
3775         * modules/popen-tests (Files): Likewise.
3776         * modules/posix_spawn-tests (Files): Likewise.
3777         * modules/posix_spawnp-tests (Files): Likewise.
3778         * modules/pread-tests (Files): Likewise.
3779         * modules/printf-posix-tests (Files): Likewise.
3780         * modules/pty-tests (Files): Likewise.
3781         * modules/random_r-tests (Files): Likewise.
3782         * modules/rawmemchr-tests (Files): Likewise.
3783         * modules/readlink-tests (Files): Likewise.
3784         * modules/remove-tests (Files): Likewise.
3785         * modules/rename-tests (Files): Likewise.
3786         * modules/renameat-tests (Files): Likewise.
3787         * modules/rmdir-tests (Files): Likewise.
3788         * modules/round-tests (Files): Likewise.
3789         * modules/roundf-tests (Files): Likewise.
3790         * modules/roundl-tests (Files): Likewise.
3791         * modules/select-tests (Files): Likewise.
3792         * modules/setenv-tests (Files): Likewise.
3793         * modules/sigaction-tests (Files): Likewise.
3794         * modules/sleep-tests (Files): Likewise.
3795         * modules/snprintf-posix-tests (Files): Likewise.
3796         * modules/snprintf-tests (Files): Likewise.
3797         * modules/sprintf-posix-tests (Files): Likewise.
3798         * modules/stat-tests (Files): Likewise.
3799         * modules/strcasestr-tests (Files): Likewise.
3800         * modules/strchrnul-tests (Files): Likewise.
3801         * modules/strerror-tests (Files): Likewise.
3802         * modules/strsignal-tests (Files): Likewise.
3803         * modules/strstr-tests (Files): Likewise.
3804         * modules/strtod-tests (Files): Likewise.
3805         * modules/strverscmp-tests (Files): Likewise.
3806         * modules/symlink-tests (Files): Likewise.
3807         * modules/symlinkat-tests (Files): Likewise.
3808         * modules/times-tests (Files): Likewise.
3809         * modules/trunc-tests (Files): Likewise.
3810         * modules/truncf-tests (Files): Likewise.
3811         * modules/truncl-tests (Files): Likewise.
3812         * modules/tsearch-tests (Files): Likewise.
3813         * modules/uname-tests (Files): Likewise.
3814         * modules/unlink-tests (Files): Likewise.
3815         * modules/unsetenv-tests (Files): Likewise.
3816         * modules/usleep-tests (Files): Likewise.
3817         * modules/utimensat-tests (Files): Likewise.
3818         * modules/vasprintf-tests (Files): Likewise.
3819         * modules/vdprintf-posix-tests (Files): Likewise.
3820         * modules/vfprintf-posix-tests (Files): Likewise.
3821         * modules/vprintf-posix-tests (Files): Likewise.
3822         * modules/vsnprintf-posix-tests (Files): Likewise.
3823         * modules/vsnprintf-tests (Files): Likewise.
3824         * modules/vsprintf-posix-tests (Files): Likewise.
3825         * modules/wcrtomb-tests (Files): Likewise.
3826         * modules/wcsnrtombs-tests (Files): Likewise.
3827         * modules/wcsrtombs-tests (Files): Likewise.
3828         * modules/wcwidth-tests (Files): Likewise.
3829         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
3830         * tests/test-isinf.c (isinf): Likewise.
3831         * tests/test-isnan.c (isnan): Likewise.
3832         * tests/test-signbit.c (signbit): Likewise.
3833         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
3834         declaration, either as macro or with correct signature.
3835         (select): Ensure function under test is declared with correct
3836         signature in correct header.
3837         * tests/test-atexit.c (atexit): Likewise.
3838         * tests/test-btowc.c (btowc): Likewise.
3839         * tests/test-canonicalize-lgpl.c (realpath)
3840         (canonicalize_file_name): Likewise.
3841         * tests/test-ceilf1.c (ceilf): Likewise.
3842         * tests/test-ceill.c (ceill): Likewise.
3843         * tests/test-chown.c (chown): Likewise.
3844         * tests/test-dprintf-posix.c (dprintf): Likewise.
3845         * tests/test-dup2.c (dup2): Likewise.
3846         * tests/test-dup3.c (dup3): Likewise.
3847         * tests/test-duplocale.c (duplocale): Likewise.
3848         * tests/test-fchdir.c (fchdir): Likewise.
3849         * tests/test-fchownat.c (fchownat): Likewise.
3850         * tests/test-fcntl.c (fcntl): Likewise.
3851         * tests/test-fdopendir.c (fdopendir): Likewise.
3852         * tests/test-fflush.c (fflush): Likewise.
3853         * tests/test-flock.c (flock): Likewise.
3854         * tests/test-floorf1.c (floorf): Likewise.
3855         * tests/test-floorl.c (floorl): Likewise.
3856         * tests/test-fnmatch.c (fnmatch): Likewise.
3857         * tests/test-fopen.c (fopen): Likewise.
3858         * tests/test-fprintf-posix.c (fprintf): Likewise.
3859         * tests/test-freopen.c (freopen): Likewise.
3860         * tests/test-frexp.c (frexp): Likewise.
3861         * tests/test-frexpl.c (frexpl): Likewise.
3862         * tests/test-fseek.c (fseek): Likewise.
3863         * tests/test-fseeko.c (fseeko): Likewise.
3864         * tests/test-fstatat.c (fstatat): Likewise.
3865         * tests/test-fsync.c (fsync): Likewise.
3866         * tests/test-ftell.c (ftell): Likewise.
3867         * tests/test-ftello.c (ftello): Likewise.
3868         * tests/test-futimens.c (futimens): Likewise.
3869         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
3870         (gai_strerror): Likewise.
3871         * tests/test-getcwd.c (getcwd): Likewise.
3872         * tests/test-getdelim.c (getdelim): Likewise.
3873         * tests/test-getdtablesize.c (getdtablesize): Likewise.
3874         * tests/test-getgroups.c (getgroups): Likewise.
3875         * tests/test-gethostname.c (gethostname): Likewise.
3876         * tests/test-getline.c (getline): Likewise.
3877         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
3878         Likewise.
3879         * tests/test-gettimeofday.c (gettimeofday): Likewise.
3880         * tests/test-glob.c (glob, globfree): Likewise.
3881         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
3882         * tests/test-inet_ntop.c (inet_ntop): Likewise.
3883         * tests/test-inet_pton.c (inet_pton): Likewise.
3884         * tests/test-isblank.c (isblank): Likewise.
3885         * tests/test-lchown.c (lchown): Likewise.
3886         * tests/test-ldexpl.c (ldexpl): Likewise.
3887         * tests/test-link.c (link): Likewise.
3888         * tests/test-linkat.c (linkat): Likewise.
3889         * tests/test-lseek.c (lseek): Likewise.
3890         * tests/test-lstat.c (lstat): Likewise.
3891         * tests/test-mbrtowc.c (mbrtowc): Likewise.
3892         * tests/test-mbsinit.c (mbsinit): Likewise.
3893         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
3894         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
3895         * tests/test-memchr.c (memchr): Likewise.
3896         * tests/test-memcmp.c (memcmp): Likewise.
3897         * tests/test-memmem.c (memmem): Likewise.
3898         * tests/test-memrchr.c (memrchr): Likewise.
3899         * tests/test-mkdir.c (mkdir): Likewise.
3900         * tests/test-mkdirat.c (mkdirat): Likewise.
3901         * tests/test-mkfifo.c (mkfifo): Likewise.
3902         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
3903         * tests/test-mknod.c (mknod): Likewise.
3904         * tests/test-nanosleep.c (nanosleep): Likewise.
3905         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
3906         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
3907         Likewise.
3908         * tests/test-open.c (open): Likewise.
3909         * tests/test-openat.c (openat): Likewise.
3910         * tests/test-perror.c (perror): Likewise.
3911         * tests/test-pipe2.c (pipe2): Likewise.
3912         * tests/test-poll.c (poll): Likewise.
3913         * tests/test-popen.c (popen, pclose): Likewise.
3914         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
3915         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
3916         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
3917         (posix_spawn_file_actions_destroy)
3918         (posix_spawn_file_actions_addclose)
3919         (posix_spawn_file_actions_addopen)
3920         (posix_spawn_file_actions_adddup2): Likewise.
3921         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
3922         * tests/test-pread.c (pread): Likewise.
3923         * tests/test-printf-posix.c (printf): Likewise.
3924         * tests/test-pty.c (openpty, forkpty): Likewise.
3925         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
3926         (random_r): Likewise.
3927         * tests/test-rawmemchr.c (rawmemchr): Likewise.
3928         * tests/test-readlink.c (readlink): Likewise.
3929         * tests/test-remove.c (remove): Likewise.
3930         * tests/test-rename.c (rename): Likewise.
3931         * tests/test-renameat.c (renameat): Likewise.
3932         * tests/test-rmdir.c (rmdir): Likewise.
3933         * tests/test-round1.c (round): Likewise.
3934         * tests/test-roundf1.c (roundf): Likewise.
3935         * tests/test-roundl.c (roundl): Likewise.
3936         * tests/test-setenv.c (setenv): Likewise.
3937         * tests/test-sigaction.c (sigaction): Likewise.
3938         * tests/test-sleep.c (sleep): Likewise.
3939         * tests/test-snprintf.c (snprintf): Likewise.
3940         * tests/test-sprintf-posix.c (sprintf): Likewise.
3941         * tests/test-stat.c (stat): Likewise.
3942         * tests/test-stpncpy.c (stpncpy): Likewise.
3943         * tests/test-strcasestr.c (strcasestr): Likewise.
3944         * tests/test-strchrnul.c (strchrnul): Likewise.
3945         * tests/test-strerror.c (strerror): Likewise.
3946         * tests/test-strsignal.c (strsignal): Likewise.
3947         * tests/test-strstr.c (strstr): Likewise.
3948         * tests/test-strtod.c (strtod): Likewise.
3949         * tests/test-strverscmp.c (strverscmp): Likewise.
3950         * tests/test-symlink.c (symlink): Likewise.
3951         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
3952         * tests/test-times.c (times): Likewise.
3953         * tests/test-trunc1.c (trunc): Likewise.
3954         * tests/test-truncf1.c (truncf): Likewise.
3955         * tests/test-truncl.c (truncl): Likewise.
3956         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
3957         Likewise.
3958         * tests/test-uname.c (uname): Likewise.
3959         * tests/test-unlink.c (unlink): Likewise.
3960         * tests/test-unlinkat.c (unlinkat): Likewise.
3961         * tests/test-unsetenv.c (unsetenv): Likewise.
3962         * tests/test-usleep.c (usleep): Likewise.
3963         * tests/test-utimensat.c (utimensat): Likewise.
3964         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
3965         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
3966         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
3967         * tests/test-vprintf-posix.c (vprintf): Likewise.
3968         * tests/test-vsnprintf.c (vsnprintf): Likewise.
3969         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
3970         * tests/test-wcrtomb.c (wcrtomb): Likewise.
3971         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
3972         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
3973         * tests/test-wcwidth.c (wcwidth): Likewise.
3974
3975         build: pull in conditional headers during GNULIB_POSIXCHECK
3976         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
3977         definitions from any conditionally-included headers.
3978         * lib/stdlib.in.h (includes): Likewise.
3979         * lib/unistd.in.h (includes): Likewise.
3980
3981 2009-12-24  Bruno Haible  <bruno@clisp.org>
3982
3983         * tests/test-argv-iter.c: Include header file being tested immediately
3984         after config.h.
3985         * tests/test-base64.c: Likewise.
3986         * tests/test-flock.c: Likewise.
3987         * tests/test-fsync.c: Likewise.
3988         * tests/test-getdate.c: Likewise.
3989         * tests/test-getndelim2.c: Likewise.
3990         * tests/test-isfinite.c: Likewise.
3991         * tests/test-isinf.c: Likewise.
3992         * tests/test-strerror.c: Likewise.
3993         * tests/test-strsignal.c: Likewise.
3994
3995 2009-12-23  Eric Blake  <ebb9@byu.net>
3996
3997         unistd: work around cygwin bug
3998         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
3999         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4000         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4001
4002 2009-12-23  Bruno Haible  <bruno@clisp.org>
4003
4004         localename: More tests.
4005         * tests/test-localename.c (SIZEOF): New macro.
4006         (categories): New variable.
4007         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4008         test_locale_name_default): Add test w.r.t. thread locale.
4009         (test_locale_name_thread): New function.
4010         (main): Invoke it.
4011
4012         localename: Make aware of thread locale.
4013         * lib/localename.h (gl_locale_name_thread): New declaration.
4014         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4015         behaviour with respect to thread locale.
4016         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4017         <langinfo.h>, glthread/lock.h.
4018         (SIZE_BITS): New macro.
4019         (string_hash): New function.
4020         (struct hash_node): New type.
4021         (HASH_TABLE_SIZE): New macro.
4022         (struniq_hash_table, struniq_lock): New variables.
4023         (struniq): New function.
4024         (gl_locale_name_thread): New function.
4025         (gl_locale_name): Invoke it.
4026         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4027         * modules/localename (Depends-on): Add lock.
4028         Reported by Mike Gran <spk121@yahoo.com>.
4029
4030 2009-12-23  Eric Blake  <ebb9@byu.net>
4031
4032         va-args: new module
4033         * modules/va-args: New file.
4034         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4035         * MODULES.html.sh (Core language properties): Mention it.
4036
4037         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4038         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4039         named alias for __attribute__((__unused__)).
4040         * lib/chown.c: Update client.
4041         * lib/fchmodat.c: Likewise.
4042         * lib/fts.c: Likewise.
4043         * lib/getdate.y: Likewise.
4044         * lib/getgroups.c: Likewise.
4045         * lib/getopt.c: Likewise.
4046         * lib/getugroups.c: Likewise.
4047         * lib/mkdir.c: Likewise.
4048         * lib/mkfifo.c: Likewise.
4049         * lib/mkfifoat.c: Likewise.
4050         * lib/mknod.c: Likewise.
4051         * lib/mknodat.c: Likewise.
4052         * lib/readlink.c: Likewise.
4053         * lib/se-context.in.h: Likewise.
4054         * lib/se-selinux.in.h: Likewise.
4055         * lib/sockets.c: Likewise.
4056         * lib/symlink.c: Likewise.
4057         * lib/symlinkat.c: Likewise.
4058         * lib/unicodeio.c: Likewise.
4059         * lib/unistr.h: Likewise.
4060         * tests/test-areadlink.c: Likewise.
4061         * tests/test-areadlinkat.c: Likewise.
4062         * tests/test-filenamecat.c: Likewise.
4063         * tests/test-fseeko.c: Likewise.
4064         * tests/test-ftello.c: Likewise.
4065         * tests/test-getdate.c: Likewise.
4066         * tests/test-getgroups.c: Likewise.
4067         * tests/test-gethostname.c: Likewise.
4068         * tests/test-quotearg.c: Likewise.
4069         * tests/test-version-etc.c: Likewise.
4070         * tests/test-xalloc-die.c: Likewise.
4071         * tests/test-xfprintf-posix.c: Likewise.
4072         * tests/test-xprintf-posix.c: Likewise.
4073         * tests/test-xvasprintf.c: Likewise.
4074
4075         tests: avoid compiler warnings
4076         * tests/test-fcntl.c (main): Delete unused parameters.
4077         * tests/test-freopen-safer.c (main): Likewise.
4078         * tests/test-xalloc-die.c (main): Mark unused parameters.
4079         * tests/test-fseeko.c (main): Likewise.
4080         * tests/test-ftello.c (main): Likewise.
4081         * tests/test-nanosleep.c (main): Avoid declaration warning.
4082         * tests/test-sleep.c (main): Likewise.
4083         * tests/test-unsetenv.c (main): Silence warning about string
4084         literal.
4085         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4086
4087 2009-12-23  Bruno Haible  <bruno@clisp.org>
4088
4089         * tests/test-localename.c (test_locale_name): New function, extracted
4090         from main. Also test mixed situations.
4091         (test_locale_name_posix, test_locale_name_environ,
4092         test_locale_name_default): New functions.
4093         (main): Invoke them all.
4094         * modules/localename-tests (configure.ac): Test for newlocale.
4095
4096 2009-12-23  Bruno Haible  <bruno@clisp.org>
4097
4098         unistd: Ensure getcwd gets declared before being overridden.
4099         * lib/unistd.in.h: Conditionally include <io.h>.
4100
4101 2009-12-22  Bruno Haible  <bruno@clisp.org>
4102
4103         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4104         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4105         (gl_WCHAR_H): Invoke it.
4106         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4107         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4108         Reported by Karl Berry <karl@freefriends.org>.
4109
4110 2009-12-22  Eric Blake  <ebb9@byu.net>
4111
4112         math, unistd: avoid redundant includes
4113         * lib/math.in.h (isnan): No need to re-include <math.h>.
4114         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4115
4116         getsubopt: work around cygwin bug
4117         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4118         avoid conflicting with system getsubopt.
4119         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4120         bug.
4121
4122         getopt: synchronize from glibc
4123         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4124         parameter order.  Adjust all callers.
4125         (_getopt_internal_r, main): Adjust quoting in error messages.
4126         Drop considerations for outdated POSIX 1003.2 error message.
4127         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4128         callers.
4129         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4130
4131         test-getopt: test stderr behavior
4132         * modules/getopt-posix-tests (Depends-on): Add dup2.
4133         * tests/test-getopt.c (ASSERT): Avoid stderr.
4134         (main): Move stderr to a temporary file.
4135         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4136         Instead, add parameter to inform caller if output occurred.
4137         (test_getopt): Adjust all existing tests to expect silence, and
4138         add new tests of leading ":".
4139         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4140         glibc shortcomings with leading "-:" or "+:" in optstring.
4141         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4142         Likewise.
4143         * doc/posix-functions/getopt.texi (getopt): Likewise.
4144
4145         test-getopt: enhance test
4146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4147         supports optind=0.
4148         * tests/test-getopt.c (OPTIND_MIN): Move...
4149         * tests/test-getopt.h (OPTIND_MIN): ...here.
4150         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4151         Require that optind=0 works, since modern BSD supports it in
4152         addition to optreset, and since coreutils expects it.
4153         (test_getopt_long_only): New test.
4154         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4155         glibc shortcomings with 'W;', and enforcement of optind=0.
4156         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4157         Likewise.
4158
4159 2009-12-21  Bruno Haible  <bruno@clisp.org>
4160
4161         localename: Improvements for MacOS X and Cygwin.
4162         * lib/localename.h (gl_locale_name_environ): New declaration.
4163         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4164         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4165         (gl_locale_name_posix): Invoke it.
4166         (gl_locale_name_default): Add comments. Use Windows native API also on
4167         Cygwin.
4168
4169 2009-12-21  Bruno Haible  <bruno@clisp.org>
4170
4171         Update list of Win32 locale ids.
4172         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4173         (LANG_SAMI): Renamed from LANG_SAAMI.
4174         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4175         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4176         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4177         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4178         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4179         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4180         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4181         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4182         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4183         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4184         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4185         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4186         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4187         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4188         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4189         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4190         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4191         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4192         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4193         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4194         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4195         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4196         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4197         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4198         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4199         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4200         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4201         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4202         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4203         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4204         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4205         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4206         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4207         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4208         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4209         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4210         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4211         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4212         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4213         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4214         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4215         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4216         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4217         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4218         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4219         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4220         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4221         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4222         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4223         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4224         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4225         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4226         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4227         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4228         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4229         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4230         Add more languages and countries for Sami, Sorbian. Add more countries
4231         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4232         for Pashto. Change country for Syriac, Tswana.
4233
4234 2009-12-21  Eric Blake  <ebb9@byu.net>
4235
4236         test-utimens: avoid spurious failure
4237         * tests/test-chown.h (nap): Factor...
4238         * tests/nap.h: ...into new file.
4239         * tests/test-lchown.h (nap): Avoid duplication.
4240         * tests/test-utimens-common.h (nap): Use shared implementation,
4241         necessary on file systems with 1-second resolution.
4242         * modules/chown-tests (Files): Include new file.
4243         * modules/fdutimensat-tests (Files): Likewise.
4244         * modules/futimens-tests (Files): Likewise.
4245         * modules/lchown-tests (Files): Likewise.
4246         * modules/openat-tests (Files): Likewise.
4247         * modules/utimens-tests (Files): Likewise.
4248         * modules/utimensat-tests (Files): Likewise.
4249
4250 2009-12-19  Eric Blake  <ebb9@byu.net>
4251
4252         futimens, utimensat: work around Linux bug
4253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4255         * lib/utimensat.c (rpl_utimensat): Work around it.
4256         * lib/futimens.c (rpl_futimens): Adjust comment.
4257
4258         utimens: work around Linux ctime bug
4259         * lib/utimens.c (detect_ctime_bug): New helper function.
4260         (update_timespec): Differentiate between workaround needed for
4261         this bug vs. what is needed for systems that lack utimensat.
4262         (fdutimens, lutimens): Work around bug.
4263
4264         utimens: check for ctime update
4265         * tests/test-utimens-common.h (check_ctime): Define.
4266         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4267         * tests/test-futimens.h (test_futimens): Likewise.
4268         * tests/test-lutimens.h (test_lutimens): Likewise.
4269         * doc/posix-functions/futimens.texi (futimens): Document the bug.
4270         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4271
4272 2009-12-19  Bruno Haible  <bruno@clisp.org>
4273
4274         dprintf-posix: Check against memory leak fixed on 2009-12-15.
4275         * tests/test-dprintf-posix2.sh: New file.
4276         * tests/test-dprintf-posix2.c: New file.
4277         * modules/dprintf-posix-tests (Files): Add them.
4278         (configure.ac): Check for getrlimit and setrlimit.
4279         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4280
4281 2009-12-19  Bruno Haible  <bruno@clisp.org>
4282
4283         fprintf-posix: Check against memory leak fixed on 2009-12-15.
4284         * tests/test-fprintf-posix3.sh: New file.
4285         * tests/test-fprintf-posix3.c: New file.
4286         * modules/fprintf-posix-tests (Files): Add them.
4287         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4288
4289 2009-12-19  Eric Blake  <ebb9@byu.net>
4290
4291         dirfd: fix prototype
4292         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4293         * lib/dirfd.c (dirfd): Likewise.
4294
4295         canonicalize: reduce memory usage
4296         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4297         allocation to size.
4298         Reported by Solar Designer <solar@openwall.com>.
4299
4300 2009-12-19  Bruno Haible  <bruno@clisp.org>
4301
4302         New module attribute 'Applicability'.
4303         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4304         * gnulib-tool: New option --extract-applicability.
4305         (func_usage): Document it.
4306         (sed_extract_prog): Recognize it.
4307         (func_get_applicability): New function.
4308         (func_import): Generalize handling of 'link-warning' module.
4309         * modules/link-warning (Applicability): New section.
4310         * modules/arg-nonnull (Applicability): New section.
4311         Repoted by Simon Josefsson <simon@josefsson.org>.
4312
4313 2009-12-19  Bruno Haible  <bruno@clisp.org>
4314
4315         fflush: tweak
4316         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4317         * lib/fseeko.c (rpl_fseeko): Likewise.
4318
4319 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
4320
4321         * lib/gl_list.h: Fix typo in comment.
4322
4323 2009-12-16  Eric Blake  <ebb9@byu.net>
4324
4325         fcntl: use to simplify other modules
4326         * modules/cloexec (Depends-on): Add fcntl.
4327         * modules/fchdir (Depends-on): Likewise.
4328         * modules/fd-safer-flag (Depends-on): Likewise.
4329         * modules/unistd-safer (Depends-on): Likewise.
4330         * modules/dup3 (configure.ac): Set module indicator.
4331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4332         missing.
4333         * lib/fchdir.c (_gl_register_dup): Fix comment.
4334         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4335         * lib/dup-safer.c (dup_safer): Likewise.
4336         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4337         * lib/dup3.c (dup3): Likewise.
4338         * tests/test-fchdir.c (main): Enhance test.
4339         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
4340
4341         fcntl: port portions of fcntl to mingw
4342         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4343         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4344         replacement for mingw.
4345         * modules/fcntl (Description): Update.
4346         (Depends-on): Add dup2.
4347         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4348         * modules/fcntl-h (Makefile.am): Substitute it.
4349         * lib/fcntl.in.h (fcntl): Update declaration.
4350         (F_DUPFD, F_GETFD): New macros, when needed.
4351         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4352         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4353         * tests/test-fcntl.c (check_flags, main): Enhance test for items
4354         we now guarantee.
4355
4356         fcntl: work around cygwin bug in F_DUPFD
4357         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4358         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
4359         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4360         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4361         * doc/posix-functions/fcntl.texi (fcntl): Document it.
4362
4363         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4364         * modules/fcntl (Files): List new files.
4365         (configure.ac): Run a test.
4366         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4367         * lib/fcntl.c (rpl_fcntl): Likewise.
4368         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4369         (gl_FCNTL_H): Always replace fcntl.h.
4370         * modules/fcntl-h (Makefile.am): Substitute witnesses.
4371         * lib/fcntl.in.h (fcntl): Declare replacement.
4372         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4373         needed, plus a witness.
4374         * doc/posix-functions/fcntl.texi (fcntl): Document this.
4375         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4376         * tests/test-fcntl.c: New file.
4377         * modules/fcntl-tests: Likewise.
4378
4379         binary-io: avoid potential compilation warning
4380         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4381         directives.
4382
4383         fflush: avoid compilation error on NetBSD
4384         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4385         between off_t and fpos_t, since the latter is sometimes a struct.
4386         * lib/fseeko.c (rpl_fseeko): Likewise.
4387         Reported by Alexander Nasonov <alnsn@yandex.ru>.
4388
4389 2009-12-15  Eric Blake  <ebb9@byu.net>
4390
4391         fcntl-h, stdio, sys_ioctl: fix declarations
4392         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4393         function must not take arguments.
4394         * lib/sys_ioctl.in.h (ioctl): Likewise.
4395         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
4396         (open): Add a link warning.
4397
4398 2009-12-15  Jim Meyering  <meyering@redhat.com>
4399
4400         areadlink, areadlink-with-size: relax license to LGPLv2+
4401         * modules/areadlink (License): Relax to LGPLv2+.
4402         * modules/areadlink-with-size (License): Likewise.
4403
4404 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
4405             Bruno Haible  <bruno@clisp.org>
4406
4407         *printf: Fix memory leak.
4408         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4409         * lib/vfprintf.c (vfprintf): Likewise.
4410         * lib/dprintf.c (dprintf): Likewise.
4411         * lib/vdprintf.c (vdprintf): Likewise.
4412
4413 2009-12-14  Eric Blake  <ebb9@byu.net>
4414
4415         accept4: adjust module dependencies
4416         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4417
4418         utimens: one more try at avoiding compiler warning
4419         * lib/utimens.c (lutimens): Lower scope of result.
4420
4421 2009-12-13  Bruno Haible  <bruno@clisp.org>
4422
4423         Move the malloc checking from module 'list' to new module 'xlist'.
4424         * modules/xlist: New file.
4425         * lib/gl_xlist.h: New file.
4426         * lib/gl_xlist.c: New file.
4427         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4428         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4429         gl_list_add_last, gl_list_add_before, gl_list_add_after,
4430         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4431         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4432         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4433         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4434         gl_sortedlist_nx_add): New declarations.
4435         (struct gl_list_implementation): Rename and change methods accordingly.
4436         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4437         (gl_list_nx_create): Renamed from gl_list_create.
4438         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4439         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4440         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4441         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4442         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4443         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4444         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4445         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4446         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4447         gl_list_create_empty.
4448         (gl_list_nx_create): Renamed from gl_list_create.
4449         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4450         (gl_list_nx_set_at): Renamed from gl_list_set_at.
4451         (gl_list_nx_add_first): Renamed from gl_list_add_first.
4452         (gl_list_nx_add_last): Renamed from gl_list_add_last.
4453         (gl_list_nx_add_before): Renamed from gl_list_add_before.
4454         (gl_list_nx_add_after): Renamed from gl_list_add_after.
4455         (gl_list_nx_add_at): Renamed from gl_list_add_at.
4456         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4457         * lib/gl_array_list.c: Don't include xalloc.h.
4458         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4459         NULL upon out-of-memory.
4460         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4461         out-of-memory.
4462         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4463         Change return type to 'int'.
4464         (gl_array_nx_set_at): Renamed from gl_array_set_at.
4465         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4466         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4467         upon out-of-memory.
4468         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4469         upon out-of-memory.
4470         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4471         upon out-of-memory.
4472         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4473         upon out-of-memory.
4474         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4475         out-of-memory.
4476         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4477         Update.
4478         (gl_array_list_implementation): Update.
4479         * lib/gl_carray_list.c: Don't include xalloc.h.
4480         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4481         Return NULL upon out-of-memory.
4482         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4483         out-of-memory.
4484         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4485         Change return type to 'int'.
4486         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4487         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4488         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4489         upon out-of-memory.
4490         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4491         upon out-of-memory.
4492         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4493         out-of-memory.
4494         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4495         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4496         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4497         Update.
4498         (gl_carray_list_implementation): Update.
4499         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4500         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4501         gl_linked_create_empty. Return NULL upon out-of-memory.
4502         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4503         out-of-memory.
4504         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4505         Change return type to 'int'. Return -1 upon out-of-memory.
4506         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4507         out-of-memory.
4508         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4509         upon out-of-memory.
4510         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4511         upon out-of-memory.
4512         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4513         NULL upon out-of-memory.
4514         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4515         upon out-of-memory.
4516         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4517         out-of-memory.
4518         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
4519         Update.
4520         * lib/gl_linked_list.c: Don't include xalloc.h.
4521         (gl_linked_list_implementation): Update.
4522         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
4523         (add_to_bucket): Change return type to 'int'.
4524         (gl_linkedhash_list_implementation): Update.
4525         * lib/gl_anytree_list1.h (free_subtree): New function.
4526         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
4527         gl_tree_create_empty. Return NULL upon out-of-memory.
4528         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
4529         Change return type to 'int'. Return -1 upon out-of-memory.
4530         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
4531         out-of-memory.
4532         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
4533         (gl_tree_remove_node): New function, moved here from
4534         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
4535         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
4536         Update.
4537         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
4538         malloc, not xmalloc. Return NULL upon out-of-memory.
4539         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4540         out-of-memory.
4541         (gl_tree_remove_node_from_tree): New function, extracted from
4542         gl_tree_remove_node.
4543         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4544         upon out-of-memory.
4545         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4546         out-of-memory.
4547         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4548         upon out-of-memory.
4549         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4550         upon out-of-memory.
4551         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4552         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
4553         not xmalloc. Return NULL upon out-of-memory.
4554         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
4555         out-of-memory.
4556         (gl_tree_remove_node_from_tree): New function, extracted from
4557         gl_tree_remove_node.
4558         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
4559         upon out-of-memory.
4560         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
4561         out-of-memory.
4562         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
4563         upon out-of-memory.
4564         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
4565         upon out-of-memory.
4566         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
4567         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
4568         gl_anytree_list1.h before gl_anyavltree_list2.h.
4569         (gl_avltree_list_implementation): Update.
4570         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
4571         gl_anytree_list1.h before gl_anyavltree_list2.h.
4572         (gl_rbtree_list_implementation): Update.
4573         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
4574         Change return type to 'int'. Return -1 upon out-of-memory. Use
4575         __builtin_expect.
4576         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
4577         (gl_avltreehash_list_implementation): Update.
4578         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
4579         (gl_rbtreehash_list_implementation): Update.
4580         * modules/array-list (Depends-on): Remove xalloc.
4581         * modules/carray-list (Depends-on): Likewise.
4582         * modules/linked-list (Depends-on): Likewise.
4583         * modules/linkedhash-list (Depends-on): Likewise.
4584         * modules/avltree-list (Depends-on): Likewise.
4585         * modules/rbtree-list (Depends-on): Likewise.
4586         * modules/avltreehash-list (Depends-on): Likewise.
4587         * modules/rbtreehash-list (Depends-on): Likewise.
4588
4589         * modules/xsublist: New file.
4590         * lib/gl_xsublist.h: New file.
4591         * lib/gl_xsublist.c: New file.
4592         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
4593         (gl_sublist_nx_create): New declaration.
4594         * lib/gl_sublist.c: Don't include xalloc.h.
4595         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
4596         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
4597         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
4598         Change return type to 'int'. Return -1 upon out-of-memory.
4599         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
4600         upon out-of-memory.
4601         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
4602         NULL upon out-of-memory.
4603         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
4604         upon out-of-memory.
4605         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
4606         NULL upon out-of-memory.
4607         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
4608         NULL upon out-of-memory.
4609         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
4610         upon out-of-memory.
4611         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
4612         (gl_sublist_list_implementation): Update.
4613         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
4614         upon out-of-memory.
4615         * modules/sublist (Depends-on): Remove xalloc.
4616
4617         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
4618         * tests/test-carray_list.c: Likewise.
4619         * tests/test-linked_list.c: Likewise.
4620         * tests/test-linkedhash_list.c: Likewise.
4621         * tests/test-avltree_list.c: Likewise.
4622         * tests/test-rbtree_list.c: Likewise.
4623         * tests/test-avltreehash_list.c: Likewise.
4624         * tests/test-rbtreehash_list.c: Likewise.
4625         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
4626         * modules/carray-list-tests (Makefile.am): Likewise.
4627         * modules/linked-list-tests (Makefile.am): Likewise.
4628         * modules/linkedhash-list-tests (Makefile.am): Likewise.
4629         * modules/avltree-list-tests (Makefile.am): Likewise.
4630         * modules/rbtree-list-tests (Makefile.am): Likewise.
4631         * modules/avltreehash-list-tests (Makefile.am): Likewise.
4632         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4633
4634         * NEWS: Mention the changes.
4635
4636         * lib/clean-temp.c: Include gl_xlist.h.
4637         * modules/clean-temp (Depends-on): Add xlist.
4638
4639         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
4640         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
4641
4642         * tests/test-array_oset.c: Include gl_xlist.h.
4643         * modules/array-oset-tests (Depends-on): Add xlist.
4644
4645         Reported by José E. Marchesi <jemarch@gnu.org>.
4646
4647 2009-12-13  Bruno Haible  <bruno@clisp.org>
4648
4649         Move the malloc checking from module 'oset' to new module 'xoset'.
4650         * modules/xoset: New file.
4651         * lib/gl_xoset.h: New file.
4652         * lib/gl_xoset.c: New file.
4653         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
4654         declarations.
4655         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
4656         (struct gl_oset_implementation): Rename and change methods accordingly.
4657         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
4658         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4659         'int'. Mark as __warn_unused_result__.
4660         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
4661         gl_oset_create_empty.
4662         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
4663         'int'.
4664         * lib/gl_array_oset.c: Don't include xalloc.h.
4665         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
4666         malloc, not xmalloc.
4667         (grow): Change return type to 'int'. Don't call xalloc_die.
4668         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
4669         to 'int'.
4670         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
4671         'int'.
4672         (gl_array_oset_implementation): Update.
4673         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
4674         gl_tree_create_empty.
4675         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
4676         'int'.
4677         * lib/gl_avltree_oset.c: Don't include xalloc.h.
4678         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4679         xmalloc.
4680         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4681         not xmalloc.
4682         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4683         xmalloc.
4684         (gl_avltree_oset_implementation): Update.
4685         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
4686         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
4687         xmalloc.
4688         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
4689         not xmalloc.
4690         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
4691         xmalloc.
4692         (gl_rbtree_oset_implementation): Update.
4693         * modules/array-oset (Depends-on): Remove xalloc.
4694         * modules/avltree-oset (Depends-on): Likewise.
4695         * modules/rbtree-oset (Depends-on): Likewise.
4696         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
4697         * tests/test-avltree_oset.c: Likewise.
4698         * tests/test-rbtree_oset.c: Likewise.
4699         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
4700         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
4701         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4702         * NEWS: Mention the change.
4703
4704 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
4705
4706         maint.mk: allow a project to override release-prep commands
4707         * top/maint.mk (alpha, beta, stable): Move release-preparatory
4708         commands into a new rule.
4709         (release-prep): New rule.
4710         (release-prep-hook): New overridable variable.
4711
4712 2009-12-13  Bruno Haible  <bruno@clisp.org>
4713
4714         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
4715
4716 2009-12-13  Jim Meyering  <meyering@redhat.com>
4717
4718         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
4719         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
4720
4721 2009-12-12  Bruno Haible  <bruno@clisp.org>
4722
4723         duplocale: Tweak.
4724         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
4725
4726 2009-12-12  Karl Berry  <karl@gnu.org>
4727
4728         * config/srclist.txt (strtoll.c): tab changes, no more sync.
4729
4730 2009-12-12  Bruno Haible  <bruno@clisp.org>
4731
4732         * m4/po.m4: Undo incorrect untabification.
4733
4734 2009-12-12  Bruno Haible  <bruno@clisp.org>
4735
4736         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
4737         * modules/c-strtod (Depends-on): Add locale.
4738         * modules/c-strtold (Depends-on): Likewise.
4739
4740 2009-12-12  Bruno Haible  <bruno@clisp.org>
4741
4742         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
4743
4744 2009-12-11  Eric Blake  <ebb9@byu.net>
4745
4746         setenv: relax requirement in light of POSIX ruling
4747         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
4748         not NULL.
4749         * tests/test-setenv.c (main): Relax test.
4750         * tests/test-unsetenv.c (main): Likewise.
4751         * doc/posix-functions/setenv.texi (setenv): Document this.
4752         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4753
4754 2009-12-11  Bruno Haible  <bruno@clisp.org>
4755
4756         New module 'fd-safer-flag'.
4757         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
4758         * lib/dup-safer.c (dup_safer_flag): Remove function.
4759         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
4760         * lib/fd-safer.c (fd_safer_flag): Remove function.
4761         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
4762         * modules/cloexec (configure.ac): Drop indicator macro.
4763         * modules/fd-safer-flag: New file.
4764         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
4765         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
4766         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
4767
4768 2009-12-11  Bruno Haible  <bruno@clisp.org>
4769
4770         Tests for module 'nl_langinfo'.
4771         * modules/nl_langinfo-tests: New file.
4772         * tests/test-nl_langinfo.sh: New file.
4773         * tests/test-nl_langinfo.c: New file.
4774
4775         New module 'nl_langinfo'.
4776         * lib/nl_langinfo.c: New file.
4777         * m4/nl_langinfo.m4: New file.
4778         * modules/nl_langinfo: New file.
4779         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
4780
4781 2009-12-11  Bruno Haible  <bruno@clisp.org>
4782
4783         Tests for module 'langinfo'.
4784         * modules/langinfo-tests: New file.
4785         * tests/test-langinfo.c: New file.
4786
4787         New module 'langinfo'.
4788         * lib/langinfo.in.h: New file.
4789         * m4/langinfo_h.m4: New file.
4790         * modules/langinfo: New file.
4791         * doc/posix-headers/langinfo.texi: Mention the new module.
4792
4793 2009-12-11  Bruno Haible  <bruno@clisp.org>
4794
4795         * lib/config.charset: Untabify.
4796
4797 2009-12-11  Bruno Haible  <bruno@clisp.org>
4798
4799         * modules/unistd-safer (configure.ac): Drop indicator macro.
4800
4801 2009-12-11  Bruno Haible  <bruno@clisp.org>
4802
4803         Move pipe2-safer code to its own file.
4804         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
4805         * lib/pipe-safer.c (pipe2_safer): Remove function.
4806         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
4807         (Makefile.am): Add it to lib_SOURCES.
4808
4809 2009-12-10  Bruno Haible  <bruno@clisp.org>
4810
4811         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
4812
4813 2009-12-10  Bruno Haible  <bruno@clisp.org>
4814
4815         Declare which arguments expect non-NULL values, for GCC and clang.
4816         * build-aux/arg-nonnull.h: New file.
4817         * modules/arg-nonnull: New file.
4818         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
4819         (inet_ntop, inet_pton): Use it.
4820         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
4821         (closedir, dirfd, opendir, scandir, alphasort): Use it.
4822         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
4823         (open, openat): Use it.
4824         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
4825         (fnmatch): Use it.
4826         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
4827         (getopt, getopt_long, getopt_long_only): Use it.
4828         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
4829         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
4830         Use it.
4831         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
4832         (iconv_open): Use it.
4833         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
4834         (strtoimax, strtoumax): Use it.
4835         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
4836         (duplocale): Use it.
4837         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
4838         (frexp, frexpl): Use it.
4839         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
4840         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
4841         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
4842         (tsearch, tfind, tdelete, twalk): Use it.
4843         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
4844         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
4845         sigpending): Use it.
4846         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
4847         (posix_spawn, posix_spawnp, posix_spawnattr_init,
4848         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
4849         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
4850         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
4851         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
4852         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
4853         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
4854         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
4855         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
4856         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
4857         Use it.
4858         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
4859         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
4860         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
4861         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
4862         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
4863         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
4864         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
4865         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
4866         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
4867         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
4868         strtoull, unsetenv): Use it.
4869         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
4870         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
4871         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
4872         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4873         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4874         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
4875         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
4876         (strcasecmp, strncasecmp): Use it.
4877         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
4878         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
4879         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
4880         rpl_setsockopt): Use it.
4881         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
4882         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
4883         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
4884         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
4885         (gettimeofday): Use it.
4886         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
4887         (times): Use it.
4888         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
4889         (uname): Use it.
4890         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
4891         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
4892         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
4893         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
4894         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
4895         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
4896         unlinkat, write): Use it.
4897         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
4898         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
4899         * lib/argv-iter.h: Include arg-nonnull.h.
4900         (_ATTRIBUTE_NONNULL_): Remove macro.
4901         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
4902         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
4903         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
4904         optimization.
4905         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
4906         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
4907         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
4908         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
4909         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
4910         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
4911         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
4912         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
4913         * modules/arpa_inet (Depends-on): Add arg-nonnull.
4914         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
4915         * modules/dirent (Depends-on): Add arg-nonnull.
4916         (Makefile.am): Insert arg-nonnull.h into dirent.h.
4917         * modules/fcntl-h (Depends-on): Add arg-nonnull.
4918         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
4919         * modules/fnmatch (Depends-on): Add arg-nonnull.
4920         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
4921         * modules/getopt-posix (Depends-on): Add arg-nonnull.
4922         (Makefile.am): Insert arg-nonnull.h into getopt.h.
4923         * modules/glob (Depends-on): Add arg-nonnull.
4924         (Makefile.am): Insert arg-nonnull.h into glob.h.
4925         * modules/iconv_open (Depends-on): Add arg-nonnull.
4926         (Makefile.am): Insert arg-nonnull.h into iconv.h.
4927         * modules/inttypes (Depends-on): Add arg-nonnull.
4928         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
4929         * modules/locale (Depends-on): Add arg-nonnull.
4930         (Makefile.am): Insert arg-nonnull.h into locale.h.
4931         * modules/math (Depends-on): Add arg-nonnull.
4932         (Makefile.am): Insert arg-nonnull.h into math.h.
4933         * modules/netdb (Depends-on): Add arg-nonnull.
4934         (Makefile.am): Insert arg-nonnull.h into netdb.h.
4935         * modules/search (Depends-on): Add arg-nonnull.
4936         (Makefile.am): Insert arg-nonnull.h into search.h.
4937         * modules/signal (Depends-on): Add arg-nonnull.
4938         (Makefile.am): Insert arg-nonnull.h into signal.h.
4939         * modules/spawn (Depends-on): Add arg-nonnull.
4940         (Makefile.am): Insert arg-nonnull.h into spawn.h.
4941         * modules/stdio (Depends-on): Add arg-nonnull.
4942         (Makefile.am): Insert arg-nonnull.h into stdio.h.
4943         * modules/stdlib (Depends-on): Add arg-nonnull.
4944         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
4945         * modules/string (Depends-on): Add arg-nonnull.
4946         (Makefile.am): Insert arg-nonnull.h into string.h.
4947         * modules/strings (Depends-on): Add arg-nonnull.
4948         (Makefile.am): Insert arg-nonnull.h into strings.h.
4949         * modules/sys_socket (Depends-on): Add arg-nonnull.
4950         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
4951         * modules/sys_stat (Depends-on): Add arg-nonnull.
4952         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
4953         * modules/sys_time (Depends-on): Add arg-nonnull.
4954         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
4955         * modules/sys_times (Depends-on): Add arg-nonnull.
4956         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
4957         * modules/sys_utsname (Depends-on): Add arg-nonnull.
4958         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
4959         * modules/time (Depends-on): Add arg-nonnull.
4960         (Makefile.am): Insert arg-nonnull.h into time.h.
4961         * modules/unistd (Depends-on): Add arg-nonnull.
4962         (Makefile.am): Insert arg-nonnull.h into unistd.h.
4963         * modules/wchar (Depends-on): Add arg-nonnull.
4964         (Makefile.am): Insert arg-nonnull.h into wchar.h.
4965         * modules/argv-iter (Depends-on): Add arg-nonnull.
4966         * tests/test-canonicalize.c (null_ptr): New function.
4967         (main): Use it.
4968         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
4969         (main): Use it.
4970         * tests/test-memmem.c (null_ptr): New function.
4971         (main): Use it.
4972         Reported by Jim Meyering.
4973
4974 2009-12-10  Bruno Haible  <bruno@clisp.org>
4975
4976         Use spaces for indentation, not tabs.
4977         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4978         * m4/*.m4: Untabify.
4979         * build-aux/*.h: Untabify.
4980         * tests/**/*.[hc]: Untabify.
4981         * README: New section "Indent with spaces, not TABs", based on
4982         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
4983         * NEWS: Mention the change.
4984
4985 2009-12-10  Bruno Haible  <bruno@clisp.org>
4986
4987         pty test: Fix link error.
4988         * modules/pty-tests (Makefile.am): Add the default LDADD value to
4989         test_pty_LDADD.
4990
4991 2009-12-07  Simon Josefsson  <simon@josefsson.org>
4992
4993         * modules/pty: New file.
4994         * modules/pty-tests: New file.
4995         * m4/pty.m4: New file.
4996         * tests/test-pty.c: New file.
4997         * doc/glibc-headers/pty.texi: Modified.
4998         * doc/glibc-functions/forkpty.texi: Modified.
4999         * doc/glibc-functions/openpty.texi: Modified.
5000
5001 2009-12-10  Bruno Haible  <bruno@clisp.org>
5002
5003         Avoid syntax error in C++ mode.
5004         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5005
5006 2009-12-10  Bruno Haible  <bruno@clisp.org>
5007
5008         Use sed with option -e.
5009         * gnulib-tool (func_version, func_emit_copyright_notice,
5010         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5011         option -e to sed.
5012         * modules/link-warning (Makefile.am): Likewise.
5013
5014 2009-12-10  Jim Meyering  <meyering@redhat.com>
5015
5016         mgetgroups: do not write bytes beyond end of malloc'd buffer
5017         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5018         username, we call getgroups with a one-element-shorter buffer,
5019         but still told it the length was original, max_n_groups.
5020
5021 2009-12-09  Eric Blake  <ebb9@byu.net>
5022
5023         cloexec: relax license
5024         * modules/cloexec (Maintainer): Add myself.
5025         (License): Use LGPL, not GPL.
5026
5027         link-warning: optimize generation
5028         * modules/link-warning (Makefile.am): Reduce process usage.
5029
5030 2009-12-09  Bruno Haible  <bruno@clisp.org>
5031
5032         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5033         workaround was added on 2009-11-17.
5034
5035 2009-12-09  Jim Meyering  <meyering@redhat.com>
5036             Bruno Haible  <bruno@clisp.org>
5037
5038         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5039         * modules/link-warning (Makefile.am): Make the comment-removing sed
5040         command more robust in the face of bootstrap-prepended comment lines.
5041
5042 2009-12-09  Bruno Haible  <bruno@clisp.org>
5043
5044         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5045         most one group.
5046
5047 2009-12-09  Simon Josefsson <simon@josefsson.org>
5048             Bruno Haible  <bruno@clisp.org>
5049
5050         * build-aux/link-warning.h: Add copyright notice.
5051         * modules/link-warning (Makefile.am): Generate link-warning.h from
5052         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5053         * NEWS: Mention change in link-warning module.
5054         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5055         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5056         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5057         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5058         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5059         * modules/math (Makefile.am): Add dependency to math.h.
5060         * modules/search (Makefile.am): Add dependency to search.h.
5061         * modules/signal (Makefile.am): Add dependency to signal.h.
5062         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5063         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5064         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5065         * modules/string (Makefile.am): Add dependency to string.h.
5066         * modules/strings (Makefile.am): Add dependency to strings.h.
5067         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5068         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5069         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5070         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5071         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5072         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5073         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5074         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5075         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5076
5077 2009-12-09  Bruno Haible  <bruno@clisp.org>
5078
5079         fchdir: Optimize away rpl_fstat when possible.
5080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5081         REPLACE_OPEN_DIRECTORY.
5082         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5083
5084 2009-12-09  Bruno Haible  <bruno@clisp.org>
5085
5086         * lib/fchdir.c: Update comment.
5087
5088 2009-12-09  Bruno Haible  <bruno@clisp.org>
5089
5090         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5091
5092 2009-12-08  Eric Blake  <ebb9@byu.net>
5093
5094         fchdir: avoid memory leak on re-registration.
5095         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5096
5097 2009-12-08  Jim Meyering  <meyering@redhat.com>
5098
5099         init.sh: avoid Solaris 10 /bin/sh portability problem
5100         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5101         sourced script:
5102           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5103           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5104           bar
5105         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5106         and two tests used that idiom.
5107         * tests/init.sh: Update suggested usage comments.
5108         (path_prepend_): New function, to be used in place
5109         of the --src-path=DIR option.
5110         (setup_): Move PATH-prepending code into path_prepend_.
5111         * tests/test-pread.sh: Adapt to new usage.
5112         * tests/test-xalloc-die.sh: Likewise.
5113
5114 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5115
5116         * doc/gnulib.texi (Glibc pty.h): Add.
5117         * doc/glibc-functions/forkpty.texi: Add.
5118         * doc/glibc-functions/openpty.texi: Add.
5119         Suggested by Bruno Haible.
5120
5121 2009-12-08  Eric Blake  <ebb9@byu.net>
5122
5123         fchdir: fix logic bugs
5124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5125         * tests/test-fchdir.c (main): Enhance test.
5126         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5127         is in use.
5128
5129         dup2: fix logic bugs
5130         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5131         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5132         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5133         exists.
5134         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5135
5136 2009-12-07  Eric Blake  <ebb9@byu.net>
5137
5138         unlink: fix m4 detection
5139         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5140
5141         unistd-safer: add unit test
5142         * modules/unistd-safer-tests: New file.
5143         * tests/test-dup-safer.c: Likewise.
5144         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5145         * tests/test-dup2.c (setmode): Likewise.
5146         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5147
5148         cloexec: preserve text vs. binary across dup_cloexec
5149         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5150         mode.
5151         * modules/dup2-tests (Depends-on): Add binary-io.
5152         * modules/cloexec-tests (Depends-on): Likewise.
5153         * tests/test-dup2.c (setmode, is_mode): New helpers.
5154         (main): Add tests that translation mode is preserved.
5155         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5156         Reported by Bruno Haible.
5157
5158         mgetgroups: reduce duplicate listings
5159         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5160         resulting array.
5161         * tests/test-chown.h (test_chown): Simplify client.
5162         * tests/test-lchown.h (test_lchown): Likewise.
5163
5164 2009-12-06  Bruno Haible  <bruno@clisp.org>
5165
5166         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5167         value.
5168
5169 2009-12-06  Bruno Haible  <bruno@clisp.org>
5170
5171         * lib/progname.c: Include stdio.h, stdlib.h.
5172         (set_program_name): Reject a NULL argument.
5173
5174 2009-12-05  Eric Blake  <ebb9@byu.net>
5175
5176         pipe2-safer: new module
5177         * modules/pipe2-safer: New file.
5178         * lib/unistd-safer.h (pipe2_safer): New prototype.
5179         * lib/unistd--.h (pipe2): New wrapper.
5180         * lib/pipe-safer.c (pipe2_safer): New function.
5181         * modules/pipe (Depends-on): Add pipe2-safer.
5182         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5183
5184         stdlib-safer: preserve cloexec flag for mkostemp[s]
5185         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5186         fd_safer_flag.
5187
5188         unistd-safer: allow preservation of cloexec status via flag
5189         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5190         prototypes.
5191         * lib/dup-safer.c (dup_safer_flag): New function.
5192         * lib/fd-safer.c (fd_safer_flag): Likewise.
5193         * modules/cloexec (configure.ac): Set witness.
5194
5195         test-dup2: enhance test
5196         * modules/dup2-tests (Depends-on): Add cloexec.
5197         * tests/test-dup2.c (main): Enhance test.
5198
5199         cloexec: add dup_cloexec
5200         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5201         header and comments.
5202         * lib/cloexec.c (set_cloexec_flag): Add comments.
5203         (dup_cloexec): New function, with mingw implementation borrowed
5204         from...
5205         * lib/w32spawn.h (dup_noinherit): ...here.
5206         * modules/execute (Depends-on): Add cloexec.
5207         * modules/pipe (Depends-on): Likewise.
5208         * modules/cloexec (Depends-on): Add dup2.
5209         * modules/cloexec-tests (Files): New file.
5210         * tests/test-cloexec.c: Likewise.
5211
5212         test-xalloc-die: fix test for mingw
5213         * modules/xalloc-die-tests (Files): Add tests/init.sh.
5214         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
5215         directory and .exe suffix off argv[0] output.
5216
5217         test-fseeko: fix test for mingw
5218         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5219         than undefining fseek, so test will pass on mingw.
5220
5221 2009-12-05  Bruno Haible  <bruno@clisp.org>
5222
5223         * lib/progname.h (set_program_name): Clarify specification.
5224         * lib/progname.c (set_program_name): Likewise.
5225         Reported by Jim Meyering.
5226
5227 2009-12-05  Jim Meyering  <meyering@redhat.com>
5228
5229         maint.mk: backslash-escape parens in default regexp
5230         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5231         backslash-escape the literal parentheses.
5232
5233         maint.mk: news-date-check: use grep -E
5234         * top/maint.mk (today): Define a Make variable, not a...
5235         (news-date-check): ...shell variable.
5236         (news-date-regexp): Use the Make variable.
5237         Use grep's -E option.  Change the failing diagnostic to mention
5238         the variable, $(news-date-regexp).
5239
5240 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
5241
5242         maintainer-makefile: allow customization of NEWS entry format
5243         * top/maint.mk (news-date-regexp): New overridable variable.
5244         (news-date-check): Use it.
5245
5246 2009-12-04  Eric Blake  <ebb9@byu.net>
5247
5248         mgetgroups: add xgetgroups, and avoid ENOSYS failures
5249         * lib/mgetgroups.h (xgetgroups): New prototype.
5250         * lib/mgetgroups.c (xgetgroups): New wrapper.
5251         (mgetgroups): Handle ENOSYS.
5252         * modules/mgetgroups (Depends-on): Add realloc.
5253         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5254
5255         mgetgroups: avoid argument promotion issues with -1
5256         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5257         for invalid gid_t.
5258         * tests/test-chown.h (getegid, test_chown): Likewise.
5259         * tests/test-lchown.h (getegid, test_lchown): Likewise.
5260
5261 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
5262
5263         exclude: Fix header file problems.
5264         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5265
5266 2009-12-01  Jim Meyering  <meyering@redhat.com>
5267
5268         fts: fts_open: do not let an empty string cause immediate failure
5269         This is required in support of GNU rm, for which the command
5270         "rm A '' B" must process and remove both A and B, in spite of
5271         the empty string argument.
5272         * lib/fts.c (fts_open): Do not let the presence of an empty string
5273         cause fts_open to fail immediately.  Most fts-using tools must be
5274         able to process all arguments, in order, and can be expected to
5275         diagnose such arguments themselves.
5276
5277 2009-11-30  Eric Blake  <ebb9@byu.net>
5278
5279         utimens: fix compilation error
5280         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5281         Declare variable at right scope.
5282
5283 2009-11-29  Jim Meyering  <meyering@redhat.com>
5284
5285         bootstrap: handle perl-5.11's changed --version output
5286         * build-aux/bootstrap (get_version): Handle perl separately,
5287         since perl-5.11's --version output is different.
5288
5289 2009-11-28  Jim Meyering  <meyering@redhat.com>
5290
5291         userspec: depend on the inttostr module, too
5292         * modules/userspec (Depends-on): Add inttostr.
5293
5294         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5295         * lib/userspec.c (parse_with_separator): Do not accept a user ID
5296         number of MAXUID when it evaluates to (uid_t) -1.
5297         Likewise for group ID.  Reported by Matt McCutchen in
5298         <http://savannah.gnu.org/bugs/?28113>
5299
5300         userspec: reformat to use spaces, not TABs
5301         * lib/userspec.c: Expand TABs to spaces.
5302         Add Emacs' "indent-tabs-mode: nil" hint.
5303
5304 2009-11-27  Eric Blake  <ebb9@byu.net>
5305
5306         getopt-gnu: flush out another BSD bug
5307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5308         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5309         flush out BSD bug.
5310         * tests/test-getopt.h (test_getopt): End lists with NULL.
5311         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5312         (test_getopt_long_posix): Enhance test.
5313         * modules/getopt-posix-tests (Depends-on): Add stdbool.
5314         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5315         getopt-gnu.
5316         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5317         Likewise.
5318
5319 2009-11-27  Simon Josefsson  <simon@josefsson.org>
5320
5321         * modules/idpriv-droptemp-tests (Notice): Fix text.
5322
5323 2009-11-27  Jim Meyering  <meyering@redhat.com>
5324
5325         test-xalloc-die: avoid spurious failure due to libtool argv difference
5326         In a libtool-enabled project, this test would fail due to a difference
5327         in the emitted program name, e.g.,
5328         -test-xalloc-die: memory exhausted
5329         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5330         Use program to avoid that.
5331         * modules/xalloc-die-tests (Depends-on): Add progname.
5332         * tests/test-xalloc-die.c: Include progname.h".
5333         (program_name): Remove decl.
5334         (main): Call set_program_name.
5335         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5336
5337 2009-11-26  Richard Jones  <rjones@redhat.com>
5338
5339         w32sock: leave win32 error in place.
5340         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5341
5342 2009-11-26  Eric Blake  <ebb9@byu.net>
5343
5344         init.sh: suggest to use skip_ and fail_ functions in comments
5345         * tests/init.sh: Add a sentence.
5346
5347 2009-11-25  Bruno Haible  <bruno@clisp.org>
5348
5349         init.sh: add documentation in comments
5350         * tests/init.sh: Add some developer and user documentation.
5351
5352 2009-11-26  Jim Meyering  <meyering@redhat.com>
5353
5354         init.sh: accommodate even those who specify bogus srcdir manually
5355         * tests/init.sh: Normally, srcdir is guaranteed by automake and
5356         configure-time tests to be sanitized, so that there is no need to
5357         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
5358         (with no double quotes) suffices.  However, since tests may be
5359         invoked manually, and since you may explicitly set srcdir to the
5360         name of a directory containing spaces, do quote its uses here.
5361         * tests/test-pread.sh: Likewise.
5362         Suggested by Bruno Haible.
5363
5364         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5365         * tests/test-pread.sh: Write no data into the pipe, because
5366         test-pread actually reads none.  This avoids a diagnostic,
5367         "bash: echo: write error: Broken pipe", that arises in the unusual
5368         event something is ignoring SIGPIPE, and might be interpreted
5369         as some sort of failure.  Reported by Bruno Haible.
5370
5371 2009-11-25  Jim Meyering  <meyering@redhat.com>
5372
5373         test-pread: cover failure with ESPIPE and EINVAL
5374         * tests/test-pread.c (main): Test for failure, too.
5375         * tests/test-pread.sh: Invoke with stdin on a pipe.
5376         Suggested by Eric Blake.
5377
5378         pread: improvement and fix
5379         * modules/pread (Depends-on): Depend on lseek, for portability to
5380         e.g., mingw.  Suggested by Eric Blake.
5381         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
5382
5383         unistd.in.h: correct declaration of pread
5384         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5385         Reported by Richard W.M. Jones.
5386
5387         test-pread.sh: distribute the test script
5388         * modules/pread-tests (Files): Include test-pread.sh.
5389
5390         test-pread.sh: clean up
5391         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5392         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5393         That is unnecessary, since it's always ".".
5394         Suggestion from Eric Blake.
5395
5396         test-pread.sh: make executable
5397         * tests/test-pread.sh: Set executable bit.
5398         Reported by Eric Blake.
5399
5400         correct typo in test-pread.sh
5401         * tests/test-pread.sh: Add #! line.
5402
5403         test pread
5404         * tests/test-pread.c: New file.
5405         * tests/test-pread.sh: Likewise.
5406         * modules/pread-tests: Likewise.
5407
5408         pread: new module
5409         * modules/pread: New file.
5410         * lib/unistd.in.h (pread): Define/declare.
5411         * lib/pread.c (pread): New file.
5412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5413         * modules/unistd (Makefile.am): Substitute witnesses.
5414         * doc/posix-functions/pread.texi (pread): Update.
5415         * MODULES.html.sh: Add pread.
5416
5417 2009-11-25  Jim Meyering  <meyering@redhat.com>
5418
5419         tests/init.sh: new file to be used via most *.sh tests
5420         * tests/init.sh: New file.
5421
5422 2009-11-25  Eric Blake  <ebb9@byu.net>
5423
5424         utimens: work around older Linux failure with symlinks
5425         * lib/utimens.c (lutimensat_works_really): New variable.
5426         (fdutimens, lutimens): Use it to manage kernels that support
5427         nanosecond times on files, but not on symlinks.
5428         Reported by OndÅ™ej Vašík.
5429
5430         utimes: fix configure grammar
5431         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5432
5433 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
5434
5435         regex: Fix fastmap for multibyte character ranges.
5436         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5437         characters when a multibyte character range is included.
5438
5439 2009-11-22  Andy Wingo  <wingo@pobox.com>
5440
5441         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5442         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5443
5444 2009-11-24  Bruno Haible  <bruno@clisp.org>
5445
5446         doc: Most *_l functions exist in MacOS X 10.5.
5447         * doc/posix-functions/duplocale.texi: Update platforms list.
5448         * doc/posix-functions/freelocale.texi: Likewise.
5449         * doc/posix-functions/newlocale.texi: Likewise.
5450         * doc/posix-functions/uselocale.texi: Likewise.
5451         * doc/posix-functions/isalnum_l.texi: Likewise.
5452         * doc/posix-functions/isalpha_l.texi: Likewise.
5453         * doc/posix-functions/isblank_l.texi: Likewise.
5454         * doc/posix-functions/iscntrl_l.texi: Likewise.
5455         * doc/posix-functions/isdigit_l.texi: Likewise.
5456         * doc/posix-functions/isgraph_l.texi: Likewise.
5457         * doc/posix-functions/islower_l.texi: Likewise.
5458         * doc/posix-functions/isprint_l.texi: Likewise.
5459         * doc/posix-functions/ispunct_l.texi: Likewise.
5460         * doc/posix-functions/isspace_l.texi: Likewise.
5461         * doc/posix-functions/isupper_l.texi: Likewise.
5462         * doc/posix-functions/iswalnum_l.texi: Likewise.
5463         * doc/posix-functions/iswalpha_l.texi: Likewise.
5464         * doc/posix-functions/iswblank_l.texi: Likewise.
5465         * doc/posix-functions/iswcntrl_l.texi: Likewise.
5466         * doc/posix-functions/iswctype_l.texi: Likewise.
5467         * doc/posix-functions/iswdigit_l.texi: Likewise.
5468         * doc/posix-functions/iswgraph_l.texi: Likewise.
5469         * doc/posix-functions/iswlower_l.texi: Likewise.
5470         * doc/posix-functions/iswprint_l.texi: Likewise.
5471         * doc/posix-functions/iswpunct_l.texi: Likewise.
5472         * doc/posix-functions/iswspace_l.texi: Likewise.
5473         * doc/posix-functions/iswupper_l.texi: Likewise.
5474         * doc/posix-functions/iswxdigit_l.texi: Likewise.
5475         * doc/posix-functions/isxdigit_l.texi: Likewise.
5476         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5477         * doc/posix-functions/strcasecmp_l.texi: Likewise.
5478         * doc/posix-functions/strcoll_l.texi: Likewise.
5479         * doc/posix-functions/strfmon_l.texi: Likewise.
5480         * doc/posix-functions/strftime_l.texi: Likewise.
5481         * doc/posix-functions/strncasecmp_l.texi: Likewise.
5482         * doc/posix-functions/strxfrm_l.texi: Likewise.
5483         * doc/posix-functions/tolower_l.texi: Likewise.
5484         * doc/posix-functions/toupper_l.texi: Likewise.
5485         * doc/posix-functions/towctrans_l.texi: Likewise.
5486         * doc/posix-functions/towlower_l.texi: Likewise.
5487         * doc/posix-functions/towupper_l.texi: Likewise.
5488         * doc/posix-functions/wcscoll_l.texi: Likewise.
5489         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5490         * doc/posix-functions/wctrans_l.texi: Likewise.
5491         * doc/posix-functions/wctype_l.texi: Likewise.
5492         * doc/glibc-functions/strptime_l.texi: Likewise.
5493         * doc/glibc-functions/strtod_l.texi: Likewise.
5494         * doc/glibc-functions/strtof_l.texi: Likewise.
5495         * doc/glibc-functions/strtol_l.texi: Likewise.
5496         * doc/glibc-functions/strtold_l.texi: Likewise.
5497         * doc/glibc-functions/strtoll_l.texi: Likewise.
5498         * doc/glibc-functions/strtoul_l.texi: Likewise.
5499         * doc/glibc-functions/strtoull_l.texi: Likewise.
5500         * doc/glibc-functions/wcsftime_l.texi: Likewise.
5501         * doc/glibc-functions/wcstod_l.texi: Likewise.
5502         * doc/glibc-functions/wcstof_l.texi: Likewise.
5503         * doc/glibc-functions/wcstol_l.texi: Likewise.
5504         * doc/glibc-functions/wcstold_l.texi: Likewise.
5505         * doc/glibc-functions/wcstoll_l.texi: Likewise.
5506         * doc/glibc-functions/wcstoul_l.texi: Likewise.
5507         * doc/glibc-functions/wcstoull_l.texi: Likewise.
5508
5509 2009-11-24  Bruno Haible  <bruno@clisp.org>
5510
5511         duplocale: Fix logic bug.
5512         * lib/duplocale.c: Don't include <langinfo.h>.
5513         (_NL_LOCALE_NAME): Remove macro.
5514         (rpl_duplocale): Use setlocale instead of nl_langinfo.
5515         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5516
5517 2009-11-23  Jim Meyering  <meyering@redhat.com>
5518
5519         test-update-copyright: don't hard-code /usr/bin/perl
5520         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
5521         perl to print the current year.  Gilles Espinasse reported that
5522         the replaced use of perl was hard-coded as /usr/bin/perl.
5523
5524 2009-11-23  Bruno Haible  <bruno@clisp.org>
5525
5526         duplocale: Add support for glibc 2.3.x.
5527         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
5528
5529 2009-11-22  Bruno Haible  <bruno@clisp.org>
5530
5531         vasnprintf: Tiny optimization.
5532         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
5533         MacOS X.
5534
5535 2009-11-22  Bruno Haible  <bruno@clisp.org>
5536
5537         Tests for module 'duplocale'.
5538         * modules/duplocale-tests: New file.
5539         * tests/test-duplocale.c: New file.
5540
5541         New module 'duplocale'.
5542         * m4/duplocale.m4: New file.
5543         * lib/locale.in.h (duplocale): New declaration.
5544         * lib/duplocale.c: New file.
5545         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
5546         gl_LOCALE_H_DEFAULTS): New macros.
5547         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
5548         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
5549         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
5550         REPLACE_DUPLOCALE.
5551         * modules/duplocale: New file.
5552         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
5553
5554 2009-11-22  Bruno Haible  <bruno@clisp.org>
5555
5556         * modules/locale-tests (configure.ac): Test for newlocale function.
5557         * tests/test-locale.c: When the system has extended locale functions,
5558         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
5559
5560         locale: Make locale_t available when possible.
5561         * lib/locale.in.h: Include <xlocale.h> when it exists.
5562         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
5563         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
5564         * modules/locale (Depends-on): Add extensions.
5565         (Makefile.am): Also substitute HAVE_XLOCALE_H.
5566         * doc/posix-headers/locale.texi: Document the problem with locale_t.
5567
5568 2009-11-22  Bruno Haible  <bruno@clisp.org>
5569
5570         Add comments.
5571         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
5572         invocation.
5573         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
5574         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5575         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5576
5577 2009-11-22  Bruno Haible  <bruno@clisp.org>
5578
5579         error: account for the possibility of freopen (stdout).
5580         * lib/error.c: Include <unistd.h>.
5581         (flush_stdout): New function, extracted from error and error_at_line.
5582         Determine stdout's fd dynamically.
5583         (error, error_at_line): Invoke flush_stdout.
5584         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
5585         * modules/error (Depends-on): Add unistd.
5586
5587 2009-11-22  Bruno Haible  <bruno@clisp.org>
5588
5589         diffseq: Add comment.
5590         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
5591
5592 2009-11-22  Jim Meyering  <meyering@redhat.com>
5593
5594         c-stack: avoid defining an unused static function
5595         * lib/c-stack.c (find_stack_direction): Do not define this function
5596         when it will not be used.
5597
5598         diffseq: avoid spurious gcc warnings
5599         * lib/diffseq.h (IF_LINT2): Define.
5600         (compareseq): Use it to initialize two members of "part".
5601         This avoids two used-uninitialized warnings.
5602
5603 2009-11-21  Jim Meyering  <meyering@redhat.com>
5604
5605         c-stack: avoid "ignoring return value of `write'" warning
5606         * lib/c-stack.c: Include "ignore-value.h".
5607         (die): Explicitly ignore each write return value.
5608         * modules/c-stack (Depends-on): Add ignore-value.
5609
5610 2009-11-21  Bruno Haible  <bruno@clisp.org>
5611
5612         diffseq: reduce scope of variable 'best'.
5613         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
5614         variable, earlier used for two different purposes.
5615
5616 2009-11-21  Jim Meyering  <meyering@redhat.com>
5617
5618         diffseq: remove useless assignment to "best"
5619         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
5620         assignment.  At that point "best" is already guaranteed to be zero.
5621
5622 2009-11-20  Eric Blake  <ebb9@byu.net>
5623
5624         build: mention ftp redirector in release announcements
5625         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
5626         values that used to come from cfg.mk; mention FTP redirect URL.
5627         * build-aux/announce-gen: Mention the mirror list.
5628         Suggested by Karl Berry.
5629
5630         nanosleep: improve port to mingw
5631         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
5632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
5633         LIB_NANOSLEEP, but only when needed.
5634         * modules/select (Link): Document LIBSOCKET.
5635         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
5636         enough.
5637
5638         nanosleep: work around cygwin bug
5639         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
5640         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
5641         bug.
5642         (getnow): Delete, not needed.
5643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
5644         LIB_CLOCK_GETTIME.
5645         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
5646         clock-time, gettime.
5647         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
5648         bug.
5649         * modules/nanosleep-tests: New test.
5650         * tests/test-nanosleep.c: New file.
5651
5652         sleep: work around cygwin bug
5653         * lib/sleep.c (rpl_sleep): Work around the bug.
5654         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
5655         (gl_PREREQ_SLEEP): Delete unused macro.
5656         * modules/sleep (Depends-on): Add verify.
5657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
5658         * modules/unistd (Makefile.am): Substitute witness.
5659         * lib/unistd.in.h (sleep): Update prototype.
5660         * doc/posix-functions/sleep.texi (sleep): Document the bug.
5661         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
5662         * modules/sleep-tests (Depends-on): Check for alarm.
5663
5664 2009-11-20  Jim Meyering  <meyering@redhat.com>
5665
5666         maint.mk: improve sc_prohibit_magic_number_exit
5667         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
5668         so it does not match uses like System.exit(1).
5669         Add comments showing how to correct all offenders.
5670
5671 2009-11-19  Eric Blake  <ebb9@byu.net>
5672
5673         xalloc-die-tests: add missing library
5674         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
5675
5676         test-xvasprintf: silence compiler warnings
5677         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
5678         empty string from gcc.
5679
5680 2009-11-19  Jim Meyering  <meyering@redhat.com>
5681
5682         xfreopen: new module, from coreutils
5683         * modules/xfreopen: New module.
5684         * lib/xfreopen.c: New file.
5685         * lib/xfreopen.h: New file.
5686         * MODULES.html.sh (File stream based Input/Output"): Add it.
5687
5688 2009-11-19  Eric Blake  <ebb9@byu.net>
5689
5690         manywarnings: depend on warnings
5691         * modules/manywarnings (Depends-on): Add warnings.
5692
5693         build: avoid compiler warnings
5694         * lib/select.c (rpl_select): Delete unused variable.
5695         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
5696
5697 2009-11-18  Eric Blake  <ebb9@byu.net>
5698
5699         tests: avoid false negative with --with-packager
5700         * tests/test-version-etc.sh: Discard packager information.
5701         * tests/test-argp-version-etc-1.sh: Likewise.
5702         Reported by Mike Frysinger.
5703
5704         utimens: fix regression on Solaris
5705         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
5706         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
5707         can only change fd timestamps via futimesat.  Instead, use an
5708         additional witness macro to avoid BSD bug.
5709         Reported by Jim Meyering.
5710
5711 2009-11-17  Eric Blake  <ebb9@byu.net>
5712
5713         usleep: use it to simplify tests
5714         * modules/stat-time-tests (Depends-on): Add usleep.
5715         (configure.ac): Drop usleep check.
5716         * modules/chown-tests (Depends-on, configure.ac): Likewise.
5717         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
5718         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
5719         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
5720         * modules/openat-tests (Depends-on, configure.ac): Likewise.
5721         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
5722         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
5723         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
5724         Likewise.
5725         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
5726         * tests/test-lchown.h (nap): Likewise.
5727         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
5728         * tests/test-stat-time.c (nap): Likewise.
5729         * tests/test-utimens-common.h (nap): Update comments.
5730
5731         usleep: new module
5732         * modules/usleep: New file.
5733         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
5734         * lib/usleep.c (usleep): Likewise.
5735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5736         * modules/unistd (Makefile.am): Substitute witnesses.
5737         * lib/unistd.in.h (usleep): Add declaration.
5738         * doc/pastposix-functions/usleep.texi (usleep): Document this.
5739         * MODULES.html.sh (Date and time): Likewise.
5740         * modules/usleep-tests (Depends-on): New test.
5741         * tests/test-usleep.c: New file.
5742
5743         chown: work around OpenBSD bug
5744         * lib/chown.c (rpl_chown): Work around the bug.
5745         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
5746         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
5747         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
5748         * modules/chown (Depends-on): Add stdbool.
5749         * modules/lchown (Depends-on): Likewise.
5750         * doc/posix-functions/chown.texi (chown): Document the bug.
5751         * doc/posix-functions/lchown.texi (lchown): Likewise.
5752         * tests/test-lchown.h (test_chown): Relax test.
5753
5754         mkstemp: avoid conflict with C++ keyword template
5755         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
5756         * lib/mkostemp.c (mkostemp): Likewise.
5757         * lib/mkostemps.c (mkostemps): Likewise.
5758         * lib/mkstemp.c (mkstemp): Likewise.
5759         * lib/mkstemps.c (mkstemps): Likewise.
5760
5761         xalloc-die-tests: optimize
5762         * tests/test-xalloc-die.sh: Reduce number of processes.
5763
5764 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5765
5766         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
5767         patch from ludo@gnu.org (Ludovic Courtès).
5768
5769 2009-11-17  Jim Meyering  <meyering@redhat.com>
5770
5771         version-etc: use proper license string
5772         * modules/version-etc (License): Use LGPL, not LGPLv3+.
5773         * modules/version-etc-fsf: Likewise.
5774
5775 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5776
5777         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
5778         printed to stdout.  Deal with EOL differences.
5779
5780 2009-11-17  Eric Blake  <ebb9@byu.net>
5781
5782         unsetenv: work around Solaris bug
5783         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
5784         * lib/unsetenv.c (rpl_unsetenv): Work around it.
5785         Reported by Jim Meyering.
5786
5787         vasnprintf: avoid compiler warnings
5788         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
5789         variables.
5790         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
5791
5792 2009-11-17  Simon Josefsson  <simon@josefsson.org>
5793
5794         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
5795         settings since xalloc-die is no longer the self test,
5796         xalloc-die.sh is.
5797
5798 2009-11-17  Jim Meyering  <meyering@redhat.com>
5799
5800         test-xalloc-die.sh: make the code agree with the commit log
5801         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
5802         at the end, just in case you happen to have a test-xalloc-die
5803         program in some other PATH directory.
5804
5805         test-xalloc-die.sh: fix a portability bug
5806         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
5807         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
5808         Otherwise, argv[0] (as often seen in diagnostics) would be too
5809         system-dependent, sometimes with, and sometimes without the leading "./".
5810
5811         version-etc-fsf: relax license to LGPLv3+
5812         * modules/version-etc-fsf (License): Relax license.
5813
5814 2009-11-16  Eric Blake  <ebb9@byu.net>
5815
5816         xalloc-die-tests: avoid printing null pointer
5817         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
5818         shell script.
5819         * tests/test-xalloc-die.c (program_name): Declare.
5820         * tests/test-xalloc-die.sh (tmpfiles): New file.
5821
5822         setenv, unsetenv: work around various bugs
5823         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
5824         (setenv) [HAVE_SETENV]: Work around bugs.
5825         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
5826         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
5827         for bugs.
5828         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
5829         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
5830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
5831         * modules/stdlib (Makefile.am): Update substitutions.
5832         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
5833         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
5834         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5835         * modules/setenv-tests: New test.
5836         * modules/unsetenv-tests: Likewise.
5837         * tests/test-setenv.c: New file.
5838         * tests/test-unsetenv.c: Likewise.
5839
5840 2009-11-16  Jim Meyering  <meyering@redhat.com>
5841
5842         version-etc: relax license to LGPLv3+
5843         * modules/version-etc (License): Relax license.
5844
5845         better AC_REQUIRE expanded-before-required-warning avoidance
5846         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
5847         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
5848         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
5849         which is no longer needed.
5850
5851 2009-11-16  Eric Blake  <ebb9@byu.net>
5852
5853         test-freading: clean up temporary file
5854         * tests/test-freading.c (main): Remove file on success, and use
5855         ASSERT more liberally.
5856         Reported by Jim Meyering.
5857
5858 2009-11-16  Jim Meyering  <meyering@redhat.com>
5859
5860         avoid new AC_REQUIRE expanded-before-required warnings
5861         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
5862         merely using it.
5863         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
5864         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
5865
5866 2009-11-15  Simon Josefsson  <simon@josefsson.org>
5867
5868         * tests/test-xalloc-die.c: New file.
5869         * modules/xalloc-die-tests: New file.
5870         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
5871         XFAIL_TESTS so it can be appended by modules.
5872
5873 2009-11-15  Simon Josefsson  <simon@josefsson.org>
5874
5875         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
5876         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
5877
5878 2009-11-14  Eric Blake  <ebb9@byu.net>
5879
5880         fnmatch: avoid compiler warning
5881         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
5882         to silence compiler warning about mismatch signedness in ?:.
5883         Reported by Robert Millan.
5884
5885         intprops: add double-inclusion guard
5886         * lib/intprops.h: Allow idempotent includes.
5887         Suggested by Bruce Korb.
5888
5889         openat: detect Solaris fchownat bug
5890         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
5891         penalizing glibc chownat when only lchownat is broken.
5892         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
5893         trailing slash bugs.
5894         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
5895         * modules/openat-tests (Files): Include more files.
5896         (Depends-on): Add mgetgroups, sleep, stat-time.
5897         (configure.ac): Add additional checks.
5898         (Makefile.am): Build new test.
5899         * tests/test-fchownat.c: New file.
5900
5901         lchown: detect Solaris and FreeBSD bug
5902         * lib/lchown.c (rpl_lchown): Work around bug.
5903         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
5904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5905         * modules/unistd (Makefile.am): Populate it.
5906         * lib/unistd.in.h (lchown): Update declaration.
5907         * doc/posix-functions/lchown.texi (lchown): Document the bug.
5908         * modules/lchown-tests: New file.
5909         * tests/test-lchown.h (test_lchown): Likewise.
5910         * tests/test-lchown.c (main): Likewise.
5911
5912         chown: detect Solaris and FreeBSD bug
5913         * lib/chown.c (rpl_chown): Work around bug.
5914         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
5915         (gl_PREREQ_CHOWN): Delete.
5916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5917         * modules/unistd (Makefile.am): Populate it.
5918         * lib/unistd.in.h (chown): Update declaration.
5919         * lib/lchown.c (chown): Update client.
5920         * modules/lchown (Depends-on): Add lstat.
5921         * doc/posix-functions/chown.texi (chown): Document the bug.
5922         * doc/posix-functions/getgroups.texi (getgroups): Document
5923         getgroups pitfall.
5924         * modules/chown-tests: New file.
5925         * tests/test-chown.h (test_chown): Likewise.
5926         * tests/test-chown.c (main): Likewise.
5927
5928 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
5929
5930         gnulib-tool: correctly detect absence of m4 directories
5931         * gnulib-tool: Avoid extra newline on data passed to wc -l.
5932
5933 2009-11-14  Jim Meyering  <meyering@redhat.com>
5934
5935         maint.mk: Prohibit inclusion of "xalloc.h" without use.
5936         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
5937
5938 2009-11-14  John W. Eaton  <jwe@gnu.org>
5939
5940         strftime.h: wrap funtion declaration in extern "C" block
5941         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
5942
5943 2009-11-13  Eric Blake  <ebb9@byu.net>
5944
5945         getgroups: avoid compiler warning
5946         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
5947
5948         getgroups: work around FreeBSD bug
5949         * lib/getgroups.c (rpl_getgroups): Work around the bug.
5950         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
5951         * doc/posix-functions/getgroups.texi (getgroups): Document it.
5952         * tests/test-getgroups.c (main): Fix buffer overrun.
5953
5954         getgroups: avoid compilation failure
5955         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
5956         * modules/getgroups (Depends-on): Add stdint.
5957
5958 2009-11-13  Jim Meyering  <meyering@redhat.com>
5959
5960         test-getgroups: avoid compilation failure
5961         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
5962
5963 2009-11-13  Eric Blake  <ebb9@byu.net>
5964
5965         mgetgroups: new module, taken from coreutils
5966         * modules/mgetgroups: New file.
5967         * lib/mgetgroups.h: Likewise.
5968         * lib/mgetgroups.c (mgetgroups): Likewise.
5969         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
5970         * MODULES.html.sh (Users and groups): Mention it.
5971
5972         getgroups: don't expose GETGROUPS_T to user
5973         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
5974         an element at a time if GETGROUPS_T is wrong size.
5975         * lib/getugroups.h (getugroups): Change signature.
5976         * lib/unistd.in.h (getgroups): Likewise.
5977         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
5978         signature needs fixing.
5979         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
5980         AC_TYPE_GETGROUPS.
5981         * modules/group-member (Depends-on): Add getgroups.
5982         * lib/group-member.c (group_info, get_group_info): Use gid_t.
5983         (group_member): Rely on getgroups replacement.
5984         * lib/getugroups.c (getugroups): Use gid_t.
5985         * tests/test-getgroups.c (main): Likewise.
5986         * NEWS: Mention the signature change.
5987         * doc/posix-functions/getgroups.texi (getgroups): Mention the
5988         problem with signature.
5989         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
5990         GETGROUPS_T is still useful for setgroups.
5991
5992         getgroups, getugroups: provide stubs for mingw
5993         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
5994         * lib/getugroups.c (getugroups): Likewise.
5995         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
5996         function.  Modernize replacement scheme.
5997         (gl_PREREQ_GETGROUPS): Delete.
5998         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
5999         * modules/getgroups (configure.ac): Declare witness.
6000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6001         * modules/unistd (Depends-on): Substitute witness.
6002         * lib/unistd.in.h (getgroups): Declare replacement.
6003
6004         getgroups: avoid calling exit
6005         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6006         drop xalloc.
6007         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6008         dependencies.
6009         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6010         exiting, in the rare case of malloc failure.
6011
6012         getgroups: fix logic error
6013         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6014         has more than 20 groups.
6015         * modules/getgroups-tests: New test.
6016         * tests/test-getgroups.c: New file.
6017
6018 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6019
6020         * tests/test-base64.c: Improve.
6021
6022 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6023
6024         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6025         Blake <ebb9@byu.net>.
6026
6027 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6028
6029         * tests/test-xvasprintf.c: Add %s%s related checks.
6030
6031 2009-11-12  Eric Blake  <ebb9@byu.net>
6032
6033         version-etc: match standards.texi style
6034         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6035         and use <> only for URLs.
6036
6037 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6038
6039         fts: do not fail on a submount during traversal
6040         * lib/fts.c (fts_build): Read the stat info again after opening
6041         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6042         Original report at http://bugzilla.redhat.com/501848.
6043
6044 2009-11-12  Jim Meyering  <meyering@redhat.com>
6045
6046         bootstrap: sync from coreutils
6047         * build-aux/bootstrap (bootstrap_epilogue): New function.
6048         Use git_modules_config in one more place.  This make bootstrap's
6049         --gnulib-srcdir option more useful for testing.
6050
6051         bootstrap: generalize autoheader check
6052         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6053         AC_CONFIG_HEADERS.
6054
6055 2009-11-11  Eric Blake  <ebb9@byu.net>
6056
6057         mkfifoat: use new modules for Solaris and BSD bugs
6058         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6059         * lib/mkfifoat.c (mknodat): Split...
6060         * lib/mknodat.c (mknodat): ...into new file.
6061         * modules/mkfifoat (Files): Ship new file.
6062         (Depends-on): Add mkfifo, mknod.
6063         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6064         (Depends-on): Add symlink.
6065         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6066         redundant with test_mkfifo.h.
6067         (do_mkfifoat, do_mknodat): New helpers.
6068
6069         mknod: new module
6070         * modules/mknod: New file.
6071         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6072         * lib/mknod.c (mknod): Likewise.
6073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6074         defaults.
6075         * modules/sys_stat (Makefile.am): Substitute them.
6076         * lib/sys_stat.in.h (mknod): Declare replacement.
6077         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6078         Document it.
6079         * doc/posix-functions/mknod.texi (mknod): Likewise.
6080         * modules/mknod-tests: New test.
6081         * tests/test-mknod.c: Likewise.
6082
6083         mkfifo: new module
6084         * modules/mkfifo: New file.
6085         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6086         * lib/mkfifo.c (mkfifo): Likewise.
6087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6088         defaults.
6089         * modules/sys_stat (Makefile.am): Substitute them.
6090         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6091         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6092         Document it.
6093         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6094         * modules/mkfifo-tests: New test.
6095         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6096         from test-mkfifoat.c.
6097         * tests/test-mkfifo.c: New file.
6098
6099         readlink: detect FreeBSD bug
6100         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6101         slash on symlink.
6102         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6103         * tests/test-readlink.h (test_readlink): Enhance test.
6104
6105         symlink: detect FreeBSD bug
6106         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6107         slash on symlink.
6108         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6109         * tests/test-symlink.h (test_symlink): Enhance test.
6110
6111 2009-11-10  Eric Blake  <ebb9@byu.net>
6112
6113         link: detect FreeBSD bug
6114         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6115         symlink.
6116         * doc/posix-functions/link.texi (link): Document the bug.
6117         * tests/test-link.h (test_link): Enhance test.
6118         * tests/test-linkat.c (main): Update caller.
6119
6120         unlink, remove: detect FreeBSD bug
6121         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6122         slash on symlink.
6123         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6124         * doc/posix-functions/remove.texi (remove): Likewise.
6125         * tests/test-unlink.h (test_unlink): Enhance test.
6126         * tests/test-remove.c (main): Likewise.
6127
6128 2009-11-09  Eric Blake  <ebb9@byu.net>
6129
6130         rename: detect FreeBSD bug
6131         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6132         slash on symlink.
6133         * modules/renameat-tests (Depends-on): Add filenamecat.
6134         * tests/test-rename.h (test_rename): Allow one more errno.
6135         * tests/test-renameat.c (main): Likewise.
6136         * doc/posix-functions/rename.texi (rename): Document the bug.
6137
6138         open: detect FreeBSD bug
6139         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6140         symlink.
6141         * doc/posix-functions/open.texi (open): Document the bug.
6142         * doc/posix-functions/utimes.texi (utimes): Likewise.
6143         * tests/test-open.h (test_open): Add parameters, and test symlink
6144         handling.
6145         * tests/test-open.c (main): Adjust caller.
6146         * tests/test-fcntl-safer.c (main): Likewise.
6147         * modules/open-tests (Depends-on): Add stdbool, symlink.
6148         * modules/fcntl-safer-tests (Depends-on): Likewise.
6149         * tests/test-openat.c (main): Add test-open tests.
6150
6151         stat: detect FreeBSD bug
6152         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6153         symlink.
6154         * doc/posix-functions/stat.texi (stat): Document the bug.
6155         * tests/test-stat.h (test_stat_func): Add argument.
6156         * tests/test-stat.c (main): Adjust caller.
6157         * tests/test-fstatat.c (main): Likewise.
6158         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6159         Reported by Jim Meyering.
6160
6161 2009-11-09  James Youngman  <jay@gnu.org>
6162
6163         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6164         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6165
6166 2009-11-08  Jim Meyering  <meyering@redhat.com>
6167
6168         utimens: remove invalid futimesat call
6169         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6170         It used the file descriptor of the target file as the DIR_FD
6171         parameter and NULL as the file name.  That caused failure with
6172         errno == EFAULT on FreeBSD-8.0-rc2
6173
6174 2009-11-07  Eric Blake  <ebb9@byu.net>
6175
6176         fflush, freadseek: use fseeko, not fseek
6177         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6178         (clear_ungetc_buffer): Avoid potential problems on large files.
6179         * lib/freadseek.c (freadseek): Likewise.
6180         * modules/freadseek (Depends-on): Add fseeko.
6181         * modules/fseek (configure.ac): Set a witness.
6182         * tests/test-fflush.c (main): Use fseeko.
6183         * tests/test-fpurge.c (fseek): Disable link warning.
6184         * tests/test-freadable.c (fseek): Likewise.
6185         * tests/test-freading.c (fseek): Likewise.
6186         * tests/test-fseeko.c (fseek): Likewise.
6187         * tests/test-ftell.c (fseek): Likewise.
6188         * tests/test-ftello.c (fseek): Likewise.
6189         * tests/test-fwritable.c (fseek): Likewise.
6190         * tests/test-fwriting.c (fseek): Likewise.
6191
6192 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6193
6194         * modules/memchr (Depends-on): Drop getpagesize dependency.
6195
6196 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6197
6198         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6199         Reported by Ludovic Courtès.
6200         * build-aux/pmccabe2html: Improve example usage.
6201         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6202
6203 2009-11-06  Jim Meyering  <meyering@redhat.com>
6204
6205         do-release-commit-and-tag: New module.
6206         Automate the release-commit and tag process.
6207         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6208         * modules/do-release-commit-and-tag: New file.
6209         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6210
6211 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6212
6213         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6214         because test-select.c uses inet_pton.
6215
6216 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6217
6218         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6219         GETADDRINFO_LIB.  Bump serial number.
6220         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6221         Suggested by Eric Blake <ebb9@byu.net>.
6222
6223 2009-11-05  Eric Blake  <ebb9@byu.net>
6224
6225         strtod: detect darwin bug
6226         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6227         Reported by Leo Davis.
6228
6229         freopen-safer: new module
6230         * modules/freopen-safer: New module.
6231         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6232         * lib/freopen-safer.c (freopen_safer): New file.
6233         * lib/stdio-safer.h (freopen_safer): New declaration.
6234         * lib/stdio--.h (freopen): New override.
6235         * MODULES.html.sh (File stream based Input/Output): Mention it.
6236         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6237         freopen-safer module.
6238         * doc/posix-functions/stderr.texi (stderr): Likewise.
6239         * doc/posix-functions/stdin.texi (stdin): Likewise.
6240         * doc/posix-functions/stdout.texi (stdout): Likewise.
6241         * modules/freopen-safer-tests: New test.
6242         * tests/test-reopen-safer.c: New file.
6243
6244 2009-11-05  Jim Meyering  <meyering@redhat.com>
6245
6246         maint.mk: Prohibit inclusion of "close-stream.h" without use.
6247         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6248
6249 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6250
6251         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6252
6253 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6254
6255         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6256
6257 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6258
6259         Fix link error.
6260         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6261         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6262
6263 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6264
6265         * tests/test-func.c: Also test value of __func__.
6266
6267 2009-11-05  Simon Josefsson  <simon@josefsson.org>
6268
6269         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6270         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
6271
6272 2009-11-05  Bruno Haible  <bruno@clisp.org>
6273
6274         Fix link error.
6275         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6276         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6277         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6278
6279 2009-11-05  Bruno Haible  <bruno@clisp.org>
6280
6281         Tests for module 'inet_pton'.
6282         * modules/inet_pton-tests: New file.
6283         * tests/test-inet_pton.c: New file.
6284
6285 2009-11-05  Bruno Haible  <bruno@clisp.org>
6286
6287         Tests for module 'inet_ntop'.
6288         * modules/inet_ntop-tests: New file.
6289         * tests/test-inet_ntop.c: New file.
6290
6291 2009-11-04  Eric Blake  <ebb9@byu.net>
6292
6293         stdlib-safer: wrap all mkstemp variants
6294         * modules/mkostemp (configure.ac): Set witness.
6295         * modules/mkostemps (configure.ac): Likewise.
6296         * modules/mkstemps (configure.ac): Likewise.
6297         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6298         (mkstemps_safer): Wrap more functions.
6299         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6300         wrapping.
6301         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6302         (mkstemps_safer): Implement the wrappers.
6303
6304         mkstemps, mkostemps: new modules
6305         * modules/mkostemps: New module.
6306         * modules/mkstemps: Likewise.
6307         * lib/mkostemps.c (mkostemps): New file.
6308         * lib/mkstemps.c (mkstemps): Likewise.
6309         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6310         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6312         * modules/stdlib (Makefile.am): Substitute them.
6313         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6314         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6315         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6316         * doc/gnulib.texi (Glibc stdlib.h): Include them.
6317         * MODULES.html.sh (File system functions): Mention them.
6318
6319         tempname: resync from glibc
6320         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
6321         same values for __GT_FILE as glibc.  Abort even when assertions
6322         are disabled.
6323         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6324         match its value otherwise.  Allow idempotent inclusion.
6325         * lib/mkdtemp.c (mkdtemp): Adjust caller.
6326         * lib/mkostemp.c (mkostemp): Likewise.
6327         * lib/mkstemp.c (mkstemp): Likewise.
6328         * lib/tmpfile.c (tmpfile): Likewise.
6329         * NEWS: Document this.
6330
6331         utimens: fix use of futimens on older Linux
6332         * lib/utimens.c (fdutimens): Use updated, rather than original,
6333         timespec to avoid bug in older Linux kernel.
6334         Reported by Simon Josefsson.
6335
6336 2009-11-04  Bruno Haible  <bruno@clisp.org>
6337
6338         Make num_processors more flexible and consistent.
6339         * lib/nproc.h (enum nproc_query): New type.
6340         (num_processors): Add a 'query' argument.
6341         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6342         (num_processors): Add a 'query' argument. Test the value of the
6343         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6344         mingw, count the number of CPUs available for the current process.
6345         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6346         Check for sched_getaffinity and sched_getaffinity_np.
6347         * modules/nproc (Depends-on): Add c-ctype, extensions.
6348         * NEWS: Mention the change.
6349
6350 2009-11-03  Bruno Haible  <bruno@clisp.org>
6351
6352         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6353
6354 2009-11-03  Jim Meyering  <meyering@redhat.com>
6355
6356         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6357         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6358         if it is defined.
6359
6360 2009-11-02  Eric Blake  <ebb9@byu.net>
6361
6362         mktime, timegm: share common declaration
6363         * lib/mktime-internal.h: New file.
6364         * lib/mktime.c: Use it rather than open-coding a declaration.
6365         * lib/timegm.c: Likewise.
6366         * modules/mktime (Files): Ship it.
6367         * modules/timegm (Files): Likewise.
6368         Suggested by Bruno Haible.
6369
6370         test-update-copyright: update test to match script changes
6371         * tests/test-update-copyright.sh: Avoid hard-coding perl
6372         location.  Don't update *.bak created by earlier runs.
6373
6374 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6375             Simon Josefsson  <simon@josefsson.org>
6376             Bruno Haible  <bruno@clisp.org>
6377
6378         Fix link error on Solaris 8.
6379         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6380         also in libnsl. Define also INET_PTON_LIB.
6381         * modules/inet_pton (Link): New section.
6382
6383 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6384             Bruno Haible  <bruno@clisp.org>
6385
6386         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6387         * modules/inet_ntop (Link): New section.
6388         Reported by Boyan Kasarov <bkasarov@gmail.com>.
6389
6390 2009-11-02  Eric Blake  <ebb9@byu.net>
6391
6392         maint: avoid compiler warnings in m4 macros
6393         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6395
6396 2009-11-02  Simon Josefsson  <simon@josefsson.org>
6397
6398         * m4/pmccabe2html.m4: Remove file.
6399         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
6400         function.  Change maintainer.
6401         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6402         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
6403         Courtès).
6404
6405 2009-10-31  Eric Blake  <ebb9@byu.net>
6406
6407         fseeko: fix m4 regression
6408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
6409         regression from 2009-10-27.
6410         Reported by Ralf Wildenhues.
6411
6412 2009-10-31  Jim Meyering  <meyering@redhat.com>
6413
6414         inttostr: aesthetics and improved (compile-time) safety
6415         Define inttype_is_signed rather than inttype_is_unsigned,
6416         since the sole use is via "#if inttype_is_signed".
6417         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6418         inttype_is_unsigned.
6419         * lib/offtostr.c (inttype_is_signed): Likewise.
6420         * lib/uinttostr.c (inttype_is_signed): Likewise.
6421         * lib/umaxtostr.c (inttype_is_signed): Likewise.
6422         * lib/inttostr.c (inttostr): Use verify to cross-check the
6423         inttype_is_signed value and the signedness of the actual type.
6424         * modules/inttostr (Depends-on): Add verify.
6425
6426 2009-10-30  Eric Blake  <ebb9@byu.net>
6427
6428         build: avoid compiler warnings
6429         * lib/fchmodat.c (lchmod): Mark unused variables.
6430         * lib/getopt.c (_getopt_initialize): Likewise.
6431         * lib/mktime.c (__mktime_internal): Provide prototype.
6432         * lib/inttostr.c (inttostr): Avoid compiler warning even with
6433         older gcc that do not understand #pragma GCC diagnostic.
6434         * lib/uinttostr.c (inttype_is_unsigned): Define.
6435         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6436
6437 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6438
6439         stat: fix compilation on AIX
6440         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6441         only see struct stat64.
6442
6443 2009-10-30  Eric Blake  <ebb9@byu.net>
6444
6445         exclude: make more robust
6446         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6447         rather than masking a coding bug.
6448         Suggested by Bruno Haible.
6449
6450 2009-10-30  Jim Meyering  <meyering@redhat.com>
6451
6452         perl scripts: remove #!/usr/bin/perl in favor of more portable...
6453         Rather than putting #!/usr/bin/perl on the first line,
6454         start with a variant of what's recommended by "man perlrun" that
6455         invokes the first "perl" program from your shell's search path.
6456         * build-aux/gitlog-to-changelog: Replace #!... as above.
6457         Add a "Local Variables" perl mode setting.
6458         Prompted by a patch from Ludovic Courtès.
6459         Improved by Eric Blake.
6460         * build-aux/useless-if-before-free: Likewise.
6461         * build-aux/announce-gen: Likewise.
6462         * build-aux/update-copyright: Likewise.
6463
6464 2009-10-29  Eric Blake  <ebb9@byu.net>
6465
6466         filenamecat-lgpl: adjust clients
6467         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6468         filenamecat.
6469         * modules/renameat (Depends-on): Likewise.
6470
6471         filenamecat: split into filenamecat-lgpl
6472         * modules/filenamecat-lgpl: New module.
6473         * modules/filenamecat (Files): Move library-safe files into
6474         filenamecat-lgpl.
6475         (Depends-on): Add filenamecat-lgpl.
6476         (configure.ac): Declare witness.
6477         * lib/filenamecat.h (file_name_concat): Only declare when using
6478         GPL module.
6479         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6480         Move...
6481         * lib/filenamecat-lgpl.c: ...into new file.
6482         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6483         (gl_FILE_NAME_CONCAT): Use it.
6484         * MODULES.html.sh (File system functions): Mention new module.
6485
6486         argp: avoid memory leak
6487         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6488         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6489         base_name, since the latter malloc()s and can call exit().
6490         Leak introduced 2006-07-03.
6491
6492         dirname-lgpl: adjust clients that don't need full dirname
6493         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6494         * modules/filenamecat (Depends-on): Likewise.
6495         * modules/linkat (Depends-on): Likewise.
6496         * modules/mkancesdirs (Depends-on): Likewise.
6497         * modules/mkdir (Depends-on): Likewise.
6498         * modules/openat (Depends-on): Likewise.
6499         * modules/savewd (Depends-on): Likewise.
6500         * modules/rename (Depends-on): Likewise.
6501         (License): Relax license.
6502         * modules/mkdir-tests (Depends-on): Drop progname.
6503         (Makefile.am): Delete unneeded LDADD.
6504         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6505
6506         dirname: split into dirname-lgpl
6507         * modules/dirname-lgpl: New module.
6508         * modules/dirname (Files): Move library-safe files into
6509         dirname-lgpl.
6510         (Depends-on): Add dirname-lgpl.
6511         (configure.ac): Declare witness.
6512         * modules/double-slash-root (License): Relax license.
6513         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6514         module.
6515         * lib/dirname.c (dir_len, mdir_name): Move...
6516         * lib/dirname-lgpl.c: ...into new file.
6517         * lib/basename.c (last_component, base_len): Move...
6518         * lib/basename-lgpl.c: ...into new file.
6519         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
6520         (gl_DIRNAME): Use it.
6521         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
6522         Mention new module.
6523         * modules/dirname-tests (Depends-on): Add progname.
6524         * tests/test-dirname.c (program_name): Delete.
6525
6526         mkdir: make safe for libraries
6527         * modules/mkdir (Depends-on): Drop xalloc.
6528         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
6529         exit.
6530
6531         tests: avoid some compiler warnings
6532         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
6533         literals.
6534         * tests/test-memchr.c (main): Avoid type mismatch.
6535         * tests/test-arpa_inet.c (main): Avoid unused parameters.
6536         * tests/test-base64.c (main): Likewise.
6537         * tests/test-getdelim.c (main): Likewise.
6538         * tests/test-gethostname.c (main): Likewise.
6539         * tests/test-getline.c (main): Likewise.
6540         * tests/test-netinet_in.c (main): Likewise.
6541         * tests/test-select.c (open_server_socket, main): Likewise.
6542         * tests/test-select-stdin.c (main): Likewise.
6543         * tests/test-sockets.c (main): Likewise.
6544         * tests/test-strsignal.c (main): Likewise.
6545         * tests/test-sys_select.c (main): Likewise.
6546         * tests/test-sys_socket.c (main): Likewise.
6547         * tests/test-u64.c (main): Likewise.
6548         * tests/test-xfprintf-posix.c (main): Likewise.
6549         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
6550
6551         sockets: avoid compiler warning
6552         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
6553
6554         maint: detect usage(1) and other suspicious exits
6555         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
6556
6557 2009-10-29  Jim Meyering  <meyering@redhat.com>
6558
6559         timespec: long-to-int truncation could make timespec_cmp malfunction
6560         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
6561         a multiple of 2^32 nanoseconds as no difference.
6562
6563 2009-10-28  Jim Meyering  <meyering@redhat.com>
6564
6565         fprintftime: wrap macro code argument in "do {...} while(0)"
6566         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
6567         cpy macro must be a statement that can be followed by a semicolon.
6568         Now that the else clause contains a comment and is hence longer
6569         than one line, I require curly braces.  That in turn requires
6570         that we wrap this code block in the standard do...while(0).
6571
6572         fprintftime: remove stray semicolon from previous change
6573         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
6574
6575         fprintftime: avoid a warning about ignored fwrite return value
6576         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
6577         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
6578         that is unsafe.
6579         * modules/fprintftime (Depends-on): Add ignore-value.
6580
6581         exclude: avoid an unwarranted warning
6582         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
6583
6584 2009-10-27  Eric Blake  <ebb9@byu.net>
6585
6586         fseek: avoid compilation failure when fflush is replaced
6587         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
6588         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
6589         module is in use.
6590         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
6591         module is not in use; since REPLACE_FSEEK worked otherwise.
6592         (GNULIB_FTELLO): Likewise for ftell.
6593         Reported by Ian Beckwith and others.
6594
6595 2009-10-27  Bruno Haible  <bruno@clisp.org>
6596
6597         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
6598         Reported by Jim Meyering.
6599
6600 2009-10-27  Jim Meyering  <jim@meyering.net>
6601             Bruno Haible  <bruno@clisp.org>
6602
6603         Avoid warning despite dropping the return value of fwrite.
6604         * lib/unicodeio.c: Include ignore-value.h.
6605         (fwrite_success_callback): Explicitly ignore fwrite's return value.
6606         * modules/unicodeio (Depends-on): Add ignore-value.
6607
6608 2009-10-26  Eric Blake  <ebb9@byu.net>
6609
6610         areadlinkat: fix fallback path
6611         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
6612         pointer and zero.
6613
6614 2009-10-22  Pádraig Brady  <P@draigBrady.com>
6615
6616         Use a better IO block size for modern systems
6617         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
6618         * lib/md2.c: Likewise.
6619         * lib/md4.c: Likewise.
6620         * lib/md5.c: Likewise.
6621         * lib/sha1.c: Likewise.
6622         * lib/sha256.c: Likewise.
6623         * lib/sha512.c: Likewise.
6624
6625 2009-10-22  Eric Blake  <ebb9@byu.net>
6626
6627         tests: avoid several compiler warnings
6628         * tests/test-getcwd.c (main): Avoid buffer underflow.
6629         * tests/test-getdate.c (main): String literals are not safe with
6630         putenv, so use setenv.  Declare unused argument.
6631         * modules/getdate-tests (Depends-on): Add setenv.
6632         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
6633         problems with string literals in char *.
6634         * tests/test-hash.c (main): Avoid shadowing declaration.
6635         (insert_new): Treat string literals as char const *.
6636         * tests/test-getopt.h (test_getopt): Likewise.
6637         (getopt_loop): Alter types to minimize casting elsewhere.
6638         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
6639         (test_getopt_long_posix): Likewise.
6640         (do_getopt_long): Add wrapper to minimize casting.
6641         * tests/test-atexit.c (clear_temp_file): Use void.
6642         * tests/test-areadlink-with-size.c (main): Declare unused
6643         arguments.
6644         * tests/test-areadlink.c (main): Likewise.
6645         * tests/test-areadlinkat-with-size.c (main): Likewise.
6646         * tests/test-areadlinkat.c (main): Likewise.
6647         * tests/test-canonicalize-lgpl.c (main): Likewise.
6648         * tests/test-canonicalize.c (main): Likewise.
6649         * tests/test-dirent-safer.c (main): Likewise.
6650         * tests/test-dirname.c (main): Likewise.
6651         * tests/test-dup2.c (main): Likewise.
6652         * tests/test-fchdir.c (main): Likewise.
6653         * tests/test-fcntl-h.c (main): Likewise.
6654         * tests/test-fcntl-safer.c (main): Likewise.
6655         * tests/test-fdopendir.c (main): Likewise.
6656         * tests/test-fdutimensat.c (main): Likewise.
6657         * tests/test-fflush.c (main): Likewise.
6658         * tests/test-filenamecat.c (main): Likewise.
6659         * tests/test-filevercmp.c (main): Likewise.
6660         * tests/test-fopen-safer.c (main): Likewise.
6661         * tests/test-fopen.c (main): Likewise.
6662         * tests/test-fpending.c (main): Likewise.
6663         * tests/test-fpurge.c (main): Likewise.
6664         * tests/test-freading.c (main): Likewise.
6665         * tests/test-fstatat.c (main): Likewise.
6666         * tests/test-fsync.c (main): Likewise.
6667         * tests/test-futimens.c (main): Likewise.
6668         * tests/test-getndelim2.c (main): Likewise.
6669         * tests/test-gettimeofday.c (main): Likewise.
6670         * tests/test-getopt.c (main): Likewise.
6671         * tests/test-i-ring.c (main): Likewise.
6672         * tests/test-inttypes.c (main): Likewise.
6673         * tests/test-link.c (main): Likewise.
6674         * tests/test-lstat.c (main): Likewise.
6675         * tests/test-math.c (main): Likewise.
6676         * tests/test-md5.c (main): Likewise.
6677         * tests/test-memchr2.c (main): Likewise.
6678         * tests/test-memrchr.c (main): Likewise.
6679         * tests/test-mkdir.c (main): Likewise.
6680         * tests/test-mkdirat.c (main): Likewise.
6681         * tests/test-mkfifoat.c (main): Likewise.
6682         * tests/test-open.c (main): Likewise.
6683         * tests/test-openat-safer.c (main): Likewise.
6684         * tests/test-openat.c (main): Likewise.
6685         * tests/test-quotearg.c (main): Likewise.
6686         * tests/test-rawmemchr.c (main): Likewise.
6687         * tests/test-readlink.c (main): Likewise.
6688         * tests/test-remove.c (main): Likewise.
6689         * tests/test-rename.c (main): Likewise.
6690         * tests/test-renameat.c (main): Likewise.
6691         * tests/test-rmdir.c (main): Likewise.
6692         * tests/test-sha1.c (main): Likewise.
6693         * tests/test-signal.c (main): Likewise.
6694         * tests/test-sigaction.c (main): Likewise.
6695         * tests/test-stat.c (main): Likewise.
6696         * tests/test-stat-time.c (main): Likewise.
6697         * tests/test-stddef.c (main): Likewise.
6698         * tests/test-stdint.c (main): Likewise.
6699         * tests/test-stdio.c (main): Likewise.
6700         * tests/test-stdlib.c (main): Likewise.
6701         * tests/test-strchrnul.c (main): Likewise.
6702         * tests/test-strerror.c (main): Likewise.
6703         * tests/test-string.c (main): Likewise.
6704         * tests/test-strtod.c (main): Likewise.
6705         * tests/test-strverscmp.c (main): Likewise.
6706         * tests/test-symlink.c (main): Likewise.
6707         * tests/test-symlinkat.c (main): Likewise.
6708         * tests/test-sys_stat.c (main): Likewise.
6709         * tests/test-sys_time.c (main): Likewise.
6710         * tests/test-time.c (main): Likewise.
6711         * tests/test-unistd.c (main): Likewise.
6712         * tests/test-unlink.c (main): Likewise.
6713         * tests/test-unlinkat.c (main): Likewise.
6714         * tests/test-utimens.c (main): Likewise.
6715         * tests/test-utimensat.c (main): Likewise.
6716         * tests/test-version-etc.c (main): Likewise.
6717         * tests/test-wchar.c (main): Likewise.
6718         * tests/test-wctype.c (main): Likewise.
6719         * tests/test-xprintf-posix.c (main): Likewise.
6720         * tests/test-posixtm.c (main): Likewise.
6721         (STREQ): Delete unused macro.
6722         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
6723         shadowed variables.
6724         * tests/test-memchr.c (main): Likewise.
6725
6726 2009-10-21  Eric Blake  <ebb9@byu.net>
6727
6728         areadlinkat: avoid failure on older glibc
6729         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
6730         rather than mis-comparing 0 against FUNC_RESULT of char*.
6731
6732 2009-10-21  Bruno Haible  <bruno@clisp.org>
6733
6734         * modules/stpncpy (License): Relicense under LGPLv2+.
6735         Reported by David Lutterkort <lutter@redhat.com>.
6736
6737 2009-10-20  Eric Blake  <ebb9@byu.net>
6738
6739         utimensat: work around Solaris 9 bug
6740         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
6741         has trailing slash bugs.
6742         * tests/test-lutimens.h (test_lutimens): Enhance test.
6743         * tests/test-utimens.h (test_utimens): Likewise.
6744         * doc/posix-functions/utime.texi (utime): Enhance documentation.
6745         * doc/posix-functions/utimes.texi (utimes): Likewise.
6746         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6747         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
6748         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
6749         * doc/posix-functions/futimens.texi (futimens): Likewise.
6750
6751         fdutimensat: new module
6752         * modules/fdutimensat: New file.
6753         * lib/fdutimensat.c (fdutimensat): Likewise.
6754         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
6755         * MODULES.html.sh (File system functions): Mention module.
6756         * modules/fdutimensat-tests: New test.
6757         * tests/test-fdutimensat.c: Likewise.
6758
6759         doc: regenerate INSTALL
6760         * doc/INSTALL: Reflect recent autoconf update.
6761         * doc/INSTALL.ISO: Likewise.
6762         * doc/INSTALL.UTF-8: Likewise.
6763
6764 2009-10-20  Pádraig Brady  <P@draigBrady.com>
6765
6766         acl: warn if ACL support is not detected
6767         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
6768
6769 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
6770
6771         * lib/nproc.h: Add extern "C" block for C++.
6772
6773 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
6774             Bruno Haible  <bruno@clisp.org>
6775
6776         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
6777         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
6778         * doc/posix-functions/isalpha.texi: Likewise.
6779         * doc/posix-functions/isblank.texi: Likewise.
6780         * doc/posix-functions/iscntrl.texi: Likewise.
6781         * doc/posix-functions/isdigit.texi: Likewise.
6782         * doc/posix-functions/isgraph.texi: Likewise.
6783         * doc/posix-functions/islower.texi: Likewise.
6784         * doc/posix-functions/isprint.texi: Likewise.
6785         * doc/posix-functions/ispunct.texi: Likewise.
6786         * doc/posix-functions/isspace.texi: Likewise.
6787         * doc/posix-functions/isupper.texi: Likewise.
6788         * doc/posix-functions/isxdigit.texi: Likewise.
6789
6790 2009-10-18  Bruno Haible  <bruno@clisp.org>
6791
6792         Tests for module 'isblank'.
6793         * modules/isblank-tests: New file.
6794         * tests/test-isblank.c: New file.
6795
6796         New module 'isblank'.
6797         * lib/isblank.c: New file.
6798         * m4/isblank.m4: New file.
6799         * modules/isblank: New file.
6800         * doc/posix-functions/isblank.texi: Mention the new module.
6801
6802 2009-10-18  Bruno Haible  <bruno@clisp.org>
6803
6804         New module 'ctype'.
6805         * lib/ctype.in.h: New file.
6806         * m4/ctype.m4: New file.
6807         * modules/ctype: New file.
6808         * doc/posix-headers/ctype.texi: Mention the new module.
6809
6810 2009-10-18  Jim Meyering  <meyering@redhat.com>
6811
6812         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
6813         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
6814         right after its initialization, rather than farther down.
6815         Keeping these in close proximity makes it easier to ensure
6816         that each such variable is initialized.  E.g.,
6817
6818             LIB_CLOCK_GETTIME=
6819             AC_SUBST([LIB_CLOCK_GETTIME])
6820
6821         This change also increments these serial numbers.
6822         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
6823         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6825
6826 2009-10-18  Bruno Haible  <bruno@clisp.org>
6827
6828         Don't let environment variables perturb build.
6829         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
6830         (gl_PREREQ_GETHRXTIME): ... not here.
6831
6832 2009-10-18  Bruno Haible  <bruno@clisp.org>
6833
6834         Avoid symlink attack in localcharset module.
6835         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
6836         (O_NOFOLLOW): Define fallback.
6837         (get_charset_aliases): Don't open the file if it is a symbolic link.
6838         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
6839         gl_FCNTL_H.
6840         (gl_FCNTL_H): Require it.
6841         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
6842         * modules/localcharset (Files): Add m4/fcntl_h.m4.
6843         Reported by Fergal Glynn <fglynn@veracode.com>.
6844
6845 2009-10-18  Bruno Haible  <bruno@clisp.org>
6846
6847         Implement nproc for mingw.
6848         * lib/nproc.c: Include <windows.h>
6849         (num_processors): On native Windows platforms, try GetSystemInfo.
6850
6851 2009-10-18  Bruno Haible  <bruno@clisp.org>
6852
6853         Implement nproc for IRIX.
6854         * lib/nproc.c: Include <sys/sysmp.h>.
6855         (num_processors): On IRIX systems, try sysmp.
6856         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
6857
6858 2009-10-18  Bruno Haible  <bruno@clisp.org>
6859
6860         Implement nproc for HP-UX.
6861         * lib/nproc.c: Include <sys/pstat.h>
6862         (num_processors): On HP-UX systems, try pstat_getdynamic.
6863         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
6864         pstat_getdynamic.
6865
6866 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
6867             Bruno Haible  <bruno@clisp.org>
6868
6869         Implement nproc for NetBSD, OpenBSD.
6870         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
6871         (ARRAY_SIZE): New macro.
6872         (num_processors): On BSD systems, try sysctl of HW_NCPU.
6873         * m4/nproc.m4: New file.
6874         * modules/nproc (Files): Add m4/nproc.m4.
6875         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
6876         (Makefile.am): Instead, augment lib_SOURCES.
6877
6878 2009-10-18  Bruno Haible  <bruno@clisp.org>
6879
6880         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
6881         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
6882         sys/param.h.
6883
6884 2009-10-16  Eric Blake  <ebb9@byu.net>
6885
6886         utimensat: new module
6887         * modules/utimensat: New file.
6888         * lib/utimensat.c (utimensat): Likewise.
6889         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6890         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
6891         so we can work around Linux bugs.
6892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6893         * modules/sys_stat (Makefile.am): Substitute them.
6894         * lib/sys_stat.in.h (utimensat): Declare it.
6895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6896         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6897         * modules/utimensat-tests: New test.
6898         * tests/test-utimensat.c: Likewise.
6899
6900         utimens: let lutimens work on non-symlinks
6901         * lib/utimens.c (lutimens): Fall back to utimens rather than
6902         failing with ENOSYS, when file is not a symlink.
6903         (utimens): Reduce redirection.
6904         * tests/test-lutimens.h (test_lutimens): Update test to cover
6905         non-symlinks.
6906         * tests/test-utimens.h (test_utimens): Update test to cover
6907         symlinks.
6908         * tests/test-utimens.c (main): Update caller.
6909
6910         utimens: cache whether utimensat syscall works
6911         * lib/utimens.c (utimensat_works_really): New cache variable.
6912         (fdutimens, lutimens): Use it to avoid failing syscall.
6913
6914         test-stat-time, test-utimens: improve portability
6915         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
6916         ext4 on alpha, and for cygwin.
6917         * tests/test-utimens-common.h: New file.
6918         (nap): Factor delays into single function.
6919         * tests/test-lutimens.h (test_lutimens): Use new header.
6920         * tests/test-futimens.h (test_futimens): Likewise.
6921         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
6922         timestamps to occur from same machine, as was done previously for
6923         test_utimens.
6924         * modules/utimens-tests (Files): Ship new file.
6925         * modules/futimens-tests (Files): Likewise.
6926         Reported in part by Jim Meyering.
6927
6928         sys_stat: sort replacement declarations
6929         * lib/sys_stat.in.h: Sort declarations.
6930         * lib/futimens.c (futimens): Fix typo.
6931
6932 2009-10-15  Jim Meyering  <meyering@redhat.com>
6933
6934         don't let environment settings perturb build
6935         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
6936         could cause a configure-time and/or build-time malfunction.
6937         Typically, a configure-time function-in-library test is performed
6938         via code like this:
6939
6940           LIB_VAR=
6941           AC_SUBST([LIB_VAR])
6942           prefix_saved_LIBS=$LIBS
6943             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
6944                        [test "$ac_cv_search_FUNC" = "none required" ||
6945                         LIB_VAR=$ac_cv_search_FUNC])
6946           LIBS=$prefix_saved_LIBS
6947
6948         However, in each of the files affected by this change, the LIB_VAR=
6949         initialization was omitted.  Thus, when set in the environment, its
6950         value would propagate into generated Makefiles when FUNC is not found
6951         in LIB_NAME.
6952         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
6953         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6955
6956 2009-10-14  Eric Blake  <ebb9@byu.net>
6957
6958         fchdir: avoid infinite recursion in mingw
6959         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
6960         recursing.
6961
6962         test-stat-time: port to mingw
6963         * tests/test-stat-time.c (force_unlink): Return a value.
6964         (test_ctime) [W32]: Fix compilation error.
6965         (nap): Don't call usleep with too large an argument.  Use
6966         force_unlink.
6967         * doc/pastposix-functions/usleep.texi (usleep): Document the
6968         portability issue.
6969
6970 2009-10-13  Jim Meyering  <meyering@redhat.com>
6971
6972         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
6973         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
6974         * modules/pipe-filter-ii: Likewise.
6975         * modules/sys_socket-tests: Likewise.
6976         * modules/tsearch-tests: Likewise.
6977         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
6978         (check): Depend on it.
6979
6980 2009-10-12  Eric Blake  <ebb9@byu.net>
6981
6982         utimens-tests: port to NFS file systems
6983         * tests/test-utimens.h (test_utimens): Refactor utimecmp
6984         comparisons to avoid spurious failures from timestamp drift
6985         between NFS machines.
6986
6987 2009-10-12  Eric Blake  <ebb9@byu.net>
6988
6989         stat-time-tests: minor cleanups
6990         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
6991         * tests/test-stat-time.c (nap): Separate assignment from call.
6992         Suggested by Paolo Bonzini and Bruno Haible.
6993
6994         sys_stat: guarantee struct timespec
6995         * lib/sys_stat.in.h (includes): Always include <time.h>
6996         * modules/sys_stat (Depends-on): Add time.
6997         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
6998         mode_t permission values.
6999         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7000         get at subsecond timestamps.
7001
7002 2009-10-10  Eric Blake  <ebb9@byu.net>
7003
7004         futimens: new module
7005         * modules/futimens: New file.
7006         * lib/futimens.c (futimens): Likewise.
7007         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7008         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7009         we can work around Linux bugs.
7010         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7011         * modules/sys_stat (Makefile.am): Substitute them.
7012         * lib/sys_stat.in.h (futimens): Declare it.
7013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7014         * doc/posix-functions/futimens.texi (futimens): Likewise.
7015         * modules/futimens-tests: New test.
7016         * tests/test-futimens.c: Likewise.
7017
7018         utimens: introduce fdutimens
7019         * lib/utimens.h (fdutimens): New prototype.
7020         * lib/utimens.c (gl_futimens): Move guts...
7021         (fdutimens): ...to new interface.
7022         * tests/test-utimens.c (do_fdutimens): Use it.
7023
7024         utimens: add UTIME_NOW and UTIME_OMIT support
7025         * lib/utimens.c (validate_timespec, update_timespec): New helper
7026         functions.
7027         (gl_futimens, lutimens): Use them.
7028         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7029         stdbool, sys_stat.
7030         (Link): Mention resulting library dependency.
7031         * modules/utimecmp (Link): Likewise.
7032         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7033         (Makefile.am): Pick up library dependency.
7034         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7035         definition.
7036         * tests/test-sys_stat.c: Test the definitions.
7037         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7038         * NEWS: Document library dependency.
7039
7040         utimecmp: support symlink timestamps
7041         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7042         hashing when possible.  Use pathconf when available.
7043         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7044         * modules/utimecmp (Depends-on): Add lstat.
7045
7046         utimens: add lutimens interface
7047         * lib/utimens.c (lutimens): New function.
7048         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7049         * lib/utimens.h (lutimens): Declare new interface.
7050         * tests/test-utimens.c (main): Enhance test.
7051         * tests/test-lutimens.h (test_lutimens): New file.
7052         * modules/utimens-tests (Files): Distribute it.
7053         (Depends-on): Add symlink.
7054         (configure.ac): Check for usleep.
7055
7056         utimens: validate futimens usage
7057         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7058         fewer syscalls on failure later on.  Avoid compiler warning on
7059         mingw.
7060         * modules/utimens (Depends-on): Add dup2.
7061
7062         utimens: add test
7063         * modules/utimens-tests: New test.
7064         * tests/test-utimens.h: New file.
7065         * tests/test-futimens.h: Likewise.
7066         * tests/test-utimens.c: Likewise.
7067
7068         doc: mention timestamp portability issues
7069         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7070         instead.
7071         * doc/posix-functions/utime.texi (utime): Likewise.
7072         * doc/posix-functions/utimes.texi (utimes): Likewise.
7073         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7074         instead.
7075         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7076         module.
7077         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7078         Mention weakness with symlink timestamps.
7079         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7080         to utimensat/futimens instead.
7081         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7082
7083         test-dup2: enhance test
7084         * tests/test-dup2.c (main): Also check AT_FDCWD.
7085
7086         test-stat-time: avoid more spurious failures
7087         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7088         xfs; and avoid race if the two timestamps cross quantization edge.
7089
7090         relocatable: prefer 'file system' over 'filesystem'
7091         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7092         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7093         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7094         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7095         * lib/relocatable.c (compute_curr_prefix): Likewise.
7096
7097 2009-10-10  Jim Meyering  <meyering@redhat.com>
7098
7099         stat-time-tests: check for the usleep function
7100         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7101
7102 2009-10-10  Bruno Haible  <bruno@clisp.org>
7103
7104         * modules/xnanosleep: Put the Link section after the Include section.
7105
7106 2009-10-09  Eric Blake  <ebb9@byu.net>
7107
7108         dup2: work around FreeBSD 6.1 bug
7109         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7110         * doc/posix-functions/dup2.texi (dup2): Document it.
7111         Reported by Nelson H. F. Beebe and Jim Meyering.
7112
7113         test-stat-time: port to buggy NFS clients
7114         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7115         (test_ctime): Also skip test if mtime and ctime are skewed.
7116
7117         maint: prefer 'file system' over 'filesystem'
7118         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7119         * doc/posix-functions/lstat.texi (lstat): Likewise.
7120         * lib/file-has-acl.c (file_has_acl): Likewise.
7121         * lib/fwriteerror.c [TEST]: Likewise.
7122         * tests/test-areadlink.h (test_areadlink): Likewise.
7123         * tests/test-areadlinkat-with-size.c (main): Likewise.
7124         * tests/test-areadlinkat.c (main): Likewise.
7125         * tests/test-canonicalize-lgpl.c (main): Likewise.
7126         * tests/test-canonicalize.c (main): Likewise.
7127         * tests/test-fstatat.c (main): Likewise.
7128         * tests/test-linkat.c (main): Likewise.
7129         * tests/test-lstat.h (test_lstat_func): Likewise.
7130         * tests/test-mkdir.h (test_mkdir): Likewise.
7131         * tests/test-readlink.h (test_readlink): Likewise.
7132         * tests/test-remove.c (main): Likewise.
7133         * tests/test-rename.h (test_rename): Likewise.
7134         * tests/test-renameat.c (main): Likewise.
7135         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7136         * tests/test-symlink.h (test_symlink): Likewise.
7137         * tests/test-symlinkat.c (main): Likewise.
7138         * tests/test-unlink.h (test_unlink_func): Likewise.
7139         * tests/test-unlinkat.c (main): Likewise.
7140
7141         maint: make realtime library usage explicit
7142         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7143         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7144         * modules/settime (Link): Likewise.
7145         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7146
7147         test-stat-time: speed up execution
7148         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7149         warning on mingw.
7150         (nap): New helper function.
7151         (prepare_test): Use it to reduce sleep time.
7152         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7153         execution.
7154         * modules/stat-time-tests (configure.ac): Check for usleep.
7155
7156 2009-10-09  Jim Meyering  <meyering@redhat.com>
7157
7158         selinux-h: always use getfilecon wrappers
7159         * lib/getfilecon.c: New file.
7160         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7161         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7162         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7163         (fgetfilecon): Provide a stub.
7164         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7165         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7166         file unconditionally.
7167         When <selinux/selinux.h> is found, arrange to use wrappers.
7168         * modules/selinux-h (Files): Add getfilecon.c.
7169         (Makefile.am): Substitute include-next-related bits
7170         into the now-always-generated selinux/selinux.h file.
7171         * doc/glibc-functions/lgetfilecon.texi: New file.
7172         * doc/glibc-functions/fgetfilecon.texi: New file.
7173         * doc/glibc-functions/getfilecon.texi: New file.
7174         * doc/glibc-functions/getfilecon-desc.texi: New file.
7175         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7176         which to pull in the new files.
7177         * MODULES.html.sh (Misc): Add selinux-h.
7178
7179 2009-10-08  Jim Meyering  <meyering@redhat.com>
7180
7181         unistd: fix comment typo
7182         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7183
7184 2009-10-08  Eric Blake  <ebb9@byu.net>
7185
7186         areadlink: use SIZE_MAX consistently
7187         * modules/areadlink (Depends-on): Add stdint.
7188         * modules/areadlink-with-size (Depends-on): Likewise.
7189         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7190         gives NULL; drop sys/types, since unistd gives size_t; and add
7191         stdint for SIZE_MAX.
7192         (SIZE_MAX): Rely on headers.
7193         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7194         and add stdint.
7195         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7196         (SIZE_MAX): Likewise.
7197         (INITIAL_BUF_SIZE): Turn into enum.
7198         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7199
7200 2009-10-08  Jim Meyering  <meyering@redhat.com>
7201
7202         areadlinkat: avoid compilation failure
7203         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7204         Fix typo in comment.
7205
7206 2009-10-07  Eric Blake  <ebb9@byu.net>
7207
7208         areadlinkat-with-size: new module
7209         * modules/areadlinkat-with-size: New module.
7210         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7211         * lib/areadlink.h (areadlinkat): Declare it.
7212         * MODULES.html.sh (File system functions): Mention it.
7213         * modules/areadlinkat-with-size-tests: New test.
7214         * tests/test-areadlinkat-with-size.c: New file.
7215
7216         xreadlinkat: new module
7217         * modules/xreadlinkat: New module.
7218         * lib/xreadlinkat.c (xreadlinkat): New file.
7219         * lib/xreadlink.h (xreadlinkat): Declare it.
7220         * MODULES.html.sh (File system functions): Mention it.
7221
7222         areadlinkat: new module
7223         * lib/at-func.c (FUNC_FAIL): New define.
7224         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7225         * modules/areadlinkat: New module.
7226         * lib/linkat.c (areadlinkat): Move...
7227         * lib/areadlinkat.c (areadlinkat): ...to new file.
7228         * lib/areadlink.h (areadlinkat): Declare it.
7229         * modules/linkat (Depends-on): Add areadlinkat.
7230         * MODULES.html.sh (File system functions): Mention it.
7231         * modules/areadlinkat-tests: New test.
7232         * tests/test-areadlinkat.c: New file.
7233
7234         areadlink, areadlink-with-size: add tests
7235         * modules/areadlink-tests: New test.
7236         * modules/areadlink-with-size-tests: Likewise.
7237         * tests/test-areadlink.h: New file.
7238         * tests/test-areadlink.c: Likewise.
7239         * tests/test-areadlink-with-size.c: Likewise.
7240
7241         maint: minor cleanups
7242         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7243         _UNUSED_PARAMETER_ instead.
7244         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7245         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7246         * modules/linkat-tests (Files): Distribute test-link.h.
7247
7248         openat, utimens: whitespace cleanup
7249         * lib/openat.c: Prefer space throughout, rather than mix of 8
7250         spaces vs. tabs.
7251         * lib/at-func.c: Likewise.
7252         * lib/utimens.c: Likewise.
7253
7254         openat: avoid using wrong fd
7255         * lib/openat.c (openat_permissive): Reject user's fd if saving the
7256         working directory chooses same fd.
7257         * lib/at-func.c (AT_FUNC_NAME): Likewise.
7258
7259         mkdir, mkdirat: fix cygwin 1.5.x bug
7260         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7261         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7262         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7263         bug.
7264         (gl_PREREQ_MKDIR): Delete unused macro.
7265         * modules/mkdir (Files): Track file rename.
7266         (configure.ac): Update macro name.
7267         * modules/openat (Depends-on): Add mkdir.
7268         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7269
7270         mkdir, mkdirat: add tests
7271         * modules/mkdir-tests: New test.
7272         * tests/test-mkdir.h: New file.
7273         * tests/test-mkdir.c: Likewise.
7274         * tests/test-mkdirat.c: Likewise.
7275         * modules/openat-tests (Files): Add new files.
7276         (Makefile.am): Run new test.
7277
7278 2009-10-06  Eric Blake  <ebb9@byu.net>
7279
7280         doc: tweak *at function documentation
7281         * doc/posix-functions/faccessat.texi (faccessat): Mention
7282         known issue with replacement.
7283         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7284         * doc/posix-functions/linkat.texi (linkat): Likewise.
7285         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7286         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7287         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7288         * doc/posix-functions/renameat.texi (renameat): Likewise.
7289         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7290
7291         openat: fix GNU/Hurd bug in unlinkat
7292         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7293         broken.
7294         * doc/posix-functions/unlink.texi (unlink): Document this.
7295         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7296
7297         fdopendir: fix GNU/Hurd bug
7298         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7299         allowing non-directory fds.
7300         * lib/fdopendir.c (rpl_fdopendir): Work around it.
7301         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7302         * modules/dirent (Makefile.am): Substitute it.
7303         * lib/dirent.in.h (fdopendir): Declare replacement.
7304         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7305         * tests/test-fdopendir.c (main): Test something other than
7306         /dev/null, since on Hurd that behaves like a directory.
7307
7308         test-symlink: port to GNU/Hurd
7309         * tests/test-symlink.h (test_symlink): Relax expected errno.
7310
7311         doc: tweak more cygwin information
7312         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7313         now compatible with glibc.
7314         * doc/posix-functions/getopt.texi (getopt): Likewise.
7315
7316         getopt-gnu: add another test
7317         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7318         guarantee behavior relied on by m4.
7319         * tests/test-getopt.c (main): Use it.
7320         * modules/getopt-posix-tests (Depends-on): Add setenv.
7321         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7322
7323         getopt: fix compilation on darwin
7324         * lib/getopt.in.h (includes): Leave breadcrumbs during system
7325         include.
7326         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7327         Reported by Ludovic Courtès.
7328
7329 2009-10-06  Bruno Haible  <bruno@clisp.org>
7330
7331         * modules/size_max (Description): Discourage its use.
7332         Reported by Simon Josefsson.
7333
7334 2009-10-06  Jim Meyering  <meyering@redhat.com>
7335
7336         linkat: avoid compilation failure
7337         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7338
7339 2009-10-05  Eric Blake  <ebb9@byu.net>
7340
7341         linkat: support Linux 2.6.17
7342         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7343         linkat on Linux, but allow cache variable override.
7344         * lib/linkat.c (rpl_linkat): Define override.
7345         * modules/linkat (Depends-on): Add symlinkat.
7346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7347         * modules/unistd (Makefile.am): Substitute it.
7348         * lib/unistd.in.h (linkat): Declare replacement.
7349         Reported by Pádraig Brady.
7350
7351         quotearg: port test to systems with C.UTF-8 locale
7352         * tests/test-quotearg.c (struct result_strings): Add another
7353         member, differentiating between C.ASCII and C.UTF-8 handling.
7354         (compare_strings): Add parameter.
7355         (main): Adjust all callers.
7356
7357         getopt: avoid clash with FreeBSD _getopt_internal
7358         * lib/getopt.in.h (_getopt_internal): Override the name.
7359         * lib/getopt_int.h (includes): Pick up any overrides.
7360         Reported by Reuben Thomas.
7361
7362         hash: allow C89 compilation
7363         * lib/hash.c (check_tuning): Move declaration before statement.
7364         Reported by Reuben Thomas.
7365
7366 2009-10-05  Karl Berry  <karl@gnu.org>
7367
7368         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7369
7370 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
7371             Bruno Haible  <bruno@clisp.org>
7372
7373         * lib/uname.c (uname): Use a table-driven algorithm to compute
7374         Windows NT versions.
7375
7376 2009-10-04  Bruno Haible  <bruno@clisp.org>
7377
7378         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7379         program_invocation_short_name.
7380         * modules/progname (configure.ac): Test for presence of
7381         program_invocation_short_name.
7382         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7383
7384 2009-10-04  Bruno Haible  <bruno@clisp.org>
7385
7386         * lib/progname.c (set_program_name): Fix comment.
7387         Reported by Jim Meyering.
7388
7389 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7390             Bruno Haible  <bruno@clisp.org>
7391
7392         * lib/uname.c: Include <string.h>.
7393         (uname): Do only one call to GetVersionEx in the common case.
7394
7395 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
7396             Bruno Haible  <bruno@clisp.org>
7397
7398         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7399         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7400         (uname): Add support for Windows CE and various non-x86 CPU types.
7401
7402 2009-10-03  Bruno Haible  <bruno@clisp.org>
7403
7404         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7405         invocation to tests/configure.ac.
7406         Reported by Ian Beckwith <ianb@erislabs.net>.
7407
7408 2009-10-02  Eric Blake  <ebb9@byu.net>
7409
7410         fchdir: avoid compiler warning
7411         * lib/fchdir.c (canonicalize_file_name)
7412         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7413
7414         test-open: support mingw errno values
7415         * tests/test-open.h (test_open): Relax test.
7416         * tests/test-fopen.h (test_fopen): Likewise.
7417         * tests/test-openat-safer.c (main): Likewise.
7418
7419         open: fix opening directory on mingw
7420         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7421
7422         test-open: on GNU/Hurd, /dev/null is a directory
7423         * tests/test-fopen.h (main): Rename...
7424         (test_fopen): ...to this.  Use a guaranteed non-directory when
7425         confirming open behavior on trailing slash.
7426         * tests/test-openat-safer.c (main): Likewise.
7427         * tests/test-open.h (main): Likewise....
7428         (test_open): ...to this.
7429         * tests/test-fopen.c (main): Adjust caller.
7430         * tests/test-fopen-safer.c (main): Likewise.
7431         * tests/test-open.c (main): Likewise.
7432         * tests/test-fcntl-safer.c (main): Likewise.
7433         Reported by Samuel Thibault.
7434
7435         rename, fchdir: don't ignore chdir failure
7436         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7437         * lib/rename.c (rpl_rename) [W32]: Likewise.
7438         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7439         an empty destination directory if source cannot be renamed,
7440         although there is still possibility for failure.
7441         * doc/posix-functions/rename.texi (rename): Document the race.
7442         Reported by Jim Meyering.
7443
7444         maint: cleanup whitespace in recent commits
7445         * lib/rename.c (rpl_rename): Remove tabs.
7446         * tests/test-link.h (test_link): Likewise.
7447         * lib/fchdir.c (get_name): Likewise.
7448         Reported by Jim Meyering.
7449
7450 2009-10-02  Ben Pfaff  <blp@gnu.org>
7451
7452         relocatable-prog-wrapper: Add missing dependency on
7453         double-slash-root.
7454         * modules/relocatable-prog-wrapper: Add dependency.
7455         Reported by Ian Beckwith <ianb@erislabs.net>.
7456
7457 2009-10-02  Eric Blake  <ebb9@byu.net>
7458
7459         renameat: fix Solaris bugs
7460         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7461         needed fixing.
7462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7463         * modules/stdio (Makefile.am): Substitute it.
7464         * lib/stdio.in.h (renameat): Declare replacement.
7465         * lib/renameat.c (rpl_renameat): Implement fix.
7466
7467         renameat: new module
7468         * modules/renameat: New file.
7469         * lib/renameat.c (renameat): Likewise.
7470         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7472         * modules/stdio (Makefile.am): Substitute them.
7473         * lib/stdio.in.h (renameat): Declare it.
7474         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7475         * doc/posix-functions/renameat.texi (renameat): Likewise.
7476         * modules/renameat-tests: New test.
7477         * tests/test-renameat.c: Likewise.
7478
7479         rename: fix mingw bugs
7480         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7481         directory overwrite bugs.
7482
7483         rename: fix another cygwin 1.5 bug
7484         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7485         checks.
7486         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7487         unnecessary cygwin workarounds.  Also work around bug with moving
7488         full directory onto an empty one.
7489         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7490
7491         rename-dest-slash: merge into rename module
7492         * modules/rename-dest-slash (Status): Mark obsolete.
7493         (Depends-on): Add rename.
7494         (Files): Let rename do it all.
7495         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7496         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7497         * m4/rename-dest-slash.m4: ...so this file can be deleted.
7498         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7499         * lib/rename.c (rpl_rename): Update comments.
7500
7501         rename: fix cygwin 1.5.x bugs
7502         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7503         * lib/rename.c (rpl_rename): Work around them.
7504         * modules/rename (Depends-on): Add same-inode.
7505
7506         rename: fix Solaris 10 bug
7507         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7508         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7509         was the only bug.
7510
7511         rename: fix Solaris 9 bug
7512         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7513         on non-directory.  Avoid calling exit.
7514         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7515         strdup.
7516         * modules/rename-tests (Depends-on): Drop lstat.
7517         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7518         (gl_PREREQ_RENAME): Delete unused macro.
7519
7520         rename-dest-slash: fix NetBSD bug
7521         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
7522         links.
7523         * modules/rename-dest-slash (Depends-on): Add same-inode.
7524
7525         rename-tests: new test, exposes several platform bugs
7526         * modules/rename-tests: New file.
7527         * tests/test-rename.h: Likewise.
7528         * tests/test-rename.c: Likewise.
7529         * doc/posix-functions/rename.texi (rename): Improve documentation,
7530         including bugs that will eventually be fixed in gnulib.
7531
7532 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
7533
7534         * lib/uname.c: Include <stdlib.h>
7535         (uname): Assume version info is available.
7536
7537 2009-10-02  Jim Meyering  <meyering@redhat.com>
7538
7539         gnu-web-doc-update: correct --help output
7540         * build-aux/gnu-web-doc-update: Make --help output relevant.
7541
7542         gnu-web-doc-update: add standard options
7543         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
7544
7545         gnu-web-doc-update: New module.
7546         Use this script to automatically update the on-line web documentation
7547         for your GNU project at http://www.gnu.org/software/$pkg/manual/
7548         * modules/gnu-web-doc-update: New file, from coreutils.
7549         * build-aux/gnu-web-doc-update: New script.
7550
7551 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
7552
7553         link: LoadLibrary is not needed.
7554         * lib/link.c: Use GetModuleHandle.
7555
7556 2009-10-01  Eric Blake  <ebb9@byu.net>
7557
7558         getopt: bump serial number
7559         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
7560         change.
7561
7562         tests: tighten link, rmdir, and remove tests
7563         * tests/test-link.h (includes): No need to use <config.h> here.
7564         Clean up if directory hard link was created, otherwise test for
7565         trailing '.'.
7566         * tests/test-linkat.c (main): Simplify.
7567         * tests/test-remove.c (main): Enhance test for trailing '.'.
7568         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7569
7570 2009-10-01  Jim Meyering  <meyering@redhat.com>
7571
7572         maint.mk: requiring "make major" was annoying, for a "minor" release.
7573         What is intended is "stable", to contrast with alpha and beta,
7574         so require "make stable", not "make major".
7575         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
7576         (get_tool_versions): Likewise.
7577         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
7578
7579 2009-09-30  Ben Pfaff  <blp@gnu.org>
7580
7581         Fix broken build of replacement for Windows tmpfile().
7582         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
7583         flags argument added along with the 'mkostemp' module.
7584
7585 2009-09-28  Bruno Haible  <bruno@clisp.org>
7586
7587         Avoid identifier clash with POSIX function 'remove' defined as a macro.
7588         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
7589         to 'remove_elt'.
7590         (gl_list_remove): Update.
7591         * lib/gl_list.c (gl_list_remove): Update.
7592         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
7593         to 'remove_elt'.
7594         (gl_oset_remove): Update.
7595         * lib/gl_list.c (gl_oset_remove): Update.
7596         Reported by Eric Blake.
7597
7598 2009-09-28  Eric Blake  <ebb9@byu.net>
7599
7600         doc: mention yet more cygwin 1.7 status
7601         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
7602         cygwin.
7603         * doc/glibc-functions/execvpe.texi (execvpe): New file.
7604         * doc/gnulib.texi (Glibc unistd.h): Mention it.
7605
7606         argp: fix test failure
7607         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
7608         that are not upper-case.  Pass correct range to tolower.
7609
7610 2009-09-27  Jim Meyering  <meyering@redhat.com>
7611
7612         test-yesno: work around sparc-dash here-document infelicity
7613         Without this change, the literal \177 byte in a here document
7614         would make dash 0.5.5.1-3 access uninitialized memory.
7615         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
7616         Instead, use a marker, "@", and filter through tr to create the desired
7617         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
7618
7619 2009-09-27  Bruno Haible  <bruno@clisp.org>
7620
7621         Disable untested support for new flavours of ACLs on AIX.
7622         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
7623         progress.
7624         * lib/set-mode-acl.c (qset_acl): Likewise.
7625
7626 2008-12-07  Bruno Haible  <bruno@clisp.org>
7627
7628         Add support for new flavours of ACLs on AIX. (Untested.)
7629         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
7630         (file_has_acl): Add support for newer AIX.
7631         * lib/set-mode-acl.c (qset_acl): Likewise.
7632         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
7633         Rainer Tammer <tammer@tammer.net>.
7634
7635 2009-09-26  Eric Blake  <ebb9@byu.net>
7636
7637         argp: fix compilation of getopt
7638         * lib/getopt.in.h (includes): Use different guard than glibc.
7639         Reported by Sergey Poznyakoff.
7640
7641         doc: mention more cygwin 1.7 status
7642         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
7643         bug.
7644         * doc/posix-functions/execl.texi (execl): Likewise.
7645         * doc/posix-functions/execle.texi (execle): Likewise.
7646         * doc/posix-functions/execlp.texi (execlp): Likewise.
7647         * doc/posix-functions/execv.texi (execv): Likewise.
7648         * doc/posix-functions/execve.texi (execve): Likewise.
7649         * doc/posix-functions/execvp.texi (execvp): Likewise.
7650         * doc/glibc-functions/canonicalize_file_name.texi
7651         (canonicalize_file_name): Cygwin 1.7 now provides this.
7652         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
7653         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
7654         on AT_SYMLINK_NOFOLLOW.
7655
7656 2009-09-24  Eric Blake  <ebb9@byu.net>
7657
7658         test-linkat: make test more robust
7659         * tests/test-linkat.c (main): Avoid collision with EEXIST.
7660
7661         getopt: fix inclusion guards for cygwin
7662         * modules/getopt-posix (Depends-on): Add include-next.
7663         (Makefile.am): Substitute more items in replacement header.
7664         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
7665         <getopt.h>.
7666         * lib/getopt.in.h (includes): Use split inclusion guard, and
7667         prefer <getopt.h> over include <unistd.h> when one is present.
7668         (option): Also override name of 'struct option'.
7669
7670         same-inode: revert prior change; it is not yet ready
7671         * NEWS: Undo mention of this change.
7672         * lib/same-inode.h (same-inode.h): Undo tri-state change.
7673         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7674         * lib/cycle-check.c (cycle_check): Likewise.
7675         * lib/same.c (same_name): Likewise.
7676         * lib/at-func2.c (at_func2): Likewise.
7677
7678 2009-09-23  Eric Blake  <ebb9@byu.net>
7679
7680         linkat: new module
7681         * modules/linkat: New file.
7682         * lib/at-func2.c (at_func2): Likewise.
7683         * lib/linkat.c (linkat): Likewise.
7684         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7685         * lib/openat-priv.h (at_func2): Add declaration.
7686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7687         * modules/unistd (Makefile.am): Substitute them.
7688         * lib/unistd.in.h (linkat): Declare it.
7689         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7690         * doc/posix-functions/linkat.texi (linkat): Likewise.
7691         * doc/posix-functions/link.texi (link): Tweak wording.
7692         * tests/test-link.c (main): Move guts...
7693         * tests/test-link.h (test_link): ...into new file.
7694         * modules/linkat-tests: New test.
7695         * tests/test-linkat.c: Likewise.
7696         * modules/link-tests (Files): Ship new file.
7697         (Depends-on): Add stdbool.
7698
7699         dirname: add library-safe mdir_name
7700         * lib/dirname.h (mdir_name): New prototype.
7701         * lib/dirname.c (dir_name): Move guts...
7702         (mdir_name): ...to new function that avoids xalloc_die.
7703
7704         fchdir: another mingw fix
7705         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
7706         * lib/fchdir.c (get_name): New helper method; skips canonicalize
7707         on mingw (where it has not yet been ported), and make it optional
7708         elsewhere.
7709         (_gl_register_fd): Use it.
7710
7711         same-inode: make SAME_INODE tri-state, to port to mingw
7712         * NEWS: Mention this change.
7713         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
7714         st_ino always being 0.
7715         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
7716         * lib/cycle-check.c (cycle_check): Likewise.
7717         * lib/same.c (same_name): Likewise.
7718
7719         lstat: avoid mingw compilation error
7720         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
7721         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
7722         lstat ourselves.
7723         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
7724         was adequate.
7725         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
7726         the checks for lstat.
7727         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
7728
7729         link: fix test failure on Solaris 9
7730         * lib/link.c (rpl_link): Don't assume link will catch bogus
7731         trailing slash on source.
7732
7733         test-symlinkat: enhance test
7734         * tests/test-readlink.c (main): Move guts...
7735         * tests/test-readlink.h (test_readlink): ...into new file.
7736         * tests/test-symlink.c (main): Move guts...
7737         * tests/test-symlink.h (test_symlink): ...into new file.
7738         * tests/test-symlinkat.c (main): Use new files for further
7739         coverage.
7740         (do_symlink, do_readlink): New helper functions.
7741         * modules/symlink-tests (Files): Ship new file.
7742         (Depends-on): Add stdbool.
7743         * modules/readlink-tests (Files): Ship new file.
7744         (Depends-on): Add stdbool.
7745         * modules/symlinkat-tests (Files): Use new files.
7746
7747 2009-09-23  Eric Blake  <ebb9@byu.net>
7748
7749         readlink: document portability issue with symlink length
7750         * doc/posix-functions/lstat.texi (lstat): Mention that some file
7751         systems have bogus st_size on symlinks, and mention the
7752         areadlink-with-size module.
7753         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7754         * doc/posix-functions/readlink.texi (readlink): Mention the
7755         areadlink module, and ERANGE failure.
7756         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7757         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
7758
7759         readlink: fix Solaris 9 bug with trailing slash
7760         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
7761         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
7762         * doc/posix-functions/readlink.texi (readlink): Document this.
7763         * modules/readlink-tests: New test.
7764         * tests/test-readlink.c: Likewise.
7765
7766         readlink: fix cygwin 1.5.x bug with return type
7767         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
7768         * lib/unistd.in.h (readlink): Use ssize_t.
7769         * lib/readlink.c (readlink): Likewise.
7770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7771         * modules/unistd (Makefile.am): Substitute it.
7772         * lib/unistd.in.h (readlink): Declare replacement.
7773         * doc/posix-functions/readlink.texi (readlink): Document this.
7774
7775         symlink: use throughout gnulib
7776         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
7777         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
7778         symlink is not used.
7779         * modules/symlinkat (Depends-on): Add symlink.
7780         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7781         * modules/canonicalize-tests (Depends-on): Likewise.
7782         * modules/lstat-tests (Depends-on): Likewise.
7783         * modules/openat-tests (Depends-on): Likewise.
7784         * modules/remove-tests (Depends-on): Likewise.
7785         * modules/rmdir-tests (Depends-on): Likewise.
7786         * modules/unlink-tests (Depends-on): Likewise.
7787         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
7788         * tests/test-canonicalize.c (symlink): Likewise.
7789         * tests/test-fstatat.c (symlink): Likewise.
7790         * tests/test-lstat.c (symlink): Likewise.
7791         * tests/test-remove.c (symlink): Likewise.
7792         * tests/test-rmdir.c (symlink): Likewise.
7793         * tests/test-unlink.c (symlink): Likewise.
7794         * tests/test-unlinkat.c (symlink): Likewise.
7795
7796         symlink: new module, for Solaris 9 bug
7797         * modules/symlink: New file.
7798         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7799         * lib/symlink.c: Likewise.
7800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
7801         * modules/unistd (Makefile.am): Substitute them.
7802         * lib/unistd.in.h (symlink): Declare replacement.
7803         * MODULES.html.sh (File system functions): Mention it.
7804         * doc/posix-functions/symlink.texi (symlink): Likewise.
7805         * modules/symlink-tests: New test.
7806         * tests/test-symlink.c: Likewise.
7807
7808 2009-09-23  Bruno Haible  <bruno@clisp.org>
7809
7810         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
7811         when needed.
7812         Test case: gnulib-tool --import --with-tests atexit inttypes.
7813         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
7814
7815 2009-09-23  Bruno Haible  <bruno@clisp.org>
7816
7817         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
7818         subcommand, not in a subshell.
7819
7820 2009-09-22  Eric Blake  <ebb9@byu.net>
7821
7822         unistd: sort replacement declarations
7823         * lib/unistd.in.h: Sort declarations.
7824
7825         open, openat: minor optimization
7826         * lib/open.c (open): If open succeeded, len is non-zero.
7827         * lib/openat.c (rpl_openat): Likewise.
7828
7829         link-follow: ensure correct result
7830         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
7831         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
7832         distinguish between possible failures.
7833
7834 2009-09-21  Eric Blake  <ebb9@byu.net>
7835
7836         fts: avoid compiler warning
7837         * lib/fts.c (dirent_inode_sort_may_be_useful)
7838         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
7839
7840 2009-09-19  Bruno Haible  <bruno@clisp.org>
7841
7842         * lib/progreloc.c (canonicalize_file_name): New declaration.
7843
7844 2009-09-19  Eric Blake  <ebb9@byu.net>
7845
7846         link: fix quoting
7847         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
7848
7849         openat: fix openat bugs on Solaris 9
7850         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
7851         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
7852         * modules/openat (Depends-on): Add open.
7853         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
7854         * modules/fcntl-h (Makefile.am): Substitute it.
7855         * lib/fcntl.in.h (openat): Declare replacement.
7856         * doc/posix-functions/openat.texi (openat): Document this.
7857
7858         openat: move fstatat and unlinkat into correct files
7859         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
7860         compiled.
7861         * lib/openat.c (fstatat, unlinkat): Move...
7862         * lib/fstatat.c (fstatat): ...into correct files.
7863         * lib/unlinkat.c (unlinkat): Likewise.
7864
7865         openat: fix unlinkat bugs on Solaris 9
7866         * lib/unlinkat.c (unlinkat): New file.
7867         * modules/openat (Depends-on): Add unlink.
7868         (Files): Distribute it.
7869         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
7870         trailing slash behavior is broken.
7871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7872         * modules/unistd (Makefile.am): Substitute it.
7873         * lib/unistd.in.h (unlinkat): Declare replacement.
7874         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
7875
7876         openat: fix fstatat bugs on Solaris 9
7877         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
7878         stat.
7879         * doc/posix-functions/fstatat.texi (fstatat): Document this.
7880
7881         test-unlinkat: enhance test, to expose Solaris 9 bug
7882         * tests/test-unlink.c (main): Factor guts...
7883         * tests/test-unlink.h (test_rmdir_func): ...into new file.
7884         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
7885         * tests/test-rmdir.c (main): Adjust caller.
7886         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
7887         (unlinker): New helper function.
7888         (rmdirat): Enhance check.
7889         * modules/rmdir-tests (Depends-on): Add stdbool.
7890         * modules/unlink-tests (Depends-on): Likewise.
7891         (Files): Add test-unlink.h.
7892         * modules/openat-tests (Files): Likewise.
7893         (Depends-on): Add unlinkdir.
7894
7895         test-fstatat: new test, to expose Solaris 9 bugs
7896         * tests/test-stat.c (main): Factor guts...
7897         * tests/test-stat.h (test_stat_func): ...into new file.
7898         * tests/test-lstat.c (main): Factor guts...
7899         * tests/test-lstat.h (test_lstat_func): ...into new file.
7900         * tests/test-fstatat.c: New file.
7901         * modules/stat-tests (Files): Add test-stat.h.
7902         * modules/lstat-tests (Files): Add test-lstat.h.
7903         (Depends-on): Add stdbool.
7904         * modules/openat-tests (Depends-on): Add pathmax.
7905         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
7906         (Makefile.am): Run new test.
7907
7908         remove: new module, for mingw and Solaris 9 bugs
7909         * modules/remove: New file.
7910         * lib/remove.c: Likewise.
7911         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
7912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7913         * modules/stdio (Makefile.am): Use them.
7914         * lib/stdio.in.h (remove): Declare replacement.
7915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7916         * doc/posix-functions/remove.texi (remove): Likewise.
7917         * modules/remove-tests: New test.
7918         * tests/test-remove.c: Likewise.
7919
7920         unlink: new module, for Solaris 9 bug
7921         * modules/unlink: New file.
7922         * lib/unlink.c: Likewise.
7923         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7925         * modules/unistd (Makefile.am): Use them.
7926         * lib/unistd.in.h (stat): Declare replacement.
7927         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7928         * doc/posix-functions/unlink.texi (unlink): Likewise.
7929         * modules/unlink-tests: New test.
7930         * tests/test-unlink.c: Likewise.
7931
7932         lstat: fix Solaris 9 bug
7933         * lib/lstat.c (lstat): Also check for trailing slash on
7934         non-symlink, non-directories.  Use stat module to simplify logic.
7935         * doc/posix-functions/lstat.texi (lstat): Document it.
7936         * modules/lstat-tests (Depends-on): Add errno, same-inode.
7937         (configure.ac): Check for symlink.
7938         * tests/test-lstat.c (main): Add more tests.
7939
7940         stat: add as dependency to other modules
7941         * modules/chown (Depends-on): Add stat.
7942         * modules/euidaccess (Depends-on): Likewise.
7943         * modules/fchdir (Depends-on): Likewise.
7944         * modules/isdir (Depends-on): Likewise.
7945         * modules/link (Depends-on): Likewise.
7946         * modules/lstat (Depends-on): Likewise.
7947         * modules/mkdir-p (Depends-on): Likewise.
7948         * modules/modechange (Depends-on): Likewise.
7949         * modules/open (Depends-on): Likewise.
7950         * modules/readlink (Depends-on): Likewise.
7951         * modules/same (Depends-on): Likewise.
7952
7953         stat: fix Solaris 9 bug
7954         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
7955         slash.
7956         * lib/stat.c (rpl_stat): Work around it.
7957         * doc/posix-functions/stat.texi (stat): Update documentation.
7958
7959         stat: new module, for mingw bug
7960         * modules/stat: New file.
7961         * lib/stat.c: Likewise.
7962         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7963         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7964         * modules/sys_stat (Makefile.am): Use them.
7965         * lib/sys_stat.in.h (stat): Declare replacement.
7966         * lib/openat.c (fstatat): Deal with lstat and stat being function
7967         macros.
7968         * modules/openat (Depends-on): Add inline.
7969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7970         * doc/posix-functions/stat.texi (stat): Likewise.
7971         * modules/stat-tests: New test.
7972         * tests/test-stat.c: Likewise.
7973
7974 2009-09-19  Jim Meyering  <meyering@redhat.com>
7975
7976         syntax-check: detect unnecessary inclusion of canonicalize.h
7977         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
7978
7979 2009-09-19  Eric Blake  <ebb9@byu.net>
7980
7981         canonicalize-lgpl: adjust clients to use correct header
7982         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
7983         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
7984         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
7985         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
7986         * lib/progreloc.c (includes): Likewise.
7987
7988 2009-09-19  Jim Meyering  <meyering@redhat.com>
7989
7990         test-posixtm.c: correct a comment
7991         * tests/test-posixtm.c: Correct first-line comment.
7992         Spotted by Eric Blake.
7993
7994 2009-09-16  Jim Meyering  <meyering@redhat.com>
7995
7996         posixtm-tests: make T const-correct; add a test case
7997         * tests/test-posixtm.c (T): Declare const.
7998         Add a test for -(2^31+1).
7999         Remove useless can-succeed-only-in-2002 test.
8000
8001         posixtm-tests: adjust the sole failing test
8002         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8003         expected output matches what mktime now produces.  Cross-checked via
8004         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8005
8006         posixtm: move #ifdef'd tests into a new module
8007         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8008         * tests/test-posixtm.c: ... this new file.
8009         * modules/posixtm-tests: New module.
8010
8011 2009-09-19  Eric Blake  <ebb9@byu.net>
8012
8013         openat: simplify use of at-func.c
8014         * lib/at-func.c (includes): Include prerequisites here, to
8015         simplify requirements on client files.
8016         * lib/openat-priv.h: Add double-inclusion guard.
8017         * lib/faccessat.c (includes): Simplify.
8018         * lib/fchmodat.c (includes): Likewise.
8019         * lib/fchownat.c (includes): Likewise.
8020         * lib/mkdirat.c (includes): Likewise.
8021         * lib/mkfifoat.c (includes): Likewise.
8022         * lib/symlinkat.c (includes): Likewise.
8023
8024         openat: allow return of fd 0
8025         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8026         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8027         unistd-safer.
8028         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8029         <fcntl.h>; this module does not leak fds.
8030         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8031         must be allowed to return 0, leaving openat_safer to add the
8032         safety.
8033         (openat_permissive): Avoid writing to just-opened fd 2 if
8034         restoring the current directory fails.
8035         * lib/openat-die.c (openat_restore_fail): Add comment.
8036         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8037         (save_cwd): Guarantee safe fd, but without use of open_safer.
8038         * tests/test-openat.c: New test.
8039         * modules/openat-tests (Files, Makefile.am): Distribute and build
8040         new file.
8041
8042         relocatable-prog-wrapper: fix build
8043         * modules/relocatable-prog-wrapper (Files): Update name of
8044         canonicalize m4 file, broken on 2009-09-17.
8045         Reported by emad hajjar <aleppos@hotmail.com>.
8046
8047 2009-09-19  Bruno Haible  <bruno@clisp.org>
8048
8049         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8050         * lib/safe-alloc.c: Likewise.
8051         Reported by Ian Beckwith <ianb@erislabs.net>.
8052
8053 2009-09-18  Bruno Haible  <bruno@clisp.org>
8054
8055         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8056         Reported by <erobles@sensacd.com.mx>.
8057
8058 2009-09-17  Eric Blake  <ebb9@byu.net>
8059
8060         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8061         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8062         slashes when checking if last component is missing.
8063         * tests/test-canonicalize.c (main): Test this.
8064
8065         canonicalize, canonicalize-lgpl: honor // if distinct from /
8066         * modules/canonicalize (Files): Add double-slash-root.m4.
8067         * modules/canonicalize-lgpl (Files): Likewise.
8068         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8069         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8070         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8071         fallback definition.
8072         (canonicalize_filename_mode): Use it to protect //.
8073         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8074         (__realpath): Likewise.
8075         * tests/test-canonicalize.c (main): Test this.
8076         * tests/test-canonicalize-lgpl.c (main): Likewise.
8077         * modules/canonicalize-tests (Depends-on): Add same-inode.
8078         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8079
8080         canonicalize-lgpl: fix glibc bug with trailing slash
8081         * m4/canonicalize-lgpl.m4: Move contents...
8082         * m4/canonicalize.m4: ...here.
8083         (gl_CANONICALIZE_LGPL): Factor realpath check...
8084         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8085         glibc 2.3.5 bug, fixed 2005-04-27.
8086         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8087         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8088         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8089         * modules/canonicalize-lgpl (Files): Manage file rename.
8090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8091         * modules/stdlib (Makefile.am): Substitute witness.
8092         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8093         is needed.
8094         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8095         replacement is required.
8096         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8097         * doc/glibc-functions/canonicalize_file_name.texi
8098         (canonicalize_file_name): Document this.
8099         * doc/posix-functions/realpath.texi (realpath): Likewise.
8100
8101         canonicalize-lgpl: reject non-directory with trailing slash
8102         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8103         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8104         catches failures in glibc 2.3.5.
8105         * tests/test-canonicalize.c (main): Likewise.
8106
8107         canonicalize-lgpl: use native realpath if it works
8108         * lib/canonicalize-lgpl.c (realpath): Guard with
8109         FUNC_REALPATH_WORKS.
8110         * lib/stdlib.in.h (realpath): Make declaration optional based on
8111         HAVE_REALPATH.
8112         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8113         native realpath works.
8114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8115         * modules/stdlib (Makefile.am): Substitute witness.
8116
8117         canonicalize, canonicalize-lgpl: use <stdlib.h>
8118         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8119         (Include): Mention <stdlib.h>.
8120         (configure.ac): Mention functions we provide.
8121         * modules/canonicalize (configure.ac): Likewise.
8122         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8123         realpath if canonicalize_file_name is missing.
8124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8125         * modules/stdlib (Makefile.am): Substitute witnesses.
8126         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8127         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8128         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8129         * NEWS: Document this.
8130         * doc/glibc-functions/canonicalize_file_name.texi
8131         (canonicalize_file_name): Likewise.
8132         * doc/posix-functions/realpath.texi (realpath): Likewise.
8133         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8134
8135         test-canonicalize: consolidate into single C program
8136         * tests/test-canonicalize.sh: Delete; move setup into...
8137         * tests/test-canonicalize.c (main): ...the program, making it
8138         easier to run in debugger.  Add some tests.
8139         * modules/canonicalize-tests (Files): Remove unused file.
8140         (Depends-on): Add progname.
8141         (configure.ac, Makefile.am): Simplify.
8142
8143         test-canonicalize-lgpl: consolidate into single C program
8144         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8145         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8146         easier to run in debugger.  Add some tests.
8147         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8148         (configure.ac, Makefile.am): Simplify.
8149
8150         canonicalize: avoid resolvepath
8151         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8152         unnecessary checks.
8153         * lib/canonicalize.c (includes): Simplify.
8154         (canonicalize_file_name): Drop resolvepath implementation.
8155         * modules/canonicalize (Depends-on): Drop filenamecat.
8156
8157         canonicalize: don't lose errno
8158         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8159         over calls to free.
8160
8161         canonicalize: simplify errno handling
8162         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8163         assignment.
8164
8165         canonicalize, canonicalize-lgpl: update module dependencies
8166         * modules/canonicalize (Depends-on): Add extensions, lstat,
8167         pathmax, stdlib.
8168         (Files): Drop pathmax.h.
8169         (configure.ac): Adjust macro name.
8170         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8171         lstat, stdlib, sys_stat.
8172         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8173         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8174         extensions.
8175         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8176         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8177         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8178         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8179         declaration, if available.
8180         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8181         we can rely on the readlink module.
8182         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8183         (includes): Use <unistd.h> unconditionally.
8184
8185 2009-09-17  Eric Blake  <ebb9@byu.net>
8186
8187         maint: make Include sections of modules consistent
8188         * modules/alloca: Use only header name; no need to list #include.
8189         * modules/alloca-opt: Likewise.
8190         * modules/arpa_inet: Likewise.
8191         * modules/canon-host: Likewise.
8192         * modules/configmake: Likewise.
8193         * modules/dirent: Likewise.
8194         * modules/eealloc: Likewise.
8195         * modules/environ: Likewise.
8196         * modules/fchdir: Likewise.
8197         * modules/fcntl: Likewise.
8198         * modules/fcntl-h: Likewise.
8199         * modules/gethrxtime: Likewise.
8200         * modules/gettime: Likewise.
8201         * modules/ignore-value: Likewise.
8202         * modules/inet_ntop: Likewise.
8203         * modules/inet_pton: Likewise.
8204         * modules/inttypes: Likewise.
8205         * modules/isnand-nolibm: Likewise.
8206         * modules/isnanf-nolibm: Likewise.
8207         * modules/mbchar: Likewise.
8208         * modules/mbfile: Likewise.
8209         * modules/mbiter: Likewise.
8210         * modules/mbuiter: Likewise.
8211         * modules/netdb: Likewise.
8212         * modules/netinet_in: Likewise.
8213         * modules/nproc: Likewise.
8214         * modules/pagealign_alloc: Likewise.
8215         * modules/poll: Likewise.
8216         * modules/printf-frexp: Likewise.
8217         * modules/pthread: Likewise.
8218         * modules/putenv: Likewise.
8219         * modules/random_r: Likewise.
8220         * modules/relocatable-prog: Likewise.
8221         * modules/search: Likewise.
8222         * modules/select: Likewise.
8223         * modules/selinux-h: Likewise.
8224         * modules/settime: Likewise.
8225         * modules/signal: Likewise.
8226         * modules/size_max: Likewise.
8227         * modules/socklen: Likewise.
8228         * modules/ssize_t: Likewise.
8229         * modules/stdarg: Likewise.
8230         * modules/stdbool: Likewise.
8231         * modules/stddef: Likewise.
8232         * modules/stdint: Likewise.
8233         * modules/stdio: Likewise.
8234         * modules/stdlib: Likewise.
8235         * modules/string: Likewise.
8236         * modules/strings: Likewise.
8237         * modules/sys_file: Likewise.
8238         * modules/sys_ioctl: Likewise.
8239         * modules/sys_select: Likewise.
8240         * modules/sys_socket: Likewise.
8241         * modules/sys_stat: Likewise.
8242         * modules/sys_time: Likewise.
8243         * modules/sys_times: Likewise.
8244         * modules/sys_utsname: Likewise.
8245         * modules/sys_wait: Likewise.
8246         * modules/sysexits: Likewise.
8247         * modules/time: Likewise.
8248         * modules/times: Likewise.
8249         * modules/tmpfile: Likewise.
8250         * modules/trim: Likewise.
8251         * modules/unistd: Likewise.
8252         * modules/wchar: Likewise.
8253         * modules/wctype: Likewise.
8254
8255 2009-09-17  Bruno Haible  <bruno@clisp.org>
8256
8257         Make getdate.y compile on QNX and NetBSD 5 / i386.
8258         * m4/getdate.m4 (gl_GETDATE): Conditionally define
8259         TIME_T_FITS_IN_LONG_INT.
8260         * lib/getdate.y (long_time_t): New type.
8261         (relative_time): Change type of 'seconds' field to long_time_t.
8262         (get_date): Update types of local variables. Check against overflow
8263         during conversion from long_time_t to time_t.
8264         Reported by Matt Kraai <kraai@ftbfs.org>
8265         and Hasso Tepper <hasso@netbsd.org>.
8266
8267 2009-09-17  Bruno Haible  <bruno@clisp.org>
8268
8269         * modules/COPYING: Update copyright years.
8270         * modules/README: Likeiwse.
8271         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8272         Reported by Ian Beckwith <ianb@erislabs.net>.
8273
8274 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8275
8276         * users.txt: Update references for gnuit package.
8277
8278 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
8279
8280         * m4/getdelim.m4: Fix typo in copyright line.
8281
8282 2009-09-17  Bruno Haible  <bruno@clisp.org>
8283
8284         * lib/atoll.c: Use the standard header with GPL copyright.
8285         * lib/argz.in.h: Likewise.
8286         * lib/glob.c: Likewise.
8287         * lib/glob-libc.h: Likewise.
8288         * lib/random_r.c: Likewise.
8289         * lib/siglist.h: Likewise.
8290         * lib/strsignal.c: Likewise.
8291         Reported by Ian Beckwith <ianb@erislabs.net>.
8292
8293 2009-09-17  Eric Blake  <ebb9@byu.net>
8294
8295         rmdir: ensure correct dependency order
8296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8297
8298 2009-09-17  Bruno Haible  <bruno@clisp.org>
8299
8300         Disable assertion that fails on NetBSD 5 / i386.
8301         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8302         Reported by Sam Steingold <sds@gnu.org>
8303         and Hasso Tepper <hasso@netbsd.org>.
8304
8305 2009-09-16  Eric Blake  <ebb9@byu.net>
8306
8307         unlinkdir: port to mingw
8308         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8309         on which no one can unlink a directory.
8310
8311         stdlib: sort witness names
8312         * modules/stdlib (Makefile.am): Sort replacements.
8313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8314         * lib/stdlib.in.h: Likewise.
8315
8316         parse-duration-tests: avoid link failure
8317         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8318         LIBINTL.
8319         Reported by Tom G. Christensen.
8320
8321         openat-tests: ensure unlinkat behaves like rmdir
8322         * tests/test-rmdir.c (main): Factor guts...
8323         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8324         * modules/rmdir-tests (Files): Ship new file.
8325         * modules/openat-tests: New test.
8326         * tests/test-unlinkat.c: Likewise.
8327
8328         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8329         * modules/rmdir-errno (Status, Notice): Now obsolete.
8330
8331         rmdir: work around cygwin 1.5.x and mingw bugs
8332         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8333         * lib/rmdir.c (rmdir): Work around it.
8334         * modules/rmdir (Status, Notice): No longer obsolete.
8335         (Files): Add dos.m4.
8336         (Depends-on): Add unistd.
8337         (configure.ac): Set witnesses.
8338         (License): Relax to LGPLv2+.
8339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8340         * modules/unistd (Makefile.am): Substitute witnesses.
8341         * lib/unistd.in.h (rmdir): Declare replacement.
8342         * doc/posix-functions/rmdir.texi (rmdir): Document this.
8343         * modules/rmdir-tests: New tests.
8344         * tests/test-rmdir.c: Likewise.
8345
8346 2009-09-15  Eric Blake  <ebb9@byu.net>
8347
8348         fchdir: improve use of replacement functions
8349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8350         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8351         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8352         REPLACE_CLOSEDIR.
8353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8354         * modules/sys_stat (Makefile.am): Substitute correct witness.
8355         * modules/dirent (Makefile.am): Likewise.
8356         * modules/unistd (Makefile.am): Likewise.
8357         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8358         * lib/unistd.in.h (dup): Likewise.
8359         * lib/sys_stat.in.h (fstat): Likewise.
8360
8361         maint: ignore gnulib-tool temp files
8362         * .gitignore: Ignore files created during gnulib-tool --test.
8363
8364 2009-09-13  Jim Meyering  <meyering@redhat.com>
8365
8366         posixtm: don't reject a time that specify "60" as the number of seconds
8367         * lib/posixtm.c (posixtime): The code to reject invalid dates
8368         would also reject a time specified with the .60 suffix.
8369         But POSIX allows that, in order to accommodate leap seconds.
8370         So don't reject it.
8371         (main): Adjust tests accordingly.
8372         * modules/posixtm (Depends-on): Add stpcpy.
8373
8374 2009-09-11  Jim Meyering  <meyering@redhat.com>
8375
8376         announce-gen: include [$release_type] in emitted Subject:
8377         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8378         e.g., [stable] in the emitted Subject: line.
8379
8380 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8381
8382         Remove obsolete macros from several modules.
8383         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8384         obsolete Autoconf macros with their modern counterparts.
8385         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8386         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8388         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8389         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8390         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8392         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8393         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8394         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8395         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8396         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8397         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8398         * m4/sockets.m4 (gl_SOCKETS): Likewise.
8399         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8400         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8401         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8402         * m4/time_r.m4 (gl_TIME_R): Likewise.
8403         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8404         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8405         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8406
8407         Fix copyright header in build-aux scripts.
8408         * build-aux/git-version-gen: Fix copyright header to match GPLv3
8409         recommendation.
8410         * build-aux/ncftpput-ftp: Likewise.
8411         * build-aux/update-copyright: Likewise.
8412
8413 2009-09-09  Eric Blake  <ebb9@byu.net>
8414
8415         test-link: allow Linux choice of errno
8416         * tests/test-link.c (main): Relax test for alternate error.
8417
8418         strndup: fix improper m4 caching
8419         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8420         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8421         (gl_PREREQ_STRNDUP): Delete.
8422         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8423         * modules/string (Makefile.am): Substitute it.
8424         * lib/string.in.h (strndup): Modernize prototype.
8425
8426         getcwd: port to mingw
8427         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8428         different from the POSIX assumptions made throughout the getcwd
8429         module; fortunately, the mingw getcwd does not need replacement.
8430         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8431         * modules/getcwd-tests: New test.
8432         * tests/test-getcwd.c: Likewise.
8433
8434         link: fix platform bugs
8435         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8436         * lib/link.c (link): Work around them.  Fix related mingw bug.
8437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8438         * modules/unistd (Makefile.am): Substitute it.
8439         * lib/unistd.in.h (link): Declare replacement.
8440         * doc/posix-functions/link.texi (link): Document this.
8441         * modules/link (Depends-on): Add strdup-posix, sys_stat.
8442
8443         test-link: consolidate into single C program, test more cases
8444         * tests/test-link.sh: Delete.
8445         * tests/test-link.c: Test more error conditions.  Exposes bugs on
8446         at least Cygwin and Solaris.
8447         * modules/link-tests (Files): Remove unused file.
8448         (Depends-on): Add errno, sys_stat.
8449         (Makefile.am): Simplify.
8450
8451 2009-09-08  Bruno Haible  <bruno@clisp.org>
8452
8453         Work around towlower, towupper bug on mingw.
8454         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8455         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8456         * doc/posix-functions/towlower.texi: Mention the mingw bug.
8457         * doc/posix-functions/towupper.texi: Likewise.
8458         Reported by Eric Blake.
8459
8460 2009-09-08  Jim Meyering  <meyering@redhat.com>
8461
8462         build: don't try to run autoheader if we don't use it
8463         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8464         is not used in configure.ac.
8465
8466 2009-09-08  Eric Blake  <ebb9@byu.net>
8467
8468         euidaccess: fix compilation error
8469         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8470
8471         rawmemchr: relax license
8472         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8473         okay.
8474         Reported by Jim Meyering.
8475
8476         mkfifoat: new module
8477         * modules/mkfifoat: New file.
8478         * lib/mkfifoat.c: Likewise.
8479         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8480         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8481         * modules/sys_stat (Makefile.am): Use them.
8482         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8483         * MODULES.html.sh (File system functions): Mention module.
8484         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8485         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8486         * modules/mkfifoat-tests: New test.
8487         * tests/test-mkfifoat.c: Likewise.
8488
8489         strchrnul: relax license
8490         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8491         okay.
8492         Reported by Jim Meyering.
8493
8494 2009-09-08  Eric Blake  <ebb9@byu.net>
8495
8496         fstatat: fix compilation on Solaris
8497         * lib/fstatat.c (includes): Add fcntl.h.
8498         Reported by Pádraig Brady.
8499
8500 2009-09-07  Eric Blake  <ebb9@byu.net>
8501
8502         rename: modernize replacement
8503         * modules/rename (Depends-on): Add stdio.
8504         (configure.ac): Declare witness.
8505         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8506         stdio take care of replacement.
8507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8508         * modules/stdio (Makefile.am): Substitute them.
8509         * lib/stdio.in.h (rename): Declare replacement.
8510         * lib/rename.c (includes): Allow cross-compilation to non-windows
8511         machines.
8512         * doc/posix-functions/rename.texi (rename): Improve
8513         documentation.
8514
8515         stdio: sort witness names
8516         * modules/stdio (Makefile.am): Sort replacements.
8517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8518         * lib/stdio.in.h: Likewise.
8519
8520         getcwd: minor cleanups
8521         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
8522         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
8523
8524         openat: provide more convenience names
8525         * modules/faccessat (configure.ac): Add C witness.
8526         * lib/unistd.in.h (readlinkat): Fix typo.
8527         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
8528         convenience wrappers.
8529         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
8530         wrappers in syntax checks.
8531
8532 2009-09-06  Eric Blake  <ebb9@byu.net>
8533
8534         doc: fix comments in recent patches
8535         * lib/faccessat.c: Mention correct function.
8536         * lib/fchmodat.c: Likewise.
8537         * lib/fchownat.c: Likewise.
8538         * lib/symlinkat.c: Likewise.
8539         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
8540         constants.
8541
8542         faccessat, symlinkat: continue cleanup of previous patch
8543         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
8544         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8545         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
8546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
8547         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
8548         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
8549         set.
8550
8551 2009-09-06  Bruno Haible  <bruno@clisp.org>
8552
8553         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
8554         (fstatat): Declare if GNULIB_FSTATAT is set.
8555         (mkdirat): Declare if GNULIB_MKDIRAT is set.
8556         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
8557         (unlinkat): Declare if GNULIB_UNLINKAT is set.
8558         * modules/fcntl-h (Files): Remove m4/openat.m4.
8559         * modules/sys_stat (Files): Remove m4/openat.m4.
8560         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
8561         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
8562         * modules/unistd (Files): Remove m4/openat.m4.
8563         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
8564         GNULIB_OPENAT.
8565         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
8566         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
8567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
8568         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
8569         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
8570         gl_OPENAT_DEFAULTS.
8571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
8572         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
8573         Don't require gl_OPENAT_DEFAULTS.
8574         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
8575         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
8576         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
8577         (gl_OPENAT_DEFAULTS): Remove macro.
8578
8579 2009-09-06  Bruno Haible  <bruno@clisp.org>
8580
8581         * modules/openat (configure.ac): Remove unneeded witness.
8582
8583 2009-09-06  Bruno Haible  <bruno@clisp.org>
8584
8585         Set errno to ENOSYS when a function is entirely unsupported.
8586         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
8587         EOPNOTSUPP.
8588         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
8589         * modules/chown (Depends-on): Remove errno.
8590
8591 2009-09-06  Bruno Haible  <bruno@clisp.org>
8592
8593         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
8594
8595 2009-09-06  Bruno Haible  <bruno@clisp.org>
8596
8597         * lib/sys_stat.in.h: Fix preprocessor command indentation.
8598
8599 2009-09-06  Ben Pfaff  <blp@gnu.org>
8600             Bruno Haible  <bruno@clisp.org>
8601
8602         Work around a glibc bug in strtok_r.
8603         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
8604         Undefine if UNDEFINE_STRTOK_R is set.
8605         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
8606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8607         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
8608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
8609         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
8610         UNDEFINE_STRTOK_R.
8611         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
8612
8613 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
8614
8615         exclude: minor fix
8616         * lib/exclude.c: Include wctype.h
8617
8618 2009-09-06  Akim Demaille  <demaille@gostai.com>
8619
8620         bootstrap: improve error message
8621         * build-aux/bootstrap (find_tool): Upon failure, report the list
8622         of candidates.
8623         Honor the initial value of the envvar.
8624
8625 2009-09-05  Eric Blake  <ebb9@byu.net>
8626
8627         symlinkat: new module
8628         * modules/symlinkat: New file.
8629         * lib/symlinkat.c: Likewise.
8630         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
8631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8632         * modules/unistd (Makefile.am): Use them.
8633         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
8634         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
8635         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
8636         * MODULES.html.sh (File system functions): Mention module.
8637         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8638         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8639         * modules/symlinkat-tests: New test.
8640         * tests/test-symlinkat.c: Likewise.
8641
8642         test-openat-safer: add more checks
8643         * tests/test-openat-safer.c (main): Check more code paths.
8644
8645 2009-09-05  Jim Meyering  <meyering@redhat.com>
8646
8647         syntax-check: detect unnecessary inclusion of openat.h
8648         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
8649
8650 2009-09-05  Bruno Haible  <bruno@clisp.org>
8651
8652         Support towlower, towupper.
8653         * doc/posix-functions/towlower.texi: Mention module wctype.
8654         * doc/posix-functions/towupper.texi: Likewise.
8655         * lib/wctype.in.h (towlower, towupper): New functions.
8656         * tests/test-wctype.c: Include stdio.h, stdlib.h.
8657         (ASSERT): New macro.
8658         (e): New variable.
8659         (main): Test also towlower, towupper. Test WEOF argument.
8660         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
8661
8662 2009-09-05  Bruno Haible  <bruno@clisp.org>
8663
8664         Fix conversion behaviour when the input is invalid.
8665         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
8666         mark occurring in first pass of indirect conversion.
8667         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
8668         input.
8669         Found by clang's static analyzer.
8670
8671 2009-09-05  Bruno Haible  <bruno@clisp.org>
8672
8673         * tests/test-striconveh.c (main): Test indirect conversion on platforms
8674         where direct conversion is possible.
8675
8676 2009-09-04  Eric Blake  <ebb9@byu.net>
8677
8678         openat: fail with ENOENT on empty name
8679         * lib/openat-proc.c (openat_proc_name): Special-case the empty
8680         buffer.
8681
8682         link-follow: fix logic bug in prior patch
8683         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
8684         reversed sense of yes and no in prior patch.  Avoid confusing
8685         compilation failure with desired semantics.
8686
8687         link-follow: accomodate mingw and cross-compilation
8688         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
8689         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
8690         cross-compilation results to -1, to make linkat easier to
8691         implement when cross-compiling.  Trivially support mingw.
8692         * modules/link-follow (configure.ac): Call new name.
8693         * NEWS: Mention this.
8694
8695 2009-09-03  Eric Blake  <ebb9@byu.net>
8696
8697         faccessat: compile replacement
8698         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
8699         needed.
8700
8701         fts: fix compilation error
8702         * lib/fts.c (includes): Re-add "openat.h", for
8703         openat_needs_fchdir.
8704
8705         faccessat: new module
8706         * modules/faccessat: New file.
8707         * lib/faccessat.c: Likewise.
8708         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
8709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8710         * modules/unistd (Makefile.am): Use it.
8711         * lib/unistd.in.h (faccessat): Declare it.
8712         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
8713         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
8714         * MODULES.html.sh (File system functions): Mention it.
8715         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
8716         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
8717
8718         euidaccess: prefer POSIX over non-standard implementation
8719         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
8720         * lib/euidaccess.c (euidaccess): Use it if available.
8721
8722         openat: make template easier to use
8723         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
8724         AT_FUNC_F2 to be undefined.
8725         (VALIDATE_FLAG): New macro; use it to reject bad flags.
8726         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
8727         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
8728         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
8729         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
8730         Likewise.
8731         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
8732         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
8733         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
8734         Likewise.
8735
8736         openat: declare in POSIX headers
8737         * NEWS: Mention this.
8738         * modules/openat (configure.ac): Declare witnesses.
8739         (Depends-on): Add fcntl-h, sys_stat, unistd.
8740         (Include): Mention correct headers.
8741         * modules/fcntl-h (Depends-on): Add link-warning.
8742         (Files): Add openat.m4.
8743         (Makefile.am): Substitute witnesses.
8744         * modules/sys_stat (Files, Makefile.am): Likewise.
8745         * modules/unistd (Files, Makefile.am): Likewise.
8746         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
8747         (gl_OPENAT_DEFAULTS): New macro.
8748         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
8749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
8750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
8751         (SYS_STAT_H): Remove unused variable.
8752         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
8753         * lib/fcntl--.h (includes): Remove unneeded header.
8754         * lib/openat-safer.c (includes): Likewise.
8755         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
8756         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
8757         appropriate headers.
8758         (__OPENAT_PREFIX): Delete.
8759         * lib/fcntl.in.h (openat): Provide declaration.
8760         (AT_FDCWD): Fix Solaris bug.
8761         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
8762         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
8763         * lib/fchmodat.c (includes):  Adjust to find declaration.
8764         * lib/fchownat.c (includes): Likewise.
8765         * lib/mkdirat.c (includes): Likewise.
8766         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
8767         still visible.
8768
8769 2009-09-02  Eric Blake  <ebb9@byu.net>
8770
8771         errno: use consistently
8772         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
8773         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
8774         * lib/canonicalize.c (ELOOP): Likewise.
8775         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
8776         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
8777         * lib/lchown.c (EOPNOTSUPP): Likewise.
8778         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
8779         * lib/savewd.c (ESTALE): Likewise.
8780         * lib/settime.c (ENOSYS): Likewise.
8781         * lib/utimens.c (ENOSYS): Likewise.
8782         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
8783         * lib/chdir-safer.c (ELOOP): Likewise.
8784         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
8785         * modules/c-stack (Depends-on): Add errno.
8786         * modules/canonicalize (Depends-on): Likewise.
8787         * modules/chdir-safer (Depends-on): Likewise.
8788         * modules/fdopendir (Depends-on): Likewise.
8789         * modules/inet_ntop (Depends-on): Likewise.
8790         * modules/inet_pton (Depends-on): Likewise.
8791         * modules/lchown (Depends-on): Likewise.
8792         * modules/openat (Depends-on): Likewise.
8793         * modules/savewd (Depends-on): Likewise.
8794         * modules/settime (Depends-on): Likewise.
8795         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
8796
8797         fts: avoid leaking fds
8798         * modules/fts (Depends-on): Add cloexec.
8799         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
8800         flag.
8801
8802         fts: make directory fds more robust
8803         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
8804         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
8805
8806         backupfile, chdir-long, fts, savedir: make safer
8807         * lib/backupfile.c (includes): Use "dirent--.h", since
8808         numbered_backup can write to stderr during readdir.
8809         * lib/savedir.c (includes): Likewise.
8810         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
8811         emulation can write to stderr on failure.
8812         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
8813         * lib/getcwd.c: Document why opendir_safer is unused.
8814         * lib/glob.c: Likewise.
8815         * lib/scandir.c: Likewise.
8816         * lib/openat-proc.c: Likewise, for open_safer.
8817         * modules/backupfile (Depends-on): Add dirent-safer.
8818         * modules/savedir (Depends-on): Likewise.
8819         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
8820         * modules/chdir-long (Depends-on): Add openat-safer.
8821
8822         openat-safer: new module
8823         * modules/openat-safer: New file.
8824         * lib/openat-safer.c: Likewise.
8825         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
8826         * lib/fcntl-safer.h (openat_safer): Declare.
8827         * lib/fcntl--.h (openat): Override.
8828         * MODULES.html.sh (File descriptor based I/O): Mention it.
8829         * lib/openat.h: Add double-inclusion guards.
8830         * lib/openat.c (includes): Only include "fcntl-safer.h", not
8831         "fcntl--.h", so we can implement openat.
8832         * modules/openat-safer-tests: New test.
8833         * tests/test-openat-safer.c: New file.
8834
8835         dirent-safer: new module
8836         * modules/dirent-safer: New file.
8837         * lib/dirent--.h: Likewise.
8838         * lib/dirent-safer.h: Likewise.
8839         * lib/opendir-safer.c: Likewise.
8840         * m4/dirent-safer.m4: Likewise.
8841         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
8842         * modules/dirent-safer-tests: New test.
8843         * tests/test-dirent-safer.c: New file.
8844         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
8845
8846         fdopendir: optimize on mingw
8847         * lib/unistd.in.h (_gl_directory_name): New prototype.
8848         * lib/fchdir.c (_gl_directory_name): Implement it.
8849         (fchdir): Use it to simplify implementation.
8850         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
8851         fchdir, when available, to avoid calling [f]chdir().
8852
8853         fdopendir: split into its own module
8854         * lib/openat.c (fdopendir): Move...
8855         * lib/fdopendir.c: ...into new file.
8856         * modules/fdopendir: New module.
8857         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
8858         * modules/openat (Depends-on): Add fdopendir.
8859         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
8860         fdopendir here.
8861         * modules/savedir (Depends-on): Only need fdopendir, not full
8862         openat.
8863         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
8864         * lib/openat.h (fdopendir): Drop prototype.
8865         * lib/dirent.in.h (fdopendir): Provide prototype.
8866         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
8867         * modules/dirent (Makefile.am): Substitute them.
8868         * MODULES.html.sh (File system functions): Mention it.
8869         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
8870         * modules/fdopendir-tests: New file.
8871         * tests/test-fdopendir.c: Likewise.
8872
8873         fchdir: use more consistent macro convention
8874         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
8875         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
8876         REPLACE_FCHDIR, rather than relying on config.h macros.
8877         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
8878         inside a single make-time REPLACE_FCHDIR block, rather than using
8879         the config.h FCHDIR_REPLACEMENT.
8880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
8881         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
8882         Manage fstat replacement.
8883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
8884         REPLACE_FCHDIR.
8885         * modules/sys_stat (Files): Add m4/unistd_h.m4.
8886         (Makefile.am): Substitute REPLACE_FCHDIR.
8887         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
8888         FCHDIR_REPLACEMENT.
8889         * lib/dup-safer.c (dup_safer): Likewise.
8890         * lib/dup2.c (rpl_dup2): Likewise.
8891         * lib/dup3.c (rpl_dup3): Likewise.
8892         * lib/open.c (rpl_open): Likewise.
8893
8894         fchdir: simplify error handling, and support dup3
8895         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
8896         stdbool, malloc-posix, realloc-posix.
8897         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
8898         (ensure_dirs_slot): Return false on allocation failure.
8899         (rpl_dup2): Delete.
8900         (_gl_register_dup): New function.
8901         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
8902         (_gl_register_fd): Close fd on allocation failure.
8903         * lib/fcntl.in.h (_gl_register_fd): Update signature.
8904         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
8905         prototype.
8906         (rpl_dup2_fchdir): Delete prototype.
8907         * lib/open.c (open): Update caller.
8908         * lib/dup2.c (dup2): Track fchdir metadata.
8909         * lib/dup3.c (dup3): Likewise.
8910         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
8911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
8912
8913 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8914
8915         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
8916         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
8917         don't pass arguments to AC_OUTPUT.
8918
8919 2009-09-02  Bruno Haible  <bruno@clisp.org>
8920
8921         * modules/mkdtemp (License): Relicense under LGPLv2+.
8922         Reported by Paolo Bonzini.
8923
8924 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8925
8926         Replace uses of obsolete autoconf macros in Jim's modules.
8927         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
8928         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
8929         can evoke a warning from autoconf when run with -Wobsolete
8930         enabled.  They were declared obsolete for good reasons (see
8931         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
8932         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
8933         should not continue using the deprecated macros.
8934         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
8935         obsolete Autoconf macros with modern counterparts.
8936         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8937         * m4/dos.m4 (gl_AC_DOS): Likewise.
8938         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
8939         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8940         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
8941         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
8942         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
8943         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
8944         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
8945         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
8946         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
8947         Likewise.
8948         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8949         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8950         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
8951         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
8952         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
8953         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8954
8955 2009-09-01  Eric Blake  <ebb9@byu.net>
8956
8957         fchdir: fix off-by-one bug in previous patch
8958         * lib/fchdir.c (rpl_fstat): Use correct bounds.
8959         (_gl_unregister_fd): Delete useless if.
8960
8961 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
8962
8963         maint.mk: sort the list of syntax-check rules
8964         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
8965         easier to get a sense of progress when the rules are run sequentially
8966         and take a long time.
8967
8968 2009-09-01  Simon Josefsson  <simon@josefsson.org>
8969
8970         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
8971         * modules/netinet_in: Likewise.
8972         * modules/sys_file: Likewise.
8973         * modules/sys_ioctl: Likewise.
8974         * modules/sys_select: Likewise.
8975         * modules/sys_socket: Likewise.
8976         * modules/sys_stat: Likewise.
8977         * modules/sys_time: Likewise.
8978         * modules/sys_times: Likewise.
8979         * modules/sys_utsname: Likewise.
8980         * modules/sys_wait: Likewise.
8981
8982 2009-09-01  Jim Meyering  <meyering@redhat.com>
8983
8984         fts: help ensure that return values are not ignored
8985         * lib/fts_.h (__GNUC_PREREQ): Define.
8986         (__attribute_warn_unused_result__): Define.
8987         (fts_children, fts_close, fts_open, fts_read): Declare with
8988         __attribute_warn_unused_result__.
8989
8990         fts: fts_close now fails also when closing a dir file descriptor fails
8991         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
8992         and propagate to caller, along with errno.
8993
8994         announce-gen: correct formatting in --help output
8995         * build-aux/announce-gen (usage): Move the one-line description in
8996         --help output "up", to where it belongs, just after Usage:.
8997
8998 2009-08-31  Eric Blake  <ebb9@byu.net>
8999
9000         fchdir: port to mingw
9001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9002         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9003         opened, then use a substitute.
9004         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9005         replacement.
9006         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9007         (_gl_register_fd): No need to check stat if open already filters
9008         all directories.
9009         (fchdir): Fix error condition to match POSIX.
9010         * modules/fchdir (Depends-on): Add sys_stat.
9011         * doc/posix-functions/open.texi (open): Document the limitation.
9012         * modules/fchdir-tests: New file.
9013         * tests/test-fchdir.c: Likewise.
9014
9015         canonicalize: allow cross-testing from cygwin to mingw
9016         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9017         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9018         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9019         Likewise.
9020         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9021         target does not support symlinks.
9022         * tests/test-canonicalize-lgpl.sh: Likewise.
9023
9024         chown: avoid compilation warning on mingw
9025         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9026         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9027         mingw.
9028         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9029         * modules/chown (Depends-on): Add errno.
9030
9031 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9032
9033         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9034         command.
9035
9036 2009-08-31  Jim Meyering  <meyering@redhat.com>
9037
9038         canonicalize: remove useless initialization
9039         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9040         initialization of local, "end".
9041
9042 2009-08-30  Bruno Haible  <bruno@clisp.org>
9043
9044         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9045         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9046         ENOSYS.
9047
9048 2009-08-30  Bruno Haible  <bruno@clisp.org>
9049
9050         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9051         /usr/xpg4/bin/tr when it exists.
9052         * tests/test-pipe-filter-gi1.sh: Likewise.
9053
9054 2009-08-30  Bruno Haible  <bruno@clisp.org>
9055
9056         Work around deficient /usr/bin/id program on Solaris.
9057         * tests/test-file-has-acl.sh (ID): New variable.
9058         * tests/test-set-mode-acl.sh (ID): Likewise.
9059         * tests/test-copy-acl.sh (ID): Likewise.
9060         * tests/test-copy-file.sh (ID): Likewise.
9061
9062 2009-08-30  Bruno Haible  <bruno@clisp.org>
9063
9064         New module 'xstriconveh'.
9065         * lib/xstriconveh.h: New file.
9066         * lib/xstriconveh.c: New file.
9067         * modules/xstriconveh: New file.
9068
9069 2009-08-30  Bruno Haible  <bruno@clisp.org>
9070
9071         Make it easier to use mem_cd_iconveh.
9072         * lib/striconveh.h (iconveh_t): New type.
9073         (iconveh_open, iconveh_close): New declarations.
9074         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9075         with a single 'const iconveh_t *' argument.
9076         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9077         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9078         with a single 'const iconveh_t *' argument.
9079         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9080         * tests/test-striconveh.c (main): Update.
9081         * NEWS: Mention the change.
9082
9083 2009-08-30  Bruno Haible  <bruno@clisp.org>
9084
9085         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9086         problem.
9087
9088 2009-08-30  Bruno Haible  <bruno@clisp.org>
9089
9090         Work around iconv_open problem on Solaris.
9091         * lib/iconv_open-solaris.gperf: New file.
9092         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9093         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9094         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9095         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9096         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9097         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9098
9099 2009-08-29  Jim Meyering  <meyering@redhat.com>
9100
9101         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9102         * top/maint.mk (cvs-check): Remove target; it was just an alias
9103         to the better-named vc-diff-check.
9104         (maintainer-distcheck): Remove rule.  It was used only from
9105         the (alpha/beta/major) target, and all of its commands but one
9106         were coreutils-specific.
9107         (vc-dist): Remove rule.
9108         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9109         Run vc-diff-check, not vc-dist.
9110         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9111
9112 2009-08-27  Bruno Haible  <bruno@clisp.org>
9113
9114         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9115         of 0.
9116
9117 2009-08-27  Bruno Haible  <bruno@clisp.org>
9118
9119         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9120         compilers.
9121         * doc/func.texi: Document the SunPRO C bug.
9122
9123 2009-08-27  Bruno Haible  <bruno@clisp.org>
9124
9125         Fix link error on Solaris.
9126         * tests/test-parse-duration.c (xstrdup): Remove function.
9127
9128 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9129
9130         ignore-value: handle pointer types, too
9131         * lib/ignore-value.h (__attribute__): Remove definition.
9132         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9133         of a more concise and more-often effective "(void) i" statement.
9134         (ignore_ptr): New function to suppress warnings from functions that
9135         return pointers, and to make it explicit that one function doesn't
9136         handle all cases.
9137
9138 2009-08-25  Bruno Haible  <bruno@clisp.org>
9139
9140         dup2: work around a Linux bug.
9141         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9142         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9143         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9144         Reported by Simon Josefsson.
9145
9146 2009-08-25  Jim Meyering  <meyering@redhat.com>
9147
9148         libguestfs uses gnulib
9149         * users.txt: Add libguestfs.
9150
9151 2009-08-24  Eric Blake  <ebb9@byu.net>
9152
9153         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9154         * lib/pipe2.c (includes): Add binary-io.h.
9155         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9156
9157 2009-08-24  Bruno Haible  <bruno@clisp.org>
9158
9159         Tolerate declared but missing accept4 syscall.
9160         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9161         available.
9162         * lib/sys_socket.in.h (accept4): If the function is already present,
9163         override it.
9164         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9165         * modules/accept4 (Makefile.am): Compile accept4.c always.
9166         Reported by Paolo Bonzini and Eric Blake.
9167
9168 2009-08-23  Bruno Haible  <bruno@clisp.org>
9169
9170         New module 'accept4'.
9171         * lib/sys_socket.in.h (accept4): New declaration.
9172         * lib/accept4.c: New file.
9173         * m4/accept4.m4: New file.
9174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9175         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9176         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9177         HAVE_ACCEPT4.
9178         * modules/accept4: New file.
9179         * doc/glibc-functions/accept4.texi: Mention the new module.
9180
9181 2009-08-24  Jim Meyering  <meyering@redhat.com>
9182
9183         progname: also set global program_invocation_name, when possible
9184         Before this change, a libtool-enabled program that calls glibc's
9185         error function would report the program name as
9186         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9187         * modules/progname (configure.ac): Check for a declaration of
9188         program_invocation_name.
9189         * lib/progname.c:  Include <errno.h>.
9190         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9191         Set program_invocation_name.
9192
9193 2009-08-23  Bruno Haible  <bruno@clisp.org>
9194
9195         * lib/dup3.c: Include <string.h>.
9196
9197 2009-08-23  Bruno Haible  <bruno@clisp.org>
9198
9199         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9200         * lib/pipe2.c (pipe2): Likewise.
9201         Suggested by Eric Blake.
9202
9203 2009-08-23  Bruno Haible  <bruno@clisp.org>
9204
9205         Tolerate declared but missing dup3 syscall.
9206         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9207         * lib/unistd.in.h (dup3): If the function is already present,
9208         override it.
9209         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9210         * modules/dup3 (Makefile.am): Compile dup3.c always.
9211         Reported by Paolo Bonzini.
9212
9213 2009-08-23  Bruno Haible  <bruno@clisp.org>
9214
9215         Tolerate declared but missing pipe2 syscall.
9216         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9217         available.
9218         * lib/unistd.in.h (pipe2): If the function is already present,
9219         override it.
9220         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9221         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9222         Reported by Paolo Bonzini.
9223
9224 2009-08-23  Bruno Haible  <bruno@clisp.org>
9225
9226         * lib/pipe2.c (pipe2): Move #ifs inside function.
9227
9228 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9229
9230         quotearg: document limitations of quote_these_too
9231         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9232         those limitations are created.
9233         * lib/quotearg.h (set_char_quoting): Document that digits and
9234         letters that are special after backslash are not permitted.
9235         (quotearg_char): Cross-reference set_char_quoting documentation.
9236
9237 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
9238
9239         quotearg: implement custom_quoting_style
9240         * lib/quotearg.c: (struct quoting_options): Add left_quote and
9241         right_quote fields.
9242         (set_custom_quoting): New public function.
9243         (quotearg_buffer_restyled): Add left_quote and right_quote
9244         arguments, handle them very much like locale quoting, and update
9245         all uses.
9246         (quotearg_n_custom): New public function.
9247         (quotearg_n_custom_mem): New public function.
9248         (quotearg_custom): New public function.
9249         (quotearg_custom_mem): New public function.
9250         * lib/quotearg.h: Prototype and document new public functions.
9251         (enum quoting_style): For escape_quoting_style and
9252         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9253         ignored even though they're otherwise like c_quoting_style.
9254         Add custom_quoting_style member and document with comparison to
9255         clocale_quoting_style.
9256         * tests/test-quotearg.c (custom_quotes): New array.
9257         (custom_results): New array.
9258         (main): Extend to test custom quoting.
9259
9260 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9261
9262         quotearg: fix right quote escaping when it's in quote_these_too
9263         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9264         quote, be sure to prepend only one backslash.
9265         * tests/test-quotearg.c (use_quote_double_quotes): New function.
9266         (main): Test it.
9267
9268 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
9269
9270         quotearg-tests: test escaping of embedded locale quotes
9271         * tests/test-quotearg.c (struct result_strings): Add member for
9272         new input.
9273         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9274         (inputs): Add new input.
9275         (results_g): Add expected results.
9276         (flag_results): Likewise.
9277         (locale_results): Likewise.
9278         (compare_strings): Check those.
9279
9280 2009-08-23  Bruno Haible  <bruno@clisp.org>
9281
9282         Tests for module 'dup3'.
9283         * modules/dup3-tests: New file.
9284         * tests/test-dup3.c: New file.
9285
9286         New module 'dup3'.
9287         * lib/unistd.in.h (dup3): New declaration.
9288         * lib/dup3.c: New file.
9289         * m4/dup3.m4: New file.
9290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9291         HAVE_DUP3.
9292         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9293         * modules/dup3: New file.
9294         * doc/glibc-functions/dup3.texi: Mention the new module.
9295
9296 2009-08-23  Bruno Haible  <bruno@clisp.org>
9297
9298         Tweak the dup2 test.
9299         * tests/test-dup2.c (main): Create the test file empty. Verify that an
9300         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9301         the test file is still empty. Fix argument order of lseek.
9302
9303 2009-08-23  Bruno Haible  <bruno@clisp.org>
9304
9305         Avoid test link errors when the modules getopt-gnu, gettext are used.
9306         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9308
9309 2009-08-23  Bruno Haible  <bruno@clisp.org>
9310
9311         Fix getdtablesize() on mingw.
9312         * lib/getdtablesize.c (getdtablesize): Implement differently.
9313         * lib/unistd.in.h (getdtablesize): Improve comment.
9314
9315 2009-08-23  Bruno Haible  <bruno@clisp.org>
9316
9317         New module 'mkostemp'.
9318         Based on Ulrich Drepper's 2007-08-10 change in glibc.
9319         * lib/stdlib.in.h (mksotemp): New declaration.
9320         * lib/mkostemp.c: New file, from glibc with modifications.
9321         * lib/tempname.h (GT_FILE): Remove outdated comment.
9322         (gen_tempname): Add flags argument.
9323         * lib/tempname.c (__GT_BIGFILE): Remove macro.
9324         (__GT_FILE): Map to 1.
9325         (small_open, large_open): Remove macros.
9326         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9327         * lib/mkstemp.c (mkstemp): Update.
9328         * lib/mkdtemp.c (mkdtemp): Likewise.
9329         * m4/mkostemp.m4: New file.
9330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9331         HAVE_MKOSTEMP.
9332         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9333         HAVE_MKOSTEMP.
9334         * modules/mkostemp: New file, based on modules/mkstemp.
9335         * doc/glibc-functions/mkostemp.texi: Mention the new module.
9336         * NEWS: Mention the change.
9337
9338 2009-08-23  Bruno Haible  <bruno@clisp.org>
9339
9340         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9341         Reported by Eric Blake.
9342
9343 2009-08-23  Bruno Haible  <bruno@clisp.org>
9344
9345         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9346         Reported by Eric Blake.
9347
9348 2009-08-23  Bruno Haible  <bruno@clisp.org>
9349
9350         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9351         * modules/pipe2 (Depends-on): Likewise.
9352
9353 2009-08-23  Eric Blake  <ebb9@byu.net>
9354
9355         fcntl-h: add O_TTY_INIT support
9356         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9357         * tests/test-fcntl-h.c (o): Test it.
9358         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9359
9360         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9361         * modules/fcntl: Move <fcntl.h> header replacement...
9362         * modules/fcntl-h: ...to new name, so as not to collide with
9363         like-named function.
9364         * tests/test-fcntl.c: Rename...
9365         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
9366         * modules/fcntl-tests: Rename...
9367         * modules/fcntl-h-tests: ...to this.  Update test file name.
9368         * modules/chdir-long (Depends-on): Update clients.
9369         * modules/chdir-safer (Depends-on): Likewise.
9370         * modules/fcntl-safer (Depends-on): Likewise.
9371         * modules/fts (Depends-on): Likewise.
9372         * modules/mkancesdirs (Depends-on): Likewise.
9373         * modules/mkdir-p (Depends-on): Likewise.
9374         * modules/open (Depends-on): Likewise.
9375         * modules/savewd (Depends-on): Likewise.
9376         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9377         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9378
9379 2009-08-22  Bruno Haible  <bruno@clisp.org>
9380
9381         * modules/binary-io (License): Relicense under LGPL.
9382         * modules/pipe2 (License): Likewise.
9383
9384 2009-08-22  Bruno Haible  <bruno@clisp.org>
9385
9386         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9387         return value.
9388         * lib/pipe-filter-gi.c (filter_init): Likewise.
9389         Reported by Eric Blake.
9390
9391 2009-08-22  Bruno Haible  <bruno@clisp.org>
9392
9393         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9394         * modules/pipe (Depends-on): Add pipe2.
9395
9396 2009-08-22  Bruno Haible  <bruno@clisp.org>
9397
9398         Tests for module 'pipe2'.
9399         * modules/pipe2-tests: New file.
9400         * tests/test-pipe2.c: New file.
9401
9402         New module 'pipe2'.
9403         * lib/unistd.in.h (pipe2): New declaration.
9404         * lib/pipe2.c: New file.
9405         * m4/pipe2.m4: New file.
9406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9407         HAVE_PIPE2.
9408         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9409         * modules/pipe2: New file.
9410         * doc/glibc-functions/pipe2.texi: Mention the new module.
9411
9412 2009-08-22  Bruno Haible  <bruno@clisp.org>
9413
9414         Reference some new glibc functions.
9415         * doc/glibc-functions/accept4.texi: New file.
9416         * doc/glibc-functions/dup3.texi: New file.
9417         * doc/glibc-functions/mkostemp.texi: New file.
9418         * doc/glibc-functions/pipe2.texi: New file.
9419         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9420         (Glibc sys/socket.h): Refer to accept4.
9421         (Glibc unistd.h): Refer to dup3, pipe2.
9422         Reported by Eric Blake.
9423
9424 2009-08-22  Jim Meyering  <meyering@redhat.com>
9425             Bruno Haible  <bruno@clisp.org>
9426
9427         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9428         This makes it so packages using automake-1.11's silent-rules option
9429         can print e.g., a single "GEN    configmake.h" line, rather than
9430         the 30+ statements that perform the job.  If you want to see the
9431         actual commands, you can still run "make V=1".
9432         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9433         so that make output is abbreviated when those variables are defined
9434         appropriately.
9435         * modules/argz: Likewise.
9436         * modules/arpa_inet: Likewise.
9437         * modules/byteswap: Likewise.
9438         * modules/configmake: Likewise.
9439         * modules/dirent: Likewise.
9440         * modules/errno: Likewise.
9441         * modules/fcntl: Likewise.
9442         * modules/float: Likewise.
9443         * modules/fnmatch: Likewise.
9444         * modules/getopt-posix: Likewise.
9445         * modules/glob: Likewise.
9446         * modules/iconv_open: Likewise.
9447         * modules/inttypes: Likewise.
9448         * modules/localcharset: Likewise.
9449         * modules/locale: Likewise.
9450         * modules/math: Likewise.
9451         * modules/netdb: Likewise.
9452         * modules/netinet_in: Likewise.
9453         * modules/poll: Likewise.
9454         * modules/posix_spawnp-tests: Likewise.
9455         * modules/sched: Likewise.
9456         * modules/search: Likewise.
9457         * modules/selinux-h: Likewise.
9458         * modules/signal: Likewise.
9459         * modules/spawn: Likewise.
9460         * modules/stdarg: Likewise.
9461         * modules/stdbool: Likewise.
9462         * modules/stddef: Likewise.
9463         * modules/stdint: Likewise.
9464         * modules/stdio: Likewise.
9465         * modules/stdlib: Likewise.
9466         * modules/string: Likewise.
9467         * modules/strings: Likewise.
9468         * modules/sys_file: Likewise.
9469         * modules/sys_ioctl: Likewise.
9470         * modules/sys_select: Likewise.
9471         * modules/sys_socket: Likewise.
9472         * modules/sys_stat: Likewise.
9473         * modules/sys_time: Likewise.
9474         * modules/sys_times: Likewise.
9475         * modules/sys_utsname: Likewise.
9476         * modules/sys_wait: Likewise.
9477         * modules/sysexits: Likewise.
9478         * modules/time: Likewise.
9479         * modules/unistd: Likewise.
9480         * modules/wchar: Likewise.
9481         * modules/wctype: Likewise.
9482
9483 2009-08-22  Jim Meyering  <meyering@redhat.com>
9484
9485         announce-gen: detect write failure
9486         * build-aux/announce-gen: Add Coda at end.
9487         Remove equivalent-but-more-verbose block at top.
9488
9489 2009-08-19  Akim Demaille  <demaille@gostai.com>
9490
9491         bootstrap: --help to stdout.
9492         * bootstrap (usage): Don't send --help to stderr.
9493         Use a here doc instead of a long string.
9494
9495 2009-08-21  Eric Blake  <ebb9@byu.net>
9496
9497         test-popen-safer: split from test-popen
9498         * tests/test-popen.c (main): Move...
9499         * tests/test-popen.h: ...into new file.
9500         * tests/test-popen-safer2.c: New file.
9501         * modules/popen-tests (Files): Add test-popen.h.
9502         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9503         Suggested by Bruno Haible.
9504
9505         test-fcntl-safer: split from test-open
9506         * tests/test-open.c (main): Move...
9507         * tests/test-open.h: ...into new file.
9508         * tests/test-fcntl-safer.c: New file.
9509         * modules/open-tests (Files): Add test-open.h.
9510         * modules/fcntl-safer-tests: New file.
9511         Suggested by Bruno Haible.
9512
9513         test-fopen-safer: split from test-fopen
9514         * tests/test-fopen.c (main): Move...
9515         * tests/test-fopen.h: ...into new file.
9516         * tests/test-fopen-safer.c: New file.
9517         * modules/fopen-tests (Files): Add test-fopen.h.
9518         * modules/fopen-safer-tests: New file.
9519         Suggested by Bruno Haible.
9520
9521 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9522
9523         popen-safer: test O_CLOEXEC at run-time.
9524         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
9525
9526 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
9527
9528         fcntl: move more flags to the header
9529         * lib/cloexec.c: Do not define FD_CLOEXEC here.
9530         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
9531         * lib/fcntl.in.h: Do both things here.
9532
9533 2009-08-21  Jim Meyering  <meyering@redhat.com>
9534
9535         consistently remove $@-t before redirecting to it
9536         * modules/argz: Remove $@-t and $@ before redirecting to the former.
9537         * modules/alloca-opt: Likewise.
9538         * modules/byteswap: Likewise.
9539         * modules/fnmatch: Likewise.
9540         * modules/getopt-posix: Likewise.
9541         * modules/glob: Likewise.
9542         * modules/poll: Likewise.
9543         * modules/posix_spawnp-tests: Likewise.
9544         * modules/sys_socket: Likewise.
9545         * modules/sysexits: Likewise.
9546
9547 2009-08-21  Eric Blake  <ebb9@byu.net>
9548
9549         popen: simplify access to original popen
9550         * lib/popen.c (rpl_popen): No need to worry about popen being a
9551         macro.
9552         Reported by Bruno Haible.
9553
9554 2009-08-20  Eric Blake  <ebb9@byu.net>
9555
9556         build: avoid some compiler warnings
9557         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
9558         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
9559         type.
9560         (new_exclude_segment, excluded_file_pattern_p)
9561         (excluded_file_name_p): Reduce scope.
9562         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
9563         old-style declaration.
9564
9565 2009-08-20  Simon Josefsson  <simon@josefsson.org>
9566
9567         * tests/test-exclude1.sh: Handle Windows EOL.
9568         * tests/test-exclude2.sh: Likewise.
9569         * tests/test-exclude3.sh: Likewise.
9570         * tests/test-exclude4.sh: Likewise.
9571         * tests/test-exclude5.sh: Likewise.
9572         * tests/test-exclude6.sh: Likewise.
9573         * tests/test-exclude7.sh: Likewise.
9574
9575 2009-08-19  Akim Demaille  <demaille@gostai.com>
9576
9577         bootstrap: find sha1sum when named gsha1sum.
9578         * bootstrap (find_tool): New.
9579         ($SHA1SUM): New.
9580         Use it.
9581
9582 2009-08-20  Jim Meyering  <meyering@redhat.com>
9583
9584         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
9585         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
9586         expression that converts "." in a file name to "\." in the resulting
9587         regexp.  Start with a dummy statement, so that prior shell variable
9588         definitions are expanded portably.  Reported by Simon Josefsson.
9589
9590 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
9591
9592         Fix polling for writeability of a screen buffer.
9593         * lib/poll.c: Distinguish input and screen buffers for the
9594         Win32 implementation.
9595         * lib/select.c: Likewise.
9596
9597 2009-08-19  Eric Blake  <ebb9@byu.net>
9598
9599         popen-safer: prevent popen from clobbering std descriptors
9600         * modules/popen-safer: New file.
9601         * lib/popen-safer.c: Likewise.
9602         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
9603         * lib/stdio--.h (popen): Provide override.
9604         * lib/stdio-safer.h (popen_safer): Provide declaration.
9605         * tests/test-popen.c (includes): Partially test this.
9606         * modules/popen-safer-tests: New file, for more tests.
9607         * tests/test-popen-safer.c: Likewise.
9608         * MODULES.html.sh (file stream based Input/Output): Mention it.
9609
9610         tests: test some of the *-safer modules
9611         * modules/fopen-safer (Depends-on): Add fopen.
9612         * modules/fcntl-safer (Depends-on): Add fcntl.
9613         * modules/stdlib-safer (Depends-on): Add stdlib.
9614         (configure.ac): Set indicator.
9615         * modules/unistd-safer (configure.ac): Likewise.
9616         * modules/tmpfile-safer (configure.ac): Likewise.
9617         (Depends-on): Add tmpfile.
9618         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
9619         active.
9620         * tests/test-fopen.c (includes): Test safer versions when they are
9621         in use.
9622         * tests/test-open.c (includes): Likewise.
9623
9624         popen: fix cygwin 1.5 bug when stdin closed
9625         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
9626         * modules/popen: New file.
9627         * modules/popen-tests: Likewise.
9628         * tests/test-popen.c: Likewise.
9629         * m4/popen.m4: Likewise.
9630         * lib/popen.c: Likewise.
9631         * lib/stdio.in.h (popen): New declaration.
9632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
9633         * modules/stdio (Makefile.am): Likewise.
9634         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
9635
9636 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
9637
9638         maint.mk: give full control over update-copyright exclusions
9639         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
9640         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
9641         (update-copyright): Don't force inclusion of top-level
9642         ChangeLog.  Don't force exclusion of all COPYING files, but make
9643         them the default exclusion instead.
9644
9645 2009-08-16  Bruno Haible  <bruno@clisp.org>
9646
9647         Fix test failures on Solaris 10.
9648         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
9649         tests when Solaris iconv() is used.
9650         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
9651         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
9652         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
9653         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
9654         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
9655
9656 2009-08-16  Bruno Haible  <bruno@clisp.org>
9657
9658         Fix test failures on Solaris 10.
9659         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
9660         'tr' program and pass it as first argument.
9661         * tests/test-pipe-filter-gi1.sh: Likewise.
9662         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
9663         program as first argument.
9664         * tests/test-pipe-filter-gi1.c (main): Likewise.
9665
9666 2009-08-16  Eric Blake  <ebb9@byu.net>
9667
9668         fpurge: fix previous commits
9669         * modules/fpurge (Makefile.am): Make replacement conditional,
9670         partially reverting 2007-04-29 change; missed in previous
9671         attempt.
9672         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
9673         is missing.
9674
9675 2009-08-16  Bruno Haible  <bruno@clisp.org>
9676
9677         Clarify fpurge's effect on the file position.
9678         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
9679         * tests/test-fpurge.c (main): Make a second pass for checking the file
9680         position.
9681
9682 2009-08-16  Bruno Haible  <bruno@clisp.org>
9683
9684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
9685         declaration of fpurge is missing.
9686         * tests/test-fpurge.c (main): Check that the file has not more contents
9687         than expected. Close the file before removing it.
9688
9689 2009-08-15  Eric Blake  <ebb9@byu.net>
9690
9691         fpurge: don't wrap working cygwin implementation
9692         * lib/fpurge.c (fpurge): Fix comment typo.
9693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
9694         1.7 to avoid replacement.
9695         * tests/test-fpurge.c (main): Enhance test.
9696
9697 2009-08-15  Eric Blake  <ebb9@byu.net>
9698         and Jim Meyering  <meyering@redhat.com>
9699
9700         test-update-copyright: skip if perl is insufficient
9701         * tests/test-update-copyright.sh: Failure to run maintainer tool
9702         should not cause testsuite failure on cygwin 1.5.
9703
9704 2009-08-14  Eric Blake  <ebb9@byu.net>
9705
9706         doc: mention more functions added in cygwin 1.7.0
9707         * doc/posix-headers/limits.texi (limits.h): Update for recent
9708         cygwin additions.
9709         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
9710         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9711         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
9712         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
9713         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
9714
9715 2009-08-14  Eric Blake  <ebb9@byu.net>
9716
9717         maint.mk: simplify update-copyright rule
9718         * top/maint.mk (update-copyright-local): Delete, and document how
9719         to do it in cfg.mk instead.
9720         (update-copyright-exclude-regexp): Delete, and document how to do
9721         it in .x-update-copyright instead.
9722         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
9723         exclude ChangeLog.
9724
9725 2009-08-14  Bruno Haible  <bruno@clisp.org>
9726
9727         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
9728
9729 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9730
9731         maint.mk: support update-copyright-env
9732         * top/maint.mk (update-copyright-env): Define place-holder.
9733         (update-copyright): Expand $(update-copyright-env) before
9734         invoking update-copyright.
9735
9736 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9737
9738         update-copyright: implement forced reformatting
9739         * build-aux/update-copyright: Implement and document
9740         UPDATE_COPYRIGHT_FORCE.
9741         * tests/test-update-copyright.sh: Test it.
9742
9743 2009-08-14  Eric Blake  <ebb9@byu.net>
9744         and Bruno Haible  <bruno@clisp.org>
9745
9746         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
9747         * tests/test-locale.c: Revert previous patch related to NULL.
9748         * tests/test-stdio.c: Likewise.
9749         * tests/test-stdlib.c: Likewise.
9750         * tests/test-string.c: Likewise.
9751         * tests/test-unistd.c: Likewise.
9752         * modules/time-tests (Depends-on): Add verify.
9753         * modules/wchar-tests (Depends-on): Likewise.
9754         * tests/test-time.c: Test for NULL compliance.
9755         * tests/test-wchar.c: Likewise.
9756         * modules/locale (Depends-on): Add stddef.
9757         * modules/stdio (Depends-on): Likewise.
9758         * modules/stdlib (Depends-on): Likewise.
9759         * modules/string (Depends-on): Likewise.
9760         * modules/time (Depends-on): Likewise.
9761         * modules/unistd (Depends-on): Likewise.
9762         * modules/wchar (Depends-on): Likewise.
9763         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
9764         * lib/stdlib.in.h (includes): Likewise.
9765         * lib/string.in.h (includes): Likewise.
9766         * lib/time.in.h (includes): Likewise.
9767         * lib/unistd.in.h (includes): Likewise.
9768         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
9769         replaced.
9770         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9771         * m4/stddef_h.m4: New file.
9772         * modules/stddef: Likewise.
9773         * lib/stddef.in.h: Likewise.
9774         * modules/stddef-tests: Likewise.
9775         * tests/test-stddef.c: Likewise.
9776         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
9777         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
9778         * doc/posix-headers/locale.texi (locale.h): Likewise.
9779         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
9780         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9781         * doc/posix-headers/string.texi (string.h): Likewise.
9782         * doc/posix-headers/time.texi (time.h): Likewise.
9783         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
9784         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
9785
9786 2009-08-14  Eric Blake  <ebb9@byu.net>
9787
9788         doc: improve git diff of texinfo files
9789         * .gitattributes: Add rule for *.texi files, with hint on how to
9790         use it.
9791         Copied from m4, and based on a report by Bruno Haible.
9792
9793 2009-08-14  Bruno Haible  <bruno@clisp.org>
9794
9795         Disable multithread support by default on Cygwin 1.5.x for real.
9796         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
9797
9798 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
9799
9800         update-copyright: much ado about intervals
9801         * build-aux/update-copyright: Implement and document
9802         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
9803         of copyright year intervals.
9804         Also, document UPDATE_COPYRIGHT_YEAR.
9805         * tests/test-update-copyright.sh: Test it.
9806
9807         update-copyright: convert 2-digit to 4-digit years
9808         * build-aux/update-copyright: Implement and document.
9809         * tests/test-update-copyright.sh: Update.
9810
9811 2009-08-14  Jim Meyering  <meyering@redhat.com>
9812
9813         test-exclude: avoid coreutils "make check" failure
9814         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
9815         just as in test-argmatch.c.
9816
9817 2009-08-13  Eric Blake  <ebb9@byu.net>
9818
9819         test-dup2: fix bad assumption
9820         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
9821         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
9822
9823         test-version-etc: fix CRLF portability issue
9824         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
9825         recognize \r.
9826         * tests/test-argp-version-etc-1.sh: Likewise.
9827
9828         getopt: update client modules
9829         * modules/argp (Depends-on): Use getopt-gnu.
9830         * modules/git-merge-changelog (Depends-on): Likewise.
9831         * modules/long-options (Depends-on): Likewise.
9832         * modules/xstrtol (Depends-on): Likewise.
9833
9834 2009-08-13  Simon Josefsson  <simon@josefsson.org>
9835
9836         * tests/test-version-etc.sh: Don't fail on different
9837         project/version.  Don't fail on CRLF differences.  Rewrite to use
9838         multiple -e instead of multiple sed forks, suggested by Eric Blake
9839         <ebb9@byu.net>.
9840         * tests/test-argp-version-etc-1.sh: Likewise.
9841
9842 2009-08-13  Simon Josefsson  <simon@josefsson.org>
9843
9844         * tests/test-version-etc.sh: Don't fail on different
9845         project/version.
9846
9847 2009-08-12  Bruno Haible  <bruno@clisp.org>
9848
9849         Tests for modules 'getopt-posix', 'getopt-gnu'.
9850         * modules/getopt-posix-tests: New file.
9851         * tests/test-getopt.c: New file.
9852         * tests/test-getopt.h: New file.
9853         * tests/test-getopt_long.h: New file.
9854
9855         New modules 'getopt-posix', 'getopt-gnu'.
9856         * modules/getopt-gnu: New file, renamed from modules/getopt.
9857         * modules/getopt-posix: New file.
9858         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
9859         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
9860         (gl_GETOPT): Remove macro.
9861         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
9862         Disable the test against BSD systems that declare optreset. Test
9863         against mingw bug. Test against lack of support of optional arguments
9864         on many platforms.
9865         * doc/glibc-headers/getopt.texi: Update module name and list of
9866         relevant platforms.
9867         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
9868         'getopt-gnu' and more portability problems.
9869         * NEWS: Mention the changes.
9870
9871 2009-08-12  Bruno Haible  <bruno@clisp.org>
9872
9873         Ensure that optarg etc. get declared by <unistd.h>.
9874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
9875         AC_USE_SYSTEM_EXTENSIONS.
9876         * modules/getopt (Depends-on): Add 'extensions'.
9877
9878 2009-08-12  Bruno Haible  <bruno@clisp.org>
9879
9880         Avoid test link errors.
9881         * modules/pipe-filter-ii-tests (Makefile.am): Define
9882         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
9883         * modules/pipe-filter-gi-tests (Makefile.am): Define
9884         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
9885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9886
9887 2009-08-12  Bruno Haible  <bruno@clisp.org>
9888
9889         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
9890         gl_GETOPT_SUBSTITUTE before.
9891         (gl_GETOPT): Use it.
9892         * m4/argp.m4 (gl_ARGP): Update.
9893         Reported by Sergey Poznyakoff.
9894
9895         * m4/getopt.m4: Reorder macros.
9896         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
9897         (gl_GETOPT_SUBSTITUTE): Remove macro.
9898
9899 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9900
9901         Minor improvement in gitlog-to-changelog
9902
9903         * build-aux/gitlog-to-changelog: New option `--format' makes
9904         output format string configurable.
9905
9906 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9907
9908         Optimize exclude: use hash tables for non-wildcard patterns.
9909
9910         * lib/exclude.c: Include hash.h and mbuiter.h
9911         (struct exclude_pattern, exclude_segment): New data types.
9912         (struct exclude): Rewrite.
9913         (fnmatch_pattern_has_wildcards): New function.
9914         (new_exclude_segment, free_exclude_segment): New functions.
9915         (excluded_file_pattern_p, excluded_file_name_p): New functions.
9916         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
9917         * lib/exclude.h (is_fnmatch_pattern): New prototype.
9918         * modules/exclude: Depend on hash and mbuiter.
9919
9920         * modules/exclude-tests: New file.
9921         * tests/test-exclude.c: New file.
9922         * tests/test-exclude1.sh: New file.
9923         * tests/test-exclude2.sh: New file.
9924         * tests/test-exclude3.sh: New file.
9925         * tests/test-exclude4.sh: New file.
9926         * tests/test-exclude5.sh: New file.
9927         * tests/test-exclude6.sh: New file.
9928         * tests/test-exclude7.sh: New file.
9929
9930 2009-08-12  Bruno Haible  <bruno@clisp.org>
9931
9932         Ensure that getopt() gets declared by <unistd.h>.
9933         * lib/unistd.in.h: Conditionally include getopt.h.
9934         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
9935         Set GNULIB_UNISTD_H_GETOPT.
9936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9937         GNULIB_UNISTD_H_GETOPT.
9938         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
9939
9940 2009-08-12  Bruno Haible  <bruno@clisp.org>
9941
9942         Clarify logic.
9943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
9944         gl_replace_getopt instead of GETOPT_H.
9945
9946 2009-08-12  Bruno Haible  <bruno@clisp.org>
9947
9948         * m4/getopt.m4: Add comments.
9949
9950 2009-08-12  Bruno Haible  <bruno@clisp.org>
9951
9952         Disable multithread support by default on Cygwin 1.5.x.
9953         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
9954         set gl_use_threads=no if not specified otherwise.
9955
9956 2009-08-11  Bruno Haible  <bruno@clisp.org>
9957
9958         Avoid compilation error on NetBSD 5.0.
9959         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
9960         * tests/test-stdio.c: Likewise.
9961         * tests/test-stdlib.c: Likewise.
9962         * tests/test-string.c: Likewise.
9963         * tests/test-unistd.c: Likewise.
9964         Reported by Greg Troxel <gdt@ir.bbn.com>
9965         at <https://savannah.gnu.org/support/?106973>.
9966
9967 2009-08-11  Bruno Haible  <bruno@clisp.org>
9968
9969         * modules/dup2-tests (Depends-on): Remove close.
9970
9971         Undo 2009-07-19 commit.
9972         * modules/acl-tests (Depends-on): Remove close.
9973         * modules/binary-io-tests (Depends-on): Likewise.
9974         * modules/closein-tests (Depends-on): Likewise.
9975         * modules/flock-tests (Depends-on): Likewise.
9976         * modules/fsync-tests (Depends-on): Likewise.
9977         * modules/lseek-tests (Depends-on): Likewise.
9978         * modules/pipe-tests (Depends-on): Likewise.
9979         * modules/posix_spawn-tests (Depends-on): Likewise.
9980         * modules/posix_spawnp-tests (Depends-on): Likewise.
9981         * modules/stat-time-tests (Depends-on): Likewise.
9982         * modules/yesno-tests (Depends-on): Likewise.
9983
9984 2009-08-10  Bruno Haible  <bruno@clisp.org>
9985
9986         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
9987
9988 2009-08-10  Bruno Haible  <bruno@clisp.org>
9989
9990         Fix a gcc warning.
9991         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
9992
9993 2009-08-10  Bruno Haible  <bruno@clisp.org>
9994
9995         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
9996         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
9997         not only the first time.
9998         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
9999         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10000         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10001         is 1, not only the the first time.
10002
10003 2009-08-10  Bruno Haible  <bruno@clisp.org>
10004
10005         Make it possible to use module 'gethostname' without module 'close'.
10006         * lib/unistd.in.h (close): Evoke a link error only if
10007         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10009         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10010         * modules/unistd (Makefile.am): Substitute
10011         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10012         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10013         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10015         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10016         * modules/sys_ioctl (Makefile.am): Substitute
10017         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10018         * modules/socket (configure.ac): On native Windows, set
10019         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10020         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10021         Reported by Sam Steingold <sds@gnu.org>.
10022
10023 2009-08-10  Bruno Haible  <bruno@clisp.org>
10024
10025         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10026         * modules/ioctl (configure.ac): Likewise.
10027
10028 2009-08-10  Bruno Haible  <bruno@clisp.org>
10029
10030         Avoid collision between gnulib wrapper and libintl wrapper.
10031         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10032         already defined in intl/printf.c.
10033         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10034         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10035
10036 2009-08-09  Bruno Haible  <bruno@clisp.org>
10037
10038         Make <sys/select.h> really self-contained, also on Solaris 10.
10039         * lib/sys_select.in.h: Include <string.h>.
10040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10041         Solaris 10 problem.
10042         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10043         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10044         Reported by Jim Meyering.
10045
10046 2009-08-09  Bruno Haible  <bruno@clisp.org>
10047
10048         Avoid warnings from 'aclocal' that are due to a use of macro name
10049         AM_XGETTEXT_OPTION that is not defined in automake.
10050         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10051         automake.
10052         * modules/error (configure.ac): Likewise.
10053         * modules/propername (configure.ac): Likewise.
10054         * modules/vasprintf (configure.ac): Likewise.
10055         * modules/verror (configure.ac): Likewise.
10056         * modules/xprintf (configure.ac): Likewise.
10057         * modules/xvasprintf (configure.ac): Likewise.
10058
10059 2009-08-08  Bruno Haible  <bruno@clisp.org>
10060
10061         Avoid compilation error in C++ mode.
10062         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10063         Reported by Sam Steingold <sds@gnu.org>.
10064
10065 2009-08-08  Bruno Haible  <bruno@clisp.org>
10066
10067         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10068         for the various Unix platforms.
10069         * doc/posix-headers/limits.texi: Update platforms list regarding
10070         HOST_NAME_MAX.
10071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10072
10073 2009-08-07  Jim Meyering  <meyering@redhat.com>
10074
10075         selinux-at: fix typo in a comment
10076         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10077         Spotted by Paolo Bonzini.
10078
10079         selinux-at: remove redundant m4 code, add documentation
10080         * modules/selinux-at (configure.ac): Remove redundant code.
10081         LIB_SELINUX is already set via the dependent module, selinux-h.
10082         (Include): Add quotes around selinux-at.h.
10083         * lib/selinux-at.h: Add documentation.
10084         Reported by Bruno Haible in
10085         http://marc.info/?l=gnulib-bug&m=124958988300749
10086
10087 2009-08-07  Bruno Haible  <bruno@clisp.org>
10088
10089         Avoid link error on MacOS X 10.3 and 10.4.
10090         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10091         on non-ELF systems.
10092         * lib/argp-pv.c (argp_program_version): Likewise.
10093         Reported by Simon Josefsson.
10094
10095 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10096
10097         * tests/test-version-etc.sh: Use $EXEEXT.
10098
10099 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10100
10101         update-copyright: update documentation to point to maint.mk
10102         * build-aux/update-copyright: Here.
10103
10104 2009-08-06  Jim Meyering  <meyering@redhat.com>
10105
10106         maint.mk: support update-copyright-local
10107         * top/maint.mk (update-copyright-local): Define place-holder.
10108         (update-copyright): Depend on $(update-copyright-local).
10109
10110 2009-08-06  Jim Meyering  <meyering@redhat.com>
10111
10112         selinux-at: new module
10113         Initially written for coreutils, this module will soon be
10114         used by findutils, too.
10115         * MODULES.html.sh [Misc]: Add selinux-at.
10116         * lib/selinux-at.h: New file, from coreutils.
10117         * lib/selinux-at.c: Likewise.
10118         * modules/selinux-at: Likewise.
10119         (License): Change from LGPL to GPL, since it depends
10120         on the GPL'd openat module.
10121
10122         doc: update README
10123         * README: Remove references to cogito.
10124         Remove cvs-repo-updating instructions from 2007.
10125         Don't imply that CVS is better if you have limited disk space.
10126
10127 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10128
10129         update-copyright: support C-style comments
10130         * build-aux/update-copyright: Implement and document.
10131         * tests/test-update-copyright.sh: Test.
10132
10133 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10134
10135         update-copyright: support omitted "(C)"
10136         * build-aux/update-copyright: Implement and document.  Also,
10137         allow variable whitespace before "(C)".
10138         * tests/test-update-copyright.sh: Test.
10139
10140 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10141
10142         update-copyright: don't trip on non-FSF copyright statements
10143         * build-aux/update-copyright: Fix so that the first correctly
10144         formatted FSF copyright statement is recognized no matter what
10145         appears before it.  Update documentation.
10146         * tests/test-update-copyright.sh: Test that.
10147
10148 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10149
10150         update-copyright: clean up code a little
10151         * build-aux/update-copyright: Append "_re" to the name of any
10152         variable holding a regular expression.
10153         Replace "old" and "new" with "stmt" in variable names.
10154         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10155         handled correctly.
10156         Format code more consistently.
10157
10158 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10159
10160         update-copyright-tests: improve portability
10161         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10162         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10163
10164 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10165
10166         update-copyright: support @copyright{} and &copy;
10167         * build-aux/update-copyright: Implement and document.
10168         * tests/test-update-copyright.sh: Test.
10169
10170 2009-08-04  Jim Meyering  <meyering@redhat.com>
10171
10172         update-copyright-tests: correctly test EOL=\r\n handling
10173         * tests/test-update-copyright.sh: Put \r at the end of some lines
10174         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10175
10176         maint.mk: make update-copyright exclusion list more configurable
10177         * top/maint.mk (update-copyright): Default to excluding COPYING,
10178         but allow an override, in case someone does want to update that file.
10179
10180         maint.mk: don't update copyright date in COPYING
10181         * top/maint.mk (update-copyright): Exclude COPYING.
10182
10183         maint.mk: add a copyright-updating rule
10184         * top/maint.mk (update-copyright): New rule.
10185         Derived from coreutils/Makefile.am.
10186
10187         update-copyright: rename some variables
10188         * build-aux/update-copyright: Rename a few variables for clarity.
10189         Tweak syntax.  List Joel E. Denny as coauthor.
10190
10191 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10192
10193         update-copyright: fix bug for 2-digit last year and add tests
10194         * build-aux/update-copyright: Fix bug.
10195         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10196         specified.
10197         * modules/update-copyright-tests: New
10198         * tests/test-update-copyright.sh: New.
10199
10200 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10201
10202         update-copyright: handle leading tabs in line prefix
10203         * build-aux/update-copyright: Count leading tabs as 8 spaces
10204         when computing margin.  This helps with the formatting of
10205         ChangeLogs, for example.
10206         Fix documentation a little.
10207
10208 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10209
10210         update-copyright: support EOL=\r\n
10211         * build-aux/update-copyright: Implement that.
10212
10213 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10214
10215         update-copyright: automatically format copyright statements
10216         * build-aux/update-copyright: Implement that.
10217         Also, be a little more predictable and safer by always failing
10218         when the full copyright format is not perfectly recognized as an
10219         unbroken whole.  Discussed at
10220         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10221         Rewrite documentation.
10222
10223 2009-08-03  Bruno Haible  <bruno@clisp.org>
10224
10225         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10226
10227 2009-08-02  Bruno Haible  <bruno@clisp.org>
10228
10229         Tests for module 'uname'.
10230         * modules/uname-tests: New file.
10231         * tests/test-uname.c: New file.
10232
10233         New module 'uname'.
10234         * lib/uname.c: New file.
10235         * m4/uname.m4: New file.
10236         * modules/uname: New file.
10237         * doc/posix-functions/uname.texi: Mention the new module.
10238
10239 2009-08-02  Bruno Haible  <bruno@clisp.org>
10240
10241         Tests for module 'sys_utsname'.
10242         * modules/sys_utsname-tests: New file.
10243         * tests/test-sys_utsname.c: New file.
10244
10245         New module 'sys_utsname'.
10246         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10247         * m4/sys_utsname_h.m4: New file.
10248         * modules/sys_utsname: New file.
10249         * doc/posix-headers/sys_utsname.texi: Mention the new module.
10250
10251 2009-08-02  Bruno Haible  <bruno@clisp.org>
10252
10253         Implicitly initialize the sockets library.
10254         * lib/gethostname.c: Include sockets.h.
10255         (rpl_gethostname): Invoke gl_sockets_startup.
10256         * lib/socket.c: Include sockets.h.
10257         (rpl_socket): Invoke gl_sockets_startup.
10258         * modules/gethostname (Depends-on): Add sockets.
10259         * modules/socket (Depends-on): Likewise.
10260         * tests/test-poll.c: Don't include sockets.h.
10261         (main): Don't invoke gl_sockets_startup.
10262         * tests/test-select.c: Don't include sockets.h.
10263         (main): Don't invoke gl_sockets_startup.
10264
10265 2009-08-02  Bruno Haible  <bruno@clisp.org>
10266
10267         Allow multiple calls to gl_sockets_startup.
10268         * lib/sockets.c (initialized_sockets_version): New variable.
10269         (gl_sockets_startup): Do nothing if already called for this or a higher
10270         version.
10271         (gl_sockets_cleanup): Reset initialized_sockets_version.
10272
10273 2009-08-03  Simon Josefsson  <simon@josefsson.org>
10274
10275         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
10276         different project/version.
10277
10278 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10279             Bruno Haible  <bruno@clisp.org>
10280
10281         Tests for module 'pipe-filter-gi'.
10282         * modules/pipe-filter-gi-tests: New file.
10283         * tests/test-pipe-filter-gi1.sh: New file.
10284         * tests/test-pipe-filter-gi1.c: New file.
10285         * tests/test-pipe-filter-gi2.sh: New file.
10286         * tests/test-pipe-filter-gi2-main.c: New file.
10287         * tests/test-pipe-filter-gi2-child.c: New file.
10288
10289         New module 'pipe-filter-gi'.
10290         * lib/pipe-filter-gi.c: New file.
10291         * modules/pipe-filter-gi: New file.
10292
10293 2009-08-02  Bruno Haible  <bruno@clisp.org>
10294             Paolo Bonzini  <bonzini@gnu.org>
10295
10296         Tests for module 'pipe-filter-ii'.
10297         * modules/pipe-filter-ii-tests: New file.
10298         * tests/test-pipe-filter-ii1.sh: New file.
10299         * tests/test-pipe-filter-ii1.c: New file.
10300         * tests/test-pipe-filter-ii2.sh: New file.
10301         * tests/test-pipe-filter-ii2-main.c: New file.
10302         * tests/test-pipe-filter-ii2-child.c: New file.
10303
10304         New module 'pipe-filter-ii'.
10305         * lib/pipe-filter.h: New file.
10306         * lib/pipe-filter-ii.c: New file.
10307         * lib/pipe-filter-aux.h: New file.
10308         * modules/pipe-filter-ii: New file.
10309
10310 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10311
10312         * lib/gc-libgcrypt.c: Change copyright to FSF.
10313         * lib/gc-gnulib.c: Likewise.
10314
10315 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
10316
10317         * lib/gethostname.c: Include limits.h.
10318
10319 2009-08-02  Simon Josefsson  <simon@josefsson.org>
10320             Bruno Haible  <bruno@clisp.org>
10321
10322         Ensure HOST_NAME_MAX as part of the gethostname module.
10323         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10324         define also HOST_NAME_MAX.
10325         * tests/test-gethostname.c: Include <limits.h>.
10326         (main): Check also HOST_NAME_MAX.
10327         * doc/posix-headers/limits.texi: Document the mingw problem.
10328
10329 2009-08-02  Bruno Haible  <bruno@clisp.org>
10330
10331         * lib/gethostname.c (gethostname): Fix handling of large len argument.
10332         Add comments.
10333
10334 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10335
10336         * lib/gethostname.c: Add Windows wrapper.
10337         * m4/gethostname.m4: Look for gethostname in -lws2_32.
10338         * modules/gethostname: Depend on sys_socket & errno, for also
10339         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
10340         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10341
10342 2009-07-31  Jim Meyering  <meyering@redhat.com>
10343
10344         getloadavg: fix symbol name in comment
10345         * lib/getloadavg.c: Correct a typo I introduced when adding
10346         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10347         Matt Kraai spotted the problem.
10348
10349 2009-07-29  Matt Kraai  <mkraai@beckman.com>
10350
10351         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10352         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10353         code also if ! defined N_NAME_POINTER.
10354         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10355         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10356         but the n_name member is a 12-byte array.
10357
10358 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
10359
10360         update-copyright: generalize comment handling
10361         * build-aux/update-copyright: Handle copyright statements
10362         within more comment styles.
10363         Document usage.
10364         Report any file with an external copyright holder or parse failure.
10365
10366 2009-07-29  Jim Meyering  <meyering@redhat.com>
10367
10368         mktime: correct setting of REPLACE_MKTIME
10369         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10370
10371         update-copyright: new module
10372         * modules/update-copyright: New file.
10373         * build-aux/update-copyright: New file.
10374         * MODULES.html.sh (maint+release support): Add update-copyright.
10375
10376 2009-07-27  Bruno Haible  <bruno@clisp.org>
10377
10378         Fix compilation error when <ctime> is used and mktime is replaced.
10379         * lib/time.in.h (mktime): New declaration.
10380         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10381         REPLACE_MKTIME instead of defining mktime in config.h.
10382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10383         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10384         Reported by Ross McFarland <rwmcfa1@neces.com>.
10385
10386 2009-07-27  Bruno Haible  <bruno@clisp.org>
10387
10388         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10389         Reported by Matt Kraai <mkraai@beckman.com>.
10390
10391 2009-07-25  Jim Meyering  <meyering@redhat.com>
10392
10393         maint.mk: avoid warnings about missing files
10394         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10395         diagnostic when .prev-version does not exist.
10396         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10397         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10398         nonexistent cfg.mk.
10399         Suggestions from Simon Josefsson.
10400
10401 2009-07-25  Bruno Haible  <bruno@clisp.org>
10402
10403         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10404         defined as macros. Needed on QNX 6.4.1.
10405         Reported by Matt Kraai <mkraai@beckman.com>.
10406
10407 2009-07-23  Jim Meyering  <meyering@redhat.com>
10408
10409         maint.mk: invoke "make dist" with a working value of XZ_OPT
10410         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10411
10412 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
10413
10414         Make fseeko.c compile on QNX.
10415         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10416
10417 2009-07-22  Peter Simons  <simons@cryp.to>
10418
10419         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10420         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10421         * lib/md4.h: Likewise.
10422         * lib/md5.h: Likewise.
10423         * lib/sha1.h: Likewise.
10424         * lib/sha256.h: Likewise.
10425         * lib/sha512.h: Likewise.
10426
10427         tests-sha1: don't assign literal string to 'char *' variable
10428         * tests/test-sha1.c (main): Declare locals with "const" to match
10429         attributes of the right hand side.
10430
10431 2009-07-21  Eric Blake  <ebb9@byu.net>
10432
10433         dup2: fix more mingw problems
10434         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10435         fd to itself.
10436         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10437         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10438         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10439         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10440         care of mingw bugs.
10441
10442 2009-07-21  Jim Meyering  <meyering@redhat.com>
10443
10444         vc-list-files: avoid failure when /bin/sh is dash
10445         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10446         On some Debian based systems, /bin/sh is a symlink to dash, and running
10447         this command would omit the "/" following each 'tests' prefix:
10448           dash -x build-aux/vc-list-files -C . tests
10449         That is because bash and dash work differently:
10450           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10451           bash ok
10452           dash odd
10453
10454 2009-07-21  Eric Blake  <ebb9@byu.net>
10455
10456         dup2-tests: test previous patch
10457         * modules/dup2-tests: New file.
10458         * tests/test-dup2.c: Likewise.
10459         * tests/test-open.c (main): Avoid unspecified behavior.
10460         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10461         test.
10462
10463         dup2: work around mingw and cygwin 1.5 bug
10464         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10466         * modules/unistd (Makefile.am): Substitute it.
10467         * lib/unistd.in.h (dup2): Declare the replacement.
10468         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10469         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10470         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10471         * modules/execute (Depends-on): Add dup2.
10472         * modules/fseterr (Depends-on): Likewise.
10473         * modules/pipe (Depends-on): Likewise.
10474         * modules/posix_spawn-internal (Depends-on): Likewise.
10475
10476 2009-07-21  Bruno Haible  <bruno@clisp.org>
10477
10478         * modules/.gitattributes: New file.
10479
10480 2009-07-20  Bruno Haible  <bruno@clisp.org>
10481
10482         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10483         (main): Use it.
10484
10485 2009-07-20  Eric Blake  <ebb9@byu.net>
10486
10487         test-pipe: make a bit more robust.
10488         * tests/test-pipe.c (myerr): Allow error messages regardless of
10489         what we do to stderr.
10490         (test_pipe): Rearrange to avoid deadlock.
10491         (child_main): Try a larger read, to ensure we avoided deadlock.
10492         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10493         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10494         if misused.
10495
10496 2009-07-19  Jim Meyering  <meyering@redhat.com>
10497
10498         fts: avoid false-positive cycle-detection
10499         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10500         for each new command line argument.
10501
10502 2009-07-19  Bruno Haible  <bruno@clisp.org>
10503
10504         Fix build error on mingw with the modules sys_select and unistd.
10505         * modules/acl-tests (Depends-on): Add close.
10506         * modules/binary-io-tests (Depends-on): Likewise.
10507         * modules/closein-tests (Depends-on): Likewise.
10508         * modules/flock-tests (Depends-on): Likewise.
10509         * modules/fsync-tests (Depends-on): Likewise.
10510         * modules/lseek-tests (Depends-on): Likewise.
10511         * modules/pipe-tests (Depends-on): Likewise.
10512         * modules/posix_spawn-tests (Depends-on): Likewise.
10513         * modules/posix_spawnp-tests (Depends-on): Likewise.
10514         * modules/stat-time-tests (Depends-on): Likewise.
10515         * modules/yesno-tests (Depends-on): Likewise.
10516
10517 2009-07-19  Bruno Haible  <bruno@clisp.org>
10518
10519         Unify conditionals.
10520         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
10521         macros, not at the compiler macros.
10522         * lib/pipe.c: Likewise.
10523         * lib/execute.c: Likewise.
10524         * lib/spawni.c: Likewise.
10525
10526 2009-07-19  Bruno Haible  <bruno@clisp.org>
10527
10528         Fix handling of closed stdin/stdout/stderr on mingw.
10529         * lib/w32spawn.h: Include unistd.h.
10530         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
10531         file descriptor with O_NOINHERIT flag.
10532         (fd_safer_noinherit): New function, based on fd-safer.c.
10533         (dup_safer_noinherit): New function, based on dup-safer.c.
10534         (undup_safer_noinherit): New function.
10535         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
10536         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
10537         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
10538         instead of fd_safer.
10539         * tests/test-pipe.c: Include <windows.h>.
10540         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
10541
10542         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
10543         from main.
10544         (test_pipe): Pass an extra argument for disambiguation.
10545         (main): Invoke parent_main or child_main.
10546
10547         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
10548         consistently.
10549
10550 2009-07-18  Eric Blake  <ebb9@byu.net>
10551
10552         test-pipe: fix mingw build
10553         * tests/test-pipe.c (main): Avoid fcntl on mingw.
10554
10555 2009-07-18  Bruno Haible  <bruno@clisp.org>
10556
10557         * modules/pipe-tests (Makefile.am): Fix typo.
10558
10559 2009-07-18  Eric Blake  <ebb9@byu.net>
10560
10561         error: fix mingw build
10562         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
10563         Reported by Bruno Haible.
10564
10565         error: avoid undefined use of stdout
10566         * lib/error.c (error, error_at_line): Check that fd 1 is open
10567         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
10568         is handling faults and the close_stdout module wants to report the
10569         detection of closed stdout as an error.
10570
10571 2009-07-17  Eric Blake  <ebb9@byu.net>
10572
10573         pipe: be robust in face of closed fds
10574         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
10575         should cause child to misbehave.
10576         * modules/pipe-tests: New module.
10577         * tests/test-pipe.c: New file.
10578         * tests/test-pipe.sh: New file.
10579         Reported by Akim Demaille.
10580
10581 2009-07-14  Bruno Haible  <bruno@clisp.org>
10582
10583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
10584         Reported by anonymous kc.
10585
10586 2009-07-07  Jim Meyering  <meyering@redhat.com>
10587
10588         maint.mk: don't look for translatable strings in *.m4 or *.mk
10589         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
10590         when searching for translatable strings.
10591
10592 2009-07-05  Jim Meyering  <meyering@redhat.com>
10593
10594         remove superfluous parentheses in STREQ definition
10595         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
10596         * lib/getugroups.c (STREQ): Likewise.
10597         * lib/fnmatch.c (STREQ): Likewise.
10598         Spotted by Bruno Haible.
10599
10600 2009-07-04  Jim Meyering  <meyering@redhat.com>
10601
10602         argv-iter: new module
10603         * MODULES.html.sh: Add argv-iter.
10604         * lib/argv-iter.c, lib/argv-iter.h: New files.
10605         * modules/argv-iter: New file.
10606         * modules/argv-iter-tests: New file.
10607         * tests/test-argv-iter.c: Test it.
10608
10609 2009-07-04  Bruno Haible  <bruno@clisp.org>
10610
10611         Fix assertion.
10612         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
10613         contains more exact copies of a given entry than file2, leave the extra
10614         copies unpaired rather than aborting.
10615         Reported by Eric Blake.
10616
10617 2009-07-02  Bruno Haible  <bruno@clisp.org>
10618
10619         Speedup git-merge-changelog for git cherry-pick.
10620         * lib/git-merge-changelog.c (struct entries_mapping): New type.
10621         (entries_mapping_get): New function, extracted from compute_mapping.
10622         (entries_mapping_reverse_get): New function.
10623         (compute_mapping): Add a 'full' argument. Return the result in a
10624         'struct entries_mapping'.
10625         (main): Update. Access the mappings through entries_mapping_get.
10626         Reported by Eric Blake.
10627
10628 2009-07-02  Bruno Haible  <bruno@clisp.org>
10629
10630         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
10631         best_i.
10632
10633 2009-07-02  Bruno Haible  <bruno@clisp.org>
10634
10635         Speed up approximate search for matching ChangeLog entries.
10636         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
10637         argument. Call fstrcmp_bounded instead of fstrcmp.
10638         (compute_mapping, try_split_merged_entry, main): Update callers.
10639
10640 2009-07-02  Bruno Haible  <bruno@clisp.org>
10641
10642         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
10643
10644 2009-06-30  Bruno Haible  <bruno@clisp.org>
10645
10646         Reduce the number of uc_is_cased calls.
10647         * lib/unicase.h (casing_suffix_context_t): Add
10648         'first_char_except_ignorable' field.
10649         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
10650         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
10651         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
10652         Update initializer.
10653         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
10654         case-ignorable characters.
10655         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
10656         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
10657         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
10658         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
10659         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
10660
10661 2009-06-30  Bruno Haible  <bruno@clisp.org>
10662
10663         Tests for module 'unicase/ignorable'.
10664         * modules/unicase/ignorable-tests: New file.
10665         * tests/unicase/test-ignorable.c: New file, generated by
10666         gen-uni-tables.
10667
10668         Tests for module 'unicase/cased'.
10669         * modules/unicase/cased-tests: New file.
10670         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
10671         * tests/unicase/test-predicate-part1.h: New file, derived from
10672         tests/unictype/test-predicate-part1.h.
10673         * tests/unicase/test-predicate-part2.h: New file, same as
10674         tests/unictype/test-predicate-part2.h.
10675
10676         Fix evaluation of "Before C" condition of FINAL_SIGMA.
10677         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
10678         (output_casing_properties): New function.
10679         (main): Call it.
10680         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
10681         * lib/unicase/cased.c: Include unictype/bitmap.h.
10682         (uc_is_cased): Define through a bitmap lookup.
10683         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
10684         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
10685         (uc_is_case_ignorable): Define through a bitmap lookup.
10686         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
10687         lib/unictype/bitmap.h.
10688         (Depends-on): Add inline. Clean up.
10689         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
10690         lib/unictype/bitmap.h.
10691         (Depends-on): Add inline. Clean up.
10692         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
10693         recognition.
10694         * tests/unicase/test-u16-tolower.c (main): Likewise.
10695         * tests/unicase/test-u32-tolower.c (main): Likewise.
10696
10697 2009-06-30  Bruno Haible  <bruno@clisp.org>
10698
10699         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
10700         * lib/unicase/u16-casemap.c: Likewise.
10701         * lib/unicase/u32-casemap.c: Likewise.
10702
10703 2009-06-29  Bruno Haible  <bruno@clisp.org>
10704
10705         Define u32_casefold as a wrapper around u32_ct_casefold.
10706         * lib/unicase/u32-casefold.c: Update.
10707         * modules/unicase/u32-casefold (Depends-on): Add
10708         unicase/u32-ct-casefold, unicase/empty-prefix-context,
10709         unicase/empty-suffix-context. Clean up.
10710
10711         Define u16_casefold as a wrapper around u16_ct_casefold.
10712         * lib/unicase/u16-casefold.c: Update.
10713         * modules/unicase/u16-casefold (Depends-on): Add
10714         unicase/u16-ct-casefold, unicase/empty-prefix-context,
10715         unicase/empty-suffix-context. Clean up.
10716
10717         Define u8_casefold as a wrapper around u8_ct_casefold.
10718         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
10719         * lib/unicase/u8-casefold.c: Update.
10720         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
10721         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10722
10723         Define u32_totitle as a wrapper around u32_ct_totitle.
10724         * lib/unicase/u32-totitle.c: Update.
10725         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
10726         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10727
10728         Define u16_totitle as a wrapper around u16_ct_totitle.
10729         * lib/unicase/u16-totitle.c: Update.
10730         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
10731         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10732
10733         Define u8_totitle as a wrapper around u8_ct_totitle.
10734         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
10735         functions.
10736         (FUNC): Delegate to U_CT_TOTITLE.
10737         * lib/unicase/u8-totitle.c: Update.
10738         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
10739         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
10740
10741         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
10742         invocation.
10743         * modules/unicase/u32-tolower (Depends-on): Add
10744         unicase/empty-prefix-context, unicase/empty-suffix-context.
10745
10746         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
10747         invocation.
10748         * modules/unicase/u16-tolower (Depends-on): Add
10749         unicase/empty-prefix-context, unicase/empty-suffix-context.
10750
10751         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
10752         * modules/unicase/u8-tolower (Depends-on): Add
10753         unicase/empty-prefix-context, unicase/empty-suffix-context.
10754
10755         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
10756         invocation.
10757         * modules/unicase/u32-toupper (Depends-on): Add
10758         unicase/empty-prefix-context, unicase/empty-suffix-context.
10759
10760         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
10761         invocation.
10762         * modules/unicase/u16-toupper (Depends-on): Add
10763         unicase/empty-prefix-context, unicase/empty-suffix-context.
10764
10765         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
10766         * modules/unicase/u8-toupper (Depends-on): Add
10767         unicase/empty-prefix-context, unicase/empty-suffix-context.
10768
10769         New module 'unicase/u32-ct-casefold'.
10770         * lib/unicase/u32-ct-casefold.c: New file.
10771         * modules/unicase/u32-ct-casefold: New file.
10772
10773         New module 'unicase/u16-ct-casefold'.
10774         * lib/unicase/u16-ct-casefold.c: New file.
10775         * modules/unicase/u16-ct-casefold: New file.
10776
10777         New module 'unicase/u8-ct-casefold'.
10778         * lib/unicase/u8-ct-casefold.c: New file.
10779         * lib/unicase/u-ct-casefold.h: New file, derived from
10780         lib/unicase/u-casefold.h.
10781         * modules/unicase/u8-ct-casefold: New file.
10782
10783         New module 'unicase/u32-ct-totitle'.
10784         * lib/unicase/u32-ct-totitle.c: New file.
10785         * modules/unicase/u32-ct-totitle: New file.
10786
10787         New module 'unicase/u16-ct-totitle'.
10788         * lib/unicase/u16-ct-totitle.c: New file.
10789         * modules/unicase/u16-ct-totitle: New file.
10790
10791         New module 'unicase/u8-ct-totitle'.
10792         * lib/unicase/u8-ct-totitle.c: New file.
10793         * lib/unicase/u-ct-totitle.h: New file, derived from
10794         lib/unicase/u-totitle.h.
10795         * modules/unicase/u8-ct-totitle: New file.
10796
10797         New module 'unicase/u32-ct-tolower'.
10798         * lib/unicase/u32-ct-tolower.c: New file.
10799         * modules/unicase/u32-ct-tolower: New file.
10800
10801         New module 'unicase/u16-ct-tolower'.
10802         * lib/unicase/u16-ct-tolower.c: New file.
10803         * modules/unicase/u16-ct-tolower: New file.
10804
10805         New module 'unicase/u8-ct-tolower'.
10806         * lib/unicase/u8-ct-tolower.c: New file.
10807         * modules/unicase/u8-ct-tolower: New file.
10808
10809         New module 'unicase/u32-ct-toupper'.
10810         * lib/unicase/u32-ct-toupper.c: New file.
10811         * modules/unicase/u32-ct-toupper: New file.
10812
10813         New module 'unicase/u16-ct-toupper'.
10814         * lib/unicase/u16-ct-toupper.c: New file.
10815         * modules/unicase/u16-ct-toupper: New file.
10816
10817         New module 'unicase/u8-ct-toupper'.
10818         * lib/unicase/u8-ct-toupper.c: New file.
10819         * modules/unicase/u8-ct-toupper: New file.
10820
10821         Add context arguments to u*_casemap functions.
10822         * lib/unicase/unicasemap.h: Include unicase.h.
10823         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
10824         suffix_context arguments.
10825         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
10826         functions.
10827         (FUNC): Add prefix_context and suffix_context arguments. Use
10828         uc_is_cased and uc_is_case_ignorable.
10829         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
10830         * lib/unicase/u16-casemap.c: Likewise.
10831         * lib/unicase/u32-casemap.c: Likewise.
10832         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
10833         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10834         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
10835         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10836         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
10837         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
10838
10839         New module 'unicase/u32-suffix-context'.
10840         * lib/unicase/u32-suffix-context.c: New file.
10841         * modules/unicase/u32-suffix-context: New file.
10842
10843         New module 'unicase/u16-suffix-context'.
10844         * lib/unicase/u16-suffix-context.c: New file.
10845         * modules/unicase/u16-suffix-context: New file.
10846
10847         New module 'unicase/u8-suffix-context'.
10848         * lib/unicase/u8-suffix-context.c: New file.
10849         * lib/unicase/u-suffix-context.h: New file.
10850         * modules/unicase/u8-suffix-context: New file.
10851
10852         New module 'unicase/empty-suffix-context'.
10853         * lib/unicase/empty-suffix-context.c: New file.
10854         * modules/unicase/empty-suffix-context: New file.
10855
10856         New module 'unicase/u32-prefix-context'.
10857         * lib/unicase/u32-prefix-context.c: New file.
10858         * modules/unicase/u32-prefix-context: New file.
10859
10860         New module 'unicase/u16-prefix-context'.
10861         * lib/unicase/u16-prefix-context.c: New file.
10862         * modules/unicase/u16-prefix-context: New file.
10863
10864         New module 'unicase/u8-prefix-context'.
10865         * lib/unicase/u8-prefix-context.c: New file.
10866         * lib/unicase/u-prefix-context.h: New file.
10867         * lib/unicase/context.h: New file.
10868         * modules/unicase/u8-prefix-context: New file.
10869
10870         New module 'unicase/empty-prefix-context'.
10871         * lib/unicase/empty-prefix-context.c: New file.
10872         * modules/unicase/empty-prefix-context: New file.
10873
10874         New module 'unicase/ignorable'.
10875         * lib/unicase/ignorable.c: New file.
10876         * modules/unicase/ignorable: New file.
10877
10878         New module 'unicase/cased'.
10879         * lib/unicase/caseprop.h: New file.
10880         * lib/unicase/cased.c: New file.
10881         * modules/unicase/cased: New file.
10882
10883         New functions for case mapping of substrings.
10884         * lib/unicase.h (casing_prefix_context_t): New type.
10885         (unicase_empty_prefix_context): New variable.
10886         (u8_casing_prefix_context, u16_casing_prefix_context,
10887         u32_casing_prefix_context, u8_casing_prefixes_context,
10888         u16_casing_prefixes_context, u32_casing_prefixes_context): New
10889         declarations.
10890         (casing_suffix_context_t): New type.
10891         (unicase_empty_suffix_context): New variable.
10892         (u8_casing_suffix_context, u16_casing_suffix_context,
10893         u32_casing_suffix_context, u8_casing_suffixes_context,
10894         u16_casing_suffixes_context, u32_casing_suffixes_context,
10895         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
10896         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
10897         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
10898         declarations.
10899
10900 2009-06-28  Jim Meyering  <meyering@redhat.com>
10901
10902         boostrap: indent only with spaces
10903         * build-aux/bootstrap: Indent only with spaces, never TABs.
10904
10905         bootstrap: split long lines
10906         * build-aux/bootstrap: Keep line length < 80.
10907
10908         bootstrap: sync from coreutils
10909         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
10910         just as autoreconf does.  Verify a list of prerequisite
10911         package-name,version-number pairs if defined in bootstrap.conf.
10912         Refer to README-prereq, if prerequisites are not satisfied.
10913
10914 2009-06-27  Eric Blake  <ebb9@byu.net>
10915
10916         tests: add test for bogus NULL definition
10917         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
10918         * tests/test-stdlib.c: Likewise.
10919         * tests/test-string.c: Likewise.
10920         * tests/test-locale.c: Likewise.
10921         * tests/test-unistd.c: Likewise.
10922         * modules/stdio-tests (Depends-on): Add verify.
10923         * modules/stdlib-tests (Depends-on): Likewise.
10924         * modules/string-tests (Depends-on): Likewise.
10925         * modules/locale-tests (Depends-on): Likewise.
10926         * modules/unistd-tests (Depends-on): Likewise.
10927
10928 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10929
10930         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
10931         self-explaining comment.
10932         * m4/selinux-selinux-h: Update serial.
10933         (gl_LIBSELINUX): New macro, adding a warning for missing development
10934         packages to code extracted from...
10935         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
10936         Add warning for missing development packages here, too.
10937
10938 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
10939
10940         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
10941
10942 2009-06-25  Eric Blake  <ebb9@byu.net>
10943
10944         version-etc: fix regression
10945         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
10946         gcc.
10947         (version_etc): Use it, to catch bugs with trailing NULL.
10948         * lib/version-etc.c (version_etc_arn): Delete unused argument.
10949         (version_etc_va): Fix logic bug.
10950         * modules/version-etc-tests: Add test.
10951         * tests/test-version-etc.c: New file.
10952         * tests/test-version-etc.sh: Likewise.
10953
10954 2009-06-25  Sam Steingold  <sds@gnu.org>
10955
10956         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
10957         mbtowc declaration.
10958
10959 2009-06-25  Eric Blake  <ebb9@byu.net>
10960
10961         fpurge: migrate into <stdio.h>
10962         * lib/fpurge.h: Delete...
10963         * lib/stdio.in.h (fpurge): ...and declare here, instead.
10964         * lib/fpurge.c (fpurge): Change declaring header.
10965         * modules/fpurge (Files): Drop deleted file.
10966         (Depends-on): Add stdio.
10967         (configure.ac): Set witness.
10968         * modules/stdio (Makefile.am): Support fpurge macros.
10969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
10971         * lib/fflush.c: Update client.
10972         * tests/test-fpurge.c: Likewise.
10973         * NEWS: Mention the change.
10974
10975 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10976
10977         * lib/argp-version-etc.c (program_authors): Add const
10978         qualifier.
10979         * lib/version-etc.c: Fix typos in the comments.
10980         * modules/argp-version-etc: Depends on version-etc.
10981
10982 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10983
10984         argp-version-etc: new module.
10985
10986         * lib/argp-version-etc.c: New file.
10987         * lib/argp-version-etc.h: New file.
10988         * modules/argp-version-etc: New file.
10989         * modules/argp-version-etc-tests: New file.
10990         * tests/test-argp-version-etc.c: New test.
10991         * tests/test-argp-version-etc-1.sh: New test.
10992
10993 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
10994
10995         Provide additional interfaces and documentation for version-etc
10996         module.
10997
10998         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
10999         interfaces.
11000         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11001         prototypes.
11002
11003 2009-06-24  Bruno Haible  <bruno@clisp.org>
11004
11005         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11006         HAVE_LIB${NAME} macro.
11007         Reported by Sam Steingold <sds@gnu.org>.
11008
11009 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11010
11011         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11012         needed.
11013
11014 2009-06-21  Bruno Haible  <bruno@clisp.org>
11015
11016         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11017         work.
11018         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11019         together with LIB${NAME}, LTLIB${NAME}.
11020         Reported by Sam Steingold <sds@gnu.org>.
11021
11022 2009-06-20  Jim Meyering  <meyering@redhat.com>
11023
11024         tests: make sc_require_test_exit_idiom more generic
11025         * top/maint.mk (Exit_witness_file): New overridable variable.
11026         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11027         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11028
11029 2009-06-19  Jim Meyering  <meyering@redhat.com>
11030
11031         hash: reverse order of src/dst parameters in an internal interface
11032         * lib/hash.c (transfer_entries): Reverse order of parameters to
11033         put DST before SRC.  Adjust callers.
11034
11035         tests: test-hash: avoid wholesale duplication
11036         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11037         Instead, use a loop and add a single conditional.
11038
11039         tests: test-hash: allow seed selection via a command line argument
11040         * tests/test-hash.c (get_seed): New function.
11041         (main): Use it.
11042
11043 2009-06-19  Eric Blake  <ebb9@byu.net>
11044
11045         hash: avoid memory leak on allocation failure
11046         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11047         failure.  Factor repeated algorithm...
11048         (transfer_entries): ...into new helper routine.
11049         (hash_delete): React to hash_rehash return value.
11050
11051         hash: reduce memory pressure in hash_rehash no-op case
11052         * lib/hash.c (next_prime): Avoid overflow.
11053         (hash_initialize): Factor bucket size computation...
11054         (compute_bucket_size): ...into new helper function.
11055         (hash_rehash): Use new function and open coding to reduce memory
11056         pressure, and avoid a memory leak in USE_OBSTACK code.
11057         Reported by Jim Meyering.
11058
11059 2009-06-18  Eric Blake  <ebb9@byu.net>
11060
11061         hash: make rotation more obvious
11062         * modules/hash (Depends-on): Add bitrotate and stdint.
11063         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11064         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11065         (SIZE_MAX): Rely on headers for definition.
11066         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11067         (raw_hasher): Use rotr_sz.
11068         Suggested by Jim Meyering.
11069
11070         hash: fix memory leak in last patch
11071         * lib/hash.c (hash_rehash): Avoid memory leak.
11072
11073         hash: avoid no-op rehashing
11074         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11075
11076         hash: provide default callback functions
11077         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11078         (hash_initialize): Use them as defaults.
11079         * tests/test-hash.c (main): Test this.
11080
11081         hash: minor optimization
11082         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11083         when possible.
11084         (hash_initialize): Document this promise.
11085         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11086         * tests/test-hash.c (hash_compare_strings): Test this.
11087
11088 2009-06-18  Bruno Haible  <bruno@clisp.org>
11089
11090         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11091         going to be replaced anyway.
11092
11093 2009-06-18  Bruno Haible  <bruno@clisp.org>
11094
11095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11096         in one place.
11097         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11098         be replaced anyway.
11099
11100 2009-06-18  Eric Blake  <ebb9@byu.net>
11101
11102         hash: check for resize before insertion
11103         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11104         threshold before insertion, so that a pathological hash_rehash
11105         that fills every bucket can still trigger another rehash.
11106
11107 2009-06-18  Jim Meyering  <meyering@redhat.com>
11108
11109         hash-tests: add a loop around the small tests
11110         * tests/test-hash.c (main): Repeat small tests with selected
11111         small initial table sizes.
11112
11113 2009-06-17  Eric Blake  <ebb9@byu.net>
11114
11115         hash: minor cleanups
11116         * lib/hash.h (hash_entry): Make opaque, by moving...
11117         * lib/hash.c (hash_entry): ...here.
11118         (hash_insert): Clarify restrictions on what can be inserted.
11119         (hash_get_next): Clarify when it is safe to remove an element
11120         during traversal.
11121         (check_tuning): Skip verification when tuning is known safe.
11122         (hash_initialize): Clarify restrictions on tuning.
11123
11124 2009-06-17  Jim Meyering  <jim@meyering.net>
11125         and Eric Blake  <ebb9@byu.net>
11126
11127         hash-tests: new module
11128         * modules/hash-tests: New file.
11129         * tests/test-hash.c: New file.
11130
11131 2009-06-17  Eric Blake  <ebb9@byu.net>
11132
11133         strstr-simple: document new module
11134         * MODULES.html.sh: Document new module.
11135
11136         strstr, strcasestr: replace on platforms with broken memchr
11137         * modules/strstr: Split into...
11138         * modules/strstr-simple: ...new module that does not care about
11139         performance, but does care about glibc bug.
11140         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11141         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11142         if platform memchr is broken, per Debian bug 521737.
11143         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11144         memchr.
11145         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11146         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11147         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11148         * modules/mountlist (Depends-on): Add strstr-simple.
11149         * modules/gen-uni-tables (Depends-on): Likewise.
11150         * modules/argz (Depends-on): Add strstr.
11151
11152 2009-06-17  Bruno Haible  <bruno@clisp.org>
11153
11154         * modules/posix_spawn-internal (Depends-on): Add errno.
11155
11156 2009-06-17  Bruno Haible  <bruno@clisp.org>
11157
11158         Define missing ESTALE on Interix 3.5.
11159         * lib/errno.in.h (ESTALE): Assign a value if missing.
11160         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11161         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11162         missing.
11163         * doc/posix-headers/errno.texi: Mention the Interix bug.
11164         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11165
11166 2009-06-15  Eric Blake  <ebb9@byu.net>
11167
11168         memchr, memchr2: add valgrind exception
11169         * lib/memchr.valgrind: New file.
11170         * lib/memchr2.valgrind: New file.
11171         * modules/memchr (Files): Distribute valgrind file.
11172         * modules/memchr2 (Files): Likewise.
11173
11174         docs: memchr is no longer obsolete
11175         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11176         * lib/string.in.h (memchr): Simplify logic.
11177
11178 2009-06-14  Jim Meyering  <meyering@redhat.com>
11179
11180         link-follow: fix the "checking..." message to not mention trailing slash
11181         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11182         never considered trailing slashes.
11183
11184 2009-06-14  Bruno Haible  <bruno@clisp.org>
11185
11186         * m4/memchr.m4: Mention also the bug on IA-64.
11187         * doc/posix-functions/memchr.texi: Likewise.
11188
11189 2009-06-12  Eric Blake  <ebb9@byu.net>
11190
11191         memchr: detect broken x86_64 and alpha implementations
11192         * modules/memchr-tests (Depends-on): Move mmap detection...
11193         * modules/memchr (Depends-on): ...here.
11194         (configure.ac): Set indicator.
11195         * lib/string.in.h (memchr): Declare replacement.
11196         * modules/string (Makefile.am): Trigger replacement.
11197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11198         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11199         bugs.
11200         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11201         * modules/getpagesize (License): Relax license.
11202
11203 2009-06-11  Bruno Haible  <bruno@clisp.org>
11204
11205         * lib/idpriv.h: Add more references.
11206
11207 2009-06-08  Bruno Haible  <bruno@clisp.org>
11208
11209         Tests for module 'idpriv-droptemp'.
11210         * modules/idpriv-droptemp-tests: New file.
11211         * tests/test-idpriv-droptemp.sh: New file.
11212         * tests/test-idpriv-droptemp.su.sh: New file.
11213         * tests/test-idpriv-droptemp.c: New file.
11214
11215         New module 'idpriv-droptemp'.
11216         * lib/idpriv-droptemp.c: New file.
11217         * modules/idpriv-droptemp: New file.
11218
11219 2009-06-08  Bruno Haible  <bruno@clisp.org>
11220
11221         Tests for module 'idpriv-drop'.
11222         * modules/idpriv-drop-tests: New file.
11223         * tests/test-idpriv-drop.sh: New file.
11224         * tests/test-idpriv-drop.su.sh: New file.
11225         * tests/test-idpriv-drop.c: New file.
11226
11227         New module 'idpriv-drop'.
11228         * lib/idpriv.h: New file.
11229         * lib-idpriv-drop.c: New file.
11230         * m4/idpriv.m4: New file.
11231         * modules/idpriv-drop: New file.
11232
11233 2009-06-08  Bruno Haible  <bruno@clisp.org>
11234
11235         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11236         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11237         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11238         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11239         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11240         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11241         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11242
11243 2009-06-08  Eric Blake  <ebb9@byu.net>
11244
11245         test-strstr: use memory fence, when possible
11246         * tests/test-strstr.c (main): Use memory fence, in order to be
11247         more likely to trigger Debian bug 521737.
11248         * modules/strstr-tests (Files): Pull in additional files.
11249
11250         memchr: no longer obsolete, for wider field testing
11251         * modules/memchr (Status, Notice): Delete, this module is no
11252         longer obsolete.
11253         * modules/vasnprintf (Depends-on): Add memchr.
11254
11255 2009-06-07  Jim Meyering  <meyering@redhat.com>
11256
11257         hash: declare some functions with the warn_unused_result attribute
11258         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11259
11260 2009-06-07  Bruno Haible  <bruno@clisp.org>
11261
11262         * tests/test-alignof.c: Don't test int64_t if it does not exist.
11263         Reported by Eric Blake.
11264
11265 2009-06-06  Eric Blake  <ebb9@byu.net>
11266
11267         test-alignof: fix typo with long double
11268         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11269         compiler error.
11270
11271 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
11272
11273         Escape non-texinfo { and }s.
11274         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11275         markup error.
11276
11277 2009-06-04  Jim Meyering  <meyering@redhat.com>
11278
11279         gitlog-to-changelog: don't infloop on an empty commit log
11280         * build-aux/gitlog-to-changelog: Warn about an empty log message.
11281         Reported by Boris Petersen <transacid@centerim.org>.
11282
11283 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
11284
11285         version-etc: extend for packagers
11286         Add three new configure options, intended for packagers:
11287           --with-packager="packager name"
11288           --with-packager-version="packager-specific version"
11289           --with-packager-bug-reports="packager bug reporting"
11290         An example with coreutils:
11291           $ ./configure \
11292             --with-packager=Gentoo \
11293             --with-packager-bug-report=http://bugs.gentoo.org/ \
11294             --with-packager-version="patchset 1.6"
11295           $ ./src/ls --version | head -n2
11296           ls (GNU coreutils) 7.1-dirty
11297           Packaged by Gentoo (patchset 1.6)
11298         Note that the bug reporting info via --help doesn't show up because
11299         coreutils uses its own custom emit_bug_reporting_address() implementation
11300         in src/system.h.  If it didn't, it'd look like:
11301           $ ./src/ls --help | tail -n4
11302           Report bugs to <bug-coreutils@gnu.org>.
11303           Report Gentoo bugs to <http://bugs.gentoo.org/>.
11304           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11305           General help using GNU software: <http://www.gnu.org/gethelp/>.
11306         * lib/version-etc.c: Print new information, if provided.
11307         * m4/version-etc.m4: New file.
11308         * modules/version-etc (Files): Add m4/version-etc.m4.
11309         (configure.ac): Add gl_VERSION_ETC.
11310
11311 2009-05-31  Bruno Haible  <bruno@clisp.org>
11312
11313         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11314         and 'int64_t'.
11315         * modules/alignof-tests (Dependencies): Add stdint.
11316         Reported by Eric Blake.
11317
11318 2009-05-31  Bruno Haible  <bruno@clisp.org>
11319
11320         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11321         restriction due to compiler bugs.
11322         Reported by Eric Blake.
11323
11324 2009-05-31  Simon Josefsson  <simon@josefsson.org>
11325             Bruno Haible  <bruno@clisp.org>
11326
11327         Fix test-alignof failure.
11328         * lib/alignof.h (alignof_slot): New macro.
11329         (alignof_type): New macro, with the same semantics as the previous
11330         'alignof'.
11331         (alignof): Alias to alignof_slot.
11332         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11333         check that the results are usable as constant expressions.
11334
11335 2009-05-31  Bruno Haible  <bruno@clisp.org>
11336
11337         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11338         * tests/test-memchr.c (main): Check that memchr does not read past the
11339         first occurrence of the byte.
11340         * tests/test-strstr.c (main): Update comment.
11341         Suggested by Eric Blake.
11342
11343 2009-05-30  Bruno Haible  <bruno@clisp.org>
11344
11345         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11346         detail how to use dumpbin.
11347         Reported by David Byron <dbyron@dbyron.com>.
11348
11349 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11350
11351         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11352
11353 2009-06-02  Simon Josefsson  <simon@josefsson.org>
11354
11355         * m4/manywarnings.m4: Add GCC 4.4 warnings.
11356
11357 2009-05-28  Bruno Haible  <bruno@clisp.org>
11358
11359         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11360         build-aux/ files.
11361
11362 2009-05-28  Simon Josefsson  <simon@josefsson.org>
11363
11364         * gnulib-tool (func_import): Transform license on build-aux/ files too.
11365
11366 2009-05-27  Simon Josefsson  <simon@josefsson.org>
11367
11368         * gnulib-tool (sed_transform_main_lib_file)
11369         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11370         regexps.
11371
11372 2009-05-26  Simon Josefsson  <simon@josefsson.org>
11373
11374         * tests/test-strstr.c: Add another self-test.
11375         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11376         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
11377
11378 2009-05-23  Bruno Haible  <bruno@clisp.org>
11379
11380         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11381         change.
11382
11383 2009-05-21  Bruno Haible  <bruno@clisp.org>
11384
11385         Simplify use of mode_t varargs.
11386         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11387         uses 'mode_t' or 'int'.
11388         * lib/openat.c (openat): Likewise.
11389         * lib/open-safer.c (open_safer): Likewise.
11390         * m4/mode_t.m4: New file.
11391         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11392         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11393         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11394         * modules/open (Files): Add m4/mode_t.m4.
11395         * modules/openat (Files): Likewise.
11396         * modules/fcntl-safer (Files): Likewise.
11397         Suggested by Eric Blake.
11398
11399 2009-05-21  Pádraig Brady  <P@draigbrady.com>
11400
11401         * doc/glibc-functions/fallocate.texi: New file.
11402         * doc/gnulib.texi: Include it.
11403
11404 2009-05-21  Eric Blake  <ebb9@byu.net>
11405             Bruno Haible  <bruno@clisp.org>
11406
11407         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11408         invocations.
11409         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11410
11411 2009-05-21  Eric Blake  <ebb9@byu.net>
11412             Bruno Haible  <bruno@clisp.org>
11413
11414         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11415         include_next. Fix of 2008-11-20 commit.
11416         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11417         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11418         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11419         NEXT_MATH_H.
11420         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11421         instead of NEXT_MATH_H.
11422
11423 2009-05-21  Bruno Haible  <bruno@clisp.org>
11424
11425         Avoid redefinition warnings for SIZE_MAX.
11426         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11427         Reported by Simon Josefsson.
11428
11429 2009-05-21  Bruno Haible  <bruno@clisp.org>
11430
11431         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11432         AC_CACHE_VAL.
11433
11434 2009-05-20  Bruno Haible  <bruno@clisp.org>
11435
11436         Make zeroptr.h work on mingw.
11437         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11438         mprotect.
11439         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11440         * modules/memchr2-tests (configure.ac): Likewise.
11441         * modules/memcmp-tests (configure.ac): Likewise.
11442         * modules/memmem-tests (configure.ac): Likewise.
11443         * modules/memrchr-tests (configure.ac): Likewise.
11444         Reported by Simon Josefsson.
11445
11446 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11447
11448         * tests/test-glob.c: Include string.h for strcmp prototype.
11449
11450 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11451
11452         * modules/getdelim (Depends-on): Add explicit stdint, although it
11453         was implicitly already pulled in via realloc-posix.
11454         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11455
11456 2009-05-20  Simon Josefsson  <simon@josefsson.org>
11457
11458         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
11459         G. Christensen" <tgc@jupiterrise.com>.
11460         * m4/sys_socket_h.m4: Check for sa_family_t.
11461         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11462         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11463         * tests/test-sys_socket.c: Check that sa_family_t works.
11464
11465 2009-05-18  Eric Blake  <ebb9@byu.net>
11466
11467         maint.mk: allow gnulib_dir in VPATH build
11468         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11469
11470 2009-05-15  Jim Meyering  <meyering@redhat.com>
11471
11472         maint.mk: Give gnulib_dir a default definition.
11473         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11474         Thus, most packages no longer need to specify this variable in cfg.mk
11475
11476 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
11477
11478         rename.m4: fix typos that would make non-mingw cross-configure fail
11479         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11480
11481 2009-05-13  Eric Blake  <ebb9@byu.net>
11482
11483         mmap-anon: avoid out-of-order autoconf expansion
11484         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11485         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11486         * modules/memchr-tests (Depends-on): Add extensions.
11487         * modules/memchr2-tests (Depends-on): Add extensions.
11488         * modules/memcmp-tests (Depends-on): Add extensions.
11489         * modules/memmem-tests (Depends-on): Add extensions.
11490         * modules/memrchr-tests (Depends-on): Add extensions.
11491
11492 2009-05-13  Bruno Haible  <bruno@clisp.org>
11493
11494         Make some tests ISO C 99 compliant.
11495         * tests/zerosize-ptr.h: New file.
11496         * tests/test-memchr.c: Include zerosize-ptr.h.
11497         (main): Use a zero-size object pointer instead of NULL.
11498         * tests/test-memchr2.c: Include zerosize-ptr.h.
11499         (main): Use a zero-size object pointer instead of NULL.
11500         * tests/test-memcmp.c: Include zerosize-ptr.h.
11501         (main): Use a zero-size object pointer instead of NULL.
11502         * tests/test-memmem.c: Include zerosize-ptr.h.
11503         (main): Use a zero-size object pointer instead of NULL.
11504         * tests/test-memrchr.c: Include zerosize-ptr.h.
11505         (main): Use a zero-size object pointer instead of NULL.
11506         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11507         m4/mmap-anon.m4.
11508         (Depends-on): Add getpagesize.
11509         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11510         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11511         m4/mmap-anon.m4.
11512         (Depends-on): Add getpagesize.
11513         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11514         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11515         m4/mmap-anon.m4.
11516         (Depends-on): Add getpagesize.
11517         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11518         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
11519         m4/mmap-anon.m4.
11520         (Depends-on): Add getpagesize.
11521         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11522         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
11523         m4/mmap-anon.m4.
11524         (Depends-on): Add getpagesize.
11525         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11526
11527 2009-05-12  Bruno Haible  <bruno@clisp.org>
11528
11529         Tests for module 'alignof'.
11530         * modules/alignof-tests: New file.
11531         * tests/test-alignof.c: New file.
11532
11533 2009-05-12  Bruno Haible  <bruno@clisp.org>
11534
11535         Fix alignof macro.
11536         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
11537         vendor compilers that are always correct.
11538
11539 2009-05-12  Bruno Haible  <bruno@clisp.org>
11540
11541         Make the MAP_ANONYMOUS detection work on HP-UX 11.
11542         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
11543         not whether its fully works.
11544
11545 2009-05-12  Bruno Haible  <bruno@clisp.org>
11546
11547         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
11548
11549 2009-05-12  Jim Meyering  <meyering@redhat.com>
11550
11551         * top/maint.mk: Adjust backslash alignment.
11552
11553 2009-05-11  Simon Josefsson  <simon@josefsson.org>
11554
11555         * top/maint.mk: Make $(srcdir)/build-aux configurable.
11556
11557 2009-05-11  Eric Blake  <ebb9@byu.net>
11558
11559         argp: avoid undefined behavior
11560         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
11561         macros.
11562
11563 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11564
11565         * tests/test-vc-list-files-git.sh: Do git config of user.email and
11566         user.name to prevent git commit from complaining.
11567
11568 2009-05-10  Bruno Haible  <bruno@clisp.org>
11569
11570         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
11571         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
11572         it rewrites every file name only once.
11573         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
11574
11575 2009-05-08  Bruno Haible  <bruno@clisp.org>
11576
11577         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
11578         instead of 'max'.
11579
11580 2009-05-08  Simon Josefsson  <simon@josefsson.org>
11581
11582         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
11583         sockaddr_storage test.
11584
11585 2009-05-07  Simon Josefsson  <simon@josefsson.org>
11586
11587         * modules/sys_socket (Makefile.am): Substitute
11588         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
11589         * m4/sys_socket_h.m4: Check for sockaddr_storage.
11590         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
11591         * tests/test-sys_socket.c: Check sockaddr_storage.
11592
11593 2009-05-08  Bruno Haible  <bruno@clisp.org>
11594
11595         New module 'alignof'.
11596         * lib/alignof.h: New file.
11597         * modules/alignof: New file.
11598
11599 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11600             Bruno Haible  <bruno@clisp.org>
11601
11602         Fix test-file-has-acl on FreeBSD.
11603         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
11604         mask is implicitly added.
11605         * tests/test-file-has-acl.c: Include <signal.h>.
11606         (main): Terminate the test after 5 seconds.
11607         * modules/acl-tests (configure.ac): Check for alarm function.
11608
11609 2009-05-04  Bruno Haible  <bruno@clisp.org>
11610
11611         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
11612         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
11613         * modules/errno (configure.ac): Drop AC_REQUIRE.
11614         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
11615         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
11616
11617 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11618
11619         * modules/glob-tests: New module.
11620         * tests/test-glob.c: Add.
11621
11622 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11623
11624         * modules/fnmatch-tests: New module.
11625         * tests/test-fnmatch.c: Add.
11626
11627 2009-05-04  Eric Blake  <ebb9@byu.net>
11628
11629         maint: make the new no-submodule-changes rule VPATH-safe
11630         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
11631
11632 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11633             Bruno Haible  <bruno@clisp.org>
11634
11635         acl: Fix infinite loop on FreeBSD.
11636         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
11637         of return value from acl_get_entry.
11638         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
11639         Likewise.
11640
11641 2009-05-03  Bruno Haible  <bruno@clisp.org>
11642
11643         * lib/acl-internal.h (acl_entries): Clarify return value.
11644         * lib/acl_entries.c (acl_entries): Likewise.
11645
11646 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11647
11648         Bug fix in acl module.
11649         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
11650
11651 2009-05-03  Bruno Haible  <bruno@clisp.org>
11652
11653         Create gperf-generated file in the source dir, not in the build dir.
11654         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
11655         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
11656         * modules/unicase/locale-language (unicase/locale-languages.h):
11657         Likewise.
11658         * modules/unicase/special-casing (unicase/special-casing-table.h):
11659         Likewise.
11660         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
11661         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
11662         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
11663         Reported by Ralf Wildenhues.
11664
11665 2009-05-03  Bruno Haible  <bruno@clisp.org>
11666
11667         * modules/fnmatch (Description, configure.ac): Taken from
11668         fnmatch-posix.
11669         * modules/fnmatch-posix: Turn into a symbolic reference to the
11670         'fnmatch' module, and deprecate.
11671         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
11672
11673 2009-05-03  Bruno Haible  <bruno@clisp.org>
11674
11675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
11676         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
11677         Reported by Ralf Wildenhues.
11678
11679 2009-05-04  Simon Josefsson  <simon@josefsson.org>
11680
11681         * m4/fnmatch.m4: Fix fnmatch re-define.
11682
11683 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
11684
11685         priv-set: new module and tests; adapt write-any-file
11686         * lib/priv-set.c: New file.
11687         * lib/priv-set.h: New file.
11688         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
11689         * lib/write-any-file.c: Simplify by using priv-set module.
11690         * m4/priv-set.m4: New file.
11691         * modules/priv-set: New file.
11692         * modules/unlinkdir: Add dependency on priv-set module.
11693         * modules/write-any-file: Likewise.
11694
11695         Tests for module 'priv-set'.
11696         * modules/priv-set-tests: New file.
11697         * tests/test-priv-set.c: New file.
11698
11699 2009-05-03  Jim Meyering  <meyering@redhat.com>
11700             Bruno Haible  <bruno@clisp.org>
11701
11702         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
11703         use the converted UTF-8 variant of the name instead.
11704
11705 2009-05-03  Jim Meyering  <meyering@redhat.com>
11706
11707         tests: tighten some getdate tests
11708         * tests/test-getdate.c (main): Tighten tests: require equality,
11709         not just greater than.  Set TZ envvar to UTC0.
11710
11711 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
11712
11713         getdate: correctly interpret "next monday" when run on a Monday
11714         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
11715         that e.g., "next tues" (when run on a tuesday) results in a date
11716         that is one week in the future, and not today's date.
11717         I.e., add a week when the wday is the same as the current one.
11718         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
11719         and earlier by Martin Bernreuther and Jan Minář.
11720         * tests/test-getdate.c (main): Check that "next DAY" is always in
11721         the future and that "last DAY" is always in the past.
11722
11723 2009-05-02  Jim Meyering  <meyering@redhat.com>
11724
11725         build: ensure that a release build fails when a submodule is unclean
11726         * top/maint.mk (no-submodule-changes): New rule.
11727         (alpha beta major): Depend on it.
11728
11729 2009-05-02  Bruno Haible  <bruno@clisp.org>
11730
11731         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
11732         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
11733         shell variable gl_fnmatch_required to detect which variant is
11734         requested.
11735         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
11736         gl_FUNC_FNMATCH_POSIX.
11737         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
11738         exclude fnmatch-posix.
11739
11740 2009-05-02  Bruno Haible  <bruno@clisp.org>
11741
11742         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
11743         * modules/mbsrtowcs (License): Change to LGPLv2+.
11744         * modules/strnlen1 (License): Likewise.
11745         Reported by Simon Josefsson.
11746
11747 2009-05-02  Bruno Haible  <bruno@clisp.org>
11748
11749         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
11750         "cross".
11751         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
11752         gnulib-tool was called with option --source-base=lib.
11753
11754 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11755
11756         Use automake *-local hooks without commands, for extensibility.
11757         * modules/localcharset (Makefile.am): Rename install-exec-local
11758         rule to install-exec-localcharset, and make it a prerequisite of
11759         install-exec-local.  Likewise, rename the uninstall-local rule to
11760         uninstall-localcharset, and make it a prerequisite of the former.
11761
11762 2009-05-01  Bruno Haible  <bruno@clisp.org>
11763
11764         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
11765         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11766         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
11767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
11768         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
11769         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11770         m4/locale-zh.m4, m4/codeset.m4.
11771
11772         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
11773         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
11774         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
11775         m4/locale-zh.m4.
11776
11777         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
11778         REPLACE_WCRTOMB if mbstate_t must be replaced.
11779         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
11780         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
11781
11782 2009-05-01  Bruno Haible  <bruno@clisp.org>
11783
11784         Avoid compiler warnings when redefining macros defined by <libintl.h>.
11785         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
11786         dngettext, dcngettext, textdomain, bindtextdomain,
11787         bind_textdomain_codeset): Undefine before redefining.
11788
11789 2009-04-30  Bruno Haible  <bruno@clisp.org>
11790
11791         Fix bug introduced on 2009-04-25.
11792         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
11793         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
11794         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
11795         is defined.
11796         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
11797         is defined.
11798         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
11799         is defined.
11800         Reported by Elbert_Pol <elbert.pol@gmail.com>.
11801
11802 2009-04-28  Bruno Haible  <bruno@clisp.org>
11803
11804         Comment tweaks.
11805         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
11806         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
11807         * lib/unicase.h (u*_casexfrm): Likewise.
11808         Reported by Paolo Bonzini.
11809
11810 2009-04-28  Bruno Haible  <bruno@clisp.org>
11811
11812         Fix a compilation error.
11813         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
11814         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
11815         Reported by Jim Meyering.
11816
11817 2009-04-27  Bruno Haible  <bruno@clisp.org>
11818
11819         New module 'libunistring'.
11820         * modules/libunistring: New file.
11821         * m4/libunistring.m4: New file.
11822         * MODULES.html.sh (Unicode string functions): Add it.
11823
11824 2009-04-27  Eric Blake  <ebb9@byu.net>
11825
11826         maint.mk: allow package-specific header to provide <config.h>
11827         * top/maint.mk (sc_require_config_h): New variable.
11828         (sc_require_config_h, sc_require_config_h_first): Use it.
11829
11830 2009-04-27  Simon Josefsson  <simon@josefsson.org>
11831
11832         * top/maint.mk (sc_avoid_if_before_free): Except
11833         useless-if-before-free script.
11834
11835 2009-04-27  Eric Blake  <ebb9@byu.net>
11836
11837         maintainer-makefile: depend on all required helper scripts
11838         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
11839         useless-if-before-free.
11840         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
11841         version, rather than assuming gnulib checkout is available.
11842         Reported by Simen Josefsson.
11843
11844 2009-04-26  Bruno Haible  <bruno@clisp.org>
11845
11846         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
11847         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
11848         "../" or "..".
11849
11850 2009-04-26  Bruno Haible  <bruno@clisp.org>
11851
11852         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
11853         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
11854         AC_LIB_HAVE_LINKFLAGS.
11855
11856 2009-04-26  Bruno Haible  <bruno@clisp.org>
11857
11858         Simplify calling convention of u*_conv_from_encoding.
11859         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
11860         u32_conv_from_encoding): Expect a resultbuf argument and return the
11861         result directly as a pointer.
11862         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11863         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
11864         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
11865         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
11866         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
11867         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11868         Update.
11869         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
11870         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
11871         * lib/vasnprintf.c (VASNPRINTF): Update.
11872         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
11873         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
11874         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
11875         * NEWS: Mention the change.
11876
11877 2009-04-26  Bruno Haible  <bruno@clisp.org>
11878
11879         Simplify calling convention of u*_conv_to_encoding.
11880         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
11881         u32_conv_to_encoding): Expect a resultbuf argument and return the
11882         result directly as a pointer.
11883         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11884         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
11885         freeing scaled_offsets if mem_iconveha failed.
11886         * lib/unicase/u-casexfrm.h (FUNC): Update.
11887         * lib/uninorm/u-normxfrm.h (FUNC): Update.
11888         * lib/vasnprintf.c (VASNPRINTF): Update.
11889         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
11890         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
11891         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
11892         * NEWS: Mention the change.
11893
11894 2009-04-26  Bruno Haible  <bruno@clisp.org>
11895
11896         Avoid test failures on AIX and OSF/1.
11897         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
11898         malloc(0).
11899         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11900         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
11901         Likewise.
11902         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
11903         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
11904         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
11905         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
11906         * doc/posix-functions/malloc.texi: Document the portability problem
11907         related to malloc(0).
11908
11909 2009-04-26  Bruno Haible  <bruno@clisp.org>
11910
11911         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
11912         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
11913         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
11914
11915 2009-04-25  Bruno Haible  <bruno@clisp.org>
11916
11917         Avoid link error when creating a namespace clean library.
11918         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
11919         as macro with arguments if already defined as an alias.
11920         * lib/signbitf.c (gl_signbitf): Don't undefine.
11921         * lib/signbitd.c (gl_signbitd): Don't undefine.
11922         * lib/signbitl.c (gl_signbitl): Don't undefine.
11923
11924 2009-04-25  Jim Meyering  <meyering@redhat.com>
11925
11926         vc-list-files: fix another quoting bug
11927         * build-aux/vc-list-files: Avoid sed backslash expansion
11928         of pathological directory names.
11929
11930 2009-04-25  Eric Blake  <ebb9@byu.net>
11931
11932         vc-list-files: fix shell quoting error
11933         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
11934         timestamp.
11935
11936 2009-04-25  Jim Meyering  <meyering@redhat.com>
11937
11938         vc-list-files: restore lost functionality with subdir argument
11939         * build-aux/vc-list-files: When given a non-"." sub-directory
11940         argument, substitute the $dir/ prefix back onto each resulting name.
11941         Otherwise, coreutils' root_tests check would fail.
11942
11943 2009-04-24  Eric Blake  <ebb9@byu.net>
11944
11945         vc-list-files: ignore git symlinks
11946         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
11947         than ls-files, to ignore git symlinks.
11948
11949         maint.mk: import improvements from m4
11950         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
11951         (move_if_change): Delete unused macro.
11952         (news-date-check, vc-diff-check): Support VPATH builds.
11953         (announcement): Likewise.  Split --bootstrap-tools list...
11954         (boostrap-tools): ...into separate list, which can be overridden
11955         in cfg.mk.
11956         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
11957         requiring dependency on useless-if-before-free module.
11958         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
11959         Support VPATH builds.
11960
11961 2009-04-24  Jim Meyering  <meyering@redhat.com>
11962
11963         maint.mk: remove coreutils-specific rules and variables
11964         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
11965         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
11966         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
11967
11968         maint.mk: remove obsolete rule
11969         * top/maint.mk (rel-check): Remove rule.
11970         (WGET, WGETFLAGS): Remove now-unused variables.
11971
11972 2009-04-24  Simon Josefsson  <simon@josefsson.org>
11973
11974         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
11975         consistency.
11976
11977         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
11978         '$(PATH_SEPARATOR)' instead of ':'.
11979
11980 2009-04-24  Simon Josefsson  <simon@josefsson.org>
11981
11982         * lib/getopt1.c (main): Use 'const' for static array.
11983
11984 2009-04-24  Simon Josefsson  <simon@josefsson.org>
11985
11986         * top/maint.mk: Sync with coreutils.
11987         * NEWS: Explain incompatibilities.
11988
11989 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11990             Bruno Haible  <bruno@clisp.org>
11991
11992         Fix cross-compilation results.
11993         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
11994         statement, as third argument of AC_TRY_RUN.
11995         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11996         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11997         Likewise.
11998         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11999         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12000         Likewise.
12001         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12002         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12003         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12004
12005 2009-04-20  Bruno Haible  <bruno@clisp.org>
12006
12007         Avoid test failure on mingw.
12008         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12009
12010 2009-04-20  Bruno Haible  <bruno@clisp.org>
12011
12012         Avoid compilation error on mingw.
12013         * modules/localename-tests (Depends-on): Add locale.
12014
12015 2009-04-19  Bruno Haible  <bruno@clisp.org>
12016
12017         Support for building a shared library on Windows platforms.
12018         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12019         (main): Test the presence of UNINORM_NFC here.
12020         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12021         (main): Test the presence of UNINORM_NFD here.
12022         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12023         (main): Test the presence of UNINORM_NFKC here.
12024         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12025         (main): Test the presence of UNINORM_NFKD here.
12026
12027 2009-04-19  Bruno Haible  <bruno@clisp.org>
12028
12029         Avoid a compiler warning.
12030         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12031         Change type of variable 'sequence'.
12032
12033 2009-04-19  Bruno Haible  <bruno@clisp.org>
12034
12035         * modules/configmake (Makefile.am): When the contents of configmake.h
12036         does not change, arrange to preserve its modification time.
12037
12038 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12039
12040         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12041         gettext domain.
12042
12043 2009-04-16  Jim Meyering  <meyering@redhat.com>
12044
12045         useless-if-before-free: improve conversion code
12046         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12047         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12048
12049 2009-04-14  Bruno Haible  <bruno@clisp.org>
12050
12051         * modules/fcntl (Depends-on): Add extensions.
12052         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12053
12054 2009-04-12  Ben Pfaff  <blp@gnu.org>
12055
12056         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12057         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12058
12059 2009-03-20  Ben Pfaff  <blp@gnu.org>
12060
12061         Make rename replace existing destinations on Windows.
12062         * m4/rename.m4: Add test for Mingw.
12063         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12064         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12065         * doc/posix-functions/rename.texi: Document.
12066
12067 2009-04-10  Bruno Haible  <bruno@clisp.org>
12068
12069         New include file "iconveh.h".
12070         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12071         * lib/striconveh.h: Include it.
12072         (enum iconv_ilseq_handler): Remove definition.
12073         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12074         striconveh.h.
12075         * lib/striconveha.c: Include striconveh.h.
12076         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12077         * modules/striconveh (Files): Add lib/iconveh.h.
12078         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12079         lib/striconveh.h.
12080
12081 2009-04-10  Bruno Haible  <bruno@clisp.org>
12082
12083         * lib/uniconv.h: Update comment.
12084
12085 2009-04-10  Bruno Haible  <bruno@clisp.org>
12086
12087         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12088         always.
12089         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12090         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12091         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12092         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12093         "unistring-notinline.h", so that the function gets defined always.
12094         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12095         * lib/unistr/u8-uctomb.c: Likewise.
12096         * lib/unistr/u16-mbtouc.c: Likewise.
12097         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12098         * lib/unistr/u16-uctomb.c: Likewise.
12099         * lib/unistr/u32-mbtouc.c: Likewise.
12100         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12101         * lib/unistr/u32-uctomb.c: Likewise.
12102
12103 2009-04-10  Bruno Haible  <bruno@clisp.org>
12104
12105         Mark 'utime' obsolete.
12106         * modules/utime (Status, Notice): New sections.
12107         Suggested by Jim Meyering.
12108
12109         Fix cross-compile guess for utime test.
12110         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12111         autoconf.
12112         * doc/posix-functions/utime.texi: Give more precisions.
12113         Reported by Jan <ipif@ymail.com>.
12114
12115 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12116
12117         filevercmp: correct today's change
12118         * lib/filevercmp.c: Also handle coreutils' test inputs.
12119         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12120
12121         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12122         for reporting it.
12123         * lib/filevercmp.c: Special handle for "", "." and "..".
12124         * tests/test-filevercmp.c: Enlarge the set suite.
12125
12126 2009-04-07  Jim Meyering  <meyering@redhat.com>
12127
12128         useless-if-before-free: show how to remove braced useless free, too
12129         * build-aux/useless-if-before-free: still only in a comment, though.
12130
12131 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12132
12133         maint.mk: import changes to syntax-check macros from coreutils
12134         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12135         Use them in the relevant macros.
12136
12137 2009-04-06  Bruno Haible  <bruno@clisp.org>
12138
12139         Fix unportable use of bit-fields.
12140         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12141         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12142         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12143
12144 2009-04-06  Bruno Haible  <bruno@clisp.org>
12145
12146         Avoid test failures on AIX and OSF/1.
12147         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12148         that malloc(0) = NULL.
12149         * tests/unicase/test-u8-tolower.c (check): Likewise.
12150         * tests/unicase/test-u8-totitle.c (check): Likewise.
12151         * tests/unicase/test-u8-toupper.c (check): Likewise.
12152         * tests/unicase/test-u16-casefold.c (check): Likewise.
12153         * tests/unicase/test-u16-tolower.c (check): Likewise.
12154         * tests/unicase/test-u16-totitle.c (check): Likewise.
12155         * tests/unicase/test-u16-toupper.c (check): Likewise.
12156         * tests/unicase/test-u32-casefold.c (check): Likewise.
12157         * tests/unicase/test-u32-tolower.c (check): Likewise.
12158         * tests/unicase/test-u32-totitle.c (check): Likewise.
12159         * tests/unicase/test-u32-toupper.c (check): Likewise.
12160         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12161         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12162         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12163         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12164         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12165         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12166         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12167         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12168         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12169         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12170         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12171         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12172
12173 2009-04-05  Bruno Haible  <bruno@clisp.org>
12174
12175         Work around an autoconf limitation.
12176         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12177         comment line if it would be longer than 3 KB.
12178
12179 2009-04-05  Bruno Haible  <bruno@clisp.org>
12180
12181         Avoid test failure with libiconv-1.13.
12182         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12183         of the expected test results.
12184
12185 2009-04-05  Bruno Haible  <bruno@clisp.org>
12186
12187         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12188         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12189         that it should be installed.
12190
12191 2009-04-05  Bruno Haible  <bruno@clisp.org>
12192
12193         * gnulib-tool: New option --copy-file.
12194         (func_usage): Document it.
12195         (func_dest_tmpfilename): Moved out of func_import.
12196         (func_add_file, func_update_file): New functions, extracted from
12197         func_import.
12198         (func_import): Update.
12199
12200 2009-04-05  Karl Berry  <karl@gnu.org>
12201
12202         * README: prominently mention gnulib-tool.
12203         Rearrange sections so getting the code is near the top.
12204
12205 2009-04-05  Bruno Haible  <bruno@clisp.org>
12206
12207         * lib/unicase.h: Mention u*_cmp2.
12208         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12209         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12210         * lib/unicase/ulc-casecmp.c: Likewise.
12211         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12212         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12213         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12214         unistr/u8-cmp.
12215         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12216         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12217         unistr/u16-cmp.
12218         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12219         unistr/u32-cmp.
12220
12221         * lib/uninorm.h: Mention u*_cmp2.
12222         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12223         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12224         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12225         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12226         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12227         unistr/u8-cmp.
12228         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12229         unistr/u16-cmp.
12230         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12231         unistr/u32-cmp.
12232
12233         New module 'unistr/u32-cmp2'.
12234         * lib/unistr/u32-cmp2.c: New file.
12235         * modules/unistr/u32-cmp2: New file.
12236
12237         New module 'unistr/u16-cmp2'.
12238         * lib/unistr/u16-cmp2.c: New file.
12239         * modules/unistr/u16-cmp2: New file.
12240
12241         New module 'unistr/u8-cmp2'.
12242         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12243         * lib/unistr/u8-cmp2.c: New file.
12244         * lib/unistr/u-cmp2.h: New file.
12245         * modules/unistr/u8-cmp2: New file.
12246
12247 2009-04-05  Bruno Haible  <bruno@clisp.org>
12248
12249         * lib/unictype.h (uc_property_is_valid): New macro.
12250         * tests/unictype/test-pr_byname.c (main): Use it.
12251
12252         * lib/unistr.h: Doc fixes.
12253         * lib/uniconv.h: Doc fixes.
12254         * lib/unictype.h: Doc fixes.
12255
12256 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12257
12258         Port coreutils 7.2 to Solaris 8.
12259
12260         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12261         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12262         for Solaris 8.  This is a bit of a hack, as it means it's the
12263         caller's responsibility to add -lnsl if needed, but most likely it
12264         won't be needed since only getaddrinfo uses this and getaddrinfo
12265         isn't needed on Solaris 8.
12266
12267         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12268         problem to Solaris 8 encountered with coreutils 7.2, which
12269         resulted in a message "fnmatch.c:292: warning: passing argument 4
12270         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
12271         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12272
12273 2009-04-03  Simon Josefsson  <simon@josefsson.org>
12274
12275         * m4/ld-version-script.m4: Add FIXME comment.
12276
12277 2009-04-02  Simon Josefsson  <simon@josefsson.org>
12278
12279         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12280         SOVERSION variable.
12281
12282 2009-04-02  Bruno Haible  <bruno@clisp.org>
12283
12284         * Makefile (info, html, dvi, pdf): Combine the rules.
12285         Suggested by Jim Meyering.
12286
12287 2009-04-01  Bruno Haible  <bruno@clisp.org>
12288
12289         * Makefile (info, html, dvi, pdf): New targets.
12290         Reported by Reuben Thomas <rrt@sc3d.org>.
12291
12292 2009-04-01  Bruno Haible  <bruno@clisp.org>
12293
12294         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12295         can be put into PATH.
12296         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12297
12298 2009-04-01  Bruno Haible  <bruno@clisp.org>
12299
12300         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12301
12302 2009-04-01  Bruno Haible  <bruno@clisp.org>
12303
12304         Rename module 'visibility'.
12305         * modules/lib-symbol-visibility: Renamed from modules/visibility.
12306         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12307         * doc/gnulib.texi: Update.
12308         * MODULES.html.sh (Misc): Update.
12309         * NEWS: Mention the change.
12310
12311 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12312
12313         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
12314         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12315         Eric Blake <ebb9@byu.net> for review.
12316         * MODULES.html.sh: Add lib-msvc-compat.
12317         * doc/gnulib.texi: Link to new section.
12318         * m4/ld-output-def.m4: New file.
12319         * doc/ld-output-def.texi: New file.
12320
12321 2009-04-01  Simon Josefsson  <simon@josefsson.org>
12322
12323         Rename ld-version-script to lib-symbol-versions.  Suggested by
12324         Bruno Haible <bruno@clisp.org>.
12325         * modules/ld-version-script: Renamed to lib-symbol-versions.
12326         * doc/ld-version-script.texi: Fix module name.
12327         * MODULES.html.sh: Add lib-symbol-versions.
12328
12329 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12330
12331         * modules/u64-tests: New file.
12332         * tests/test-u64.c: New file.
12333
12334 2009-03-04  Simon Josefsson  <simon@josefsson.org>
12335
12336         * MODULES.html.sh: Mention u64.
12337         * modules/u64: New module.
12338         * modules/crypto/sha512: Depend on u64 module instead of providing
12339         u64.h.
12340
12341 2009-03-27  Eric Blake  <ebb9@byu.net>
12342
12343         test-strerror: make debugging EAI_SYSTEM easier
12344         * modules/getaddrinfo-tests (Depends-on): Add strerror.
12345         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12346         failure was EAI_SYSTEM.
12347
12348 2009-03-25  Bruno Haible  <bruno@clisp.org>
12349
12350         Fix a problem with --enable-relocatable on Solaris 7.
12351         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12352         since 2008-02-24.
12353
12354 2009-03-25  Eric Blake  <ebb9@byu.net>
12355
12356         test-sockets: avoid gcc warning
12357         * tests/test-sockets.c (main): Silence compiler warning.
12358
12359 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12360
12361         New modules nproc, pthread, contributed by Glen Lenker.
12362
12363         * MODULES.html.sh: Add pthread, nproc.
12364         * lib/nproc.c: New file.
12365         * lib/nproc.h: New file.
12366         * lib/pthread.in.h: New file.
12367         * m4/pthread.m4: New file.
12368         * modules/nproc: New file.
12369         * modules/pthread: New file.
12370
12371 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12372
12373         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12374         New variable.
12375
12376 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
12377
12378         filevercmp: handle simple~ and numbered.~3~ backup suffixes
12379         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12380         * tests/test-filevercmp.c: Add tests for backup suffixes.
12381
12382 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12383
12384         * modules/stdlib (Depends-on): Add stdint, needed when defining
12385         struct random_data on, for example, HP-UX 10.20.  Reported by
12386         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12387
12388 2009-03-24  Simon Josefsson  <simon@josefsson.org>
12389
12390         * lib/readline.c (readline): Call fflush on stdout after printing
12391         prompt.
12392
12393 2009-03-20  Bruno Haible  <bruno@clisp.org>
12394
12395         Remove dependency from 'close' module to -lws2_32 on native Windows.
12396         * lib/close-hook.h: New file.
12397         * lib/close-hook.c: New file.
12398         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12399         w32sock.h.
12400         (_gl_close_fd_maybe_socket): Remove function.
12401         (rpl_close): Invoke execute_all_close_hooks instead of
12402         _gl_close_fd_maybe_socket.
12403         * lib/sockets.c: Include close-hook.h, w32sock.h.
12404         (close_fd_maybe_socket): New function, essentially from lib/close.c.
12405         (close_sockets_hook): New variable.
12406         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12407         (gl_sockets_cleanup): Unregister it.
12408         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12409         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12410         * modules/close-hook: New file.
12411         * modules/close (Files): Remove lib/w32sock.h.
12412         (Depends-on): Add close-hook.
12413         (Link): Remove section.
12414         * modules/sockets (Files): Add lib/w32sock.h.
12415         (Depends-on): Add close-hook.
12416         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12417         invocation.
12418         * NEWS: Mention that LIB_CLOSE is gone.
12419
12420 2009-03-23  Eric Blake  <ebb9@byu.net>
12421
12422         signal-tests: test previous patch
12423         * tests/test-signal.c: New file.
12424         * modules/signal-tests: Likewise.
12425
12426         signal.h: always support 'volatile sig_atomic_t'
12427         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12428         (gl_SIGNAL_H_DEFAULTS): Add a default.
12429         * modules/signal (Makefile.am): Substitute if needed.
12430         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12431         users can blindly add volatile.
12432         * doc/posix-headers/signal.texi (signal.h): Document it.
12433         Reported by Matthew Woehlke.
12434
12435 2009-03-23  Jim Meyering  <meyering@redhat.com>
12436
12437         pathmax: PATH_MAX: use pathconf only when available
12438         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12439         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
12440         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12441         This avoids a link failure in a PSP cross-compilation environment
12442         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12443
12444         * lib/vasnprintf.c (divide): Fix typo in comment.
12445
12446 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12447
12448         * gnulib-tool (func_filter_filelist): Fix comment.
12449
12450 2009-03-20  Bruno Haible  <bruno@clisp.org>
12451
12452         Make sockets.h self-contained.
12453         * lib/sockets.c: Include sockets.h first.
12454         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12455
12456 2009-03-19  Eric Blake  <ebb9@byu.net>
12457
12458         doc: mention more functions added in cygwin 1.7.0
12459         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12460         addition.
12461         * doc/posix-functions/log2f.texi: Likewise.
12462
12463 2009-03-19  Jim Meyering  <meyering@redhat.com>
12464
12465         fsusage: avoid syntax error due to statement-before-declaration
12466         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12467         after all declarations.  Reported by Matthew Woehlke in
12468         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12469
12470 2009-03-18  Eric Blake  <ebb9@byu.net>
12471
12472         build-aux/compile: sync from automake
12473         * build-aux/compile: New file, from automake.
12474         * config/srclist.txt: Mention build-aux/compile.
12475
12476 2009-03-17  Bruno Haible  <bruno@clisp.org>
12477
12478         * lib/git-merge-changelog.c: Fix typo in comment.
12479         Reported by Reuben Thomas <rrt@sc3d.org>.
12480
12481 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
12482
12483         * m4/regex.m4: update and improve help for
12484         --without-included-regex.
12485
12486 2009-03-17  Simon Josefsson  <simon@josefsson.org>
12487
12488         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12489         failure on missing include files.
12490
12491 2009-03-17  Eric Blake  <ebb9@byu.net>
12492
12493         doc: mention more functions added in cygwin 1.7.0
12494         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12495         addition.
12496         * doc/posix-functions/fwscanf.texi: Likewise.
12497         * doc/posix-functions/swprintf.texi: Likewise.
12498         * doc/posix-functions/swscanf.texi: Likewise.
12499         * doc/posix-functions/vfwprintf.texi: Likewise.
12500         * doc/posix-functions/vfwscanf.texi: Likewise.
12501         * doc/posix-functions/vswprintf.texi: Likewise.
12502         * doc/posix-functions/vswscanf.texi: Likewise.
12503         * doc/posix-functions/vwprintf.texi: Likewise.
12504         * doc/posix-functions/vwscanf.texi: Likewise.
12505         * doc/posix-functions/wcscasecmp.texi: Likewise.
12506         * doc/posix-functions/wcsdup.texi: Likewise.
12507         * doc/posix-functions/wcsftime.texi: Likewise.
12508         * doc/posix-functions/wcsncasecmp.texi: Likewise.
12509         * doc/posix-functions/wprintf.texi: Likewise.
12510         * doc/posix-functions/wscanf.texi: Likewise.
12511         * doc/glibc-functions/gethostbyname2.texi: Likewise.
12512
12513 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12514
12515         maint.mk: really add $(AM_MAKEFLAGS)
12516         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12517         was inadvertently omitted in the last commit.
12518         Spotted by Bruno Haible.
12519
12520         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
12521         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
12522         $(AM_MAKEFLAGS)' rather than plain `make'.
12523
12524         gnulib-tool: execute $MAKE not make
12525         * gnulib-tool: Default $MAKE to 'make'.
12526         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
12527         than make.  Initialize $MAKE in the do-autobuild script.
12528
12529         gnulib-tool: use $MAKE not make in generated files
12530         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
12531         make, in generated files.  Initialize $MAKE in the do-autobuild
12532         script.
12533
12534         * top/GNUmakefile (_have-git-version-gen): Fix typo.
12535
12536         GNUmakefile: disable parallelism only for multiple, recursive targets
12537         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
12538         additions in the Makefile.
12539         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
12540         by Automake.
12541         (.NOTPARALLEL): Only disable parallel builds if multiple targets
12542         are listed on the command line and at least one of them is
12543         listed in $(ALL_RECURSIVE_TARGETS).
12544
12545 2009-03-14  Bruno Haible  <bruno@clisp.org>
12546
12547         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
12548         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
12549         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
12550         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
12551         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
12552         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
12553         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
12554         unistr/u8-uctomb.
12555         * modules/unistr/u8-strchr (Depends-on): Likewise.
12556         * modules/unistr/u8-strrchr (Depends-on): Likewise.
12557         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
12558         unistr/u16-uctomb.
12559         * modules/unistr/u16-strchr (Depends-on): Likewise.
12560         * modules/unistr/u16-strrchr (Depends-on): Likewise.
12561
12562 2009-03-12  Bruno Haible  <bruno@clisp.org>
12563
12564         Work around select() bug on Interix 3.5.
12565         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
12566         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
12567         * m4/select.m4: New file.
12568         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
12569         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
12570         * modules/select (Files): Add m4/select.m4.
12571         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
12572         * modules/nanosleep (Depends-on): Add select.
12573         * modules/poll (Depends-on): Likewise.
12574         * doc/posix-functions/select.texi: Mention the Interix bug.
12575         Reported by Markus Duft <mduft@gentoo.org>.
12576
12577         * lib/select.c: Renamed from lib/winsock-select.c.
12578         * modules/select (Files): Add lib/select.c, remove
12579         lib/winsock-select.c.
12580         (configure.ac): Update.
12581
12582 2009-03-12  Jim Meyering  <meyering@redhat.com>
12583
12584         avoid gcc warnings about unused macro definitions
12585         * lib/readtokens.c (STREQ): Remove unused definition.
12586         * lib/xmalloc.c (SIZE_MAX): Likewise.
12587         * lib/openat-die.c (N_): Likewise.
12588         * lib/mountlist.c (SIZE_MAX): Remove definition.
12589         Instead, include <stdint.h>.
12590         * lib/readutmp.c: Likewise.
12591         * modules/readutmp (Depends-on): Add stdint.
12592         * modules/mountlist (Depends-on): Add stdint.
12593         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
12594
12595 2009-03-10  Bruno Haible  <bruno@clisp.org>
12596
12597         Tests for module 'mbmemcasecoll'.
12598         * modules/mbmemcasecoll-tests: New file.
12599         * tests/test-mbmemcasecoll1.sh: New file.
12600         * tests/test-mbmemcasecoll2.sh: New file.
12601         * tests/test-mbmemcasecoll3.sh: New file.
12602         * tests/test-mbmemcasecoll.c: New file.
12603
12604         New module 'mbmemcasecoll'.
12605         * lib/mbmemcasecoll.h: New file.
12606         * lib/mbmemcasecoll.c: New file.
12607         * modules/mbmemcasecoll: New file.
12608
12609         * tests/test-mbmemcasecmp.h: New file, extracted from
12610         tests/test-mbmemcasecmp.c.
12611         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
12612         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
12613         (main): Update.
12614         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
12615
12616 2009-03-09  Bruno Haible  <bruno@clisp.org>
12617
12618         Tests for module 'mbmemcasecmp'.
12619         * modules/mbmemcasecmp-tests: New file.
12620         * tests/test-mbmemcasecmp1.sh: New file.
12621         * tests/test-mbmemcasecmp2.sh: New file.
12622         * tests/test-mbmemcasecmp3.sh: New file.
12623         * tests/test-mbmemcasecmp.c: New file.
12624
12625         New module 'mbmemcasecmp'.
12626         * lib/mbmemcasecmp.h: New file.
12627         * lib/mbmemcasecmp.c: New file.
12628         * modules/mbmemcasecmp: New file.
12629
12630 2009-03-09  Bruno Haible  <bruno@clisp.org>
12631
12632         Tests for module 'unicase/ulc-casecoll'.
12633         * modules/unicase/ulc-casecoll-tests: New file.
12634         * tests/unicase/test-ulc-casecoll1.sh: New file.
12635         * tests/unicase/test-ulc-casecoll2.sh: New file.
12636         * tests/unicase/test-ulc-casecoll.c: New file.
12637
12638         New module 'unicase/ulc-casecoll'.
12639         * lib/unicase.h (ulc_casecoll): New declaration.
12640         * lib/unicase/ulc-casecoll.c: New file.
12641         * modules/unicase/ulc-casecoll: New file.
12642
12643         New module 'unicase/ulc-casexfrm'.
12644         * lib/unicase.h (ulc_casexfrm): New declaration.
12645         * lib/unicase/ulc-casexfrm.c: New file.
12646         * modules/unicase/ulc-casexfrm: New file.
12647
12648 2009-03-09  Bruno Haible  <bruno@clisp.org>
12649
12650         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
12651         invocations.
12652
12653         * m4/mbscasecmp.m4: Remove file.
12654         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
12655         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
12656
12657         * m4/mbscasestr.m4: Remove file.
12658         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
12659         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
12660
12661         * m4/mbschr.m4: Remove file.
12662         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
12663         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
12664
12665         * m4/mbscspn.m4: Remove file.
12666         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
12667         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
12668
12669         * m4/mbslen.m4: Remove file.
12670         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
12671         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
12672
12673         * m4/mbsncasecmp.m4: Remove file.
12674         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
12675         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
12676
12677         * m4/mbsnlen.m4: Remove file.
12678         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
12679         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
12680
12681         * m4/mbspbrk.m4: Remove file.
12682         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
12683         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
12684
12685         * m4/mbspcasecmp.m4: Remove file.
12686         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
12687         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
12688
12689         * m4/mbsrchr.m4: Remove file.
12690         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
12691         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
12692
12693         * m4/mbssep.m4: Remove file.
12694         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
12695         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
12696
12697         * m4/mbsspn.m4: Remove file.
12698         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
12699         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
12700
12701         * m4/mbsstr.m4: Remove file.
12702         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
12703         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
12704
12705         * m4/mbstok_r.m4: Remove file.
12706         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
12707         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
12708
12709         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
12710
12711         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
12712         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
12713
12714         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
12715
12716 2009-03-08  Bruno Haible  <bruno@clisp.org>
12717
12718         Tests for module 'unicase/ulc-casecmp'.
12719         * modules/unicase/ulc-casecmp-tests: New file.
12720         * tests/unicase/test-ulc-casecmp1.sh: New file.
12721         * tests/unicase/test-ulc-casecmp2.sh: New file.
12722         * tests/unicase/test-ulc-casecmp.c: New file.
12723
12724         New module 'unicase/ulc-casecmp'.
12725         * lib/unicase.h (ulc_casecmp): New declaration.
12726         * lib/unicase/ulc-casecmp.c: New file.
12727         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
12728         'const SRC_UNIT *'.
12729         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
12730         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
12731         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
12732         * modules/unicase/ulc-casecmp: New file.
12733
12734         Tests for module 'unicase/u32-is-cased'.
12735         * modules/unicase/u32-is-cased-tests: New file.
12736         * tests/unicase/test-u32-is-cased.c: New file.
12737
12738         Tests for module 'unicase/u16-is-cased'.
12739         * modules/unicase/u16-is-cased-tests: New file.
12740         * tests/unicase/test-u16-is-cased.c: New file.
12741
12742         Tests for module 'unicase/u8-is-cased'.
12743         * modules/unicase/u8-is-cased-tests: New file.
12744         * tests/unicase/test-u8-is-cased.c: New file.
12745         * tests/unicase/test-is-cased.h: New file.
12746
12747         New module 'unicase/u32-is-cased'.
12748         * lib/unicase/u32-is-cased.c: New file.
12749         * modules/unicase/u32-is-cased: New file.
12750
12751         New module 'unicase/u16-is-cased'.
12752         * lib/unicase/u16-is-cased.c: New file.
12753         * modules/unicase/u16-is-cased: New file.
12754
12755         New module 'unicase/u8-is-cased'.
12756         * lib/unicase/u8-is-cased.c: New file.
12757         * lib/unicase/u-is-cased.h: New file.
12758         * modules/unicase/u8-is-cased: New file.
12759
12760         Tests for module 'unicase/u32-is-casefolded'.
12761         * modules/unicase/u32-is-casefolded-tests: New file.
12762         * tests/unicase/test-u32-is-casefolded.c: New file.
12763
12764         Tests for module 'unicase/u16-is-casefolded'.
12765         * modules/unicase/u16-is-casefolded-tests: New file.
12766         * tests/unicase/test-u16-is-casefolded.c: New file.
12767
12768         Tests for module 'unicase/u8-is-casefolded'.
12769         * modules/unicase/u8-is-casefolded-tests: New file.
12770         * tests/unicase/test-u8-is-casefolded.c: New file.
12771         * tests/unicase/test-is-casefolded.h: New file.
12772
12773         New module 'unicase/u32-is-casefolded'.
12774         * lib/unicase/u32-is-casefolded.c: New file.
12775         * modules/unicase/u32-is-casefolded: New file.
12776
12777         New module 'unicase/u16-is-casefolded'.
12778         * lib/unicase/u16-is-casefolded.c: New file.
12779         * modules/unicase/u16-is-casefolded: New file.
12780
12781         New module 'unicase/u8-is-casefolded'.
12782         * lib/unicase/u8-is-casefolded.c: New file.
12783         * modules/unicase/u8-is-casefolded: New file.
12784
12785         Tests for module 'unicase/u32-is-titlecase'.
12786         * modules/unicase/u32-is-titlecase-tests: New file.
12787         * tests/unicase/test-u32-is-titlecase.c: New file.
12788
12789         Tests for module 'unicase/u16-is-titlecase'.
12790         * modules/unicase/u16-is-titlecase-tests: New file.
12791         * tests/unicase/test-u16-is-titlecase.c: New file.
12792
12793         Tests for module 'unicase/u8-is-titlecase'.
12794         * modules/unicase/u8-is-titlecase-tests: New file.
12795         * tests/unicase/test-u8-is-titlecase.c: New file.
12796         * tests/unicase/test-is-titlecase.h: New file.
12797
12798         New module 'unicase/u32-is-titlecase'.
12799         * lib/unicase/u32-is-titlecase.c: New file.
12800         * modules/unicase/u32-is-titlecase: New file.
12801
12802         New module 'unicase/u16-is-titlecase'.
12803         * lib/unicase/u16-is-titlecase.c: New file.
12804         * modules/unicase/u16-is-titlecase: New file.
12805
12806         New module 'unicase/u8-is-titlecase'.
12807         * lib/unicase/u8-is-titlecase.c: New file.
12808         * modules/unicase/u8-is-titlecase: New file.
12809
12810         Tests for module 'unicase/u32-is-lowercase'.
12811         * modules/unicase/u32-is-lowercase-tests: New file.
12812         * tests/unicase/test-u32-is-lowercase.c: New file.
12813
12814         Tests for module 'unicase/u16-is-lowercase'.
12815         * modules/unicase/u16-is-lowercase-tests: New file.
12816         * tests/unicase/test-u16-is-lowercase.c: New file.
12817
12818         Tests for module 'unicase/u8-is-lowercase'.
12819         * modules/unicase/u8-is-lowercase-tests: New file.
12820         * tests/unicase/test-u8-is-lowercase.c: New file.
12821         * tests/unicase/test-is-lowercase.h: New file.
12822
12823         New module 'unicase/u32-is-lowercase'.
12824         * lib/unicase/u32-is-lowercase.c: New file.
12825         * modules/unicase/u32-is-lowercase: New file.
12826
12827         New module 'unicase/u16-is-lowercase'.
12828         * lib/unicase/u16-is-lowercase.c: New file.
12829         * modules/unicase/u16-is-lowercase: New file.
12830
12831         New module 'unicase/u8-is-lowercase'.
12832         * lib/unicase/u8-is-lowercase.c: New file.
12833         * modules/unicase/u8-is-lowercase: New file.
12834
12835         Tests for module 'unicase/u32-is-uppercase'.
12836         * modules/unicase/u32-is-uppercase-tests: New file.
12837         * tests/unicase/test-u32-is-uppercase.c: New file.
12838
12839         Tests for module 'unicase/u16-is-uppercase'.
12840         * modules/unicase/u16-is-uppercase-tests: New file.
12841         * tests/unicase/test-u16-is-uppercase.c: New file.
12842
12843         Tests for module 'unicase/u8-is-uppercase'.
12844         * modules/unicase/u8-is-uppercase-tests: New file.
12845         * tests/unicase/test-u8-is-uppercase.c: New file.
12846         * tests/unicase/test-is-uppercase.h: New file.
12847
12848         New module 'unicase/u32-is-uppercase'.
12849         * lib/unicase/u32-is-uppercase.c: New file.
12850         * modules/unicase/u32-is-uppercase: New file.
12851
12852         New module 'unicase/u16-is-uppercase'.
12853         * lib/unicase/u16-is-uppercase.c: New file.
12854         * modules/unicase/u16-is-uppercase: New file.
12855
12856         New module 'unicase/u8-is-uppercase'.
12857         * lib/unicase/u8-is-uppercase.c: New file.
12858         * modules/unicase/u8-is-uppercase: New file.
12859
12860         New module 'unicase/u32-is-invariant'.
12861         * lib/unicase/u32-is-invariant.c: New file.
12862         * modules/unicase/u32-is-invariant: New file.
12863
12864         New module 'unicase/u16-is-invariant'.
12865         * lib/unicase/u16-is-invariant.c: New file.
12866         * modules/unicase/u16-is-invariant: New file.
12867
12868         New module 'unicase/u8-is-invariant'.
12869         * lib/unicase/u8-is-invariant.c: New file.
12870         * lib/unicase/invariant.h: New file.
12871         * lib/unicase/u-is-invariant.h: New file.
12872         * modules/unicase/u8-is-invariant: New file.
12873
12874         Tests for module 'unicase/u32-casecoll'.
12875         * modules/unicase/u32-casecoll-tests: New file.
12876         * tests/unicase/test-u32-casecoll.c: New file.
12877
12878         Tests for module 'unicase/u16-casecoll'.
12879         * modules/unicase/u16-casecoll-tests: New file.
12880         * tests/unicase/test-u16-casecoll.c: New file.
12881
12882         Tests for module 'unicase/u8-casecoll'.
12883         * modules/unicase/u8-casecoll-tests: New file.
12884         * tests/unicase/test-u8-casecoll.c: New file.
12885
12886         New module 'unicase/u32-casecoll'.
12887         * lib/unicase/u32-casecoll.c: New file.
12888         * modules/unicase/u32-casecoll: New file.
12889
12890         New module 'unicase/u16-casecoll'.
12891         * lib/unicase/u16-casecoll.c: New file.
12892         * modules/unicase/u16-casecoll: New file.
12893
12894         New module 'unicase/u8-casecoll'.
12895         * lib/unicase/u8-casecoll.c: New file.
12896         * lib/unicase/u-casecoll.h: New file.
12897         * modules/unicase/u8-casecoll: New file.
12898
12899         New module 'unicase/u32-casexfrm'.
12900         * lib/unicase/u32-casexfrm.c: New file.
12901         * modules/unicase/u32-casexfrm: New file.
12902
12903         New module 'unicase/u16-casexfrm'.
12904         * lib/unicase/u16-casexfrm.c: New file.
12905         * modules/unicase/u16-casexfrm: New file.
12906
12907         New module 'unicase/u8-casexfrm'.
12908         * lib/unicase/u8-casexfrm.c: New file.
12909         * lib/unicase/u-casexfrm.h: New file.
12910         * modules/unicase/u8-casexfrm: New file.
12911
12912         Tests for module 'unicase/u32-casecmp'.
12913         * modules/unicase/u32-casecmp-tests: New file.
12914         * tests/unicase/test-u32-casecmp.c: New file.
12915
12916         Tests for module 'unicase/u16-casecmp'.
12917         * modules/unicase/u16-casecmp-tests: New file.
12918         * tests/unicase/test-u16-casecmp.c: New file.
12919
12920         Tests for module 'unicase/u8-casecmp'.
12921         * modules/unicase/u8-casecmp-tests: New file.
12922         * tests/unicase/test-u8-casecmp.c: New file.
12923         * tests/unicase/test-casecmp.h: New file.
12924
12925         New module 'unicase/u32-casecmp'.
12926         * lib/unicase/u32-casecmp.c: New file.
12927         * modules/unicase/u32-casecmp: New file.
12928
12929         New module 'unicase/u16-casecmp'.
12930         * lib/unicase/u16-casecmp.c: New file.
12931         * modules/unicase/u16-casecmp: New file.
12932
12933         New module 'unicase/u8-casecmp'.
12934         * lib/unicase/u8-casecmp.c: New file.
12935         * lib/unicase/u-casecmp.h: New file.
12936         * modules/unicase/u8-casecmp: New file.
12937
12938         Tests for module 'unicase/u32-casefold'.
12939         * modules/unicase/u32-casefold-tests: New file.
12940         * tests/unicase/test-u32-casefold.c: New file.
12941
12942         Tests for module 'unicase/u16-casefold'.
12943         * modules/unicase/u16-casefold-tests: New file.
12944         * tests/unicase/test-u16-casefold.c: New file.
12945
12946         Tests for module 'unicase/u8-casefold'.
12947         * modules/unicase/u8-casefold-tests: New file.
12948         * tests/unicase/test-u8-casefold.c: New file.
12949
12950         New module 'unicase/u32-casefold'.
12951         * lib/unicase/u32-casefold.c: New file.
12952         * modules/unicase/u32-casefold: New file.
12953
12954         New module 'unicase/u16-casefold'.
12955         * lib/unicase/u16-casefold.c: New file.
12956         * modules/unicase/u16-casefold: New file.
12957
12958         New module 'unicase/u8-casefold'.
12959         * lib/unicase/u8-casefold.c: New file.
12960         * lib/unicase/u-casefold.h: New file.
12961         * modules/unicase/u8-casefold: New file.
12962
12963         New module 'unicase/tocasefold'.
12964         * lib/unicase/casefold.h: New file.
12965         * lib/unicase/tocasefold.c: New file.
12966         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
12967         * modules/unicase/tocasefold: New file.
12968
12969         Tests for module 'unicase/u32-totitle'.
12970         * modules/unicase/u32-totitle-tests: New file.
12971         * tests/unicase/test-u32-totitle.c: New file.
12972
12973         Tests for module 'unicase/u16-totitle'.
12974         * modules/unicase/u16-totitle-tests: New file.
12975         * tests/unicase/test-u16-totitle.c: New file.
12976
12977         Tests for module 'unicase/u8-totitle'.
12978         * modules/unicase/u8-totitle-tests: New file.
12979         * tests/unicase/test-u8-totitle.c: New file.
12980
12981         New module 'unicase/u32-totitle'.
12982         * lib/unicase/u32-totitle.c: New file.
12983         * modules/unicase/u32-totitle: New file.
12984
12985         New module 'unicase/u16-totitle'.
12986         * lib/unicase/u16-totitle.c: New file.
12987         * modules/unicase/u16-totitle: New file.
12988
12989         New module 'unicase/u8-totitle'.
12990         * lib/unicase/u8-totitle.c: New file.
12991         * lib/unicase/u-totitle.h: New file.
12992         * modules/unicase/u8-totitle: New file.
12993
12994         Tests for module 'unicase/u32-tolower'.
12995         * modules/unicase/u32-tolower-tests: New file.
12996         * tests/unicase/test-u32-tolower.c: New file.
12997
12998         Tests for module 'unicase/u16-tolower'.
12999         * modules/unicase/u16-tolower-tests: New file.
13000         * tests/unicase/test-u16-tolower.c: New file.
13001
13002         Tests for module 'unicase/u8-tolower'.
13003         * modules/unicase/u8-tolower-tests: New file.
13004         * tests/unicase/test-u8-tolower.c: New file.
13005
13006         New module 'unicase/u32-tolower'.
13007         * lib/unicase/u32-tolower.c: New file.
13008         * modules/unicase/u32-tolower: New file.
13009
13010         New module 'unicase/u16-tolower'.
13011         * lib/unicase/u16-tolower.c: New file.
13012         * modules/unicase/u16-tolower: New file.
13013
13014         New module 'unicase/u8-tolower'.
13015         * lib/unicase/u8-tolower.c: New file.
13016         * modules/unicase/u8-tolower: New file.
13017
13018         Tests for module 'unicase/u32-toupper'.
13019         * modules/unicase/u32-toupper-tests: New file.
13020         * tests/unicase/test-u32-toupper.c: New file.
13021
13022         Tests for module 'unicase/u16-toupper'.
13023         * modules/unicase/u16-toupper-tests: New file.
13024         * tests/unicase/test-u16-toupper.c: New file.
13025
13026         Tests for module 'unicase/u8-toupper'.
13027         * modules/unicase/u8-toupper-tests: New file.
13028         * tests/unicase/test-u8-toupper.c: New file.
13029
13030         New module 'unicase/u32-toupper'.
13031         * lib/unicase/u32-toupper.c: New file.
13032         * modules/unicase/u32-toupper: New file.
13033
13034         New module 'unicase/u16-toupper'.
13035         * lib/unicase/u16-toupper.c: New file.
13036         * modules/unicase/u16-toupper: New file.
13037
13038         New module 'unicase/u8-toupper'.
13039         * lib/unicase/u8-toupper.c: New file.
13040         * modules/unicase/u8-toupper: New file.
13041
13042         New module 'unicase/u32-casemap'.
13043         * lib/unicase/u32-casemap.c: New file.
13044         * modules/unicase/u32-casemap: New file.
13045
13046         New module 'unicase/u16-casemap'.
13047         * lib/unicase/u16-casemap.c: New file.
13048         * modules/unicase/u16-casemap: New file.
13049
13050         New module 'unicase/u8-casemap'.
13051         * lib/unicase/unicasemap.h: New file.
13052         * lib/unicase/u8-casemap.c: New file.
13053         * lib/unicase/u-casemap.h: New file.
13054         * modules/unicase/u8-casemap: New file.
13055
13056         New module 'unicase/special-casing'.
13057         * lib/unicase/special-casing.h: New file.
13058         * lib/unicase/special-casing.c: New file.
13059         * lib/unicase/special-casing-table.gperf: New file, generated by
13060         gen-uni-tables.c.
13061         * modules/unicase/special-casing: New file.
13062
13063         Tests for module 'unicase/locale-language'.
13064         * modules/unicase/locale-language-tests: New file.
13065         * tests/unicase/test-locale-language.sh: New file.
13066         * tests/unicase/test-locale-language.c: New file.
13067
13068         New module 'unicase/locale-language'.
13069         * lib/unicase/locale-language.c: New file.
13070         * lib/unicase/locale-languages.gperf: New file.
13071         * modules/unicase/locale-language: New file.
13072
13073         Generate more tables for case conversion and case folding.
13074         * lib/gen-uni-tables.c (SCC_*): New enum items.
13075         (struct special_casing_rule): New type.
13076         (casing_rules, num_casing_rules, allocated_casing_rules): New
13077         variables.
13078         (add_casing_rule, fill_casing_rules): New functions.
13079         (struct casefold_rule): New type.
13080         (casefolding_rules, num_casefolding_rules,
13081         allocated_casefolding_rules): New variables.
13082         (fill_casefolding_rules): New function.
13083         (unicode_casefold): New variable.
13084         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13085         sort_casing_rules, output_casing_rules): New functions.
13086         (main): Accept to more arguments: SpecialCasing.txt and
13087         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13088         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13089         Output mapping for casefolding.
13090
13091         * lib/unicase.h: Include stdbool.h, uninorm.h.
13092         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13093         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13094         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13095         arguments.
13096         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13097         resultp arguments.
13098         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13099         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13100         resultp arguments.
13101         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13102         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13103         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13104         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13105         declarations.
13106         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13107
13108 2009-03-08  Bruno Haible  <bruno@clisp.org>
13109
13110         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13111         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13112         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13113         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13114
13115 2009-03-07  Bruno Haible  <bruno@clisp.org>
13116
13117         Adjust u*_normcmp, u*_normcoll API.
13118         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13119         u16_normcoll, u32_normcoll): Change failure conventions.
13120         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13121         errno and return -1.
13122         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13123
13124 2009-03-07  Bruno Haible  <bruno@clisp.org>
13125
13126         Tests for module 'uninorm/u32-normcoll'.
13127         * modules/uninorm/u32-normcoll-tests: New file.
13128         * tests/uninorm/test-u32-normcoll.c: New file.
13129
13130         Tests for module 'uninorm/u16-normcoll'.
13131         * modules/uninorm/u16-normcoll-tests: New file.
13132         * tests/uninorm/test-u16-normcoll.c: New file.
13133
13134         Tests for module 'uninorm/u8-normcoll'.
13135         * modules/uninorm/u8-normcoll-tests: New file.
13136         * tests/uninorm/test-u8-normcoll.c: New file.
13137
13138 2009-03-07  Bruno Haible  <bruno@clisp.org>
13139
13140         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13141         tests/uninorm/test-u32-normcmp.c.
13142         * tests/uninorm/test-u32-normcmp.c: Include it.
13143         (test_nonascii): New function, extracted from main. Add some more
13144         tests.
13145         (main): Invoke test_ascii and test_nonascii.
13146         * modules/uninorm/u32-normcmp-tests (Files): Add
13147         tests/uninorm/test-u32-normcmp.h.
13148         (Depends-on): Remove uninorm/u32-normcmp.
13149
13150         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13151         tests/uninorm/test-u16-normcmp.c.
13152         * tests/uninorm/test-u16-normcmp.c: Include it.
13153         (test_nonascii): New function, extracted from main. Add some more
13154         tests.
13155         (main): Invoke test_ascii and test_nonascii.
13156         * modules/uninorm/u16-normcmp-tests (Files): Add
13157         tests/uninorm/test-u16-normcmp.h.
13158         (Depends-on): Remove uninorm/u16-normcmp.
13159
13160         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13161         tests/uninorm/test-u8-normcmp.c.
13162         * tests/uninorm/test-u8-normcmp.c: Include it.
13163         (test_nonascii): New function, extracted from main. Add some more
13164         tests.
13165         (main): Invoke test_ascii and test_nonascii.
13166         * modules/uninorm/u8-normcmp-tests (Files): Add
13167         tests/uninorm/test-u8-normcmp.h.
13168         (Depends-on): Remove uninorm/u8-normcmp.
13169
13170 2009-03-07  Bruno Haible  <bruno@clisp.org>
13171
13172         New module 'uninorm/u32-normcoll'.
13173         * lib/uninorm/u32-normcoll.c: New file.
13174         * modules/uninorm/u32-normcoll: New file.
13175
13176         New module 'uninorm/u16-normcoll'.
13177         * lib/uninorm/u16-normcoll.c: New file.
13178         * modules/uninorm/u16-normcoll: New file.
13179
13180         New module 'uninorm/u8-normcoll'.
13181         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13182         declarations.
13183         * lib/uninorm/u8-normcoll.c: New file.
13184         * lib/uninorm/u-normcoll.h: New file.
13185         * modules/uninorm/u8-normcoll: New file.
13186
13187         New module 'uninorm/u32-normxfrm'.
13188         * lib/uninorm/u32-normxfrm.c: New file.
13189         * modules/uninorm/u32-normxfrm: New file.
13190
13191         New module 'uninorm/u16-normxfrm'.
13192         * lib/uninorm/u16-normxfrm.c: New file.
13193         * modules/uninorm/u16-normxfrm: New file.
13194
13195         New module 'uninorm/u8-normxfrm'.
13196         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13197         declarations.
13198         * lib/uninorm/u8-normxfrm.c: New file.
13199         * lib/uninorm/u-normxfrm.h: New file.
13200         * modules/uninorm/u8-normxfrm: New file.
13201
13202 2009-03-07  Bruno Haible  <bruno@clisp.org>
13203
13204         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13205         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13206         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13207
13208 2009-03-07  Bruno Haible  <bruno@clisp.org>
13209
13210         New module 'memxfrm'.
13211         * lib/memxfrm.h: New file.
13212         * lib/memxfrm.c: New file.
13213         * modules/memxfrm: New file.
13214
13215 2009-03-07  Bruno Haible  <bruno@clisp.org>
13216
13217         New module 'memcmp2'.
13218         * lib/memcmp2.h: New file.
13219         * lib/memcmp2.c: New file.
13220         * modules/memcmp2: New file.
13221
13222 2009-03-07  Bruno Haible  <bruno@clisp.org>
13223
13224         Tests for module 'uninorm/decomposing-form'.
13225         * modules/uninorm/decomposing-form-tests: New file.
13226         * tests/uninorm/test-decomposing-form.c: New file.
13227
13228         New module 'uninorm/decomposing-form'.
13229         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13230         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13231         Add 'decomposing_variant' field.
13232         * lib/uninorm/decomposing-form.c: New file.
13233         * lib/uninorm/nfc.c (uninorm_nfc): Update.
13234         * lib/uninorm/nfd.c (uninorm_nfd): Update.
13235         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13236         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13237         * modules/uninorm/decomposing-form: New file.
13238         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13239         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13240
13241 2009-03-07  Bruno Haible  <bruno@clisp.org>
13242
13243         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13244         strings.
13245
13246 2009-03-06  Bruno Haible  <bruno@clisp.org>
13247
13248         Tests for module 'uninorm/u32-normcmp'.
13249         * tests/uninorm/test-u32-normcmp.c: New file.
13250         * modules/uninorm/u32-normcmp-tests: New file.
13251
13252         Tests for module 'uninorm/u16-normcmp'.
13253         * tests/uninorm/test-u16-normcmp.c: New file.
13254         * modules/uninorm/u16-normcmp-tests: New file.
13255
13256         Tests for module 'uninorm/u8-normcmp'.
13257         * tests/uninorm/test-u8-normcmp.c: New file.
13258         * modules/uninorm/u8-normcmp-tests: New file.
13259
13260         New module 'uninorm/u32-normcmp'.
13261         * lib/uninorm/u32-normcmp.c: New file.
13262         * modules/uninorm/u32-normcmp: New file.
13263
13264         New module 'uninorm/u16-normcmp'.
13265         * lib/uninorm/u16-normcmp.c: New file.
13266         * modules/uninorm/u16-normcmp: New file.
13267
13268         New module 'uninorm/u8-normcmp'.
13269         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13270         declarations.
13271         * lib/uninorm/u8-normcmp.c: New file.
13272         * lib/uninorm/u-normcmp.h: New file.
13273         * modules/uninorm/u8-normcmp: New file.
13274
13275 2009-03-06  Bruno Haible  <bruno@clisp.org>
13276
13277         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13278         Reported by Eric Blake.
13279
13280 2009-03-06  Eric Blake  <ebb9@byu.net>
13281             Bruno Haible  <bruno@clisp.org>
13282
13283         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13284         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13285         condition.
13286         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13287         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13288         condition.
13289         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13290
13291 2009-03-06  Eric Blake  <ebb9@byu.net>
13292
13293         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13294         to avoid compiler warnings.
13295         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13296
13297 2009-03-05  Bruno Haible  <bruno@clisp.org>
13298
13299         * tests/test-ftell.c (main): Disable test beyond end of file on
13300         FreeMiNT.
13301         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13302
13303 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
13304
13305         * lib/filevercmp.c: Move hidden files up in ordering.
13306         * tests/test-filevercmp.c: Add tests for hidden files.
13307
13308 2009-03-04  Bruno Haible  <bruno@clisp.org>
13309
13310         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13311         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13312         AM_CFLAGS.
13313         Reported by Simon Josefsson.
13314
13315 2009-03-03  Bruno Haible  <bruno@clisp.org>
13316
13317         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13318         Reported by Simon Josefsson.
13319
13320         * doc/ld-version-script.texi: Update node reference.
13321
13322 2009-03-03  Bruno Haible  <bruno@clisp.org>
13323
13324         * modules/visibility (License): Change to 'unlimited'.
13325         Suggested by Simon Josefsson.
13326
13327 2009-03-03  Jim Meyering  <meyering@redhat.com>
13328
13329         unlinkdir: cannot_unlink_dir may modify process state
13330         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13331         it's neither thread-safe nor appropriate for use in a library.
13332
13333 2009-03-03  Eric Blake  <ebb9@byu.net>
13334
13335         test-closein: silence test under Darwin
13336         * tests/test-closein.sh: Ignore stderr from cat, since we don't
13337         care if it dies from EPIPE or EBADF.
13338
13339 2009-03-03  Bruno Haible  <bruno@clisp.org>
13340
13341         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13342         earlier.
13343         * doc/visibility.texi: Fix @node and @section.
13344
13345 2009-03-03  Simon Josefsson  <simon@josefsson.org>
13346
13347         * doc/gnulib.texi: Link to sections for ld version script and
13348         visibility.
13349         * doc/visibility.texi: Add @node and @section.
13350         * modules/ld-version-script: New module.
13351         * m4/ld-version-script.m4: New file.
13352         * doc/ld-version-script.texi: New file.
13353
13354 2009-03-02  David Lutterkort  <lutter@redhat.com>
13355
13356         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13358
13359 2009-03-02  Bruno Haible  <bruno@clisp.org>
13360
13361         * doc/visibility.texi: Mention libtool's -export-symbols option.
13362
13363 2009-03-02  Jim Meyering  <meyering@redhat.com>
13364
13365         announce-gen: new option: --no-print-checksums
13366         * build-aux/announce-gen (usage): Describe it.
13367         (print_checksums): Print a newline here, not in the [*] footnote.
13368         (main): Honor it.
13369
13370 2009-03-01  Bruno Haible  <bruno@clisp.org>
13371
13372         Use socklen_t in the native Windows replacements prototypes.
13373         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13374         instead of 'int'.
13375         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13376         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13377         * modules/getsockopt (Depends-on): Add socklen.
13378         * modules/setsockopt (Depends-on): Add socklen.
13379
13380 2009-03-01  Bruno Haible  <bruno@clisp.org>
13381
13382         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13383         least 4.2.
13384
13385 2009-03-01  Eric Blake  <ebb9@byu.net>
13386             Bruno Haible  <bruno@clisp.org>
13387
13388         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13389         error messages.
13390         * lib/wait-process.c (wait_subprocess): Omit error message about
13391         deadly signal sent to the child of termsigp != NULL.
13392
13393 2009-03-01  Eric Blake  <ebb9@byu.net>
13394
13395         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13396
13397 2009-03-01  Bruno Haible  <bruno@clisp.org>
13398
13399         Avoid a gcc warning.
13400         * tests/test-sched.c (b): Make global.
13401         Reported by Eric Blake.
13402
13403 2009-01-19  Martin Lambers  <marlam@marlam.de>
13404
13405         Provide POSIX semantics for socket timeout options on W32.
13406         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13407         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13408         * modules/setsockopt: Depend on sys_time module for struct timeval.
13409         * modules/getsockopt: Depend on sys_time module for struct timeval.
13410
13411 2009-03-01  Simon Josefsson  <simon@josefsson.org>
13412
13413         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13414         __USE_GNU, for consistency with netdb.in.h.
13415         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13416
13417 2009-03-01  Bruno Haible  <bruno@clisp.org>
13418
13419         More support for FreeMiNT.
13420         * lib/fseeko.c (rpl_fseeko): Complete last commit.
13421         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13422
13423 2009-03-01  Bruno Haible  <bruno@clisp.org>
13424
13425         More support for FreeMiNT.
13426         * lib/fpurge.c (fpurge): Correct last commit.
13427         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13428
13429 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13430
13431         Fix unportable awk script in vc-list-files.
13432         * build-aux/vc-list-files: In the replacement awk script, use
13433         substr with a second argument of 1, not zero.
13434         Report by Simon Josefsson.
13435
13436 2009-02-28  Bruno Haible  <bruno@clisp.org>
13437
13438         More support for FreeMiNT.
13439         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13440         to FreeMiNT today.
13441         * lib/fwriting.c (fwriting): Likewise.
13442         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13443
13444 2009-02-28  Bruno Haible  <bruno@clisp.org>
13445
13446         * tests/test-freadseek.c (main): Disable test beyond end of file on
13447         FreeMiNT.
13448         * tests/test-ftello.c (main): Likewise.
13449         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13450
13451 2009-02-28  Bruno Haible  <bruno@clisp.org>
13452
13453         Add tentative support for FreeMiNT.
13454         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13455         * lib/fpurge.c (fpurge): Likewise.
13456         * lib/freadable.c (freadable): Likewise.
13457         * lib/freading.c (freading): Likewise.
13458         * lib/freadptr.c (freadptr): Likewise.
13459         * lib/freadseek.c (freadptrinc): Likewise.
13460         * lib/fseeko.c (rpl_fseeko): Likewise.
13461         * lib/fseterr.c (fseterr): Likewise.
13462         * lib/fwritable.c (fwritable): Likewise.
13463         * lib/fwriting.c (fwriting): Likewise.
13464         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13465         Hourihane.
13466         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13467
13468 2009-02-28  Bruno Haible  <bruno@clisp.org>
13469
13470         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13471         SIGCHLD.
13472         Reported by Jim Meyering.
13473
13474 2009-02-28  Bruno Haible  <bruno@clisp.org>
13475
13476         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13477         Mention the results of these tests on various platforms.
13478         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13479         order.
13480         * doc/posix-functions/printf.texi: Likewise.
13481         * doc/posix-functions/snprintf.texi: Likewise.
13482         * doc/posix-functions/sprintf.texi: Likewise.
13483         * doc/posix-functions/vfprintf.texi: Likewise.
13484         * doc/posix-functions/vprintf.texi: Likewise.
13485         * doc/posix-functions/vsnprintf.texi: Likewise.
13486         * doc/posix-functions/vsprintf.texi: Likewise.
13487         * doc/glibc-functions/obstack_printf.texi: Likewise.
13488         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13489
13490 2009-02-28  Bruno Haible  <bruno@clisp.org>
13491
13492         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13493         Reported by Loïc Minier <lool@dooz.org>.
13494
13495 2009-02-27  Bruno Haible  <bruno@clisp.org>
13496
13497         * gnulib-tool (func_import): Make the sed expression used to create the
13498         sed script for updating the .gitignore file POSIX compliant.
13499         Reported by Eric Blake.
13500
13501 2009-02-27  Bruno Haible  <bruno@clisp.org>
13502
13503         * gnulib-tool (sed): Don't alias as "sed --posix".
13504         Reported by Eric Blake.
13505
13506 2009-02-27  Bruno Haible  <bruno@clisp.org>
13507
13508         Avoid test link errors.
13509         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13510         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13511         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13512         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13514
13515 2009-02-27  Bruno Haible  <bruno@clisp.org>
13516
13517         Avoid spurious "(cached)" in configure output.
13518         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
13519         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
13520         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13521         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13522         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13523         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13524         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13525         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13526         Reported by Eric Blake.
13527
13528 2009-02-27  Eric Blake  <ebb9@byu.net>
13529
13530         printf: fix regression in previous patch
13531         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
13532
13533 2009-02-27  Bruno Haible  <bruno@clisp.org>
13534
13535         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
13536         value.
13537         * lib/stdint.in.h: Likewise.
13538         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
13539
13540 2009-02-27  Eric Blake  <ebb9@byu.net>
13541
13542         doc: mention more functions added in cygwin 1.7.0
13543         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
13544         addition.
13545         * doc/posix-functions/open_wmemstream.texi: Likewise.
13546         * doc/posix-functions/wcsnlen.texi: Likewise.
13547         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13548         * doc/posix-functions/wcstod.texi: Likewise.
13549         * doc/posix-functions/wcstof.texi: Likewise.
13550         * doc/posix-functions/wcstoimax.texi: Likewise.
13551         * doc/posix-functions/wcstok.texi: Likewise.
13552         * doc/posix-functions/wcstoumax.texi: Likewise.
13553
13554         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
13555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
13556         * doc/posix-functions/fprintf.texi: Update.
13557         * doc/posix-functions/printf.texi: Update.
13558         * doc/posix-functions/snprintf.texi: Update.
13559         * doc/posix-functions/sprintf.texi: Update.
13560         * doc/posix-functions/vfprintf.texi: Update.
13561         * doc/posix-functions/vprintf.texi: Update.
13562         * doc/posix-functions/vsnprintf.texi: Update.
13563         * doc/posix-functions/vsprintf.texi: Update.
13564         * doc/glibc-functions/obstack_printf.texi: Update.
13565         * doc/glibc-functions/obstack_vprintf.texi: Update.
13566
13567 2009-02-26  Eric Blake  <ebb9@byu.net>
13568
13569         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
13570         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
13571         compilation bug by using runtime conversion.
13572         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13573         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
13574         * modules/ceill-tests (Files): Use nan.h.
13575         * modules/floorl-tests (Files): Likewise.
13576         * modules/frexpl-tests (Files): Likewise.
13577         * modules/isnanl-tests (Files): Likewise.
13578         * modules/ldexpl-tests (Files): Likewise.
13579         * modules/roundl-tests (Files): Likewise.
13580         * modules/truncl-tests (Files): Likewise.
13581         * tests/test-ceill.c (main): Use a working NaN.
13582         * tests/test-floorl.c (main): Likewise.
13583         * tests/test-frexpl.c (main): Likewise.
13584         * tests/test-isnan.c (test_long_double): Likewise.
13585         * tests/test-isnanl.h (main): Likewise.
13586         * tests/test-ldexpl.h (main): Likewise.
13587         * tests/test-roundl.h (main): Likewise.
13588         * tests/test-truncl.h (main): Likewise.
13589         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
13590
13591 2009-02-26  Eric Blake  <ebb9@byu.net>
13592             Bruno Haible  <bruno@clisp.org>
13593
13594         Work around a *printf bug with %ls on Solaris.
13595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
13596         precision is specified, sprintf stops converting the wide string
13597         argument when the number of bytes that have been produced by this
13598         conversion equals or exceeds the precision.
13599         * doc/posix-functions/fprintf.texi: Update.
13600         * doc/posix-functions/printf.texi: Update.
13601         * doc/posix-functions/snprintf.texi: Update.
13602         * doc/posix-functions/sprintf.texi: Update.
13603         * doc/posix-functions/vfprintf.texi: Update.
13604         * doc/posix-functions/vprintf.texi: Update.
13605         * doc/posix-functions/vsnprintf.texi: Update.
13606         * doc/posix-functions/vsprintf.texi: Update.
13607         * doc/glibc-functions/obstack_printf.texi: Update.
13608         * doc/glibc-functions/obstack_vprintf.texi: Update.
13609
13610 2009-02-26  Eric Blake  <ebb9@byu.net>
13611
13612         stdlib: favor compiler check of random.h
13613         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
13614         to avoid an ObjC random.h installed by Swarm.
13615
13616 2009-02-26  Bruno Haible  <bruno@clisp.org>
13617
13618         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
13619         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
13620         Reported by Gary V. Vaughan <gary@gnu.org>.
13621
13622 2009-02-26  Bruno Haible  <bruno@clisp.org>
13623
13624         Fix *printf behaviour regarding the %ls directive.
13625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
13626         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
13627         NEED_PRINTF_DIRECTIVE_LS.
13628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
13629         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
13630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
13631         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
13632         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
13633         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
13634         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
13635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
13636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13639         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
13640         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
13641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13643         * doc/posix-functions/fprintf.texi: Update.
13644         * doc/posix-functions/printf.texi: Update.
13645         * doc/posix-functions/snprintf.texi: Update.
13646         * doc/posix-functions/sprintf.texi: Update.
13647         * doc/posix-functions/vfprintf.texi: Update.
13648         * doc/posix-functions/vprintf.texi: Update.
13649         * doc/posix-functions/vsnprintf.texi: Update.
13650         * doc/posix-functions/vsprintf.texi: Update.
13651         * doc/glibc-functions/obstack_printf.texi: Update.
13652         * doc/glibc-functions/obstack_vprintf.texi: Update.
13653         Reported by Eric Blake.
13654
13655 2009-02-25  Bruno Haible  <bruno@clisp.org>
13656
13657         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
13658         with known value.
13659         Reported by Gary V. Vaughan <gary@gnu.org>.
13660
13661 2009-02-25  Bruno Haible  <bruno@clisp.org>
13662
13663         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
13664         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
13665         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
13666         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
13667         Reported by Gary V. Vaughan <gary@gnu.org>.
13668
13669 2009-02-25  Bruno Haible  <bruno@clisp.org>
13670
13671         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
13672         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
13673         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
13674         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
13675         Reported by Gary V. Vaughan <gary@gnu.org>.
13676
13677 2009-02-25  Eric Blake  <ebb9@byu.net>
13678
13679         tests: skip fseek/ftell tests if ungetc is broken
13680         * m4/ungetc.m4: New file.
13681         * modules/fseek-tests: Split test, so ungetc dependency is
13682         separate from rest of test.
13683         * modules/fseeko-tests: Likewise.
13684         * modules/ftell-tests: Likewise.
13685         * modules/ftello-tests: Likewise.
13686         * tests/test-fseek.c (main): Isolate ungetc dependency.
13687         * tests/test-fseeko.c (main): Likewise.
13688         * tests/test-ftell.c (main): Likewise.
13689         * tests/test-ftello.c (main): Likewise.
13690         * tests/test-fseek2.sh: New file.
13691         * tests/test-fseeko2.sh: Likewise.
13692         * tests/test-ftell2.sh: Likewise.
13693         * tests/test-ftello2.sh: Likewise.
13694
13695 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
13696
13697         test-getaddrinfo: fix usage of skip return code 77
13698         * tests/test-gettaddrinfo.c: Return skip code 77 only
13699         for first occurance of skip (4x77 is not 77)
13700
13701 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
13702
13703         strtod: avoid C99 decl-after-statement
13704         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
13705
13706 2009-02-24  Eric Blake  <ebb9@byu.net>
13707
13708         strtod: detect HP-UX 11.31 bug
13709         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
13710         Reported by Gary V. Vaughan.
13711
13712 2009-02-23  Bruno Haible  <bruno@clisp.org>
13713
13714         Fix invalid read past end of memory block.
13715         * lib/vasnprintf.c (DCHAR_SET): Define.
13716         (local_wcslen): Define only when needed.
13717         (local_strnlen, local_wcsnlen): New functions.
13718         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
13719         directives that involve a conversion ourselves.
13720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
13721         wcsnlen, mbrtowc, wcrtomb.
13722         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
13723         * tests/test-vasprintf-posix.c (test_function): Likewise.
13724         * tests/test-snprintf-posix.h (test_function): Likewise.
13725         * tests/test-sprintf-posix.h (test_function): Likewise.
13726         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13727
13728 2009-02-22  Bruno Haible  <bruno@clisp.org>
13729
13730         Implement new clarified decomposition of Hangul syllables.
13731         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
13732         of type LTV, return only a pairwise decomposition.
13733         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
13734         Likewise.
13735         * tests/uninorm/test-decomposition.c (main): Updated expected result.
13736         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
13737         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
13738
13739 2009-02-22  Bruno Haible  <bruno@clisp.org>
13740
13741         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
13742         zero-length results and shrink excess allocated memory.
13743         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
13744         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
13745         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
13746         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
13747         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
13748         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
13749         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
13750         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
13751         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
13752         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
13753         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
13754         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
13755
13756 2009-02-21  Bruno Haible  <bruno@clisp.org>
13757
13758         * doc/gnulib.texi: Include safe-alloc.texi earlier.
13759         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
13760         spaces after a period. Put a space between a macro name and its
13761         argument list. Trivial rewordings.
13762         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
13763         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
13764         (main): Return 0 explicitly.
13765
13766 2009-02-21  Bruno Haible  <bruno@clisp.org>
13767
13768         Tests for module 'uninorm/filter'.
13769         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
13770         * modules/uninorm/filter-tests: New file.
13771
13772         New module 'uninorm/filter'.
13773         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
13774         uninorm_filter_flush, uninorm_filter_free): New declarations.
13775         * lib/uninorm/uninorm-filter.c: New file.
13776         * modules/uninorm/filter: New file.
13777
13778 2009-02-21  Bruno Haible  <bruno@clisp.org>
13779
13780         Tests for module 'uninorm/nfkc'.
13781         * tests/uninorm/test-nfkc.c: New file.
13782         * tests/uninorm/test-u8-nfkc.c: New file.
13783         * tests/uninorm/test-u16-nfkc.c: New file.
13784         * tests/uninorm/test-u32-nfkc.c: New file.
13785         * tests/uninorm/test-u32-nfkc-big.sh: New file.
13786         * tests/uninorm/test-u32-nfkc-big.c: New file.
13787         * modules/uninorm/nfkc-tests: New file.
13788
13789         New module 'uninorm/nfkc'.
13790         * lib/uninorm/nfkc.c: New file.
13791         * modules/uninorm/nfkc: New file.
13792
13793         Tests for module 'uninorm/nfkd'.
13794         * tests/uninorm/test-nfkd.c: New file.
13795         * tests/uninorm/test-u8-nfkd.c: New file.
13796         * tests/uninorm/test-u16-nfkd.c: New file.
13797         * tests/uninorm/test-u32-nfkd.c: New file.
13798         * tests/uninorm/test-u32-nfkd-big.sh: New file.
13799         * tests/uninorm/test-u32-nfkd-big.c: New file.
13800         * modules/uninorm/nfkd-tests: New file.
13801
13802         New module 'uninorm/nfkd'.
13803         * lib/uninorm/nfkd.c: New file.
13804         * modules/uninorm/nfkd: New file.
13805
13806         Tests for module 'uninorm/nfc'.
13807         * tests/uninorm/test-nfc.c: New file.
13808         * tests/uninorm/test-u8-nfc.c: New file.
13809         * tests/uninorm/test-u16-nfc.c: New file.
13810         * tests/uninorm/test-u32-nfc.c: New file.
13811         * tests/uninorm/test-u32-nfc-big.sh: New file.
13812         * tests/uninorm/test-u32-nfc-big.c: New file.
13813         * modules/uninorm/nfc-tests: New file.
13814
13815         New module 'uninorm/nfc'.
13816         * lib/uninorm/nfc.c: New file.
13817         * modules/uninorm/nfc: New file.
13818
13819         Tests for module 'uninorm/nfd'.
13820         * tests/uninorm/test-nfd.c: New file.
13821         * tests/uninorm/test-u8-nfd.c: New file.
13822         * tests/uninorm/test-u16-nfd.c: New file.
13823         * tests/uninorm/test-u32-nfd.c: New file.
13824         * tests/uninorm/test-u32-nfd-big.sh: New file.
13825         * tests/uninorm/test-u32-nfd-big.c: New file.
13826         * tests/uninorm/test-u32-normalize-big.h: New file.
13827         * tests/uninorm/test-u32-normalize-big.c: New file.
13828         * tests/uninorm/NormalizationTest.txt: New file, created from
13829         Unicode 5.1.0 NormalizationTest.txt.
13830         * modules/uninorm/nfd-tests: New file.
13831
13832         New module 'uninorm/nfd'.
13833         * lib/uninorm/nfd.c: New file.
13834         * modules/uninorm/nfd: New file.
13835
13836         New module 'uninorm/u32-normalize'.
13837         * lib/uninorm/u32-normalize.c: New file.
13838         * modules/uninorm/u32-normalize: New file.
13839
13840         New module 'uninorm/u16-normalize'.
13841         * lib/uninorm/u16-normalize.c: New file.
13842         * modules/uninorm/u16-normalize: New file.
13843
13844         New module 'uninorm/u8-normalize'.
13845         * lib/uninorm/u8-normalize.c: New file.
13846         * lib/uninorm/normalize-internal.h: New file.
13847         * lib/uninorm/u-normalize-internal.h: New file.
13848         * modules/uninorm/u8-normalize: New file.
13849
13850         New module 'uninorm/decompose-internal'.
13851         * lib/uninorm/decompose-internal.c: New file.
13852         * modules/uninorm/decompose-internal: New file.
13853
13854         Tests for module 'uninorm/composition'.
13855         * tests/uninorm/test-composition.c: New file.
13856         * modules/uninorm/composition-tests: New file.
13857
13858         New module 'uninorm/composition'.
13859         * lib/uninorm/composition.c: New file.
13860         * lib/uninorm/composition-table.gperf: New file, generated by
13861         gen-uni-tables.
13862         * modules/uninorm/composition: New file.
13863
13864         Tests for module 'uninorm/compat-decomposition'.
13865         * tests/uninorm/test-compat-decomposition.c: New file.
13866         * modules/uninorm/compat-decomposition-tests: New file.
13867
13868         New module 'uninorm/compat-decomposition'.
13869         * lib/uninorm/decompose-internal.h: New file.
13870         * lib/uninorm/compat-decomposition.c: New file.
13871         * modules/uninorm/compat-decomposition: New file.
13872
13873         Tests for module 'uninorm/canonical-decomposition'.
13874         * tests/uninorm/test-canonical-decomposition.c: New file.
13875         * modules/uninorm/canonical-decomposition-tests: New file.
13876
13877         New module 'uninorm/canonical-decomposition'.
13878         * lib/uninorm/canonical-decomposition.c: New file.
13879         * modules/uninorm/canonical-decomposition: New file.
13880
13881         Tests for module 'uninorm/decomposition'.
13882         * tests/uninorm/test-decomposition.c: New file.
13883         * modules/uninorm/decomposition-tests: New file.
13884
13885         New module 'uninorm/decomposition'.
13886         * lib/uninorm/decomposition.c: New file.
13887         * modules/uninorm/decomposition: New file.
13888
13889         New module 'uninorm/decomposition-table'.
13890         * lib/uninorm/decomposition-table.h: New file.
13891         * lib/uninorm/decomposition-table.c: New file.
13892         * lib/uninorm/decomposition-table1.h: New file, generated by
13893         gen-uni-tables.
13894         * lib/uninorm/decomposition-table2.h: New file, generated by
13895         gen-uni-tables.
13896         * modules/uninorm/decomposition-table: New file.
13897
13898         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
13899         (UC_DECOMP_*): New enumeration items.
13900         (get_decomposition): New function.
13901         (struct decomp_table): New type.
13902         (output_decomposition, output_decomposition_tables): New functions.
13903         (unicode_composition_exclusions): New variable.
13904         (fill_composition_exclusions, debug_output_composition_tables): New
13905         functions.
13906         (main): Accept one more argument. Invoke fill_composition_exclusions.
13907         Output decomposition and composition tables.
13908
13909         New module 'uninorm/base'.
13910         * lib/uninorm.h: New file.
13911         * lib/unictype.h: Update comment.
13912         * modules/uninorm/base: New file.
13913
13914 2009-02-21  David Lutterkort  <lutter@redhat.com>
13915
13916         Tests for module 'safe-alloc'.
13917         * tests/test-safe-alloc.c: New file.
13918         * modules/safe-alloc-tests: New file.
13919
13920         New module 'safe-alloc'.
13921         * lib/safe-alloc.h: New file.
13922         * lib/safe-alloc.c: New file.
13923         * m4/safe-alloc.m4: New file.
13924         * modules/safe-alloc: New file.
13925         * doc/safe-alloc.texi: New file.
13926         * doc/gnulib.texi: Include it.
13927         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13928         safe-alloc.
13929
13930 2009-02-18  Bruno Haible  <bruno@clisp.org>
13931
13932         Fix link error on non-glibc systems.
13933         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
13934         variable.
13935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13936
13937 2009-02-18  Jim Meyering  <meyering@redhat.com>
13938
13939         fts: avoid used-uninitialized error due to recent change
13940         * lib/fts.c (fts_read): Guard uses of the new member,
13941         parent->fts_n_dirs_remaining, since it's not relevant for
13942         the parent of a directory specified on the command-line.
13943
13944 2009-02-17  James Youngman  <jay@gnu.org>
13945             Bruno Haible  <bruno@clisp.org>
13946
13947         * m4/include_next.m4: Reformulate comment.
13948
13949 2009-02-16  Jim Meyering  <meyering@redhat.com>
13950
13951         fts: add #if guards so that the fts_lgpl module still builds
13952         * lib/fts.c: Guard just-added hash-table-using parts with
13953         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
13954         Reported by Simon Josefsson.
13955
13956 2009-02-15  Bruno Haible  <bruno@clisp.org>
13957
13958         * modules/array-mergesort-tests: New file.
13959         * tests/test-array-mergesort.c: New file.
13960
13961         New module 'array-mergesort'.
13962         * modules/array-mergesort: New file.
13963         * lib/array-mergesort.h: New file.
13964
13965 2009-02-15  Bruno Haible  <bruno@clisp.org>
13966
13967         Fix 2009-02-07 commit.
13968         * lib/gen-uni-tables.c (output_predicate, output_category,
13969         output_combclass, output_bidi_category, output_decimal_digit,
13970         output_digit, output_numeric, output_mirror, output_scripts,
13971         output_ident_category, output_simple_mapping): Fix format directives.
13972         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
13973
13974 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
13975
13976         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
13977         fixes are available from IBM.
13978
13979 2009-02-13  Jim Meyering  <meyering@redhat.com>
13980
13981         fts: arrange not to stat non-directories in more cases
13982         This makes GNU find (when it doesn't need to stat each file)
13983         *much* more efficient at traversing reiserfs file systems.
13984         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
13985         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
13986         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
13987         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
13988         (leaf_optimization_applies): New function.
13989         (LCO_hash, LCO_compare): New helper functions.
13990         (link_count_optimize_ok): New function.
13991         (fts_stat): Initialize new member (if dir).
13992         (fts_read): Decrement parent's fts_n_dirs_remaining count if
13993         we've just stat'ed a directory.  Skip the stat call when possible.
13994         ---
13995         Note this AFS-related exchange:
13996         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
13997         and note find's pioctl call in find/fstype.c.
13998         But that is necessary only if you want to enable the
13999         optimization for AFS, and for now, I don't.
14000
14001         fts: move a function definition "up" (no semantic change)
14002         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14003         "up" to precede upcoming use of a related function.
14004
14005 2009-02-11  Jim Meyering  <meyering@redhat.com>
14006
14007         fts: correct internal computation of nlinks (optimization-related)
14008         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14009         whether the current entry is a directory, so don't test it.
14010
14011 2009-02-10  Bruno Haible  <bruno@clisp.org>
14012
14013         Tests for module 'uniwbrk/ulc-wordbreaks'.
14014         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14015         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14016         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14017
14018         Tests for module 'uniwbrk/u32-wordbreaks'.
14019         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14020         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14021
14022         Tests for module 'uniwbrk/u16-wordbreaks'.
14023         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14024         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14025
14026         Tests for module 'uniwbrk/u8-wordbreaks'.
14027         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14028         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14029
14030 2009-02-10  Bruno Haible  <bruno@clisp.org>
14031
14032         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14033         property.
14034         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14035         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14036         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14037
14038 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14039
14040         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14041         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14042
14043 2009-02-10  Bruno Haible  <bruno@clisp.org>
14044
14045         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14046         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14047         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14048         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14049         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14050         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14051
14052 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14053
14054         * lib/sockets.h (gl_fd_to_handle): New function.
14055
14056         * tests/test-sockets.c: Call gl_fd_to_handle.
14057
14058 2009-02-09  Bruno Haible  <bruno@clisp.org>
14059
14060         * doc/havelib.texi: Document the conventions on bi-arch systems.
14061
14062 2009-02-08  Bruno Haible  <bruno@clisp.org>
14063
14064         Document the AC_LIB_LINKFLAGS macro.
14065         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14066         * doc/gnulib.texi: Include it.
14067
14068 2009-02-08  Bruno Haible  <bruno@clisp.org>
14069
14070         Fix wrong order of sections, compared to TOC.
14071         * doc/gnulib.texi: Include relocatable-maint.texi after the
14072         "Regular expressions" node, not before.
14073
14074 2009-02-08  Bruno Haible  <bruno@clisp.org>
14075
14076         Tests for module 'unicase/totitle'.
14077         * modules/unicase/totitle-tests: New file.
14078
14079         Tests for module 'unicase/tolower'.
14080         * modules/unicase/tolower-tests: New file.
14081
14082         Tests for module 'unicase/toupper'.
14083         * modules/unicase/toupper-tests: New file.
14084         * tests/unicase/test-mapping-part1.h: New file.
14085         * tests/unicase/test-mapping-part2.h: New file.
14086
14087         New module 'unicase/totitle'.
14088         * modules/unicase/totitle: New file.
14089         * lib/unicase/totitle.c: New file.
14090
14091         New module 'unicase/tolower'.
14092         * modules/unicase/tolower: New file.
14093         * lib/unicase/tolower.c: New file.
14094
14095         New module 'unicase/toupper'.
14096         * modules/unicase/toupper: New file.
14097         * lib/unicase/toupper.c: New file.
14098         * lib/unicase/simple-mapping.h: New file.
14099
14100         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14101         (mapping_table): New structure.
14102         (output_simple_mapping): New function.
14103         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14104         * modules/gen-uni-tables (Description): Update.
14105         * lib/unicase/toupper.h: New file, automatically generated by
14106         gen-uni-tables.
14107         * lib/unicase/tolower.h: New file, automatically generated by
14108         gen-uni-tables.
14109         * lib/unicase/totitle.h: New file, automatically generated by
14110         gen-uni-tables.
14111         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14112         gen-uni-tables.
14113         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14114         gen-uni-tables.
14115         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14116         gen-uni-tables.
14117
14118         New module 'unicase/base'.
14119         * modules/unicase/base: New file.
14120         * lib/unicase.h: New file.
14121
14122 2009-02-08  Bruno Haible  <bruno@clisp.org>
14123
14124         New module 'uniwbrk/ulc-wordbreaks'.
14125         * modules/uniwbrk/ulc-wordbreaks: New file.
14126         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14127
14128         New module 'uniwbrk/u32-wordbreaks'.
14129         * modules/uniwbrk/u32-wordbreaks: New file.
14130         * lib/uniwbrk/u32-wordbreaks.c: New file.
14131
14132         New module 'uniwbrk/u16-wordbreaks'.
14133         * modules/uniwbrk/u16-wordbreaks: New file.
14134         * lib/uniwbrk/u16-wordbreaks.c: New file.
14135
14136         New module 'uniwbrk/u8-wordbreaks'.
14137         * modules/uniwbrk/u8-wordbreaks: New file.
14138         * lib/uniwbrk/u8-wordbreaks.c: New file.
14139         * lib/uniwbrk/u-wordbreaks.h: New file.
14140
14141         New module 'uniwbrk/table'.
14142         * modules/uniwbrk/table: New file.
14143         * lib/uniwbrk/wbrktable.h: New file.
14144         * lib/uniwbrk/wbrktable.c: New file.
14145
14146         New module 'uniwbrk/wordbreak-property'.
14147         * modules/uniwbrk/wordbreak-property: New file.
14148         * lib/uniwbrk/wordbreak-property.c: New file.
14149
14150         * lib/gen-uni-tables.c (WBP_*): New enum items.
14151         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14152         (unicode_org_wbp): New variable.
14153         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14154         New functions.
14155         (wbp_table): New structure.
14156         (output_wbp, output_wbrk_tables): New functions.
14157         (main): Accept additional argument. Invoke fill_org_wbp,
14158         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14159         output_wbrk_tables.
14160         * modules/gen-uni-tables (Description): Update.
14161         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14162         gen-uni-tables.
14163
14164         New module 'uniwbrk/base'.
14165         * modules/uniwbrk/base: New file.
14166         * lib/uniwbrk.h: New file.
14167
14168 2009-02-08  Bruno Haible  <bruno@clisp.org>
14169
14170         Update to Unicode 5.1.0.
14171         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14172         U+2185..U+2188.
14173         (is_property_default_ignorable_code_point): Don't include characters
14174         of category Cc or Cs and not-a-characters.
14175         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14176         U+0D79, U+109E, U+109F, U+A60C.
14177         * lib/unictype/bidi_of.h: Regenerated.
14178         * lib/unictype/blocks.h: Regenerated.
14179         * lib/unictype/categ_C.h: Regenerated.
14180         * lib/unictype/categ_Cf.h: Regenerated.
14181         * lib/unictype/categ_Cn.h: Regenerated.
14182         * lib/unictype/categ_L.h: Regenerated.
14183         * lib/unictype/categ_Ll.h: Regenerated.
14184         * lib/unictype/categ_Lm.h: Regenerated.
14185         * lib/unictype/categ_Lo.h: Regenerated.
14186         * lib/unictype/categ_Lu.h: Regenerated.
14187         * lib/unictype/categ_M.h: Regenerated.
14188         * lib/unictype/categ_Mc.h: Regenerated.
14189         * lib/unictype/categ_Me.h: Regenerated.
14190         * lib/unictype/categ_Mn.h: Regenerated.
14191         * lib/unictype/categ_N.h: Regenerated.
14192         * lib/unictype/categ_Nd.h: Regenerated.
14193         * lib/unictype/categ_Nl.h: Regenerated.
14194         * lib/unictype/categ_No.h: Regenerated.
14195         * lib/unictype/categ_P.h: Regenerated.
14196         * lib/unictype/categ_Pd.h: Regenerated.
14197         * lib/unictype/categ_Pe.h: Regenerated.
14198         * lib/unictype/categ_Pf.h: Regenerated.
14199         * lib/unictype/categ_Pi.h: Regenerated.
14200         * lib/unictype/categ_Po.h: Regenerated.
14201         * lib/unictype/categ_Ps.h: Regenerated.
14202         * lib/unictype/categ_S.h: Regenerated.
14203         * lib/unictype/categ_Sk.h: Regenerated.
14204         * lib/unictype/categ_Sm.h: Regenerated.
14205         * lib/unictype/categ_So.h: Regenerated.
14206         * lib/unictype/categ_of.h: Regenerated.
14207         * lib/unictype/combining.h: Regenerated.
14208         * lib/unictype/ctype_alnum.h: Regenerated.
14209         * lib/unictype/ctype_alpha.h: Regenerated.
14210         * lib/unictype/ctype_graph.h: Regenerated.
14211         * lib/unictype/ctype_lower.h: Regenerated.
14212         * lib/unictype/ctype_print.h: Regenerated.
14213         * lib/unictype/ctype_punct.h: Regenerated.
14214         * lib/unictype/ctype_upper.h: Regenerated.
14215         * lib/unictype/decdigit.h: Regenerated.
14216         * lib/unictype/digit.h: Regenerated.
14217         * lib/unictype/mirror.h: Regenerated.
14218         * lib/unictype/numeric.h: Regenerated.
14219         * lib/unictype/pr_alphabetic.h: Regenerated.
14220         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14221         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14222         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14223         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14224         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14225         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14226         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14227         * lib/unictype/pr_combining.h: Regenerated.
14228         * lib/unictype/pr_dash.h: Regenerated.
14229         * lib/unictype/pr_decimal_digit.h: Regenerated.
14230         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14231         * lib/unictype/pr_deprecated.h: Regenerated.
14232         * lib/unictype/pr_diacritic.h: Regenerated.
14233         * lib/unictype/pr_extender.h: Regenerated.
14234         * lib/unictype/pr_format_control.h: Regenerated.
14235         * lib/unictype/pr_grapheme_base.h: Regenerated.
14236         * lib/unictype/pr_grapheme_extend.h: Regenerated.
14237         * lib/unictype/pr_grapheme_link.h: Regenerated.
14238         * lib/unictype/pr_id_continue.h: Regenerated.
14239         * lib/unictype/pr_id_start.h: Regenerated.
14240         * lib/unictype/pr_ideographic.h: Regenerated.
14241         * lib/unictype/pr_ignorable_control.h: Regenerated.
14242         * lib/unictype/pr_lowercase.h: Regenerated.
14243         * lib/unictype/pr_math.h: Regenerated.
14244         * lib/unictype/pr_numeric.h: Regenerated.
14245         * lib/unictype/pr_other_alphabetic.h: Regenerated.
14246         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14247         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14248         * lib/unictype/pr_other_id_continue.h: Regenerated.
14249         * lib/unictype/pr_other_lowercase.h: Regenerated.
14250         * lib/unictype/pr_other_math.h: Regenerated.
14251         * lib/unictype/pr_punctuation.h: Regenerated.
14252         * lib/unictype/pr_sentence_terminal.h: Regenerated.
14253         * lib/unictype/pr_soft_dotted.h: Regenerated.
14254         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14255         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14256         * lib/unictype/pr_unified_ideograph.h: Regenerated.
14257         * lib/unictype/pr_uppercase.h: Regenerated.
14258         * lib/unictype/pr_xid_continue.h: Regenerated.
14259         * lib/unictype/pr_xid_start.h: Regenerated.
14260         * lib/unictype/pr_zero_width.h: Regenerated.
14261         * lib/unictype/scripts.h: Regenerated.
14262         * lib/unictype/scripts_byname.gperf: Regenerated.
14263         * lib/unictype/sy_java_ident.h: Regenerated.
14264         * lib/unilbrk/lbrkprop1.h: Regenerated.
14265         * lib/unilbrk/lbrkprop2.h: Regenerated.
14266         * tests/unictype/test-categ_C.c: Regenerated.
14267         * tests/unictype/test-categ_Cf.c: Regenerated.
14268         * tests/unictype/test-categ_Cn.c: Regenerated.
14269         * tests/unictype/test-categ_L.c: Regenerated.
14270         * tests/unictype/test-categ_Ll.c: Regenerated.
14271         * tests/unictype/test-categ_Lm.c: Regenerated.
14272         * tests/unictype/test-categ_Lo.c: Regenerated.
14273         * tests/unictype/test-categ_Lu.c: Regenerated.
14274         * tests/unictype/test-categ_M.c: Regenerated.
14275         * tests/unictype/test-categ_Mc.c: Regenerated.
14276         * tests/unictype/test-categ_Me.c: Regenerated.
14277         * tests/unictype/test-categ_Mn.c: Regenerated.
14278         * tests/unictype/test-categ_N.c: Regenerated.
14279         * tests/unictype/test-categ_Nd.c: Regenerated.
14280         * tests/unictype/test-categ_Nl.c: Regenerated.
14281         * tests/unictype/test-categ_No.c: Regenerated.
14282         * tests/unictype/test-categ_P.c: Regenerated.
14283         * tests/unictype/test-categ_Pd.c: Regenerated.
14284         * tests/unictype/test-categ_Pe.c: Regenerated.
14285         * tests/unictype/test-categ_Pf.c: Regenerated.
14286         * tests/unictype/test-categ_Pi.c: Regenerated.
14287         * tests/unictype/test-categ_Po.c: Regenerated.
14288         * tests/unictype/test-categ_Ps.c: Regenerated.
14289         * tests/unictype/test-categ_S.c: Regenerated.
14290         * tests/unictype/test-categ_Sk.c: Regenerated.
14291         * tests/unictype/test-categ_Sm.c: Regenerated.
14292         * tests/unictype/test-categ_So.c: Regenerated.
14293         * tests/unictype/test-ctype_alnum.c: Regenerated.
14294         * tests/unictype/test-ctype_alpha.c: Regenerated.
14295         * tests/unictype/test-ctype_graph.c: Regenerated.
14296         * tests/unictype/test-ctype_lower.c: Regenerated.
14297         * tests/unictype/test-ctype_print.c: Regenerated.
14298         * tests/unictype/test-ctype_punct.c: Regenerated.
14299         * tests/unictype/test-ctype_upper.c: Regenerated.
14300         * tests/unictype/test-decdigit.h: Regenerated.
14301         * tests/unictype/test-digit.h: Regenerated.
14302         * tests/unictype/test-numeric.h: Regenerated.
14303         * tests/unictype/test-pr_alphabetic.c: Regenerated.
14304         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14305         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14306         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14307         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14308         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14309         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14310         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14311         * tests/unictype/test-pr_combining.c: Regenerated.
14312         * tests/unictype/test-pr_dash.c: Regenerated.
14313         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14314         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14315         * tests/unictype/test-pr_deprecated.c: Regenerated.
14316         * tests/unictype/test-pr_diacritic.c: Regenerated.
14317         * tests/unictype/test-pr_extender.c: Regenerated.
14318         * tests/unictype/test-pr_format_control.c: Regenerated.
14319         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14320         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14321         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14322         * tests/unictype/test-pr_id_continue.c: Regenerated.
14323         * tests/unictype/test-pr_id_start.c: Regenerated.
14324         * tests/unictype/test-pr_ideographic.c: Regenerated.
14325         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14326         * tests/unictype/test-pr_lowercase.c: Regenerated.
14327         * tests/unictype/test-pr_math.c: Regenerated.
14328         * tests/unictype/test-pr_numeric.c: Regenerated.
14329         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14330         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14331         Regenerated.
14332         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14333         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14334         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14335         * tests/unictype/test-pr_other_math.c: Regenerated.
14336         * tests/unictype/test-pr_punctuation.c: Regenerated.
14337         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14338         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14339         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14340         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14341         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14342         * tests/unictype/test-pr_uppercase.c: Regenerated.
14343         * tests/unictype/test-pr_xid_continue.c: Regenerated.
14344         * tests/unictype/test-pr_xid_start.c: Regenerated.
14345         * tests/unictype/test-pr_zero_width.c: Regenerated.
14346
14347         Update to Unicode 5.1.0.
14348         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14349         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14350         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14351         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14352         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14353         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14354         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14355         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14356         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14357         (nonspacing_table_ind): Update.
14358         * tests/uniwidth/test-uc_width2.sh: Update expected result.
14359
14360         Update to Unicode 5.1.0.
14361         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14362         code transform.
14363         * lib/uniname/uniname.c (unicode_character_name,
14364         unicode_name_character): Add the range 0x1Fxxx to the code transform.
14365         * lib/uniname/uninames.h: Regenerated.
14366         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14367
14368 2009-02-07  Bruno Haible  <bruno@clisp.org>
14369
14370         Merge gen-ctype and gen-lbrk into a single program.
14371         * lib/gen-uni-tables.c: New file, incorporating
14372         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14373         Add directory prefixes to the names of the generated files.
14374         * lib/unictype/gen-ctype.c: Remove file.
14375         * lib/unilbrk/gen-lbrk.c: Remove file.
14376         * modules/gen-uni-tables: New file.
14377         * modules/unictype/gen-ctype: Remove file.
14378         * modules/unilbrk/gen-lbrk: Remove file.
14379
14380 2009-02-07  Bruno Haible  <bruno@clisp.org>
14381
14382         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14383
14384         New module 'unistr/u32-strcoll'.
14385         * modules/unistr/u32-strcoll: New file.
14386         * lib/unistr/u32-strcoll.c: New file.
14387
14388         New module 'unistr/u16-strcoll'.
14389         * modules/unistr/u16-strcoll: New file.
14390         * lib/unistr/u16-strcoll.c: New file.
14391
14392         New module 'unistr/u8-strcoll'.
14393         * modules/unistr/u8-strcoll: New file.
14394         * lib/unistr/u8-strcoll.c: New file.
14395         * lib/unistr/u-strcoll.h: New file.
14396
14397 2009-02-07  Bruno Haible  <bruno@clisp.org>
14398
14399         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14400         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14401         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14402         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14403         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14404         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14405
14406 2009-02-07  Bruno Haible  <bruno@clisp.org>
14407
14408         Make 64-bit clean.
14409         * lib/unictype/gen-ctype.c (output_predicate, output_category,
14410         output_combclass, output_bidi_category, output_decimal_digit,
14411         output_digit, output_numeric, output_mirror, output_scripts,
14412         output_ident_category): Use proper width specifier in format strings.
14413
14414 2009-02-07  Bruno Haible  <bruno@clisp.org>
14415
14416         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14417         failure behaviour.
14418
14419 2009-02-07  Jim Meyering  <meyering@redhat.com>
14420
14421         regex: avoid compilation failure with upcoming gcc-4.4
14422         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14423         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
14424         "... error: integer overflow in preprocessor expression".
14425
14426 2009-02-05  Ben Pfaff  <blp@gnu.org>
14427
14428         Fix link errors on Windows when close module is used.
14429         * modules/close: Add $(LIB_CLOSE) to Link section.
14430         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14431         $(LIB_CLOSE) on Windows.
14432
14433 2009-02-05  Jim Meyering  <meyering@redhat.com>
14434
14435         still avoid unused-parameter warnings, but do it cleanly
14436         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14437         (get_fs_usage): Cast to void instead.
14438         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14439         (dev_from_mount_options, read_file_system_list): Cast to void.
14440         Prompted by Bruno Haible.
14441
14442 2009-02-04  Jim Meyering  <meyering@redhat.com>
14443
14444         fsusage.c: correct copyright year
14445         * lib/fsusage.c: Reflect year in which the change is pushed into
14446
14447         avoid misc. warnings
14448         * lib/fsusage.c (UNUSED_PARAM): Define.
14449         (get_fs_usage): Mark parameter "disk" as unused.
14450         * lib/getugroups.c (getgrent): Use "void" in prototype.
14451         * lib/mountlist.c: Mark unused parameters.
14452         (read_file_system_list): Declare a local with "const".
14453         * lib/nanosleep.c (getnow): Declare static.
14454         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14455
14456         dirfd: set errno upon failure
14457         * lib/dirfd.c: Include <errno.h>.
14458         Set errno to ENOTSUP when returning -1.
14459         * modules/dirfd (Depends-on): Add errno.
14460         Suggested by John Kodis <kodis@comcast.net>.
14461
14462 2009-02-01  Bruno Haible  <bruno@clisp.org>
14463
14464         Don't assume sizeof (long) >= sizeof (void *).
14465         * lib/memcmp.c: Include stdint.h.
14466         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14467         srcp2 to 'const byte *'.
14468         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14469         types to uintptr_t.
14470         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14471         * modules/memcmp (Depends-on): Add stdint.
14472         Reported by Ozkan Sezer <sezeroz@gmail.com>.
14473
14474 2009-01-30  Eric Blake  <ebb9@byu.net>
14475
14476         fix more require-before-expand issues
14477         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14478         expand, AC_PROG_AWK.
14479         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14480
14481 2009-01-28  Eric Blake  <ebb9@byu.net>
14482
14483         version-etc: use consistent URL formatting
14484         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14485         Improve formatting.  Use fputs for string without %.
14486
14487 2009-01-28  Jim Meyering  <meyering@redhat.com>
14488
14489         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14490         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14491         "underquoted definition of NAME" from autoconf-2.59.
14492
14493 2009-01-28  Bruno Haible  <bruno@clisp.org>
14494
14495         * doc/gnulib.texi: Add "Obsolete modules" to index.
14496
14497 2009-01-28  Jim Meyering  <meyering@redhat.com>
14498
14499         useless-if-before-free: recognize more variants
14500         * build-aux/useless-if-before-free: Also recognize e.g.,
14501         if (NULL != p) free (p);
14502
14503 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
14504
14505         test-getaddrinfo: skip (don't fail) this test when there's no network
14506         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14507         on the presumption that it means you lack network access.
14508
14509 2009-01-26  Jim Meyering  <meyering@redhat.com>
14510
14511         fflush: avoid warnings on modern systems
14512         * lib/fflush.c (rpl_fflush): Move declarations of locals,
14513         pos and result, into scopes where they're used.
14514
14515 2009-01-26  Eric Blake  <ebb9@byu.net>
14516
14517         Silence warning reintroduced by recent extensions patch.
14518         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
14519         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
14520         autoconf.
14521
14522         Backport improved autoconf semantics of AC_DEFUN_ONCE.
14523         * m4/00gnulib.m4: New file.
14524         * gnulib-tool (func_get_filelist): Always use it.
14525         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
14526         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
14527
14528 2009-01-25  Bruno Haible  <bruno@clisp.org>
14529
14530         Make test-quotearg work on MacOS X and AIX.
14531         * tests/test-quotearg.sh: New file.
14532         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
14533         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
14534         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
14535         include <libintl.h>.
14536         (fake_locale): Remove variable.
14537         (gettext, dgettext, dcgettext): Remove functions.
14538         (main): Instead of setting a fake locale, set a real locale. Call
14539         textdomain and bindtextdomain.
14540         * modules/quotearg-tests (Files): Add the new files.
14541         (Depends-on): Add gettext, setenv, unsetenv.
14542         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
14543         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
14544         Augment TESTS_ENVIRONMENT.
14545
14546 2009-01-25  Bruno Haible  <bruno@clisp.org>
14547
14548         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
14549         fr_FR.ISO8859-1 locale on MacOS X.
14550         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
14551         ja_JP.eucJP locale on MacOS X.
14552         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
14553         zh_CN.GB18030 locale on MacOS X.
14554
14555 2009-01-25  Bruno Haible  <bruno@clisp.org>
14556
14557         Avoid link errors on MacOS X 10.3.
14558         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
14559         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14560
14561 2009-01-25  Bruno Haible  <bruno@clisp.org>
14562
14563         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14564         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
14565         * modules/pipe (Files): Remove m4/posix_spawn.m4.
14566         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14567         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
14568         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14569         posix_spawnattr_init, posix_spawnattr_setsigmask,
14570         posix_spawnattr_setflags, posix_spawnattr_destroy.
14571
14572         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
14573         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
14574         * modules/execute (Files): Remove m4/posix_spawn.m4.
14575         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
14576         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
14577         posix_spawnattr_init, posix_spawnattr_setsigmask,
14578         posix_spawnattr_setflags, posix_spawnattr_destroy.
14579
14580 2009-01-25  Bruno Haible  <bruno@clisp.org>
14581
14582         * lib/glthread/threadlib.c: Include <stdlib.h>.
14583
14584 2009-01-25  Bruno Haible  <bruno@clisp.org>
14585
14586         * lib/glthread/threadlib.c (dummy): New declaration.
14587
14588 2009-01-25  Bruno Haible  <bruno@clisp.org>
14589
14590         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
14591         multibyte characters also for the GB18030 encoding. Don't crash when
14592         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
14593
14594 2009-01-25  Bruno Haible  <bruno@clisp.org>
14595
14596         Avoid redefining 'struct random_data' on OSF/1 5.1.
14597         * lib/stdlib.in.h: Include <random.h> if it exists.
14598         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
14599         HAVE_RANDOM_H. Include <random.h> when testing whether
14600         'struct random_data' exists.
14601         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
14602
14603 2009-01-25  Bruno Haible  <bruno@clisp.org>
14604
14605         Don't install charset.alias on MacOS X >= 10.3.
14606         * lib/localcharset.c (DARWIN7): New macro.
14607         (get_charset_aliases): Hardcode the result for Darwin7.
14608         * modules/localcharset (install-exec-local): Don't install
14609         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
14610
14611 2009-01-25  Bruno Haible  <bruno@clisp.org>
14612
14613         Don't install charset.alias on mingw and Cygwin.
14614         * modules/localcharset (install-exec-local): Don't install
14615         charset.alias on mingw and Cygwin, if the file does not yet exist.
14616         The result for these platforms is hardcoded in localcharset.c.
14617
14618 2009-01-25  Bruno Haible  <bruno@clisp.org>
14619
14620         Make it possible again to use AC_GNU_SOURCE together with gnulib.
14621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
14622         before requiring AC_USE_SYSTEM_EXTENSIONS.
14623
14624 2009-01-25  Jim Meyering  <meyering@redhat.com>
14625
14626         c-strtod: avoid warnings
14627         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
14628         "assignment discards qualifiers from pointer target type" warnings.
14629
14630 2009-01-24  Bruno Haible  <bruno@clisp.org>
14631
14632         Add support for non-UTF-8 locales on MacOS X.
14633         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
14634         canonical encodings. For Darwin 7 and newer, don't map traditional
14635         encodings to UTF-8.
14636         Reported by Vincent Lefevre <vincent@vinc17.org>
14637         at <http://savannah.gnu.org/bugs/?25235>.
14638
14639 2009-01-24  Bruno Haible  <bruno@clisp.org>
14640
14641         * doc/gnulib.texi (Obsolete modules): New section.
14642         Reported by Mike Frysinger <vapier@gentoo.org>.
14643
14644 2009-01-24  Bruno Haible  <bruno@clisp.org>
14645
14646         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
14647         (%.dvi): New rule.
14648
14649 2009-01-24  Bruno Haible  <bruno@clisp.org>
14650
14651         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
14652         Reported by Eric Blake.
14653
14654 2009-01-24  Bruno Haible  <bruno@clisp.org>
14655
14656         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
14657         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
14658         Reported by Gary V. Vaughan <gary@gnu.org>.
14659
14660 2009-01-24  Bruno Haible  <bruno@clisp.org>
14661
14662         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
14663
14664 2009-01-23  Bruno Haible  <bruno@clisp.org>
14665
14666         Make c-strtod, c-strtold usable in libraries.
14667         * lib/c-strtod.c: Include string.h instead of xalloc.h.
14668         (C_STRTOD): Call strdup instead of xstrdup.
14669         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
14670         * modules/c-strtold (Depends-on): Likewise.
14671         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
14672         * NEWS: Mention the change.
14673         Reported by Michael Gold <mgold@ncf.ca>.
14674
14675 2009-01-23  Jim Meyering  <meyering@redhat.com>
14676
14677         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
14678         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
14679         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
14680
14681 2009-01-23  Simon Josefsson  <simon@josefsson.org>
14682
14683         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
14684         GNU CoreUtils.
14685         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
14686         * modules/version-etc (Description): Update.
14687
14688 2009-01-22  Bruno Haible  <bruno@clisp.org>
14689
14690         Cache the C locale object.
14691         * lib/c-strtod.c (c_locale_cache): New variable.
14692         (c_locale): New function.
14693         (C_STRTOD): Use it, and don't call freelocale.
14694         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
14695         Suggested by Paolo Bonzini.
14696
14697 2009-01-21  Bruno Haible  <bruno@clisp.org>
14698
14699         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
14700         conditions other than overflow.
14701
14702 2009-01-21  Bruno Haible  <bruno@clisp.org>
14703
14704         * lib/c-strtod.c: Include errno.h.
14705         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
14706         value from STRTOD_L and STRTOD.
14707
14708 2009-01-21  Bruno Haible  <bruno@clisp.org>
14709         and Jim Meyering  <meyering@redhat.com>
14710
14711         nanosleep: skip configure test (fail it) for apple universal builds
14712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
14713         universal builds, assume that nanosleep does not work.
14714         * modules/nanosleep (Depends-on): Add multiarch.
14715
14716         mktime: skip configure test (fail it) for apple universal builds
14717         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
14718         universal builds, assume that mktime does not work.
14719         * modules/mktime (Depends-on): Add multiarch.
14720
14721 2009-01-21  Eric Blake  <ebb9@byu.net>
14722
14723         multiarch: avoid expand-before-require warning
14724         * modules/multiarch (configure.ac): Require, rather than expand,
14725         gl_MULTIARCH.
14726         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
14727         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
14728         enforce that all clients require it.  Partial reversion of
14729         2008-12-29 patch.
14730
14731         error: avoid expand-before-require warning
14732         * modules/errno (configure.ac): Require, rather than expand,
14733         gl_HEADER_ERRNO_H.
14734         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
14735         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
14736         enforce that all clients require it.
14737
14738         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
14739         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
14740         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
14741         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
14742
14743 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
14744
14745         Revert:
14746         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14747
14748         regex: do not depend on obsolete modules.
14749         * modules/regex: Remove memcmp and memmove.
14750
14751 2009-01-20  Bruno Haible  <bruno@clisp.org>
14752
14753         Make the 'link' module link on Windows NT 4.
14754         * lib/link.c (_WIN32_WINNT): Don't define.
14755         (CreateHardLinkFuncType): New type.
14756         (CreateHardLinkFunc, initialized): New variables.
14757         (initialize): New function.
14758         (link): Invoke CreateHardLink indirectly through the function pointer.
14759
14760 2009-01-20  Bruno Haible  <bruno@clisp.org>
14761
14762         Fix compilation failure on mingw.
14763         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
14764
14765 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
14766
14767         * doc/c-strtod.texi: Mention a couple of restrictions.
14768
14769 2009-01-20  Jim Meyering  <meyering@redhat.com>
14770
14771         gettimeofday: move more declarations out of functions
14772         * lib/gettimeofday.c: Move extern declarations of tzset and
14773         gmtime out of containing functions.  Prompted by Bruno Haible.
14774
14775 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
14776
14777         regex: do not depend on obsolete modules.
14778         * modules/regex: Remove memcmp and memmove.
14779
14780 2009-01-19  Bruno Haible  <bruno@clisp.org>
14781
14782         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14783         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
14784         gl_BIGENDIAN, not AC_C_BIGENDIAN.
14785         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
14786         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
14787
14788 2009-01-19  Bruno Haible  <bruno@clisp.org>
14789
14790         * tests/test-link.c: Include <errno.h>.
14791         (main): Exit with code 77 when a hard link cannot be created due to
14792         the file system.
14793         * tests/test-link.sh: Skip test when a hard link cannot be created due
14794         to the file system.
14795         Suggested by Eric Blake.
14796
14797 2009-01-19  Martin Lambers  <marlam@marlam.de>
14798
14799         * modules/link-tests: New file.
14800         * tests/test-link.sh: New file.
14801         * tests/test-link.c: New file.
14802
14803 2009-01-19  Eric Blake  <ebb9@byu.net>
14804
14805         doc: mention another function added in cygwin 1.7.0
14806         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
14807         Another new function in cygwin 1.7.
14808
14809 2009-01-19  Bruno Haible  <bruno@clisp.org>
14810
14811         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
14812         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
14813         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
14814         gl_BIGENDIAN, not AC_C_BIGENDIAN.
14815         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14816         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
14817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14818         * m4/md4.m4 (gl_MD4): Likewise.
14819         * m4/md5.m4 (gl_MD5): Likewise.
14820         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
14821         * m4/sha1.m4 (gl_SHA1): Likewise.
14822         * m4/sha256.m4 (gl_SHA256): Likewise.
14823         * m4/sha512.m4 (gl_SHA512): Likewise.
14824
14825 2009-01-19  Bruno Haible  <bruno@clisp.org>
14826
14827         * modules/uniname/uniname-tests (Depends-on): Add progname.
14828         * tests/uniname/test-uninames.c: Include progname.h.
14829         (main): Call set_program_name.
14830
14831         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
14832         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
14833         (main): Call set_program_name.
14834
14835         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
14836         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
14837         (main): Call set_program_name.
14838
14839         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
14840         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
14841         (main): Call set_program_name.
14842
14843         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
14844         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
14845         (main): Call set_program_name.
14846
14847         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
14848         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
14849         (main): Call set_program_name.
14850
14851         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
14852         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
14853         (main): Call set_program_name.
14854
14855         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
14856         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
14857         (main): Call set_program_name.
14858
14859         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
14860         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
14861         (main): Call set_program_name.
14862
14863 2009-01-19  Eric Blake  <ebb9@byu.net>
14864
14865         test-unistd: test previous patch
14866         * tests/test-unistd.c: Test *_FILENO macros.
14867
14868         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
14869         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14870         Guarantee a definition.
14871         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
14872         * modules/unistd-safer (Depends-on): Add dependency on unistd.
14873         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
14874         * lib/dup-safer.c (STDERR_FILENO): Likewise.
14875         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14876         Likewise.
14877         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
14878         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
14879         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
14880         Likewise.
14881         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
14882         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
14883         (STDERR_FILENO): Likewise.
14884         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
14885         (STDERR_FILENO): Likewise.
14886         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
14887         (STDERR_FILENO): Likewise.
14888         Reported by Elbert Pol.
14889
14890 2009-01-19  Eric Blake  <ebb9@byu.net>
14891
14892         doc: mention more functions added in cygwin 1.7.0
14893         * doc/posix-functions/abort.texi (abort): Update wording related
14894         to cygwin.
14895         * doc/posix-functions/daylight.texi (daylight): Likewise.
14896         * doc/posix-functions/optarg.texi (optarg): Likewise.
14897         * doc/posix-functions/optarg.texi (opterr): Likewise.
14898         * doc/posix-functions/optarg.texi (optind): Likewise.
14899         * doc/posix-functions/optarg.texi (optopt): Likewise.
14900         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
14901         worked in 1.5.x, and was withdrawn in 1.7.
14902         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14903         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
14904         cygwin versions.
14905         * doc/posix-functions/perror.texi (perror): Likewise.
14906         * doc/posix-functions/printf.texi (printf): Likewise.
14907         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
14908         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
14909         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14910         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14911         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14912         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
14913         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14914         Likewise.
14915         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14916         Likewise.
14917         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
14918         this function.
14919         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
14920         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
14921         Likewise.
14922         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
14923         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
14924         * doc/posix-functions/confstr.texi (confstr): Likewise.
14925         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
14926         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
14927         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
14928         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
14929         * doc/posix-functions/fputws.texi (fputws): Likewise.
14930         * doc/posix-functions/fwide.texi (fwide): Likewise.
14931         * doc/posix-functions/getwc.texi (getwc): Likewise.
14932         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
14933         * doc/posix-functions/putwc.texi (putwc): Likewise.
14934         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14935         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
14936         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
14937         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14938         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
14939         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
14940         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
14941         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
14942         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
14943         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
14944         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
14945
14946 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
14947
14948         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
14949         * lib/ioctl.c: Include <sys/ioctl.h>.
14950
14951 2009-01-19  Simon Josefsson  <simon@josefsson.org>
14952
14953         * modules/getdate-tests (Depends-on): Add progname.
14954         * tests/test-getdate.c: Use progname module, to avoid link errors
14955         on non-glibc systems.
14956
14957 2009-01-18  Simon Josefsson  <simon@josefsson.org>
14958
14959         * modules/filenamecat-tests (Depends-on): Add progname.
14960         * modules/fstrcmp-tests (Depends-on): Likewise.
14961
14962         * tests/test-filenamecat.c: Use progname module, to avoid link
14963         errors on non-glibc systems.
14964         * tests/test-fstrcmp.c: Likewise.
14965
14966 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
14967
14968         gettimeofday: avoid warning: nested extern declaration of 'localtime'
14969         * lib/gettimeofday.c: Move extern declaration out of function.
14970
14971 2009-01-18  Bruno Haible  <bruno@clisp.org>
14972
14973         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
14974         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
14975         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
14976
14977 2009-01-18  Bruno Haible  <bruno@clisp.org>
14978
14979         * lib/strftime.c (MEMPCPY): Remove unused macro.
14980         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
14981
14982 2009-01-18  Martin Lambers  <marlam@marlam.de>
14983
14984         New module 'link'.
14985         * lib/unistd.in.h (link): New declaration.
14986         * lib/link.c: New file.
14987         * m4/link.m4: New file.
14988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
14989         HAVE_LINK.
14990         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
14991         * modules/link: New file.
14992         * doc/posix-functions/link.texi: Mention the new module.
14993
14994 2009-01-18  Bruno Haible  <bruno@clisp.org>
14995
14996         * tests/test-avltree_list.c (main): Call set_program_name.
14997         * tests/test-avltree_oset.c (main): Likewise.
14998         * tests/test-obstack-printf.c: Include progname.h.
14999         (main): Call set_program_name.
15000         * tests/test-quotearg.c: Include progname.h.
15001         (main): Call set_program_name.
15002         * tests/test-xmemdup0.c: Include progname.h.
15003         (main): Call set_program_name.
15004
15005 2009-01-18  Bruno Haible  <bruno@clisp.org>
15006
15007         New module 'alphasort'.
15008         * lib/dirent.in.h (alphasort): New declaration.
15009         * lib/alphasort.c: New file, from glibc with modifications.
15010         * m4/alphasort.m4: New file.
15011         * modules/alphasort: New file.
15012         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15013         HAVE_ALPHASORT.
15014         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15015         HAVE_ALPHASORT.
15016         * doc/posix-functions/alphasort.texi: Mention the new module and the
15017         portability problems.
15018
15019 2009-01-18  Bruno Haible  <bruno@clisp.org>
15020
15021         New module 'scandir'.
15022         * lib/dirent.in.h (scandir): New declaration.
15023         * lib/scandir.c: New file, from glibc with modifications.
15024         * m4/scandir.m4: New file.
15025         * modules/scandir: New file.
15026         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15027         HAVE_SCANDIR.
15028         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15029         HAVE_SCANDIR.
15030         * doc/posix-functions/scandir.texi: Mention the new module and the
15031         portability problems.
15032
15033 2009-01-17  Bruno Haible  <bruno@clisp.org>
15034
15035         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15036         Update documentation.
15037         (func_remove_suffix): Escape all dots in the suffix. Update
15038         documentation.
15039         (func_filter_filelist): Update documentation.
15040         Reported by Ralf Wildenhues.
15041
15042 2009-01-17  Bruno Haible  <bruno@clisp.org>
15043
15044         * modules/dprintf-posix-tests: New file.
15045         * tests/test-dprintf-posix.sh: New file.
15046         * tests/test-dprintf-posix.c: New file.
15047
15048         New modules 'dprintf', 'dprintf-posix'.
15049         * lib/stdio.in.h (dprintf): New declaration.
15050         * lib/dprintf.c: New file.
15051         * m4/dprintf.m4: New file.
15052         * m4/dprintf-posix.m4: New file.
15053         * modules/dprintf: New file.
15054         * modules/dprintf-posix: New file.
15055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15056         HAVE_DPRINTF, REPLACE_DPRINTF.
15057         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15058         HAVE_DPRINTF, REPLACE_DPRINTF.
15059         * doc/posix-functions/dprintf.texi: Mention the new modules.
15060
15061 2009-01-17  Bruno Haible  <bruno@clisp.org>
15062
15063         * modules/vdprintf-posix-tests: New file.
15064         * tests/test-vdprintf-posix.sh: New file.
15065         * tests/test-vdprintf-posix.c: New file.
15066
15067         New modules 'vdprintf', 'vdprintf-posix'.
15068         * lib/stdio.in.h (vdprintf): New declaration.
15069         * lib/vdprintf.c: New file.
15070         * m4/vdprintf.m4: New file.
15071         * m4/vdprintf-posix.m4: New file.
15072         * modules/vdprintf: New file.
15073         * modules/vdprintf-posix: New file.
15074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15075         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15076         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15077         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15078         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15079
15080 2009-01-17  Bruno Haible  <bruno@clisp.org>
15081
15082         Fix replacement of fopen on mingw.
15083         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15084         mingw.
15085
15086 2009-01-17  Bruno Haible  <bruno@clisp.org>
15087
15088         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15089         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15090
15091 2009-01-17  Bruno Haible  <bruno@clisp.org>
15092
15093         Avoid test-fflush2.sh failure on mingw.
15094         * tests/test-fflush2.c: Include binary-io.h.
15095         (main): Put standard input into binary mode.
15096         * modules/fflush-tests (Depends-on): Add binary-io.
15097
15098 2009-01-17  Bruno Haible  <bruno@clisp.org>
15099
15100         * lib/wchar.in.h: In another particular situation, include only the
15101         system's <wchar.h> file.
15102         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15103         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15104         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15105
15106 2009-01-17  Bruno Haible  <bruno@clisp.org>
15107
15108         Support for stripping executables in --enable-relocatable.
15109         * build-aux/install-reloc: Expect one more argument, or an environment
15110         variable RELOC_STRIP_PROG. If set, strip the destination program and
15111         its wrapper.
15112         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15113         RELOC_STRIP_PROG.
15114         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15115         to set RELOCATABLE_STRIP.
15116         * NEWS: Mention the new Makefile requirement.
15117
15118 2009-01-17  Bruno Haible  <bruno@clisp.org>
15119
15120         * build-aux/install-reloc: Remove debugging information left over by
15121         C compiler on MacOS X.
15122
15123 2009-01-17  Bruno Haible  <bruno@clisp.org>
15124
15125         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15126         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15127         _NSGetExecutablePath.
15128
15129 2009-01-16  Jim Meyering  <meyering@redhat.com>
15130
15131         strerror: avoid warnings about discarding "const"
15132         * lib/strerror.c (rpl_strerror): Instead of returning a const
15133         string from each and every "case", use a variable, and add a single
15134         cast after the switch.
15135
15136 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15137
15138         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15139
15140 2009-01-16  Bruno Haible  <bruno@clisp.org>
15141
15142         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15143         array initializer syntax that also works in C++ mode.
15144         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15145
15146 2009-01-16  Jim Meyering  <meyering@redhat.com>
15147
15148         poll: suppress a warning
15149         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15150         to ignore "...unsigned expression < 0 is always false" warnings.
15151
15152 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15153
15154         poll: remove declarations of unused variables
15155         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15156         sockbuf and optlen.
15157
15158 2009-01-15  Bruno Haible  <bruno@clisp.org>
15159
15160         Make fflush-after-ungetc POSIX compliant on BSD systems.
15161         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15162         (clear_ungetc_buffer): Implement also for other systems.
15163         (rpl_fflush): On glibc systems, invoke
15164         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15165         clear_ungetc_buffer after fetching the stream's position, not before.
15166
15167 2009-01-15  Bruno Haible  <bruno@clisp.org>
15168
15169         Make fflush-after-ungetc POSIX compliant on glibc systems.
15170         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15171         after ungetc.
15172         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15173         (rpl_fflush): On glibc systems, simply call the system's fflush
15174         function after clearing the ungetc buffer.
15175         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15176         Instead, lseek only to the end of file, then use the system's fseeko
15177         for the rest. On glibc systems, reset the EOF indicator bit.
15178
15179 2009-01-15  Jim Meyering  <meyering@redhat.com>
15180
15181         openmp.m4: revert quote-adding change, for portability to older autoconf
15182         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15183         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15184         Simon Josefsson noticed the problem when using autoconf-2.61.
15185
15186 2009-01-15  Bruno Haible  <bruno@clisp.org>
15187
15188         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15189         * tests/test-fflush2.c (ASSERT): Always fail.
15190         (main): Add two tests for fflush() after ungetc(), taking into account
15191         the Austin Group's clarification.
15192         Suggested by Eric Blake.
15193
15194 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15195
15196         mktime.m4: remove K&R-style function prototypes
15197         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15198         for the Sun C++ compiler.
15199
15200 2009-01-14  Bruno Haible  <bruno@clisp.org>
15201
15202         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15203         while including <wchar.h>.
15204         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15205         the system's <wchar.h> file.
15206         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15207
15208 2009-01-14  Bruno Haible  <bruno@clisp.org>
15209
15210         * m4/csharp.m4: Don't mention gettext on the serial number line.
15211         * m4/csharpexec.m4: Likewise.
15212         * m4/eaccess.m4: Likewise.
15213         * m4/javaexec.m4: Likewise.
15214         * m4/sig_atomic_t.m4: Likewise.
15215         * m4/tmpdir.m4: Likewise.
15216         * m4/intldir.m4: Bump gettext version.
15217         * m4/lib-ld.m4: Likewise.
15218
15219 2009-01-14  Bruno Haible  <bruno@clisp.org>
15220
15221         * lib/progname.c (set_program_name): Add more comments.
15222         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15223
15224 2009-01-14  Simon Josefsson  <simon@josefsson.org>
15225
15226         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15227         were sys/stat.h does not define it.
15228
15229 2009-01-14  Jim Meyering  <meyering@redhat.com>
15230
15231         many *.m4 files: improve m4 quoting
15232         99% of this change was performed by running the following commands:
15233         git ls-files | grep '\.m4$' | xargs perl -pi \
15234           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15235           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15236           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15237           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15238         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15239         The remainder were to add Copyright dates, increment serial numbers,
15240         undo some changes in comments, exclude m4/intl.m4, and add quotes
15241         around the "1" in ",1" where the unusual spacing prohibited the
15242         above regexps from doing the job.  For more details, see
15243         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15244         * m4/acl.m4: Modified.
15245         * m4/afs.m4: Likewise.
15246         * m4/alloca.m4: Likewise.
15247         * m4/argp.m4: Likewise.
15248         * m4/argz.m4: Likewise.
15249         * m4/atexit.m4: Likewise.
15250         * m4/bison-i18n.m4: Likewise.
15251         * m4/bison.m4: Likewise.
15252         * m4/byteswap.m4: Likewise.
15253         * m4/c-stack.m4: Likewise.
15254         * m4/c-strtod.m4: Likewise.
15255         * m4/calloc.m4: Likewise.
15256         * m4/canonicalize-lgpl.m4: Likewise.
15257         * m4/chown.m4: Likewise.
15258         * m4/clock_time.m4: Likewise.
15259         * m4/codeset.m4: Likewise.
15260         * m4/copy-file.m4: Likewise.
15261         * m4/csharp.m4: Likewise.
15262         * m4/csharpcomp.m4: Likewise.
15263         * m4/csharpexec.m4: Likewise.
15264         * m4/d-ino.m4: Likewise.
15265         * m4/d-type.m4: Likewise.
15266         * m4/dirfd.m4: Likewise.
15267         * m4/double-slash-root.m4: Likewise.
15268         * m4/eaccess.m4: Likewise.
15269         * m4/eealloc.m4: Likewise.
15270         * m4/environ.m4: Likewise.
15271         * m4/errno_h.m4: Likewise.
15272         * m4/euidaccess.m4: Likewise.
15273         * m4/execute.m4: Likewise.
15274         * m4/fatal-signal.m4: Likewise.
15275         * m4/fchdir.m4: Likewise.
15276         * m4/fcntl_h.m4: Likewise.
15277         * m4/fileblocks.m4: Likewise.
15278         * m4/filenamecat.m4: Likewise.
15279         * m4/findprog.m4: Likewise.
15280         * m4/flexmember.m4: Likewise.
15281         * m4/fnmatch.m4: Likewise.
15282         * m4/fopen.m4: Likewise.
15283         * m4/fpending.m4: Likewise.
15284         * m4/fprintf-posix.m4: Likewise.
15285         * m4/free.m4: Likewise.
15286         * m4/frexp.m4: Likewise.
15287         * m4/frexpl.m4: Likewise.
15288         * m4/fsusage.m4: Likewise.
15289         * m4/ftruncate.m4: Likewise.
15290         * m4/gc-camellia.m4: Likewise.
15291         * m4/gc-random.m4: Likewise.
15292         * m4/gc.m4: Likewise.
15293         * m4/getaddrinfo.m4: Likewise.
15294         * m4/getcwd-abort-bug.m4: Likewise.
15295         * m4/getcwd-path-max.m4: Likewise.
15296         * m4/getdate.m4: Likewise.
15297         * m4/getdomainname.m4: Likewise.
15298         * m4/getgroups.m4: Likewise.
15299         * m4/gethostname.m4: Likewise.
15300         * m4/gethrxtime.m4: Likewise.
15301         * m4/getline.m4: Likewise.
15302         * m4/getloadavg.m4: Likewise.
15303         * m4/getndelim2.m4: Likewise.
15304         * m4/getpass.m4: Likewise.
15305         * m4/gettext.m4: Likewise.
15306         * m4/gettime.m4: Likewise.
15307         * m4/gettimeofday.m4: Likewise.
15308         * m4/gnulib-common.m4: Likewise.
15309         * m4/group-member.m4: Likewise.
15310         * m4/host-os.m4: Likewise.
15311         * m4/iconv.m4: Likewise.
15312         * m4/iconv_open.m4: Likewise.
15313         * m4/inet_ntop.m4: Likewise.
15314         * m4/inet_pton.m4: Likewise.
15315         * m4/inline.m4: Likewise.
15316         * m4/intldir.m4: Likewise.
15317         * m4/intlmacosx.m4: Likewise.
15318         * m4/intmax.m4: Likewise.
15319         * m4/intmax_t.m4: Likewise.
15320         * m4/inttypes.m4: Likewise.
15321         * m4/inttypes_h.m4: Likewise.
15322         * m4/inttypes-pri.m4: Likewise.
15323         * m4/isapipe.m4: Likewise.
15324         * m4/isnand.m4: Likewise.
15325         * m4/isnanf.m4: Likewise.
15326         * m4/isnanl.m4: Likewise.
15327         * m4/javacomp.m4: Likewise.
15328         * m4/javaexec.m4: Likewise.
15329         * m4/jm-winsz1.m4: Likewise.
15330         * m4/jm-winsz2.m4: Likewise.
15331         * m4/lchown.m4: Likewise.
15332         * m4/lcmessage.m4: Likewise.
15333         * m4/ldexpl.m4: Likewise.
15334         * m4/lib-ld.m4: Likewise.
15335         * m4/lib-link.m4: Likewise.
15336         * m4/libsigsegv.m4: Likewise.
15337         * m4/link-follow.m4: Likewise.
15338         * m4/localcharset.m4: Likewise.
15339         * m4/locale-fr.m4: Likewise.
15340         * m4/locale-ja.m4: Likewise.
15341         * m4/locale-tr.m4: Likewise.
15342         * m4/locale-zh.m4: Likewise.
15343         * m4/lock.m4: Likewise.
15344         * m4/longlong.m4: Likewise.
15345         * m4/ls-mntd-fs.m4: Likewise.
15346         * m4/lstat.m4: Likewise.
15347         * m4/malloc.m4: Likewise.
15348         * m4/mathl.m4: Likewise.
15349         * m4/mbrtowc.m4: Likewise.
15350         * m4/mbstate_t.m4: Likewise.
15351         * m4/mbswidth.m4: Likewise.
15352         * m4/memchr.m4: Likewise.
15353         * m4/memcmp.m4: Likewise.
15354         * m4/memcpy.m4: Likewise.
15355         * m4/memmem.m4: Likewise.
15356         * m4/memmove.m4: Likewise.
15357         * m4/mempcpy.m4: Likewise.
15358         * m4/memrchr.m4: Likewise.
15359         * m4/memset.m4: Likewise.
15360         * m4/minmax.m4: Likewise.
15361         * m4/mkdir-slash.m4: Likewise.
15362         * m4/mkdtemp.m4: Likewise.
15363         * m4/mktime.m4: Likewise.
15364         * m4/mmap-anon.m4: Likewise.
15365         * m4/mountlist.m4: Likewise.
15366         * m4/nanosleep.m4: Likewise.
15367         * m4/nls.m4: Likewise.
15368         * m4/nocrash.m4: Likewise.
15369         * m4/open.m4: Likewise.
15370         * m4/openat.m4: Likewise.
15371         * m4/openmp.m4: Likewise.
15372         * m4/pathmax.m4: Likewise.
15373         * m4/perl.m4: Likewise.
15374         * m4/physmem.m4: Likewise.
15375         * m4/pipe.m4: Likewise.
15376         * m4/po.m4: Likewise.
15377         * m4/poll.m4: Likewise.
15378         * m4/posixtm.m4: Likewise.
15379         * m4/posixver.m4: Likewise.
15380         * m4/printf-frexp.m4: Likewise.
15381         * m4/printf-frexpl.m4: Likewise.
15382         * m4/printf-posix.m4: Likewise.
15383         * m4/printf-posix-rpl.m4: Likewise.
15384         * m4/printf.m4: Likewise.
15385         * m4/progtest.m4: Likewise.
15386         * m4/putenv.m4: Likewise.
15387         * m4/readline.m4: Likewise.
15388         * m4/readlink.m4: Likewise.
15389         * m4/readutmp.m4: Likewise.
15390         * m4/realloc.m4: Likewise.
15391         * m4/regex.m4: Likewise.
15392         * m4/relocatable.m4: Likewise.
15393         * m4/relocatable-lib.m4: Likewise.
15394         * m4/rename-dest-slash.m4: Likewise.
15395         * m4/rename.m4: Likewise.
15396         * m4/rmdir-errno.m4: Likewise.
15397         * m4/rmdir.m4: Likewise.
15398         * m4/roundf.m4: Likewise.
15399         * m4/roundl.m4: Likewise.
15400         * m4/rpmatch.m4: Likewise.
15401         * m4/save-cwd.m4: Likewise.
15402         * m4/selinux-selinux-h.m4: Likewise.
15403         * m4/setenv.m4: Likewise.
15404         * m4/settime.m4: Likewise.
15405         * m4/sig2str.m4: Likewise.
15406         * m4/sig_atomic_t.m4: Likewise.
15407         * m4/signalblocking.m4: Likewise.
15408         * m4/signbit.m4: Likewise.
15409         * m4/sigpipe.m4: Likewise.
15410         * m4/sockets.m4: Likewise.
15411         * m4/sockpfaf.m4: Likewise.
15412         * m4/st_dm_mode.m4: Likewise.
15413         * m4/stat-time.m4: Likewise.
15414         * m4/stdbool.m4: Likewise.
15415         * m4/stdint.m4: Likewise.
15416         * m4/stdint_h.m4: Likewise.
15417         * m4/stpcpy.m4: Likewise.
15418         * m4/stpncpy.m4: Likewise.
15419         * m4/strcase.m4: Likewise.
15420         * m4/strchrnul.m4: Likewise.
15421         * m4/strcspn.m4: Likewise.
15422         * m4/strdup.m4: Likewise.
15423         * m4/strftime.m4: Likewise.
15424         * m4/strndup.m4: Likewise.
15425         * m4/strnlen.m4: Likewise.
15426         * m4/strpbrk.m4: Likewise.
15427         * m4/strptime.m4: Likewise.
15428         * m4/strsep.m4: Likewise.
15429         * m4/strtod.m4: Likewise.
15430         * m4/strtoimax.m4: Likewise.
15431         * m4/strtok_r.m4: Likewise.
15432         * m4/strtol.m4: Likewise.
15433         * m4/strtoll.m4: Likewise.
15434         * m4/strtoul.m4: Likewise.
15435         * m4/strtoull.m4: Likewise.
15436         * m4/strtoumax.m4: Likewise.
15437         * m4/strverscmp.m4: Likewise.
15438         * m4/threadlib.m4: Likewise.
15439         * m4/timegm.m4: Likewise.
15440         * m4/tm_gmtoff.m4: Likewise.
15441         * m4/tmpdir.m4: Likewise.
15442         * m4/tmpfile.m4: Likewise.
15443         * m4/tzset.m4: Likewise.
15444         * m4/uintmax_t.m4: Likewise.
15445         * m4/unlinkdir.m4: Likewise.
15446         * m4/unlocked-io.m4: Likewise.
15447         * m4/uptime.m4: Likewise.
15448         * m4/userspec.m4: Likewise.
15449         * m4/utimbuf.m4: Likewise.
15450         * m4/utime.m4: Likewise.
15451         * m4/utimes-null.m4: Likewise.
15452         * m4/utimes.m4: Likewise.
15453         * m4/vararrays.m4: Likewise.
15454         * m4/vasnprintf.m4: Likewise.
15455         * m4/vfprintf-posix.m4: Likewise.
15456         * m4/vprintf-posix.m4: Likewise.
15457         * m4/wait-process.m4: Likewise.
15458         * m4/wchar_t.m4: Likewise.
15459         * m4/wint_t.m4: Likewise.
15460         * m4/write-any-file.m4: Likewise.
15461         * m4/yield.m4: Likewise.
15462
15463 2009-01-13  Bruno Haible  <bruno@clisp.org>
15464
15465         Avoid test-copy-file.sh failures when ACL support insufficient.
15466         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15467         TESTS_ENVIRONMENT.
15468         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15469         Reported by Jim Meyering.
15470
15471 2009-01-13  Bruno Haible  <bruno@clisp.org>
15472
15473         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15474         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15475         * modules/unistdio/u8-printf-parse (Files): Likewise.
15476         * modules/unistdio/u32-printf-parse (Files): Likewise.
15477         * modules/unistdio/ulc-printf-parse (Files): Likewise.
15478
15479 2009-01-13  Simon Josefsson  <simon@josefsson.org>
15480
15481         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15482         and m4/inttypes_h.m4 too.
15483
15484 2009-01-12  Eric Blake  <ebb9@byu.net>
15485
15486         tests: IRIX 6.2 cc can't compile -0.0 into .data
15487         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15488         rather than at compile-time.
15489         * tests/test-floorl.c (minus_zero): Likewise.
15490         * tests/test-frexpl.c (minus_zero): Likewise.
15491         * tests/test-isnan.c (minus_zerol): Likewise.
15492         * tests/test-isnanl.h (minus_zero): Likewise.
15493         * tests/test-ldexpl.c (minus_zero): Likewise.
15494         * tests/test-roundl.c (minus_zero): Likewise.
15495         * tests/test-signbit.c (minus_zerol): Likewise.
15496         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15497         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15498         * tests/test-truncl.c (minus_zero): Likewise.
15499         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15500         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15501         Reported by Tom G. Christensen and Nelson H. F. Beebe.
15502
15503 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15504
15505         regex: fix glibc bug 9697
15506         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15507         handling.
15508
15509 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15510
15511         regex: fix glibc bug 697
15512         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15513         being NULL also if there are no backreferences.
15514
15515 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
15516
15517         regex: merge glibc changes
15518         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
15519         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
15520         re_string_skip_chars, re_string_reconstruct): Likewise.
15521         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
15522
15523 2009-01-07  Jim Meyering  <meyering@redhat.com>
15524
15525         poll: filter through cppi
15526         * lib/poll.c: Indent cpp directives to reflect nesting.
15527
15528 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
15529
15530         poll: don't return uninitialized
15531         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
15532
15533 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
15534
15535         avoid compile failure on AIX 6.1
15536         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
15537         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
15538
15539 2009-01-04  Jim Meyering  <meyering@redhat.com>
15540
15541         remove duplicate inclusion of <stdio.h>
15542         * tests/test-fprintf-posix.c: Likewise.
15543         * tests/test-printf-posix.c: Likewise.
15544         * tests/test-snprintf-posix.c: Likewise.
15545         * tests/test-sprintf-posix.c: Likewise.
15546         * tests/test-vasprintf-posix.c: Likewise.
15547         * tests/test-vfprintf-posix.c: Likewise.
15548         * tests/test-vprintf-posix.c: Likewise.
15549         * tests/test-vsnprintf-posix.c: Likewise.
15550         * tests/test-vsprintf-posix.c: Likewise.
15551
15552 2009-01-03  Jim Meyering  <meyering@redhat.com>
15553
15554         gnulib-tool: fix sed-based filtering
15555         * gnulib-tool (func_filter_filelist): Remove extra backslash
15556         in sed_fff_filter definition.
15557
15558 2009-01-02  Jim Meyering  <meyering@redhat.com>
15559
15560         strftime: avoid compilation failure on Solaris 2.6
15561         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
15562         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
15563         Don't #define mbrlen or mbsinit, since now they're guaranteed to
15564         be available.  Reported by Tom G. Christensen.  Details in
15565         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
15566
15567 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15568             Bruno Haible  <bruno@clisp.org>
15569
15570         Speed up gnulib-tool by doing more string processing through shell
15571         built-ins.
15572         * gnulib-tool (fast_func_append): New variable.
15573         (func_remove_prefix, func_remove_suffix): New functions.
15574         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
15575         (func_filter_filelist): New function.
15576         (func_get_dependencies): Use func_remove_suffix instead of sed.
15577         (func_get_automake_snippet): Use func_filter_filelist instead of a
15578         subshell and sed invocation.
15579
15580 2009-01-01  Bruno Haible  <bruno@clisp.org>
15581
15582         Fix a security bug.
15583         * gnulib-tool (func_import, import, update): Don't allow the characters
15584         '"', '$', '`', '\' in macro arguments that become part of commands that
15585         are evaluated.
15586
15587 2009-01-01  Bruno Haible  <bruno@clisp.org>
15588
15589         * gnulib-tool (func_reset_sigpipe): Add more comments.
15590
15591 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15592
15593         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
15594         func_emit_tests_Makefile_am, func_import): Abort loops early if we
15595         already know the answer.
15596
15597 2009-01-01  Jim Meyering  <meyering@redhat.com>
15598
15599         * lib/version-etc.c (version_etc_va): Update copyright year.
15600
15601 2008-12-30  Bruno Haible  <bruno@clisp.org>
15602
15603         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
15604         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
15605         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
15606
15607 2008-12-29  Eric Blake  <ebb9@byu.net>
15608
15609         multiarch: avoid autoconf AC_REQUIRE bug
15610         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
15611         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
15612         2.63 and older.
15613         Reported by Bruno Haible, and analyzed in
15614         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
15615
15616 2008-12-29  Bruno Haible  <bruno@clisp.org>
15617
15618         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
15619         files in subdirectories correctly.
15620         Reported by Ralf Wildenhues.
15621
15622 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15623
15624         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
15625         rather than 'join FILE -', for Solaris join.
15626
15627 2008-12-29  Bruno Haible  <bruno@clisp.org>
15628
15629         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
15630         quoting.
15631         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
15632         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15633         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
15634         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
15635         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
15636         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
15637         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
15638         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
15639         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
15640         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
15641         * m4/nls.m4 (AM_NLS): Likewise.
15642         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
15643         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
15644         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
15645         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
15646         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
15647         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
15648         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
15649         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
15650         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
15651         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15652         * m4/xsize.m4 (gl_XSIZE): Likewise.
15653         Suggested by Jim Meyering.
15654
15655 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15656
15657         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
15658         * lib/parse-duration.c: use a switch instead of cascading if's.
15659
15660 2008-12-29  Eric Blake  <ebb9@byu.net>
15661
15662         wchar.h: supply WEOF on Irix 5.3
15663         * lib/wchar.in.h (wint_t): Also supply WEOF.
15664         * lib/wctype.in.h (wint_t): Likewise.
15665         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
15666         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
15667         Reported by Tom G. Christensen.
15668
15669 2008-12-26  Bruno Haible  <bruno@clisp.org>
15670
15671         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
15672         i486, i586, i686.
15673
15674 2008-12-26  Bruno Haible  <bruno@clisp.org>
15675
15676         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
15677
15678 2008-12-26  Bruno Haible  <bruno@clisp.org>
15679
15680         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
15681         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
15682         not __STDC_CONSTANT_MACROS.
15683         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15684
15685 2008-12-25  Bruno Haible  <bruno@clisp.org>
15686
15687         Add support for universal builds to vasnprintf.
15688         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
15689         universal builds, guess no.
15690         * modules/vasnprintf-posix (Depends-on): Add multiarch.
15691         * modules/vasprintf-posix (Depends-on): Likewise.
15692         * modules/fprintf-posix (Depends-on): Likewise.
15693         * modules/vfprintf-posix (Depends-on): Likewise.
15694         * modules/snprintf-posix (Depends-on): Likewise.
15695         * modules/vsnprintf-posix (Depends-on): Likewise.
15696         * modules/sprintf-posix (Depends-on): Likewise.
15697         * modules/vsprintf-posix (Depends-on): Likewise.
15698         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15699         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15700         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15701         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15702         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15703         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15704         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15705
15706         Add support for universal builds to <inttypes.h>.
15707         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
15708         _SCNu64_PREFIX): In Apple
15709         universal builds, define directly, using _LP64.
15710         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
15711         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
15712         * modules/inttypes (Depends-on): Add multiarch.
15713         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15714
15715         Add support for universal builds to <stdint.h>.
15716         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
15717         universal builds, define directly, using _LP64.
15718         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
15719         Apple universal builds, don't test for the size and suffix of ptrdiff_t
15720         and size_t.
15721         * modules/stdint (Depends-on): Add multiarch.
15722         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
15723
15724         New module 'multiarch'.
15725         * modules/multiarch: New file.
15726         * m4/multiarch.m4: New file.
15727
15728 2008-12-25  Bruno Haible  <bruno@clisp.org>
15729
15730         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
15731
15732 2008-12-25  Bruno Haible  <bruno@clisp.org>
15733
15734         * modules/btowc (License): Relicense under LGPLv2+.
15735         * modules/mbsinit (License): Likewise.
15736         * modules/mbrtowc (License): Likewise.
15737         * modules/wcrtomb (License): Likewise.
15738         * modules/streq (License): Likewise.
15739         Reported by David Lutterkort <lutter@redhat.com>.
15740
15741 2008-12-23  Bruno Haible  <bruno@clisp.org>
15742
15743         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
15744
15745 2008-12-23  Bruno Haible  <bruno@clisp.org>
15746
15747         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
15748         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
15749         GETADDRINFO_LIB, not in LIBS.
15750         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
15751         * modules/canon-host (Link): Likewise.
15752         * NEWS: Mention the change.
15753         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
15754         GETADDRINFO_LIB.
15755
15756 2008-12-22  Bruno Haible  <bruno@clisp.org>
15757
15758         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
15759         * doc/posix-functions/iswalpha_l.texi: Likewise.
15760         * doc/posix-functions/iswblank_l.texi: Likewise.
15761         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15762         * doc/posix-functions/iswctype_l.texi: Likewise.
15763         * doc/posix-functions/iswdigit_l.texi: Likewise.
15764         * doc/posix-functions/iswgraph_l.texi: Likewise.
15765         * doc/posix-functions/iswlower_l.texi: Likewise.
15766         * doc/posix-functions/iswprint_l.texi: Likewise.
15767         * doc/posix-functions/iswpunct_l.texi: Likewise.
15768         * doc/posix-functions/iswspace_l.texi: Likewise.
15769         * doc/posix-functions/iswupper_l.texi: Likewise.
15770         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15771         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
15772         * doc/posix-functions/open_wmemstream.texi: Likewise.
15773         * doc/posix-functions/swscanf.texi: Likewise.
15774         * doc/posix-functions/towctrans_l.texi: Likewise.
15775         * doc/posix-functions/towlower.texi: Likewise.
15776         * doc/posix-functions/towlower_l.texi: Likewise.
15777         * doc/posix-functions/towupper.texi: Likewise.
15778         * doc/posix-functions/towupper_l.texi: Likewise.
15779         * doc/posix-functions/vfwprintf.texi: Likewise.
15780         * doc/posix-functions/vfwscanf.texi: Likewise.
15781         * doc/posix-functions/vswscanf.texi: Likewise.
15782         * doc/posix-functions/vwprintf.texi: Likewise.
15783         * doc/posix-functions/vwscanf.texi: Likewise.
15784         * doc/posix-functions/wcpcpy.texi: Likewise.
15785         * doc/posix-functions/wcpncpy.texi: Likewise.
15786         * doc/posix-functions/wcscasecmp.texi: Likewise.
15787         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
15788         * doc/posix-functions/wcscoll_l.texi: Likewise.
15789         * doc/posix-functions/wcsdup.texi: Likewise.
15790         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15791         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
15792         * doc/posix-functions/wcsnlen.texi: Likewise.
15793         * doc/posix-functions/wcsnrtombs.texi: Likewise.
15794         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15795         * doc/posix-functions/wctrans_l.texi: Likewise.
15796         * doc/posix-functions/wctype_l.texi: Likewise.
15797         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
15798         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
15799         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
15800         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
15801         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
15802         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
15803         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
15804         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
15805         * doc/glibc-functions/wcschrnul.texi: Likewise.
15806         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15807         * doc/glibc-functions/wcstod_l.texi: Likewise.
15808         * doc/glibc-functions/wcstof_l.texi: Likewise.
15809         * doc/glibc-functions/wcstol_l.texi: Likewise.
15810         * doc/glibc-functions/wcstold_l.texi: Likewise.
15811         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15812         * doc/glibc-functions/wcstoq.texi: Likewise.
15813         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15814         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15815         * doc/glibc-functions/wcstouq.texi: Likewise.
15816         * doc/glibc-functions/wmempcpy.texi: Likewise.
15817
15818 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
15819             Eric Blake  <ebb9@byu.net>
15820             Paolo Bonzini  <bonzini@gnu.org>
15821             Bruno Haible  <bruno@clisp.org>
15822
15823         Make c-stack work on Haiku.
15824         * lib/c-stack.c (SA_ONSTACK): Define fallback.
15825         (c_stack_action): Use SA_ONSTACK flag.
15826
15827 2008-12-22  Bruno Haible  <bruno@clisp.org>
15828
15829         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
15830
15831 2008-12-22  Bruno Haible  <bruno@clisp.org>
15832
15833         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
15834         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
15835         being overridden.
15836         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
15837         New macros.
15838         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
15839         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
15840         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
15841         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
15842
15843 2008-12-22  Bruno Haible  <bruno@clisp.org>
15844
15845         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
15846         from test code.
15847
15848 2008-12-22  Eric Blake  <ebb9@byu.net>
15849
15850         Avoid gcc warnings on cygwin.
15851         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
15852         Avoid unused variable.
15853         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
15854         Likewise.
15855
15856 2008-12-22  Bruno Haible  <bruno@clisp.org>
15857
15858         Remove HAVE_MBRTOWC conditionals.
15859         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
15860         (mbscasecmp): Assume mbrtowc function.
15861         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
15862         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
15863         * lib/mbschr.c: Include mbuiter.h unconditionally.
15864         (mbschr): Assume mbrtowc function.
15865         * lib/mbscspn.c: Include mbuiter.h unconditionally.
15866         (mbscspn): Assume mbrtowc function.
15867         * lib/mbslen.c: Include mbuiter.h unconditionally.
15868         (mbslen): Assume mbrtowc function.
15869         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
15870         (mbsncasecmp): Assume mbrtowc function.
15871         * lib/mbsnlen.c: Include mbiter.h unconditionally.
15872         (mbsnlen): Assume mbrtowc function.
15873         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
15874         (mbspbrk): Assume mbrtowc function.
15875         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
15876         (mbspcasecmp): Assume mbrtowc function.
15877         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
15878         (mbsrchr): Assume mbrtowc function.
15879         * lib/mbssep.c: Include mbuiter.h unconditionally.
15880         (mbssep): Assume mbrtowc function.
15881         * lib/mbsspn.c: Include mbuiter.h unconditionally.
15882         (mbsspn): Assume mbrtowc function.
15883         * lib/mbsstr.c: Include mbuiter.h unconditionally.
15884         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
15885         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
15886         (mbstok_r): Assume mbrtowc function.
15887         * lib/propername.c: Include mbuiter.h unconditionally.
15888         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
15889         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
15890         (trim2): Assume mbrtowc function.
15891         * lib/mbswidth.c (mbsinit): Remove fallback definition.
15892         (mbsnwidth): Assume mbrtowc function.
15893         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
15894         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
15895         fallback definitions.
15896         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
15897
15898 2008-12-22  Bruno Haible  <bruno@clisp.org>
15899
15900         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
15901
15902 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
15903
15904         * modules/regex: Request emulations for the mb*/wc* functions we need.
15905         * m4/regex.m4: Don't look for those functions here.
15906         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
15907
15908 2008-12-22  Bruno Haible  <bruno@clisp.org>
15909
15910         * modules/fnmatch (Depends-on): Remove duplicated dependency.
15911
15912 2008-12-21  Bruno Haible  <bruno@clisp.org>
15913
15914         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
15915         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
15916         (Include): Remove conditionalization.
15917         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
15918         (Include): Remove conditionalization.
15919         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
15920         (Include): Remove conditionalization.
15921         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
15922         * m4/mbfile.m4 (gl_MBFILE): Likewise.
15923         * NEWS: Mention the change.
15924         Reported by Alan Hourihane <alanh@fairlite.co.uk>
15925         via Sergey Poznyakoff <gray@gnu.org.ua>.
15926
15927 2008-12-21  Bruno Haible  <bruno@clisp.org>
15928
15929         * MODULES.html.sh (Extended multibyte and wide character utilities
15930         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
15931         wcrtomb, wcsrtombs.
15932         (Support for systems lacking POSIX:2008): Add accept, bind, close,
15933         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
15934         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
15935         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
15936
15937 2008-12-21  Bruno Haible  <bruno@clisp.org>
15938
15939         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
15940
15941 2008-12-21  Bruno Haible  <bruno@clisp.org>
15942
15943         * modules/wcsnrtombs-tests: New file.
15944         * tests/test-wcsnrtombs1.sh: New file.
15945         * tests/test-wcsnrtombs2.sh: New file.
15946         * tests/test-wcsnrtombs3.sh: New file.
15947         * tests/test-wcsnrtombs4.sh: New file.
15948         * tests/test-wcsnrtombs.c: New file.
15949
15950         New module 'wcsnrtombs'.
15951         * lib/wchar.in.h (wcsnrtombs): New declaration.
15952         * lib/wcsnrtombs.c: New file.
15953         * lib/wcsrtombs-state.c: New file.
15954         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
15955         (internal_state): Remove variable.
15956         * m4/wcsnrtombs.m4: New file.
15957         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
15958         compilation units.
15959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
15960         HAVE_WCSNRTOMBS.
15961         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
15962         HAVE_WCSNRTOMBS.
15963         * modules/wcsnrtombs: New file.
15964         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
15965         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
15966
15967 2008-12-21  Bruno Haible  <bruno@clisp.org>
15968
15969         * modules/wcsrtombs-tests: New file.
15970         * tests/test-wcsrtombs1.sh: New file.
15971         * tests/test-wcsrtombs2.sh: New file.
15972         * tests/test-wcsrtombs3.sh: New file.
15973         * tests/test-wcsrtombs4.sh: New file.
15974         * tests/test-wcsrtombs.c: New file.
15975
15976         New module 'wcsrtombs'.
15977         * lib/wchar.in.h (wcsrtombs): New declaration.
15978         * lib/wcsrtombs.c: New file.
15979         * m4/wcsrtombs.m4: New file.
15980         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
15981         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
15983         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
15984         * modules/wcsrtombs: New file.
15985         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
15986         bugs.
15987
15988 2008-12-21  Bruno Haible  <bruno@clisp.org>
15989
15990         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
15991         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
15992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
15993         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
15994         if not correct.
15995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
15996         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
15997         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
15998         m4/locale-zh.m4, m4/codeset.m4.
15999         * doc/posix-functions/wcrtomb.texi: Document the bug.
16000
16001 2008-12-21  Bruno Haible  <bruno@clisp.org>
16002
16003         Work around a btowc() bug on IRIX 6.5.
16004         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16005         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16006         REPLACE_WTOBC if not.
16007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16008         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16009         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16010
16011 2008-12-21  Bruno Haible  <bruno@clisp.org>
16012
16013         * modules/wcrtomb-tests: New file.
16014         * tests/test-wcrtomb.sh: New file.
16015         * tests/test-wcrtomb.c: New file.
16016
16017         New module 'wcrtomb'.
16018         * lib/wchar.in.h (wcrtomb): New declaration.
16019         * lib/wcrtomb.c: New file.
16020         * m4/wcrtomb.m4: New file.
16021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16022         HAVE_WCRTOMB.
16023         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16024         HAVE_WCRTOMB.
16025         * modules/wcrtomb: New file.
16026         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16027
16028 2008-12-21  Bruno Haible  <bruno@clisp.org>
16029
16030         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16031         * modules/mbsrtowcs (Files): Likewise.
16032         * modules/wctob (Files): Likewise.
16033         * modules/c-strcase-tests (Files): Likewise.
16034         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16035         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16036         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16037         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16038         * modules/vasnprintf-posix-tests (Files): Likewise.
16039
16040 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16041
16042         gitlog-to-changelog: pass all command-line arguments to git-log
16043         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16044         it is sometimes convenient to filter the commits in various ways.
16045         gitlog-to-changelog only allows --since to specify a start date,
16046         but git-log itself supports many other filtering mechanisms.
16047         At the moment, I want to filter by branch name.  Rather than
16048         adding a --branch option to gitlog-to-changelog, it seems more
16049         flexible to simply pass all options directly to git-log and let
16050         git do the work.  Notice that this effectively makes --since a
16051         redundant option for gitlog-to-changelog, but removing it would
16052         require current usage to change since calls would then require
16053         an additional '--'.
16054
16055 2008-12-21  Bruno Haible  <bruno@clisp.org>
16056
16057         * modules/mbsnrtowcs-tests: New file.
16058         * tests/test-mbsnrtowcs1.sh: New file.
16059         * tests/test-mbsnrtowcs2.sh: New file.
16060         * tests/test-mbsnrtowcs3.sh: New file.
16061         * tests/test-mbsnrtowcs4.sh: New file.
16062         * tests/test-mbsnrtowcs.c: New file.
16063
16064         New module 'mbsnrtowcs'.
16065         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16066         * lib/mbsnrtowcs.c: New file.
16067         * lib/mbsrtowcs-state.c: New file.
16068         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16069         (internal_state): Remove variable.
16070         * m4/mbsnrtowcs.m4: New file.
16071         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16072         compilation units.
16073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16074         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16075         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16076         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16077         * modules/mbsnrtowcs: New file.
16078         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16079         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16080         portability problem.
16081
16082 2008-12-21  Bruno Haible  <bruno@clisp.org>
16083
16084         Work around mbsrtowcs bug.
16085         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16086         (gl_FUNC_MBSRTOWCS): Invoke it.
16087         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16088         m4/locale-zh.m4.
16089         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16090
16091 2008-12-21  Bruno Haible  <bruno@clisp.org>
16092
16093         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16094
16095 2008-12-21  Bruno Haible  <bruno@clisp.org>
16096
16097         Update doc for AIX.
16098         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16099         16-bit wchar_t type.
16100         * doc/posix-functions/btowc.texi: Likewise.
16101         * doc/posix-functions/fgetwc.texi: Likewise.
16102         * doc/posix-functions/fgetws.texi: Likewise.
16103         * doc/posix-functions/fputwc.texi: Likewise.
16104         * doc/posix-functions/fputws.texi: Likewise.
16105         * doc/posix-functions/fwide.texi: Likewise.
16106         * doc/posix-functions/fwprintf.texi: Likewise.
16107         * doc/posix-functions/fwscanf.texi: Likewise.
16108         * doc/posix-functions/getwchar.texi: Likewise.
16109         * doc/posix-functions/getwc.texi: Likewise.
16110         * doc/posix-functions/iswalnum.texi: Likewise.
16111         * doc/posix-functions/iswalpha.texi: Likewise.
16112         * doc/posix-functions/iswblank.texi: Likewise.
16113         * doc/posix-functions/iswcntrl.texi: Likewise.
16114         * doc/posix-functions/iswctype.texi: Likewise.
16115         * doc/posix-functions/iswdigit.texi: Likewise.
16116         * doc/posix-functions/iswgraph.texi: Likewise.
16117         * doc/posix-functions/iswlower.texi: Likewise.
16118         * doc/posix-functions/iswprint.texi: Likewise.
16119         * doc/posix-functions/iswpunct.texi: Likewise.
16120         * doc/posix-functions/iswspace.texi: Likewise.
16121         * doc/posix-functions/iswupper.texi: Likewise.
16122         * doc/posix-functions/iswxdigit.texi: Likewise.
16123         * doc/posix-functions/mbrtowc.texi: Likewise.
16124         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16125         * doc/posix-functions/mbstowcs.texi: Likewise.
16126         * doc/posix-functions/mbtowc.texi: Likewise.
16127         * doc/posix-functions/putwchar.texi: Likewise.
16128         * doc/posix-functions/putwc.texi: Likewise.
16129         * doc/posix-functions/swprintf.texi: Likewise.
16130         * doc/posix-functions/tolower.texi: Likewise.
16131         * doc/posix-functions/toupper.texi: Likewise.
16132         * doc/posix-functions/towctrans.texi: Likewise.
16133         * doc/posix-functions/ungetwc.texi: Likewise.
16134         * doc/posix-functions/vswprintf.texi: Likewise.
16135         * doc/posix-functions/wcrtomb.texi: Likewise.
16136         * doc/posix-functions/wcscat.texi: Likewise.
16137         * doc/posix-functions/wcschr.texi: Likewise.
16138         * doc/posix-functions/wcscmp.texi: Likewise.
16139         * doc/posix-functions/wcscoll.texi: Likewise.
16140         * doc/posix-functions/wcscpy.texi: Likewise.
16141         * doc/posix-functions/wcscspn.texi: Likewise.
16142         * doc/posix-functions/wcsftime.texi: Likewise.
16143         * doc/posix-functions/wcslen.texi: Likewise.
16144         * doc/posix-functions/wcsncat.texi: Likewise.
16145         * doc/posix-functions/wcsncmp.texi: Likewise.
16146         * doc/posix-functions/wcsncpy.texi: Likewise.
16147         * doc/posix-functions/wcspbrk.texi: Likewise.
16148         * doc/posix-functions/wcsrchr.texi: Likewise.
16149         * doc/posix-functions/wcsrtombs.texi: Likewise.
16150         * doc/posix-functions/wcsspn.texi: Likewise.
16151         * doc/posix-functions/wcsstr.texi: Likewise.
16152         * doc/posix-functions/wcstod.texi: Likewise.
16153         * doc/posix-functions/wcstof.texi: Likewise.
16154         * doc/posix-functions/wcstoimax.texi: Likewise.
16155         * doc/posix-functions/wcstok.texi: Likewise.
16156         * doc/posix-functions/wcstold.texi: Likewise.
16157         * doc/posix-functions/wcstoll.texi: Likewise.
16158         * doc/posix-functions/wcstol.texi: Likewise.
16159         * doc/posix-functions/wcstombs.texi: Likewise.
16160         * doc/posix-functions/wcstoull.texi: Likewise.
16161         * doc/posix-functions/wcstoul.texi: Likewise.
16162         * doc/posix-functions/wcstoumax.texi: Likewise.
16163         * doc/posix-functions/wcswidth.texi: Likewise.
16164         * doc/posix-functions/wcsxfrm.texi: Likewise.
16165         * doc/posix-functions/wctob.texi: Likewise.
16166         * doc/posix-functions/wctomb.texi: Likewise.
16167         * doc/posix-functions/wctrans.texi: Likewise.
16168         * doc/posix-functions/wctype.texi: Likewise.
16169         * doc/posix-functions/wcwidth.texi: Likewise.
16170         * doc/posix-functions/wmemchr.texi: Likewise.
16171         * doc/posix-functions/wmemcmp.texi: Likewise.
16172         * doc/posix-functions/wmemcpy.texi: Likewise.
16173         * doc/posix-functions/wmemmove.texi: Likewise.
16174         * doc/posix-functions/wmemset.texi: Likewise.
16175         * doc/posix-functions/wprintf.texi: Likewise.
16176         * doc/posix-functions/wscanf.texi: Likewise.
16177
16178 2008-12-21  Bruno Haible  <bruno@clisp.org>
16179
16180         Update doc for HP-UX 11.11.
16181         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16182         in HP-UX version 11.00, not in all versions of HP-UX 11.
16183         * doc/posix-functions/fwide.texi: Likewise.
16184         * doc/posix-functions/fwprintf.texi: Likewise.
16185         * doc/posix-functions/fwscanf.texi: Likewise.
16186         * doc/posix-functions/inet_ntop.texi: Likewise.
16187         * doc/posix-functions/inet_pton.texi: Likewise.
16188         * doc/posix-functions/mbrlen.texi: Likewise.
16189         * doc/posix-functions/mbrtowc.texi: Likewise.
16190         * doc/posix-functions/mbsinit.texi: Likewise.
16191         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16192         * doc/posix-functions/swprintf.texi: Likewise.
16193         * doc/posix-functions/swscanf.texi: Likewise.
16194         * doc/posix-functions/towctrans.texi: Likewise.
16195         * doc/posix-functions/vfwprintf.texi: Likewise.
16196         * doc/posix-functions/vswprintf.texi: Likewise.
16197         * doc/posix-functions/vwprintf.texi: Likewise.
16198         * doc/posix-functions/wcrtomb.texi: Likewise.
16199         * doc/posix-functions/wcsrtombs.texi: Likewise.
16200         * doc/posix-functions/wcsstr.texi: Likewise.
16201         * doc/posix-functions/wctob.texi: Likewise.
16202         * doc/posix-functions/wctrans.texi: Likewise.
16203         * doc/posix-functions/wmemchr.texi: Likewise.
16204         * doc/posix-functions/wmemcmp.texi: Likewise.
16205         * doc/posix-functions/wmemcpy.texi: Likewise.
16206         * doc/posix-functions/wmemmove.texi: Likewise.
16207         * doc/posix-functions/wmemset.texi: Likewise.
16208         * doc/posix-functions/wprintf.texi: Likewise.
16209         * doc/posix-functions/wscanf.texi: Likewise.
16210
16211 2008-12-21  Bruno Haible  <bruno@clisp.org>
16212
16213         Work around a portability problem.
16214         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16215         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16216
16217 2008-12-20  Bruno Haible  <bruno@clisp.org>
16218
16219         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16220         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16221         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16222         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16223         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16224
16225         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16226         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16227         set.
16228         (GNULIB_defined_mbstate_t): New macro.
16229         (mbsinit): Redefine if REPLACE_MBSINIT is set.
16230         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16231         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16232         reuses the system's mbrtowc function but works around the bugs.
16233         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16234         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16235         macros.
16236         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16237         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16238         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16239         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16240         REPLACE_MBSINIT if mbsinit needs to be overridden.
16241         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16242         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16243         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16244         REPLACE_MBSINIT, REPLACE_MBRTOWC.
16245         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16246         m4/locale-zh.m4.
16247         (Depends): Add mbsinit.
16248         * modules/mbsinit (Depends): Add mbrtowc.
16249         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16250
16251 2008-12-20  Bruno Haible  <bruno@clisp.org>
16252
16253         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16254         so that there are no conversion errors on AIX.
16255         * tests/test-mbsrtowcs.c (main): LIkewise.
16256
16257 2008-12-20  Bruno Haible  <bruno@clisp.org>
16258
16259         Work around wctob bug on Solaris <= 9.
16260         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16261         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16263         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16264         * modules/wctob (Files): Add m4/locale-fr.m4.
16265         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16266
16267 2008-12-20  Bruno Haible  <bruno@clisp.org>
16268
16269         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16270         /dev/null.
16271         * tests/test-select-in.sh: Likewise.
16272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16273
16274 2008-12-20  Bruno Haible  <bruno@clisp.org>
16275
16276         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16277         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16278         Cygwin 1.5.x.
16279
16280 2008-12-20  Bruno Haible  <bruno@clisp.org>
16281
16282         Ensure mbstate_t is defined on HP-UX 11.11.
16283         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16284         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16285         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16286         AC_USE_SYSTEM_EXTENSIONS.
16287         * modules/fnmatch (Depends-on): Add extensions.
16288         * modules/mbrlen (Depends-on): Likewise.
16289         * modules/mbrtowc (Depends-on): Likewise.
16290         * modules/mbsinit (Depends-on): Likewise.
16291         * modules/mbsrtowcs (Depends-on): Likewise.
16292         * modules/mbswidth (Depends-on): Likewise.
16293         * modules/quotearg (Depends-on): Likewise.
16294         * modules/strftime (Depends-on): Likewise.
16295
16296 2008-12-20  Bruno Haible  <bruno@clisp.org>
16297
16298         Ensure wctob is declared on IRIX 6.5.
16299         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16300         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16301         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16303         of HAVE_WCTOB.
16304         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16305         HAVE_WCTOB.
16306         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16307
16308 2008-12-19  Bruno Haible  <bruno@clisp.org>
16309
16310         * modules/mbsrtowcs-tests: New file.
16311         * tests/test-mbsrtowcs1.sh: New file.
16312         * tests/test-mbsrtowcs2.sh: New file.
16313         * tests/test-mbsrtowcs3.sh: New file.
16314         * tests/test-mbsrtowcs4.sh: New file.
16315         * tests/test-mbsrtowcs.c: New file.
16316
16317         New module 'mbsrtowcs'.
16318         * lib/wchar.in.h (mbsrtowcs): New declaration.
16319         * lib/mbsrtowcs.c: New file.
16320         * m4/mbsrtowcs.m4: New file.
16321         * modules/mbsrtowcs: New file.
16322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16323         HAVE_MBSRTOWCS.
16324         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16325         HAVE_MBSRTOWCS.
16326         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16327
16328 2008-12-19  Bruno Haible  <bruno@clisp.org>
16329
16330         New module 'mbrlen'.
16331         * lib/wchar.in.h (mbrlen): New declaration.
16332         * lib/mbrlen.c: New file.
16333         * m4/mbrlen.m4: New file.
16334         * modules/mbrlen: New file.
16335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16336         HAVE_MBRLEN.
16337         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16338         HAVE_MBRLEN.
16339         * doc/posix-functions/mbrlen.texi: Document the new module.
16340
16341 2008-12-19  Bruno Haible  <bruno@clisp.org>
16342
16343         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16344         * modules/mbrtowc (Depends-on): Add verify.
16345         Suggested by Paul Eggert.
16346
16347 2008-12-18  Bruno Haible  <bruno@clisp.org>
16348
16349         * modules/mbsinit-tests: New file.
16350         * tests/test-mbsinit.sh: New file.
16351         * tests/test-mbsinit.c: New file.
16352
16353 2008-12-18  Bruno Haible  <bruno@clisp.org>
16354
16355         * modules/mbrtowc-tests: New file.
16356         * tests/test-mbrtowc1.sh: New file.
16357         * tests/test-mbrtowc2.sh: New file.
16358         * tests/test-mbrtowc3.sh: New file.
16359         * tests/test-mbrtowc4.sh: New file.
16360         * tests/test-mbrtowc.c: New file.
16361
16362         New module 'mbrtowc'.
16363         * lib/wchar.in.h (mbstate_t): Override when the system does not have
16364         mbsinit and mbrtowc.
16365         (mbrtowc): New declaration.
16366         * lib/mbrtowc.c: New file.
16367         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16368         * modules/mbrtowc: New file.
16369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16370         HAVE_MBRTOWC.
16371         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16372         HAVE_MBRTOWC.
16373         * doc/posix-functions/mbrtowc.texi: Document the new module.
16374
16375 2008-12-18  Bruno Haible  <bruno@clisp.org>
16376
16377         New module 'wctob'.
16378         * lib/wchar.in.h (wctob): New declaration.
16379         * lib/wctob.c: New file.
16380         * m4/wctob.m4: New file.
16381         * modules/wctob: New file.
16382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16383         HAVE_WCTOB.
16384         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16385         * doc/posix-functions/wctob.texi: Document the new module.
16386
16387 2008-12-18  Bruno Haible  <bruno@clisp.org>
16388
16389         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16390         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16391
16392 2008-12-18  Simon Josefsson  <simon@josefsson.org>
16393
16394         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
16395         G. Christensen" <tgc@jupiterrise.com>.
16396
16397         * lib/flock.c: Need to include errno.h.  Reported by "Tom
16398         G. Christensen" <tgc@jupiterrise.com>.
16399
16400         * lib/flock.c: Need to include string.h.  Reported by "Tom
16401         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16402         <ebb9@byu.net>.
16403
16404 2008-12-18  Bruno Haible  <bruno@clisp.org>
16405
16406         * m4/locale-ja.m4: New file, from GNU gettext.
16407
16408 2008-12-17  Bruno Haible  <bruno@clisp.org>
16409
16410         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16411         Suggested by Eric Blake.
16412
16413 2008-12-17  Bruno Haible  <bruno@clisp.org>
16414
16415         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16416
16417 2008-12-17  Bruno Haible  <bruno@clisp.org>
16418
16419         * lib/mbsinit.c: Include verify.h. Verify an assumption.
16420         * modules/mbsinit (Depends-on): Add verify.
16421         Suggested by Paul Eggert.
16422
16423 2008-12-17  Bruno Haible  <bruno@clisp.org>
16424
16425         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16426         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16427         gl_FUNC_MBRTOWC.
16428         * m4/mbiter.m4 (gl_MBITER): LIkewise.
16429         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16430         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16431         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16432         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16433         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16434         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16435         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16436         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16437         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16438         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16439         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16440         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16441         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16442         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16443         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16444         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16445         * modules/trim (configure.ac): Likewise.
16446
16447 2008-12-17  Bruno Haible  <bruno@clisp.org>
16448
16449         * modules/btowc-tests: New file.
16450         * tests/test-btowc1.sh: New file.
16451         * tests/test-btowc2.sh: New file.
16452         * tests/test-btowc.c: New file.
16453
16454         New module 'btowc'.
16455         * lib/wchar.in.h (btowc): New declaration.
16456         * lib/btowc.c: New file.
16457         * m4/btowc.m4: New file.
16458         * modules/btowc: New file.
16459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16460         HAVE_BTOWC.
16461         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16462         * doc/posix-functions/btowc.texi: Document the new module.
16463
16464 2008-12-17  Bruno Haible  <bruno@clisp.org>
16465
16466         New module 'mbsinit'.
16467         * lib/wchar.in.h (mbsinit): New declaration.
16468         * lib/mbsinit.c: New file.
16469         * m4/mbsinit.m4: New file.
16470         * modules/mbsinit: New file.
16471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16472         HAVE_MBSINIT.
16473         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16474         HAVE_MBSINIT.
16475         * doc/posix-functions/mbsinit.texi: Document the new module.
16476
16477 2008-12-16  Bruno Haible  <bruno@clisp.org>
16478
16479         * lib/unistd.in.h: Add comment.
16480         * tests/test-environ.c: Don't include <stdlib.h>.
16481
16482 2008-12-16  Bruno Haible  <bruno@clisp.org>
16483
16484         * lib/parse-duration.h (parse_duration): Document return value
16485         convention.
16486         * lib/parse-duration.c: Include specification header first. Add
16487         comments.
16488         (_): Remove macro.
16489         (parse_year_month_day, parse_hour_minute_second): Move side effects
16490         outside of strchr call.
16491         (parse_non_iso8601): Move side effects outside of isspace call.
16492         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16493         call.
16494
16495 2008-12-16  Bruno Haible  <bruno@clisp.org>
16496
16497         * tests/test-parse-duration.sh: Produce no output when the test
16498         succeeds.
16499
16500 2008-12-16  Bruno Haible  <bruno@clisp.org>
16501
16502         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16503         expressions.
16504
16505 2008-12-15  Bruno Haible  <bruno@clisp.org>
16506
16507         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16508         * doc/glibc-functions/flistxattr.texi: Likewise.
16509         * doc/glibc-functions/fopencookie.texi: Likewise.
16510         * doc/glibc-functions/fremovexattr.texi: Likewise.
16511         * doc/glibc-functions/fsetxattr.texi: Likewise.
16512         * doc/glibc-functions/getxattr.texi: Likewise.
16513         * doc/glibc-functions/lgetxattr.texi: Likewise.
16514         * doc/glibc-functions/listxattr.texi: Likewise.
16515         * doc/glibc-functions/llistxattr.texi: Likewise.
16516         * doc/glibc-functions/lremovexattr.texi: Likewise.
16517         * doc/glibc-functions/lsetxattr.texi: Likewise.
16518         * doc/glibc-functions/removexattr.texi: Likewise.
16519         * doc/glibc-functions/setxattr.texi: Likewise.
16520         * doc/posix-functions/open_memstream.texi: Likewise.
16521
16522 2008-12-15  Eric Blake  <ebb9@byu.net>
16523
16524         Update doc for cygwin 1.7.
16525         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
16526         functions.
16527         * doc/posix-functions/fchmodat.texi: Likewise.
16528         * doc/posix-functions/fchownat.texi: Likewise.
16529         * doc/posix-functions/fdopendir.texi: Likewise.
16530         * doc/posix-functions/fmemopen.texi: Likewise.
16531         * doc/posix-functions/freeaddrinfo.texi: Likewise.
16532         * doc/posix-functions/fstatat.texi: Likewise.
16533         * doc/posix-functions/futimens.texi: Likewise.
16534         * doc/posix-functions/gai_strerror.texi: Likewise.
16535         * doc/posix-functions/getaddrinfo.texi: Likewise.
16536         * doc/posix-functions/getnameinfo.texi: Likewise.
16537         * doc/posix-functions/if_freenameindex.texi: Likewise.
16538         * doc/posix-functions/if_indextoname.texi: Likewise.
16539         * doc/posix-functions/if_nameindex.texi: Likewise.
16540         * doc/posix-functions/if_nametoindex.texi: Likewise.
16541         * doc/posix-functions/insque.texi: Likewise.
16542         * doc/posix-functions/linkat.texi: Likewise.
16543         * doc/posix-functions/llrint.texi: Likewise.
16544         * doc/posix-functions/llrintf.texi: Likewise.
16545         * doc/posix-functions/llrintl.texi: Likewise.
16546         * doc/posix-functions/lockf.texi: Likewise.
16547         * doc/posix-functions/lrintl.texi: Likewise.
16548         * doc/posix-functions/mkdirat.texi: Likewise.
16549         * doc/posix-functions/mkfifoat.texi: Likewise.
16550         * doc/posix-functions/mknodat.texi: Likewise.
16551         * doc/posix-functions/mq_close.texi: Likewise.
16552         * doc/posix-functions/mq_getattr.texi: Likewise.
16553         * doc/posix-functions/mq_notify.texi: Likewise.
16554         * doc/posix-functions/mq_open.texi: Likewise.
16555         * doc/posix-functions/mq_receive.texi: Likewise.
16556         * doc/posix-functions/mq_send.texi: Likewise.
16557         * doc/posix-functions/mq_setattr.texi: Likewise.
16558         * doc/posix-functions/mq_timedreceive.texi: Likewise.
16559         * doc/posix-functions/mq_timedsend.texi: Likewise.
16560         * doc/posix-functions/mq_unlink.texi: Likewise.
16561         * doc/posix-functions/open_memstream.texi: Likewise.
16562         * doc/posix-functions/openat.texi: Likewise.
16563         * doc/posix-functions/posix_fadvise.texi: Likewise.
16564         * doc/posix-functions/posix_fallocate.texi: Likewise.
16565         * doc/posix-functions/posix_madvise.texi: Likewise.
16566         * doc/posix-functions/posix_memalign.texi: Likewise.
16567         * doc/posix-functions/posix_openpt.texi: Likewise.
16568         * doc/posix-functions/readlinkat.texi: Likewise.
16569         * doc/posix-functions/remque.texi: Likewise.
16570         * doc/posix-functions/renameat.texi: Likewise.
16571         * doc/posix-functions/rintl.texi: Likewise.
16572         * doc/posix-functions/sem_unlink.texi: Likewise.
16573         * doc/posix-functions/shm_open.texi: Likewise.
16574         * doc/posix-functions/shm_unlink.texi: Likewise.
16575         * doc/posix-functions/signgam.texi: Likewise.
16576         * doc/posix-functions/sigset.texi: Likewise.
16577         * doc/posix-functions/stpcpy.texi: Likewise.
16578         * doc/posix-functions/stpncpy.texi: Likewise.
16579         * doc/posix-functions/strerror.texi: Likewise.
16580         * doc/posix-functions/strtod.texi: Likewise.
16581         * doc/posix-functions/symlinkat.texi: Likewise.
16582         * doc/posix-functions/unlinkat.texi: Likewise.
16583         * doc/posix-functions/utimensat.texi: Likewise.
16584         * doc/glibc-functions/bindresvport.texi: Likewise.
16585         * doc/glibc-functions/dn_expand.texi: Likewise.
16586         * doc/glibc-functions/exp10.texi: Likewise.
16587         * doc/glibc-functions/exp10f.texi: Likewise.
16588         * doc/glibc-functions/fgetxattr.texi: Likewise.
16589         * doc/glibc-functions/flistxattr.texi: Likewise.
16590         * doc/glibc-functions/fopencookie.texi: Likewise.
16591         * doc/glibc-functions/freeifaddrs.texi: Likewise.
16592         * doc/glibc-functions/fremovexattr.texi: Likewise.
16593         * doc/glibc-functions/fsetxattr.texi: Likewise.
16594         * doc/glibc-functions/getifaddrs.texi: Likewise.
16595         * doc/glibc-functions/getxattr.texi: Likewise.
16596         * doc/glibc-functions/lgetxattr.texi: Likewise.
16597         * doc/glibc-functions/listxattr.texi: Likewise.
16598         * doc/glibc-functions/llistxattr.texi: Likewise.
16599         * doc/glibc-functions/lremovexattr.texi: Likewise.
16600         * doc/glibc-functions/lsetxattr.texi: Likewise.
16601         * doc/glibc-functions/pow10.texi: Likewise.
16602         * doc/glibc-functions/pow10f.texi: Likewise.
16603         * doc/glibc-functions/rcmd_af.texi: Likewise.
16604         * doc/glibc-functions/removexattr.texi: Likewise.
16605         * doc/glibc-functions/res_init.texi: Likewise.
16606         * doc/glibc-functions/res_mkquery.texi: Likewise.
16607         * doc/glibc-functions/res_query.texi: Likewise.
16608         * doc/glibc-functions/res_querydomain.texi: Likewise.
16609         * doc/glibc-functions/res_send.texi: Likewise.
16610         * doc/glibc-functions/rresvport_af.texi: Likewise.
16611         * doc/glibc-functions/setxattr.texi: Likewise.
16612         * doc/glibc-functions/strcasestr.texi: Likewise.
16613
16614 2008-12-15  Bruno Haible  <bruno@clisp.org>
16615
16616         Fix compilation error on OSF/1 4.0.
16617         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
16618         <sys/time.h>, simply delegate to the system header.
16619         Reported by Daniel Richard G. <oss@teragram.com>.
16620
16621 2008-12-15  Bruno Haible  <bruno@clisp.org>
16622
16623         * doc/posix-functions/openat.texi: Mention the 'openat' module.
16624         * doc/posix-functions/fchmodat.texi: Likewise.
16625         * doc/posix-functions/fchownat.texi: Likewise.
16626         * doc/posix-functions/fdopendir.texi: Likewise.
16627         * doc/posix-functions/fstatat.texi: Likewise.
16628         * doc/posix-functions/mkdirat.texi: Likewise.
16629         * doc/posix-functions/unlinkat.texi: Likewise.
16630
16631 2008-12-14  Bruno Haible  <bruno@clisp.org>
16632
16633         Update doc for POSIX:2008.
16634         * doc/posix-functions/faccessat.texi: New file.
16635         * doc/posix-functions/fchmodat.texi: New file.
16636         * doc/posix-functions/fchownat.texi: New file.
16637         * doc/posix-functions/fdopendir.texi: New file.
16638         * doc/posix-functions/fstatat.texi: New file.
16639         * doc/posix-functions/futimens.texi: New file.
16640         * doc/posix-functions/linkat.texi: New file.
16641         * doc/posix-functions/mkdirat.texi: New file.
16642         * doc/posix-functions/mkfifoat.texi: New file.
16643         * doc/posix-functions/mknodat.texi: New file.
16644         * doc/posix-functions/open_wmemstream.texi: New file.
16645         * doc/posix-functions/openat.texi: New file.
16646         * doc/posix-functions/psiginfo.texi: New file.
16647         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
16648         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
16649         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
16650         * doc/posix-functions/readlinkat.texi: New file.
16651         * doc/posix-functions/renameat.texi: New file.
16652         * doc/posix-functions/strerror_l.texi: New file.
16653         * doc/posix-functions/symlinkat.texi: New file.
16654         * doc/posix-functions/unlinkat.texi: New file.
16655         * doc/posix-functions/utimensat.texi: New file.
16656         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16657
16658 2008-12-14  Bruno Haible  <bruno@clisp.org>
16659
16660         Update doc for POSIX:2008.
16661         * doc/posix-functions/alphasort.texi: Renamed from
16662         doc/glibc-functions/alphasort.texi.
16663         * doc/posix-functions/dirfd.texi: Renamed from
16664         doc/glibc-functions/dirfd.texi.
16665         * doc/posix-functions/dprintf.texi: Renamed from
16666         doc/glibc-functions/dprintf.texi.
16667         * doc/posix-functions/duplocale.texi: Renamed from
16668         doc/glibc-functions/duplocale.texi.
16669         * doc/posix-functions/fexecve.texi: Renamed from
16670         doc/glibc-functions/fexecve.texi.
16671         * doc/posix-functions/fmemopen.texi: Renamed from
16672         doc/glibc-functions/fmemopen.texi.
16673         * doc/posix-functions/freelocale.texi: Renamed from
16674         doc/glibc-functions/freelocale.texi.
16675         * doc/posix-functions/getdate_err.texi: Renamed from
16676         doc/glibc-functions/getdate_err.texi.
16677         * doc/posix-functions/isalnum_l.texi: Renamed from
16678         doc/glibc-functions/isalnum_l.texi.
16679         * doc/posix-functions/isalpha_l.texi: Renamed from
16680         doc/glibc-functions/isalpha_l.texi.
16681         * doc/posix-functions/isblank_l.texi: Renamed from
16682         doc/glibc-functions/isblank_l.texi.
16683         * doc/posix-functions/iscntrl_l.texi: Renamed from
16684         doc/glibc-functions/iscntrl_l.texi.
16685         * doc/posix-functions/isdigit_l.texi: Renamed from
16686         doc/glibc-functions/isdigit_l.texi.
16687         * doc/posix-functions/isgraph_l.texi: Renamed from
16688         doc/glibc-functions/isgraph_l.texi.
16689         * doc/posix-functions/islower_l.texi: Renamed from
16690         doc/glibc-functions/islower_l.texi.
16691         * doc/posix-functions/isprint_l.texi: Renamed from
16692         doc/glibc-functions/isprint_l.texi.
16693         * doc/posix-functions/ispunct_l.texi: Renamed from
16694         doc/glibc-functions/ispunct_l.texi.
16695         * doc/posix-functions/isspace_l.texi: Renamed from
16696         doc/glibc-functions/isspace_l.texi.
16697         * doc/posix-functions/isupper_l.texi: Renamed from
16698         doc/glibc-functions/isupper_l.texi.
16699         * doc/posix-functions/iswalnum_l.texi: Renamed from
16700         doc/glibc-functions/iswalnum_l.texi.
16701         * doc/posix-functions/iswalpha_l.texi: Renamed from
16702         doc/glibc-functions/iswalpha_l.texi.
16703         * doc/posix-functions/iswblank_l.texi: Renamed from
16704         doc/glibc-functions/iswblank_l.texi.
16705         * doc/posix-functions/iswcntrl_l.texi: Renamed from
16706         doc/glibc-functions/iswcntrl_l.texi.
16707         * doc/posix-functions/iswctype_l.texi: Renamed from
16708         doc/glibc-functions/iswctype_l.texi.
16709         * doc/posix-functions/iswdigit_l.texi: Renamed from
16710         doc/glibc-functions/iswdigit_l.texi.
16711         * doc/posix-functions/iswgraph_l.texi: Renamed from
16712         doc/glibc-functions/iswgraph_l.texi.
16713         * doc/posix-functions/iswlower_l.texi: Renamed from
16714         doc/glibc-functions/iswlower_l.texi.
16715         * doc/posix-functions/iswprint_l.texi: Renamed from
16716         doc/glibc-functions/iswprint_l.texi.
16717         * doc/posix-functions/iswpunct_l.texi: Renamed from
16718         doc/glibc-functions/iswpunct_l.texi.
16719         * doc/posix-functions/iswspace_l.texi: Renamed from
16720         doc/glibc-functions/iswspace_l.texi.
16721         * doc/posix-functions/iswupper_l.texi: Renamed from
16722         doc/glibc-functions/iswupper_l.texi.
16723         * doc/posix-functions/iswxdigit_l.texi: Renamed from
16724         doc/glibc-functions/iswxdigit_l.texi.
16725         * doc/posix-functions/isxdigit_l.texi: Renamed from
16726         doc/glibc-functions/isxdigit_l.texi.
16727         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
16728         doc/glibc-functions/mbsnrtowcs.texi.
16729         * doc/posix-functions/mkdtemp.texi: Renamed from
16730         doc/glibc-functions/mkdtemp.texi.
16731         * doc/posix-functions/newlocale.texi: Renamed from
16732         doc/glibc-functions/newlocale.texi.
16733         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
16734         doc/glibc-functions/nl_langinfo_l.texi.
16735         * doc/posix-functions/open_memstream.texi: Renamed from
16736         doc/glibc-functions/open_memstream.texi.
16737         * doc/posix-functions/opterr.texi: Renamed from
16738         doc/glibc-functions/opterr.texi.
16739         * doc/posix-functions/optind.texi: Renamed from
16740         doc/glibc-functions/optind.texi.
16741         * doc/posix-functions/optopt.texi: Renamed from
16742         doc/glibc-functions/optopt.texi.
16743         * doc/posix-functions/psignal.texi: Renamed from
16744         doc/glibc-functions/psignal.texi.
16745         * doc/posix-functions/scandir.texi: Renamed from
16746         doc/glibc-functions/scandir.texi.
16747         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
16748         doc/glibc-functions/sched_get_priority_min.texi.
16749         * doc/posix-functions/signgam.texi: Renamed from
16750         doc/glibc-functions/signgam.texi.
16751         * doc/posix-functions/stpcpy.texi: Renamed from
16752         doc/glibc-functions/stpcpy.texi.
16753         * doc/posix-functions/stpncpy.texi: Renamed from
16754         doc/glibc-functions/stpncpy.texi.
16755         * doc/posix-functions/strcasecmp_l.texi: Renamed from
16756         doc/glibc-functions/strcasecmp_l.texi.
16757         * doc/posix-functions/strcoll_l.texi: Renamed from
16758         doc/glibc-functions/strcoll_l.texi.
16759         * doc/posix-functions/strfmon_l.texi: Renamed from
16760         doc/glibc-functions/strfmon_l.texi.
16761         * doc/posix-functions/strftime_l.texi: Renamed from
16762         doc/glibc-functions/strftime_l.texi.
16763         * doc/posix-functions/strncasecmp_l.texi: Renamed from
16764         doc/glibc-functions/strncasecmp_l.texi.
16765         * doc/posix-functions/strndup.texi: Renamed from
16766         doc/glibc-functions/strndup.texi.
16767         * doc/posix-functions/strnlen.texi: Renamed from
16768         doc/glibc-functions/strnlen.texi.
16769         * doc/posix-functions/strsignal.texi: Renamed from
16770         doc/glibc-functions/strsignal.texi.
16771         * doc/posix-functions/strxfrm_l.texi: Renamed from
16772         doc/glibc-functions/strxfrm_l.texi.
16773         * doc/posix-functions/timer_gettime.texi: Renamed from
16774         doc/glibc-functions/timer_gettime.texi.
16775         * doc/posix-functions/tolower_l.texi: Renamed from
16776         doc/glibc-functions/tolower_l.texi.
16777         * doc/posix-functions/toupper_l.texi: Renamed from
16778         doc/glibc-functions/toupper_l.texi.
16779         * doc/posix-functions/towctrans_l.texi: Renamed from
16780         doc/glibc-functions/towctrans_l.texi.
16781         * doc/posix-functions/towlower_l.texi: Renamed from
16782         doc/glibc-functions/towlower_l.texi.
16783         * doc/posix-functions/towupper_l.texi: Renamed from
16784         doc/glibc-functions/towupper_l.texi.
16785         * doc/posix-functions/uselocale.texi: Renamed from
16786         doc/glibc-functions/uselocale.texi.
16787         * doc/posix-functions/vdprintf.texi: Renamed from
16788         doc/glibc-functions/vdprintf.texi.
16789         * doc/posix-functions/wcpcpy.texi:
16790         Renamed from doc/glibc-functions/wcpcpy.texi.
16791         * doc/posix-functions/wcpncpy.texi: Renamed from
16792         doc/glibc-functions/wcpncpy.texi.
16793         * doc/posix-functions/wcscasecmp.texi: Renamed from
16794         doc/glibc-functions/wcscasecmp.texi.
16795         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
16796         doc/glibc-functions/wcscasecmp_l.texi.
16797         * doc/posix-functions/wcscoll_l.texi: Renamed from
16798         doc/glibc-functions/wcscoll_l.texi.
16799         * doc/posix-functions/wcsdup.texi: Renamed from
16800         doc/glibc-functions/wcsdup.texi.
16801         * doc/posix-functions/wcsncasecmp.texi: Renamed from
16802         doc/glibc-functions/wcsncasecmp.texi.
16803         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
16804         doc/glibc-functions/wcsncasecmp_l.texi.
16805         * doc/posix-functions/wcsnlen.texi: Renamed from
16806         doc/glibc-functions/wcsnlen.texi.
16807         * doc/posix-functions/wcsnrtombs.texi: Renamed from
16808         doc/glibc-functions/wcsnrtombs.texi.
16809         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
16810         doc/glibc-functions/wcsxfrm_l.texi.
16811         * doc/posix-functions/wctrans_l.texi: Renamed from
16812         doc/glibc-functions/wctrans_l.texi.
16813         * doc/posix-functions/wctype_l.texi: Renamed from
16814         doc/glibc-functions/wctype_l.texi.
16815         * doc/gnulib.texi (Function Substitutes): Add these subsections.
16816         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
16817         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
16818         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
16819         these subsections.
16820         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
16821         Remove sections.
16822
16823 2008-12-14  Bruno Haible  <bruno@clisp.org>
16824
16825         Update doc for POSIX:2008.
16826         * doc/posix-functions/*.texi: Update URL of POSIX specification.
16827
16828 2008-12-14  Bruno Haible  <bruno@clisp.org>
16829
16830         Update doc for POSIX:2008.
16831         * doc/pastposix-functions/bcmp.texi: Renamed from
16832         doc/posix-functions/bcmp.texi.
16833         * doc/pastposix-functions/bcopy.texi: Renamed from
16834         doc/posix-functions/bcopy.texi.
16835         * doc/pastposix-functions/bsd_signal.texi: Renamed from
16836         doc/posix-functions/bsd_signal.texi.
16837         * doc/pastposix-functions/bzero.texi: Renamed from
16838         doc/posix-functions/bzero.texi.
16839         * doc/pastposix-functions/ecvt.texi: Renamed from
16840         doc/posix-functions/ecvt.texi.
16841         * doc/pastposix-functions/fcvt.texi: Renamed from
16842         doc/posix-functions/fcvt.texi.
16843         * doc/pastposix-functions/ftime.texi: Renamed from
16844         doc/posix-functions/ftime.texi.
16845         * doc/pastposix-functions/gcvt.texi: Renamed from
16846         doc/posix-functions/gcvt.texi.
16847         * doc/pastposix-functions/getcontext.texi: Renamed from
16848         doc/posix-functions/getcontext.texi.
16849         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
16850         doc/posix-functions/gethostbyaddr.texi.
16851         * doc/pastposix-functions/gethostbyname.texi: Renamed from
16852         doc/posix-functions/gethostbyname.texi.
16853         * doc/pastposix-functions/getwd.texi: Renamed from
16854         doc/posix-functions/getwd.texi.
16855         * doc/pastposix-functions/h_errno.texi: Renamed from
16856         doc/posix-functions/h_errno.texi.
16857         * doc/pastposix-functions/index.texi: Renamed from
16858         doc/posix-functions/index.texi.
16859         * doc/pastposix-functions/makecontext.texi: Renamed from
16860         doc/posix-functions/makecontext.texi.
16861         * doc/pastposix-functions/mktemp.texi: Renamed from
16862         doc/posix-functions/mktemp.texi.
16863         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
16864         doc/posix-functions/pthread_attr_getstackaddr.texi.
16865         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
16866         doc/posix-functions/pthread_attr_setstackaddr.texi.
16867         * doc/pastposix-functions/rindex.texi: Renamed from
16868         doc/posix-functions/rindex.texi.
16869         * doc/pastposix-functions/scalb.texi: Renamed from
16870         doc/posix-functions/scalb.texi.
16871         * doc/pastposix-functions/setcontext.texi: Renamed from
16872         doc/posix-functions/setcontext.texi.
16873         * doc/pastposix-functions/swapcontext.texi: Renamed from
16874         doc/posix-functions/swapcontext.texi.
16875         * doc/pastposix-functions/ualarm.texi: Renamed from
16876         doc/posix-functions/ualarm.texi.
16877         * doc/pastposix-functions/usleep.texi: Renamed from
16878         doc/posix-functions/usleep.texi.
16879         * doc/pastposix-functions/vfork.texi: Renamed from
16880         doc/posix-functions/vfork.texi.
16881         * doc/pastposix-functions/wcswcs.texi: Renamed from
16882         doc/posix-functions/wcswcs.texi.
16883         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
16884         (Function Substitutes): Update.
16885
16886 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16887
16888         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
16889         m4/strerror.m4.
16890
16891 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16892             Bruno Haible  <bruno@clisp.org>
16893
16894         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
16895
16896 2008-12-13  Bruno Haible  <bruno@clisp.org>
16897
16898         * modules/strtoull (Depends-on): Remove unistd.
16899
16900 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16901
16902         * modules/strtoull (Depends-on): Add stdlib.
16903
16904 2008-12-11  Simon Josefsson  <simon@josefsson.org>
16905
16906         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
16907
16908 2008-12-10  Jim Meyering  <meyering@redhat.com>
16909
16910         gl_ASSERT: don't say assertions are disabled when they're not
16911         * m4/assert.m4 (gl_ASSERT): Do not make configure report
16912         "checking whether to enable assertions... no", when they are in
16913         fact enabled.  This is solely a bug in the output of configure.
16914         In spite of saying "no", NDEBUG was not defined in that case.
16915         Also, as noted by Eric Blake, leave assertions enabled upon
16916         --enable-assert=INVALID.
16917
16918 2008-12-10  Bruno Haible  <bruno@clisp.org>
16919
16920         Change MODULES.html to refer to POSIX:2008 where possible.
16921         * MODULES.html.sh (POSIX2008_URL): New variable.
16922         (posix_headers): Remove sys/timeb, ucontext.
16923         (posix2001_headers): New variable.
16924         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
16925         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
16926         index, makecontext, mktemp, pthread_attr_getstackaddr,
16927         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
16928         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
16929         (posix2001_functions): New variable.
16930         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
16931         otherwise.
16932
16933 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16934
16935         add missing include to parse-duration.c
16936         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
16937         * modules/parse-duration (Depends-on): Add xalloc.
16938
16939         fix sed script reading maint.mk
16940         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
16941         (syntax-check-rules): Use it.
16942
16943 2008-12-09  Bruno Haible  <bruno@clisp.org>
16944
16945         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
16946         MacOS X 10.4/PowerPC.
16947         Reported by Simon Josefsson.
16948
16949 2008-12-08  Jim Meyering  <meyering@redhat.com>
16950
16951         work around mingw's lack of some S_IF definitions
16952         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
16953         Reported by Simon Josefsson.
16954
16955 2008-12-08  Bruno Haible  <bruno@clisp.org>
16956
16957         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
16958         applied to variables. Needed on MacOS X 10.4/PowerPC.
16959         Reported by Simon Josefsson.
16960
16961 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
16962         and Eric Blake  <ebb9@byu.net>
16963
16964         assert: honor --enable-assert
16965         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
16966         order to honor --enable-assert, rather than treating it as a
16967         synonym for --disable-assert.
16968
16969 2008-12-08  Jim Meyering  <meyering@redhat.com>
16970
16971         * lib/posixtm.c: Remove now-useless declaration of mktime.
16972
16973         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
16974
16975 2008-12-07  Bruno Haible  <bruno@clisp.org>
16976
16977         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
16978         test_once): Mark functions as static.
16979         * tests/test-tls.c (test_tls): Likewise.
16980
16981 2008-12-07  Bruno Haible  <bruno@clisp.org>
16982
16983         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
16984         iconv_register_autodetect.
16985
16986 2008-12-07  Jim Meyering  <meyering@redhat.com>
16987
16988         posixtm.c: avoid a warning
16989         * lib/posixtm.c (posixtime): Don't initialize tm0.
16990         It's no longer needed to placate gcc4's -Wuninitialized,
16991         and the attempt to placate would elicit a new warning.
16992
16993         unicodeio.c: mark unused parameters
16994         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
16995         (fallback_failure_callback): Likewise.
16996
16997 2008-12-07  Bruno Haible  <bruno@clisp.org>
16998
16999         * gnulib-tool (func_create_testdir): When building the tests
17000         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17001         Reported by Simon Josefsson.
17002
17003 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17004
17005         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17006
17007 2008-12-06  Bruno Haible  <bruno@clisp.org>
17008
17009         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17010         Suggested by Eric Blake.
17011
17012 2008-12-06  Bruno Haible  <bruno@clisp.org>
17013
17014         Fix a c-stack test failure on MacOS X.
17015         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17016         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17017         handler for SIGBUS as well.
17018         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17019         install a signal handler for SIGBUS as well.
17020         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17021
17022 2008-12-06  Bruno Haible  <bruno@clisp.org>
17023
17024         Advocacy documentation.
17025         * doc/gnulib-intro.texi (Benefits): New section.
17026         * doc/gnulib.texi: Update.
17027
17028 2008-12-06  Bruno Haible  <bruno@clisp.org>
17029
17030         Document the 'manywarnings' module.
17031         * doc/manywarnings.texi: New file.
17032         * doc/gnulib.texi: Include it.
17033
17034 2008-12-05  Eric Blake  <ebb9@byu.net>
17035
17036         tests: silence some gcc warnings
17037         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17038         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17039         type mismatches.
17040
17041 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17042             Bruno Haible  <bruno@clisp.org>
17043
17044         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17045
17046 2008-11-29  Jim Meyering  <meyering@redhat.com>
17047
17048         unicodeio.c: mark unused parameters
17049         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17050         (fallback_failure_callback): Likewise.
17051
17052         fts: fix a thinko
17053         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17054         (set_stat_type): Return S_IF*-valued "type" directly.
17055         Prompted by James Youngman's spotting a related bug.
17056         Confirmed by further testing through find.
17057
17058         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17059         * lib/fts.c (D_TYPE): Define.
17060         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17061         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17062         (s_ifmt_shift_bits): New function.
17063         (set_stat_type): New function.
17064         (fts_build): When not calling fts_stat, call set_stat_type
17065         to propagate dirent.d_type info to fts_read caller.
17066         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17067         fts_statp->st_mode type information may be valid.
17068
17069 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17070
17071         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17072         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17073         <sds@gnu.org>.
17074
17075 2008-11-20  Bruno Haible  <bruno@clisp.org>
17076
17077         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17078         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17079         INCLUDE_NEXT.
17080         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17081         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17082         * modules/math (Makefile.am): Substitute
17083         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17084         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17085
17086 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17087             Bruno Haible  <bruno@clisp.org>
17088
17089         * lib/stdint.in.h: Define all type macros so that their expansion is
17090         a single typedef'ed token. Fixes a compilation failure in Boost which
17091         does "using ::int8_t;".
17092
17093 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17094
17095         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17096         gl_MANYWARN_ALL_GCC.
17097         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17098         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17099         * modules/manywarnings: New file.
17100         * MODULES.html.sh: Mention manywarnings module.
17101
17102 2008-11-18  Bruno Haible  <bruno@clisp.org>
17103
17104         * doc/gnulib-tool.texi (Unit tests): New section.
17105
17106 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17107
17108         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17109         paths like 'lib/po/foo.po'.
17110
17111 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17112
17113         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17114         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17115
17116 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17117
17118         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17119         parameter works.
17120
17121 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17122
17123         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17124
17125 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17126
17127         * modules/parse-duration-tests: New file.
17128         * tests/test-parse-duration.sh: New file.
17129         * tests/test-parse-duration.c: New file.
17130
17131         New module 'parse-duration'.
17132         * lib/parse-duration.h: New file.
17133         * lib/parse-duration.c: New file.
17134         * modules/parse-duration: New file.
17135
17136 2008-11-17  Bruno Haible  <bruno@clisp.org>
17137
17138         * tests/test-select-out.sh: Comment out the first pipe test.
17139         Reported by Simon Josefsson.
17140
17141 2008-11-17  Bruno Haible  <bruno@clisp.org>
17142
17143         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17144         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17145         gl_HOSTENT.
17146
17147 2008-11-17  Bruno Haible  <bruno@clisp.org>
17148
17149         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17150         -lnetwork and -lnet. Needed for Haiku and BeOS.
17151
17152 2008-11-16  Bruno Haible  <bruno@clisp.org>
17153
17154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17155
17156 2008-11-16  Bruno Haible  <bruno@clisp.org>
17157
17158         Avoid test failure on Haiku.
17159         * tests/test-fsync.c: Include <errno.h>.
17160         (main): Don't require that fsync (0) fails.
17161
17162 2008-11-15  Bruno Haible  <bruno@clisp.org>
17163
17164         New module 'hostent'.
17165         * modules/hostent: New file.
17166         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17167
17168 2008-11-15  Bruno Haible  <bruno@clisp.org>
17169
17170         New module 'servent'.
17171         * modules/servent: New file.
17172         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17173
17174 2008-11-15  Bruno Haible  <bruno@clisp.org>
17175
17176         Avoid generating same test program with two different rules.
17177         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17178         test-frexp to test-frexp-nolibm.
17179         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17180         test-frexpl to test-frexpl-nolibm.
17181
17182 2008-11-15  Bruno Haible  <bruno@clisp.org>
17183
17184         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17185         $(FREXPL_LIBM).
17186
17187 2008-11-15  Bruno Haible  <bruno@clisp.org>
17188
17189         * lib/netdb.in.h: Activate the definitions also when the system's
17190         <netdb.h> has 'struct addrinfo'.
17191         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17192         EAI_OVERFLOW or AI_NUMERICSERV.
17193         * doc/posix-headers/netdb.texi: Document the problem.
17194
17195 2008-11-15  Bruno Haible  <bruno@clisp.org>
17196
17197         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17198
17199         Make the 'sched' module work on platforms where <sched.h> exists but
17200         is incomplete (such as Haiku).
17201         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17202         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17203         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17204         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17205         HAVE_STRUCT_SCHED_PARAM.
17206         * modules/sched (Depends-on): Add include_next.
17207         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17208         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17209         * doc/posix-headers/sched.texi: Document the issue.
17210
17211 2008-11-13  Jim Meyering  <meyering@redhat.com>
17212
17213         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17214         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17215         test would fail due to the difference in the Report bugs to ...
17216         line.  The expected address is empty, "<>", while the actual
17217         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
17218
17219 2008-11-12  Bruno Haible  <bruno@clisp.org>
17220
17221         lstat: don't compile lstat.c on systems lacking lstat
17222         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17223         which don't have lstat; this is handled by lib/sys_stat.in.h already.
17224         Reported by Daniel P. Berrange via Jim Meyering.
17225
17226 2008-11-12  Jim Meyering  <meyering@redhat.com>
17227
17228         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17229
17230 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17231
17232         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17233         instead.
17234
17235 2008-11-12  Bruno Haible  <bruno@clisp.org>
17236
17237         * lib/unicodeio.c: Include unistr.h.
17238         (utf8_wctomb): Remove function.
17239         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17240
17241 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17242
17243         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17244         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17245         <bruno@clisp.org>.
17246         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17247
17248 2008-11-12  Simon Josefsson  <simon@josefsson.org>
17249
17250         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17251         * doc/gnulib.texi: Add section for warnings.
17252
17253 2008-11-11  Bruno Haible  <bruno@clisp.org>
17254
17255         * lib/sockets.h: Add a comment.
17256
17257 2008-11-11  Karl Berry  <karl@gnu.org>
17258
17259         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17260
17261 2008-11-11  Eric Blake  <ebb9@byu.net>
17262
17263         fdl.texi: avoid git symlinks
17264         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17265
17266 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17267
17268         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17269
17270 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17271
17272         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17273         (gl_WARN_ADD): Substitute $2 if literal.
17274
17275 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17276
17277         * m4/warning.m4: Remove.
17278
17279 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
17280
17281         * m4/warnings.m4: Almost complete rewrite. :-)
17282
17283 2008-11-10  Simon Josefsson  <simon@josefsson.org>
17284
17285         * modules/warnings: New module.
17286         * m4/warnings.m4: New file.
17287         * MODULES.html.sh: Mention warnings module.
17288         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17289         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17290
17291 2008-11-10  Eric Blake  <ebb9@byu.net>
17292
17293         fdl.texi: make a symlink to the latest version
17294         * doc/standards.texi: Revert today's earlier change.
17295         * doc/fdl-1.2.texi: Rename from old fdl.texi...
17296         * doc/fdl.texi: ...and replace this with a symlink to the newer
17297         fdl-1.3.texi.
17298
17299 2008-11-10  Bruno Haible  <bruno@clisp.org>
17300
17301         * tests/test-select-fd.c (main): Accept the result file name as fourth
17302         argument.
17303         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17304         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17305
17306 2008-11-10  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17309         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17310         as autoconf-substituted macros.
17311         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17312         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17313         gl_NETDB_H_DEFAULTS. Set these variables.
17314         * modules/netdb (Makefile.am): Substitute these variables.
17315
17316 2008-11-10  Eric Blake  <ebb9@byu.net>
17317
17318         standards.texi: include correct file for FDL 1.3
17319         * doc/standards.texi (GNU Free Documentation License): Change
17320         include file to pull in FDL 1.3, not 1.2.
17321
17322         fdl.texi: revert accidental change to license
17323         * doc/fdl.texi: This is FDL 1.2, not 1.3.
17324
17325 2008-11-10  Bruno Haible  <bruno@clisp.org>
17326
17327         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17328         cross-compiling guesses also when the native compile gives no result.
17329
17330 2008-11-10  Bruno Haible  <bruno@clisp.org>
17331
17332         * lib/spawni.c (__spawni): Force variable into the stack.
17333
17334 2008-11-10  Bruno Haible  <bruno@clisp.org>
17335
17336         Add support for Haiku.
17337         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17338         glibc and BeOS, but also on Haiku.
17339         * lib/fpurge.c (fpurge): Likewise.
17340         * lib/freadable.c (freadable): Likewise.
17341         * lib/freadahead.c (freadahead): Likewise.
17342         * lib/freading.c (freading): Likewise.
17343         * lib/freadptr.c (freadptr): Likewise.
17344         * lib/freadseek.c (freadptrinc): Likewise.
17345         * lib/fseeko.c (rpl_fseeko): Likewise.
17346         * lib/fseterr.c (fseterr): Likewise.
17347         * lib/fwritable.c (fwritable): Likewise.
17348         * lib/fwriting.c (fwriting): Likewise.
17349         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17350
17351 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17352
17353         * lib/config.charset: Treat Haiku like BeOS.
17354
17355 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
17356
17357         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17358         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17359
17360 2008-11-08  Bruno Haible  <bruno@clisp.org>
17361
17362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17363         AC_CACHE_CHECK.
17364
17365 2008-11-08  Bruno Haible  <bruno@clisp.org>
17366
17367         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17368
17369 2008-11-08  Bruno Haible  <bruno@clisp.org>
17370
17371         * tests/test-select-fd.c: New file.
17372         * tests/test-select-in.sh: New file.
17373         * tests/test-select-out.sh: New file.
17374         * tests/test-select-stdin.c: New file.
17375         * modules/select-tests (Files): Add the new files.
17376         (Depends-on): Add gettimeofday.
17377         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17378         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17379         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17380
17381 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
17382             Bruno Haible  <bruno@clisp.org>
17383
17384         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17385
17386 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
17387
17388         * build-aux/pmccabe2html: Added support for C++ source files.
17389
17390 2008-11-05  Ben Pfaff  <blp@gnu.org>
17391
17392         Fix lib/close.c build on Windows.
17393         * modules/close (Files): Add lib/w32sock.h.
17394
17395 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
17396
17397         Accept Bison's NEWS format.
17398         * build-aux/announce-gen (print_news_deltas): Tweak
17399         $re_prefix.
17400
17401 2008-11-04  Bruno Haible  <bruno@clisp.org>
17402
17403         * modules/random_r (Maintainer): Add glibc.
17404
17405 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17406
17407         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17408         by karl@freefriends.org (Karl Berry).
17409         * doc/alloca.texi: Likewise.
17410         * doc/c-ctype.texi: Likewise.
17411         * doc/c-strcase.texi: Likewise.
17412         * doc/c-strcaseeq.texi: Likewise.
17413         * doc/c-strcasestr.texi: Likewise.
17414         * doc/c-strstr.texi: Likewise.
17415         * doc/c-strtod.texi: Likewise.
17416         * doc/c-strtold.texi: Likewise.
17417         * doc/ctime.texi: Likewise.
17418         * doc/error.texi: Likewise.
17419         * doc/fdl.texi: Likewise.
17420         * doc/gcd.texi: Likewise.
17421         * doc/getdate.texi: Likewise.
17422         * doc/gnulib-intro.texi: Likewise.
17423         * doc/gnulib-tool.texi: Likewise.
17424         * doc/gnulib.texi: Likewise.
17425         * doc/inet_ntoa.texi: Likewise.
17426         * doc/maintain.texi: Likewise.
17427         * doc/make-stds.texi: Likewise.
17428         * doc/quote.texi: Likewise.
17429         * doc/regexprops-generic.texi: Likewise.
17430         * doc/standards.texi: Likewise.
17431         * doc/verify.texi: Likewise.
17432         * doc/visibility.texi: Likewise.
17433         * doc/gnulib.texi (GNU Free Documentation License): Include
17434         fdl-1.3.texi instead of fdl.texi.
17435
17436 2008-11-04  Simon Josefsson  <simon@josefsson.org>
17437
17438         * doc/fdl-1.3.texi: New file, from
17439         <http://www.gnu.org/licenses/fdl-1.3.texi>.
17440         * modules/fdl-1.3: Add.
17441         * MODULES.html.sh: Add fdl-1.3.
17442
17443 2008-11-03  Bruno Haible  <bruno@clisp.org>
17444
17445         Make determination of absolute name of header file work with AIX xlc.
17446         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17447         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17448         preprocessing.
17449         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17450         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17451
17452 2008-11-03  Simon Josefsson  <simon@josefsson.org>
17453
17454         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17455         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
17456         <ludo@gnu.org>.
17457
17458 2008-11-02  Bruno Haible  <bruno@clisp.org>
17459
17460         Mark 'strpbrk' obsolete.
17461         * modules/strpbrk (Status, Notice): New sections.
17462         * modules/strtok_r (Depends-on): Add strpbrk.
17463
17464 2008-11-02  Bruno Haible  <bruno@clisp.org>
17465
17466         Mark 'strdup' obsolete.
17467         * modules/strdup (Status, Notice): New sections.
17468         * modules/findprog (Depends-on): Add strdup.
17469         * modules/getaddrinfo (Depends-on): Likewise.
17470         * modules/localename (Depends-on): Likewise.
17471         * modules/relocatable-lib (Depends-on): Likewise.
17472         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17473         * modules/relocatable-prog (Depends-on): Likewise.
17474         * modules/trim (Depends-on): Likewise.
17475         * modules/unictype/gen-ctype (Depends-on): Likewise.
17476         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17477
17478 2008-11-02  Bruno Haible  <bruno@clisp.org>
17479
17480         Mark 'strcspn' obsolete.
17481         * modules/strcspn (Status, Notice): New sections.
17482
17483 2008-11-02  Bruno Haible  <bruno@clisp.org>
17484
17485         Mark 'rmdir' obsolete.
17486         * modules/rmdir (Status, Notice): New sections.
17487         * modules/clean-temp (Depends-on): Add rmdir.
17488         * modules/openat (Depends-on): Likewise.
17489
17490 2008-11-02  Bruno Haible  <bruno@clisp.org>
17491
17492         Mark 'raise' obsolete.
17493         * modules/raise (Status, Notice): New sections.
17494         (Include): Specify <signal.h>.
17495         * modules/stdio (Depends-on): Add raise.
17496         * modules/write (Depends-on): Likewise.
17497
17498 2008-11-02  Bruno Haible  <bruno@clisp.org>
17499
17500         Mark 'memset' obsolete.
17501         * modules/memset (Status, Notice): New sections.
17502
17503 2008-11-02  Bruno Haible  <bruno@clisp.org>
17504
17505         Mark 'memmove' obsolete.
17506         * modules/memmove (Status, Notice): New sections.
17507         * modules/argp (Depends-on): Add memmove.
17508         * modules/argz (Depends-on): Likewise.
17509         * modules/canonicalize (Depends-on): Likewise.
17510         * modules/canonicalize-lgpl (Depends-on): Likewise.
17511         * modules/fts (Depends-on): Likewise.
17512         * modules/getcwd (Depends-on): Likewise.
17513         * modules/human (Depends-on): Likewise.
17514         * modules/regex (Depends-on): Likewise.
17515         * modules/striconveh (Depends-on): Likewise.
17516         * modules/trim (Depends-on): Likewise.
17517         * modules/unistr/u8-move (Depends-on): Likewise.
17518         * modules/unistr/u16-move (Depends-on): Likewise.
17519         * modules/unistr/u32-move (Depends-on): Likewise.
17520
17521 2008-11-02  Bruno Haible  <bruno@clisp.org>
17522
17523         Mark 'memcpy' obsolete.
17524         * modules/memcpy (Status, Notice): New sections.
17525
17526 2008-11-02  Bruno Haible  <bruno@clisp.org>
17527
17528         Mark 'memcmp' obsolete.
17529         * modules/memcmp (Status, Notice): New sections.
17530         * modules/argmatch (Depends-on): Add memchr.
17531         * modules/backupfile (Depends-on): Likewise.
17532         * modules/c-strcasestr (Depends-on): Likewise.
17533         * modules/crypto/des (Depends-on): Likewise.
17534         * modules/csharpcomp (Depends-on): Likewise.
17535         * modules/fnmatch (Depends-on): Likewise.
17536         * modules/git-merge-changelog (Depends-on): Likewise.
17537         * modules/isnand (Depends-on): Likewise.
17538         * modules/isnand-nolibm (Depends-on): Likewise.
17539         * modules/isnanf (Depends-on): Likewise.
17540         * modules/isnanf-nolibm (Depends-on): Likewise.
17541         * modules/isnanl (Depends-on): Likewise.
17542         * modules/isnanl-nolibm (Depends-on): Likewise.
17543         * modules/mbchar (Depends-on): Likewise.
17544         * modules/memcoll (Depends-on): Likewise.
17545         * modules/quotearg (Depends-on): Likewise.
17546         * modules/regex (Depends-on): Likewise.
17547         * modules/relocatable-prog (Depends-on): Likewise.
17548         * modules/same (Depends-on): Likewise.
17549         * modules/signbit (Depends-on): Likewise.
17550         * modules/strcasestr-simple (Depends-on): Likewise.
17551         * modules/unictype/gen-ctype (Depends-on): Likewise.
17552         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17553         * modules/uniname/uniname (Depends-on): Likewise.
17554         * modules/unistr/u8-cmp (Depends-on): Likewise.
17555
17556 2008-11-02  Bruno Haible  <bruno@clisp.org>
17557
17558         Mark 'memchr' obsolete.
17559         * modules/memchr (Status, Notice): New sections.
17560         * modules/argp (Depends-on): Add memchr.
17561         * modules/base64 (Depends-on): Likewise.
17562         * modules/c-strcasestr (Depends-on): Likewise.
17563         * modules/chdir-long (Depends-on): Likewise.
17564         * modules/fnmatch (Depends-on): Likewise.
17565         * modules/getsubopt (Depends-on): Likewise.
17566         * modules/git-merge-changelog (Depends-on): Likewise.
17567         * modules/glob (Depends-on): Likewise.
17568         * modules/strcasestr-simple (Depends-on): Likewise.
17569         * modules/strnlen (Depends-on): Likewise.
17570
17571 2008-11-02  Bruno Haible  <bruno@clisp.org>
17572
17573         Mark 'atexit' obsolete.
17574         * modules/atexit (Status, Notice): New sections.
17575         * modules/chdir-long (Depends-on): Add atexit.
17576         * modules/wait-process (Depends-on): Likewise.
17577
17578 2008-11-02  Bruno Haible  <bruno@clisp.org>
17579
17580         * gnulib-tool: New option --with-obsolete.
17581         (func_usage): Document it.
17582         (func_modules_transitive_closure): Drop obsolete dependencies if
17583         incobsolete is not true.
17584         (func_import): Read and save the incobsolete variable to the cache.
17585
17586 2008-11-02  Bruno Haible  <bruno@clisp.org>
17587
17588         * modules/TEMPLATE-EXTENDED: New field 'Status'.
17589         * gnulib-tool: New option --extract-status.
17590         (func_usage): Document it.
17591         (sed_extract_prog): Recognize it.
17592         (func_get_status): New function.
17593
17594 2008-10-30  Simon Josefsson  <simon@josefsson.org>
17595
17596         * modules/sockets (License): Change from LGPL to LGPLv2+.
17597
17598 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17599
17600         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
17601
17602 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17603
17604         * MODULES.html.sh (Support for systems lacking POSIX:2001):
17605         Mention times and sys_times.
17606         * modules/sys_times, modules/sys_times-tests: New modules.
17607         * modules/times, modules/times-tests: Likewise
17608         * m4/sys_times_h.m4: New file.
17609         * lib/sys_times.in.h: Likewise
17610         * lib/times.c: Likewise.
17611         * tests/test-sys_times.c: Likewise.
17612         * tests/test-times.c: Likewise.
17613         * doc/posix-headers/sys_times.texi: Update.
17614         * doc/posix-functions/times.texi: Update.
17615
17616 2008-10-28  Jim Meyering  <meyering@redhat.com>
17617
17618         * modules/tempname (Depends-on): Add lstat.
17619
17620         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
17621
17622 2008-10-28  Simon Josefsson  <simon@josefsson.org>
17623
17624         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
17625         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
17626         using idiom used elsewhere in gnulib.
17627
17628 2008-10-27  Jim Meyering  <meyering@redhat.com>
17629
17630         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
17631
17632 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17633
17634         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
17635         TESTS_ENVIRONMENT, for shell scripts that needs to call built
17636         programs.
17637         * tests/test-argp-2.sh: Use $EXEEXT when needed.
17638
17639 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17640
17641         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
17642
17643 2008-10-27  Bruno Haible  <bruno@clisp.org>
17644
17645         * tests/test-lstat.c: Include <stdio.h>.
17646
17647 2008-10-27  Simon Josefsson  <simon@josefsson.org>
17648
17649         * modules/lstat-tests: New module.
17650         * tests/test-lstat.c: New file.
17651
17652 2008-10-26  Jim Meyering  <meyering@redhat.com>
17653
17654         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
17655
17656 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17657             Bruno Haible  <bruno@clisp.org>
17658
17659         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
17660         * modules/configmake (Include): Add a note that the include must come
17661         after all system headers.
17662         * lib/javaversion.c: Include configmake.h after all other includes.
17663
17664 2008-10-26  Bruno Haible  <bruno@clisp.org>
17665
17666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
17667         HAVE_STRUCT_RANDOM_DATA to 1.
17668         (gl_STDLIB_H): Simplify.
17669
17670 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17671
17672         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
17673         substitute HAVE_STRUCT_RANDOM_DATA.
17674         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
17675         random_data.
17676         * modules/stdlib (Makefile.am): Substitute
17677         HAVE_STRUCT_RANDOM_DATA.
17678
17679 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17680
17681         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
17682         * doc/gnulib-intro.texi (Copyright): Likewise.
17683
17684 2008-10-26  Simon Josefsson  <simon@josefsson.org>
17685
17686         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
17687         findings.
17688
17689 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
17690             Bruno Haible  <bruno@clisp.org>
17691
17692         * lib/unistd.in.h: Include <winsock2.h>.
17693         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
17694         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
17695         Provide dummy declarations.
17696         (gethostname): Override.
17697         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
17698         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
17699         gl_PREREQ_SYS_H_WINSOCK2.
17700         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
17701         * doc/posix-functions/gethostname.texi: More details.
17702
17703 2008-10-25  Bruno Haible  <bruno@clisp.org>
17704
17705         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17706         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
17707         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
17708
17709         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
17710         here ...
17711         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
17712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
17713         gl_UNISTD_H_DEFAULTS.
17714
17715 2008-10-25  Eric Blake  <ebb9@byu.net>
17716
17717         signbit: avoid spurious compiler failure
17718         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
17719         declarations inside function.
17720
17721 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17722             Bruno Haible  <bruno@clisp.org>
17723
17724         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
17725         * modules/random_r (Depends-on): Add stdint.
17726
17727 2008-10-24  Bruno Haible  <bruno@clisp.org>
17728
17729         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
17730         Eggert.
17731         * modules/strerror (License): Likewise.
17732
17733 2008-10-24  Jim Meyering  <meyering@redhat.com>
17734
17735         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
17736         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
17737
17738 2008-10-24  Eric Blake  <ebb9@byu.net>
17739
17740         getgroups: fix compilation when getgroups is available
17741         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
17742         but with <config.h> override of getgroups disabled.
17743
17744 2008-10-24  Simon Josefsson  <simon@josefsson.org>
17745
17746         * doc/gnulib.texi (Header files): Add note about C++ problems.
17747         Explained by Bruno Haible <bruno@clisp.org>.
17748
17749 2008-10-23  Bruno Haible  <bruno@clisp.org>
17750
17751         Define a dummy SA_NODEFER macro on Interix.
17752         * lib/signal.in.h (SA_NODEFER): Define fallback.
17753         Reported by Aleksey Cheusov <cheusov@tut.by> via
17754         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
17755
17756 2008-10-23  Bruno Haible  <bruno@clisp.org>
17757
17758         * modules/freadahead (License): Change to LGPLv2+.
17759         Suggested by Simon Josefsson.
17760
17761 2008-10-23  Jim Meyering  <meyering@redhat.com>
17762
17763         random_r: new module
17764         * modules/random_r: New file.
17765         * m4/random_r.m4: New file.
17766         * lib/random_r.c: New file, from glibc.
17767         * modules/random_r-tests: New file.
17768         * tests/test-random_r.c: New file.
17769         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
17770          Declare.
17771         (RAND_MAX): Define.
17772         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
17773         * modules/stdlib: Substitute them, too.
17774         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
17775         * doc/glibc-functions/initstate_r.texi: Mention the new module.
17776         * doc/glibc-functions/random_r.texi: Likewise.
17777         * doc/glibc-functions/setstate_r.texi: Likewise.
17778         * doc/glibc-functions/srandom_r.texi: Likewise.
17779         * config/srclist.txt: Mention it.
17780
17781 2008-10-23  David Lutterkort  <lutter@redhat.com>
17782
17783         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
17784         link requirement
17785
17786 2008-10-23  Jim Meyering  <meyering@redhat.com>
17787
17788         selinux-h: mark parameters of stub functions as intentionally unused
17789         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
17790         * lib/se-context.in.h: Likewise.
17791
17792 2008-10-22  Simon Josefsson  <simon@josefsson.org>
17793
17794         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
17795
17796 2008-10-22  Simon Josefsson  <simon@josefsson.org>
17797
17798         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
17799
17800 2008-10-22  Eric Blake  <ebb9@byu.net>
17801
17802         glthread/thread: avoid compiler warning
17803         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
17804         Add unreachable abort to silence compiler.
17805
17806 2008-10-22  Eric Blake  <ebb9@byu.net>
17807
17808         netdb: also supply struct addrinfo for cygwin 1.5.x
17809         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
17810         older cygwin.
17811         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
17812         cygwin.
17813         * doc/posix-headers/netdb.texi (netdb.h): Document this.
17814
17815 2008-10-22  Bruno Haible  <bruno@clisp.org>
17816
17817         * users.txt: Update entry about pspp.
17818
17819 2008-10-21  Bruno Haible  <bruno@clisp.org>
17820
17821         Simplification.
17822         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
17823         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
17824
17825         Simplification.
17826         * lib/ioctl.c (ioctl): Don't undefine.
17827         * lib/socket.c (socket): Don't undefine.
17828
17829         Remove unused module indicator macros.
17830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
17831         GNULIB_$1 as a C macro.
17832
17833         * doc/posix-functions/close.texi: Undo last change.
17834         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
17835         Windows platforms.
17836
17837 2008-10-21  Bruno Haible  <bruno@clisp.org>
17838
17839         Add gethostname() declaration to <unistd.h>.
17840         * lib/unistd.in.h (gethostname): New declaration.
17841         * lib/gethostname.c: Include <unistd.h>.
17842         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
17843         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
17844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
17845         and HAVE_GETHOSTNAME.
17846         * modules/gethostname (Depends-on): Add unistd.
17847         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17848         (Include): Specify <unistd.h>.
17849         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
17850         HAVE_GETHOSTNAME.
17851         * tests/test-gethostname.c: Include <unistd.h> first.
17852
17853 2008-10-21  Bruno Haible  <bruno@clisp.org>
17854
17855         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
17856         * modules/select-tests (Depends-on): Likewise.
17857         Reported by Simon Josefsson.
17858
17859 2008-10-21  Simon Josefsson  <simon@josefsson.org>
17860
17861         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
17862         * lib/accept.c: New file, based on winsock.c.
17863         * lib/bind.c: New file, based on winsock.c.
17864         * lib/connect.c: New file, based on winsock.c.
17865         * lib/getpeername.c: New file, based on winsock.c.
17866         * lib/getsockname.c: New file, based on winsock.c.
17867         * lib/getsockopt.c: New file, based on winsock.c.
17868         * lib/ioctl.c: New file, based on winsock.c.
17869         * lib/listen.c: New file, based on winsock.c.
17870         * lib/recv.c: New file, based on winsock.c.
17871         * lib/recvfrom.c: New file, based on winsock.c.
17872         * lib/send.c: New file, based on winsock.c.
17873         * lib/sendto.c: New file, based on winsock.c.
17874         * lib/setsockopt.c: New file, based on winsock.c.
17875         * lib/shutdown.c: New file, based on winsock.c.
17876         * lib/socket.c: New file, based on winsock.c.
17877         * lib/w32sock.h: New file, based on winsock.c.
17878         * lib/winsock.c: Remove file.
17879         * modules/accept: Likewise.
17880         * modules/bind: Likewise.
17881         * modules/connect: Likewise.
17882         * modules/getpeername: Likewise.
17883         * modules/getsockname: Likewise.
17884         * modules/getsockopt: Likewise.
17885         * modules/ioctl: Likewise.
17886         * modules/listen: Likewise.
17887         * modules/recv: Likewise.
17888         * modules/recvfrom: Likewise.
17889         * modules/send: Likewise.
17890         * modules/sendto: Likewise.
17891         * modules/setsockopt: Likewise.
17892         * modules/shutdown: Likewise.
17893         * modules/socket: Use socket.c instead of winsock.c.
17894         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
17895         * doc/posix-functions/accept.texi: Doc fix.
17896         * doc/posix-functions/bind.texi: Doc fix.
17897         * doc/posix-functions/close.texi: Doc fix.
17898         * doc/posix-functions/connect.texi: Doc fix.
17899         * doc/posix-functions/getpeername.texi: Doc fix.
17900         * doc/posix-functions/getsockname.texi: Doc fix.
17901         * doc/posix-functions/getsockopt.texi: Doc fix.
17902         * doc/posix-functions/ioctl.texi: Doc fix.
17903         * doc/posix-functions/listen.texi: Doc fix.
17904         * doc/posix-functions/recv.texi: Doc fix.
17905         * doc/posix-functions/recvfrom.texi: Doc fix.
17906         * doc/posix-functions/send.texi: Doc fix.
17907         * doc/posix-functions/sendto.texi: Doc fix.
17908         * doc/posix-functions/setsockopt.texi: Doc fix.
17909         * doc/posix-functions/shutdown.texi: Doc fix.
17910         * doc/posix-functions/socket.texi: Doc fix.
17911
17912 2008-10-20  Bruno Haible  <bruno@clisp.org>
17913
17914         Take into account the role of SIGABRT_COMPAT on Windows 2008.
17915         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
17916         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
17917         as an alias for SIGABRT.
17918         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
17919         (sigaction): Map it to SIGABRT.
17920         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
17921
17922 2008-10-20  Bruno Haible  <bruno@clisp.org>
17923
17924         * lib/fts.c: Don't include lstat.h.
17925         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
17926
17927         Move the lstat() declaration to <sys/stat.h>.
17928         * lib/lstat.h: Remove file.
17929         * lib/sys_stat.in.h: Add special invocation convention.
17930         (lstat): New declaration.
17931         * lib/lstat.c (orig_lstat): New function.
17932         (rpl_lstat): Use orig_lstat instead of lstat.
17933         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
17934         AC_C_INLINE. Set REPLACE_LSTAT.
17935         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
17936         and REPLACE_LSTAT.
17937         * modules/lstat (Files): Remove lib/lstat.h.
17938         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
17939         (Include): Specify <sys/stat.h> instead of lstat.h.
17940         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
17941         REPLACE_LSTAT.
17942         * NEWS: Mention the change.
17943
17944 2008-10-20  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/posix_spawn-tests: New file.
17947         * tests/test-posix_spawn3.c: New file.
17948
17949 2008-10-20  Bruno Haible  <bruno@clisp.org>
17950
17951         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
17952         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17953         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
17954         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
17955         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
17956
17957 2008-10-20  Bruno Haible  <bruno@clisp.org>
17958
17959         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
17960         of posix_spawn on AIX 5.3.
17961
17962 2008-10-20  Bruno Haible  <bruno@clisp.org>
17963
17964         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
17965
17966 2008-10-20  Bruno Haible  <bruno@clisp.org>
17967
17968         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
17969         of AC_LANG_PROGRAM.
17970
17971 2008-10-20  Simon Josefsson  <simon@josefsson.org>
17972
17973         * lib/netdb.in.h: Don't define GNU specific constants until they
17974         are supported or needed.  Reported by Bruno Haible
17975         <bruno@clisp.org>.
17976
17977 2008-10-20  Simon Josefsson  <simon@josefsson.org>
17978
17979         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
17980
17981 2008-10-20  Simon Josefsson  <simon@josefsson.org>
17982
17983         * lib/getaddrinfo.h: Remove file.
17984         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
17985         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
17986         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
17987         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
17988         * modules/netdb: Substitute GNULIB_GETADDRINFO.
17989         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
17990         * tests/test-getaddrinfo.c: Likewise.
17991         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
17992         * NEWS: Mention change.
17993
17994 2008-10-19  Bruno Haible  <bruno@clisp.org>
17995
17996         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
17997
17998 2008-10-19  Bruno Haible  <bruno@clisp.org>
17999
18000         * lib/wait-process.c: Include simply <sys/wait.h>.
18001         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18002         WIFSTOPPED): Remove fallback definitions.
18003         * modules/wait-process (Depends-on): Add sys_wait.
18004
18005         New module 'sys_wait'.
18006         * modules/sys_wait: New file.
18007         * lib/sys_wait.in.h: New file, partially copied from
18008         lib/wait-process.c.
18009         * m4/sys_wait_h.m4: New file.
18010         * doc/posix-headers/sys_wait.texi: Mention the new module.
18011
18012 2008-10-19  Bruno Haible  <bruno@clisp.org>
18013
18014         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18015
18016 2008-10-19  Bruno Haible  <bruno@clisp.org>
18017
18018         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18019         * lib/wait-process.c (WAIT_T): Remove type.
18020         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18021         (wait_subprocess): Update.
18022
18023 2008-10-19  Bruno Haible  <bruno@clisp.org>
18024
18025         New module 'atoll'.
18026         * modules/atoll: New file.
18027         * lib/stdlib.in.h (atoll): New declaration.
18028         * lib/atoll.c: New file, from glibc with modifications.
18029         * m4/atoll.m4: New file.
18030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18031         HAVE_ATOLL.
18032         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18033         * doc/posix-functions/atoll.texi: Mention the new module.
18034
18035 2008-10-19  Bruno Haible  <bruno@clisp.org>
18036
18037         Add strtoull() declaration to <stdlib.h>.
18038         * lib/stdlib.in.h (strtoull): New declaration.
18039         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18040         Set HAVE_STRTOULL.
18041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18042         HAVE_STRTOULL.
18043         * modules/strtoull (Depends-on): Add stdlib.
18044         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18045         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18046         HAVE_STRTOULL.
18047
18048 2008-10-19  Bruno Haible  <bruno@clisp.org>
18049
18050         Add strtoll() declaration to <stdlib.h>.
18051         * lib/stdlib.in.h (strtoll): New declaration.
18052         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18053         Set HAVE_STRTOLL.
18054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18055         HAVE_STRTOLL.
18056         * modules/strtoll (Depends-on): Add stdlib.
18057         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18058         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18059
18060 2008-10-19  Bruno Haible  <bruno@clisp.org>
18061
18062         * modules/bcopy (Depends-on): Add strings.
18063         (Include): Specify <strings.h>.
18064
18065 2008-10-19  Bruno Haible  <bruno@clisp.org>
18066
18067         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18068
18069 2008-10-19  Bruno Haible  <bruno@clisp.org>
18070
18071         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18072         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18073         mingw.
18074
18075 2008-10-19  Bruno Haible  <bruno@clisp.org>
18076
18077         * lib/atanl.c: Don't include isnanl.h.
18078         * lib/cosl.c: Likewise.
18079         * lib/ldexpl.c: Likewise.
18080         * lib/logl.c: Likewise.
18081         * lib/sinl.c: Likewise.
18082         * lib/sqrtl.c: Likewise.
18083         * lib/tanl.c: Likewise.
18084
18085         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18086         * lib/isnanf.h: Remove file.
18087         * lib/isnand.h: Remove file.
18088         * lib/isnanl.h: Remove file.
18089         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18090         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18091         macros.
18092         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18093         HAVE_ISNANF, don't define it as a C macro.
18094         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18095         HAVE_ISNAND, don't define it as a C macro.
18096         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18097         HAVE_ISNANL, don't define it as a C macro.
18098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18099         HAVE_ISNAN[FDL].
18100         * modules/isnanf (Files): Remove lib/isnanf.h.
18101         (Depends-on): Add math.
18102         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18103         (Include): Specify <math.h> instead of isnanf.h.
18104         * modules/isnand (Files): Remove lib/isnand.h.
18105         (Depends-on): Add math.
18106         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18107         (Include): Specify <math.h> instead of isnand.h.
18108         * modules/isnanl (Files): Remove lib/isnanl.h.
18109         (Depends-on): Add math.
18110         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18111         (Include): Specify <math.h> instead of isnanl.h.
18112         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18113         HAVE_ISNAN[FDL].
18114         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18115         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18116         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18117         * NEWS: Mention the change.
18118
18119 2008-10-18  Bruno Haible  <bruno@clisp.org>
18120
18121         Add getusershell(), setusershell(), endusershell() declarations to
18122         <unistd.h>.
18123         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18124         declarations.
18125         * lib/getusershell.c: Include unistd.h.
18126         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18127         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18128         HAVE_GETUSERSHELL.
18129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18130         and HAVE_GETUSERSHELL.
18131         * modules/getusershell (Depends-on): Add unistd, extensions.
18132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18133         (Include): Specify <unistd.h>.
18134         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18135         HAVE_GETUSERSHELL.
18136
18137 2008-10-18  Bruno Haible  <bruno@clisp.org>
18138
18139         Add a getloadavg() declaration to <stdlib.h>.
18140         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18141         getloadavg declaration.
18142         (getloadavg): New declaration.
18143         * lib/getloadavg.c: Include <stdlib.h> first.
18144         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18145         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18146         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18148         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18149         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18150         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18151         (Include): Specify <stdlib.h>.
18152         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18153         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18154
18155 2008-10-18  Bruno Haible  <bruno@clisp.org>
18156
18157         * lib/dirchownmod.c: Don't include lchmod.h.
18158
18159         Move the lchmod() declaration to <sys/stat.h>.
18160         * lib/lchmod.h: Remove file.
18161         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18162         (lchmod): New declaration, moved here from lib/lchown.h.
18163         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18164         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18165         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18166         and HAVE_LCHMOD.
18167         * modules/lchmod (Files): Remove lib/lchmod.h.
18168         (Depends-on): Add sys_stat, extensions.
18169         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18170         (Include): Specify <sys/stat.h> instead of lchmod.h.
18171         * modules/sys_stat (Depends-on): Add link-warning.
18172         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18173         definition of GL_LINK_WARNING.
18174         * NEWS: Mention the change.
18175
18176 2008-10-18  Bruno Haible  <bruno@clisp.org>
18177
18178         * lib/fchdir.c: Don't include dirfd.h.
18179         * lib/fts.c: Likewise.
18180         * lib/getcwd.c: Likewise.
18181         * lib/glob.c: Likewise.
18182
18183         Move the dirfd() declaration to <dirent.h>.
18184         * lib/dirfd.h: Remove file.
18185         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18186         (dirfd): New declaration.
18187         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18188         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18189         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18190         HAVE_DECL_DIRFD.
18191         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18192         HAVE_DECL_DIRFD.
18193         * modules/dirfd (Files): Remove lib/dirfd.h.
18194         (Depends-on): Add dirent, extensions.
18195         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18196         (Include): Specify <dirent.h> instead of dirfd.h.
18197         * modules/dirent (Depends-on): Add link-warning.
18198         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18199         definition of GL_LINK_WARNING.
18200         * NEWS: Mention the change.
18201
18202 2008-10-18  Bruno Haible  <bruno@clisp.org>
18203
18204         Move the euidaccess() declaration to <unistd.h>.
18205         * lib/euidaccess.h: Remove file.
18206         * lib/unistd.in.h (euidaccess): New declaration.
18207         * lib/euidaccess.c: Don't include euidaccess.h.
18208         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18209         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18211         and HAVE_EUIDACCESS.
18212         * modules/euidaccess (Files): Remove lib/euidaccess.h.
18213         (Depends-on): Add unistd.
18214         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18215         (Include): Specify <unistd.h> instead of euidaccess.h.
18216         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18217         HAVE_EUIDACCESS.
18218         * NEWS: Mention the change.
18219
18220 2008-10-18  Bruno Haible  <bruno@clisp.org>
18221
18222         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18223
18224         Move the getdomainname() declaration to <unistd.h>.
18225         * lib/getdomainname.h: Remove file.
18226         * lib/unistd.in.h (getdomainname): New declaration.
18227         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18228         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18229         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18230         HAVE_GETDOMAINNAME.
18231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18232         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18233         * modules/getdomainname (Files): Remove lib/getdomainname.h.
18234         (Depends-on): Add unistd, extensions.
18235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18236         (Includes): Specify <unistd.h> instead of getdomainname.h.
18237         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18238         HAVE_GETDOMAINNAME.
18239         * NEWS: Mention the change.
18240
18241 2008-10-18  Bruno Haible  <bruno@clisp.org>
18242
18243         * modules/dirent: New file.
18244         * m4/dirent_h.m4: New file.
18245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18246         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18247         * modules/fchdir (Files): Remove lib/dirent.in.h.
18248         (Depends-on): Add dirent.
18249         (Makefile.am): Move rules to modules/dirent.
18250         * doc/posix-headers/dirent.texi: Mention the new module.
18251
18252 2008-10-18  Bruno Haible  <bruno@clisp.org>
18253
18254         Avoid -Wunused-parameter warnings in public gnulib header files.
18255         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18256         macro.
18257         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18258
18259 2008-10-18  Bruno Haible  <bruno@clisp.org>
18260
18261         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18262         * doc/glibc-functions/error.texi: Mention the module 'error'.
18263         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18264         * doc/glibc-functions/getdomainname.texi: Mention the module
18265         'getdomainname'.
18266         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18267         * doc/glibc-functions/getpagesize.texi: Mention the module
18268         'getpagesize'.
18269         * doc/glibc-functions/getusershell.texi: Mention the module
18270         'getusershell'.
18271         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18272         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18273         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18274         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18275         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18276         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18277         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18278         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18279         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18280         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18281         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18282         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18283         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18284         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18285
18286 2008-10-17  Bruno Haible  <bruno@clisp.org>
18287
18288         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18289         HP-UX and IRIX, use -0.0L.
18290         * tests/test-ceill.c (minus_zero): Likewise.
18291         * tests/test-floorl.c (minus_zero): Likewise.
18292         * tests/test-frexpl.c (minus_zero): Likewise.
18293         * tests/test-isnan.c (minus_zerol): Likewise.
18294         * tests/test-isnanl.h (minus_zero): Likewise.
18295         * tests/test-ldexpl.c (minus_zero): Likewise.
18296         * tests/test-roundl.c (minus_zero): Likewise.
18297         * tests/test-signbit.c (minus_zerol): Likewise.
18298         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18299         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18300         * tests/test-truncl.c (minus_zero): Likewise.
18301         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18302         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18303         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18304         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18305
18306 2008-10-17  Bruno Haible  <bruno@clisp.org>
18307
18308         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18309         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18310         that it gets activated only for gcc >= 3.0.
18311         * lib/dirent.in.h: Likewise.
18312         * lib/errno.in.h: Likewise.
18313         * lib/fcntl.in.h: Likewise.
18314         * lib/float.in.h: Likewise.
18315         * lib/iconv.in.h: Likewise.
18316         * lib/inttypes.in.h: Likewise.
18317         * lib/locale.in.h: Likewise.
18318         * lib/math.in.h: Likewise.
18319         * lib/netdb.in.h: Likewise.
18320         * lib/netinet_in.in.h: Likewise.
18321         * lib/search.in.h: Likewise.
18322         * lib/signal.in.h: Likewise.
18323         * lib/spawn.in.h: Likewise.
18324         * lib/stdarg.in.h: Likewise.
18325         * lib/stdint.in.h: Likewise.
18326         * lib/stdio.in.h: Likewise.
18327         * lib/stdlib.in.h: Likewise.
18328         * lib/string.in.h: Likewise.
18329         * lib/strings.in.h: Likewise.
18330         * lib/sys_file.in.h: Likewise.
18331         * lib/sys_ioctl.in.h: Likewise.
18332         * lib/sys_select.in.h: Likewise.
18333         * lib/sys_socket.in.h: Likewise.
18334         * lib/sys_stat.in.h: Likewise.
18335         * lib/sys_time.in.h: Likewise.
18336         * lib/sysexits.in.h: Likewise.
18337         * lib/time.in.h: Likewise.
18338         * lib/unistd.in.h: Likewise.
18339         * lib/wchar.in.h: Likewise.
18340         * lib/wctype.in.h: Likewise.
18341         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18342
18343 2008-10-17  Jim Meyering  <meyering@redhat.com>
18344
18345         ignore-value: don't depend on inline module
18346         * modules/ignore-value (Depends-on): Remove 'inline'.
18347         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18348         Suggestion from Bruno Haible.
18349
18350 2008-10-17  Bruno Haible  <bruno@clisp.org>
18351
18352         New implementation of condition variables for Win32.
18353         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18354         (gl_linked_waitqueue_t): New type.
18355         (gl_cond_t): Use it.
18356         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18357         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18358         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18359         (glthread_cond_init_func, glthread_cond_wait_func,
18360         glthread_cond_timedwait_func, glthread_cond_signal_func,
18361         glthread_cond_broadcast_func, glthread_cond_destroy_func):
18362         Reimplemented on the basis of gl_linked_waitqueue_t.
18363         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18364         gl_waitqueue_t.
18365         (gl_rwlock_t): Update.
18366         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18367
18368 2008-10-17  Simon Josefsson  <simon@josefsson.org>
18369
18370         * modules/recvfrom (Depends-on): Add dependency on getpeername.
18371         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18372
18373 2008-10-17  Jim Meyering  <meyering@redhat.com>
18374
18375         ignore-value: new module
18376         * modules/ignore-value: New file.
18377         * lib/ignore-value.h: New file.
18378         * MODULES.html.sh (Compiler warning management): New section,
18379         just for this module.  More to come.
18380
18381 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18382
18383         open-safer.c: avoid 'signed and unsigned in conditional...' warning
18384         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18385         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
18386
18387 2008-10-16  Jim Meyering  <meyering@redhat.com>
18388
18389         openat-die.c: avoid 'no previous prototype' warning
18390         * lib/openat-die.c: Include "openat.h".
18391         Reported by Reuben Thomas <rrt@sc3d.org>.
18392
18393 2008-10-16  Simon Josefsson  <simon@josefsson.org>
18394
18395         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18396         * lib/netdb.in.h: Fix typo.
18397         Reported by Bruno Haible  <bruno@clisp.org>
18398
18399         * lib/netdb.in.h: Include sys/socket.h for platforms without
18400         netdb.h, to get structures like hostent on MinGW.
18401         * modules/netdb (Depends-on): Add sys_socket.
18402
18403 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18404
18405         * modules/netdb, modules/netdb-tests: New file.
18406         * m4/netdb_h.m4: New file.
18407         * lib/netdb.in.h: Add, currently just an empty file pending
18408         definitions.
18409         * tests/test-netdb.c: New file.
18410         * doc/posix-headers/netdb.texi: Mention that we replace it if
18411         needed.
18412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18413         netdb.
18414
18415 2008-10-15  Simon Josefsson  <simon@josefsson.org>
18416
18417         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18418         with code.
18419
18420 2008-10-13  Bruno Haible  <bruno@clisp.org>
18421
18422         * lib/glthread/cond.c (glthread_cond_wait_func,
18423         glthread_cond_timedwait_func): Add a comment.
18424
18425 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18426
18427         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18428         * tests/test-select.c: Likewise,
18429
18430 2008-10-13  Bruno Haible  <bruno@clisp.org>
18431
18432         * lib/glthread/cond.c (glthread_cond_wait_func,
18433         glthread_cond_timedwait_func): Fix variable name.
18434         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18435
18436 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
18437
18438         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18439         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18440         struct sockaddr.sa_len.
18441         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18442
18443 2008-10-13  Simon Josefsson  <simon@josefsson.org>
18444
18445         * build-aux/pmccabe2html: Add css and css_url parameters.
18446
18447 2008-10-12  Bruno Haible  <bruno@clisp.org>
18448
18449         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18450         calling aclx_get.
18451         Reported by Rainer Tammer <tammer@tammer.net>.
18452
18453 2008-10-12  Bruno Haible  <bruno@clisp.org>
18454
18455         Use msvcrt aware primitives for creation/termination of Win32 threads.
18456         * lib/glthread/thread.c: Include <process.h>.
18457         (glthread_create_func): Use _beginthreadex instead of CreateThread.
18458         (wrapper_func): Update signature.
18459         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18460
18461 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
18462             Bruno Haible  <bruno@clisp.org>
18463
18464         Provide a Win32 implementation of the 'cond' module.
18465         * lib/glthread/cond.h [USE_WIN32]: New implementation.
18466         * lib/glthread/cond.c (glthread_cond_init_func,
18467         glthread_cond_wait_func, glthread_cond_timedwait_func,
18468         glthread_cond_signal_func, glthread_cond_broadcast_func,
18469         glthread_cond_destroy_func) [USE_WIN32]: New functions.
18470         * modules/cond (Dependencies): Add gettimeofday.
18471
18472 2008-10-11  Bruno Haible  <bruno@clisp.org>
18473
18474         Make sleep work on older versions of mingw.
18475         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18476         only whether it exists.
18477         * doc/posix-functions/sleep.texi: Mention the problem with older
18478         versions of mingw.
18479
18480 2008-10-11  Bruno Haible  <bruno@clisp.org>
18481
18482         New module 'shutdown'.
18483         * modules/shutdown: New file.
18484         * lib/sys_socket.in.h (shutdown): New declaration.
18485         * lib/winsock.c (shutdown): New function.
18486         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18487         GNULIB_SHUTDOWN.
18488         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18489         * doc/posix-functions/shutdown.texi: Document the new module.
18490
18491 2008-10-11  Jim Meyering  <meyering@redhat.com>
18492
18493         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18494
18495 2008-10-11  Bruno Haible  <bruno@clisp.org>
18496
18497         New module 'fclose'.
18498         * modules/fclose: New file.
18499         * lib/stdio.in.h (fclose): New declaration.
18500         * lib/fclose.c: New file.
18501         * m4/fclose.m4: New file.
18502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18503         REPLACE_FCLOSE.
18504         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18505         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18506         REPLACE_FCLOSE.
18507         * modules/close (Depends-on): fclose.
18508         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18509
18510 2008-10-11  Bruno Haible  <bruno@clisp.org>
18511
18512         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18513         set errno and don't call _close.
18514
18515 2008-10-10  Bruno Haible  <bruno@clisp.org>
18516
18517         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18518         ACL, not afterwards. Fixes test failure on Cygwin.
18519
18520 2008-10-09  Ben Pfaff  <blp@gnu.org>
18521
18522         * build-aux/announce-gen: Fix gnulib version related part of usage
18523         message.  Die with a useful error message if no tarballs are
18524         found.
18525
18526 2008-10-10  Jim Meyering  <meyering@redhat.com>
18527
18528         bootstrap: use git's --depth=N option only if it's supported
18529         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
18530         recognize the --depth option.  Reported by Pádraig Brady.
18531
18532 2008-10-09  Bruno Haible  <bruno@clisp.org>
18533
18534         New module 'ioctl'.
18535         * modules/ioctl: New file.
18536         * lib/sys_socket.in.h (ioctl): Remove declaration.
18537         * lib/winsock.c: Include <sys/ioctl.h>.
18538         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
18539         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18540         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
18541         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
18542         * doc/posix-functions/ioctl.texi: Mention the new module.
18543
18544 2008-10-09  Bruno Haible  <bruno@clisp.org>
18545
18546         New module 'sys_ioctl'.
18547         * lib/sys_ioctl.in.h: New file.
18548         * m4/sys_ioctl_h.m4: New file.
18549         * modules/sys_ioctl: New file.
18550         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
18551
18552 2008-10-09  Bruno Haible  <bruno@clisp.org>
18553
18554         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
18555         * lib/winsock.c: Include <stdarg.h>.
18556         (rpl_ioctl): Change to second argument 'int' and then varargs.
18557
18558 2008-10-09  Bruno Haible  <bruno@clisp.org>
18559
18560         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
18561         when the sys_socket module is present and the system has <winsock2.h>.
18562
18563 2008-10-09  Bruno Haible  <bruno@clisp.org>
18564
18565         * doc/posix-functions/close.texi: Mention module 'close' instead of
18566         module 'sys_socket'.
18567
18568 2008-10-09  Bruno Haible  <bruno@clisp.org>
18569
18570         * doc/glibc-headers/sys_ioctl.texi: New file.
18571         * doc/gnulib.texi: Include it.
18572
18573 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18574             Bruno Haible  <bruno@clisp.org>
18575
18576         Combine the two replacements of 'close'.
18577         * lib/sys_socket.in.h (close): Define to a reminder to include
18578         <unistd.h>.
18579         (_gl_close_fd_maybe_socket): New declaration.
18580         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
18581         * lib/winsock.c (close): Remove undefinition.
18582         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
18583         needed for the gnulib module 'close'.
18584         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
18585         define to an error symbol or to a warning, if suitable.
18586         * lib/close.c: Include <sys/socket.h>.
18587         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
18588         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
18589         UNISTD_H_HAVE_WINSOCK2_H.
18590         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
18591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18592         UNISTD_H_HAVE_WINSOCK2_H.
18593         * modules/sys_socket (Files): Add m4/unistd_h.m4.
18594         (configure.ac): Set a module indicator.
18595         (Makefile.am): Substitute GNULIB_CLOSE.
18596         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
18597         * modules/poll-tests (Depends-on): Add close.
18598         * modules/select-tests (Depends-on): Likewise.
18599
18600 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18601             Bruno Haible  <bruno@clisp.org>
18602
18603         New module 'close'.
18604         * modules/close: New file.
18605         * lib/unistd.in.h (close): Move declaration out of the
18606         FCHDIR_REPLACEMENT scope.
18607         (_gl_unregister_fd): New declaration.
18608         * lib/close.c: New file.
18609         * lib/fchdir.c (rpl_close): Remove function.
18610         * m4/close.m4: New file.
18611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18612         close.
18613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
18614         REPLACE_CLOSE.
18615         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
18616         REPLACE_CLOSE.
18617         * modules/fchdir (Depends-on): Add close.
18618
18619 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18620             Bruno Haible  <bruno@clisp.org>
18621
18622         * lib/fcntl.in.h (open): Simplify conditionals.
18623         (_gl_register_fd): New declaration.
18624         * lib/fchdir.c (rpl_open): Remove function.
18625         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
18626         also.
18627         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
18628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
18629         open.
18630
18631 2008-10-09  Jim Meyering  <meyering@redhat.com>
18632
18633         GNUmakefile: use the more name-space-friendly "_version"
18634         * top/GNUmakefile (_dummy): Update.
18635         (_version): Rename from "version".
18636
18637 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18638             Bruno Haible  <bruno@clisp.org>
18639
18640         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
18641         rpl_close.
18642         (_gl_register_fd): New function, extracted from rpl_open.
18643         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
18644         (rpl_open, rpl_opendir): Use _gl_register_fd.
18645
18646 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
18647
18648         Fix organization of 'open' replacement.
18649         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
18650         (gl_FUNC_OPEN): Use it.
18651         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
18652
18653 2008-10-08  Bruno Haible  <bruno@clisp.org>
18654
18655         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
18656
18657 2008-10-08  Simon Josefsson  <simon@josefsson.org>
18658
18659         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
18660         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
18661         listen).
18662
18663 2008-10-08  Eric Blake  <ebb9@byu.net>
18664
18665         GNUmakefile: add 'make version' target
18666         * top/GNUmakefile (_curr-ver): Split version update rules...
18667         (version): ...into a target.
18668
18669 2008-10-07  Bruno Haible  <bruno@clisp.org>
18670
18671         Use a more portable replacement expression for -0.0L.
18672         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
18673         instead of -0.0L. Fix m4 quotation.
18674
18675         * tests/test-signbit.c: Include <float.h>.
18676         (minus_zero): New variable.
18677         (test_signbitl): Use minus_zero instead of -zero.
18678         * modules/signbit-tests (Depends-on): Add float.
18679
18680         * tests/test-ceill.c: Include <float.h>.
18681         (zero): Remove variable.
18682         (minus_zero): New variable.
18683         (main): Use minus_zero instead of -zero.
18684         * modules/ceill-tests (Depends-on): Add float.
18685
18686         * tests/test-floorl.c: Include <float.h>.
18687         (zero): Remove variable.
18688         (minus_zero): New variable.
18689         (main): Use minus_zero instead of -zero.
18690         * modules/floorl-tests (Depends-on): Add float.
18691
18692         * tests/test-roundl.c: Include <float.h>.
18693         (zero): Remove variable.
18694         (minus_zero): New variable.
18695         (main): Use minus_zero instead of -zero.
18696         * modules/roundl-tests (Depends-on): Add float.
18697
18698         * tests/test-truncl.c: Include <float.h>.
18699         (zero): Remove variable.
18700         (minus_zero): New variable.
18701         (main): Use minus_zero instead of -zero.
18702         * modules/truncl-tests (Depends-on): Add float.
18703
18704         * tests/test-frexpl.c (zero): Remove variable.
18705         (minus_zero): New variable.
18706         (main): Use minus_zero instead of -zero.
18707         * modules/frexpl-tests (Depends-on): Add float.
18708
18709         * tests/test-isnan.c (zerol): Remove variable.
18710         (minus_zerol): New variable.
18711         (test_long_double): Use minus_zerol instead of -zerol.
18712         * modules/isnan-tests (Depends-on): Add float.
18713
18714         * tests/test-isnanl.h (zero): Remove variable.
18715         (minus_zero): New variable.
18716         (main): Use minus_zero instead of -zero.
18717         * modules/isnanl-nolibm-tests (Depends-on): Add float.
18718         * modules/isnanl-tests (Depends-on): Add float.
18719
18720         * tests/test-ldexpl.c (zero): Remove variable.
18721         (minus_zero): New variable.
18722         (main): Use minus_zero instead of -zero.
18723         * modules/ldexpl-tests (Depends-on): Add float.
18724
18725         * tests/test-snprintf-posix.h (zerol): Remove variable.
18726         (minus_zerol): New variable.
18727         (test_function): Use minus_zerol instead of -zerol.
18728         * modules/snprintf-posix-tests (Depends-on): Add float.
18729         * modules/vsnprintf-posix-tests (Depends-on): Add float.
18730
18731         * tests/test-sprintf-posix.h (zerol): Remove variable.
18732         (minus_zerol): New variable.
18733         (test_function): Use minus_zerol instead of -zerol.
18734         * modules/sprintf-posix-tests (Depends-on): Add float.
18735         * modules/vsprintf-posix-tests (Depends-on): Add float.
18736
18737         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
18738         (minus_zerol): New variable.
18739         (test_function): Use minus_zerol instead of -zerol.
18740         * modules/vasnprintf-posix-tests (Depends-on): Add float.
18741
18742         * tests/test-vasprintf-posix.c (zerol): Remove variable.
18743         (minus_zerol): New variable.
18744         (test_function): Use minus_zerol instead of -zerol.
18745         * modules/vasprintf-posix-tests (Depends-on): Add float.
18746
18747 2008-10-07  Simon Josefsson  <simon@josefsson.org>
18748
18749         * MODULES.html.sh (Support for building documentation): Mention
18750         pmccabe2html.  Sort entries.
18751
18752         Add pmccabe2html module, from gnupdf.
18753         * build-aux/pmccabe.css: New file.
18754         * build-aux/pmccabe2html: New file.
18755         * m4/pmccabe2html.m4: New file.
18756         * modules/pmccabe2html: New file.
18757
18758 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
18759
18760         flock: new module
18761         * MODULES.html.sh: Add to list of modules.
18762         * lib/flock.c: flock implementation for Windows and Unix systems
18763         which have fcntl.
18764         * doc/glibc-functions/flock.texi: Update documentation.
18765         * lib/sys_file.in.h: <sys/file.h> header file.
18766         * m4/flock.m4: M4 macros.
18767         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
18768         * modules/flock: flock module.
18769         * modules/flock-tests: flock tests module.
18770         * modules/sys_file: sys/file.h module.
18771         * tests/test-flock.c: test suite for flock.
18772
18773 2008-10-06  Jim Meyering  <meyering@redhat.com>
18774
18775         bootstrap: check for LT_INIT more portably still ;-)
18776         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
18777         Spotted by Bruno Haible.
18778
18779 2008-10-06  Eric Blake  <ebb9@byu.net>
18780
18781         test-signbit: avoid tripping Irix cc bug on -0.0L
18782         * tests/test-signbit.c (minus_zerol): Delete, and replace with
18783         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
18784         entire testsuite consistent and avoids an Irix 6.2 bug.
18785
18786 2008-10-05  Bruno Haible  <bruno@clisp.org>
18787             Jim Meyering  <jim@meyering.net>
18788
18789         Add an option for ignoring EPIPE during close_stdout.
18790         * lib/closeout.h: Include <stdbool.h>.
18791         (close_stdout_set_ignore_EPIPE): New declaration.
18792         * lib/closeout.c: Include <stdbool.h>.
18793         (ignore_EPIPE): New variable.
18794         (close_stdout_set_ignore_EPIPE): New function.
18795         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
18796         * lib/close-stream.c (close_stream): Mention the possible EPIPE
18797         failure.
18798         * modules/closeout (Depends-on): Add stdbool.
18799
18800 2008-10-05  Bruno Haible  <bruno@clisp.org>
18801
18802         * modules/accept: New file.
18803         * modules/bind: New file.
18804         * modules/connect: New file.
18805         * modules/getpeername: New file.
18806         * modules/getsockname: New file.
18807         * modules/getsockopt: New file.
18808         * modules/listen: New file.
18809         * modules/recv: New file.
18810         * modules/recvfrom: New file.
18811         * modules/send: New file.
18812         * modules/sendto: New file.
18813         * modules/setsockopt: New file.
18814         * modules/socket: New file.
18815         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
18816         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
18817         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
18818         the particular module is requested. Add a link warning when the
18819         particular module is not requested.
18820         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
18821         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
18822         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
18823         the particular module is requested.
18824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
18825         gl_SYS_SOCKET_H_DEFAULTS): New macros.
18826         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
18827         * modules/sys_socket (Depends-on): Add link-warning.
18828         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
18829         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
18830         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
18831         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
18832         GL_LINK_WARNING.
18833         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
18834         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
18835         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
18836         * doc/posix-functions/getpeername.texi: Mention the new module
18837         'getpeername'.
18838         * doc/posix-functions/getsockname.texi: Mention the new module
18839         'getsockname'.
18840         * doc/posix-functions/getsockopt.texi: Mention the new module
18841         'getsockopt'.
18842         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
18843         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
18844         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
18845         * doc/posix-functions/send.texi: Mention the new module 'send'.
18846         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
18847         * doc/posix-functions/setsockopt.texi: Mention the new module
18848         'setsockopt'.
18849         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
18850         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
18851         listen, connect, accept.
18852         * modules/select-tests (Depends-on): Likewise.
18853
18854 2008-10-05  Bruno Haible  <bruno@clisp.org>
18855
18856         * lib/winsock.c (strerror): Remove unused #undef.
18857         (rpl_close): Remove unused local variable.
18858
18859         * modules/sys_socket (Depends-on); Add errno.
18860
18861 2008-10-05  Bruno Haible  <bruno@clisp.org>
18862
18863         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
18864         (select): Add a link warning when the 'select' module is not used.
18865         * modules/sys_select (Depends-on): Add link-warning.
18866         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
18867         Suggested by Paolo Bonzini.
18868
18869 2008-10-05  Jim Meyering  <meyering@redhat.com>
18870
18871         bootstrap: check for LT_INIT more portably
18872         * build-aux/bootstrap: Avoid using grep -E, since it's not
18873         portable enough.  Suggestion from Bruno Haible.
18874
18875 2008-10-05  Bruno Haible  <bruno@clisp.org>
18876
18877         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
18878         as being fixed by gnulib.
18879
18880 2008-10-05  Bruno Haible  <bruno@clisp.org>
18881
18882         * modules/select-tests: New file, mostly copied from
18883         modules/sys_select-tests.
18884         * tests/test-select.c: New file, mostly copied from
18885         tests/test-sys_select.c.
18886         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
18887         * modules/sys_select-tests (Depends-on): Remove all dependencies.
18888         (Makefile.am): Remove test_sys_select_LDADD.
18889
18890         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
18891         to an undefined symbol, for an error message.
18892         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
18893         (gl_SYS_SELECT_H_DEFAULTS): New macro.
18894         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
18895         winsock-select.c here.
18896         * modules/sys_select (Files): Remove lib/winsock-select.c.
18897         (Depends-on): Remove alloca.
18898         (Makefile.am): Substitute GNULIB_SELECT.
18899         * modules/select: New file.
18900         * doc/posix-functions/select.texi: Update.
18901
18902 2008-10-05  Bruno Haible  <bruno@clisp.org>
18903
18904         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
18905         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
18906         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
18907         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
18908         getdtablesize.
18909         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18910         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18911
18912 2008-10-05  Bruno Haible  <bruno@clisp.org>
18913
18914         * modules/getdtablesize-tests: New file.
18915         * tests/test-getdtablesize.c: New file.
18916
18917         New module 'getdtablesize'.
18918         * lib/unistd.in.h (getdtablesize): New declaration.
18919         * lib/getdtablesize.c: New file.
18920         * m4/getdtablesize.m4: New file.
18921         * modules/getdtablesize: New file.
18922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18923         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
18924         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
18925         HAVE_GETDTABLESIZE.
18926         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
18927
18928 2008-10-05  Bruno Haible  <bruno@clisp.org>
18929
18930         * modules/sched (Makefile.am): Fix typo.
18931         Reported by Simon Josefsson.
18932
18933 2008-10-05  Jim Meyering  <meyering@redhat.com>
18934
18935         bootstrap: check for LT_INIT, too
18936         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
18937         are deprecated.  Suggestion from Ralf Wildenhues.
18938
18939 2008-10-05  Bruno Haible  <bruno@clisp.org>
18940
18941         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
18942         overriding them by ours.
18943         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
18944
18945 2008-10-05  Jim Meyering  <meyering@redhat.com>
18946
18947         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
18948         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
18949         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
18950
18951 2008-10-04  Bruno Haible  <bruno@clisp.org>
18952
18953         * modules/dup2 (License): Change to LGPLv2+.
18954         * modules/sleep (License): Likewise.
18955         * modules/perror (License): Likewise.
18956         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
18957         Blake.
18958         * modules/signal (License): Likewise.
18959         * modules/sigprocmask (License): Likewise.
18960         * modules/raise (License): Change to LGPLv2+, with approval by Jim
18961         Meyering.
18962
18963 2008-10-04  Bruno Haible  <bruno@clisp.org>
18964
18965         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
18966         Reported by Rainer Tammer <tammer@tammer.net>.
18967
18968 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
18969             Bruno Haible  <bruno@clisp.org>
18970
18971         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
18972         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
18973         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
18974
18975 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
18976
18977         filevercmp: new module
18978         * lib/filevercmp.h: New function filevercmp comparing version strings.
18979         * lib/filevercmp.c: Implementation of filevercmp function.
18980         * modules/filevercmp: Module metadata.
18981         * tests/test-filevercmp.c: Unit test for new module.
18982         * modules/filevercmp-tests: Unit test metadata.
18983         * MODULES.html.sh: Add filevercmp module.
18984
18985 2008-10-03  Bruno Haible  <bruno@clisp.org>
18986
18987         * lib/c-ctype.h: Add comment.
18988         Reported by Jim Meyering.
18989
18990 2008-10-02  Bruno Haible  <bruno@clisp.org>
18991
18992         * modules/posix_spawn-internal (Depends-on): Add 'open'.
18993
18994 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
18995
18996         * build-aux/bootstrap: Allow renaming bootstrap, and change the
18997         name of bootstrap.conf accordingly.
18998
18999 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19000
19001         * build-aux/bootstrap: Install git-merge-changelog configuration
19002         items into .gitconfig if needed.
19003
19004 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19005
19006         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19007         git repository, and initialize/update it accordingly.
19008
19009 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19010
19011         * modules/fsync-tests: New file.
19012         * tests/test-fsync.c: New file.
19013
19014         New module 'fsync'.
19015         * lib/fsync.c: New file.
19016         * m4/fsync.m4: New file.
19017         * modules/fsync: New file.
19018         * lib/unistd.in.h (fsync): New declaration.
19019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19020         GNULIB_FSYNC and HAVE_FSYNC.
19021         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19022         * MODULES.html.sh (posix_functions): Add fsync.
19023         * doc/posix-functions/fsync.texi: Mention the new module.
19024
19025 2008-10-02  Jim Meyering  <meyering@redhat.com>
19026
19027         fts.c: sync with similar code from coreutils' remove.c
19028         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19029         Guard also with "#if defined __linux__", since for now at least,
19030         this code is Linux-kernel-specific.
19031
19032 2008-10-02  Jim Meyering  <meyering@redhat.com>
19033
19034         fts: bug fixes
19035         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19036         Include <sys/vfs.h>, not <sys/statfs.h>.
19037
19038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19039         Include <sys/vfs.h>, not <sys/statfs.h>.
19040
19041 2008-10-01  Bruno Haible  <bruno@clisp.org>
19042
19043         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19044         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19045         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19046         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19047         * doc/posix-functions/posix_spawnp.texi: Likewise.
19048         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19049         whether posix_spawn actually works.
19050         * m4/pipe.m4 (gl_PIPE): Likewise.
19051         * modules/execute (Files): Add m4/posix_spawn.m4.
19052         * modules/pipe (Files): Add m4/posix_spawn.m4.
19053         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19054
19055 2008-10-01  Jim Meyering  <meyering@redhat.com>
19056
19057         remove trailing spaces
19058         * NEWS: Likewise.
19059         * lib/poll.c (poll): Likewise.
19060         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19061         * lib/winsock.c (rpl_close): Likewise.
19062         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19063         * modules/yield: Likewise.
19064         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19065         * tests/test-sys_select.c (connect_to_socket): Likewise.
19066
19067         fts.c: adjust a new interface to be more generally useful
19068         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19069         (fts_build): Adjust caller.
19070
19071 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19072
19073         * modules/cond-tests: New file.
19074         * tests/test-cond.c: New file.
19075
19076 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19077             Bruno Haible  <bruno@clisp.org>
19078
19079         * modules/cond (Dependencies): Add errno, time.
19080         * lib/glthread/cond.h: Include <time.h>.
19081         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19082         across platforms.
19083
19084 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19085             Bruno Haible  <bruno@clisp.org>
19086
19087         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19088
19089 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19090             Bruno Haible  <bruno@clisp.org>
19091
19092         * modules/tls-tests (Depends-on): Add thread, yield.
19093         (configure.ac): Remove all checks.
19094         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19095         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19096         gl_thread_self): Remove definitions. Include glthread/thread.h and
19097         glthread/yield.h instead.
19098         (test_tls): Pass an additional NULL argument to gl_thread_join.
19099
19100 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19101             Bruno Haible  <bruno@clisp.org>
19102
19103         * modules/lock-tests (Depends-on): Add thread, yield.
19104         (configure.ac): Remove all checks.
19105         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19106         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19107         gl_thread_self): Remove definitions. Include glthread/thread.h and
19108         glthread/yield.h instead.
19109         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19110         additional NULL argument to gl_thread_join.
19111
19112 2008-09-30  Bruno Haible  <bruno@clisp.org>
19113
19114         Fix the Win32 implementation of the 'thread' module.
19115         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19116         pointer type.
19117         (gl_thread_self): Invoke gl_thread_self_func.
19118         (gl_thread_self_func): New declaration.
19119         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19120         (do_init_self_key, init_self_key): New functions.
19121         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19122         Remove some fields.
19123         (running_threads, running_lock): Remove variables.
19124         (get_current_thread_handle): New function.
19125         (gl_thread_self_func, wrapper_func, glthread_create_func,
19126         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19127         simplified.
19128
19129 2008-09-30  Bruno Haible  <bruno@clisp.org>
19130
19131         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19132         files.
19133
19134 2008-09-30  Jim Meyering  <meyering@redhat.com>
19135
19136         fts.m4: correct the test for statfs.f_type
19137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19138         when checking for statfs.f_type.
19139
19140 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19141
19142         tests: avoid some compiler warnings
19143         * tests/test-memchr.c (main): Pass NULL indirectly.
19144         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19145
19146 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
19147
19148         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19149         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19150         exactly specified dayshifts.
19151         (dayshift): New rule.
19152         (rel): Add dayshift.
19153         (relative_time_table) [tomorrow, yesterday, today, now]:
19154         Use tDAY_SHIFT in place of tDAY_UNIT.
19155         * tests/test-getdate.c: Add tests for now-disallowed countable
19156         dayshifts, e.g., "4 yesterday ago".
19157
19158 2008-09-29  Bruno Haible  <bruno@clisp.org>
19159
19160         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19161         * tests/test-posix_spawn1.in.sh: Renamed from
19162         tests/test-posix_spawn.in.sh.
19163         * tests/test-posix_spawn2.c: New file.
19164         * tests/test-posix_spawn2.in.sh: New file.
19165         * modules/posix_spawnp-tests (Files): Update.
19166         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19167
19168 2008-09-29  Bruno Haible  <bruno@clisp.org>
19169
19170         Propagate effects of putenv/setenv/unsetenv to child processes.
19171         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19172         * lib/pipe.c (create_pipe): Likewise.
19173
19174 2008-09-29  Bruno Haible  <bruno@clisp.org>
19175
19176         Enable use of shell scripts as executables in mingw.
19177         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19178         run the program as a shell script.
19179         * lib/pipe.c (create_pipe): Likewise.
19180         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19181         resulting array.
19182
19183 2008-09-29  Eric Blake  <ebb9@byu.net>
19184
19185         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19186
19187 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19188
19189         * doc/posix-functions/accept.texi: Update mingw problems.
19190         * doc/posix-functions/bind.texi: Update mingw problems.
19191         * doc/posix-functions/close.texi: Update mingw problems.
19192         * doc/posix-functions/connect.texi: Update mingw problems.
19193         * doc/posix-functions/getpeername.texi: Update mingw problems.
19194         * doc/posix-functions/getsockname.texi: Update mingw problems.
19195         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19196         * doc/posix-functions/ioctl.texi: Update mingw problems.
19197         * doc/posix-functions/listen.texi: Update mingw problems.
19198         * doc/posix-functions/recv.texi: Update mingw problems.
19199         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19200         * doc/posix-functions/select.texi: Update mingw problems.
19201         * doc/posix-functions/send.texi: Update mingw problems.
19202         * doc/posix-functions/sendto.texi: Update mingw problems.
19203         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19204         * doc/posix-functions/socket.texi: Update mingw problems.
19205
19206 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19207             Bruno Haible  <bruno@clisp.org>
19208
19209         * lib/sys_select.in.h: Include sys/time.h.
19210         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19211         * modules/sys_select: Depend on sys_time.
19212         * tests/test-sys_select.c: Test that sys/select.h defines struct
19213         timeval fully.
19214
19215 2008-09-29  Bruno Haible  <bruno@clisp.org>
19216
19217         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19218         * lib/sys_select.in.h: Likewise.
19219
19220 2008-09-29  Bruno Haible  <bruno@clisp.org>
19221
19222         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19223
19224 2008-09-29  Bruno Haible  <bruno@clisp.org>
19225
19226         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19227         Set LIBSOCKET instead of augmenting LIBS.
19228         * modules/sockets (Link): New section.
19229         * modules/sockets-tests (test_sockets_LDADD): New variable.
19230         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19231         * modules/poll-tests (test_poll_LDADD): New variable.
19232         * NEWS: Document the change.
19233
19234 2008-09-29  Bruno Haible  <bruno@clisp.org>
19235
19236         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19237         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19238         ARPA_INET_H directly.
19239         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19240
19241 2008-09-28  Bruno Haible  <bruno@clisp.org>
19242
19243         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19244         from gl_HEADER_SYS_SOCKET.
19245         (gl_HEADER_SYS_SOCKET): Invoke it.
19246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19247
19248 2008-09-28  Bruno Haible  <bruno@clisp.org>
19249
19250         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19251         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19252         Needed on OSF/1 4.0.
19253
19254 2008-09-28  Bruno Haible  <bruno@clisp.org>
19255
19256         Override open more carefully.
19257         * lib/open.c (orig_open): New function.
19258         (rpl_open): Use orig_open instead of open.
19259         * lib/fcntl.in.h: Add special invocation convention.
19260         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19261         (gl_FUNC_OPEN): Invoke it.
19262
19263         Override freopen more carefully.
19264         * lib/freopen.c (orig_freopen): New function.
19265         (rpl_freopen): Use orig_freopen instead of freopen.
19266         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19267         (gl_FUNC_FREOPEN): Invoke it.
19268
19269         Override fopen more carefully.
19270         * lib/fopen.c (orig_fopen): New function.
19271         (rpl_fopen): Use orig_fopen instead of fopen.
19272         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19273         (gl_FUNC_FOPEN): Invoke it.
19274         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19275
19276 2008-09-28  Bruno Haible  <bruno@clisp.org>
19277
19278         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19279         SIGPIPE.
19280
19281 2008-09-28  Bruno Haible  <bruno@clisp.org>
19282
19283         * tests/test-sigaction.c (handler, main): Disable the check whether
19284         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19285         glibc systems with LinuxThreads.
19286
19287 2008-09-28  Bruno Haible  <bruno@clisp.org>
19288
19289         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19290
19291         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19292         with AIX xlc.
19293         * lib/fcntl.in.h (open): Likewise.
19294         Reported by Rainer Tammer <tammer@tammer.net>.
19295
19296 2008-09-28  Bruno Haible  <bruno@clisp.org>
19297
19298         * modules/posix_spawnp-tests: New file.
19299         * tests/test-posix_spawn.c: New file.
19300         * tests/test-posix_spawn.in.sh: New file.
19301
19302         New module 'posix_spawnp'.
19303         * modules/posix_spawnp: New file.
19304         * lib/spawnp.c: New file, from GNU libc with modifications.
19305         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19306
19307         New module 'posix_spawn'.
19308         * modules/posix_spawn: New file.
19309         * lib/spawn.c: New file, from GNU libc with modifications.
19310         * doc/posix-functions/posix_spawn.texi: Mention the new module.
19311
19312         New module 'posix_spawnattr_destroy'.
19313         * modules/posix_spawnattr_destroy: New file.
19314         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19315         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19316         module.
19317
19318         New module 'posix_spawnattr_setsigmask'.
19319         * modules/posix_spawnattr_setsigmask: New file.
19320         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19321         modifications.
19322         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19323         new module.
19324
19325         New module 'posix_spawnattr_getsigmask'.
19326         * modules/posix_spawnattr_getsigmask: New file.
19327         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19328         modifications.
19329         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19330         new module.
19331
19332         New module 'posix_spawnattr_setsigdefault'.
19333         * modules/posix_spawnattr_setsigdefault: New file.
19334         * lib/spawnattr_setdefault.c: New file, from GNU libc with
19335         modifications.
19336         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19337         new module.
19338
19339         New module 'posix_spawnattr_getsigdefault'.
19340         * modules/posix_spawnattr_getsigdefault: New file.
19341         * lib/spawnattr_getdefault.c: New file, from GNU libc with
19342         modifications.
19343         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19344         new module.
19345
19346         New module 'posix_spawnattr_setschedpolicy'.
19347         * modules/posix_spawnattr_setschedpolicy: New file.
19348         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19349         modifications.
19350         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19351         new module.
19352
19353         New module 'posix_spawnattr_getschedpolicy'.
19354         * modules/posix_spawnattr_getschedpolicy: New file.
19355         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19356         modifications.
19357         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19358         new module.
19359
19360         New module 'posix_spawnattr_setschedparam'.
19361         * modules/posix_spawnattr_setschedparam: New file.
19362         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19363         modifications.
19364         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19365         new module.
19366
19367         New module 'posix_spawnattr_getschedparam'.
19368         * modules/posix_spawnattr_getschedparam: New file.
19369         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19370         modifications.
19371         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19372         new module.
19373
19374         New module 'posix_spawnattr_setpgroup'.
19375         * modules/posix_spawnattr_setpgroup: New file.
19376         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19377         modifications.
19378         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19379         module.
19380
19381         New module 'posix_spawnattr_getpgroup'.
19382         * modules/posix_spawnattr_getpgroup: New file.
19383         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19384         modifications.
19385         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19386         module.
19387
19388         New module 'posix_spawnattr_setflags'.
19389         * modules/posix_spawnattr_setflags: New file.
19390         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19391         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19392         module.
19393
19394         New module 'posix_spawnattr_getflags'.
19395         * modules/posix_spawnattr_getflags: New file.
19396         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19397         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19398         module.
19399
19400         New module 'posix_spawnattr_init'.
19401         * modules/posix_spawnattr_init: New file.
19402         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19403         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19404         module.
19405
19406         New module 'posix_spawn_file_actions_destroy'.
19407         * modules/posix_spawn_file_actions_destroy: New file.
19408         * lib/spawn_faction_destroy.c: New file, from GNU libc with
19409         modifications.
19410         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19411         the new module.
19412
19413         New module 'posix_spawn_file_actions_addopen'.
19414         * modules/posix_spawn_file_actions_addopen: New file.
19415         * lib/spawn_faction_addopen.c: New file, from GNU libc with
19416         modifications.
19417         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19418         the new module.
19419
19420         New module 'posix_spawn_file_actions_adddup2'.
19421         * modules/posix_spawn_file_actions_adddup2: New file.
19422         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19423         modifications.
19424         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19425         the new module.
19426
19427         New module 'posix_spawn_file_actions_addclose'.
19428         * modules/posix_spawn_file_actions_addclose: New file.
19429         * lib/spawn_faction_addclose.c: New file, from GNU libc with
19430         modifications.
19431         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19432         the new module.
19433
19434         New module 'posix_spawn_file_actions_init'.
19435         * modules/posix_spawn_file_actions_init: New file.
19436         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19437         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19438         new module.
19439
19440         New module 'posix_spawn-internal'.
19441         * modules/posix_spawn-internal: New file.
19442         * lib/spawn_int.h: New file, from GNU libc with modifications.
19443         * lib/spawni.c: New file, from GNU libc with modifications.
19444         * m4/posix_spawn.m4: New file.
19445
19446         New module 'spawn'.
19447         * modules/spawn: New file.
19448         * lib/spawn.in.h: New file, from GNU libc with modifications.
19449         * m4/spawn_h.m4: New file.
19450         * doc/posix-headers/spawn.texi: Mention the new module.
19451
19452 2008-09-28  Bruno Haible  <bruno@clisp.org>
19453
19454         * modules/sched-tests: New file.
19455         * tests/test-sched.c: New file.
19456
19457         New module 'sched'.
19458         * modules/sched: New file.
19459         * lib/sched.in.h: New file.
19460         * m4/sched_h.m4: New file.
19461         * doc/posix-headers/sched.texi: Mention the new module.
19462
19463 2008-09-27  Eric Blake  <ebb9@byu.net>
19464
19465         Fix previous patch, and tweak references to $0.
19466         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19467         (func_version, func_gnulib_dir): Don't call this program
19468         gnulib-tool.
19469         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19470         with using $0 in function.
19471         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19472         (func_fatal_error): Reuse the name the user invoked us with.
19473
19474 2008-09-27  Bruno Haible  <bruno@clisp.org>
19475
19476         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19477         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19478         (gl_ICONV_H): Not here.
19479         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19480         instead of assigning ICONV_H directly.
19481
19482         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19483         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19484         WCHAR_H directly.
19485
19486 2008-09-27  Bruno Haible  <bruno@clisp.org>
19487
19488         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19489         * modules/arpa_inet (Depends-on): Add link-warning.
19490         (Makefile.am): Insert the definition of GL_LINK-WARNING.
19491         * modules/unistd (Makefile.am): Likewise.
19492
19493 2008-09-26  Bruno Haible  <bruno@clisp.org>
19494
19495         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19496         variables.
19497         (func_version): Essentially copied from gnulib-tool.
19498         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19499         func_readlink): Copied from gnulib-tool.
19500
19501 2008-09-26  Bruno Haible  <bruno@clisp.org>
19502
19503         * gnulib-tool (func_version): Change directory to $gnulib_dir before
19504         invoking git-version-gen.
19505
19506 2008-09-26  Bruno Haible  <bruno@clisp.org>
19507
19508         * posix-modules: Update to directory names changed on 2008-01-19.
19509         Remove commas in output before splitting into words. No more need to
19510         avoid 'ftruncate' since 2007-02-19.
19511
19512 2008-09-26  Bruno Haible  <bruno@clisp.org>
19513
19514         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19515
19516 2008-09-26  Bruno Haible  <bruno@clisp.org>
19517
19518         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
19519         * modules/fwriteerror (Depends-on): Add errno.
19520
19521 2008-09-26  Bruno Haible  <bruno@clisp.org>
19522
19523         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
19524         * tests/test-vc-list-files-cvs.sh: Likewise.
19525
19526 2008-09-26  Bruno Haible  <bruno@clisp.org>
19527
19528         * doc/posix-headers/sys_resource.texi: Reorder items.
19529
19530 2008-09-26  Jim Meyering  <meyering@redhat.com>
19531
19532         fts: tweak inode comparison function
19533         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
19534         inode numbers, as documented.
19535
19536         fts: sort dirent entries on inode number before traversing
19537         This avoids a quadratic, seek-related performance penalty when
19538         operating on a directory containing many entries (measurable at 10k;
19539         3.5 hours at 2 million entries with a cold cache) on certain types
19540         of file systems, including ext3 and ext4, but not tmpfs.
19541         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
19542         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
19543         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
19544         (fs_handles_readdir_ordered_dirents_efficiently): New function.
19545         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
19546         (fts_build): Set the stat.st_ino member from D_INO.
19547         If it is likely to be useful, sort dirent entries on inode number.
19548
19549         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
19550         and the struct statfs.f_type member.
19551         * modules/fts (Depends-on): Add d-ino.
19552
19553 2008-09-26  Bruno Haible  <bruno@clisp.org>
19554
19555         * modules/sigpipe-die (Depends-on): Add sigpipe.
19556
19557         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
19558         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
19559         and GNULIB_STDIO_H_SIGPIPE are set.
19560         * lib/stdio-write.c: New file.
19561         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
19562         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19563         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19564         REPLACE_STDIO_WRITE_FUNCS.
19565         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
19566         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19567         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19568         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19569         * modules/stdio (Files): Add lib/stdio-write.c.
19570         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
19571         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
19572         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
19573         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
19574         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
19575         REPLACE_FPRINTF_POSIX.
19576         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
19577         REPLACE_PRINTF_POSIX.
19578         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
19579         REPLACE_VFPRINTF_POSIX.
19580         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
19581         REPLACE_VPRINTF_POSIX.
19582         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
19583         SIGPIPE issue.
19584         * doc/posix-functions/fputc.texi: Likewise.
19585         * doc/posix-functions/fputs.texi: Likewise.
19586         * doc/posix-functions/fwrite.texi: Likewise.
19587         * doc/posix-functions/printf.texi: Likewise.
19588         * doc/posix-functions/putc.texi: Likewise.
19589         * doc/posix-functions/putchar.texi: Likewise.
19590         * doc/posix-functions/puts.texi: Likewise.
19591         * doc/posix-functions/vfprintf.texi: Likewise.
19592         * doc/posix-functions/vprintf.texi: Likewise.
19593
19594         * modules/safe-write (Depends-on): Add write.
19595
19596         * modules/sigpipe-tests: New file.
19597         * tests/test-sigpipe.c: New file.
19598         * tests/test-sigpipe.sh: New file.
19599
19600         * modules/write: New file.
19601         * lib/unistd.in.h: Include <sys/types.h>.
19602         (write): New declaration.
19603         * lib/write.c: New file.
19604         * m4/write.m4: New file.
19605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19606         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
19607         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
19608         GNULIB_WRITE, REPLACE_WRITE.
19609         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
19610         and the SIGPIPE issue.
19611
19612         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
19613         (raise): New declaration.
19614         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
19615         (ext_signal): New function.
19616         (rpl_raise): New function.
19617         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
19618         GNULIB_SIGNAL_H_SIGPIPE.
19619         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
19620         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
19621
19622         * modules/sigpipe: New file.
19623         * m4/sigpipe.m4: New file.
19624
19625 2008-09-25  Derek Price  <derek@ximbiot.com>
19626             Bruno Haible  <bruno@clisp.org>
19627
19628         * gnulib-tool (func_import): Report all license incompatibilities, not
19629         just the first one.
19630
19631 2008-09-25  Bruno Haible  <bruno@clisp.org>
19632
19633         * gnulib-tool (func_import): When computing the edits, consider not
19634         only the Makefile.ams that exist but also those that will be generated.
19635
19636 2008-09-25  Simon Josefsson  <simon@josefsson.org>
19637
19638         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
19639         fixes gnulib-tool --test warning about duplicate dependency.
19640
19641 2008-09-25  Bruno Haible  <bruno@clisp.org>
19642
19643         * gnulib-tool: Don't ask the user to perform edits in the generated
19644         Makefile.ams.
19645         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
19646         apply to the Makefile.am being generated.
19647         (func_emit_tests_Makefile_am): Execute edits that apply to the
19648         Makefile.am being generated.
19649         (func_import): Setup list of Makefile.am edits before emitting the
19650         Makefile.ams, not at the end.
19651         (func_create_testdir): Update.
19652         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19653
19654 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19655
19656         * gnulib-tool (func_import): Store the --tests-base option in the
19657         comment in gnulib-cache.m4.
19658
19659 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
19660
19661         * NEWS: Document increased portability that sys_select now provides.
19662
19663         * lib/sys_select.in.h: Install select wrapper.
19664         * lib/sys_socket.in.h: Use more descriptive name when there is no
19665         select wrapper.
19666         * lib/winsock-select.c: New.
19667         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
19668         Require gl_HEADER_SYS_SOCKET.
19669         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
19670         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
19671         * tests/test-sys_select.c: Add functional tests.
19672
19673 2008-09-24  Eric Blake  <ebb9@byu.net>
19674
19675         open, fopen: close fd leak in last patch
19676         * lib/open.c (rpl_open): Close fd before returning error.
19677         * lib/fopen.c (rpl_fopen): Close fd before returning error.
19678         * doc/posix-functions/open.texi (open): Document that Irix also
19679         has the bug.
19680         * doc/posix-functions/fopen.texi (fopen): Likewise.
19681         Reported by Paolo Bonzini.
19682
19683 2008-09-24  Bruno Haible  <bruno@clisp.org>
19684
19685         Ensure that a filename ending in a slash cannot be used to access a
19686         non-directory.
19687         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
19688         to check whether it's really a directory.
19689         * lib/fopen.c: Include fcntl.h, unistd.h.
19690         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
19691         and fdopen().
19692         * modules/fopen (Depends-on): Add unistd.
19693         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
19694         * tests/test-fopen.c (main): Likewise.
19695         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
19696         * doc/posix-functions/fopen.texi: Likewise.
19697         Reported by Eric Blake.
19698
19699 2008-09-23  Eric Blake  <ebb9@byu.net>
19700
19701         c-stack: avoid compiler optimizations when provoking overflow
19702         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
19703         recursion harder to optimize, to ensure a stack overflow occurs.
19704         * tests/test-c-stack.c (recurse): Likewise.
19705         Borrowed from libsigsegv.
19706
19707         c-stack: work around Irix sigaltstack bug
19708         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
19709         whether sigaltstack uses wrong end of stack_t (copied in part from
19710         libsigsegv).
19711         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
19712         Irix bug, without requiring an over-allocation.
19713         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
19714         bug.
19715
19716         fopen: document mingw bug on directories
19717         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
19718         not allowing a stream visiting a directory, even though reading
19719         from such a stream is not portable.
19720
19721 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19722
19723         * lib/poll.c: Rewrite.
19724         * modules/poll: Depend on alloca.
19725
19726 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19727
19728         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
19729         instead define prototypes for a full set of wrappers.  Ensure
19730         that Cygwin does not use the compatibility code, which is only
19731         for MinGW.
19732         * lib/winsock.c: New.
19733         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
19734         * modules/sys_socket: Add lib/winsock.c.
19735
19736         * modules/poll-tests: Add errno and perror.
19737         * tests/test-poll.c: Use ioctl, not ioctlsocket.
19738
19739 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
19740
19741         * tests/test-poll.c: Downgrade minimum needed Winsock version.
19742
19743 2008-09-23  Bruno Haible  <bruno@clisp.org>
19744
19745         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
19746         * doc/glibc-functions/*: Likewise.
19747
19748 2008-09-23  Simon Josefsson  <simon@josefsson.org>
19749
19750         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
19751         success.
19752
19753 2008-09-22  Eric Blake  <ebb9@byu.net>
19754             Bruno Haible  <bruno@clisp.org>
19755
19756         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
19757         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
19758         supply %A but mishandle pseudo-NaN.
19759         Reported by Simon Josefsson.
19760
19761 2008-09-21  Bruno Haible  <bruno@clisp.org>
19762
19763         * tests/test-lock.c (main): Tweak skip message.
19764         * tests/test-tls.c (main): Likewise.
19765
19766 2008-09-21  Bruno Haible  <bruno@clisp.org>
19767
19768         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
19769         whether 'struct sigaction' has sa_sigaction here...
19770         (gl_PREREQ_SIG_HANDLER_H): ... not here.
19771         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
19772
19773 2008-09-21  Bruno Haible  <bruno@clisp.org>
19774
19775         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
19776         section.
19777         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
19778         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
19779         the new section.
19780         (Support for obsolete systems lacking POSIX:2001): New section.
19781         (String handling <string.h>): Move strdup to the new section.
19782         Suggested by Simon Josefsson and Paolo Bonzini.
19783
19784 2008-09-21  Bruno Haible  <bruno@clisp.org>
19785
19786         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
19787         exponents in %e and %g results on 'long double'. Needed for mingw's
19788         improved *printf functions.
19789         * tests/test-vasprintf-posix.c (test_function): Likewise.
19790         * tests/test-snprintf-posix.h (test_function): Likewise.
19791         * tests/test-sprintf-posix.h (test_function): Likewise.
19792         Reported by Eric Blake.
19793
19794 2008-09-21  Bruno Haible  <bruno@clisp.org>
19795
19796         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
19797         * tests/test-sprintf-posix.h (test_function): Likewise.
19798
19799 2008-09-21  Bruno Haible  <bruno@clisp.org>
19800
19801         * modules/getpass (Depends-on): Add strdup-posix.
19802
19803         New module 'strdup-posix'.
19804         * modules/strdup-posix: New file.
19805         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
19806         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
19807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19808         REPLACE_STRDUP.
19809         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
19810         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
19811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19812         strdup-posix.
19813
19814         * modules/strdup (Depends-on): Remove malloc-posix.
19815
19816 2008-09-20  Bruno Haible  <bruno@clisp.org>
19817
19818         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
19819         Wildenhues.
19820
19821 2008-09-20  Bruno Haible  <bruno@clisp.org>
19822
19823         Ensure that wint_t gets defined on IRIX 5.3.
19824         * lib/wchar.in.h (wint_t): Define if not defined by the system.
19825         * lib/wctype.in.h (wint_t): Likewise.
19826         (__wctype_wint_t): Remove type.
19827         (isw*): Use wint_t instead of __wctype_wint_t.
19828         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
19829         * modules/wchar (Files): Add m4/wint_t.m4.
19830         (Makefile.am): Substitute HAVE_WINT_T.
19831         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
19832         * tests/test-wctype.c: Check that wint_t is defined.
19833         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
19834         * doc/posix-headers/wctype.texi: Likewise.
19835         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19836
19837 2008-09-18  Bruno Haible  <bruno@clisp.org>
19838
19839         * gnulib-tool (func_exit): Update comment.
19840
19841 2008-09-18  Simon Josefsson  <simon@josefsson.org>
19842
19843         * modules/getaddrinfo (Depends-on): Remove strdup, this module
19844         assumes strdup exists and does not depend on strdup to return
19845         ENOMEM on out of memory conditions.
19846
19847 2008-09-18  Bruno Haible  <bruno@clisp.org>
19848
19849         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
19850         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
19851         digits for the exponent.
19852
19853 2008-09-18  Jim Meyering  <meyering@redhat.com>
19854             Bruno Haible  <bruno@clisp.org>
19855
19856         * lib/vasnprintf.c (decimal_point_char): Define also if
19857         NEED_PRINTF_INFINITE_LONG_DOUBLE.
19858
19859 2008-09-16  Bruno Haible  <bruno@clisp.org>
19860         and Eric Blake  <ebb9@byu.net>
19861
19862         vasnprintf: support Irix 5.3
19863         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
19864         that mishandle long double infinity.
19865         Reported by Tom G. Christensen.
19866
19867 2008-09-16  Bruno Haible  <bruno@clisp.org>
19868
19869         * doc/glibc-functions/scandir.texi: Mention the function is missing on
19870         Solaris 9.
19871         * doc/glibc-functions/alphasort.texi: Likewise.
19872         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
19873
19874 2008-09-16  Jim Meyering  <meyering@redhat.com>
19875
19876         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
19877         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
19878         a umask modification leak out of a subshell.  Otherwise, the
19879         opensolaris /bin/sh would be accepted and thus cause unwarranted
19880         failures in the coreutils test suite.
19881
19882 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
19883
19884         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
19885         to succeed.
19886
19887 2008-09-16  Jim Meyering  <meyering@redhat.com>
19888
19889         avoid spurious test failure when library is built without ACL support
19890         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
19891         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
19892         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
19893         * tests/test-copy-acl.sh: Likewise.
19894
19895 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19896
19897         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
19898         based on character occurrence counts.
19899
19900 2008-09-15  Eric Blake  <ebb9@byu.net>
19901
19902         tests: avoid some compiler warnings
19903         * tests/test-memchr.c (main): Pass NULL indirectly.
19904         * tests/test-closein.c (main): Avoid unused variable.
19905
19906 2008-09-15  Bruno Haible  <bruno@clisp.org>
19907
19908         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
19909         are missing on OpenBSD 4.0 individually.
19910         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19911
19912 2008-09-15  Bruno Haible  <bruno@clisp.org>
19913
19914         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
19915         * doc/posix-functions/strerror.texi: Mention also Cygwin.
19916         * doc/posix-functions/perror.texi: Likewise.
19917         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
19918         is missing.
19919         Reported by Eric Blake.
19920
19921         * lib/errno.in.h: Use replacement values >= 2000.
19922         Reported by Eric Blake.
19923
19924 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19925
19926         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
19927         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
19928         limit.
19929         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
19930         compareseq was aborted.
19931
19932 2008-09-14  Bruno Haible  <bruno@clisp.org>
19933
19934         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
19935         yvec_edit_count.
19936         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
19937         (fstrcmp_bounded): Simplify result computation accordingly.
19938
19939 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19940
19941         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
19942         (fstrcmp): Define in terms of fstrcmp_bounded.
19943         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
19944         lower_bound argument.
19945         Return quickly if the result is certainly < lower_bound.
19946         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
19947
19948 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19949
19950         * lib/diffseq.h (EARLY_ABORT): New macro.
19951         (compareseq): Change return type to bool. Return true when EARLY_ABORT
19952         evaluates to true.
19953
19954 2008-09-14  Bruno Haible  <bruno@clisp.org>
19955
19956         * modules/perror-tests: New file.
19957         * tests/test-perror.sh: New file.
19958         * tests/test-perror.c: New file.
19959
19960         New module 'perror'.
19961         * lib/stdio.in.h (perror): New declaration.
19962         * lib/perror.c: New file.
19963         * m4/perror.m4: New file.
19964         * modules/perror: New file.
19965         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
19966         * doc/posix-functions/perror.texi: Mention the perror module.
19967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
19968         REPLACE_PERROR.
19969         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
19970         REPLACE_PERROR.
19971
19972 2008-09-14  Bruno Haible  <bruno@clisp.org>
19973
19974         * modules/stdio (Makefile.am): Reorder to match the order in
19975         lib/stdio.in.h.
19976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19977
19978 2008-09-13  Bruno Haible  <bruno@clisp.org>
19979
19980         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
19981
19982 2008-09-13  Bruno Haible  <bruno@clisp.org>
19983
19984         Extend strerror to cover the added errno values.
19985         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
19986         (rpl_strerror): Provide error messages for the added errno values and
19987         for the WSA* values.
19988         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
19989         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
19990         strerror.
19991         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
19992         * modules/strerror (Depends-on): Add errno.
19993         * doc/posix-functions/strerror.texi: Document the change.
19994         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
19995         and EOVERFLOW.
19996
19997 2008-09-13  Bruno Haible  <bruno@clisp.org>
19998
19999         * modules/EOVERFLOW: Remove file.
20000         * m4/eoverflow.m4: Remove file.
20001         * modules/EOVERFLOW-tests: Remove file.
20002         * tests/test-EOVERFLOW.c: Remove file.
20003         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20004         * modules/ftell (Depends-on): Likewise.
20005         * modules/getdelim (Depends-on): Likewise.
20006         * modules/getugroups (Depends-on): Likewise.
20007         * modules/poll (Depends-on): Likewise.
20008         * modules/snprintf (Depends-on): Likewise.
20009         * modules/sprintf-posix (Depends-on): Likewise.
20010         * modules/vasnprintf (Depends-on): Likewise.
20011         * modules/vasprintf (Depends-on): Likewise.
20012         * modules/vfprintf-posix (Depends-on): Likewise.
20013         * modules/vsnprintf (Depends-on): Likewise.
20014         * modules/vsprintf-posix (Depends-on): Likewise.
20015         * modules/xvasprintf (Depends-on): Likewise.
20016         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20017         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20018         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20019         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20020         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20021         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20022         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20023         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20024         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20025         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20026         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20027         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20028         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20029         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20030         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20031         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20032         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20033         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20034         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20035         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20036         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20037         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20038         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20039         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20040         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20041         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20042         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20043         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20044         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20045         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20046         * MODULES.html.sh: Remove EOVERFLOW.
20047         * NEWS: Mention the change.
20048
20049 2008-09-13  Bruno Haible  <bruno@clisp.org>
20050
20051         * modules/errno-tests: New file.
20052         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20053
20054         * lib/errno.in.h: New file.
20055         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20056         * modules/errno: New file.
20057         * doc/posix-headers/errno.texi: Update documentation.
20058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20059
20060 2008-09-13  Bruno Haible  <bruno@clisp.org>
20061
20062         * tests/test-poll.c: Use #if for native Windows, rather than testing
20063         __MSVCRT__.
20064
20065 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20066             Bruno Haible  <bruno@clisp.org>
20067
20068         * lib/glob.c: Don't include <pwd.h> on native Windows.
20069         (WINDOWS32): New macro.
20070         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20071
20072 2008-09-13  Bruno Haible  <bruno@clisp.org>
20073
20074         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20075         (ETIMEDOUT): Remove macro.
20076         (glthread_cond_timedwait_multithreaded): New declaration.
20077         (glthread_cond_timedwait): Use it.
20078         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20079         (glthread_cond_timedwait_multithreaded): New function.
20080
20081 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20082
20083         * modules/poll-tests: Do not check for io.h.
20084         * tests/test-poll.c: Check for __MSVCRT__ instead.
20085
20086 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20087
20088         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20089         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20090         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20091
20092 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20093
20094         * modules/poll-tests: New.
20095         * tests/test-poll.c: New.
20096
20097 2008-09-12  Eric Blake  <ebb9@byu.net>
20098
20099         frexp: test for NetBSD failure on -0.0
20100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20101         not all, bugs from NetBSD 3.0 have been fixed.
20102         * doc/posix-functions/frexp.texi (frexp): Document bug.
20103         Reported by Thomas Klausner.
20104
20105         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20106         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20107         literal -0.0.
20108         Reported by Jonathan C. Patschke <jp@centtech.com>.
20109
20110 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20111
20112         * lib/glthread/cond.h: Use dummy implementation also if
20113         USE_WIN32_THREADS.
20114
20115 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20116
20117         * modules/fnmatch-posix (License): Change to LGPLv2+.
20118         * modules/fnmatch-gnu (License): Likewise.
20119
20120 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20121
20122         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20123
20124 2008-09-11  Jim Meyering  <meyering@redhat.com>
20125
20126         * users.txt: Add gtk-vnc.
20127
20128 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20129
20130         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20131         rotate amounts.
20132
20133         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20134         required for 16-bit and 8-bit rotates.
20135         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20136         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20137         UINT8_MAX instead of hard-coded constants.
20138         Suggested by Paul Eggert.
20139
20140 2008-09-07  Bruno Haible  <bruno@clisp.org>
20141
20142         * tests/test-striconveh.c (main): Check behaviour when converting from
20143         UTF-7.
20144
20145         Make striconveh work better with stateful encodings.
20146         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20147         that iconv does not increment the inptr when returning -1/EINVAL.
20148
20149 2008-09-07  Bruno Haible  <bruno@clisp.org>
20150
20151         * build-aux/config.rpath: Update according to libtool-2.2.6.
20152         * build-aux/config.libpath: Likewise.
20153
20154 2008-09-06  Bruno Haible  <bruno@clisp.org>
20155
20156         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20157         * lib/freadptr.c (freadptr): Likewise.
20158         * lib/freadseek.c (freadptrinc): Likewise.
20159         Reported by Simon Josefsson.
20160
20161 2008-09-06  Bruno Haible  <bruno@clisp.org>
20162
20163         * modules/freadptr (License): Change to LGPLv2+.
20164         * modules/freadseek (License): Likewise.
20165         Suggested by Eric Blake.
20166
20167         * modules/memchr2 (License): Change to LGPLv2+.
20168         Approved by Eric Blake.
20169
20170 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20171             Bruno Haible  <bruno@clisp.org>
20172
20173         Make gnulib-tool work with native 'sed' on AIX.
20174         * gnulib-tool (sed_noop): New variable.
20175         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20176         func_add_or_update, func_create_testdir): Use it to initialize sed
20177         script variables.
20178         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20179
20180 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20181             Bruno Haible  <bruno@clisp.org>
20182
20183         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20184         also works after #include directives.
20185
20186 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
20187
20188         getdate.y: reject an out-of-range timezone value
20189         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20190         the range [-24...+24].  When specified with only one or two digits,
20191         * tests/test-getdate.c: Tests for the fix.
20192         * doc/getdate.texi: Document this change.
20193
20194 2008-09-03  Bruno Haible  <bruno@clisp.org>
20195
20196         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20197
20198 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20199
20200         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20201         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20202         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20203         Blake <ebb9@byu.net>.
20204
20205         * tests/test-bitrotate.c: Add more test vectors.
20206
20207 2008-09-02  Eric Blake  <ebb9@byu.net>
20208
20209         vasnprintf-posix: handle large precision via %.*d
20210         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20211         when handling it ourselves.
20212         * tests/test-vasnprintf-posix.c (test_function): Add test.
20213         * tests/test-snprintf-posix.h (test_function): Likewise.
20214         * tests/test-sprintf-posix.h (test_function): Likewise.
20215         * tests/test-vasprintf-posix.c (test_function): Likewise.
20216         Reported by Alain Guibert.
20217
20218 2008-09-01  Eric Blake  <ebb9@byu.net>
20219
20220         c-stack: make configure-time check more robust
20221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20222         successful sigaction call.
20223         Reported by Tom G. Christensen.
20224
20225 2008-09-01  Bruno Haible  <bruno@clisp.org>
20226
20227         New module 'findprog-lgpl'.
20228         * modules/findprog-lgpl: New file.
20229         * lib/findprog-lgpl.c: New file.
20230         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20231         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20232         to decide whether to use strdup or xstrdup, concatenated_filename or
20233         xconcatenated_filename.
20234
20235 2008-09-01  Bruno Haible  <bruno@clisp.org>
20236
20237         Split module 'concat-filename' into 'concat-filename' (LGPL) and
20238         'xconcat-filename' (GPL).
20239         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20240         (License): Change to LGPLv2+.
20241         * modules/xconcat-filename: New file.
20242         * lib/concat-filename.h (concatenated_filename): Change specification.
20243         (xconcatenated_filename): New declaration.
20244         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20245         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20246         memory situations.
20247         * lib/xconcat-filename.c: New file.
20248         * NEWS: Mention the change.
20249         * lib/findprog.c: Include concat-filename.h, not filename.h.
20250         (find_in_path): Use xconcatenated_filename instead of
20251         concatenated_filename.
20252         * lib/javacomp.c: Include concat-filename.h, not filename.h.
20253         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20254         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20255         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20256         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20257         instead of concatenated_filename.
20258         * lib/javaexec.c: Include concat-filename.h, not filename.h.
20259         (execute_java_class): Use xconcatenated_filename instead of
20260         concatenated_filename.
20261         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20262         * modules/javacomp (Depends-on): Likewise.
20263         * modules/javaexec (Depends-on): Likewise.
20264
20265 2008-09-01  Bruno Haible  <bruno@clisp.org>
20266
20267         Split module 'filename' into 'filename' and 'concat-filename'.
20268         * modules/filename: Keep only lib/filename.h.
20269         (License): Change to LGPLv2+.
20270         * modules/concat-filename: New file, extracted from modules/filename.
20271         * lib/filename.h (concatenated_filename): Remove declaration.
20272         * lib/concat-filename.h: New file, extracted from lib/filename.h.
20273         * lib/concat-filename.c: Include concat-filename.h.
20274         * NEWS: Mention the change.
20275
20276 2008-09-01  Simon Josefsson  <simon@josefsson.org>
20277
20278         * lib/bitrotate.h (rotl8, rotr8): Add.
20279
20280         * modules/bitrotate (configure.ac): Need
20281         AC_REQUIRE([AC_C_INLINE]).
20282         (Description): Mention stdint.h.  Reported by Bruno Haible
20283         <bruno@clisp.org>.
20284
20285         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
20286         Paolo Bonzini <bonzini@gnu.org>.
20287
20288 2008-08-31  Bruno Haible  <bruno@clisp.org>
20289
20290         Assume Solaris specific bi-arch conventions on Solaris systems.
20291         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20292         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20293         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20294         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20295         like acl_libdirstem.
20296         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20297         acl_libdirstem.
20298         * NEWS: Mention the change.
20299         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20300
20301 2008-08-31  Jim Meyering  <meyering@redhat.com>
20302
20303         * lib/strftime.h: Add comments describing the two added arguments.
20304
20305         remove duplicate #include directives
20306         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20307         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20308
20309 2008-08-31  Bruno Haible  <bruno@clisp.org>
20310
20311         New module 'sigpipe-die'.
20312         * modules/sigpipe-die: New file.
20313         * lib/sigpipe-die.h: New file.
20314         * lib/sigpipe-die.c: New file.
20315         * MODULES.html.sh (Signal handling): Add sigpipe-die.
20316
20317 2008-08-31  Bruno Haible  <bruno@clisp.org>
20318
20319         Don't override previously installed signal handlers.
20320         * lib/fatal-signal.c (saved_sigactions): New variable.
20321         (uninstall_handlers): Reset the signal to the saved handler, not
20322         to SIG_DFL (except when ignored).
20323         (install_handlers): Save the previous handlers.
20324
20325 2008-08-30  Bruno Haible  <bruno@clisp.org>
20326
20327         * gnulib-tool (func_reset_sigpipe): New function.
20328         (func_get_automake_snippet, func_modules_transitive_closure,
20329         func_import): Invoke it before a join command that reads from stdin,
20330         to avoid "echo: write error: Broken pipe" error messages on stderr.
20331         Reported by Sam Steingold <sds@gnu.org>.
20332
20333 2008-08-30  Bruno Haible  <bruno@clisp.org>
20334
20335         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20336         Code copied from m4/open.m4.
20337         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20338         access and the filename ends in a slash. Code copied from lib/open.c.
20339         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20340         * tests/test-fopen.c (main): Check against bug with trailing slash.
20341
20342 2008-08-29  Bruno Haible  <bruno@clisp.org>
20343
20344         Avoid some "gcc -pedantic" warnings.
20345         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20346         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20347         * lib/dirent.in.h: Likewise.
20348         * lib/fcntl.in.h: Likewise.
20349         * lib/float.in.h: Likewise.
20350         * lib/iconv.in.h: Likewise.
20351         * lib/inttypes.in.h: Likewise.
20352         * lib/locale.in.h: Likewise.
20353         * lib/math.in.h: Likewise.
20354         * lib/netinet_in.in.h: Likewise.
20355         * lib/search.in.h: Likewise.
20356         * lib/signal.in.h: Likewise.
20357         * lib/stdarg.in.h: Likewise.
20358         * lib/stdint.in.h: Likewise.
20359         * lib/stdio.in.h: Likewise.
20360         * lib/stdlib.in.h: Likewise.
20361         * lib/string.in.h: Likewise.
20362         * lib/strings.in.h: Likewise.
20363         * lib/sys_select.in.h: Likewise.
20364         * lib/sys_socket.in.h: Likewise.
20365         * lib/sys_stat.in.h: Likewise.
20366         * lib/sys_time.in.h: Likewise.
20367         * lib/sysexits.in.h: Likewise.
20368         * lib/time.in.h: Likewise.
20369         * lib/unistd.in.h: Likewise.
20370         * lib/wchar.in.h: Likewise.
20371         * lib/wctype.in.h: Likewise.
20372         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20373         * modules/fchdir (Makefile.am): Likewise.
20374         * modules/fcntl (Makefile.am): Likewise.
20375         * modules/float (Makefile.am): Likewise.
20376         * modules/iconv_open (Makefile.am): Likewise.
20377         * modules/inttypes (Makefile.am): Likewise.
20378         * modules/locale (Makefile.am): Likewise.
20379         * modules/math (Makefile.am): Likewise.
20380         * modules/netinet_in (Makefile.am): Likewise.
20381         * modules/search (Makefile.am): Likewise.
20382         * modules/signal (Makefile.am): Likewise.
20383         * modules/stdarg (Makefile.am): Likewise.
20384         * modules/stdint (Makefile.am): Likewise.
20385         * modules/stdio (Makefile.am): Likewise.
20386         * modules/stdlib (Makefile.am): Likewise.
20387         * modules/string (Makefile.am): Likewise.
20388         * modules/strings (Makefile.am): Likewise.
20389         * modules/sys_select (Makefile.am): Likewise.
20390         * modules/sys_socket (Makefile.am): Likewise.
20391         * modules/sys_stat (Makefile.am): Likewise.
20392         * modules/sys_time (Makefile.am): Likewise.
20393         * modules/sysexits (Makefile.am): Likewise.
20394         * modules/time (Makefile.am): Likewise.
20395         * modules/unistd (Makefile.am): Likewise.
20396         * modules/wchar (Makefile.am): Likewise.
20397         * modules/wctype (Makefile.am): Likewise.
20398         Reported by Reuben Thomas <rrt@sc3d.org>.
20399
20400 2008-08-29  Bruno Haible  <bruno@clisp.org>
20401
20402         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20403         any more.
20404
20405 2008-08-29  Simon Josefsson  <simon@josefsson.org>
20406
20407         * MODULES.html.sh (Misc): Add bitrotate.
20408
20409         * modules/bitrotate: New file.
20410
20411         * lib/bitrotate.h: New file.
20412
20413         * modules/bitrotate-tests: New file.
20414
20415         * tests/test-bitrotate.c: New file.
20416
20417         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20418         on the bitrotate module.
20419
20420         * lib/arctwo.c: Use new bitrotate module.
20421
20422 2008-08-29  Jim Meyering  <meyering@redhat.com>
20423
20424         bootstrap: merge changes from coreutils
20425         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20426         of copied files.  Remove a kludge, now that this is fixed.
20427         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20428         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20429         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20430
20431 2008-08-29  Bruno Haible  <bruno@clisp.org>
20432
20433         * MODULES.html.sh: Remove --cvs-urls option.
20434
20435 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
20436
20437         maint.mk: adjust to file name change
20438         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20439
20440 2008-08-28  Jim Meyering  <meyering@redhat.com>
20441
20442         * modules/getndelim2 (License): Relicense to LGPLv2+.
20443         Approved by Richard Stallman for the version of 1995, and by
20444         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20445
20446 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
20447
20448         * lib/getdelim.c (flockfile, funlockfile): Make all of them
20449         dummy if one is not available.  Do not touch them if
20450         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20451         (getc_maybe_unlocked): New.
20452         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20453
20454 2008-08-26  Eric Blake  <ebb9@byu.net>
20455
20456         doc/INSTALL: resync from autoconf
20457         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20458         (INSTALL_PRELUDE): Delete; this is done more efficiently by
20459         moving...
20460         * install.texi [!autoconf]: ...here.  Resync from autoconf.
20461         * INSTALL: Regenerate.
20462         * INSTALL.ISO: New file.
20463         * INSTALL.UTF-8: Likewise.
20464
20465 2008-08-26  Jim Meyering  <meyering@redhat.com>
20466
20467         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20468         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20469         these definitions conditional, so that they may be overridden, too.
20470
20471 2008-08-26  Bruno Haible  <bruno@clisp.org>
20472
20473         Generate INSTALL file variants with prettier quotes.
20474         * doc/Makefile (INSTALL_PRELUDE): New macro.
20475         (INSTALL): Use it.
20476         (INSTALL.ISO, INSTALL.UTF-8): New rules.
20477
20478 2008-08-26  Bruno Haible  <bruno@clisp.org>
20479
20480         Run makeinfo in an English locale.
20481         * doc/Makefile (MAKEINFO): New variable.
20482
20483 2008-08-26  Bruno Haible  <bruno@clisp.org>
20484
20485         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20486         Suggested by Eric Blake.
20487
20488 2008-08-25  Bruno Haible  <bruno@clisp.org>
20489
20490         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20491
20492 2008-08-25  Eric Blake  <ebb9@byu.net>
20493
20494         c-stack: test that stack overflow can be caught
20495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20496         that platform allows handling stack overflow; at least OS/2 EMX
20497         has sigaltstack, but crashes before transferring control to
20498         handler on stack overflow.
20499         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20500         check for HAVE_STACK_OVERFLOW_HANDLING.
20501         Reported by Elbert Pol.
20502
20503 2008-08-25  Bruno Haible  <bruno@clisp.org>
20504
20505         * doc/posix-functions/strftime.texi: Fix description of strftime
20506         module.
20507
20508 2008-08-24  Bruno Haible  <bruno@clisp.org>
20509
20510         * tests/uniwidth/test-uc_width2.c: New file.
20511         * tests/uniwidth/test-uc_width2.sh: New file.
20512         * modules/uniwidth/width-tests (Files): Add the new files.
20513         (TESTS): Add uniwidth/test-uc_width2.sh.
20514         (TESTS_ENVIRONMENT): New variable.
20515         (check_PROGRAMS): Add test-uc_width2.
20516         (test_uc_width2_SOURCES): New variable.
20517
20518         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
20519         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
20520         not 0x00AB.
20521         Reported by Alexander V. Lukyanov <lav@netis.ru>.
20522
20523 2008-08-22  Eric Blake  <ebb9@byu.net>
20524
20525         test-lock, test-tls: mention why a test is skipped
20526         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
20527         skipped.
20528         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
20529
20530         count-one-bits: relax license
20531         * modules/count-one-bits (License): Relicense to LGPLv2+.
20532         Suggested by Ludovic Courtès, approved by Ben Pfaff.
20533
20534 2008-08-22  Andreas Schwab  <schwab@suse.de>
20535
20536         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20537         Remove spurious space in assignment.
20538
20539 2008-08-21  Simon Josefsson  <simon@josefsson.org>
20540
20541         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
20542         Paul Eggert <eggert@CS.UCLA.EDU>.
20543
20544 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
20545
20546         * modules/gettext: Add m4/threadlib.m4.
20547
20548 2008-08-19  Eric Blake  <ebb9@byu.net>
20549
20550         test-c-stack: fix compilation failure on FreeBSD 5.0
20551         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
20552         headers before <sys/resource.h>.
20553         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
20554         the bug.
20555         Reported by Nelson H. F. Beebe.
20556
20557         strverscmp: migrate from "strverscmp.h" to <string.h>
20558         * modules/string (Makefile.am): Add new hooks.
20559         * modules/strverscmp (Files): Remove strverscmp.h.
20560         (Depends-on): Add string.
20561         (configure.ac): Add indicator.
20562         (Include): Mention new header.
20563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
20564         defaults.
20565         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
20566         results.
20567         * lib/strverscmp.h: Delete.
20568         * lib/string.in.h (strverscmp): Provide declaration, when needed.
20569         * tests/test-strverscmp.c (includes): Adjust client.
20570         * lib/check-version.c (includes): Likewise.
20571         * NEWS: Document the change.
20572
20573         strverscmp: add unit test
20574         * modules/strverscmp-tests: New file.
20575         * tests/test-strverscmp.c: Likewise.
20576
20577 2008-08-19  Simon Josefsson  <simon@josefsson.org>
20578
20579         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
20580         regarding Windows crypto stuff, from Mono.
20581
20582 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
20583
20584         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
20585         if present, for intel RND.  Return error on failures.
20586
20587 2008-08-18  Ben Pfaff  <blp@gnu.org>
20588
20589         gitlog-to-changelog: give better diagnostic for failed pipe-open
20590         * build-aux/gitlog-to-changelog: Improve error message: suggest
20591         that the version of Git may be too old.
20592
20593 2008-08-18  Simon Josefsson  <simon@josefsson.org>
20594
20595         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
20596         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
20597
20598 2008-08-18  Bruno Haible  <bruno@clisp.org>
20599
20600         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
20601         pthread_in_use().
20602
20603 2008-08-18  Bruno Haible  <bruno@clisp.org>
20604
20605         * lib/glthread/threadlib.c: Include <pthread.h>.
20606
20607 2008-08-18  Bruno Haible  <bruno@clisp.org>
20608
20609         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
20610         glthread_recursive_lock_* macros.
20611         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
20612         Fix syntax error.
20613
20614 2008-08-18  Bruno Haible  <bruno@clisp.org>
20615
20616         * lib/glthread/thread.c: Avoid forcing a context switch right after
20617         thread creation.
20618
20619 2008-08-17  Bruno Haible  <bruno@clisp.org>
20620
20621         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
20622         * lib/glthread/thread.h: Provide Win32 specific implementation.
20623         * modules/thread (Files): Add lib/glthread/thread.c.
20624         (Depends-on): Add lock.
20625         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
20626
20627 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20628
20629         New module 'yield'.
20630         * modules/yield: New file.
20631         * lib/glthread/yield.h: New file.
20632         * m4/yield.m4: New file.
20633         * MODULES.html.sh (Multithreading): Add yield.
20634
20635 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20636
20637         New module 'thread'.
20638         * modules/thread: New file.
20639         * lib/glthread/thread.h: New file.
20640         * m4/thread.m4: New file.
20641         * MODULES.html.sh (Multithreading): Add thread.
20642
20643 2008-08-17  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/glthread/lock.h: Include <stdlib.h> always.
20646         * lib/glthread/tls.h: Likewise.
20647         * lib/glthread/cond.h: Likewise.
20648
20649 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20650
20651         New module 'cond'.
20652         * modules/cond: New file.
20653         * lib/glthread/cond.h: New file.
20654         * lib/glthread/cond.c: New file.
20655         * m4/cond.m4: New file.
20656         * MODULES.html.sh (Multithreading): Add cond.
20657
20658 2008-08-16  Eric Blake  <ebb9@byu.net>
20659
20660         c-stack: fix regression on Irix 5.3 from 2008-06-21
20661         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
20662         sa_sigaction...
20663         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
20664         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
20665         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
20666         * modules/signal (Makefile.am): Use the value.
20667         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
20668         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
20669         * doc/posix-headers/signal.texi (signal.h): Document this
20670         portability issue.
20671         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
20672         Reported by Tom G. Christensen.
20673
20674 2008-08-17  Bruno Haible  <bruno@clisp.org>
20675
20676         New module 'threadlib'.
20677         * modules/threadlib: New file.
20678         * lib/glthread/threadlib.c: New file, extracted from
20679         lib/glthread/lock.c.
20680         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
20681         functions.
20682         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
20683         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
20684         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
20685         macros.
20686         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
20687         (gl_DISABLE_THREADS): Remove macro.
20688         * modules/lock (Files): Remove build-aux/config.rpath.
20689         (Depends-on): Remove havelib. Add threadlib.
20690         (configure.ac-early): Remove section.
20691         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
20692         * modules/tls (Depends-on): Remove lock. Add threadlib.
20693         (Link): New section, copied from threadlib.
20694         * MODULES.html.sh (Multithreading): Add threadlib.
20695
20696 2008-08-14  Bruno Haible  <bruno@clisp.org>
20697
20698         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
20699         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
20700         glthread_rwlock_unlock, glthread_rwlock_destroy,
20701         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
20702         glthread_recursive_lock_destroy): Define as macros always.
20703         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
20704         glthread_lock_lock.
20705         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
20706         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
20707         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
20708         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
20709         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
20710         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
20711         (glthread_recursive_lock_lock_func): Renamed from
20712         glthread_recursive_lock_lock.
20713         (glthread_recursive_lock_unlock_func): Renamed from
20714         glthread_recursive_lock_unlock.
20715         (glthread_recursive_lock_destroy_func): Renamed from
20716         glthread_recursive_lock_destroy.
20717
20718 2008-08-14  Bruno Haible  <bruno@clisp.org>
20719
20720         * lib/glthread/lock.h: Renamed from lib/lock.h.
20721         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
20722         * lib/glthread/tls.h: Renamed from lib/tls.h.
20723         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
20724         * lib/fstrcmp.c: Update includes.
20725         * lib/strsignal.c: Update includes.
20726         * modules/lock (Files, Makefile.am): Update.
20727         (Include): Change to "glthread/lock.h".
20728         * modules/tls (Files, Makefile.am): Update.
20729         (Include): Change to "glthread/tls.h".
20730         * tests/test-lock.c: Update includes.
20731         * tests/test-tls.c: Update includes.
20732         * NEWS: Mention the renamed header files.
20733
20734 2008-08-11  Jim Meyering  <meyering@redhat.com>
20735
20736         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
20737
20738 2008-08-11  Eric Blake  <ebb9@byu.net>
20739
20740         test-c-stack: avoid C99-ism
20741         * tests/test-c-stack.c (main): Fix whitespace, move declaration
20742         before statement.
20743         Reported by Alain Guibert.
20744
20745 2008-08-10  Jim Meyering  <meyering@redhat.com>
20746
20747         ensure that return value of uinttostr et al are not ignored
20748         * lib/inttostr.h (__GNUC_PREREQ): Define.
20749         (__attribute_warn_unused_result__): Define.
20750         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
20751
20752 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
20753
20754         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
20755         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
20756
20757 2008-08-07  Jim Meyering  <meyering@redhat.com>
20758
20759         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
20760
20761         * modules/mkstemp (License): Relicense under LGPLv2+.
20762         * modules/tempname (License): Likewise.
20763
20764 2008-08-06  Bruno Haible  <bruno@clisp.org>
20765
20766         * lib/poll.c (poll): Further micro-optimization.
20767
20768 2008-08-06  Jim Meyering  <meyering@redhat.com>
20769
20770         inet_pton.c: use locale-independent tolower
20771         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
20772         (inet_pton6): Use c_tolower rather than tolower.
20773         * modules/inet_pton (Depends-on): Add c-ctype.
20774
20775 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
20776
20777         * lib/poll.c (poll): Avoid division when timeout is 0, cache
20778         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
20779
20780 2008-08-06  Jim Meyering  <meyering@redhat.com>
20781
20782         * modules/inet_pton (License): Relicense under LGPLv2+.
20783
20784 2008-08-03  Bruno Haible  <bruno@clisp.org>
20785
20786         Additional non-aborting API for lock and tls.
20787         * lib/lock.h: Include <errno.h>.
20788         (glthread_lock_init): New macro/function.
20789         (gl_lock_init): Define as wrapper around glthread_lock_init.
20790         (glthread_lock_lock): New macro/function.
20791         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
20792         (glthread_lock_unlock): New macro/function.
20793         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
20794         (glthread_lock_destroy): New macro/function.
20795         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
20796         (glthread_rwlock_init): New macro/function.
20797         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
20798         (glthread_rwlock_rdlock): New macro/function.
20799         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
20800         (glthread_rwlock_wrlock): New macro/function.
20801         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
20802         (glthread_rwlock_unlock): New macro/function.
20803         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
20804         (glthread_rwlock_destroy): New macro/function.
20805         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
20806         (glthread_recursive_lock_init): New macro/function.
20807         (gl_recursive_lock_init): Define as wrapper around
20808         glthread_recursive_lock_init.
20809         (glthread_recursive_lock_lock): New macro/function.
20810         (gl_recursive_lock_lock): Define as wrapper around
20811         glthread_recursive_lock_lock.
20812         (glthread_recursive_lock_unlock): New macro/function.
20813         (gl_recursive_lock_unlock): Define as wrapper around
20814         glthread_recursive_lock_unlock.
20815         (glthread_recursive_lock_destroy): New macro/function.
20816         (gl_recursive_lock_destroy): Define as wrapper around
20817         glthread_recursive_lock_destroy.
20818         (glthread_once): New macro/function.
20819         (gl_once): Define as wrapper around glthread_once.
20820         Update function declarations.
20821         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
20822         glthread_rwlock_init. Return error code.
20823         (glthread_rwlock_rdlock_multithreaded): Renamed from
20824         glthread_rwlock_rdlock. Return error code.
20825         (glthread_rwlock_wrlock_multithreaded): Renamed from
20826         glthread_rwlock_wrlock. Return error code.
20827         (glthread_rwlock_unlock_multithreaded): Renamed from
20828         glthread_rwlock_unlock. Return error code.
20829         (glthread_rwlock_destroy_multithreaded): Renamed from
20830         glthread_rwlock_destroy. Return error code.
20831         (glthread_recursive_lock_init_multithreaded): Renamed from
20832         glthread_recursive_lock_init. Return error code.
20833         (glthread_recursive_lock_lock_multithreaded): Renamed from
20834         glthread_recursive_lock_lock. Return error code.
20835         (glthread_recursive_lock_unlock_multithreaded): Renamed from
20836         glthread_recursive_lock_unlock. Return error code.
20837         (glthread_recursive_lock_destroy_multithreaded): Renamed from
20838         glthread_recursive_lock_destroy. Return error code.
20839         (glthread_once_call): Make static.
20840         (glthread_once_multithreaded): Renamed from glthread_once.
20841         * lib/tls.h: Include <errno.h>.
20842         (glthread_tls_key_init): New macro/function.
20843         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
20844         (glthread_tls_set): New macro/function.
20845         (gl_tls_set): Define as wrapper around glthread_tls_set.
20846         (glthread_tls_key_destroy): New macro/function.
20847         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
20848         Update function declarations.
20849         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
20850         glthread_tls_get.
20851         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20852
20853 2008-08-04  Eric Blake  <ebb9@byu.net>
20854
20855         gnumakefile: use space, not TAB, outside of targets
20856         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
20857
20858 2008-08-02  Jim Meyering  <meyering@redhat.com>
20859
20860         getdate.y: avoid locale-dependent date parsing failure
20861         In Turkish locales, getdate would fail to recognize keywords
20862         containing a lowercase "i".  The solution is not to rely on
20863         locale-sensitive case-conversion.
20864         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
20865         (lookup_word): Use c_toupper in place of toupper.
20866         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
20867         Reported by Vefa Bicakci <bicave@superonline.com> in
20868         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
20869         * modules/getdate (Depends-on): Add c-ctype.
20870
20871 2008-08-02  Bruno Haible  <bruno@clisp.org>
20872
20873         * gnulib-tool (func_import): When updating or creating a .gitignore
20874         file, prepend each added line with a slash, and ignore leading slashes
20875         from the existing lines.
20876         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
20877
20878 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20879
20880         Portability fix for GNU make 3.79.1.
20881         * top/GNUmakefile: Avoid 'else COND', which older GNU make
20882         versions do not understand.
20883
20884 2008-08-01  Bruno Haible  <bruno@clisp.org>
20885
20886         Work around bug of HP-UX 10.20 cc with -0.0 literal.
20887         * tests/test-isnanf.h (zero): New variable.
20888         (main): Avoid literal -0.0f.
20889         * tests/test-isnand.h (zero): New variable.
20890         (main): Avoid literal -0.0.
20891         * tests/test-isnanl.h (zero): New variable.
20892         (main): Avoid literal -0.0L.
20893         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
20894         (test_float, test_double, test_long_double): Avoid literals -0.0f,
20895         -0.0, -0.0L.
20896         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
20897         (test_signbitd): Avoid literal -0.0.
20898         (test_signbitl): Avoid literal -0.0L.
20899         * tests/test-ceilf1.c (zero): New variable.
20900         (main): Avoid literal -0.0f.
20901         * tests/test-ceill.c (zero): New variable.
20902         (main): Avoid literal -0.0L.
20903         * tests/test-floorf1.c (zero): New variable.
20904         (main): Avoid literal -0.0f.
20905         * tests/test-floorl.c (zero): New variable.
20906         (main): Avoid literal -0.0L.
20907         * tests/test-roundf1.c (zero): New variable.
20908         (main): Avoid literal -0.0f.
20909         * tests/test-round1.c (zero): New variable.
20910         (main): Avoid literal -0.0.
20911         * tests/test-roundl.c (zero): New variable.
20912         (main): Avoid literal -0.0L.
20913         * tests/test-truncf1.c (zero): New variable.
20914         (main): Avoid literal -0.0f.
20915         * tests/test-trunc1.c (zero): New variable.
20916         (main): Avoid literal -0.0.
20917         * tests/test-truncl.c (zero): New variable.
20918         (main): Avoid literal -0.0L.
20919         * tests/test-frexp.c (zero): New variable.
20920         (main): Avoid literal -0.0.
20921         * tests/test-frexpl.c (zero): New variable.
20922         (main): Avoid literal -0.0L.
20923         * tests/test-ldexpl.c (zero): New variable.
20924         (main): Avoid literal -0.0L.
20925         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
20926         (zerod, zerol): New variables.
20927         (test_function): Avoid literals -0.0, -0.0L.
20928         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
20929         (zerod, zerol): New variables.
20930         (test_function): Avoid literals -0.0, -0.0L.
20931         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
20932         (zerod, zerol): New variables.
20933         (test_function): Avoid literals -0.0, -0.0L.
20934         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
20935         (zerod, zerol): New variables.
20936         (test_function): Avoid literals -0.0, -0.0L.
20937         * tests/test-strtod.c (zero): New variable.
20938         (main): Avoid literal -0.0.
20939         Reported by Jonathan C. Patschke <jp@centtech.com>.
20940
20941 2008-07-31  Jim Meyering  <meyering@redhat.com>
20942
20943         sha256.h: correct definition of SHA224_DIGEST_SIZE
20944         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
20945         Reported by Paulie Pena IV <paulie4@gmail.com>.
20946         Define as 224 / 8, rather than as a literal.
20947         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
20948         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
20949         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
20950
20951 2008-07-31  Bruno Haible  <bruno@clisp.org>
20952
20953         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
20954         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
20955         Reported by Jonathan Patschke <jp@centtech.com>.
20956
20957 2008-07-31  Bruno Haible  <bruno@clisp.org>
20958
20959         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
20960         Reported by Paolo Bonzini <bonzini@gnu.org>.
20961
20962 2008-07-30  Eric Blake  <ebb9@byu.net>
20963
20964         test-strtod: allow compilation without -lm
20965         * tests/test-strtod.c (main): Avoid link dependence on fabs.
20966         Reported by Dennis Clarke <blastwave@gmail.com>.
20967
20968 2008-07-28  Jim Meyering  <meyering@redhat.com>
20969
20970         bootstrap: work also when there are no .po files in po/
20971         * build-aux/bootstrap (update_po_files): Complete the change
20972         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
20973
20974 2008-07-27  Jim Meyering  <meyering@redhat.com>
20975
20976         * users.txt: Add zile.
20977
20978 2008-07-26  Ben Pfaff  <blp@gnu.org>
20979
20980         Add missing dependencies on new m4/exponent[fdl].m4 files.
20981         * modules/isnanf-nolibm: Add m4/exponentf.m4.
20982         * modules/isnand-nolibm: Add m4/exponentd.m4.
20983         * modules/isnanl-nolibm: Add m4/exponentl.m4.
20984         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
20985         m4/isnan[fdl].m4, because the macros actually used moved.
20986         Reported by Jim Meyering.
20987
20988 2008-07-14  Ben Pfaff  <blp@gnu.org>
20989
20990         Add isinf module.
20991         * lib/isinf.c: New file.
20992         * lib/math.in.h: Define isinf macro if we have decided to replace
20993         it.
20994         * m4/isinf.m4: New file.
20995         * m4/math_h.m4: Initialize and substitute variables for isinf
20996         module.
20997         * modules/isinf: New file.
20998         * modules/isinf-tests: New file.
20999         * modules/math: Add substitutions for new module.
21000         * tests/test-isinf.c: New file.
21001         * doc/posix-functions/isinf.texi: Mention new module.
21002         * MODULES.html.sh: Mention new module.
21003
21004 2008-07-14  Ben Pfaff  <blp@gnu.org>
21005
21006         Factor out some macros for use by additional modules.
21007         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21008         exponentf.m4.
21009         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21010         exponentd.m4.
21011         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21012         file exponentl.m4.
21013         * m4/exponentf.m4: New file.
21014         * m4/exponentd.m4: New file.
21015         * m4/exponentl.m4: New file.
21016         * modules/isnanf: Use new file m4/exponentf.m4.
21017         * modules/isnand: Use new file m4/exponentd.m4.
21018         * modules/isnanl: Use new file m4/exponentl.m4.
21019
21020 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21021
21022         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21023         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21024         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21025         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21026
21027         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21028         readlink on platforms without PATH_MAX.
21029
21030 2008-07-21  Eric Blake  <ebb9@byu.net>
21031
21032         Warn, not fail, on stale version.
21033         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21034
21035         Don't allow installation with stale devel version number.
21036         * top/GNUmakefile (_is-install-target): New macro.
21037         (_curr-ver): Forbid installation with stale version number.
21038
21039 2008-07-20  Bruno Haible  <bruno@clisp.org>
21040
21041         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21042         TESTS_ENVIRONMENT.
21043         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21044
21045 2008-07-20  Bruno Haible  <bruno@clisp.org>
21046
21047         * lib/c-stack.h (c_stack_action): Add documentation.
21048         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21049
21050 2008-07-20  Bruno Haible  <bruno@clisp.org>
21051
21052         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21053         * modules/readlink (License): Likewise.
21054
21055 2008-07-17  Eric Blake  <ebb9@byu.net>
21056
21057         * modules/c-stack (Link): Fix typo.
21058
21059         Make c-stack use libsigsegv, when available.
21060         * modules/c-stack (Depends-on): Add libsigsegv.
21061         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21062         needed.
21063         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21064         (segv_handler, overflow_handler, c_stack_action)
21065         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21066         implementation when libsigsegv is available, but only when using
21067         the library is necessary.
21068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21069         comment, explaining why XSI check fails on Linux.
21070         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21071         * tests/test-c-stack2.sh: Tweak skip message.
21072         * NEWS: Document new link-time requirements.
21073
21074 2008-07-16  Eric Blake  <ebb9@byu.net>
21075
21076         c-stack: Expose false positives when not using libsigsegv.
21077         * modules/c-stack-tests (Files): Expand test.
21078         * tests/test-c-stack.c (main): Add means to conditionally trigger
21079         non-overflow SIGSEGV.
21080         * tests/test-c-stack2.sh: New file.
21081
21082 2008-07-14  Bruno Haible  <bruno@clisp.org>
21083
21084         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21085         Reported by Eric Blake.
21086
21087 2008-07-14  Sam Steingold  <sds@gnu.org>
21088             Bruno Haible  <bruno@clisp.org>
21089
21090         New module libsigsegv.
21091         * modules/libsigsegv: New file.
21092         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21093         modifications.
21094         * MODULES.html.sh (Signal handling): New section.
21095
21096 2008-07-14  Bruno Haible  <bruno@clisp.org>
21097
21098         * modules/unictype/ctype-* (Description): Add the word "function".
21099         Improves the resulting doc in MODULES.html.
21100
21101 2008-07-12  Ben Pfaff  <blp@gnu.org>
21102
21103         Add longlong module.
21104         * modules/longlong: New file.
21105
21106 2008-07-12  Bruno Haible  <bruno@clisp.org>
21107
21108         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21109         to empty.
21110
21111 2008-07-10  Ben Pfaff  <blp@gnu.org>
21112
21113         Add isnan module.
21114         * doc/posix-functions/isnan.texi: Mention new module.
21115         * lib/math.in.h: Define isnan macro if we have decided to replace
21116         it.
21117         * m4/isnan.m4: New file.
21118         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21119         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21120         also.
21121         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21122         redundancy.
21123         * m4/math_h.m4: Initialize and substitute variables for isnan
21124         module.
21125         * modules/isnan: New file.
21126         * modules/isnan-tests: New file.
21127         * modules/math: Add substitutions for new module.
21128         * tests/test-isnan.c: New file.
21129         * MODULES.html.sh: Mention new module.
21130
21131 2008-07-10  Ben Pfaff  <blp@gnu.org>
21132
21133         Add isnanf module.
21134         * lib/isnanf.m4: New file.
21135         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21136         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21137         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21138         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21139         * modules/isnanf: New file.
21140         * modules/isnanf-tests: New file.
21141         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21142         files.
21143         * tests/test-isnanf-nolibm.c: factored most of its contents into
21144         new file tests/test-isnanf.h.
21145         * tests/test-isnanf.h: New file.
21146         * tests/test-isnanf.c: New file.
21147         * MODULES.html.sh: Mention new module.
21148         * doc/glibc-functions/isnanf.texi: Mention new module.
21149
21150 2008-07-10  Ben Pfaff  <blp@gnu.org>
21151
21152         Add isnand module.
21153         * lib/isnand.h: New file.
21154         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21155         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21156         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21157         functionality also.
21158         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21159         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21160         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21161         * modules/isnand: New file.
21162         * modules/isnand-tests: New file.
21163         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21164         files.
21165         * tests/test-isnand-nolibm.c: factored most of its contents into
21166         new file tests/test-isnand.h.
21167         * tests/test-isnand.h: New file.
21168         * tests/test-isnand.c: New file.
21169         * MODULES.html.sh: Mention new module.
21170
21171 2008-07-10  Ben Pfaff  <blp@gnu.org>
21172
21173         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21174         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21175         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21176         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21177         * modules/isnanf-nolibm: Update references to renamed files.
21178         * modules/isnand-nolibm: Likewise.
21179         * modules/isnanf-nolibm-tests: Likewise.
21180         * modules/isnand-nolibm-tests: Likewise.
21181         * lib/frexp.c: Likewise.
21182         * lib/isfinite.c: Likewise.
21183         * lib/signbitd.c: Likewise.
21184         * lib/signbitf.c: Likewise.
21185         * lib/vasnprintf.c: Likewise.
21186         * tests/test-ceilf1.c: Likewise.
21187         * tests/test-ceilf2.c: Likewise.
21188         * tests/test-floorf1.c: Likewise.
21189         * tests/test-floorf2.c: Likewise.
21190         * tests/test-frexp.c: Likewise.
21191         * tests/test-round1.c: Likewise.
21192         * tests/test-round2.c: Likewise.
21193         * tests/test-roundf1.c: Likewise.
21194         * tests/test-strtod.c: Likewise.
21195         * tests/test-trunc1.c: Likewise.
21196         * tests/test-trunc2.c: Likewise.
21197         * tests/test-truncf1.c: Likewise.
21198         * tests/test-truncf2.c: Likewise.
21199         * NEWS: Mention the renamed header files.
21200
21201 2008-07-11  Jim Meyering  <meyering@redhat.com>
21202
21203         vc-list-files: make the last-resort awk code more portable
21204         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21205         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21206         does not support it.
21207
21208 2008-07-10  Eric Blake  <ebb9@byu.net>
21209
21210         Work with tar's bootstrap.
21211         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21212         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21213         an m4 comment.
21214
21215 2008-07-09  Jim Meyering  <meyering@redhat.com>
21216
21217         posix-shell.m4: fix typo that made this test malfunction
21218         * m4/posix-shell.m4: Remove capitalization in variable name.
21219
21220 2008-07-08  Bruno Haible  <bruno@clisp.org>
21221
21222         * m4/onceonly.m4: Update comments.
21223         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21224
21225 2008-07-04  Jim Meyering  <meyering@redhat.com>
21226
21227         * users.txt: Add vc-dwim.
21228         (bison, coreutils): Use the gitweb URL.
21229
21230 2008-07-03  Jim Meyering  <meyering@redhat.com>
21231
21232         * users.txt: Add libffcall.  From Sam Steingold.
21233
21234 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
21235
21236         getdate.y: do not ignore TZ with relative day, month or year offset
21237         * lib/getdate.y (get_date): Move the tz-handling block to follow the
21238         relative-date-handling, since otherwise, the latter would clobber the
21239         sole output (an updated Start value) of the tz-handling block.
21240         * tests/test-getdate.c: Tests for the fix
21241
21242 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21243
21244         Recognize 'foo_LIBRARIES += libgnu.a'.
21245         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21246         makefile snippet has already specified an installation location,
21247         also using '+='.
21248
21249 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
21250
21251         getdate.y: factor out common actions
21252         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21253         Use them in place of open-coded actions.
21254
21255 2008-07-01  Simon Josefsson  <simon@josefsson.org>
21256
21257         Add self-test for getdate module.
21258         * modules/getdate-tests: New file.
21259         * tests/test-getdate.c: New file.
21260
21261 2008-06-29  Bruno Haible  <bruno@clisp.org>
21262
21263         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21264         .gitignore.
21265         Reported by Sylvain Beucler <beuc@beuc.net>.
21266
21267 2008-06-29  Bruno Haible  <bruno@clisp.org>
21268
21269         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21270         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21271
21272 2008-06-29  Bruno Haible  <bruno@clisp.org>
21273
21274         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21275         EXTRA_DIST.
21276         Reported by Sylvain Beucler <beuc@beuc.net>.
21277
21278 2008-06-26  Jim Meyering  <meyering@redhat.com>
21279
21280         make several modules depend on the "open" module
21281         This provides slightly increased consistency when opening-for-write
21282         the name of a non-directory spelled with a trailing slash.
21283         * modules/chdir-safer: Likewise.
21284         * modules/chown: Likewise.
21285         * modules/clean-temp: Likewise.
21286         * modules/copy-file: Likewise.
21287         * modules/fchdir: Likewise.
21288         * modules/fcntl-safer: Likewise.
21289         * modules/pipe: Likewise.
21290         * modules/utime: Likewise.
21291         Prompted by Eric Blake and Bruno Haible.
21292
21293 2008-06-24  Andreas Schwab  <schwab@suse.de>
21294
21295         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21296         literals can be used as initializers for global variables.
21297
21298 2008-06-23  Eric Blake  <ebb9@byu.net>
21299
21300         Make gnulib-cache.m4 easier to diff.
21301         * gnulib-tool (func_import): Allow newlines when reading cached
21302         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21303
21304 2008-06-23  Bruno Haible  <bruno@clisp.org>
21305
21306         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21307         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21308         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21309         m4/signalblocking.m4.
21310         (gl_PREREQ_SIGACTION): Don't invoke it.
21311         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21312         gl_PREREQ_SIG_HANDLER_H.
21313         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21314         Don't check for sigaction here.
21315
21316 2008-06-23  Bruno Haible  <bruno@clisp.org>
21317
21318         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21319         (install_handlers): Don't set the SA_RESETHAND flag.
21320
21321 2008-06-23  Bruno Haible  <bruno@clisp.org>
21322
21323         * m4/sigaction.m4: Comment fixes.
21324         * lib/signal.in.h: Likewise.
21325
21326 2008-06-23  Eric Blake  <ebb9@byu.net>
21327
21328         Fix typo.
21329         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21330
21331         Avoid SA_ namespace.
21332         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21333         Reported by Ralf Wildenhues.
21334
21335         Avoid test failure due to SA_RESTORER.
21336         * tests/test-sigaction.c (SA_MASK): New macro.
21337         (main): Avoid failing due to extension flags being set.
21338         Reported by Jim Meyering.
21339
21340         Revert use of sig-handler.h in sigprocmask.c.
21341         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21342         it requires the existence of struct sigaction.
21343         * lib/sigprocmask.c (handler_t): Restore typedef.
21344         (rpl_signal, old_handlers): Use local type.
21345
21346 2008-06-22  Bruno Haible  <bruno@clisp.org>
21347
21348         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21349         conditionally.
21350         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21351
21352 2008-06-22  Bruno Haible  <bruno@clisp.org>
21353
21354         * doc/posix-functions/siginterrupt.texi: Move note.
21355
21356         * lib/signal.in.h (SA_RESTART): New macro.
21357         * lib/sigaction.c: Update comment.
21358
21359         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21360
21361         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21362         (gl_PREREQ_SIGPROCMASK): Invoke it.
21363         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21364
21365         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21366
21367         * lib/sigprocmask.c: Update a comment.
21368
21369 2008-06-21  Eric Blake  <ebb9@byu.net>
21370
21371         Use sigaction module rather than signal().
21372         * modules/c-stack (Depends-on): Add sigaction.
21373         * modules/fatal-signal (Depends-on): Likewise.
21374         * modules/nanosleep (Depends-on): Likewise.
21375         * modules/sigprocmask (Files): Add sig-handler.h.
21376         * modules/sigaction (Files): Likewise.
21377         * lib/sig-handler.h (get_handler): New file, suggested by Paul
21378         Eggert.
21379         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21380         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21381         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21382         (init_fatal_signals): Likewise.
21383         * lib/nanosleep.c (rpl_nanosleep): Likewise.
21384         (siginterrupt): Delete fallback.
21385         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21386         instead.
21387         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21388         siginterrupt.
21389
21390         New module sigaction, for mingw.
21391         * modules/sigaction: New module...
21392         * modules/sigaction-tests: ...and its test.
21393         * m4/sigaction.m4: New file.
21394         * lib/sigaction.c: Likewise.
21395         * tests/test-sigaction.c: Likewise.
21396         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21397         * modules/signal (Makefile.am): Likewise.
21398         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21399         needed.
21400         * doc/posix-headers/signal.texi (signal.h): Mention provided
21401         types.
21402         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21403         that sigaction is preferable.
21404         * doc/posix-functions/sigaction.texi (sigaction): Mention new
21405         module.
21406         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21407         sigaction.
21408
21409         Improve robustness of sigprocmask by overriding signal.
21410         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21411         is in use.
21412         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21413         (SIGKILL, SIGSTOP): Provide fallbacks.
21414         (rpl_signal): Implement.
21415         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21416         signal can be called inside handlers.
21417
21418         Fix nanosleep module on mingw.
21419         * modules/nanosleep (Depends-on): Add sys_select.
21420         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21421
21422         Fix licensing of sigprocmask.
21423         * modules/raise (License): Relicense as LGPL.
21424
21425 2008-06-21  Bruno Haible  <bruno@clisp.org>
21426
21427         * lib/propername.c (proper_name_utf8): Don't use the transliterated
21428         result if it contains question marks.
21429         Reported by Michael Geng <linux@michaelgeng.de>.
21430
21431 2008-06-19  Bruno Haible  <bruno@clisp.org>
21432
21433         Fix CVS-ism.
21434         * doc/gnulib.texi: Include updated-stamp.texi.
21435         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21436         (updated-stamp.texi): New rule.
21437         (gnulib.info): Depend on it.
21438         * doc/.gitignore: Add updated-stamp.texi.
21439         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21440
21441 2008-06-19  Bruno Haible  <bruno@clisp.org>
21442
21443         * doc/Makefile (gnulib.info): Update and simplify dependencies.
21444         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21445
21446 2008-06-19  Eric Blake  <ebb9@byu.net>
21447
21448         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21449         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21450         Reported by Stepan Kasal.
21451
21452 2008-06-18  Bruno Haible  <bruno@clisp.org>
21453
21454         * lib/fatal-signal.c (init_fatal_signals): Add comment.
21455         Reported by Eric Blake.
21456
21457 2008-06-18  Eric Blake  <ebb9@byu.net>
21458
21459         Work around cygwin 1.5.25 strsignal bug.
21460         * tests/test-strsignal.c: Allow for const char *.
21461         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21462
21463 2008-06-18  Simon Josefsson  <simon@josefsson.org>
21464
21465         * users.txt: Update URL to article and add author/date
21466         information.
21467
21468 2008-06-17  Bruno Haible  <bruno@clisp.org>
21469
21470         New macro gl_DISABLE_THREADS.
21471         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21472         if the user did not pass --enable-threads or --disable-threads option.
21473         (gl_DISABLE_THREADS): New macro.
21474         Reported by Eric Blake <ebb9@byu.net>.
21475
21476 2008-06-17  Bruno Haible  <bruno@clisp.org>
21477
21478         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21479         when the macro ignores it.
21480         Based on a patch by Eric Blake <ebb9@byu.net>.
21481
21482 2008-06-17  Bruno Haible  <bruno@clisp.org>
21483
21484         * modules/tls (License): Change to LGPLv2+.
21485         Reported by Eric Blake.
21486
21487 2008-06-17  Eric Blake  <ebb9@byu.net>
21488
21489         Simplify c-stack prerequisites.
21490         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21492         no longer requires <ucontext.h> to exist.  Optimize setrlimit
21493         check.
21494         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21495         <sys/resource.h>.
21496
21497         Move c-stack test into testsuite.
21498         * modules/c-stack-tests: New file.
21499         * lib/c-stack.c [DEBUG]: Move test program...
21500         * tests/test-c-stack.c: ...into this new file.  Skip rather than
21501         fail test if sigaltstack is lacking.
21502         * tests/test-c-stack.sh: New driver file.
21503
21504 2008-06-16  Eric Blake  <ebb9@byu.net>
21505
21506         Use raise module consistently.
21507         * modules/fatal-signal (Depends-on): Add raise.
21508         * modules/sigprocmask (Depends-on): Likewise.
21509         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21510         * lib/sigprocmask.c (sigprocmask): Likewise.
21511         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21512         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21513
21514         Fix compliance bug in sigpending.
21515         * lib/sigprocmask.c (sigpending): Return pending array via
21516         parameter, not return value.
21517
21518 2008-06-14  Eric Blake  <ebb9@byu.net>
21519
21520         Improve obstack-printf test code.
21521         * tests/test-obstack-printf.c (test_function): Fix comment, and
21522         simplify usage of obstack_* in macros.  Add a test for coverage.
21523         Reported by Bruno Haible.
21524
21525 2008-06-14  Bruno Haible  <bruno@clisp.org>
21526
21527         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
21528         array size as a constant, not as a const variable.
21529         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
21530         AC_USE_SYSTEM_EXTENSIONS.
21531         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21532         Test whether the obstack_printf function actually exists.
21533         * modules/obstack-printf (Depends-on): Add extensions.
21534         (Include): Remove obstack.h.
21535         * modules/obstack-printf-posix (Depends-on): Add extensions.
21536         (Include): Remove obstack.h.
21537
21538 2008-06-13  Eric Blake  <ebb9@byu.net>
21539
21540         Add obstack-printf and obstack-printf-posix modules.
21541         * modules/obstack-printf: New file.
21542         * modules/obstack-printf-posix: Likewise.
21543         * MODULES.html.sh (Misc): Mention them.
21544         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
21545         Likewise.
21546         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
21547         Likewise.
21548         * modules/stdio (Makefile.am): Accomodate new modules.
21549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21550         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
21551         Declare.
21552         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
21553         functions.
21554         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
21555         (gl_REPLACE_OBSTACK_PRINTF): New macros
21556         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
21557         * tests/test-obstack-printf.c: New file.
21558         * modules/obstack-printf-tests: Likewise.
21559         * modules/obstack-printf-posix-tests: Likewise.
21560
21561 2008-06-11  Bruno Haible  <bruno@clisp.org>
21562
21563         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
21564         * lib/open.c: Include errno.h.
21565         (open): Fail when attempting to write to a file that has a trailing
21566         slash.
21567         * tests/test-open.c (main): Test against trailing slash bug.
21568         * doc/posix-functions/open.texi: Mention the trailing slash bug.
21569
21570 2008-06-10  Bruno Haible  <bruno@clisp.org>
21571
21572         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
21573         for $? to work inside the trap command, with various /bin/sh-s.
21574         * tests/test-vc-list-files-cvs.sh: Likewise.
21575
21576 2008-06-10  Bruno Haible  <bruno@clisp.org>
21577
21578         * lib/acl-internal.h: Don't include gettext.h here.
21579         * lib/set-mode-acl.c: Include gettext.h here.
21580         * lib/copy-acl.c: Likewise.
21581
21582 2008-06-10  Bruno Haible  <bruno@clisp.org>
21583
21584         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
21585         * lib/wait-process.c (wait_subprocess): Likewise.
21586         * lib/execute.h (execute): Add termsigp argument.
21587         * lib/execute.c (execute): Likewise.
21588         * lib/csharpcomp.c (compile_csharp_using_pnet,
21589         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
21590         * lib/csharpexec.c (execute_csharp_using_pnet,
21591         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
21592         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
21593         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
21594         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
21595         is_jikes_present): Update.
21596         * lib/javaexec.c (execute_java_class): Update.
21597         * lib/javaversion.c (execute_and_read_line): Update.
21598         * NEWS: Document the changes.
21599         Reported by Eric Blake.
21600
21601 2008-06-10  Eric Blake  <ebb9@byu.net>
21602
21603         Add missing include.
21604         * tests/test-strstr.c (includes): Add <signal.h>.
21605         * tests/test-strcasestr.c (includes): Likewise.
21606         * tests/test-memmem.c (includes): Likewise.
21607
21608 2008-06-10  Bruno Haible  <bruno@clisp.org>
21609
21610         * lib/wait-process.c (wait_subprocess): Add an assertion.
21611
21612 2008-06-10  Bruno Haible  <bruno@clisp.org>
21613
21614         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
21615
21616 2008-06-10  Bruno Haible  <bruno@clisp.org>
21617
21618         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
21619         using alarm().
21620         * tests/test-strcasestr.c (main): Likewise.
21621         * tests/test-strstr.c (main): Likewise.
21622
21623 2008-06-09  Bruno Haible  <bruno@clisp.org>
21624
21625         Work around the Solaris 10 ACE ACLs ABI change.
21626         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
21627         declare if ACL_NO_TRIVIAL is present.
21628         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
21629         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
21630         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
21631         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
21632         define if ACL_NO_TRIVIAL is present.
21633         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
21634         and use the current ABI.
21635         (file_has_acl): Use same #if condition as elsewhere.
21636         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
21637         in use, and use the current ABI.
21638         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
21639         Reported by Jim Meyering.
21640
21641 2008-06-09  Eric Blake  <ebb9@byu.net>
21642
21643         Work around environments that (stupidly) ignore SIGALRM.
21644         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
21645         before using alarm().
21646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21648         Reported by Ian Beckwith <ianb@erislabs.net>.
21649
21650         Produce autobuild blurb earlier in log.
21651         * modules/autobuild (configure.ac-early): Move AB_INIT here.
21652
21653 2008-06-09  Jim Meyering  <meyering@redhat.com>
21654         and OndÅ™ej Vašík  <ovasik@redhat.com>
21655
21656         utimens.c: correct kernel bug work-around
21657         OndÅ™ej Vašík found that the invalid return value of 280 indicates
21658         failure, not success, and the kernel bug we're trying to work
21659         around affects not just the utimensat call, but also the fallback
21660         futimens call.
21661         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
21662         not success.
21663         [HAVE_FUTIMENS]: Use the same work-around, here.
21664
21665 2008-06-09  Jim Meyering  <meyering@redhat.com>
21666
21667         add more guards around definition of ACE_-related code
21668         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
21669         ALLOW and ACE_OWNER are also defined.
21670
21671 2008-06-08  Bruno Haible  <bruno@clisp.org>
21672
21673         * lib/acl-internal.h: Add me as co-author.
21674         * lib/file-has-acl.c: Likewise.
21675         * lib/set-mode-acl.c: Likewise.
21676         * lib/copy-acl.c: Likewise.
21677
21678 2008-06-08  Bruno Haible  <bruno@clisp.org>
21679
21680         Add support for AIX ACLs.
21681         * lib/acl-internal.h (acl_nontrivial): New declaration.
21682         * lib/file-has-acl.c (acl_nontrivial): New function.
21683         (file_has_acl): Add implementation using AIX 4 ACL API.
21684         * lib/set-mode-acl.c (qset_acl): Likewise.
21685         * lib/copy-acl.c (qcopy_acl): Likewise.
21686
21687 2008-06-08  Bruno Haible  <bruno@clisp.org>
21688
21689         Add support for HP-UX ACLs.
21690         * lib/acl-internal.h (acl_nontrivial): New declaration.
21691         * lib/file-has-acl.c (acl_nontrivial): New function.
21692         (file_has_acl): Add implementation using HP-UX 11 ACL API.
21693         * lib/set-mode-acl.c (qset_acl): Likewise.
21694         * lib/copy-acl.c (qcopy_acl): Likewise.
21695
21696 2008-06-08  Bruno Haible  <bruno@clisp.org>
21697
21698         Add support for Cygwin ACLs.
21699         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
21700         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
21701         the chmod_or_fchmod call.
21702         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
21703
21704 2008-06-08  Bruno Haible  <bruno@clisp.org>
21705
21706         Fix bug with setuid modes in Solaris 10+ code.
21707         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
21708         succeeded, when the mode contains some special bits.
21709
21710 2008-06-08  Bruno Haible  <bruno@clisp.org>
21711
21712         Add support for Solaris 7..10 ACLs.
21713         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
21714         declarations.
21715         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
21716         functions.
21717         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
21718         * lib/set-mode-acl.c (qset_acl): Likewise.
21719         * lib/copy-acl.c (qcopy_acl): Likewise.
21720
21721 2008-06-08  Bruno Haible  <bruno@clisp.org>
21722
21723         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
21724         declaration.
21725         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
21726         (acl_access_nontrivial): Remove MacOS X case.
21727         (file_has_acl): Use acl_extended_nontrivial.
21728         * lib/copy-acl.c (qcopy_acl): Likewise.
21729
21730 2008-06-08  Bruno Haible  <bruno@clisp.org>
21731
21732         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
21733
21734 2008-06-08  Jim Meyering  <meyering@redhat.com>
21735
21736         * modules/acl (Maintainer): Add Bruno Haible.
21737
21738 2008-06-07  Bruno Haible  <bruno@clisp.org>
21739
21740         Improve support for Tru64 ACLs.
21741         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
21742         ACL on OSF/1.
21743
21744 2008-06-07  Bruno Haible  <bruno@clisp.org>
21745
21746         Add support for MacOS X ACLs.
21747         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
21748         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
21749         * lib/set-mode-acl.c (qset_acl): Likewise.
21750         * lib/copy-acl.c (qcopy_acl): Likewise.
21751
21752 2008-06-07  Bruno Haible  <bruno@clisp.org>
21753
21754         Fix memory leak introduced on 2008-05-22.
21755         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
21756         use.
21757
21758 2008-06-07  Bruno Haible  <bruno@clisp.org>
21759
21760         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
21761         to construct an empty ACL.
21762
21763 2008-06-07  Bruno Haible  <bruno@clisp.org>
21764
21765         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
21766         precisely.
21767         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
21768
21769 2008-06-07  Bruno Haible  <bruno@clisp.org>
21770
21771         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
21772         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
21773
21774 2008-06-07  Bruno Haible  <bruno@clisp.org>
21775
21776         * doc/posix-functions/_setjmp.texi: Explain the use of this function
21777         regardless of POSIX.
21778         * doc/posix-functions/_longjmp.texi: Likewise.
21779         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
21780         SystemV platform in this case.
21781
21782 2008-06-06  Eric Blake  <ebb9@byu.net>
21783
21784         Document abort() bugs.
21785         * doc/posix-functions/abort.texi (abort): Mention anomalies.
21786
21787         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
21788         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
21789         sigsetjmp.
21790         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
21791         siglongjmp, but only as a macro.
21792         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
21793         is obsolete.
21794         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
21795
21796         Tweak documentation to cover cygwin argz bugs.
21797         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
21798         argz bug fix; no code change needed since no cygwin releases
21799         occurred between the last fix and the bug being tested.
21800         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
21801         module and recently fixed cygwin bugs.
21802         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
21803         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
21804         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
21805         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
21806         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
21807         Likewise.
21808         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
21809         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
21810         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
21811         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
21812         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
21813         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
21814         Likewise.
21815
21816         Avoid gcc warning on cygwin.
21817         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
21818         !ACL_NO_TRIVIAL]: Avoid unused variable.
21819
21820 2008-06-05  Eric Blake  <ebb9@byu.net>
21821
21822         Be tolerant of UNKNOWN version in gnulib-tool test dir.
21823         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
21824         git-version-gen fails to come up with a version.
21825         Reported by Simon Josefsson.
21826
21827 2008-06-05  Jim Meyering  <meyering@redhat.com>
21828             Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         utimens.c: work around a probable Linux kernel bug
21831         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
21832         appears to be a kernel bug that causes utimensat to return 280
21833         instead of 0, indicating success.
21834
21835 2008-06-04  Bruno Haible  <bruno@clisp.org>
21836
21837         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
21838         2008-06-01 commit.
21839
21840 2008-06-04  Bruno Haible  <bruno@clisp.org>
21841
21842         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
21843         * lib/file-has-acl.c (acl_access_nontrivial): New function.
21844         (file_has_acl): Use it. Save errno afterwards.
21845         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
21846
21847 2008-06-03  Bruno Haible  <bruno@clisp.org>
21848
21849         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
21850         draft code. Simplify #ifs.
21851         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
21852         Put Solaris code after POSIX-draft code. Fix comments regarding
21853         Solaris 10, HP-UX. Mention Cygwin.
21854         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
21855
21856 2008-06-03  Eric Blake  <ebb9@byu.net>
21857
21858         Provide fallback for older kernels.
21859         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
21860         Provide runtime fallback if kernel lacks support.
21861         Reported by Mike Frysinger.
21862
21863 2008-06-02  Bruno Haible  <bruno@clisp.org>
21864
21865         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
21866         it exists.
21867
21868 2008-06-02  Bruno Haible  <bruno@clisp.org>
21869
21870         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
21871         * lib/copy-acl.c (qcopy_acl): Update comment.
21872
21873 2008-06-02  Bruno Haible  <bruno@clisp.org>
21874
21875         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
21876         like ACL APIs.
21877
21878 2008-06-02  Bruno Haible  <bruno@clisp.org>
21879
21880         * tests/test-file-has-acl.sh: Use different code for Cygwin.
21881         * tests/test-set-mode-acl.sh: Likewise.
21882         * tests/test-copy-acl.sh: Likewise.
21883         * tests/test-copy-file.sh: Likewise.
21884
21885 2008-06-02  Bruno Haible  <bruno@clisp.org>
21886
21887         * tests/test-file-has-acl.sh: Remove unused code.
21888
21889 2008-06-01  Bruno Haible  <bruno@clisp.org>
21890
21891         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
21892         (copy_acl): Just a wrapper around qcopy_acl that emits the error
21893         messages.
21894         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
21895
21896 2008-06-01  Bruno Haible  <bruno@clisp.org>
21897
21898         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
21899         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
21900         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
21901         APIs.
21902         * modules/acl-tests (configure.ac): Remove tests now contained in
21903         m4/acl.m4.
21904
21905 2008-06-02  Jim Meyering  <meyering@redhat.com>
21906
21907         announce-gen: use a better key-server host name
21908         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
21909         it may be more consistently reliable.  Suggested by Werner Koch
21910         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
21911
21912 2008-06-01  Bruno Haible  <bruno@clisp.org>
21913
21914         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
21915         Reported by Voroskoi Andras <voroskoi@gmail.com>.
21916
21917 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
21918
21919         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
21920
21921 2008-06-01  Bruno Haible  <bruno@clisp.org>
21922
21923         New ACL tests.
21924         * tests/test-file-has-acl.sh: New file.
21925         * tests/test-file-has-acl.c: New file.
21926         * tests/test-set-mode-acl.sh: New file.
21927         * tests/test-set-mode-acl.c: New file.
21928         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
21929         * tests/test-copy-acl.c: New file.
21930         * modules/acl-tests: New file, based on modules/copy-file-tests.
21931         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
21932         (Depends-on): Add acl-tests.
21933         (configure.ac): Remove checks.
21934         (Makefile.am): Don't create test-sameacls program here any more.
21935
21936 2008-06-01  Bruno Haible  <bruno@clisp.org>
21937
21938         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
21939         * tests/test-sameacls.c: Include progname.h.
21940         (main): Invoke set_program_name. Portability fixes for MacOS X,
21941         Solaris, HP-UX.
21942
21943 2008-06-01  Bruno Haible  <bruno@clisp.org>
21944
21945         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
21946         function.
21947         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
21948
21949 2008-06-01  Bruno Haible  <bruno@clisp.org>
21950
21951         * modules/rpmatch (Depends-on): Add strdup.
21952
21953 2008-06-01  Bruno Haible  <bruno@clisp.org>
21954
21955         * lib/pipe.c: Include unistd-safer.h.
21956         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
21957         * modules/pipe (Depends-on): Add unistd-safer.
21958
21959 2008-05-30  Simon Josefsson  <simon@josefsson.org>
21960
21961         * modules/autobuild (configure.ac): Call AB_INIT.
21962
21963 2008-05-30  Simon Josefsson  <simon@josefsson.org>
21964
21965         * tests/test-getaddrinfo.c: Don't print debug messages by default.
21966         Suggested by Bruno Haible <bruno@clisp.org>.
21967
21968 2008-05-30  Simon Josefsson  <simon@josefsson.org>
21969
21970         * tests/test-base64.c: Cast size_t to unsigned long when invoking
21971         printf.  Use %lu instead of %d.  Reported by Bruno Haible
21972         <bruno@clisp.org>.
21973
21974 2008-05-29  Eric Blake  <ebb9@byu.net>
21975
21976         Prefer new POSIX 200x interfaces over futimesat.
21977         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
21978         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
21979         when available.
21980         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
21981
21982 2008-05-28  Bruno Haible  <bruno@clisp.org>
21983
21984         * modules/stpcpy (License): Change to LGPLv2+.
21985         Requested by David Lutterkort <dlutter@redhat.com>.
21986
21987 2008-05-27  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
21990         current mingw.
21991         Reported by Jose E. Marchesi <jemarch@gnu.org>.
21992
21993 2008-05-27  Bruno Haible  <bruno@clisp.org>
21994
21995         * modules/iconv_open (Link): New section, from module 'iconv'.
21996         * modules/striconv (Link): Likewise.
21997         * modules/striconveh (Link): Likewise.
21998         * modules/xstriconv (Link): Likewise.
21999         * modules/unicodeio (Link): Likewise.
22000         * modules/propername (Link): Likewise.
22001         Reported by Jim Meyering.
22002
22003 2008-05-26  Jim Meyering  <meyering@redhat.com>
22004
22005         sha256: do not artificially restrict buffer length to be < 2^32
22006         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22007         uint32_t to size_t.
22008         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22009         to match.
22010
22011         avoid unaligned access errors, e.g., on sparc
22012         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22013         direct access through a possibly-unaligned uint64* pointer.
22014         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22015         direct access through a possibly-unaligned uint32* pointer.
22016         Prompted by this patch from Tom "spot" Callaway:
22017         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22018
22019         sha512.c: fix typo in comment
22020         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22021
22022 2008-05-25  Bruno Haible  <bruno@clisp.org>
22023
22024         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22025         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22026         (Makefile.am): Update lib_SOURCES.
22027
22028 2008-05-25  Bruno Haible  <bruno@clisp.org>
22029
22030         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22031
22032 2008-05-25  Jim Meyering  <meyering@redhat.com>
22033
22034         useless-if-before-free: freed expr may have white-space differences
22035         * build-aux/useless-if-before-free: Recognize cases in which the
22036         freed expression differs from the tested one in embedded white
22037         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22038         $1 was used, so we can't make any regexp shy.  Improved tests now
22039         detect this.
22040
22041         useless-if-before-free: accept white space in the expression.
22042         * build-aux/useless-if-before-free: For now, any white space
22043         in the expression must be identical in the free argument.
22044
22045         useless-if-before-free: efficiency tweak
22046         * build-aux/useless-if-before-free: Make the expression-matching
22047         regexp "shy".
22048         Make the *outer* regexp shy, not the expr-matching one.
22049
22050         update code-in-comment to accept cast of free arg
22051         * build-aux/useless-if-before-free: Update regexp.
22052
22053 2008-05-25  Bruno Haible  <bruno@clisp.org>
22054
22055         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22056         * modules/copy-file-tests (Files, Makefile.am): Update.
22057         * tests/test-copy-file.c (func_test_copy): Update.
22058
22059 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22060
22061         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22062
22063 2008-05-23  Bruno Haible  <bruno@clisp.org>
22064
22065         Improve support for ACLs on OSF/1.
22066         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22067         Remove fallback for unknown flavors of ACLs.
22068
22069 2008-05-22  Bruno Haible  <bruno@clisp.org>
22070
22071         Add support for ACLs on OSF/1.
22072         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22073         replacements.
22074         (acl_free_text): New macro fallback.
22075         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22076         acl_free.
22077         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22078         acl_free_text function. Require AC_C_INLINE.
22079
22080 2008-05-22  Bruno Haible  <bruno@clisp.org>
22081
22082         Make copy_acl work on MacOS X 10.5.
22083         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22084         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22085         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22086         If MODE_INSIDE_ACL, don't assume that every system has the same text
22087         representation for ACLs as FreeBSD.
22088         * lib/copy-acl.c (copy_acl): Add support for platforms with
22089         !MODE_INSIDE_ACL.
22090         * lib/file-has-acl.c (file_has_acl): Likewise.
22091         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22092         FreeBSD, MacOS X, or IRIX, respectively.
22093
22094 2008-05-22  Bruno Haible  <bruno@clisp.org>
22095
22096         * lib/acl.h: Don't include <sys/acl.h>.
22097         (GETACLCNT): Move fallback to lib/acl-internal.h.
22098         * lib/acl-internal.h: Include <sys/acl.h> here.
22099         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22100
22101 2008-05-22  Bruno Haible  <bruno@clisp.org>
22102
22103         Split off copy_acl function to separate file.
22104         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22105         * lib/acl.c (copy_acl): Moved function to separate file.
22106         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22107         * modules/acl (Files): Add lib/copy-acl.c.
22108         (Makefiles.am): Augment lib_SOURCES.
22109
22110 2008-05-22  Bruno Haible  <bruno@clisp.org>
22111
22112         * modules/copy-file-tests: New file.
22113         * tests/test-copy-file.sh: New file.
22114         * tests/test-copy-file.c: New file.
22115         * tests/test-copy-file-sameacls.c: New file.
22116
22117 2008-05-22  Eric Blake  <ebb9@byu.net>
22118
22119         Avoid gcc warning.
22120         * tests/test-memcmp.c (main): Pass NULL indirectly.
22121
22122 2008-05-21  Bruno Haible  <bruno@clisp.org>
22123
22124         Add reference doc about ACLs.
22125         * doc/acl-resources.txt: New file.
22126         * doc/acl-cygwin.txt: New file.
22127
22128 2008-05-21  Bruno Haible  <bruno@clisp.org>
22129
22130         Avoid one more warning from gcc.
22131         * lib/vasnprintf.c (IF_LINT): Update comments.
22132         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22133
22134 2008-05-21  Jim Meyering  <meyering@redhat.com>
22135
22136         avoid a warning from gcc
22137         * lib/vasnprintf.c (IF_LINT): Define.
22138         (scale10_round_decimal_long_double):
22139         Use it to avoid a "may be used uninitialized" warning.
22140         (scale10_round_decimal_double): Likewise.
22141
22142 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22143
22144         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22145         declared.
22146
22147 2008-05-20  Bruno Haible  <bruno@clisp.org>
22148
22149         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22150         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22151
22152 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22153
22154         * modules/memcmp-tests: New file.
22155         * tests/test-memcmp.c: New file.
22156
22157 2008-05-19  Bruno Haible  <bruno@clisp.org>
22158
22159         * modules/propername (Notice, configure.ac): Put quoted "..." into
22160         --keyword option.
22161         * lib/propername.h: Update comments accordingly.
22162         Reported by Eric Blake.
22163
22164 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22165
22166         * modules/getpass-gnu (Depends-on): Add fseeko.
22167
22168 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22169
22170         * modules/base64-tests: New file.
22171
22172 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22173
22174         * lib/base64.c (base64_decode_ctx): If a decode context structure
22175         was passed in use it to ignore newlines.  If a context structure
22176         was _not_ passed in, continue to treat newlines as garbage (this
22177         is the historical behavior).  Formerly base64_decode.
22178         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22179         takes a decode context structure.
22180         * lib/base64.h (base64_decode): Macro for four-argument calls.
22181         (base64_decode_alloc): Likewise.
22182         * lib/base64.c (base64_decode_ctx): If a decode context structure
22183         was passed in use it to ignore newlines.  If a context structure
22184         was _not_ passed in, continue to treat newlines as garbage (this
22185         is the historical behavior).  Formerly base64_decode.
22186         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22187         takes a decode context structure.
22188         * lib/base64.h (base64_decode): Macro for four-argument calls.
22189         (base64_decode_alloc): Likewise.
22190
22191 2008-05-19  Jim Meyering  <meyering@redhat.com>
22192
22193         avoid a warning from gcc
22194         * lib/trim.c (IF_LINT): Define.
22195         (trim2): Use it to avoid a "may be used uninitialized" warning.
22196
22197         Fix doc typo.
22198         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22199
22200 2008-05-19  Bruno Haible  <bruno@clisp.org>
22201
22202         * doc/glibc-functions/getpass.texi: Document limits of other
22203         implementations.
22204
22205 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22206             Bruno Haible <bruno@clisp.org>
22207
22208         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22209
22210 2008-05-18  Bruno Haible  <bruno@clisp.org>
22211
22212         * modules/propername: New file, from GNU gettext.
22213         * lib/propername.h: New file, from GNU gettext.
22214         * lib/propername.c: New file, from GNU gettext.
22215         * MODULES.html.sh (Internationalization functions): Add propername.
22216
22217 2008-05-16  Jim Meyering  <meyering@redhat.com>
22218             Bruno Haible  <bruno@clisp.org>
22219
22220         Avoid some warnings from "gcc -Wshadow".
22221         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22222
22223 2008-05-15  Eric Blake  <ebb9@byu.net>
22224
22225         Extend previous patch to cygwin 1.7.0.
22226         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22227         fast implementation in cygwin >= 1.7.0.
22228         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22230
22231 2008-05-15  Bruno Haible  <bruno@clisp.org>
22232
22233         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22234         implementation in glibc >= 2.9.
22235         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22237
22238 2008-05-15  Bruno Haible  <bruno@clisp.org>
22239
22240         * MODULES.html.sh (Internationalization functions): Remove linebreak.
22241         (Unicode string functions): Add unilbrk/*.
22242         Reported by Karl Berry.
22243
22244 2008-05-15  Eric Blake  <ebb9@byu.net>
22245
22246         Fix violation of <stdbool.h> replacement in regex.
22247         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22248         * lib/regexec.c (re_search_internal): Likewise.
22249         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22250
22251 2008-05-15  Jim Meyering  <meyering@redhat.com>
22252
22253         avoid distracting test output when git or cvs is not found
22254         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22255         * tests/test-vc-list-files-git.sh: Likewise.
22256
22257 2008-05-15  Eric Blake  <ebb9@byu.net>
22258
22259         Glibc finally accepted the memmem speedup code, bugzilla #5514.
22260         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22261         glibc version.
22262         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22263         * doc/posix-functions/strstr.texi (strstr): Likewise.
22264         * lib/str-two-way.h (MAX): Sychronize with glibc.
22265
22266 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
22267
22268         * lib/regcomp.c (optimize_utf8): Add a note on why we test
22269         opr.ctx_type.
22270         (calc_first): Initialize constraint field.
22271         (duplicate_node_closure): Use it instead of special casing ANCHORS.
22272         Fix grammar.
22273         (duplicate_node): Merge constraint field for all node types.
22274         (calc_eclosure_iter): Look at constraint field for all node types.
22275         * lib/regex_internal.c (create_cd_newstate): Don't look at
22276         opr.ctx_type.
22277
22278 2008-05-14  Bruno Haible  <bruno@clisp.org>
22279
22280         Help GCC to do better code generation.
22281         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22282         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22283         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22284         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22285         Declare with attribute 'malloc' if supported.
22286
22287 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
22288
22289         use "echo STR|wc -c" rather than unportable "expr length STR"
22290         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22291         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22292
22293 2008-05-14  Jim Meyering  <meyering@redhat.com>
22294
22295         use dd ibs=$n count=1 ... rather than less-portable head -c$n
22296         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22297         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22298         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22299         via Collin Lasse.
22300
22301 2008-05-14  Eric Blake  <ebb9@byu.net>
22302
22303         Avoid quadratic growth in gl_LIBSOURCES.
22304         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22305         Suggested by Bruno Haible.
22306
22307         Test xmemdup0.
22308         * modules/xmemdup0-tests: New file.
22309         * tests/test-xmemdup0.c: Likewise.
22310
22311 2008-05-13  Eric Blake  <ebb9@byu.net>
22312
22313         Split xmemdup0 into its own module.
22314         * modules/xmemdup0: New file.
22315         * lib/xmemdup0.h: Likewise.
22316         * lib/xmemdup0.c: Likewise.
22317         * MODULES.html.sh (Memory management functions): Add xmemdup0.
22318         * lib/xalloc.h (xmemdup0): Remove.
22319         * lib/xmalloc.c (xmemdup0): Likewise.
22320
22321 2008-05-13  Eric Blake  <ebb9@byu.net>
22322             Bruno Haible  <bruno@clisp.org>
22323
22324         Reduce number of forks required during autoconf.
22325         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22326         and gl_LIBSOURCES_DIR.
22327         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22328         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22329         m4_syscmd per file.
22330         <m4_foreach_w>: Move...
22331         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22332
22333 2008-05-13  Eric Blake  <ebb9@byu.net>
22334
22335         * gnulib-tool: Fix various comment typos.
22336
22337 2008-05-12  Bruno Haible  <bruno@clisp.org>
22338
22339         Tailor the linebreaking algorithm.
22340         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22341
22342 2008-05-12  Bruno Haible  <bruno@clisp.org>
22343
22344         Update to Unicode 5.0.0.
22345         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22346         LBP_JV, LBP_JT. Redistribute values.
22347         (unilbrk_table): Change size.
22348         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22349         Unicode TR#14 rev. 22.
22350         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22351         LBP_JV, LBP_JT. Redistribute values.
22352         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22353         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22354         Update.
22355         * lib/unilbrk/lbrkprop1.h: Regenerated.
22356         * lib/unilbrk/lbrkprop2.h: Regenerated.
22357         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22358         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22359         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22360         Likewise.
22361         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22362         Likewise.
22363         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22364         result.
22365         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22366         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22367         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22368         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22369         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22370         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22371
22372 2008-05-11  Bruno Haible  <bruno@clisp.org>
22373
22374         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22375
22376 2008-05-11  Bruno Haible  <bruno@clisp.org>
22377
22378         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22379         * modules/unilbrk/gen-lbrk: New file.
22380
22381 2008-05-11  Bruno Haible  <bruno@clisp.org>
22382
22383         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22384         * m4/sha512.m4 (gl_SHA512): Likewise.
22385
22386 2008-05-11  Jim Meyering  <meyering@redhat.com>
22387
22388         New modules: crypto/sha256, crypto/sha512 (from coreutils)
22389         * modules/crypto/sha256: New file.
22390         * modules/crypto/sha512: Likewise.
22391         * lib/sha256.c: Likewise.
22392         * lib/sha256.h: Likewise.
22393         * lib/sha512.c: Likewise.
22394         * lib/sha512.h: Likewise.
22395         * lib/u64.h: Likewise.
22396         * m4/sha256.m4: Likewise.
22397         * m4/sha512.m4: Likewise.
22398         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22399
22400 2008-05-10  Bruno Haible  <bruno@clisp.org>
22401
22402         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22403         (Input/Output <stdio.h>): Add xprintf.
22404         (Signal handling <signal.h>): Add strsignal.
22405         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22406         (Core language properties): Add func.
22407         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22408         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22409         strings.
22410         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22411         (Input/output): New section.
22412         (File system functions): Add openat-die, stat-macros.
22413         (Networking functions): Add sockets.
22414         (Unicode string functions): Add unictype/*.
22415         (Support for building libraries and executables): Add gperf.
22416         (Support for building documentation): Add agpl-3.0.
22417         (Misc): Add nocrash.
22418
22419 2008-05-10  Bruno Haible  <bruno@clisp.org>
22420
22421         * modules/unictype/gen-ctype: New file.
22422
22423 2008-05-10  Jim Meyering  <meyering@redhat.com>
22424
22425         Make chdir-safer.c more efficient on a system with no symlinks.
22426         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22427         also if ELOOP is zero.  Suggested by Bruno Haible.
22428
22429         Make chdir-safer.c slightly safer.
22430         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22431         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22432
22433         Avoid compile failure on systems without ELOOP (like mingw).
22434         * lib/chdir-safer.c (ELOOP): Define if not already defined.
22435         Reported by Bruno Haible.
22436
22437 2008-05-10  Bruno Haible  <bruno@clisp.org>
22438
22439         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22440         (is_utf8_encoding): Use a case-insensitive comparison.
22441         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22442         streq.
22443
22444 2008-05-10  Bruno Haible  <bruno@clisp.org>
22445
22446         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22447         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22448         * lib/unilbrk/ulc-common.h (iconv_string_length,
22449         iconv_string_keeping_offsets): Remove declarations.
22450         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22451         Don't include <iconv.h>, streq.h, xsize.h.
22452         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22453         conversion.
22454         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22455         <iconv.h>, streq.h, xsize.h.
22456         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22457         conversion.
22458         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22459         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22460         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22461         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22462
22463 2008-05-10  Bruno Haible  <bruno@clisp.org>
22464
22465         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22466         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22467
22468         * modules/unilbrk/u32-width-linebreaks-tests: New file.
22469         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22470
22471         * modules/unilbrk/u16-width-linebreaks-tests: New file.
22472         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22473
22474         * modules/unilbrk/u8-width-linebreaks-tests: New file.
22475         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22476
22477         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22478         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22479
22480         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22481         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22482
22483         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22484         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22485
22486         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22487         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22488
22489 2008-05-10  Bruno Haible  <bruno@clisp.org>
22490
22491         Split up 'linebreak' module.
22492         * lib/unilbrk.h: New file, based on lib/linebreak.h.
22493         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22494         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22495         modifications.
22496         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22497         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22498         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22499         lib/linebreak.c.
22500         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22501         lib/linebreak.c.
22502         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22503         lib/linebreak.c.
22504         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22505         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22506         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22507         lib/linebreak.c.
22508         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22509         lib/linebreak.c.
22510         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22511         lib/linebreak.c.
22512         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22513         lib/linebreak.c.
22514         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22515         lib/linebreak.c.
22516         * modules/unilbrk/base: New file.
22517         * modules/unilbrk/tables: New file.
22518         * modules/unilbrk/u8-possible-linebreaks: New file.
22519         * modules/unilbrk/u16-possible-linebreaks: New file.
22520         * modules/unilbrk/u32-possible-linebreaks: New file.
22521         * modules/unilbrk/ulc-common: New file.
22522         * modules/unilbrk/ulc-possible-linebreaks: New file.
22523         * modules/unilbrk/u8-width-linebreaks: New file.
22524         * modules/unilbrk/u16-width-linebreaks: New file.
22525         * modules/unilbrk/u32-width-linebreaks: New file.
22526         * modules/unilbrk/ulc-width-linebreaks: New file.
22527         * lib/linebreak.h: Remove file.
22528         * lib/linebreak.c: Remove file.
22529         * m4/linebreak.m4: Remove file.
22530         * modules/linebreak: Remove file.
22531         * NEWS: Mention the changes.
22532
22533 2008-05-09  Eric Blake  <ebb9@byu.net>
22534
22535         Add xmemdup0.
22536         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
22537         implementation.
22538         * lib/xmalloc.c (xmemdup0): New C implementation.
22539
22540 2008-05-08  Bruno Haible  <bruno@clisp.org>
22541
22542         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
22543
22544 2008-05-07  Eric Blake  <ebb9@byu.net>
22545
22546         Support cross-compilation of <wctype.h>.
22547         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
22548         AC_CACHE_CHECK.
22549
22550 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
22551
22552         * build-aux/vc-list-files: Add support for bzr.
22553
22554 2008-05-03  Jim Meyering  <meyering@redhat.com>
22555
22556         avoid failed assertion with tight malloc
22557         * tests/test-getndelim2.c: Correct an off-by-one assertion.
22558
22559 2008-05-03  Simon Josefsson  <simon@josefsson.org>
22560
22561         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
22562         are needed from arpa/inet.h.
22563         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
22564         Reported by Bruno Haible.
22565
22566 2008-05-02  Jim Meyering  <meyering@redhat.com>
22567
22568         avoid compilation error on FreeBSD 6
22569         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
22570
22571 2008-05-01  Jim Meyering  <meyering@redhat.com>
22572
22573         useless-if-before-free: correct --help's exit status description
22574         * build-aux/useless-if-before-free (usage): Like grep, exit 0
22575         for one or more matches, etc.  Reported by Bruno Haible.
22576
22577         vc-list-files: make the stand-alone gnulib test work
22578         * modules/vc-list-files-tests (configure.ac):
22579         Define and AC_SUBST abs_aux_dir.
22580         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
22581         $(abs_top_srcdir) to each script and having each of them
22582         duplicate the work of setting PATH, set PATH here, using
22583         the new variable, abs_aux_dir instead.
22584         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
22585         * tests/test-vc-list-files-git.sh: Likewise.
22586         Reported by Bruno Haible.
22587
22588 2008-05-01  Bruno Haible  <bruno@clisp.org>
22589
22590         * lib/getndelim2.c (getndelim2): Fix newsize computation during
22591         reallocation. Rename 'done' to 'found_delimiter'.
22592
22593 2008-05-01  Jim Meyering  <meyering@redhat.com>
22594
22595         vc-list-files: accommodate /bin/sh like the one from Solaris 10
22596         * build-aux/vc-list-files: Use `...`, not $(...).
22597
22598 2008-04-30  Jim Meyering  <meyering@redhat.com>
22599
22600         add tests for vc-list-files
22601         * modules/vc-list-files-tests: New module.
22602         * tests/test-vc-list-files-cvs.sh: New file.
22603         * tests/test-vc-list-files-git.sh: New file.
22604
22605         avoid a warning from gcc
22606         * lib/getndelim2.c (IF_LINT): Define.
22607         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
22608
22609         vc-list-files: work properly with build-aux/cvsu, too
22610         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
22611         to all cvs-based clauses.
22612
22613         vc-list-files: work properly in the CVS+awk case, too
22614         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
22615
22616         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
22617         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
22618         take more than one file argument, so .  Add quotes, just in case $dir
22619         ever contains a shell meta-character.  Prompted by Soren Hansen in
22620         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
22621
22622 2008-04-29  Eric Blake  <ebb9@byu.net>
22623
22624         Optimize getndelim2 to use block operations when possible.
22625         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
22626         freadseek, and memchr2.
22627         * lib/getndelim2.c (getndelim2): Use them for block reads.
22628
22629 2008-04-29  Bruno Haible  <bruno@clisp.org>
22630
22631         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
22632         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22633         * modules/inet_ntop (Depends-on): Add extensions.
22634         * modules/inet_pton (Depends-on): Likewise.
22635         Reported by Simon Josefsson.
22636
22637 2008-04-29  Jim Meyering  <meyering@redhat.com>
22638
22639         When the is more than one match in a block, match all of them.
22640         * build-aux/useless-if-before-free: Iterate through each block
22641         until there are no more matches.
22642
22643         Fix broken useless-if-before-free script.
22644         * build-aux/useless-if-before-free: Fix typo: missing "?" after
22645         the expression to match cast of argument to free-like function.
22646
22647 2008-04-29  Eric Blake  <ebb9@byu.net>
22648
22649         Use new header.
22650         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
22651
22652 2008-04-29  Jim Meyering  <meyering@redhat.com>
22653
22654         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
22655         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
22656         by gnulib to exist and to declare e.g., inet_ntop.
22657         Don't include "inet_ntop.h", now removed.
22658
22659         * m4/arpa_inet_h.m4: Remove trailing blanks.
22660
22661 2008-04-29  Eric Blake  <ebb9@byu.net>
22662
22663         Silence valgrind on safe reads beyond potential array bounds.
22664         * lib/rawmemchr.valgrind: New file.
22665         * lib/strchrnul.valgrind: Likewise.
22666         * modules/rawmemchr (Files): Distribute new file.
22667         * modules/strchrnul (Files): Likewise.
22668         Suggested by Bruno Haible.
22669
22670 2008-04-29  Bruno Haible  <bruno@clisp.org>
22671
22672         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
22673         (inet_ntop, inet_pton): Change portability warning's wording.
22674         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
22675         Invoke gl_CHECK_NEXT_HEADERS.
22676         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
22677         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
22678         set ARPA_INET_H.
22679         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22680         * modules/arpa_inet (Description): No longer only for systems that
22681         lack it.
22682         (Depends-on): Add include_next.
22683         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
22684         HAVE_ARPA_INET_H.
22685
22686 2008-04-29  Jim Meyering  <meyering@redhat.com>
22687
22688         * modules/mkdir (License): Re-license as LGPLv2+.
22689
22690 2008-04-29  Bruno Haible  <bruno@clisp.org>
22691
22692         * modules/rawmemchr (Maintainer): Set to Eric.
22693         * modules/strchrnul (Maintainer): Likewise.
22694
22695 2008-04-29  Simon Josefsson  <simon@josefsson.org>
22696
22697         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
22698         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
22699
22700         * modules/arpa_inet (arpa/inet.h): Use them.
22701
22702 2008-04-28  Eric Blake  <ebb9@byu.net>
22703
22704         Test getndelim2.
22705         * modules/getndelim2-tests: New file.
22706         * tests/test-getndelim2.c: Likewise.
22707         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
22708         stream.
22709         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
22710
22711         * MODULES.html.sh: Document new module.
22712
22713 2008-04-20  Bruno Haible  <bruno@clisp.org>
22714
22715         * lib/c-stack.c (die): Use raise.
22716         * modules/c-stack (Depends-on): Add raise.
22717
22718 2008-04-28  Bruno Haible  <bruno@clisp.org>
22719
22720         Expect rpmatch to be declared.
22721         * lib/yesno.c (rpmatch): Remove declaration.
22722
22723         Declare rpmatch.
22724         * lib/stdlib.in.h (rpmatch): New declaration.
22725         * lib/rpmatch.c: Include <stdlib.h> first.
22726         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
22727         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
22728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
22729         HAVE_RPMATCH.
22730         * modules/rpmatch (Depends-on): Add stdlib, extensions.
22731         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
22732         (Include): Set to <stdlib.h>.
22733         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
22734         HAVE_RPMATCH.
22735         * NEWS: Document the change.
22736
22737 2008-04-28  Bruno Haible  <bruno@clisp.org>
22738
22739         Change rpmatch to use nl_langinfo when appropriate.
22740         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
22741         (N_): New macro.
22742         (localized_pattern): New function/macro.
22743         (try): Remove match, nomatch arguments. Copy the pattern into safe
22744         memory before caching it.
22745         (rpmatch): Use localized_pattern. Add translator comments.
22746         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
22747         Suggested by Eric Blake.
22748         * modules/rpmatch (Depends-on): Add stdbool.
22749
22750 2008-04-28  Eric Blake  <ebb9@byu.net>
22751
22752         Add rawmemchr module, matching glibc.
22753         * modules/string (Makefile.am): New indicator.
22754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
22755         * lib/string.in.h (rawmemchr): Declare when appropriate.
22756         * modules/rawmemchr: New file.
22757         * m4/rawmemchr.m4: Likewise.
22758         * lib/rawmemchr.c: Likewise.
22759         * modules/rawmemchr-tests: Likewise.
22760         * tests/test-rawmemchr.c: Likewise.
22761         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
22762         module.
22763         * modules/strchrnul (Depends-on): Add rawmemchr.
22764         * lib/strchrnul.c (strchrnul): Optimize a corner case.
22765
22766         Whitespace cleanup.
22767         * tests/test-strchrnul.c: Reindent.
22768         * lib/strchrnul.c: Likewise.
22769
22770         Optimize and test strchrnul.
22771         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
22772         * modules/strchrnul-tests: New file.
22773         * tests/test-strchrnul.c: Likewise.
22774
22775         Remove intprops dependency.
22776         * modules/memchr (Depends-on): Remove intprops.
22777         * modules/memrchr (Depends-on): Likewise.
22778         * modules/memchr2 (Depends-on): Likewise.
22779         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
22780         * lib/memrchr.c (__memrchr): Likewise.
22781         * lib/memrchr2.c (memchr2): Likewise.
22782         Reported by Simon Josefsson.
22783
22784 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22785
22786         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
22787         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22788
22789 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22790
22791         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
22792
22793         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
22794
22795         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
22796
22797         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
22798         declarations.
22799         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
22800
22801         * m4/inet_pton.m4: Don't check for header files.
22802
22803         * m4/inet_ntop.m4: Don't check for header files.
22804
22805 2008-04-28  Simon Josefsson  <simon@josefsson.org>
22806
22807         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
22808         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
22809         trigger for cygwin).
22810         Reported by Bruno Haible  <bruno@clisp.org>.
22811
22812 2008-04-28  Bruno Haible  <bruno@clisp.org>
22813
22814         * doc/posix-functions/strdup.texi: Mention mingw problem.
22815
22816 2008-04-27  Bruno Haible  <bruno@clisp.org>
22817
22818         * modules/stat-time-tests (Depends-on): Add sleep.
22819         * tests/test-stat-time.c (force_unlink): New function.
22820         (cleanup): Use it.
22821         (test_mtime): Remove the ctime related tests.
22822         (test_ctime): New function, containing the ctime related tests.
22823         (main): Call test_ctime, except on native Windows platforms.
22824
22825 2008-04-27  Bruno Haible  <bruno@clisp.org>
22826
22827         * lib/rpmatch.c (rpmatch): Add some comments.
22828         Reported by James Youngman <jay@gnu.org>.
22829
22830 2008-04-27  Bruno Haible  <bruno@clisp.org>
22831
22832         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
22833         quiet NaNs.
22834
22835 2008-04-27  Bruno Haible  <bruno@clisp.org>
22836
22837         Make test-yesno.sh work on mingw.
22838         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
22839         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
22840         (main): Set stdin to binary mode.
22841         * modules/yesno-tests (Depends-on): Add binary-io.
22842
22843 2008-04-27  Bruno Haible  <bruno@clisp.org>
22844
22845         Fix 'isfinite' on x86, x86_64, ia64 platforms.
22846         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
22847         argument that lie outside the IEEE 854 domain.
22848         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
22849         (gl_ISFINITE): Use it.
22850         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
22851
22852 2008-04-27  Bruno Haible  <bruno@clisp.org>
22853
22854         Allow local renaming in config.h.
22855         * lib/memrchr.c (memrchr): Don't undefine outside libc.
22856
22857 2008-04-27  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/memchr.c (__memchr): Change type of 'i'.
22860         * lib/memchr2.c (memchr2): Likewise.
22861
22862 2008-04-26  Eric Blake  <ebb9@byu.net>
22863         and Bruno Haible  <bruno@clisp.org>
22864
22865         Optimize and test memrchr.
22866         * modules/memrchr (Depends-on): Add intprops.
22867         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
22868         * modules/memrchr-tests: New file.
22869         * tests/test-memrchr.c: New file.
22870
22871 2008-04-26  Bruno Haible  <bruno@clisp.org>
22872
22873         Add tentative support for DragonFly BSD.
22874         * lib/stdio-impl.h: Add macros for DragonFly BSD.
22875         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
22876         fp.
22877         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22878         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
22879         * lib/fpurge.c (fpurge): Likewise.
22880         * lib/freadable.c (freaadable): Likewise.
22881         * lib/freadahead.c (freadahead): Likewise.
22882         * lib/freading.c (freading): Likewise.
22883         * lib/freadptr.c (freadptr): Likewise.
22884         * lib/freadseek.c (freadptrinc): Likewise.
22885         * lib/fseeko.c (fseeko): Likewise.
22886         * lib/fseterr.c (fseterr): Likewise.
22887         * lib/fwritable.c (fwritable): Likewise.
22888         * lib/fwriting.c (fwriting): Likewise.
22889
22890 2008-04-26  Bruno Haible  <bruno@clisp.org>
22891
22892         * lib/stdio-impl.h: New file.
22893         * lib/fbufmode.c: Include stdio-impl.h.
22894         (fbufmode): Use fp_, remove redundant #defines.
22895         * lib/fflush.c: Include stdio-impl.h.
22896         (clear_ungetc_buffer): Remove redundant #defines.
22897         * lib/fpurge.c: Include stdio-impl.h.
22898         (fpurge): Remove redundant #defines.
22899         * lib/freadable.c: Include stdio-impl.h.
22900         (freadable): Remove redundant #defines.
22901         * lib/freadahead.c: Include stdio-impl.h.
22902         (freadahead): Remove redundant #defines.
22903         * lib/freading.c: Include stdio-impl.h.
22904         (freading): Remove redundant #defines.
22905         * lib/freadptr.c: Include stdio-impl.h.
22906         (freadptr): Remove redundant #defines.
22907         * lib/freadseek.c: Include stdio-impl.h.
22908         (freadptrinc): Remove redundant #defines.
22909         * lib/fseeko.c: Include stdio-impl.h.
22910         (rpl_fseeko): Remove redundant #defines.
22911         * lib/fseterr.c: Include stdio-impl.h.
22912         (fseterr): Remove redundant #defines.
22913         * lib/fwritable.c: Include stdio-impl.h.
22914         (fwritable: Remove redundant #defines.
22915         * lib/fwriting.c: Include stdio-impl.h.
22916         (fwriting): Remove redundant #defines.
22917         * modules/fbufmode (Files): Add lib/stdio-impl.h.
22918         * modules/fflush (Files): Likewise.
22919         * modules/fpurge (Files): Likewise.
22920         * modules/freadable (Files): Likewise.
22921         * modules/freadahead (Files): Likewise.
22922         * modules/freading (Files): Likewise.
22923         * modules/freadptr (Files): Likewise.
22924         * modules/freadseek (Files): Likewise.
22925         * modules/fseeko (Files): Likewise.
22926         * modules/fseterr (Files): Likewise.
22927         * modules/fwritable (Files): Likewise.
22928         * modules/fwriting (Files): Likewise.
22929
22930 2008-04-26  Bruno Haible  <bruno@clisp.org>
22931
22932         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
22933         restore_seek_optimization, update_fpos_cache): New functions, extracted
22934         from rpl_fflush.
22935         (rpl_fflush): Use them.
22936         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
22937         (gl_REPLACE_FFLUSH): Use it.
22938
22939 2008-04-26  Bruno Haible  <bruno@clisp.org>
22940
22941         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
22942         on Solaris.
22943         * tests/test-xstrtoimax.sh: Likewise.
22944         * tests/test-xstrtoumax.sh: Likewise.
22945         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22946
22947 2008-04-26  Bruno Haible  <bruno@clisp.org>
22948
22949         * modules/memchr-tests: New file.
22950         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
22951
22952 2008-04-26  Eric Blake  <ebb9@byu.net>
22953             Bruno Haible  <bruno@clisp.org>
22954
22955         * lib/memchr.c: Include intprops.h.
22956         (__memchr): Optimize parallel detection of matching bytes. Rename local
22957         variables. Add explanatory comments.
22958
22959 2008-04-26  Bruno Haible  <bruno@clisp.org>
22960
22961         Fix module 'memchr', broken since 2000-10-28.
22962         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
22963
22964 2008-04-26  Bruno Haible  <bruno@clisp.org>
22965
22966         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
22967         comments.
22968
22969 2008-04-25  Eric Blake  <ebb9@byu.net>
22970
22971         Use native fstatat on cygwin 1.7.0.
22972         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
22973         first.
22974
22975 2008-04-23  Eric Blake  <ebb9@byu.net>
22976
22977         Improve memchr2 performance.
22978         * lib/memchr2.c (memchr2): Further optimize parallel detection of
22979         NUL bytes.
22980         * modules/memchr2 (Depends-on): Use intprops.h.
22981
22982 2008-04-23  Simon Josefsson  <simon@josefsson.org>
22983
22984         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
22985         an inline function instead of a CPP macro.  Patch by Ben Pfaff
22986         <blp@cs.stanford.edu>.
22987
22988 2008-04-23  Simon Josefsson  <simon@josefsson.org>
22989
22990         * lib/arpa_inet.in.h: New file.
22991
22992         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
22993         (Makefile.am): Sed in substitute header file.
22994
22995         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
22996         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
22997
22998         * modules/inet_ntop (configure.ac): Use
22999         gl_ARPA_INET_MODULE_INDICATOR.
23000
23001         * modules/inet_pton (configure.ac): Use
23002         gl_ARPA_INET_MODULE_INDICATOR.
23003
23004 2008-04-22  Jim Meyering  <meyering@redhat.com>
23005
23006         * modules/verify (License): Re-license as LGPLv2+.
23007
23008 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23009
23010         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23011         parameter to void* as per POSIX standard (MinGW uses char*).
23012
23013 2008-04-21  Bruno Haible  <bruno@clisp.org>
23014
23015         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23016         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23017         Define to replacements if REPLACE_ISWCNTRL is 1.
23018         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23019         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23020         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23021         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23022         what it fixes.
23023         * doc/posix-functions/iswalpha.texi: Likewise.
23024         * doc/posix-functions/iswblank.texi: Likewise.
23025         * doc/posix-functions/iswcntrl.texi: Likewise.
23026         * doc/posix-functions/iswdigit.texi: Likewise.
23027         * doc/posix-functions/iswgraph.texi: Likewise.
23028         * doc/posix-functions/iswlower.texi: Likewise.
23029         * doc/posix-functions/iswprint.texi: Likewise.
23030         * doc/posix-functions/iswpunct.texi: Likewise.
23031         * doc/posix-functions/iswspace.texi: Likewise.
23032         * doc/posix-functions/iswupper.texi: Likewise.
23033         * doc/posix-functions/iswxdigit.texi: Likewise.
23034         Reported by Alain Guibert.
23035
23036 2008-04-21  Bruno Haible  <bruno@clisp.org>
23037
23038         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23039         Patch by Alain Guibert.
23040
23041 2008-04-21  Bruno Haible  <bruno@clisp.org>
23042
23043         Fix test failures on mingw.
23044         * tests/test-xstrtol.c (print_no_progname): New function.
23045         (main): Install it in error_print_progname hook.
23046         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23047         * tests/test-xstrtoimax.sh: Likewise.
23048         * tests/test-xstrtoumax.sh: Likewise.
23049
23050 2008-04-21  Bruno Haible  <bruno@clisp.org>
23051
23052         Fix test failure on mingw.
23053         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23054
23055 2008-04-21  Bruno Haible  <bruno@clisp.org>
23056
23057         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23058         Actually assign a value.
23059
23060 2008-04-20  Bruno Haible  <bruno@clisp.org>
23061
23062         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23063         take 2.
23064         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23065         'canonicalize-lgpl' module is also used.
23066         * lib/canonicalize-lgpl.c: Undo last change.
23067         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23068
23069 2008-04-20  Bruno Haible  <bruno@clisp.org>
23070
23071         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23072         config.h. Provide _mkdir based fallback for mingw.
23073         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23074         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23075         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23076         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23077         rather than defining mkdir in config.h.
23078         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23079         (gl_SYS_STAT_H_DEFAULTS): New macro.
23080         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23081         HAVE_IO_H any more.
23082         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23083         HAVE_DECL_MKDIR and HAVE_IO_H.
23084
23085 2008-04-20  Bruno Haible  <bruno@clisp.org>
23086
23087         * lib/isapipe.c: Port to native Windows platforms.
23088
23089 2008-04-20  Bruno Haible  <bruno@clisp.org>
23090
23091         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23092
23093 2008-04-21  Eric Blake  <ebb9@byu.net>
23094
23095         Work around preprocessors that don't handle UINTMAX_MAX.
23096         * lib/memchr2.c (memchr2): Avoid embedded #if.
23097         Reported by Alain Guibert, fix suggested by Bruno Haible.
23098
23099 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23100
23101         * doc/posix-functions/strftime.texi (strftime): Explain better
23102         Windows incompatibility.  Suggested by Micah Cowan
23103         <micah@cowan.name>.
23104
23105 2008-04-20  Bruno Haible  <bruno@clisp.org>
23106
23107         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23108         unistr/u8-mblen.
23109
23110 2008-04-20  Bruno Haible  <bruno@clisp.org>
23111
23112         Fix test failure on platforms with non-GNU iconv.
23113         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23114         (U_TO_U8): Use it, rather than u16_to_u8.
23115         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23116         units at the end of the input string.
23117         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23118
23119 2008-04-20  Bruno Haible  <bruno@clisp.org>
23120
23121         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23122         when the resulting length is 0.
23123         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23124
23125 2008-04-20  Bruno Haible  <bruno@clisp.org>
23126
23127         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23128         works.
23129         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23130
23131 2008-04-20  Bruno Haible  <bruno@clisp.org>
23132
23133         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23134         * modules/tsearch-tests (configure.ac): Test for initstate function.
23135
23136 2008-04-20  Bruno Haible  <bruno@clisp.org>
23137
23138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23139         for nlink_t if missing.
23140         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23141
23142 2008-04-19  Bruno Haible  <bruno@clisp.org>
23143
23144         Work around snprintf bug on Linux libc5.
23145         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23146         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23147         gl_SNPRINTF_SIZE1.
23148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23149         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23150         that test failed.
23151         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23152         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23153         * modules/snprintf (Files): Add m4/printf.m4.
23154         * modules/vsnprintf (Files): Likewise.
23155         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23156         * doc/posix-functions/vsnprintf.texi: Likewise.
23157
23158 2008-04-19  Bruno Haible  <bruno@clisp.org>
23159
23160         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23161         from 0.0058 to less than 10^-7.
23162
23163 2008-04-19  Bruno Haible  <bruno@clisp.org>
23164
23165         Fix rounding when a precision is given.
23166         * lib/vasnprintf.c (is_borderline): New function.
23167         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23168         9...9x.
23169         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23170         %e, %g.
23171         * tests/test-vasprintf-posix.c (test_function): Likewise.
23172         * tests/test-snprintf-posix.h (test_function): Likewise.
23173         * tests/test-sprintf-posix.h (test_function): Likewise.
23174         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23175         * tests/test-printf-posix.h (test_function): Likewise.
23176         * tests/test-printf-posix.output: Update.
23177         Reported by John Darrington <john@darrington.wattle.id.au> via
23178         Ben Pfaff <blp@cs.stanford.edu>.
23179
23180 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23181
23182         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23183         Suggested by Bruno Haible <bruno@clisp.org>.
23184
23185 2008-04-17  Bruno Haible  <bruno@clisp.org>
23186
23187         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23188         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23189         implementation.
23190         Patch by Bruce Merry <bmerry@gmail.com>.
23191
23192 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23193
23194         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23195         doesn't work under Windows.
23196
23197 2008-04-16  Bruno Haible  <bruno@clisp.org>
23198
23199         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23200         New macros.
23201         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23202         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23203         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23204         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23205         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23206         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23207         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23208         macros.
23209         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23210         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23211         Northern Sotho, Uighur.
23212
23213 2008-04-16  Bruno Haible  <bruno@clisp.org>
23214
23215         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23216         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23217         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23218         Reported by Daniel Bergström <daniel@octocode.com>.
23219
23220 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
23221             Bruno Haible  <bruno@clisp.org>
23222
23223         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23224         function.
23225         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23226         New functions, mostly extracted from gl_locale_name_default.
23227         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23228
23229 2008-04-16  Eric Blake  <ebb9@byu.net>
23230
23231         Adjust strtod detection to catch glibc 2.7 bug.
23232         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23233         Reported by John Gatewood Ham.
23234
23235 2008-04-16  Bruno Haible  <bruno@clisp.org>
23236
23237         Add tentative support for Linux libc5.
23238         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23239         * lib/fpurge.c (fpurge): Likewise.
23240         * lib/freadable.c (freadable): Likewise.
23241         * lib/freadahead.c (freadahead): Likewise.
23242         * lib/freading.c (freading): Likewise.
23243         * lib/freadptr.c (freadptr): Likewise.
23244         * lib/freadseek.c (freadptrinc): Likewise.
23245         * lib/fseeko.c (rpl_fseeko): Likewise.
23246         * lib/fseterr.c (fseterr): Likewise.
23247         * lib/fwritable.c (fwritable): Likewise.
23248         * lib/fwriting.c (fwriting): Likewise.
23249         Reported by Alain Guibert <alguibert+bts@free.fr>.
23250
23251 2008-04-15  Bruno Haible  <bruno@clisp.org>
23252
23253         * modules/mathl (configure.ac): Define module indicator.
23254
23255 2008-04-15  Bruno Haible  <bruno@clisp.org>
23256
23257         * lib/logl.c (logl): Remove unused variables.
23258
23259 2008-04-15  Bruno Haible  <bruno@clisp.org>
23260
23261         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23262         fails.
23263
23264 2008-04-15  Bruno Haible  <bruno@clisp.org>
23265
23266         * lib/trim.c (trim2): Fix argument of isspace() macro.
23267
23268 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
23269
23270         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23271         to 0.
23272         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23273
23274 2008-04-14  Bruno Haible  <bruno@clisp.org>
23275
23276         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23277         AC_LANG_PROGRAM argument.
23278         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23279         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23281         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23282         * m4/math_h.m4 (gl_MATH_H): Likewise.
23283         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23285         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23286         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23287         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23288         * m4/regex.m4 (gl_REGEX): Likewise.
23289         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23290         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23292         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23293         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23294         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23297
23298 2008-04-14  Jim Meyering  <meyering@redhat.com>
23299
23300         test-strtod: fix typos: s/abs/fabs/
23301         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23302
23303 2008-04-13  Bruno Haible  <bruno@clisp.org>
23304
23305         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23306         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23307         module is also used and while not building the reloc-wrapper.
23308
23309 2008-04-13  Bruno Haible  <bruno@clisp.org>
23310
23311         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23312
23313 2008-04-13  Bruno Haible  <bruno@clisp.org>
23314
23315         Fix AIX compilation failure introduced on 2008-04-02.
23316         * tests/test-frexp.c (exp): Undefine before redefining.
23317         * tests/test-frexpl.c (exp): Likewise.
23318
23319 2008-04-13  Bruno Haible  <bruno@clisp.org>
23320
23321         Work around a HP-UX stdio bug.
23322         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23323         * tests/test-ftello.c (main): Likewise.
23324         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23325         * doc/posix-functions/ftello.texi: Likewise.
23326
23327 2008-04-13  Bruno Haible  <bruno@clisp.org>
23328
23329         Make test-signbit pass on HP-UX/hppa.
23330         * tests/test-signbit.c (minus_zerol): New variable.
23331         (test_signbitl): Use it.
23332
23333 2008-04-13  Bruno Haible  <bruno@clisp.org>
23334
23335         Make truncl work on OSF/1 4.0.
23336         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23337         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23338         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23340         HAVE_DECL_TRUNCL.
23341         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23342         HAVE_DECL_TRUNCL.
23343         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23344
23345 2008-04-13  Bruno Haible  <bruno@clisp.org>
23346
23347         * lib/unictype.h: Remove trailing comma from enumeration definitions.
23348
23349 2008-04-13  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23352         expression, so as to avoid HP-UX 11 cc compiler bug.
23353
23354 2008-04-13  Bruno Haible  <bruno@clisp.org>
23355
23356         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23357
23358 2008-04-13  Bruno Haible  <bruno@clisp.org>
23359
23360         * lib/git-merge-changelog.c: Remove empty declaration outside of
23361         functions.
23362
23363 2008-04-13  Bruno Haible  <bruno@clisp.org>
23364
23365         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23366
23367 2008-04-13  Bruno Haible  <bruno@clisp.org>
23368
23369         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23370         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23371         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23372         also if it exists but lacks definitions of the SHUT_* macros.
23373         * modules/sys_socket (Description): Update.
23374         Reported by Elbert Pol <e.pol@chello.nl>.
23375
23376 2008-04-13  Bruno Haible  <bruno@clisp.org>
23377
23378         * lib/localcharset.c (OS2): Don't redefine if already defined.
23379         Reported by Elbert Pol <e.pol@chello.nl>.
23380
23381 2008-04-13  Bruno Haible  <bruno@clisp.org>
23382
23383         * lib/binary-io.h [__EMX__]: Include <io.h>.
23384         Reported by Elbert Pol <e.pol@chello.nl>.
23385
23386 2008-04-12  Bruno Haible  <bruno@clisp.org>
23387
23388         * lib/fpucw.h: Enable the definitions also for x86_64.
23389         Needed for NetBSD/x86_64.
23390         Reported by Thomas Klausner <tk@giga.or.at>.
23391
23392 2008-04-12  Bruno Haible  <bruno@clisp.org>
23393
23394         * tests/test-strtod.c: Include isnand.h.
23395         (main): Use isnand instead of isnan.
23396         Reported by Jim Meyering.
23397
23398 2008-04-12  Bruno Haible  <bruno@clisp.org>
23399
23400         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23401         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23402
23403 2008-04-12  Jim Meyering  <meyering@redhat.com>
23404
23405         * m4/math_h.m4 (gl_MATH_H): Fix typos.
23406
23407 2008-04-12  Bruno Haible  <bruno@clisp.org>
23408
23409         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23410         Reported by Elbert Pol <e.pol@chello.nl>.
23411
23412 2008-04-12  Eric Blake  <ebb9@byu.net>
23413
23414         Work around Solaris 10 math.h bug.
23415         * m4/math_h.m4 (gl_MATH_H): Check for bug.
23416         (gl_MATH_H_DEFAULTS): Set up default.
23417         * modules/math (Makefile.am): Replace new indicators.
23418         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23419         * tests/test-math.c (main): Test this.
23420         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23421         * doc/posix-headers/math.texi (math.h): Mention bug.
23422         Reported by Nelson H. F. Beebe and Jim Meyering.
23423
23424 2008-04-11  Bruno Haible  <bruno@clisp.org>
23425
23426         Adapt to future versions of Apple GCC.
23427         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23428         Reported by Peter O'Gorman <peter@pogma.com>.
23429
23430 2008-04-11  Bruno Haible  <bruno@clisp.org>
23431
23432         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23433
23434 2008-04-11  Bruno Haible  <bruno@clisp.org>
23435
23436         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23437
23438         * modules/getaddrinfo-tests (Makefile.am): Define
23439         test_getaddrinfo_LDADD.
23440
23441 2008-04-11  Bruno Haible  <bruno@clisp.org>
23442
23443         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23444         (init): Fix syntax error.
23445         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23446         is declared.
23447
23448 2008-04-11  Bruno Haible  <bruno@clisp.org>
23449
23450         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23451         * modules/glob (Depends-on): Add stdbool.
23452
23453 2008-04-11  Bruno Haible  <bruno@clisp.org>
23454
23455         * lib/trim.c: Include <string.h>.
23456
23457 2008-04-11  Eric Blake  <ebb9@byu.net>
23458
23459         Avoid compile failure on OS/2.
23460         * lib/regex_internal.h (internal_function): Disable optimization
23461         on OS/2 (__EMX__), where it caused compiler error.
23462         Reported by Elbert Pol.
23463
23464 2008-04-11  Bruno Haible  <bruno@clisp.org>
23465
23466         Flush the standard error stream before aborting. Needed on mingw.
23467         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23468         * tests/test-array_list.c (ASSERT): Likewise.
23469         * tests/test-array_oset.c (ASSERT): Likewise.
23470         * tests/test-avltree_list.c (ASSERT): Likewise.
23471         * tests/test-avltree_oset.c (ASSERT): Likewise.
23472         * tests/test-avltreehash_list.c (ASSERT): Likewise.
23473         * tests/test-binary-io.c (ASSERT): Likewise.
23474         * tests/test-byteswap.c (ASSERT): Likewise.
23475         * tests/test-c-ctype.c (ASSERT): Likewise.
23476         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23477         * tests/test-c-strcasestr.c (ASSERT): Likewise.
23478         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23479         * tests/test-c-strstr.c (ASSERT): Likewise.
23480         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23481         * tests/test-canonicalize.c (ASSERT): Likewise.
23482         * tests/test-carray_list.c (ASSERT): Likewise.
23483         * tests/test-ceilf1.c (ASSERT): Likewise.
23484         * tests/test-ceilf2.c (ASSERT): Likewise.
23485         * tests/test-ceill.c (ASSERT): Likewise.
23486         * tests/test-count-one-bits.c (ASSERT): Likewise.
23487         * tests/test-fbufmode.c (ASSERT): Likewise.
23488         * tests/test-fflush2.c (ASSERT): Likewise.
23489         * tests/test-floorf1.c (ASSERT): Likewise.
23490         * tests/test-floorf2.c (ASSERT): Likewise.
23491         * tests/test-floorl.c (ASSERT): Likewise.
23492         * tests/test-fopen.c (ASSERT): Likewise.
23493         * tests/test-fpending.c (ASSERT): Likewise.
23494         * tests/test-fprintf-posix.c (ASSERT): Likewise.
23495         * tests/test-fpurge.c (ASSERT): Likewise.
23496         * tests/test-freadable.c (ASSERT): Likewise.
23497         * tests/test-freadahead.c (ASSERT): Likewise.
23498         * tests/test-freading.c (ASSERT): Likewise.
23499         * tests/test-freadptr.c (ASSERT): Likewise.
23500         * tests/test-freadptr2.c (ASSERT): Likewise.
23501         * tests/test-freadseek.c (ASSERT): Likewise.
23502         * tests/test-freopen.c (ASSERT): Likewise.
23503         * tests/test-frexp.c (ASSERT): Likewise.
23504         * tests/test-frexpl.c (ASSERT): Likewise.
23505         * tests/test-fseek.c (ASSERT): Likewise.
23506         * tests/test-fseeko.c (ASSERT): Likewise.
23507         * tests/test-fstrcmp.c (ASSERT): Likewise.
23508         * tests/test-ftell.c (ASSERT): Likewise.
23509         * tests/test-ftello.c (ASSERT): Likewise.
23510         * tests/test-func.c (ASSERT): Likewise.
23511         * tests/test-fwritable.c (ASSERT): Likewise.
23512         * tests/test-fwriting.c (ASSERT): Likewise.
23513         * tests/test-getdelim.c (ASSERT): Likewise.
23514         * tests/test-getline.c (ASSERT): Likewise.
23515         * tests/test-i-ring.c (ASSERT): Likewise.
23516         * tests/test-iconv-utf.c (ASSERT): Likewise.
23517         * tests/test-iconv.c (ASSERT): Likewise.
23518         * tests/test-isfinite.c (ASSERT): Likewise.
23519         * tests/test-isnand.c (ASSERT): Likewise.
23520         * tests/test-isnanf.c (ASSERT): Likewise.
23521         * tests/test-isnanl.h (ASSERT): Likewise.
23522         * tests/test-ldexpl.c (ASSERT): Likewise.
23523         * tests/test-linked_list.c (ASSERT): Likewise.
23524         * tests/test-linkedhash_list.c (ASSERT): Likewise.
23525         * tests/test-localename.c (ASSERT): Likewise.
23526         * tests/test-lseek.c (ASSERT): Likewise.
23527         * tests/test-mbscasecmp.c (ASSERT): Likewise.
23528         * tests/test-mbscasestr1.c (ASSERT): Likewise.
23529         * tests/test-mbscasestr2.c (ASSERT): Likewise.
23530         * tests/test-mbscasestr3.c (ASSERT): Likewise.
23531         * tests/test-mbscasestr4.c (ASSERT): Likewise.
23532         * tests/test-mbschr.c (ASSERT): Likewise.
23533         * tests/test-mbscspn.c (ASSERT): Likewise.
23534         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
23535         * tests/test-mbspbrk.c (ASSERT): Likewise.
23536         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
23537         * tests/test-mbsrchr.c (ASSERT): Likewise.
23538         * tests/test-mbsspn.c (ASSERT): Likewise.
23539         * tests/test-mbsstr1.c (ASSERT): Likewise.
23540         * tests/test-mbsstr2.c (ASSERT): Likewise.
23541         * tests/test-mbsstr3.c (ASSERT): Likewise.
23542         * tests/test-memchr2.c (ASSERT): Likewise.
23543         * tests/test-memmem.c (ASSERT): Likewise.
23544         * tests/test-open.c (ASSERT): Likewise.
23545         * tests/test-printf-frexp.c (ASSERT): Likewise.
23546         * tests/test-printf-frexpl.c (ASSERT): Likewise.
23547         * tests/test-printf-posix.c (ASSERT): Likewise.
23548         * tests/test-quotearg.c (ASSERT): Likewise.
23549         * tests/test-rbtree_list.c (ASSERT): Likewise.
23550         * tests/test-rbtree_oset.c (ASSERT): Likewise.
23551         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
23552         * tests/test-round1.c (ASSERT): Likewise.
23553         * tests/test-roundf1.c (ASSERT): Likewise.
23554         * tests/test-roundl.c (ASSERT): Likewise.
23555         * tests/test-signbit.c (ASSERT): Likewise.
23556         * tests/test-sleep.c (ASSERT): Likewise.
23557         * tests/test-snprintf-posix.c (ASSERT): Likewise.
23558         * tests/test-snprintf.c (ASSERT): Likewise.
23559         * tests/test-sprintf-posix.c (ASSERT): Likewise.
23560         * tests/test-stat-time.c (ASSERT): Likewise.
23561         * tests/test-strcasestr.c (ASSERT): Likewise.
23562         * tests/test-strerror.c (ASSERT): Likewise.
23563         * tests/test-striconv.c (ASSERT): Likewise.
23564         * tests/test-striconveh.c (ASSERT): Likewise.
23565         * tests/test-striconveha.c (ASSERT): Likewise.
23566         * tests/test-strsignal.c (ASSERT): Likewise.
23567         * tests/test-strstr.c (ASSERT): Likewise.
23568         * tests/test-strtod.c (ASSERT): Likewise.
23569         * tests/test-trunc1.c (ASSERT): Likewise.
23570         * tests/test-trunc2.c (ASSERT): Likewise.
23571         * tests/test-truncf1.c (ASSERT): Likewise.
23572         * tests/test-truncf2.c (ASSERT): Likewise.
23573         * tests/test-truncl.c (ASSERT): Likewise.
23574         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
23575         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
23576         * tests/test-vasnprintf.c (ASSERT): Likewise.
23577         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
23578         * tests/test-vasprintf.c (ASSERT): Likewise.
23579         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
23580         * tests/test-vprintf-posix.c (ASSERT): Likewise.
23581         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
23582         * tests/test-vsnprintf.c (ASSERT): Likewise.
23583         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
23584         * tests/test-wcwidth.c (ASSERT): Likewise.
23585         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
23586         * tests/test-xprintf-posix.c (ASSERT): Likewise.
23587         * tests/test-xvasprintf.c (ASSERT): Likewise.
23588         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
23589         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
23590         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
23591         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
23592         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
23593         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
23594         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
23595         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
23596         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
23597         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
23598         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
23599         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
23600         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
23601         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
23602         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
23603         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
23604         * tests/unictype/test-block_list.c (ASSERT): Likewise.
23605         * tests/unictype/test-block_of.c (ASSERT): Likewise.
23606         * tests/unictype/test-block_test.c (ASSERT): Likewise.
23607         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
23608         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
23609         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
23610         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
23611         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
23612         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
23613         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
23614         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
23615         * tests/unictype/test-combining.c (ASSERT): Likewise.
23616         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
23617         * tests/unictype/test-digit.c (ASSERT): Likewise.
23618         * tests/unictype/test-mirror.c (ASSERT): Likewise.
23619         * tests/unictype/test-numeric.c (ASSERT): Likewise.
23620         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
23621         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
23622         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
23623         * tests/unictype/test-scripts.c (ASSERT): Likewise.
23624         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
23625         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
23626         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
23627         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
23628         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
23629         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
23630         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
23631         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
23632         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
23633         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
23634         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
23635         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
23636         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
23637         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
23638         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
23639         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
23640         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
23641         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
23642         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
23643         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
23644         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
23645         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
23646         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
23647         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
23648         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
23649         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
23650         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
23651         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
23652         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
23653         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
23654         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
23655         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
23656         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
23657         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
23658         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
23659         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
23660         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
23661         Reported by Eric Blake.
23662
23663 2008-04-11  Bruno Haible  <bruno@clisp.org>
23664
23665         * lib/wchar.in.h: Tweak comment.
23666
23667 2008-04-11  Bruno Haible  <bruno@clisp.org>
23668
23669         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
23670         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
23671         gl_COMMON.
23672         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
23673
23674 2008-04-11  Bruno Haible  <bruno@clisp.org>
23675
23676         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
23677
23678 2008-04-11  Simon Josefsson  <simon@josefsson.org>
23679
23680         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
23681         of attempting to use non-existing /dev/*random.  Based on patch
23682         from Adam Strzelecki <ono@java.pl> in
23683         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
23684
23685 2008-04-08  Bruno Haible  <bruno@clisp.org>
23686
23687         Add tentative support for emx+gcc.
23688         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
23689         * lib/fpurge.c (fpurge): Likewise.
23690         * lib/freadable.c (freadable): Likewise.
23691         * lib/freadahead.c (freadahead): Likewise.
23692         * lib/freading.c (freading): Likewise.
23693         * lib/freadptr.c (freadptr): Likewise.
23694         * lib/freadseek.c (freadptrinc): Likewise.
23695         * lib/fseeko.c (rpl_fseeko): Likewise.
23696         * lib/fseterr.c (fseterr): Likewise.
23697         * lib/fwritable.c (fwritable): Likewise.
23698         * lib/fwriting.c (fwriting): Likewise.
23699         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
23700
23701 2008-04-09  Eric Blake  <ebb9@byu.net>
23702
23703         Avoid some autoconf warnings.
23704         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
23705         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
23706         * m4/afs.m4 (gl_AFS): Likewise.
23707         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
23708         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
23709         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23710         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
23711         (gl_INTEGER_TYPE_SUFFIX): Likewise.
23712         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
23713         (AC_CHECK_DECLS_ONCE): Likewise.
23714         Rename file...
23715         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
23716         gnulib-tool requires autoconf 2.59 or better.
23717         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
23718
23719 2008-04-08  Eric Blake  <ebb9@byu.net>
23720
23721         Use 'git describe --match' if present (added in git 1.5.5).
23722         * build-aux/git-version-gen: Limit result to tags that match 'v*'
23723         if possible.
23724
23725 2008-04-08  Bruno Haible  <bruno@clisp.org>
23726
23727         Add tentative support for OpenServer.
23728         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
23729         _ptr, _cnt.
23730         * lib/fpurge.c (fpurge): Likewise.
23731         * lib/freadable.c (freadable): Likewise.
23732         * lib/freadahead.c (freadahead): Likewise.
23733         * lib/freading.c (freading): Likewise.
23734         * lib/freadptr.c (freadptr): Likewise.
23735         * lib/freadseek.c (freadptrinc): Likewise.
23736         * lib/fseeko.c (rpl_fseeko): Likewise.
23737         * lib/fseterr.c (fseterr): Likewise.
23738         * lib/fwritable.c (fwritable): Likewise.
23739         * lib/fwriting.c (fwriting): Likewise.
23740         Reported by Roger Cornelius <rac@tenzing.org> and
23741         Brian K. White <brian@aljex.com>.
23742
23743 2008-04-06  Jim Meyering  <meyering@redhat.com>
23744
23745         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
23746
23747 2008-04-06  Bruno Haible  <bruno@clisp.org>
23748
23749         Avoid possible error with non-ASCII bytes in UTF-8 locales.
23750         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
23751         * tests/test-printf-posix.sh: Likewise.
23752         * tests/test-vfprintf-posix.sh: Likewise.
23753         * tests/test-vprintf-posix.sh: Likewise.
23754         * tests/test-xprintf-posix.sh: Likewise.
23755
23756 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23757
23758         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
23759         hide error from 'ls', needed on OS/2.
23760         Report by Elbert Pol <elbert.pol@gmail.com>.
23761
23762 2008-04-04  Eric Blake  <ebb9@byu.net>
23763
23764         Make test-fseeko.c failures meaningful.
23765         * tests/test-fseeko.c: Print line number on failure.
23766         * tests/test-fseek.c: Likewise.
23767         Reported by Nelson H. F. Beebe.
23768
23769         Improve strtod bug detection check.
23770         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
23771         required for Solaris 10.
23772         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
23773
23774 2008-04-04  Bruno Haible  <bruno@clisp.org>
23775
23776         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
23777         by m4/setenv.m4.
23778
23779 2008-04-03  Eric Blake  <ebb9@byu.net>
23780
23781         Ensure sane .version contents.
23782         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
23783         version string.
23784         * build-aux/git-version-gen: Improve documentation.
23785
23786         Make GNU make output nicer.
23787         * top/GNUmakefile [!_have-Makefile]: Add dependency on
23788         MAKECMDGOALS to enforce message for all command line targets.  Set
23789         srcdir for use in maint.mk.
23790
23791         Another maintainer tweak.
23792         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
23793         a target that regenerates version.
23794
23795 2008-04-03  Jim Meyering  <meyering@redhat.com>
23796
23797         vc-list-files: don't cause coreutils "make po-check" failure
23798         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
23799
23800 2008-04-03  Eric Blake  <ebb9@byu.net>
23801
23802         Allow VPATH usage of vc-list-files.
23803         * build-aux/vc-list-files (scriptversion): Add timestamp.
23804         (options): Add --help, --version, -C.
23805         (CVS): Support installed cvsu.
23806
23807 2008-04-02  Bruno Haible  <bruno@clisp.org>
23808
23809         Avoid some "statement with no effect" warnings from gcc.
23810         * tests/test-wctype.c (main): Explicitly ignore unused values.
23811         Reported by Jim Meyering.
23812
23813 2008-04-02  Jim Meyering  <meyering@redhat.com>
23814
23815         Avoid some warnings from "gcc -Wshadow".
23816         * tests/test-frexp.c (exp): Define to a different identifier.
23817         * tests/test-frexpl.c (exp): Likewise.
23818
23819 2008-04-03  Jim Meyering  <meyering@redhat.com>
23820
23821         bootstrap: remove dangling *.[ch] symlinks from lib
23822         * build-aux/bootstrap [dangling symlink removal]: Move find's
23823         -depth option to precede all others, to avoid a warning.
23824         Remove *.[ch] files too, and from "$source_base" (usually lib/).
23825
23826 2008-04-02  Bruno Haible  <bruno@clisp.org>
23827
23828         Avoid some warnings from "gcc -Wshadow".
23829         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
23830         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
23831         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
23832         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
23833         Reported by Jim Meyering.
23834
23835 2008-04-01  Bruno Haible  <bruno@clisp.org>
23836
23837         Fix test to work on IRIX 6.5 with cc.
23838         * tests/test-math.c (numeric_equal): New function.
23839         (main): Use it.
23840
23841 2008-04-01  Bruno Haible  <bruno@clisp.org>
23842
23843         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
23844
23845 2008-04-01  Bruno Haible  <bruno@clisp.org>
23846
23847         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
23848         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23849         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
23850         (Depends-on): Remove math.
23851
23852         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
23853         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23854         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
23855         (Depends-on): Remove math.
23856
23857         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
23858         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23859         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
23860         (Depends-on): Remove math.
23861         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
23862         (Depends-on): Remove math.
23863
23864         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
23865         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
23866         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
23867         (Depends-on): Remove math.
23868         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
23869         (Depends-on): Remove math.
23870
23871         * tests/test-round1.c: Include nan.h.
23872         (main): Use NaNd instead of NAN.
23873         * modules/round-tests (Files): Add tests/nan.h.
23874
23875         * tests/test-trunc1.c: Include nan.h.
23876         (main): Use NaNd instead of NAN.
23877         * modules/trunc-tests (Files): Add tests/nan.h.
23878
23879         * tests/test-roundf1.c: Include nan.h.
23880         (main): Use NaNf instead of NAN.
23881         * modules/roundf-tests (Files): Add tests/nan.h.
23882
23883         * tests/test-truncf1.c: Include nan.h.
23884         (main): Use NaNf instead of NAN.
23885         * modules/truncf-tests (Files): Add tests/nan.h.
23886
23887         * tests/test-ceilf1.c: Include nan.h.
23888         (main): Use NaNf instead of NAN.
23889         * modules/ceilf-tests (Files): Add tests/nan.h.
23890
23891         * tests/test-floorf1.c: Include nan.h.
23892         (main): Use NaNf instead of NAN.
23893         * modules/floorf-tests (Files): Add tests/nan.h.
23894
23895         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
23896         (main): Use NaNf instead of NAN.
23897         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
23898
23899         * tests/test-isnand.c: Include nan.h instead of <math.h>.
23900         (main): Use NaNd instead of NAN.
23901         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
23902
23903         * tests/test-frexp.c: Include nan.h.
23904         (main): Use NaNd instead of NAN.
23905         * modules/frexp-tests (Files): Add tests/nan.h.
23906
23907         * lib/isnan.c: Don't include <math.h>.
23908         (FUNC): Don't use NAN macro.
23909         * modules/isnand-nolibm (Depends-on): Remove math.
23910         * modules/isnanf-nolibm (Depends-on): Remove math.
23911         * modules/isnanl (Depends-on): Remove math.
23912         * modules/isnanl-nolibm (Depends-on): Remove math.
23913
23914         * tests/nan.h: New file.
23915
23916 2008-04-01  Eric Blake  <ebb9@byu.net>
23917
23918         Fix typos.
23919         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
23920         values to be the right type.
23921
23922         For now, cater to gnulib strtod inaccuracies.
23923         * tests/test-strtod.c (main): Allow 1-ulp error on expected
23924         fractional results.  While not as nice from a QoI perspective, it
23925         is a quicker patch than correctly implementing decimal to binary
23926         rounding.
23927
23928 2008-03-31  Eric Blake  <ebb9@byu.net>
23929
23930         Guarantee a definition of NAN.
23931         * lib/math.in.h (NAN): Define if missing.
23932         * tests/test-math.c (main): Test it.
23933         * doc/posix-headers/math.texi (math.h): Document this.
23934         * lib/isnan.c (rpl_isnand): Use it.
23935         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
23936         * tests/test-floorf1.c (NaN): Likewise.
23937         * tests/test-frexp.c (NaN): Likewise.
23938         * tests/test-isnand.c (NaN): Likewise.
23939         * tests/test-isnanf.c (NaN): Likewise.
23940         * tests/test-round1.c (NaN): Likewise.
23941         * tests/test-roundf1.c (NaN): Likewise.
23942         * tests/test-snprintf-posix.h (NaN): Likewise.
23943         * tests/test-sprintf-posix.h (NaN): Likewise.
23944         * tests/test-trunc1.c (NaN): Likewise.
23945         * tests/test-truncf1.c (NaN): Likewise.
23946         * tests/test-vasnprintf-posix.c (NaN): Likewise.
23947         * tests/test-vasprintf-posix.c (NaN): Likewise.
23948         * modules/isnand-nolibm (Depends-on): Add math.
23949         * modules/isnanf-nolibm (Depends-on): Likewise.
23950         * modules/isnanl (Depends-on): Likewise.
23951         * modules/isnanl-nolibm (Depends-on): Likewise.
23952         * modules/snprintf-posix-tests (Depends-on): Likewise.
23953         * modules/sprintf-posix-tests (Depends-on): Likewise.
23954         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
23955         * modules/vsprintf-posix-tests (Depends-on): Likewise.
23956         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
23957         * modules/vasprintf-posix-tests (Depends-on): Likewise.
23958
23959 2008-03-31  Bruno Haible  <bruno@clisp.org>
23960
23961         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
23962         * doc/posix-functions/strtod.texi: Likewise.
23963
23964 2008-03-31  Bruno Haible  <bruno@clisp.org>
23965
23966         * tests/test-strtod.c (main): Don't use C99 syntax.
23967
23968 2008-03-31  Bruno Haible  <bruno@clisp.org>
23969
23970         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
23971         Reported by Eric Blake.
23972
23973 2008-03-31  Jim Meyering  <meyering@redhat.com>
23974
23975         Don't compare actual signbit return values.
23976         * tests/test-strtod.c (main): Rather, compare only their
23977         zero/non-zero nature.
23978
23979 2008-03-31  Eric Blake  <ebb9@byu.net>
23980
23981         More strtod documentation.
23982         * doc/posix-functions/strtod.texi (strtod): Interpret more test
23983         failures as distinct bugs.
23984
23985 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
23986
23987         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
23988         Problem reported by Erik Benada in
23989         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
23990
23991 2008-03-30  Bruno Haible  <bruno@clisp.org>
23992
23993         * tests/test-strtod.c: Add comments about which assertion fails on which
23994         platform.
23995         * doc/posix-functions/strtod.texi: Add info about many more platforms.
23996
23997 2008-03-30  Eric Blake  <ebb9@byu.net>
23998
23999         Test signbit behavior on zeros.
24000         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24001         (test_signbitd, test_signbitl): Likewise.
24002
24003         More strtod touchups.
24004         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24005         sign of negative underflow, for now.  Use .5, not .1.
24006         * doc/posix-functions/strtod.texi (strtod): Mention these
24007         limitations.
24008         Reported by Jim Meyering.
24009
24010 2008-03-30  Bruno Haible  <bruno@clisp.org>
24011
24012         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24013         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24014
24015 2008-03-30  Bruno Haible  <bruno@clisp.org>
24016
24017         Avoid failure when attempting to return empty iconv results on some
24018         platforms.
24019         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24020         allocation, don't report ENOMEM when the resulting string is empty.
24021
24022 2008-03-30  Bruno Haible  <bruno@clisp.org>
24023
24024         Fix buffer overrun.
24025         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24026         Don't consider the width for tmp_length. Check count against tmp_length
24027         before doing the padding. Ensure enough allocation during padding.
24028
24029 2008-03-30  Eric Blake  <ebb9@byu.net>
24030
24031         strtod touchups.
24032         * lib/strtod.c (strtod): Avoid compiler warnings.
24033         Reported by Jim Meyering.
24034
24035 2008-03-30  Bruno Haible  <bruno@clisp.org>
24036
24037         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24038         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24039         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24040         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24041         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24042         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24043         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24044         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24045
24046         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24047         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24048         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24049         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24050         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24051         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24052         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24053         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24054
24055         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24056         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24057         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24058         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24059         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24060         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24061         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24062         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24063
24064         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24065         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24066
24067         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24068         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24069
24070         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24071         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24072
24073         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24075         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24076
24077         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24078         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24079         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24080
24081         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24082         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24083         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24084
24085         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24086         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24087         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24088
24089         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24090         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24092         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24093         (Depends-on): Add EOVERFLOW.
24094         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24095         (Depends-on): Add EOVERFLOW.
24096         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24097         (Depends-on): Add EOVERFLOW.
24098         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24099         (Depends-on): Add EOVERFLOW.
24100         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24101         (Depends-on): Add EOVERFLOW.
24102         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24103         (Depends-on): Add EOVERFLOW.
24104         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24105         (Depends-on): Add EOVERFLOW.
24106         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24107         (Depends-on): Add EOVERFLOW.
24108
24109         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24111         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24112
24113         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24115         * modules/snprintf (Depends-on): Add EOVERFLOW.
24116
24117         * lib/poll.c (EOVERFLOW): Remove fallback.
24118         * modules/poll (Depends-on): Add EOVERFLOW.
24119
24120         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24121         * modules/getugroups (Depends-on): Add EOVERFLOW.
24122
24123         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24124         * modules/getdelim (Depends-on): Add EOVERFLOW.
24125
24126         * lib/ftell.c (EOVERFLOW): Remove fallback.
24127         * modules/ftell (Depends-on): Add EOVERFLOW.
24128
24129         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24130         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24131         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24132
24133         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24134
24135         * modules/EOVERFLOW-tests: New file.
24136         * tests/test-EOVERFLOW.c: New file.
24137
24138         * modules/EOVERFLOW: New file.
24139         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24140
24141 2008-03-30  Bruno Haible  <bruno@clisp.org>
24142
24143         Fix bug introduced on 2007-06-10.
24144         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24145         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24146
24147 2008-03-30  Bruno Haible  <bruno@clisp.org>
24148
24149         Improve freadseek's efficiency after ungetc.
24150         * lib/freadseek.c: Include freadahead.h.
24151         (freadptrinc): New function, extracted from freadseek.
24152         (freadseek): Use it in a loop. Use freadahead to determine the number
24153         of loop iterations.
24154         * modules/freadseek (Depends-on): Add freadahead.
24155         (configure.ac): Require AC_C_INLINE.
24156
24157 2008-03-30  Bruno Haible  <bruno@clisp.org>
24158
24159         * lib/freadseek.c (freadseek): Don't ignore the return value of
24160         freadptr.
24161
24162 2008-03-29  Eric Blake  <ebb9@byu.net>
24163
24164         Add hex float support.
24165         * modules/strtod (Depends-on): Add c-ctype.
24166         (Link): Mention POW_LIB.
24167         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24168         whitespace between 'e' and exponent.
24169         * tests/test-strtod.c (main): Enable hex float tests.
24170         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24171         now provides.
24172
24173         Document various strtod bugs, with some fixes.
24174         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24175         "-0x", "inf", "nan", and hex constants.
24176         * doc/posix-functions/atof.texi (atof): Likewise.
24177         * modules/stdlib (Makefile.am): Support strtod.
24178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24179         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24180         detect additional strtod bugs.
24181         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24182         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24183         bool where appropriate.  Parse 'inf' and 'nan'.
24184         * tests/test-strtod.c: New file.
24185         * modules/strtod (Depends-on): Add stdbool, stdlib.
24186         (configure.ac): Turn on module indicator.
24187         * modules/strtod-tests: New module.
24188
24189 2008-03-29  Eric Blake  <ebb9@byu.net>
24190
24191         Fix ftell on mingw.
24192         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24193         * modules/ftell-tests (Depends-on): Add binary-io.
24194         * modules/ftello-tests (Depends-on): Likewise.
24195         * tests/test-ftell.c (main): Enhance test to cover behavior after
24196         ungetc.  Enforce binary mode.
24197         * tests/test-ftello.c (main): Likewise.
24198
24199         Pass test-freadseek on cygwin.
24200         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24201         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24202         ungetc buffer.
24203
24204         * tests/test-fflush2.c (main): Fix typo.
24205
24206 2008-03-29  Bruno Haible  <bruno@clisp.org>
24207
24208         * tests/test-fflush2.c (main): Temporarily disable the contents of
24209         this test.
24210         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24211         Reported by Eric Blake.
24212
24213 2008-03-28  Simon Josefsson  <simon@josefsson.org>
24214
24215         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24216         (GC_SHA224_DIGEST_SIZE): Add.
24217
24218         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24219         (gc_hash_digest_length): Likewise.
24220         (gc_hash_buffer): Likewise.
24221
24222 2008-03-25  Bruno Haible  <bruno@clisp.org>
24223
24224         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24225         detail which gettext release to use.
24226         Reported by Simon Josefsson.
24227
24228 2008-03-26  Jim Meyering  <meyering@redhat.com>
24229
24230         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24231         * modules/gnumakefile (clean-GNUmakefile): Also, use
24232         test ... && ... || : syntax rather than if-then ... fi.
24233
24234         gnumakefile: Don't double-quote-expand $(VPATH) value.
24235         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24236
24237 2008-03-24  Eric Blake  <ebb9@byu.net>
24238
24239         Alter GNUmakefile to install into top directory.
24240         * modules/maintainer-makefile: Split, and add dependency...
24241         * modules/gnumakefile: to this new module.
24242         * build-aux/GNUmakefile: Move...
24243         * top/GNUmakefile: ...here.
24244         * build-aux/maint.mk: Move...
24245         * top/maint.mk: ...here.
24246         * MODULES.html.sh (Support for maintaining...): Document new
24247         module.
24248
24249 2008-03-23  Bruno Haible  <bruno@clisp.org>
24250
24251         * gnulib-tool: New options --vc-files, --no-vc-files.
24252         (func_usage): Document them.
24253         (vc_files): New variable.
24254         (func_import): Consider vc_files.
24255         (func_create_testdir): Set vc_files to empty.
24256         Suggested by Jim Meyering and Karl Berry.
24257
24258 2008-03-23  Bruno Haible  <bruno@clisp.org>
24259
24260         Fix regex compilation error on HP-UX 11.
24261         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24262         * modules/regex (Files): Add m4/mbstate_t.m4.
24263         Reported by Ton Voon <ton.voon@altinity.com>.
24264
24265 2008-03-23  Bruno Haible  <bruno@clisp.org>
24266
24267         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24268
24269 2008-03-23  Eric Blake  <ebb9@byu.net>
24270             Bruno Haible  <bruno@clisp.org>
24271
24272         Install files from top/ in the destination directory.
24273         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24274         augmentation also for the files from top/.
24275         (func_import, func_create_testdir): Rewrite file names:
24276         top/filename -> filename.
24277
24278 2008-03-23  Bruno Haible  <bruno@clisp.org>
24279
24280         Tweak "gnulib --version" output.
24281         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24282
24283 2008-03-23  Bruno Haible  <bruno@clisp.org>
24284
24285         Tweak "gnulib --version" output.
24286         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24287         rather than contents of ChangeLog, when possible.
24288
24289 2008-03-21  Eric Blake  <ebb9@byu.net>
24290
24291         More --version tweaks.
24292         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
24293         date of last ChangeLog entry.
24294
24295 2008-03-21  Jim Meyering  <meyering@redhat.com>
24296
24297         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24298
24299 2008-03-20  Eric Blake  <ebb9@byu.net>
24300
24301         VPATH fix.
24302         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24303
24304 2008-03-20  Simon Josefsson  <simon@josefsson.org>
24305
24306         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
24307         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
24308
24309 2008-03-20  Eric Blake  <ebb9@byu.net>
24310
24311         Sync GNUmakefile with coreutils.
24312         * build-aux/GNUmakefile (have-Makefile): Rename...
24313         (_have-Makefile): ...to this, for namespace consideration.
24314         (GNUmakefile.cfg): Include, if present.
24315         (_autoreconf): Define a default.
24316         (_is-dist-target): New rule for rebuilds to pick up intra-release
24317         version.
24318         (maint-cfg.mk): Rename...
24319         (cfg.mk): ...to this.
24320
24321 2008-03-18  Jim Meyering  <meyering@redhat.com>
24322
24323         New script and module: mktempd
24324         * MODULES.html.sh (maint+release support): Add mktempd.
24325         * build-aux/mktempd: New file.
24326         * modules/mktempd: New file.
24327
24328 2008-03-15  Jim Meyering  <meyering@redhat.com>
24329
24330         Undo last change.
24331         * lib/sha1.c, lib/md5.c: 63 != ~63.
24332         Reported by Andreas Schwab.
24333
24334         sha1.c, md5.c: Hoist a redundant expression.
24335         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24336         "ctx->buflen" only once, before calling *_process_block.
24337         * lib/md5.c (md5_process_bytes): Likewise.
24338
24339 2008-03-14  Eric Blake  <ebb9@byu.net>
24340
24341         Bump copyright year in files generated by gnulib-tool.
24342         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24343         gnulib-tool, rather than hard-coding it.
24344
24345         Fix 'gnulib-tool --version' output to work with git.
24346         * gnulib-tool (func_gnulib_dir): New function, extracted from...
24347         (startup): ...here.
24348         (func_version): Use it to invoke git-version-gen, rather than
24349         relying on CVS keyword expansion.  Modernize wording.
24350         (cvsdatestamp, last_checkin_date, version): Kill unused
24351         variables.
24352
24353 2008-03-12  Jim Meyering  <meyering@redhat.com>
24354
24355         Recognize optional cast of the argument to free.
24356         * build-aux/useless-if-before-free: Update regexps.
24357
24358         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24359
24360 2008-03-11  Bruno Haible  <bruno@clisp.org>
24361
24362         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24363         by a single package.
24364         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24365         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24366         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24367         Reported by Sam Steingold <sds@gnu.org>.
24368
24369 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24370
24371         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24372         repositories.
24373
24374 2008-03-11  Bruno Haible  <bruno@clisp.org>
24375
24376         Avoid conflicts between local macro definitions.
24377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24378         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24379
24380 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
24381             Bruno Haible  <bruno@clisp.org>
24382
24383         Make va_copy work with some version of xlc on AIX 5.1.
24384         * lib/stdarg.in.h: New file.
24385         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24386         On AIX, use a <stdarg.h> file substitute.
24387         * modules/stdarg (Files): Add lib/stdarg.in.h.
24388         (Depends-on): Add include_next.
24389         (Makefile.am): Build a stdarg.h substitute if requested.
24390         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24391
24392 2008-03-10  Bruno Haible  <bruno@clisp.org>
24393
24394         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24395         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24396         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24397
24398 2008-03-10  Bruno Haible  <bruno@clisp.org>
24399
24400         * modules/stdlib (Depends-on): Add include_next, remove
24401         absolute-header.
24402
24403 2008-03-09  Bruno Haible  <bruno@clisp.org>
24404
24405         * lib/freadahead.h (freadahead): Document more precisely.
24406         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24407         the sum of both buffer sizes.
24408         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24409         * NEWS: Document the change.
24410
24411 2008-03-09  Bruno Haible  <bruno@clisp.org>
24412
24413         Extend freadptr to return also the buffer size.
24414         * lib/freadptr.h (freadptr): Add sizep argument.
24415         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24416         (freadptr): Add sizep argument. Determine buffer size like freadahead
24417         does.
24418         * tests/test-freadptr.c: Don't include freadahead.h.
24419         (main): Adapt for new calling convention of freadptr.
24420         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24421         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24422         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24423         tests/test-freadptr2.sh.
24424         (Depends): Remove freadahead.
24425         (TESTS): Add test-freadptr2.sh.
24426         (check_PROGRAMS): Add test-freadptr2.
24427
24428 2008-03-09  Bruno Haible  <bruno@clisp.org>
24429
24430         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24431         Report and solution by Simon Josefsson.
24432
24433 2008-03-06  Bruno Haible  <bruno@clisp.org>
24434
24435         Make fflush after ungetc work on BSD platforms.
24436         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24437         * tests/test-fflush2.c: New file.
24438         * tests/test-fflush2.sh: New file.
24439         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24440         tests/test-fflush2.c.
24441         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24442         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24443
24444 2008-03-06  Eric Blake  <ebb9@byu.net>
24445
24446         Likewise for ftello.
24447         * modules/ftello (Dependencies): Add extensions.
24448         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24449
24450 2008-03-06  Bruno Haible  <bruno@clisp.org>
24451
24452         * modules/fseeko (Dependencies): Add extensions.
24453         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24454         Needed on glibc systems.
24455
24456 2008-03-06  Bruno Haible  <bruno@clisp.org>
24457
24458         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24459         email address.
24460         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24461
24462 2008-03-06  Bruno Haible  <bruno@clisp.org>
24463
24464         * users.txt: Add libgnupdf.
24465
24466 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24467
24468         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24469         (Header File Substitutes, Function Substitutes,
24470         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24471         (Build robot for gnulib): Fix typo.
24472
24473 2008-03-06  Bruno Haible  <bruno@clisp.org>
24474
24475         * doc/gnulib-tool.texi (VCS Issues): Small updates.
24476         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24477
24478 2008-03-06  Bruno Haible  <bruno@clisp.org>
24479
24480         * doc/func.texi: New file, extracted from doc/gnulib.texi.
24481         * doc/gnulib.texi: Include it.
24482
24483 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24484
24485         * modules/func (License): Change license to unlimited; there was
24486         no LGPL parts in the module anyway.
24487
24488 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24489
24490         * modules/__func__: Renamed to modules/func.
24491         * modules/__func__-tests: Renamed to modules/func-tests.
24492         * tests/test-__func__.c: Renamed to tests/test-func.c.
24493         * m4/__func__.m4: Renamed to m4/func.m4.
24494         * doc/gnulib.texi (__func__): Section renamed to func.
24495         Suggested by Eric Blake <ebb9@byu.net>.
24496
24497 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24498
24499         * doc/gnulib.texi (__func__): Use C99 terminology when talking
24500         about __func__.  Make example self-contained.  Suggested by Eric
24501         Blake <ebb9@byu.net>.
24502
24503         * tests/test-__func__.c (main): Avoid extraneous () around __func.
24504         Suggested by Eric Blake <ebb9@byu.net>.
24505
24506 2008-03-06  Simon Josefsson  <simon@josefsson.org>
24507
24508         * modules/__func__: New file.
24509         * modules/__func__-tests: New file.
24510         * tests/test-__func__.c: New file.
24511         * m4/__func__.m4: New file.
24512         * doc/gnulib.texi (__func__): Document __func__ module.
24513
24514 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24515
24516         * modules/byteswap (License): Re-license as LGPLv2+.
24517
24518 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24519
24520         * doc/Makefile: Add pdf target.
24521
24522 2008-03-05  Simon Josefsson  <simon@josefsson.org>
24523
24524         * modules/inline (License): Use 'unlimited', since there are only
24525         *.m4 files in this module.
24526
24527 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24528             Bruno Haible  <bruno@clisp.org>
24529
24530         Add support for HP C 7.1 on OpenVMS 8.3.
24531         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
24532
24533 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
24534
24535         Update VMS specifics.
24536         * lib/getopt.c [VMS]: Remove include of unixlib.h.
24537
24538 2008-03-02  Jim Meyering  <meyering@redhat.com>
24539
24540         Remove the last dependency on the "free" module.
24541         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
24542         Reported by Bob Proulx.
24543
24544         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
24545
24546         Remove useless "if" tests before free.  Deprecate "free" module.
24547         * doc/posix-functions/free.texi: Mention that this
24548         module is no longer useful.
24549         * modules/free (Notice): Say this module is obsolete.
24550         * modules/readutmp (Depends-on): Remove free.
24551         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
24552         * lib/putenv.c (putenv): Likewise.
24553         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
24554         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
24555         * tests/test-c-strcasestr.c (main): Likewise.
24556         * tests/test-c-strstr.c (main): Likewise.
24557         * tests/test-mbscasestr1.c (main): Likewise.
24558         * tests/test-mbscasestr2.c (main): Likewise.
24559         * tests/test-mbsstr1.c (main): Likewise.
24560         * tests/test-mbsstr2.c (main): Likewise.
24561         * tests/test-memmem.c (main): Likewise.
24562         * tests/test-strcasestr.c (main): Likewise.
24563         * tests/test-striconv.c (main): Likewise.
24564         * tests/test-striconveh.c (main): Likewise.
24565         * tests/test-striconveha.c (main): Likewise.
24566         * tests/test-strstr.c (main): Likewise.
24567
24568         * build-aux/git-version-gen: Adjust a comment and the Usage string.
24569
24570         bootstrap: sync from coreutils again
24571         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
24572
24573 2008-03-01  Jim Meyering  <meyering@redhat.com>
24574
24575         bootstrap: sync from coreutils
24576         * build-aux/bootstrap (update_po_files): Copy a .po file into place
24577         also when the target doesn't exist.
24578
24579 2008-03-01  Eric Blake  <ebb9@byu.net>
24580
24581         Fix bugs in last patch.
24582         * lib/memchr2.c (memchr2): Fix typo.
24583         * tests/test-memchr2.c: Test previous bug, and don't use GNU
24584         extension.
24585         Reported by Bruce Korb.
24586
24587         New module 'memchr2'.
24588         * modules/memchr2: New file.
24589         * modules/memchr2-tests: Likewise.
24590         * lib/memchr2.h: Likewise.
24591         * lib/memchr2.c: Likewise, based on memchr.c.
24592         * tests/test-memchr2.c: New test.
24593         * MODULES.html.sh (String handling): Add memchr2.
24594
24595 2008-02-29  Bruno Haible  <bruno@clisp.org>
24596
24597         * modules/freadseek-tests: New file.
24598         * tests/test-freadseek.sh: New file.
24599         * tests/test-freadseek.c: New file.
24600
24601         New module 'freadseek'.
24602         * modules/freadseek: New file.
24603         * lib/freadseek.h: New file.
24604         * lib/freadseek.c: New file.
24605         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
24606
24607 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
24608
24609         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
24610         wydawca.
24611
24612         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
24613         program_invocation_name and program_invocation_short_name are
24614         present.
24615
24616 2008-02-28  Bruno Haible  <bruno@clisp.org>
24617
24618         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
24619         * tests/test-freadptr.sh: Also test non-seekable stdin.
24620
24621 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
24622
24623         * build-aux/bootstrap (source_base, m4_base)
24624         (doc_base, tests_base): New variables.
24625         (gnulib_tool_options): Do not hardcode base directories, use
24626         the above variables instead.
24627
24628 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
24629
24630         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
24631
24632 2008-02-28  Bruno Haible  <bruno@clisp.org>
24633
24634         * modules/freadptr-tests: New file.
24635         * tests/test-freadptr.sh: New file.
24636         * tests/test-freadptr.c: New file.
24637
24638         New module 'freadptr'.
24639         * modules/freadptr: New file.
24640         * lib/freadptr.h: New file.
24641         * lib/freadptr.c: New file.
24642         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
24643
24644 2008-02-26  Karl Berry  <karl@freefriends.org>
24645
24646         Sync from Libtool:
24647         * libltdl/argz.c (argz_add, argz_count): New functions.
24648         * libltdl/argz.in.h: Declare them.
24649         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
24650
24651 2008-02-22  Bruno Haible  <bruno@clisp.org>
24652
24653         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
24654         is a pointer type.  Needed for HP-UX 10.
24655         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
24656         * doc/posix-functions/gmtime_r.texi: Likewise.
24657         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24658
24659 2008-02-24  Bruno Haible  <bruno@clisp.org>
24660
24661         * modules/environ-tests: New file.
24662         * tests/test-environ.c: New file.
24663
24664         New module 'environ'.
24665         * modules/environ: New file.
24666         * lib/unistd.in.h (environ): New declaration.
24667         * m4/environ.m4: New file.
24668         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
24669         after use.
24670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
24671         HAVE_DECL_ENVIRON.
24672         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
24673         HAVE_DECL_ENVIRON.
24674         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
24675         wrong claim that 'environ' is missing on some systems.
24676         * modules/execute (Depends-on): Add environ.
24677         * lib/execute.c (environ): Remove fallback declaration.
24678         * modules/pipe (Depends-on): Add environ.
24679         * lib/pipe.c (environ): Remove fallback declaration.
24680         * modules/setenv (Depends-on): Add environ.
24681         * lib/setenv.c (environ): Remove fallback declaration.
24682         * modules/unsetenv (Depends-on): Add environ.
24683         * lib/unsetenv.c (environ): Remove fallback declaration.
24684         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
24685         m4/environ.m4.
24686         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
24687         (gl_PREREQ_UNSETENV): Likewise.
24688
24689 2008-02-24  Bruno Haible  <bruno@clisp.org>
24690
24691         * doc/posix-functions/environ.texi: Document the MacOS X problem.
24692
24693 2008-02-20  Bob Proulx  <bob@proulx.com>
24694
24695         Enable use of older two part flavor 'git describe'.
24696         * build-aux/git-version-gen: If using the older two part flavor of
24697         git version then recreate the third part now present in the
24698         newer three part flavor of git describe.
24699
24700 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
24701
24702         * lib/fts.c (fts_build): Typo correction to comment.
24703
24704 2008-02-17  Bruno Haible  <bruno@clisp.org>
24705
24706         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
24707         generating no-op conflicts.
24708
24709 2008-02-17  Bruno Haible  <bruno@clisp.org>
24710
24711         Speed up by 10%.
24712         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
24713         result_entries, rather than an index-based loop.
24714
24715 2008-02-17  Bruno Haible  <bruno@clisp.org>
24716
24717         Speed up by 25%.
24718         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
24719         'hashcode_cached'.
24720         (entry_create): New function.
24721         (entry_hashcode): Use the cached hashcode if possible.
24722         (read_changelog_file, try_split_merged_entry): Use entry_create.
24723
24724 2008-02-17  Bruno Haible  <bruno@clisp.org>
24725
24726         Speed up from O(n^2) to O(n) for long ChangeLog files.
24727         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
24728         (read_changelog_file): Change implementation of entries_reversed list
24729         to rbtreehash.
24730         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
24731
24732 2008-02-17  Bruno Haible  <bruno@clisp.org>
24733
24734         New option --split-merged-entry.
24735         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
24736         (find_paragraph_end, try_split_merged_entry): New functions.
24737         (long_options): Add option --split-merged-entry.
24738         (usage): Document option --split-merged-entry.
24739         (main): Implement option --split-merged-entry.
24740         Reported by Eric Blake.
24741
24742 2008-02-17  Bruno Haible  <bruno@clisp.org>
24743
24744         * lib/git-merge-changelog.c: Include c-strstr.h.
24745         (main): Support the "git pull --rebase" situation.
24746         * modules/git-merge-changelog (Depends-on): Add c-strstr.
24747         Reported by Eric Blake.
24748
24749 2008-02-16  Eric Blake  <ebb9@byu.net>
24750
24751         Avoid doubling \ in common case of "c-maybe" quoting style.
24752         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
24753         eliding outer quotes.
24754         * lib/quotearg.h: Document this.
24755         * tests/test-quotearg.c (result_strings, inputs, results_g)
24756         (flag_results, locale_results): Test it by adding a new string to
24757         each test group.
24758         (compare_strings): Test new string.
24759
24760 2008-02-13  Eric Blake  <ebb9@byu.net>
24761
24762         Avoid trigraph quoting in default output.
24763         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
24764         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
24765         unless explicitly requested.
24766         * tests/test-quotearg.c (flag_results, main): Add additional tests.
24767
24768 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
24769
24770         Don't rely on signed integer overflowing to negative value.
24771         * lib/getugroups.c (getugroups): Include <limits.h>.
24772         Instead, compare against INT_MAX, and increment only if the test passes.
24773
24774 2008-02-13  Jim Meyering  <meyering@redhat.com>
24775         and Eric Blake  <ebb9@byu.net>
24776
24777         Avoid shadowing warning and compile errors on Linux.
24778         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
24779         forwarding macros on Linux.
24780         (dcgettext): Define a stub, for Linux.
24781         (results_g, main): Avoid warnings.
24782
24783 2008-02-12  Eric Blake  <ebb9@byu.net>
24784
24785         Silence warning in last patch.
24786         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
24787
24788         Quotearg part 4: add tests, fix c-maybe colon quoting.
24789         * lib/quotearg.h: Improve documentation.
24790         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
24791         escapes when adding outer quotes.  When quoting trigraphs, use
24792         valid C notation.  When quoting NUL, omit extra characters if next
24793         character is not digit.  Alter prototype.
24794         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
24795         callers.
24796         * modules/quotearg-tests: New module.
24797         * tests/test-quotearg.c: New test.
24798
24799 2008-02-07  Eric Blake  <ebb9@byu.net>
24800
24801         Quotearg part 3: add flag to control outer quote elision.
24802         * lib/quotearg.h (c_maybe_quoting_style): New style.
24803         (enum quoting_flags): Better documentation of flags.
24804         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
24805         c-maybe style.
24806         (quotearg_buffer_restyled): Handle new flag to elide outer
24807         quotes.
24808
24809         Quotearg part 2: add flag that can control NUL elision.
24810         * lib/quotearg.h (set_quoting_flags): New prototype.
24811         * lib/quotearg.c (struct quoting_options): Add flag field.
24812         (set_quoting_flags): New function.
24813         (quotearg_buffer_restyled): Add flags parameter.
24814         (quotearg_alloc_mem): Set the flag if length cannot be returned.
24815         (quotearg_n_options): Set the flag, since length cannot be
24816         returned.
24817         (quoting_options_from_style): Default flags correctly.
24818
24819         Quotearg part 1: more wrappers, restore quotearg_char state.
24820         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
24821         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
24822         (quotearg_colon_mem): New wrappers.
24823         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
24824         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
24825         functions.
24826         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
24827         (quotearg_colon_mem): New functions.
24828
24829 2008-02-11  Bruno Haible  <bruno@clisp.org>
24830
24831         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
24832         library in the current directory: it does not work with parallel make.
24833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24834
24835 2008-02-11  Bruno Haible  <bruno@clisp.org>
24836
24837         * .gitattributes: New file.
24838
24839 2008-02-11  Jim Meyering  <meyering@redhat.com>
24840
24841         useless-if-before-free: Fix reversed exit values.
24842         * build-aux/useless-if-before-free: Use correct values
24843         for EXIT_MATCH and EXIT_NO_MATCH.
24844
24845         * build-aux/useless-if-before-free: Close stdout carefully.
24846
24847 2008-02-10  Bruno Haible  <bruno@clisp.org>
24848
24849         New module 'git-merge-changelog'.
24850         * modules/git-merge-changelog: New file.
24851         * lib/git-merge-changelog.c: New file.
24852
24853 2008-02-10  Jim Meyering  <meyering@redhat.com>
24854
24855         useless-if-before-free: New option: --list (-l).
24856
24857         useless-if-before-free: Don't exit immediately upon open failure.
24858         * build-aux/useless-if-before-free: Exit 2 for errors.
24859         Upon failure to open a file, don't exit immediately.
24860         Rather, just warn and continue with any remaining files.
24861
24862 2008-02-10  Bruno Haible  <bruno@clisp.org>
24863
24864         New abstract list operation 'node_set_value'.
24865         * lib/gl_list.h (gl_list_node_set_value): New function.
24866         (struct gl_list_implementation): New field node_set_value.
24867         * lib/gl_list.c (gl_list_node_set_value): New function.
24868         * lib/gl_array_list.c (gl_array_node_set_value): New function.
24869         (gl_array_list_implementation): Update.
24870         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
24871         (gl_carray_list_implementation): Update.
24872         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
24873         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
24874         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
24875         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
24876         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
24877         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
24878         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
24879         Update.
24880         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
24881         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
24882         (gl_sublist_list_implementation): Update.
24883
24884 2008-02-10  Bruno Haible  <bruno@clisp.org>
24885
24886         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
24887         Needed when ELEMENT is #defined to 'some_type *'.
24888
24889 2008-02-10  Jim Meyering  <meyering@redhat.com>
24890
24891         New script and module: useless-if-before-free
24892         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
24893         * build-aux/useless-if-before-free: New file.
24894         * modules/useless-if-before-free: New file.
24895
24896         * build-aux/gitlog-to-changelog: Use committer date, not author date.
24897
24898         xstrtol_error: Fix typo.
24899         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
24900         s/exit_failure/exit_status/.
24901
24902 2008-02-09  Jim Meyering  <meyering@redhat.com>
24903
24904         New script and module: gitlog-to-changelog
24905         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
24906         * modules/gitlog-to-changelog: New file.
24907         * build-aux/gitlog-to-changelog: New file.
24908
24909 2008-02-08  Jim Meyering  <meyering@redhat.com>
24910
24911         Avoid two "parameter unused" warnings.
24912         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
24913         Mark "st" as used.
24914
24915         Use "git COMMAND", not "git-COMMAND".
24916         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
24917         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
24918         * build-aux/git-version-gen: Use "git status", not "git-status".
24919
24920 2008-02-07  Bruno Haible  <bruno@clisp.org>
24921
24922         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
24923         Avoids a crash on Windows Vista.
24924         Reported by Adam Strzelecki <ono@java.pl> via
24925         Simon Josefsson <simon@josefsson.org>.
24926
24927 2008-02-06  Bruno Haible  <bruno@clisp.org>
24928
24929         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
24930         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
24931         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
24932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
24933         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24935         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
24936         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
24937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24941         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24944         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
24945         left-adjust flag.
24946         * tests/test-snprintf-posix.h (test_function): Likewise.
24947         * tests/test-sprintf-posix.h (test_function): Likewise.
24948         * tests/test-vasprintf-posix.c (test_function): Likewise.
24949         * doc/posix-functions/fprintf.texi: Update.
24950         * doc/posix-functions/printf.texi: Update.
24951         * doc/posix-functions/snprintf.texi: Update.
24952         * doc/posix-functions/sprintf.texi: Update.
24953         * doc/posix-functions/vfprintf.texi: Update.
24954         * doc/posix-functions/vprintf.texi: Update.
24955         * doc/posix-functions/vsnprintf.texi: Update.
24956         * doc/posix-functions/vsprintf.texi: Update.
24957         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24958
24959 2008-02-06  Bruno Haible  <bruno@clisp.org>
24960
24961         Fix bug introduced on 2008-01-26.
24962         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
24963
24964 2008-02-06  Bruno Haible  <bruno@clisp.org>
24965
24966         Fix bug introduced on 2007-06-10.
24967         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
24968         !NEED_PRINTF_FLAG_ZERO.
24969
24970 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
24971
24972         getloadavg: use libperfstat on AIX5
24973         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
24974
24975 2008-02-03  Bruno Haible  <bruno@clisp.org>
24976
24977         * lib/diffseq.h: Add comments about required #includes.
24978         Reported by Michael Biggs <gnulib@doubleplum.net>.
24979
24980 2008-02-01  Bruno Haible  <bruno@clisp.org>
24981
24982         * users.txt: Add gnuit.
24983
24984 2008-01-31  Bruno Haible  <bruno@clisp.org>
24985
24986         * lib/md4.c (set_uint32): Mark as inline.
24987         * lib/md5.c (set_uint32): Likewise.
24988         * lib/sha1.c (set_uint32): Likewise.
24989         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
24990         * m4/md5.m4 (gl_MD5): Likewise.
24991         * m4/sha1.m4 (gl_SHA1): Likewise.
24992
24993 2008-01-31  Jim Meyering  <meyering@redhat.com>
24994
24995         Use "sizeof VAR", rather than a literal "4".
24996         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
24997         * lib/md4.c (md4_read_ctx): Likewise.
24998         * lib/sha1.c (sha1_read_ctx): Likewise.
24999
25000 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25001
25002         * tests/test-sha1.c: New file, based on test-md5.c.
25003
25004         * modules/crypto/sha1-tests: New file.
25005
25006 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25007
25008         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25009
25010 2008-01-31  Jim Meyering  <meyering@redhat.com>
25011
25012         Prefer "sizeof v" over the equivalent "4".
25013         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25014         * lib/md5.c (set_uint32): Likewise.
25015         * lib/sha1.c (set_uint32): Likewise.
25016
25017 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25018
25019         * lib/sha1.c (set_uint32): Mark function as static.
25020
25021 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25022
25023         md2: clarify comments to say that alignment is not required.
25024         * lib/md2.h: Remove warning about alignment in comment.
25025         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25026         never been required.
25027
25028 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25029
25030         md4: adapt alignment constraint fix from sha1.
25031         * lib/md4.c (set_uint32): New function, from sha1.c
25032         (md4_read_ctx): Use it.
25033         (md4_finish_ctx): Doc fix.
25034         * lib/md4.h: Doc fix.
25035
25036 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25037
25038         md5: adapt alignment constraint fix from sha1.
25039         * lib/md5.c (set_uint32): New function, from sha1.c
25040         (md5_read_ctx): Use it.
25041         (md5_finish_ctx): Doc fix.
25042         * lib/md5.h: Doc fix.
25043
25044 2008-01-30  Peter Palfrader  <weasel@debian.org>
25045
25046         sha1: remove the result buffer alignment constraint
25047         * lib/sha1.c (set_uint32): New function.
25048         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25049         constraint.
25050         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25051         * lib/sha1.h: Likewise.
25052
25053 2008-01-30  Andreas Schwab  <schwab@suse.de>
25054             Bruno Haible  <bruno@clisp.org>
25055
25056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25057         correct definition of LDBL_MIN_EXP.
25058
25059 2008-01-30  Karl Berry  <karl@gnu.org>
25060
25061         * config/srclist-update: try to preserve x bit on updates.
25062         * config/srclistvars.sh: update for karl.
25063
25064 2008-01-29  Jim Meyering  <meyering@redhat.com>
25065
25066         vasnprintf.c: Avoid warning about unused label
25067         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25068         "overflow" label definition and associated code with the
25069         same cpp condition that guards the sole use of that label.
25070
25071 2008-01-26  Bruno Haible  <bruno@clisp.org>
25072
25073         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25074         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25075         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25076         * lib/isnanl-nolibm.h (isnanl): Likewise.
25077         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25078
25079 2008-01-26  Bruno Haible  <bruno@clisp.org>
25080
25081         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25082         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25083
25084 2008-01-26  Bruno Haible  <bruno@clisp.org>
25085
25086         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25087         GCC >= 4.0 built-in.
25088         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25089
25090 2008-01-26  Bruno Haible  <bruno@clisp.org>
25091
25092         Rename isnan, applicable to 'double' only, to isnand.
25093         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25094         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25095         (configure.ac): Update.
25096         (Include): Replace "isnan.h" with "isnand.h".
25097         * m4/isnand.m4: Renamed from m4/isnan.m4.
25098         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25099         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25100         instead of isnan.c.
25101         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25102         instead of HAVE_ISNAN_IN_LIBC.
25103         (isnand): Renamed from isnan.
25104         * lib/isnand.c: New file.
25105         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25106         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25107         (Makefile.am): Update.
25108         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25109         Include isnand.h instead of isnan.h.
25110         (main): Test isnand instead of isnan.
25111         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25112         isnan-nolibm.
25113         * modules/frexp (Depends-on): Likewise.
25114         * modules/frexp-tests (Depends-on): Likewise.
25115         * modules/frexp-nolibm (Depends-on): Likewise.
25116         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25117         * modules/isfinite (Depends-on): Likewise.
25118         * modules/round-tests (Depends-on): Likewise.
25119         * modules/signbit (Depends-on): Likewise.
25120         * modules/signbit-tests (Depends-on): Likewise.
25121         * modules/snprintf-posix (Depends-on): Likewise.
25122         * modules/sprintf-posix (Depends-on): Likewise.
25123         * modules/trunc-tests (Depends-on): Likewise.
25124         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25125         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25126         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25128         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25130         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25131         * modules/vasnprintf-posix (Depends-on): Likewise.
25132         * modules/vasprintf-posix (Depends-on): Likewise.
25133         * modules/vfprintf-posix (Depends-on): Likewise.
25134         * modules/vsnprintf-posix (Depends-on): Likewise.
25135         * modules/vsprintf-posix (Depends-on): Likewise.
25136         * lib/frexp.c: Include isnand.h instead of isnan.h.
25137         (ISNAN): Set to isnand instead of isnan.
25138         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25139         (gl_isfinited): Use isnand instead of isnan.
25140         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25141         (gl_signbitd): Use isnand instead of isnan.
25142         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25143         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25144         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25145         (main): Use isnand instead of isnan.
25146         * tests/test-round1.c: Include isnand.h.
25147         (main): Use isnand instead of isnan.
25148         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25149         (ISNAN): Set to isnand instead of isnan.
25150         * tests/test-trunc1.c: Include isnand.h.
25151         (main): Use isnand instead of isnan.
25152         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25153         (equal): Use isnand instead of isnan.
25154         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25155         isnand-nolibm.
25156         * NEWS: Mention the change.
25157
25158 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25159             Bruno Haible  <bruno@clisp.org>
25160
25161         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25162         the GCC builtins for signbits are present and set
25163         REPLACE_SIGNBIT_USING_GCC if so.
25164         * lib/math.in.h (signbit): Define using GCC builtins if
25165         REPLACE_SIGNBIT_USING_GCC is set.
25166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25167         REPLACE_SIGNBIT_USING_GCC.
25168         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25169
25170 2008-01-25  Jim Meyering  <meyering@redhat.com>
25171
25172         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25173         * lib/poll.c: Include <config.h>, not "config.h".
25174         * tests/test-getaddrinfo.c: Likewise.
25175
25176 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25177
25178         * modules/sockets-tests: New file.
25179
25180 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25181
25182         * modules/sockets: New module, can be used to call WSA_Startup and
25183         WSA_Cleanup when needed.
25184
25185         * lib/sockets.h, lib/sockets.c: New files.
25186
25187         * m4/sockets.m4: New file.
25188
25189         * tests/test-sockets.c: New file.
25190
25191 2008-01-19  Bruno Haible  <bruno@clisp.org>
25192
25193         * doc/posix-headers: Renamed from doc/headers.
25194         * doc/posix-functions: Renamed from doc/functions.
25195         * doc/gnulib.texi: Update.
25196
25197 2008-01-19  Bruno Haible  <bruno@clisp.org>
25198
25199         * doc/glibc-functions/strcasestr.texi: Include contents of
25200         doc/functions/strcasestr.texi, fixing the list of platforms.
25201         * doc/functions/strcasestr.texi: Remove file.
25202
25203 2008-01-19  Bruno Haible  <bruno@clisp.org>
25204
25205         * doc/glibc-functions/memmem.texi: Include contents of
25206         doc/functions/memmem.texi.
25207         * doc/functions/memmem.texi: Remove file.
25208
25209 2008-01-18  Bruno Haible  <bruno@clisp.org>
25210
25211         * doc/glibc-functions/*.texi: New files.
25212         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25213         to use the new files.
25214
25215 2008-01-17  Bruno Haible  <bruno@clisp.org>
25216
25217         * tests/test-gethostname.c (main): Fix printf statement.
25218
25219 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25220
25221         * modules/gethostname-tests: New file.
25222
25223         * tests/test-gethostname.c: New file.
25224
25225 2008-01-17  Simon Josefsson  <simon@josefsson.org>
25226
25227         * lib/gethostname.c: Include string.h unconditionally, strncpy is
25228         used by the UNAME case.  Reported by Bruno Haible
25229         <bruno@clisp.org>.
25230
25231 2008-01-17  Eric Blake  <ebb9@byu.net>
25232
25233         Convert c-strcasestr to be more efficient.
25234         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25235         (Depends-on): Add c-strcase, remove malloca, strnlen.
25236         * tests/test-c-strcasestr.c (main): Enhance test.
25237         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25238
25239 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25240
25241         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25242         Use it in creating po/Makevars.
25243
25244 2008-01-15  Simon Josefsson  <simon@josefsson.org>
25245
25246         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25247         Applications that requires it should initialize libgcrypt
25248         manually.
25249
25250 2008-01-16  Simon Josefsson  <simon@josefsson.org>
25251
25252         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25253
25254 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25255
25256         Fix problem with getdate on mingw32 reported by Simon Josefsson
25257         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25258         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25259         tzname", when deciding whether to declare tzname.
25260         * lib/strftime.c (tzname): Likewise.
25261
25262 2008-01-15  Bruno Haible  <bruno@clisp.org>
25263
25264         Work around a MacOS X 10.5 bug in frexpl().
25265         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25266         * doc/functions/frexpl.texi: Document the bug.
25267         Reported by Elias Pipping <pipping@gentoo.org>.
25268
25269 2008-01-14  Eric Blake  <ebb9@byu.net>
25270
25271         Touch up previous patch.
25272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25273         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25274
25275         Convert strcasestr module to use Two-Way algorithm.
25276         * modules/strcasestr-simple: New module, based on the old
25277         strcasestr, but with Two-Way rather than KMP.
25278         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25279         * lib/string.in.h (rpl_strcasestr): Declare.
25280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25281         performance.
25282         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25283         * modules/string (Makefile.am): Support strcasestr.
25284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25285         * modules/strcasestr-tests (Depends-on): Check for alarm.
25286         * tests/test-strcasestr.c: Augment test.
25287         * lib/str-two-way.h: Clean up stray macro.
25288         * NEWS: Document new module.
25289         * MODULES.html.sh (string handling): Likewise.
25290         * doc/functions/strcasestr.texi: New file.
25291         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
25292         here, since it is not a POSIX function.
25293
25294 2008-01-14  Colin Watson  <cjwatson@debian.org>
25295             Bruno Haible  <bruno@clisp.org>
25296
25297         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25298         works fine; if not, set REPLACE_STRSIGNAL.
25299         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25301         REPLACE_STRSIGNAL.
25302         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25303         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25304         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25305
25306 2008-01-14  Bruno Haible  <bruno@clisp.org>
25307
25308         * modules/strsignal (Include): Change to <string.h>.
25309
25310 2008-01-14  Colin Watson  <cjwatson@debian.org>
25311
25312         * modules/argp (Notice): Add a notice recommending to change
25313         XGETTEXT_OPTIONS.
25314         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25315
25316 2008-01-13  Colin Watson  <cjwatson@debian.org>
25317
25318         * modules/strsignal-tests: New file.
25319         * tests/test-strsignal.c: New file.
25320
25321         * lib/strsignal.c: New file, from glibc with modifications.
25322         * lib/siglist.h: New file, from glibc with modifications.
25323         * lib/string.in.h (strsignal): New declaration.
25324         * m4/strsignal.m4: New file.
25325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25326         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25327         * modules/strsignal: New file.
25328         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25329         HAVE_DECL_STRSIGNAL.
25330
25331 2008-01-13  Bruno Haible  <bruno@clisp.org>
25332
25333         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25334         locale encoding is not ASCII. Needed for OpenBSD 4.0.
25335         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25336         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25337
25338 2008-01-13  Bruno Haible  <bruno@clisp.org>
25339
25340         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25341         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25342         * lib/argp.h (__attribute__): Likewise.
25343         * lib/c-stack.c (__attribute__): Likewise.
25344         * lib/error.h (__attribute__): Likewise.
25345         * lib/fts.c (__attribute__): Likewise.
25346         * lib/openat.h (__attribute__): Likewise.
25347         * lib/stdio.in.h (__attribute__): Likewise.
25348         * lib/string.in.h (__attribute__): Likewise.
25349         * lib/utimens.c (__attribute__): Likewise.
25350         * lib/vasnprintf.h (__attribute__): Likewise.
25351         * lib/xalloc.h (__attribute__): Likewise.
25352         * lib/xprintf.h (__attribute__): Likewise.
25353         * lib/xstrtol.h (__attribute__): Likewise.
25354         * lib/xvasprintf.h (__attribute__): Likewise.
25355
25356 2008-01-12  Bruno Haible  <bruno@clisp.org>
25357
25358         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25359         * doc/glibc-headers/a.out.texi: New file.
25360         * doc/glibc-headers/aliases.texi: New file.
25361         * doc/glibc-headers/alloca.texi: New file.
25362         * doc/glibc-headers/ar.texi: New file.
25363         * doc/glibc-headers/argp.texi: New file.
25364         * doc/glibc-headers/argz.texi: New file.
25365         * doc/glibc-headers/byteswap.texi: New file.
25366         * doc/glibc-headers/crypt.texi: New file.
25367         * doc/glibc-headers/endian.texi: New file.
25368         * doc/glibc-headers/envz.texi: New file.
25369         * doc/glibc-headers/err.texi: New file.
25370         * doc/glibc-headers/error.texi: New file.
25371         * doc/glibc-headers/execinfo.texi: New file.
25372         * doc/glibc-headers/fpu_control.texi: New file.
25373         * doc/glibc-headers/fstab.texi: New file.
25374         * doc/glibc-headers/fts.texi: New file.
25375         * doc/glibc-headers/getopt.texi: New file.
25376         * doc/glibc-headers/ieee754.texi: New file.
25377         * doc/glibc-headers/ifaddrs.texi: New file.
25378         * doc/glibc-headers/libintl.texi: New file.
25379         * doc/glibc-headers/mcheck.texi: New file.
25380         * doc/glibc-headers/mntent.texi: New file.
25381         * doc/glibc-headers/obstack.texi: New file.
25382         * doc/glibc-headers/paths.texi: New file.
25383         * doc/glibc-headers/printf.texi: New file.
25384         * doc/glibc-headers/pty.texi: New file.
25385         * doc/glibc-headers/resolv.texi: New file.
25386         * doc/glibc-headers/shadow.texi: New file.
25387         * doc/glibc-headers/sysexits.texi: New file.
25388         * doc/glibc-headers/ttyent.texi: New file.
25389
25390 2008-01-12  Jim Meyering  <meyering@redhat.com>
25391
25392         announce-gen: emit Gnulib's git-based version string.
25393         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25394         New option --gnulib-version=V, where V is expected to be
25395         the output of running git describe in the gnulib directory.
25396         (get_tool_versions): Request feedback on xdelta.  I suspect it's
25397         not useful, and plan to stop publishing an xdelta file with each
25398         coreutils release.
25399
25400         * build-aux/announce-gen: Also check for lzma-compressed files.
25401
25402 2008-01-11  Bruno Haible  <bruno@clisp.org>
25403
25404         * tests/test-memmem.c (main): Increase maximum allowed time.
25405         * tests/test-strstr.c (main): Likewise.
25406
25407 2008-01-11  Bruno Haible  <bruno@clisp.org>
25408
25409         * doc/functions/memmem.texi: Add more precisions about platforms.
25410         * doc/functions/strstr.texi: Likewise.
25411
25412 2008-01-10  Eric Blake  <ebb9@byu.net>
25413
25414         * m4/strstr.m4: Delete cruft from copy-n-paste.
25415         Reported by Bruno Haible.
25416
25417 2008-01-10  Bruno Haible  <bruno@clisp.org>
25418
25419         Make c-strstr rely on strstr.
25420         * lib/c-strstr.c: Don't include str-kmp.h.
25421         (c_strstr): Define in terms of strstr.
25422         * modules/c-strstr (Files): Remove lib/str-kmp.h.
25423         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25424
25425 2008-01-10  Bruno Haible  <bruno@clisp.org>
25426
25427         * doc/gnulib.texi (String Functions in C Locale): New section.
25428         * doc/c-ctype.texi: New file.
25429         * doc/c-strcase.texi: New file.
25430         * doc/c-strcaseeq.texi: New file.
25431         * doc/c-strcasestr.texi: New file.
25432         * doc/c-strstr.texi: New file.
25433         * doc/c-strtod.texi: New file.
25434         * doc/c-strtold.texi: New file.
25435
25436 2008-01-10  Eric Blake  <ebb9@byu.net>
25437
25438         * lib/relocatable.h: Fix a comment.
25439
25440 2008-01-10  Eric Blake  <ebb9@byu.net>
25441
25442         Share two-way algorithm.
25443         * lib/str-two-way.h: New file, merged from...
25444         * lib/memmem.c: ...here...
25445         * lib/strstr.c: ...and here.
25446         * modules/memmem (Files): Use it.
25447         * modules/strstr (Files): Likewise.
25448
25449         Avoid quadratic strstr implementations.
25450         * lib/strstr.c: New file.
25451         * m4/strstr.m4: Likewise.
25452         * modules/strstr: Likewise.
25453         * modules/strstr-tests: Likewise.
25454         * tests/test-strstr.c: Likewise.
25455         * lib/string.in.h (rpl_strstr): Declare.
25456         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25458         * modules/string (Makefile.am): Likewise.
25459         * MODULES.html.sh (string handling): Mention new module.
25460         * doc/functions/strstr.texi (strstr): Document the bug.
25461
25462 2008-01-10  Bruno Haible  <bruno@clisp.org>
25463
25464         * lib/relocatable.h (relocate): State whether result is freshly
25465         allocated or not.
25466         * lib/relocatable.c (relocate): Return a freshly allocated string
25467         instead of a pointer to a privately held string.
25468         Reported by Sylvain Beucler <beuc@gnu.org>.
25469
25470 2008-01-10  Colin Watson  <cjwatson@debian.org>
25471
25472         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25473         s/S_ISNLK/S_ISLNK/.
25474
25475 2008-01-09  Bruno Haible  <bruno@clisp.org>
25476
25477         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25478         and other files.
25479         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25480         if it's only a guess.
25481         * modules/memmem: Simplify by depending on memmem-simple.
25482
25483 2008-01-09  Bruno Haible  <bruno@clisp.org>
25484
25485         Work around OpenBSD 4.0 tdelete() bug.
25486         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25487         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25488         macros and don't redefine the enum values.
25489         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25490         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25491         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25492
25493 2008-01-09  Bruno Haible  <bruno@clisp.org>
25494
25495         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25496         (main): Don't perform the tests if setlocale did not install a UTF-8
25497         locale. Needed on OpenBSD 4.0.
25498         * modules/wcwidth-tests (Depends-on): Add localcharset.
25499
25500 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25501
25502         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25503         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25504         * NEWS: announce this.
25505         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25506
25507 2008-01-09  Simon Josefsson  <simon@josefsson.org>
25508         and Eric Blake  <ebb9@byu.net>
25509
25510         Add memmem-simple module.
25511         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25512         (gl_FUNC_MEMMEM): Separate performance from presence checks.
25513         * modules/memmem-simple: New file.
25514         * modules/memmem (Description): Tweak.
25515         * MODULES.html.sh (string handling): Mention new module.
25516         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25517         addressed by memmem-simple.
25518         * NEWS: Document the difference.
25519
25520 2008-01-09  Eric Blake  <ebb9@byu.net>
25521
25522         Give gcc some memmem optimization hints.
25523         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
25524         (strcasestr): Declare as pure.
25525         * modules/memmem (Maintainer): Claim my implementation.
25526
25527 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25528
25529         Support AIX 6.1 and higher.
25530         * build-aux/config.libpath: Likewise.
25531         * build-aux/config.rpath: Likewise.
25532
25533 2008-01-08  Jim Meyering  <meyering@redhat.com>
25534             Bruno Haible  <bruno@clisp.org>
25535
25536         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
25537         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
25538         Reported by Peter Fales in
25539         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
25540
25541 2008-01-08  Bruno Haible  <bruno@clisp.org>
25542
25543         * modules/unictype/category-of (Depends-on): Add
25544         unictype/category-none.
25545         * modules/unictype/category-and-tests (Depends-on): Add
25546         unictype/category-{L,N,Lu,Nd}.
25547         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
25548         * modules/unictype/category-or-tests (Depends-on): Add
25549         unictype/category-{L,N}.
25550         * modules/unictype/category-name-tests (Depends-on): Add
25551         unictype/category-{Z,Nl}.
25552         Reported by Simon Josefsson.
25553
25554 2008-01-08  Bruno Haible  <bruno@clisp.org>
25555
25556         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
25557         convention better.
25558         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
25559         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
25560         Reported by Peter Miller <millerp@canb.auug.org.au>.
25561
25562 2008-01-08  Eric Blake  <ebb9@byu.net>
25563
25564         Rewrite memmem to guarantee linear complexity without malloc.
25565         * lib/memmem.c (memmem): Use Two-Way rather than
25566         Knuth-Morris-Pratt, to allow O(1) space usage.
25567         (critical_factorization, two_way_short_needle)
25568         (two_way_long_needle): New functions.
25569         (knuth_morris_pratt): Delete.
25570         * modules/memmem (Depends-on): No longer need malloca or stdbool.
25571         Add stdint.
25572         * tests/test-memmem.c (main): Add tests for periodic needle and
25573         sublinear performance.
25574         * doc/functions/memmem.texi (memmem): Document other deficiencies
25575         in cygwin and older glibc.
25576
25577 2008-01-08  Bruno Haible  <bruno@clisp.org>
25578
25579         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
25580         augmentation.
25581
25582 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
25583
25584         Add a configure time option: --disable-acl.
25585         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
25586         AC_ARG_ENABLE(acl).
25587
25588 2008-01-06  Simon Josefsson  <simon@josefsson.org>
25589
25590         * tests/test-localename.c: Don't include obsolete "setenv.h".
25591
25592         * modules/localename-tests (Depends-on): Need unsetenv.
25593
25594 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25595
25596         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
25597
25598 2008-01-06  Colin Watson  <cjwatson@debian.org>
25599
25600         * users.txt: Add man-db.
25601
25602 2008-01-07  Bruno Haible  <bruno@clisp.org>
25603
25604         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
25605         previous section name.
25606
25607 2008-01-07  Bruno Haible  <bruno@clisp.org>
25608
25609         * lib/progname.c (set_program_name): Don't strip off a leading
25610         "lt-" prefix outside a .libs directory.
25611         Suggested by Paul Eggert.
25612
25613 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
25614             Bruno Haible  <bruno@clisp.org>
25615
25616         Improve memory cleanup in 'relocatable' module.
25617         * lib/relocatable.h (compute_curr_prefix): Change return type to
25618         'char *'.
25619         * lib/relocatable.c (compute_curr_prefix): Change return type to
25620         'char *'. Free curr_installdir after use.
25621         (relocate): Free curr_prefix_better after use.
25622         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
25623
25624 2008-01-01  Bruno Haible  <bruno@clisp.org>
25625
25626         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
25627         failure on older glibc systems.
25628         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25629
25630 2008-01-05  Eric Blake  <ebb9@byu.net>
25631
25632         Avoid quadratic system memmem.
25633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
25634         Reported by Ralf Wildenhues.
25635
25636         Fix memmem test for mingw.
25637         * modules/memmem-tests (configure.ac): Check for alarm.
25638         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
25639         it.
25640         * doc/functions/memmem.texi: New file.
25641         * doc/gnulib.texi (Function Substitutes): Add memmem.
25642         Reported by Bruno Haible.
25643
25644 2008-01-04  Bruno Haible  <bruno@clisp.org>
25645
25646         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
25647         Require gl_HEADER_STRINGS_H_DEFAULTS, not
25648         gl_HEADER_STRING_H_DEFAULTS.
25649
25650 2008-01-04  Eric Blake  <ebb9@byu.net>
25651
25652         Shorten duration of memmem test.
25653         * tests/test-memmem.c (main): Use alarm to declare failure if test
25654         is taking too long.
25655         Reported by Ralf Wildenhues.
25656
25657 2007-12-21  Simon Josefsson  <simon@josefsson.org>
25658
25659         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
25660         string, needed by strerror.
25661
25662 2008-01-03  Colin Watson  <cjwatson@debian.org>
25663             Bruno Haible  <bruno@clisp.org>
25664
25665         * doc/gnulib-tool.texi (Localization): New section.
25666
25667 2008-01-02  Bruno Haible  <bruno@clisp.org>
25668
25669         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
25670         variables to 'unsigned char *' type.
25671         Reported by Paul Eggert.
25672
25673 2008-01-02  Jim Meyering  <jim@meyering.net>
25674
25675         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
25676
25677 2007-12-31  Jim Meyering  <jim@meyering.net>
25678
25679         Avoid use of private FTS type name.
25680         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
25681
25682 2007-12-30  Karl Berry  <karl@gnu.org>
25683
25684         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
25685         work around defect in Texinfo and/or the standalone Info browser.
25686
25687 2007-12-30  Bruno Haible  <bruno@clisp.org>
25688
25689         Unify 5 copies of the KMP code.
25690         * lib/str-kmp.h: New file.
25691         * lib/c-strcasestr.c: Include str-kmp.h.
25692         (knuth_morris_pratt): Remove function.
25693         (c_strcasestr): Update.
25694         * lib/c-strstr.c: Include str-kmp.h.
25695         (knuth_morris_pratt): Remove function.
25696         (c_strcasestr): Update.
25697         * lib/mbscasestr.c: Include str-kmp.h.
25698         (knuth_morris_pratt_unibyte): Remove function.
25699         * lib/mbsstr.c: Include str-kmp.h.
25700         (knuth_morris_pratt_unibyte): Remove function.
25701         * lib/strcasestr.c: Include str-kmp.h.
25702         (knuth_morris_pratt): Remove function.
25703         (strcasestr): Update.
25704         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
25705         * modules/c-strstr (Files): Likewise.
25706         * modules/mbscasestr (Files): Likewise.
25707         * modules/mbsstr (Files): Likewise.
25708         * modules/strcasestr (Files): Likewise.
25709         Suggested by Paul Eggert.
25710
25711 2007-12-30  Bruno Haible  <bruno@clisp.org>
25712
25713         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
25714         defined.
25715
25716 2007-12-30  Bruno Haible  <bruno@clisp.org>
25717
25718         * lib/xmalloca.h: Include xalloc.h.
25719         (xnmalloca): New macro.
25720
25721 2007-12-30  Bruno Haible  <bruno@clisp.org>
25722
25723         * lib/malloca.h (nmalloca): New macro.
25724         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
25725         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
25726         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
25727         knuth_morris_pratt_multibyte): Likewise.
25728         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
25729         knuth_morris_pratt_multibyte): Likewise.
25730         * lib/memmem.c (knuth_morris_pratt): Likewise.
25731         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
25732
25733 2007-12-25  Bruno Haible  <bruno@clisp.org>
25734
25735         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
25736         * lib/glob.c: Don't include openat.h.
25737         (link_exists2_p): Add back the code that deals with the
25738         !GLOB_ALTDIRFUNC case.
25739         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
25740         let it do the filename concatenation.
25741         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
25742         * modules/glob (Depends-on): Remove openat.
25743
25744 2007-12-31  Bruno Haible  <bruno@clisp.org>
25745
25746         * modules/dirfd (License): Change to LGPLv2+.
25747         Approved by Jim Meyering.
25748
25749 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25750
25751         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
25752         when multiplying M by sizeof (size_t).
25753
25754 2007-12-10  Martin Lambers  <marlam@marlam.de>
25755
25756         Override getpagesize on mingw.
25757         * lib/getpagesize.c: New file.
25758         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
25759         * modules/getpagesize (Files): Add lib/getpagesize.c.
25760         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
25761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25762         REPLACE_GETPAGESIZE.
25763         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
25764
25765 2007-12-25  Bruno Haible  <bruno@clisp.org>
25766
25767         * modules/localcharset (Notice): New field.
25768         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
25769         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
25770
25771 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25772             Bruno Haible  <bruno@clisp.org>
25773
25774         Avoid using the syntax symbol() in formatted documentation.
25775         * MODULES.html.sh (func_module): When replacing symbol() with a
25776         hyperlink, remove the parentheses. Show an error if some remain.
25777         Recognize and render the '...' syntax.
25778         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
25779         Rework. Add paragraph about GCC's inlining.
25780         * doc/alloca.texi: Likewise.
25781         * doc/error.texi: Remove parentheses from symbol reference.
25782         * doc/gnulib-intro.texi: Likewise.
25783         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
25784         * modules/fnmatch (Description): Reword to say "the ... function".
25785         * modules/full-read (Description): Likewise.
25786         * modules/full-write (Description): Likewise.
25787         * modules/safe-read (Description): Likewise.
25788         * modules/safe-write (Description): Likewise.
25789         * modules/strchrnul (Description): Likewise.
25790         * modules/trim (Description): Likewise.
25791         * modules/error (Description): Remove parentheses from symbol
25792         references.
25793         * modules/verror (Description): Likewise.
25794         Reported by Karl Berry.
25795
25796 2007-12-25  Bruno Haible  <bruno@clisp.org>
25797
25798         Fixup after 2007-10-16 commit.
25799         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
25800
25801 2007-12-24  Bruno Haible  <bruno@clisp.org>
25802
25803         Make --enable-relocatable work with DESTDIR.
25804         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
25805         to compute installdir from destprog.
25806         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
25807         also set the RELOC_DESTDIR variable.
25808         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
25809
25810 2007-12-24  Bruno Haible  <bruno@clisp.org>
25811
25812         Fix link error due to xalloc_die().
25813         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
25814         of xreadlink.
25815         * lib/relocwrapper.c: Update comments.
25816         * build-aux/install-reloc: Remove xreadlink.c from file list.
25817         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
25818         xreadlink.c.
25819         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
25820
25821 2007-12-24  Bruno Haible  <bruno@clisp.org>
25822
25823         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
25824         * lib/setenv.h: Remove file.
25825         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
25826         lib/setenv.h.
25827         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
25828         (Depends-on): Add stdlib.
25829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
25830         gl_FUNC_UNSETENV.
25831         (Include): Replace setenv.h with <stdlib.h>.
25832         * modules/unsetenv: New file.
25833         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
25834         * lib/unsetenv.c: Include <stdlib.h> first.
25835         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
25836         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
25837         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
25838         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
25839         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
25840         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
25842         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
25843         * doc/functions/unsetenv.texi: Update.
25844         * modules/xsetenv (Depends-on): Add unsetenv.
25845         * modules/getdate (Depends-on): Likewise.
25846         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
25847         * lib/xsetenv.c: Don't include setenv.h.
25848         * lib/getdate.y: Likewise.
25849         * lib/relocwrapper.c: Likewise.
25850         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
25851         (Depends-on): Add stdlib.
25852         * NEWS: Mention the changes.
25853         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
25854
25855 2007-12-23  Bruno Haible  <bruno@clisp.org>
25856
25857         * lib/memmem.c (memmem): Use lowercase variable names. Tab
25858         indentation.
25859
25860 2007-12-23  Bruno Haible  <bruno@clisp.org>
25861
25862         * lib/c-strcasestr.c: Add more comments.
25863         * lib/c-strstr.c: Likewise.
25864         * lib/mbscasestr.c: Likewise.
25865         * lib/mbsstr.c: Likewise.
25866         * lib/strcasestr.c: Likewise.
25867         * lib/memmem.c: Likewise.
25868
25869 2007-12-23  Bruno Haible  <bruno@clisp.org>
25870
25871         * tests/test-memmem.c: Include <string.h> first.
25872
25873 2007-12-22  Bruno Haible  <bruno@clisp.org>
25874
25875         * gnulib-tool (func_create_testdir): Change $auxdir while generating
25876         the contents of $testsbase.
25877         Reported by Ralf Wildenhues.
25878
25879 2007-12-22  Bruno Haible  <bruno@clisp.org>
25880
25881         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
25882         two variables local_ldadd_before, local_ldadd_last.
25883
25884 2007-12-20  Eric Blake  <ebb9@byu.net>
25885
25886         Work around circular library issue when cross-compiling.
25887         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
25888         that progname.o does not need to pull in rpl_memcmp.
25889
25890 2007-12-19  Eric Blake  <ebb9@byu.net>
25891
25892         Fix memmem to avoid O(n^2) worst-case complexity.
25893         * lib/memmem.c (knuth_morris_pratt): New function.
25894         (memmem): Use it if first few naive iterations fail.
25895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
25896         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
25897         * modules/memchr (License): Likewise.
25898         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
25899         malloca.
25900         * tests/test-memmem.c: Rewrite, borrowing ideas from
25901         test-mbsstr1.c; the old version wouldn't even compile!
25902         * modules/memmem-tests: New file.
25903         * lib/string.in.h (rpl_memmem): Add declaration.
25904         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
25905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
25906         REPLACE_MEMMEM.
25907
25908 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25909
25910         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
25911         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
25912         before any system include files, and undef after them all.  This
25913         should fix a problem on VMS reported by John E. Malmberg in
25914         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
25915
25916 2007-12-17  Eric Blake  <ebb9@byu.net>
25917
25918         Revert addition of verify, for BSD/OS.
25919         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
25920         can't handle large files, for the sake of obsolete platforms.
25921         * modules/fseeko (Depends-on): Remove verify.
25922         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
25923         * doc/functions/ftello.texi (ftello): Likewise.
25924         * doc/functions/fgetpos.texi (fgetpos): Likewise.
25925         Reported by Larry Jones.
25926
25927 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
25928
25929         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
25930         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
25931
25932 2007-12-17  Jim Meyering  <meyering@redhat.com>
25933
25934         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
25935         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
25936         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
25937         * modules/getcwd (Depends-on): Add openat.
25938         Reported by Petr Salinger.
25939
25940 2007-12-17  Bruno Haible  <bruno@clisp.org>
25941
25942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
25943         avoid a segmentation fault of the configure test on x86_64 systems.
25944
25945 2007-12-15  Jim Meyering  <meyering@redhat.com>
25946
25947         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
25948
25949 2007-12-13  Eric Blake  <ebb9@byu.net>
25950
25951         Another fseek test.
25952         * tests/test-fseek.c (main): Also test ungetc handling.
25953         * tests/test-fseeko.c (main): Likewise.
25954         * modules/fseeko (Depends-on): Add verify.
25955         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
25956         large.
25957         Reported by Larry Jones.
25958
25959         Fix fseeko on mingw.
25960         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
25961         seek.
25962
25963         Beef up fseek tests.
25964         * tests/test-fseek.c (main): Also test eof handling.
25965         * tests/test-fseeko.c (main): Likewise.
25966         Reported by Larry Jones.
25967
25968 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
25969
25970         Fix fseeko on BSD-based platforms.
25971         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
25972         successful seek.
25973
25974 2007-12-12  Eric Blake  <ebb9@byu.net>
25975
25976         Allow circular dependency of separate libtests.a
25977         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
25978         when use_libtests.
25979
25980 2007-12-11  Eric Blake  <ebb9@byu.net>
25981
25982         Fix bug with -0.0L in previous patch.
25983         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
25984         * tests/test-isnan.c (main): Also test on zeroes.
25985         * tests/test-isnanf.c (main): Likewise.
25986         * tests/test-isnanl.h (main): Likewise.
25987
25988         Detect pseudo-denormals on x86 even when cross-compiling.
25989         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
25990         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
25991         invalid bit patterns that happen to satisfy ==.
25992
25993         Avoid link failures with separate libtests.a.
25994         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
25995         last, to satisfy circular dependencies.
25996
25997 2007-12-11  Eric Blake  <ebb9@byu.net>
25998         and Bruno Haible  <bruno@clisp.org>
25999
26000         Fix OpenBSD 4.0 <float.h> handling of long double.
26001         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26002         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26003         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26004
26005 2007-12-11  Jim Meyering  <meyering@redhat.com>
26006
26007         * users.txt: Add libvirt.
26008
26009         Support versions of autoconf prior to 2.59c.
26010         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26011         if it is not already defined.
26012
26013 2007-12-09  Bruno Haible  <bruno@clisp.org>
26014
26015         Let 'gnulib-tool --import' collect sources needed for the tests in
26016         tests/ rather than in lib/.
26017         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26018         argument. If true, add rules to generate libtests.a, and put libtests.a
26019         into $(LDADD). Consider source files in subdirectories and set
26020         uses_subdirs.
26021         (func_emit_initmacro_start, func_emit_initmacro_end,
26022         func_emit_initmacro_done): Pass all arguments explicitly.
26023         (func_import): Determine two module lists main_modules,
26024         testsrelated_modules. Determine use_libtests. Determine two variables
26025         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26026         instead of just sed_transform_lib_file. Determine two variables
26027         main_files and testsrelated_files. Compute 'files' as the union of
26028         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26029         func_add_or_update. In the generated gnulib-comp.m4, collect the
26030         object files for tests/ in different variables than those for lib/.
26031         Substitute LIBTESTS_LIBDEPS.
26032         (func_create_testdir): Combine the uses_subdirs results from
26033         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26034
26035 2007-12-09  Bruno Haible  <bruno@clisp.org>
26036
26037         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26038         the build-aux directory.
26039
26040 2007-12-09  Bruno Haible  <bruno@clisp.org>
26041
26042         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26043         introduced on 2006-09-09.
26044
26045 2007-12-07  Jim Meyering  <meyering@redhat.com>
26046
26047         Let these macros work also with autoconf-2.59.
26048         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26049         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26051
26052 2007-12-06  Jim Meyering  <meyering@redhat.com>
26053
26054         Avoid a configure-time syntax error in gl_FUNC_ACL.
26055         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26056         function in each branch, before testing the cache variable.
26057
26058 2007-12-04  Eric Blake  <ebb9@byu.net>
26059
26060         Make scripts executable.
26061         * build-aux/config.guess: Add execute permissions.
26062         * build-aux/config.sub: Likewise.
26063         * build-aux/gendocs.sh: Likewise.
26064
26065         Fix frexp on mingw.
26066         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26067         cross-compiling.
26068         * doc/functions/frexp.texi (frexp): Document the bug.
26069
26070         Make cygwin fseeko check more reliable.
26071         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26072         version numbers, rather than unrelated feature check.
26073         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26074         * doc/functions/ftello.texi (ftello): Likewise.
26075         Reported by Bruno Haible.
26076
26077         * m4/strerror.m4: Bump version number.
26078
26079 2007-12-03  Bruno Haible  <bruno@clisp.org>
26080
26081         * doc/functions/mprotect.texi: Mention the mingw problem.
26082
26083 2007-12-03  Eric Blake  <ebb9@byu.net>
26084
26085         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26086         REPLACE_STRERROR is initialized before this macro.
26087
26088 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26089
26090         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26091         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26092         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26093         put -lsec in even for programs other than 'ls'.  This fixes a problem
26094         for gettext reported by Bruno Haible in
26095         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26096         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26097         Add support for Solaris 10.  This isn't efficient, but should get the
26098         job done for now.
26099
26100 2007-12-03  James Youngman  <jay@gnu.org>
26101
26102         * doc/regexprops-generic.texi: change "an close-group" to "a
26103         close-group" and "illegal" to "not allowed".
26104
26105 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26106
26107         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26108         pr_byname.h. Needed for the rare case when the maintainer has done
26109         "make maintainer-clean" in the source directory and then attempts a
26110         build outside the source directory.
26111         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26112         scripts_byname.h.
26113
26114 2007-12-02  Martin Lambers <marlam@marlam.de>
26115             Bruno Haible  <bruno@clisp.org>
26116
26117         * lib/getpagesize.h: Remove file.
26118         * lib/unistd.in.h: Include declaration of getpagesize here.
26119         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26120         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26121         HAVE_SYS_PARAM_H.
26122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26123         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26124         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26125         (Depends-on): Add unistd.
26126         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26127         (Include): Use <unistd.h> instead of getpagesize.h.
26128         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26129         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26130         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26131         gl_GETPAGESIZE invocation, already handled by module dependency.
26132         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26133
26134 2007-12-02  Bruno Haible  <bruno@clisp.org>
26135
26136         * modules/strings-tests: New file.
26137         * tests/test-strings.c: New file.
26138
26139         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26140         * lib/strings.in.h: New file.
26141         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26142         * m4/strings_h.m4: New file.
26143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26144         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26145         * modules/strings: New file.
26146         * modules/string (Makefile.am): Update.
26147         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26148         Reported by Karl Berry.
26149
26150 2007-12-01  Eric Blake  <ebb9@byu.net>
26151
26152         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26153         accomodate fix in cygwin 1.5.25.
26154
26155 2007-12-01  Jim Meyering  <meyering@redhat.com>
26156
26157         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26158         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26159         that would inhibit utf8-optimization of a regexp containing line-
26160         or buffer-anchors, e.g., `^', `$'.
26161
26162 2007-11-30  Bruno Haible  <bruno@clisp.org>
26163
26164         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26165         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26166         glthread_recursive_lock_init.
26167         * lib/lock.c (glthread_recursive_lock_init)
26168         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26169         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26170
26171 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26172
26173         New function qset_acl, like set_acl but with syscall semantics.
26174         * lib/acl.h (qset_acl): New decl.
26175         * lib/acl.c (qset_acl): New function.
26176         (set_acl): Use new function.  Use more-consistent diagnostics.
26177
26178 2007-11-28  Jim Meyering  <meyering@redhat.com>
26179
26180         * modules/physmem (License): Change from GPL to LGPLv2+.
26181
26182 2007-11-26  Bruno Haible  <bruno@clisp.org>
26183
26184         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26185         'long double' type has excess precision.
26186         Reported by Jim Meyering in
26187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26188
26189 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26190
26191         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26192         Sync from <http://gnu.org/licenses>.
26193         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26194         with license text from same location.
26195         * doc/maintain.texi, doc/standards.texi:  Sync from
26196         <http://savannah.gnu.org/projects/gnustandards>.
26197
26198 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
26199         and Jim Meyering  <meyering@redhat.com>
26200
26201         Adjust getdate' grammar to accept a slightly more regular language.
26202         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26203         Before, the former was rejected.
26204         * lib/getdate.y (digits_to_date_time): New function, factored
26205         out of ...
26206         (number): ...here.  Just call digits_to_date_time.
26207         (hybrid): New non-terminal to handle an <unsigned number,
26208         signed relative offset> sequence consistently.
26209
26210 2007-11-18  Jim Meyering  <meyering@redhat.com>
26211
26212         Pull my changes from coreutils:
26213         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26214         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26215         use of $gnulib_tool_option_extras, so that it's separated from the
26216         preceding argument.
26217
26218         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26219         * build-aux/bootstrap (cp_mark_as_generated): Create any required
26220         parent destination directories before copying a file into place.
26221
26222 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
26223
26224         bootstrap: work also with 4-argument variant of AC_INIT
26225         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26226
26227 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26228
26229         Port test-getaddrinfo to Solaris.
26230         Problem reported by Bruno Haible in
26231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26232         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26233         explanation of setting 'hints'.
26234         Don't reject an implementation merely because it returns EAI_SERVICE.
26235         (EAI_SERVICE): Define to 0 if not defined.
26236
26237 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26238
26239         The license of gnu-make and posix-shell is now "GPLed build tool".
26240         * modules/gnu-make (License): Likewise.
26241         * modules/posix-shell (License): Likewise.
26242
26243         New module posix-shell, for determining a POSIX shell
26244         or perhaps something that is close enough to a POSIX shell.
26245         * m4/posix-shell.m4: New file.
26246         * modules/posix-shell: New file.
26247
26248         * MODULES.html.sh: Mention new module.
26249
26250         New module gnu-make, for determining whether we're using GNU Make.
26251         * m4/gnu-make.m4: New file.
26252         * modules/gnu-make: New file.
26253         * MODULES.html.sh: Mention new module.
26254
26255 2007-11-14  Jim Meyering  <meyering@redhat.com>
26256
26257         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26258         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26259         use this macro to create a function _definition_.
26260         Remove useless "#undef ARGMATCH_DIE".
26261
26262 2007-11-14  Bruno Haible  <bruno@clisp.org>
26263
26264         * lib/config.charset: Update for OpenBSD 4.1.
26265         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26266
26267 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
26268
26269         Document 64-bit #if problems in stdint.texi.
26270         * doc/headers/stdint.texi (stdint.h): Mention problems with
26271         64-bit-#if, and how to work around them.
26272
26273         Don't insist on 'long long int' support in the preprocessor.  It
26274         breaks too many things.  For example, PRIdMAX still uses a 'long
26275         long int' format with the latest Sun compiler, even though
26276         HAVE_LONG_LONG_INT isn't defined due to that compiler's
26277         preprocessor problem.  This causes the latest coreutils to dump
26278         core on Solaris 10 sparc with the Sun C compiler.
26279         Instead, fix the 2007-10-16 problem in a different way, by evaluating
26280         the troublesome expressions at configure-time, not at #if-time.
26281         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26282         preprocessor.
26283         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26284         compile-time C checks, done at 'configure'-time.
26285         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26286         * modules/inttypes (Makefile): Substitute the new symbols that
26287         gl_INTTYPES_H now generates.
26288         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26289
26290 2007-11-12  Bruno Haible  <bruno@clisp.org>
26291
26292         Tests for Unicode character classification functions.
26293
26294         * modules/unictype/bidicategory-byname-tests: New file.
26295         * modules/unictype/bidicategory-name-tests: New file.
26296         * modules/unictype/bidicategory-of-tests: New file.
26297         * modules/unictype/bidicategory-test-tests: New file.
26298         * modules/unictype/block-list-tests: New file.
26299         * modules/unictype/block-of-tests: New file.
26300         * modules/unictype/block-test-tests: New file.
26301         * modules/unictype/category-C-tests: New file.
26302         * modules/unictype/category-Cc-tests: New file.
26303         * modules/unictype/category-Cf-tests: New file.
26304         * modules/unictype/category-Cn-tests: New file.
26305         * modules/unictype/category-Co-tests: New file.
26306         * modules/unictype/category-Cs-tests: New file.
26307         * modules/unictype/category-L-tests: New file.
26308         * modules/unictype/category-Ll-tests: New file.
26309         * modules/unictype/category-Lm-tests: New file.
26310         * modules/unictype/category-Lo-tests: New file.
26311         * modules/unictype/category-Lt-tests: New file.
26312         * modules/unictype/category-Lu-tests: New file.
26313         * modules/unictype/category-M-tests: New file.
26314         * modules/unictype/category-Mc-tests: New file.
26315         * modules/unictype/category-Me-tests: New file.
26316         * modules/unictype/category-Mn-tests: New file.
26317         * modules/unictype/category-N-tests: New file.
26318         * modules/unictype/category-Nd-tests: New file.
26319         * modules/unictype/category-Nl-tests: New file.
26320         * modules/unictype/category-No-tests: New file.
26321         * modules/unictype/category-P-tests: New file.
26322         * modules/unictype/category-Pc-tests: New file.
26323         * modules/unictype/category-Pd-tests: New file.
26324         * modules/unictype/category-Pe-tests: New file.
26325         * modules/unictype/category-Pf-tests: New file.
26326         * modules/unictype/category-Pi-tests: New file.
26327         * modules/unictype/category-Po-tests: New file.
26328         * modules/unictype/category-Ps-tests: New file.
26329         * modules/unictype/category-S-tests: New file.
26330         * modules/unictype/category-Sc-tests: New file.
26331         * modules/unictype/category-Sk-tests: New file.
26332         * modules/unictype/category-Sm-tests: New file.
26333         * modules/unictype/category-So-tests: New file.
26334         * modules/unictype/category-Z-tests: New file.
26335         * modules/unictype/category-Zl-tests: New file.
26336         * modules/unictype/category-Zp-tests: New file.
26337         * modules/unictype/category-Zs-tests: New file.
26338         * modules/unictype/category-and-not-tests: New file.
26339         * modules/unictype/category-and-tests: New file.
26340         * modules/unictype/category-byname-tests: New file.
26341         * modules/unictype/category-name-tests: New file.
26342         * modules/unictype/category-none-tests: New file.
26343         * modules/unictype/category-of-tests: New file.
26344         * modules/unictype/category-or-tests: New file.
26345         * modules/unictype/category-test-withtable-tests: New file.
26346         * modules/unictype/combining-class-tests: New file.
26347         * modules/unictype/ctype-alnum-tests: New file.
26348         * modules/unictype/ctype-alpha-tests: New file.
26349         * modules/unictype/ctype-blank-tests: New file.
26350         * modules/unictype/ctype-cntrl-tests: New file.
26351         * modules/unictype/ctype-digit-tests: New file.
26352         * modules/unictype/ctype-graph-tests: New file.
26353         * modules/unictype/ctype-lower-tests: New file.
26354         * modules/unictype/ctype-print-tests: New file.
26355         * modules/unictype/ctype-punct-tests: New file.
26356         * modules/unictype/ctype-space-tests: New file.
26357         * modules/unictype/ctype-upper-tests: New file.
26358         * modules/unictype/ctype-xdigit-tests: New file.
26359         * modules/unictype/decimal-digit-tests: New file.
26360         * modules/unictype/digit-tests: New file.
26361         * modules/unictype/mirror-tests: New file.
26362         * modules/unictype/numeric-tests: New file.
26363         * modules/unictype/property-alphabetic-tests: New file.
26364         * modules/unictype/property-ascii-hex-digit-tests: New file.
26365         * modules/unictype/property-bidi-arabic-digit-tests: New file.
26366         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26367         * modules/unictype/property-bidi-block-separator-tests: New file.
26368         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26369         * modules/unictype/property-bidi-common-separator-tests: New file.
26370         * modules/unictype/property-bidi-control-tests: New file.
26371         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26372         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26373         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26374         * modules/unictype/property-bidi-european-digit-tests: New file.
26375         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26376         * modules/unictype/property-bidi-left-to-right-tests: New file.
26377         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26378         * modules/unictype/property-bidi-other-neutral-tests: New file.
26379         * modules/unictype/property-bidi-pdf-tests: New file.
26380         * modules/unictype/property-bidi-segment-separator-tests: New file.
26381         * modules/unictype/property-bidi-whitespace-tests: New file.
26382         * modules/unictype/property-byname-tests: New file.
26383         * modules/unictype/property-combining-tests: New file.
26384         * modules/unictype/property-composite-tests: New file.
26385         * modules/unictype/property-currency-symbol-tests: New file.
26386         * modules/unictype/property-dash-tests: New file.
26387         * modules/unictype/property-decimal-digit-tests: New file.
26388         * modules/unictype/property-default-ignorable-code-point-tests: New file.
26389         * modules/unictype/property-deprecated-tests: New file.
26390         * modules/unictype/property-diacritic-tests: New file.
26391         * modules/unictype/property-extender-tests: New file.
26392         * modules/unictype/property-format-control-tests: New file.
26393         * modules/unictype/property-grapheme-base-tests: New file.
26394         * modules/unictype/property-grapheme-extend-tests: New file.
26395         * modules/unictype/property-grapheme-link-tests: New file.
26396         * modules/unictype/property-hex-digit-tests: New file.
26397         * modules/unictype/property-hyphen-tests: New file.
26398         * modules/unictype/property-id-continue-tests: New file.
26399         * modules/unictype/property-id-start-tests: New file.
26400         * modules/unictype/property-ideographic-tests: New file.
26401         * modules/unictype/property-ids-binary-operator-tests: New file.
26402         * modules/unictype/property-ids-trinary-operator-tests: New file.
26403         * modules/unictype/property-ignorable-control-tests: New file.
26404         * modules/unictype/property-iso-control-tests: New file.
26405         * modules/unictype/property-join-control-tests: New file.
26406         * modules/unictype/property-left-of-pair-tests: New file.
26407         * modules/unictype/property-line-separator-tests: New file.
26408         * modules/unictype/property-logical-order-exception-tests: New file.
26409         * modules/unictype/property-lowercase-tests: New file.
26410         * modules/unictype/property-math-tests: New file.
26411         * modules/unictype/property-non-break-tests: New file.
26412         * modules/unictype/property-not-a-character-tests: New file.
26413         * modules/unictype/property-numeric-tests: New file.
26414         * modules/unictype/property-other-alphabetic-tests: New file.
26415         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26416         * modules/unictype/property-other-grapheme-extend-tests: New file.
26417         * modules/unictype/property-other-id-continue-tests: New file.
26418         * modules/unictype/property-other-id-start-tests: New file.
26419         * modules/unictype/property-other-lowercase-tests: New file.
26420         * modules/unictype/property-other-math-tests: New file.
26421         * modules/unictype/property-other-uppercase-tests: New file.
26422         * modules/unictype/property-paired-punctuation-tests: New file.
26423         * modules/unictype/property-paragraph-separator-tests: New file.
26424         * modules/unictype/property-pattern-syntax-tests: New file.
26425         * modules/unictype/property-pattern-white-space-tests: New file.
26426         * modules/unictype/property-private-use-tests: New file.
26427         * modules/unictype/property-punctuation-tests: New file.
26428         * modules/unictype/property-quotation-mark-tests: New file.
26429         * modules/unictype/property-radical-tests: New file.
26430         * modules/unictype/property-sentence-terminal-tests: New file.
26431         * modules/unictype/property-soft-dotted-tests: New file.
26432         * modules/unictype/property-space-tests: New file.
26433         * modules/unictype/property-terminal-punctuation-tests: New file.
26434         * modules/unictype/property-test-tests: New file.
26435         * modules/unictype/property-titlecase-tests: New file.
26436         * modules/unictype/property-unassigned-code-value-tests: New file.
26437         * modules/unictype/property-unified-ideograph-tests: New file.
26438         * modules/unictype/property-uppercase-tests: New file.
26439         * modules/unictype/property-variation-selector-tests: New file.
26440         * modules/unictype/property-white-space-tests: New file.
26441         * modules/unictype/property-xid-continue-tests: New file.
26442         * modules/unictype/property-xid-start-tests: New file.
26443         * modules/unictype/property-zero-width-tests: New file.
26444         * modules/unictype/scripts-tests: New file.
26445         * modules/unictype/syntax-c-ident-tests: New file.
26446         * modules/unictype/syntax-c-whitespace-tests: New file.
26447         * modules/unictype/syntax-java-ident-tests: New file.
26448         * modules/unictype/syntax-java-whitespace-tests: New file.
26449         * tests/unictype/test-bidi_byname.c: New file.
26450         * tests/unictype/test-bidi_name.c: New file.
26451         * tests/unictype/test-bidi_of.c: New file.
26452         * tests/unictype/test-bidi_test.c: New file.
26453         * tests/unictype/test-block_list.c: New file.
26454         * tests/unictype/test-block_of.c: New file.
26455         * tests/unictype/test-block_test.c: New file.
26456         * tests/unictype/test-categ_and.c: New file.
26457         * tests/unictype/test-categ_and_not.c: New file.
26458         * tests/unictype/test-categ_byname.c: New file.
26459         * tests/unictype/test-categ_name.c: New file.
26460         * tests/unictype/test-categ_none.c: New file.
26461         * tests/unictype/test-categ_of.c: New file.
26462         * tests/unictype/test-categ_or.c: New file.
26463         * tests/unictype/test-categ_test_withtable.c: New file.
26464         * tests/unictype/test-combining.c: New file.
26465         * tests/unictype/test-decdigit.c: New file.
26466         * tests/unictype/test-digit.c: New file.
26467         * tests/unictype/test-mirror.c: New file.
26468         * tests/unictype/test-numeric.c: New file.
26469         * tests/unictype/test-pr_byname.c: New file.
26470         * tests/unictype/test-pr_test.c: New file.
26471         * tests/unictype/test-predicate-part1.h: New file.
26472         * tests/unictype/test-predicate-part2.h: New file.
26473         * tests/unictype/test-scripts.c: New file.
26474         * tests/unictype/test-sy_c_ident.c: New file.
26475         * tests/unictype/test-sy_java_ident.c: New file.
26476
26477         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26478         for Unicode 5.0.0.
26479         * tests/unictype/test-categ_Cc.c: Likewise.
26480         * tests/unictype/test-categ_Cf.c: Likewise.
26481         * tests/unictype/test-categ_Cn.c: Likewise.
26482         * tests/unictype/test-categ_Co.c: Likewise.
26483         * tests/unictype/test-categ_Cs.c: Likewise.
26484         * tests/unictype/test-categ_L.c: Likewise.
26485         * tests/unictype/test-categ_Ll.c: Likewise.
26486         * tests/unictype/test-categ_Lm.c: Likewise.
26487         * tests/unictype/test-categ_Lo.c: Likewise.
26488         * tests/unictype/test-categ_Lt.c: Likewise.
26489         * tests/unictype/test-categ_Lu.c: Likewise.
26490         * tests/unictype/test-categ_M.c: Likewise.
26491         * tests/unictype/test-categ_Mc.c: Likewise.
26492         * tests/unictype/test-categ_Me.c: Likewise.
26493         * tests/unictype/test-categ_Mn.c: Likewise.
26494         * tests/unictype/test-categ_N.c: Likewise.
26495         * tests/unictype/test-categ_Nd.c: Likewise.
26496         * tests/unictype/test-categ_Nl.c: Likewise.
26497         * tests/unictype/test-categ_No.c: Likewise.
26498         * tests/unictype/test-categ_P.c: Likewise.
26499         * tests/unictype/test-categ_Pc.c: Likewise.
26500         * tests/unictype/test-categ_Pd.c: Likewise.
26501         * tests/unictype/test-categ_Pe.c: Likewise.
26502         * tests/unictype/test-categ_Pf.c: Likewise.
26503         * tests/unictype/test-categ_Pi.c: Likewise.
26504         * tests/unictype/test-categ_Po.c: Likewise.
26505         * tests/unictype/test-categ_Ps.c: Likewise.
26506         * tests/unictype/test-categ_S.c: Likewise.
26507         * tests/unictype/test-categ_Sc.c: Likewise.
26508         * tests/unictype/test-categ_Sk.c: Likewise.
26509         * tests/unictype/test-categ_Sm.c: Likewise.
26510         * tests/unictype/test-categ_So.c: Likewise.
26511         * tests/unictype/test-categ_Z.c: Likewise.
26512         * tests/unictype/test-categ_Zl.c: Likewise.
26513         * tests/unictype/test-categ_Zp.c: Likewise.
26514         * tests/unictype/test-categ_Zs.c: Likewise.
26515         * tests/unictype/test-ctype_alnum.c: Likewise.
26516         * tests/unictype/test-ctype_alpha.c: Likewise.
26517         * tests/unictype/test-ctype_blank.c: Likewise.
26518         * tests/unictype/test-ctype_cntrl.c: Likewise.
26519         * tests/unictype/test-ctype_digit.c: Likewise.
26520         * tests/unictype/test-ctype_graph.c: Likewise.
26521         * tests/unictype/test-ctype_lower.c: Likewise.
26522         * tests/unictype/test-ctype_print.c: Likewise.
26523         * tests/unictype/test-ctype_punct.c: Likewise.
26524         * tests/unictype/test-ctype_space.c: Likewise.
26525         * tests/unictype/test-ctype_upper.c: Likewise.
26526         * tests/unictype/test-ctype_xdigit.c: Likewise.
26527         * tests/unictype/test-decdigit.h: Likewise.
26528         * tests/unictype/test-digit.h: Likewise.
26529         * tests/unictype/test-numeric.h: Likewise.
26530         * tests/unictype/test-pr_alphabetic.c: Likewise.
26531         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
26532         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26533         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26534         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
26535         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26536         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
26537         * tests/unictype/test-pr_bidi_control.c: Likewise.
26538         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
26539         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
26540         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26541         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26542         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26543         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26544         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26545         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26546         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
26547         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
26548         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
26549         * tests/unictype/test-pr_combining.c: Likewise.
26550         * tests/unictype/test-pr_composite.c: Likewise.
26551         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26552         * tests/unictype/test-pr_dash.c: Likewise.
26553         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26554         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
26555         * tests/unictype/test-pr_deprecated.c: Likewise.
26556         * tests/unictype/test-pr_diacritic.c: Likewise.
26557         * tests/unictype/test-pr_extender.c: Likewise.
26558         * tests/unictype/test-pr_format_control.c: Likewise.
26559         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26560         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26561         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26562         * tests/unictype/test-pr_hex_digit.c: Likewise.
26563         * tests/unictype/test-pr_hyphen.c: Likewise.
26564         * tests/unictype/test-pr_id_continue.c: Likewise.
26565         * tests/unictype/test-pr_id_start.c: Likewise.
26566         * tests/unictype/test-pr_ideographic.c: Likewise.
26567         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
26568         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
26569         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26570         * tests/unictype/test-pr_iso_control.c: Likewise.
26571         * tests/unictype/test-pr_join_control.c: Likewise.
26572         * tests/unictype/test-pr_left_of_pair.c: Likewise.
26573         * tests/unictype/test-pr_line_separator.c: Likewise.
26574         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26575         * tests/unictype/test-pr_lowercase.c: Likewise.
26576         * tests/unictype/test-pr_math.c: Likewise.
26577         * tests/unictype/test-pr_non_break.c: Likewise.
26578         * tests/unictype/test-pr_not_a_character.c: Likewise.
26579         * tests/unictype/test-pr_numeric.c: Likewise.
26580         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26581         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
26582         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
26583         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26584         * tests/unictype/test-pr_other_id_start.c: Likewise.
26585         * tests/unictype/test-pr_other_lowercase.c: Likewise.
26586         * tests/unictype/test-pr_other_math.c: Likewise.
26587         * tests/unictype/test-pr_other_uppercase.c: Likewise.
26588         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
26589         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
26590         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
26591         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
26592         * tests/unictype/test-pr_private_use.c: Likewise.
26593         * tests/unictype/test-pr_punctuation.c: Likewise.
26594         * tests/unictype/test-pr_quotation_mark.c: Likewise.
26595         * tests/unictype/test-pr_radical.c: Likewise.
26596         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26597         * tests/unictype/test-pr_soft_dotted.c: Likewise.
26598         * tests/unictype/test-pr_space.c: Likewise.
26599         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26600         * tests/unictype/test-pr_titlecase.c: Likewise.
26601         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26602         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26603         * tests/unictype/test-pr_uppercase.c: Likewise.
26604         * tests/unictype/test-pr_variation_selector.c: Likewise.
26605         * tests/unictype/test-pr_white_space.c: Likewise.
26606         * tests/unictype/test-pr_xid_continue.c: Likewise.
26607         * tests/unictype/test-pr_xid_start.c: Likewise.
26608         * tests/unictype/test-pr_zero_width.c: Likewise.
26609         * tests/unictype/test-sy_c_whitespace.c: Likewise.
26610         * tests/unictype/test-sy_java_whitespace.c: Likewise.
26611
26612 2007-11-12  Bruno Haible  <bruno@clisp.org>
26613
26614         Unicode character classification functions.
26615         * lib/unictype.h: New file.
26616         * modules/unictype/base: New file.
26617         * modules/unictype/category-L: New file.
26618         * modules/unictype/category-Lu: New file.
26619         * modules/unictype/category-Ll: New file.
26620         * modules/unictype/category-Lt: New file.
26621         * modules/unictype/category-Lm: New file.
26622         * modules/unictype/category-Lo: New file.
26623         * modules/unictype/category-M: New file.
26624         * modules/unictype/category-Mn: New file.
26625         * modules/unictype/category-Mc: New file.
26626         * modules/unictype/category-Me: New file.
26627         * modules/unictype/category-N: New file.
26628         * modules/unictype/category-Nd: New file.
26629         * modules/unictype/category-Nl: New file.
26630         * modules/unictype/category-No: New file.
26631         * modules/unictype/category-P: New file.
26632         * modules/unictype/category-Pc: New file.
26633         * modules/unictype/category-Pd: New file.
26634         * modules/unictype/category-Ps: New file.
26635         * modules/unictype/category-Pe: New file.
26636         * modules/unictype/category-Pi: New file.
26637         * modules/unictype/category-Pf: New file.
26638         * modules/unictype/category-Po: New file.
26639         * modules/unictype/category-S: New file.
26640         * modules/unictype/category-Sm: New file.
26641         * modules/unictype/category-Sc: New file.
26642         * modules/unictype/category-Sk: New file.
26643         * modules/unictype/category-So: New file.
26644         * modules/unictype/category-Z: New file.
26645         * modules/unictype/category-Zs: New file.
26646         * modules/unictype/category-Zl: New file.
26647         * modules/unictype/category-Zp: New file.
26648         * modules/unictype/category-C: New file.
26649         * modules/unictype/category-Cc: New file.
26650         * modules/unictype/category-Cf: New file.
26651         * modules/unictype/category-Cs: New file.
26652         * modules/unictype/category-Co: New file.
26653         * modules/unictype/category-Cn: New file.
26654         * modules/unictype/category-or: New file.
26655         * modules/unictype/category-of: New file.
26656         * modules/unictype/category-test: New file.
26657         * modules/unictype/category-test-withtable: New file.
26658         * modules/unictype/category-byname: New file.
26659         * modules/unictype/category-none: New file.
26660         * modules/unictype/category-and: New file.
26661         * modules/unictype/category-and-not: New file.
26662         * modules/unictype/category-name: New file.
26663         * modules/unictype/combining-class: New file.
26664         * modules/unictype/category-all: New file.
26665         * modules/unictype/bidicategory-all: New file.
26666         * modules/unictype/bidicategory-byname: New file.
26667         * modules/unictype/bidicategory-name: New file.
26668         * modules/unictype/bidicategory-of: New file.
26669         * modules/unictype/bidicategory-test: New file.
26670         * modules/unictype/decimal-digit: New file.
26671         * modules/unictype/digit: New file.
26672         * modules/unictype/numeric: New file.
26673         * modules/unictype/mirror: New file.
26674         * modules/unictype/property-white-space: New file.
26675         * modules/unictype/property-alphabetic: New file.
26676         * modules/unictype/property-other-alphabetic: New file.
26677         * modules/unictype/property-not-a-character: New file.
26678         * modules/unictype/property-default-ignorable-code-point: New file.
26679         * modules/unictype/property-other-default-ignorable-code-point: New
26680         file.
26681         * modules/unictype/property-deprecated: New file.
26682         * modules/unictype/property-logical-order-exception: New file.
26683         * modules/unictype/property-variation-selector: New file.
26684         * modules/unictype/property-private-use: New file.
26685         * modules/unictype/property-unassigned-code-value: New file.
26686         * modules/unictype/property-uppercase: New file.
26687         * modules/unictype/property-other-uppercase: New file.
26688         * modules/unictype/property-lowercase: New file.
26689         * modules/unictype/property-other-lowercase: New file.
26690         * modules/unictype/property-titlecase: New file.
26691         * modules/unictype/property-soft-dotted: New file.
26692         * modules/unictype/property-id-start: New file.
26693         * modules/unictype/property-other-id-start: New file.
26694         * modules/unictype/property-id-continue: New file.
26695         * modules/unictype/property-other-id-continue: New file.
26696         * modules/unictype/property-xid-start: New file.
26697         * modules/unictype/property-xid-continue: New file.
26698         * modules/unictype/property-pattern-white-space: New file.
26699         * modules/unictype/property-pattern-syntax: New file.
26700         * modules/unictype/property-join-control: New file.
26701         * modules/unictype/property-grapheme-base: New file.
26702         * modules/unictype/property-grapheme-extend: New file.
26703         * modules/unictype/property-other-grapheme-extend: New file.
26704         * modules/unictype/property-grapheme-link: New file.
26705         * modules/unictype/property-bidi-control: New file.
26706         * modules/unictype/property-bidi-left-to-right: New file.
26707         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
26708         * modules/unictype/property-bidi-arabic-right-to-left: New file.
26709         * modules/unictype/property-bidi-european-digit: New file.
26710         * modules/unictype/property-bidi-eur-num-separator: New file.
26711         * modules/unictype/property-bidi-eur-num-terminator: New file.
26712         * modules/unictype/property-bidi-arabic-digit: New file.
26713         * modules/unictype/property-bidi-common-separator: New file.
26714         * modules/unictype/property-bidi-block-separator: New file.
26715         * modules/unictype/property-bidi-segment-separator: New file.
26716         * modules/unictype/property-bidi-whitespace: New file.
26717         * modules/unictype/property-bidi-non-spacing-mark: New file.
26718         * modules/unictype/property-bidi-boundary-neutral: New file.
26719         * modules/unictype/property-bidi-pdf: New file.
26720         * modules/unictype/property-bidi-embedding-or-override: New file.
26721         * modules/unictype/property-bidi-other-neutral: New file.
26722         * modules/unictype/property-hex-digit: New file.
26723         * modules/unictype/property-ascii-hex-digit: New file.
26724         * modules/unictype/property-ideographic: New file.
26725         * modules/unictype/property-unified-ideograph: New file.
26726         * modules/unictype/property-radical: New file.
26727         * modules/unictype/property-ids-binary-operator: New file.
26728         * modules/unictype/property-ids-trinary-operator: New file.
26729         * modules/unictype/property-zero-width: New file.
26730         * modules/unictype/property-space: New file.
26731         * modules/unictype/property-non-break: New file.
26732         * modules/unictype/property-iso-control: New file.
26733         * modules/unictype/property-format-control: New file.
26734         * modules/unictype/property-dash: New file.
26735         * modules/unictype/property-hyphen: New file.
26736         * modules/unictype/property-punctuation: New file.
26737         * modules/unictype/property-line-separator: New file.
26738         * modules/unictype/property-paragraph-separator: New file.
26739         * modules/unictype/property-quotation-mark: New file.
26740         * modules/unictype/property-sentence-terminal: New file.
26741         * modules/unictype/property-terminal-punctuation: New file.
26742         * modules/unictype/property-currency-symbol: New file.
26743         * modules/unictype/property-math: New file.
26744         * modules/unictype/property-other-math: New file.
26745         * modules/unictype/property-paired-punctuation: New file.
26746         * modules/unictype/property-left-of-pair: New file.
26747         * modules/unictype/property-combining: New file.
26748         * modules/unictype/property-composite: New file.
26749         * modules/unictype/property-decimal-digit: New file.
26750         * modules/unictype/property-numeric: New file.
26751         * modules/unictype/property-diacritic: New file.
26752         * modules/unictype/property-extender: New file.
26753         * modules/unictype/property-ignorable-control: New file.
26754         * modules/unictype/property-test: New file.
26755         * modules/unictype/property-byname: New file.
26756         * modules/unictype/property-all: New file.
26757         * modules/unictype/scripts: New file.
26758         * modules/unictype/scripts-all: New file.
26759         * modules/unictype/block-of: New file.
26760         * modules/unictype/block-test: New file.
26761         * modules/unictype/block-list: New file.
26762         * modules/unictype/block-all: New file.
26763         * modules/unictype/syntax-c-whitespace: New file.
26764         * modules/unictype/syntax-java-whitespace: New file.
26765         * modules/unictype/syntax-c-ident: New file.
26766         * modules/unictype/syntax-java-ident: New file.
26767         * modules/unictype/ctype-alnum: New file.
26768         * modules/unictype/ctype-alpha: New file.
26769         * modules/unictype/ctype-cntrl: New file.
26770         * modules/unictype/ctype-digit: New file.
26771         * modules/unictype/ctype-graph: New file.
26772         * modules/unictype/ctype-lower: New file.
26773         * modules/unictype/ctype-print: New file.
26774         * modules/unictype/ctype-punct: New file.
26775         * modules/unictype/ctype-space: New file.
26776         * modules/unictype/ctype-upper: New file.
26777         * modules/unictype/ctype-xdigit: New file.
26778         * modules/unictype/ctype-blank: New file.
26779         * lib/unictype/bidi_byname.c: New file.
26780         * lib/unictype/bidi_name.c: New file.
26781         * lib/unictype/bidi_of.c: New file.
26782         * lib/unictype/bidi_test.c: New file.
26783         * lib/unictype/bitmap.h: New file.
26784         * lib/unictype/block_test.c: New file.
26785         * lib/unictype/blocks.c: New file.
26786         * lib/unictype/categ_C.c: New file.
26787         * lib/unictype/categ_Cc.c: New file.
26788         * lib/unictype/categ_Cf.c: New file.
26789         * lib/unictype/categ_Cn.c: New file.
26790         * lib/unictype/categ_Co.c: New file.
26791         * lib/unictype/categ_Cs.c: New file.
26792         * lib/unictype/categ_L.c: New file.
26793         * lib/unictype/categ_Ll.c: New file.
26794         * lib/unictype/categ_Lm.c: New file.
26795         * lib/unictype/categ_Lo.c: New file.
26796         * lib/unictype/categ_Lt.c: New file.
26797         * lib/unictype/categ_Lu.c: New file.
26798         * lib/unictype/categ_M.c: New file.
26799         * lib/unictype/categ_Mc.c: New file.
26800         * lib/unictype/categ_Me.c: New file.
26801         * lib/unictype/categ_Mn.c: New file.
26802         * lib/unictype/categ_N.c: New file.
26803         * lib/unictype/categ_Nd.c: New file.
26804         * lib/unictype/categ_Nl.c: New file.
26805         * lib/unictype/categ_No.c: New file.
26806         * lib/unictype/categ_P.c: New file.
26807         * lib/unictype/categ_Pc.c: New file.
26808         * lib/unictype/categ_Pd.c: New file.
26809         * lib/unictype/categ_Pe.c: New file.
26810         * lib/unictype/categ_Pf.c: New file.
26811         * lib/unictype/categ_Pi.c: New file.
26812         * lib/unictype/categ_Po.c: New file.
26813         * lib/unictype/categ_Ps.c: New file.
26814         * lib/unictype/categ_S.c: New file.
26815         * lib/unictype/categ_Sc.c: New file.
26816         * lib/unictype/categ_Sk.c: New file.
26817         * lib/unictype/categ_Sm.c: New file.
26818         * lib/unictype/categ_So.c: New file.
26819         * lib/unictype/categ_Z.c: New file.
26820         * lib/unictype/categ_Zl.c: New file.
26821         * lib/unictype/categ_Zp.c: New file.
26822         * lib/unictype/categ_Zs.c: New file.
26823         * lib/unictype/categ_and.c: New file.
26824         * lib/unictype/categ_and_not.c: New file.
26825         * lib/unictype/categ_byname.c: New file.
26826         * lib/unictype/categ_name.c: New file.
26827         * lib/unictype/categ_none.c: New file.
26828         * lib/unictype/categ_of.c: New file.
26829         * lib/unictype/categ_or.c: New file.
26830         * lib/unictype/categ_test.c: New file.
26831         * lib/unictype/combining.c: New file.
26832         * lib/unictype/ctype_alnum.c: New file.
26833         * lib/unictype/ctype_alpha.c: New file.
26834         * lib/unictype/ctype_blank.c: New file.
26835         * lib/unictype/ctype_cntrl.c: New file.
26836         * lib/unictype/ctype_digit.c: New file.
26837         * lib/unictype/ctype_graph.c: New file.
26838         * lib/unictype/ctype_lower.c: New file.
26839         * lib/unictype/ctype_print.c: New file.
26840         * lib/unictype/ctype_punct.c: New file.
26841         * lib/unictype/ctype_space.c: New file.
26842         * lib/unictype/ctype_upper.c: New file.
26843         * lib/unictype/ctype_xdigit.c: New file.
26844         * lib/unictype/decdigit.c: New file.
26845         * lib/unictype/digit.c: New file.
26846         * lib/unictype/identsyntaxmap.h: New file.
26847         * lib/unictype/mirror.c: New file.
26848         * lib/unictype/numeric.c: New file.
26849         * lib/unictype/pr_alphabetic.c: New file.
26850         * lib/unictype/pr_ascii_hex_digit.c: New file.
26851         * lib/unictype/pr_bidi_arabic_digit.c: New file.
26852         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
26853         * lib/unictype/pr_bidi_block_separator.c: New file.
26854         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
26855         * lib/unictype/pr_bidi_common_separator.c: New file.
26856         * lib/unictype/pr_bidi_control.c: New file.
26857         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
26858         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
26859         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
26860         * lib/unictype/pr_bidi_european_digit.c: New file.
26861         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
26862         * lib/unictype/pr_bidi_left_to_right.c: New file.
26863         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
26864         * lib/unictype/pr_bidi_other_neutral.c: New file.
26865         * lib/unictype/pr_bidi_pdf.c: New file.
26866         * lib/unictype/pr_bidi_segment_separator.c: New file.
26867         * lib/unictype/pr_bidi_whitespace.c: New file.
26868         * lib/unictype/pr_byname.c: New file.
26869         * lib/unictype/pr_byname.gperf: New file.
26870         * lib/unictype/pr_combining.c: New file.
26871         * lib/unictype/pr_composite.c: New file.
26872         * lib/unictype/pr_currency_symbol.c: New file.
26873         * lib/unictype/pr_dash.c: New file.
26874         * lib/unictype/pr_decimal_digit.c: New file.
26875         * lib/unictype/pr_default_ignorable_code_point.c: New file.
26876         * lib/unictype/pr_deprecated.c: New file.
26877         * lib/unictype/pr_diacritic.c: New file.
26878         * lib/unictype/pr_extender.c: New file.
26879         * lib/unictype/pr_format_control.c: New file.
26880         * lib/unictype/pr_grapheme_base.c: New file.
26881         * lib/unictype/pr_grapheme_extend.c: New file.
26882         * lib/unictype/pr_grapheme_link.c: New file.
26883         * lib/unictype/pr_hex_digit.c: New file.
26884         * lib/unictype/pr_hyphen.c: New file.
26885         * lib/unictype/pr_id_continue.c: New file.
26886         * lib/unictype/pr_id_start.c: New file.
26887         * lib/unictype/pr_ideographic.c: New file.
26888         * lib/unictype/pr_ids_binary_operator.c: New file.
26889         * lib/unictype/pr_ids_trinary_operator.c: New file.
26890         * lib/unictype/pr_ignorable_control.c: New file.
26891         * lib/unictype/pr_iso_control.c: New file.
26892         * lib/unictype/pr_join_control.c: New file.
26893         * lib/unictype/pr_left_of_pair.c: New file.
26894         * lib/unictype/pr_line_separator.c: New file.
26895         * lib/unictype/pr_logical_order_exception.c: New file.
26896         * lib/unictype/pr_lowercase.c: New file.
26897         * lib/unictype/pr_math.c: New file.
26898         * lib/unictype/pr_non_break.c: New file.
26899         * lib/unictype/pr_not_a_character.c: New file.
26900         * lib/unictype/pr_numeric.c: New file.
26901         * lib/unictype/pr_other_alphabetic.c: New file.
26902         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
26903         * lib/unictype/pr_other_grapheme_extend.c: New file.
26904         * lib/unictype/pr_other_id_continue.c: New file.
26905         * lib/unictype/pr_other_id_start.c: New file.
26906         * lib/unictype/pr_other_lowercase.c: New file.
26907         * lib/unictype/pr_other_math.c: New file.
26908         * lib/unictype/pr_other_uppercase.c: New file.
26909         * lib/unictype/pr_paired_punctuation.c: New file.
26910         * lib/unictype/pr_paragraph_separator.c: New file.
26911         * lib/unictype/pr_pattern_syntax.c: New file.
26912         * lib/unictype/pr_pattern_white_space.c: New file.
26913         * lib/unictype/pr_private_use.c: New file.
26914         * lib/unictype/pr_punctuation.c: New file.
26915         * lib/unictype/pr_quotation_mark.c: New file.
26916         * lib/unictype/pr_radical.c: New file.
26917         * lib/unictype/pr_sentence_terminal.c: New file.
26918         * lib/unictype/pr_soft_dotted.c: New file.
26919         * lib/unictype/pr_space.c: New file.
26920         * lib/unictype/pr_terminal_punctuation.c: New file.
26921         * lib/unictype/pr_test.c: New file.
26922         * lib/unictype/pr_titlecase.c: New file.
26923         * lib/unictype/pr_unassigned_code_value.c: New file.
26924         * lib/unictype/pr_unified_ideograph.c: New file.
26925         * lib/unictype/pr_uppercase.c: New file.
26926         * lib/unictype/pr_variation_selector.c: New file.
26927         * lib/unictype/pr_white_space.c: New file.
26928         * lib/unictype/pr_xid_continue.c: New file.
26929         * lib/unictype/pr_xid_start.c: New file.
26930         * lib/unictype/pr_zero_width.c: New file.
26931         * lib/unictype/scripts.c: New file.
26932         * lib/unictype/sy_c_ident.c: New file.
26933         * lib/unictype/sy_c_whitespace.c: New file.
26934         * lib/unictype/sy_java_ident.c: New file.
26935         * lib/unictype/sy_java_whitespace.c: New file.
26936
26937         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
26938         Unicode 5.0.0.
26939         * lib/unictype/blocks.h: Likewise.
26940         * lib/unictype/categ_C.h: Likewise.
26941         * lib/unictype/categ_Cc.h: Likewise.
26942         * lib/unictype/categ_Cf.h: Likewise.
26943         * lib/unictype/categ_Cn.h: Likewise.
26944         * lib/unictype/categ_Co.h: Likewise.
26945         * lib/unictype/categ_Cs.h: Likewise.
26946         * lib/unictype/categ_L.h: Likewise.
26947         * lib/unictype/categ_Ll.h: Likewise.
26948         * lib/unictype/categ_Lm.h: Likewise.
26949         * lib/unictype/categ_Lo.h: Likewise.
26950         * lib/unictype/categ_Lt.h: Likewise.
26951         * lib/unictype/categ_Lu.h: Likewise.
26952         * lib/unictype/categ_M.h: Likewise.
26953         * lib/unictype/categ_Mc.h: Likewise.
26954         * lib/unictype/categ_Me.h: Likewise.
26955         * lib/unictype/categ_Mn.h: Likewise.
26956         * lib/unictype/categ_N.h: Likewise.
26957         * lib/unictype/categ_Nd.h: Likewise.
26958         * lib/unictype/categ_Nl.h: Likewise.
26959         * lib/unictype/categ_No.h: Likewise.
26960         * lib/unictype/categ_P.h: Likewise.
26961         * lib/unictype/categ_Pc.h: Likewise.
26962         * lib/unictype/categ_Pd.h: Likewise.
26963         * lib/unictype/categ_Pe.h: Likewise.
26964         * lib/unictype/categ_Pf.h: Likewise.
26965         * lib/unictype/categ_Pi.h: Likewise.
26966         * lib/unictype/categ_Po.h: Likewise.
26967         * lib/unictype/categ_Ps.h: Likewise.
26968         * lib/unictype/categ_S.h: Likewise.
26969         * lib/unictype/categ_Sc.h: Likewise.
26970         * lib/unictype/categ_Sk.h: Likewise.
26971         * lib/unictype/categ_Sm.h: Likewise.
26972         * lib/unictype/categ_So.h: Likewise.
26973         * lib/unictype/categ_Z.h: Likewise.
26974         * lib/unictype/categ_Zl.h: Likewise.
26975         * lib/unictype/categ_Zp.h: Likewise.
26976         * lib/unictype/categ_Zs.h: Likewise.
26977         * lib/unictype/categ_of.h: Likewise.
26978         * lib/unictype/combining.h: Likewise.
26979         * lib/unictype/ctype_alnum.h: Likewise.
26980         * lib/unictype/ctype_alpha.h: Likewise.
26981         * lib/unictype/ctype_blank.h: Likewise.
26982         * lib/unictype/ctype_cntrl.h: Likewise.
26983         * lib/unictype/ctype_digit.h: Likewise.
26984         * lib/unictype/ctype_graph.h: Likewise.
26985         * lib/unictype/ctype_lower.h: Likewise.
26986         * lib/unictype/ctype_print.h: Likewise.
26987         * lib/unictype/ctype_punct.h: Likewise.
26988         * lib/unictype/ctype_space.h: Likewise.
26989         * lib/unictype/ctype_upper.h: Likewise.
26990         * lib/unictype/ctype_xdigit.h: Likewise.
26991         * lib/unictype/decdigit.h: Likewise.
26992         * lib/unictype/digit.h: Likewise.
26993         * lib/unictype/mirror.h: Likewise.
26994         * lib/unictype/numeric.h: Likewise.
26995         * lib/unictype/pr_alphabetic.h: Likewise.
26996         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26997         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26998         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26999         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27000         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27001         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27002         * lib/unictype/pr_bidi_control.h: Likewise.
27003         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27004         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27005         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27006         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27007         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27008         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27009         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27010         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27011         * lib/unictype/pr_bidi_pdf.h: Likewise.
27012         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27013         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27014         * lib/unictype/pr_combining.h: Likewise.
27015         * lib/unictype/pr_composite.h: Likewise.
27016         * lib/unictype/pr_currency_symbol.h: Likewise.
27017         * lib/unictype/pr_dash.h: Likewise.
27018         * lib/unictype/pr_decimal_digit.h: Likewise.
27019         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27020         * lib/unictype/pr_deprecated.h: Likewise.
27021         * lib/unictype/pr_diacritic.h: Likewise.
27022         * lib/unictype/pr_extender.h: Likewise.
27023         * lib/unictype/pr_format_control.h: Likewise.
27024         * lib/unictype/pr_grapheme_base.h: Likewise.
27025         * lib/unictype/pr_grapheme_extend.h: Likewise.
27026         * lib/unictype/pr_grapheme_link.h: Likewise.
27027         * lib/unictype/pr_hex_digit.h: Likewise.
27028         * lib/unictype/pr_hyphen.h: Likewise.
27029         * lib/unictype/pr_id_continue.h: Likewise.
27030         * lib/unictype/pr_id_start.h: Likewise.
27031         * lib/unictype/pr_ideographic.h: Likewise.
27032         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27033         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27034         * lib/unictype/pr_ignorable_control.h: Likewise.
27035         * lib/unictype/pr_iso_control.h: Likewise.
27036         * lib/unictype/pr_join_control.h: Likewise.
27037         * lib/unictype/pr_left_of_pair.h: Likewise.
27038         * lib/unictype/pr_line_separator.h: Likewise.
27039         * lib/unictype/pr_logical_order_exception.h: Likewise.
27040         * lib/unictype/pr_lowercase.h: Likewise.
27041         * lib/unictype/pr_math.h: Likewise.
27042         * lib/unictype/pr_non_break.h: Likewise.
27043         * lib/unictype/pr_not_a_character.h: Likewise.
27044         * lib/unictype/pr_numeric.h: Likewise.
27045         * lib/unictype/pr_other_alphabetic.h: Likewise.
27046         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27047         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27048         * lib/unictype/pr_other_id_continue.h: Likewise.
27049         * lib/unictype/pr_other_id_start.h: Likewise.
27050         * lib/unictype/pr_other_lowercase.h: Likewise.
27051         * lib/unictype/pr_other_math.h: Likewise.
27052         * lib/unictype/pr_other_uppercase.h: Likewise.
27053         * lib/unictype/pr_paired_punctuation.h: Likewise.
27054         * lib/unictype/pr_paragraph_separator.h: Likewise.
27055         * lib/unictype/pr_pattern_syntax.h: Likewise.
27056         * lib/unictype/pr_pattern_white_space.h: Likewise.
27057         * lib/unictype/pr_private_use.h: Likewise.
27058         * lib/unictype/pr_punctuation.h: Likewise.
27059         * lib/unictype/pr_quotation_mark.h: Likewise.
27060         * lib/unictype/pr_radical.h: Likewise.
27061         * lib/unictype/pr_sentence_terminal.h: Likewise.
27062         * lib/unictype/pr_soft_dotted.h: Likewise.
27063         * lib/unictype/pr_space.h: Likewise.
27064         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27065         * lib/unictype/pr_titlecase.h: Likewise.
27066         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27067         * lib/unictype/pr_unified_ideograph.h: Likewise.
27068         * lib/unictype/pr_uppercase.h: Likewise.
27069         * lib/unictype/pr_variation_selector.h: Likewise.
27070         * lib/unictype/pr_white_space.h: Likewise.
27071         * lib/unictype/pr_xid_continue.h: Likewise.
27072         * lib/unictype/pr_xid_start.h: Likewise.
27073         * lib/unictype/pr_zero_width.h: Likewise.
27074         * lib/unictype/scripts.h: Likewise.
27075         * lib/unictype/scripts_byname.gperf: Likewise.
27076         * lib/unictype/sy_c_ident.h: Likewise.
27077         * lib/unictype/sy_c_whitespace.h: Likewise.
27078         * lib/unictype/sy_java_ident.h: Likewise.
27079         * lib/unictype/sy_java_whitespace.h: Likewise.
27080
27081         * lib/unictype/Makefile: New file.
27082         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27083         glibc.
27084         * lib/unictype/3level.h: New file, copied from glibc.
27085         * lib/unictype/3levelbit.h: New file.
27086
27087 2007-11-11  Bruno Haible  <bruno@clisp.org>
27088
27089         * modules/gperf: New file.
27090         * modules/iconv_open (Depends-on): Add it.
27091         (Makefile.am): Remove the GPERF definition.
27092
27093 2007-11-11  Bruno Haible  <bruno@clisp.org>
27094
27095         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27096         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27097
27098 2007-11-11  Bruno Haible  <bruno@clisp.org>
27099
27100         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27101         (usage): Remove function.
27102
27103 2007-11-11  Bruno Haible  <bruno@clisp.org>
27104
27105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27106         gl_FUNC_CEILF_LIBS.
27107         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27108         gl_FUNC_CEIL_LIBS.
27109         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27110         gl_FUNC_CEILL_LIBS.
27111         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27112         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27113         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27114
27115 2007-11-11  Bruno Haible  <bruno@clisp.org>
27116
27117         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27118         roundf were declared but do not exist on functions.
27119         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27120         roundl were declared but do not exist on functions.
27121         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27122         HAVE_FLOORL_AND_CEILL, respectively.
27123         Needed for Sun C on Solaris 10.
27124
27125 2007-11-11  Bruno Haible  <bruno@clisp.org>
27126
27127         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27128         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27129         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27130         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27131         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27132         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27133         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27134         HAVE_DECL_ROUNDF.
27135         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27136         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27138         of HAVE_DECL_ROUND*.
27139         * modules/math (Makefile.am): Update.
27140
27141 2007-11-10  Bruno Haible  <bruno@clisp.org>
27142
27143         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27144         ptrdiff_t as m4/intl.m4.
27145
27146 2007-11-10  Jim Meyering  <meyering@redhat.com>
27147
27148         Avoid link failure for the argmatch test.
27149         * tests/test-argmatch.c (usage): Define function to avoid a link
27150         failure: argmatch_die requires a usage function.
27151
27152 2007-11-09  Bruno Haible  <bruno@clisp.org>
27153
27154         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27155         * doc/functions/vsnprintf.texi: Likewise.
27156         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27157         with a size argument < 2.
27158
27159 2007-11-09  Bruno Haible  <bruno@clisp.org>
27160
27161         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27162         buffer. Fixes an inefficiency introduced on 2007-11-03.
27163
27164 2007-11-09  Bruno Haible  <bruno@clisp.org>
27165
27166         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27167         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27168
27169 2007-11-08  Jim Meyering  <meyering@redhat.com>
27170
27171         Change cache variable name prefix "jm_" to "gl_" everywhere.
27172         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27173         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27174         * m4/uptime.m4: s/gl_/jm_/
27175
27176 2007-11-07  Bruno Haible  <bruno@clisp.org>
27177
27178         Update to GNU gettext 0.17.
27179         * m4/intl.m4: Update to GNU gettext 0.17.
27180         * m4/po.m4: Likewise.
27181         * modules/gettext (Files): Remove m4/ulonglong.m4.
27182         (configure.ac): Require gettext infrastructure from version 0.17.
27183
27184 2007-11-06  Bruno Haible  <bruno@clisp.org>
27185
27186         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27187         symbolic values are not defined in a public header.
27188         * lib/freadable.c (freadable) [QNX]: Likewise.
27189         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27190         * lib/freading.c (freading) [QNX]: Likewise.
27191         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27192         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27193         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27194         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27195         Reported by Alain Magloire.
27196
27197         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27198
27199 2007-11-05  Bruno Haible  <bruno@clisp.org>
27200
27201         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27202         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27203         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27204         Reported by Eric Blake.
27205
27206 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27207             Bruno Haible  <bruno@clisp.org>
27208
27209         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27210         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27211         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27212         (malloc): Undefine also before including <stdlib.h>.
27213         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27214         Needed on OSF/1 4.0.
27215
27216 2007-11-05  Jim Meyering  <meyering@redhat.com>
27217
27218         git-version-gen: sync from coreutils.
27219         * build-aux/git-version-gen: Add comments.
27220         Change the first '-' to '.' in the snapshot version string,
27221         e.g., 6.9-377-08144 -> 6.9.377-08144
27222         Remove first parameter.
27223         Don't declare a version "-dirty" merely because a time
27224         stamp has changed.
27225
27226 2007-11-04  Bruno Haible  <bruno@clisp.org>
27227
27228         * lib/lock.h: Protect all macro definitions containing an 'if'
27229         statement through a "do { ... } while (0)".
27230         * lib/tls.h: Likewise.
27231
27232 2007-11-04  Bruno Haible  <bruno@clisp.org>
27233
27234         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27235
27236 2007-11-04  Bruno Haible  <bruno@clisp.org>
27237
27238         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27239         * modules/fprintf-posix (Depends-on): Add nocrash.
27240         * modules/snprintf-posix (Depends-on): Likewise.
27241         * modules/sprintf-posix (Depends-on): Likewise.
27242         * modules/vasnprintf-posix (Depends-on): Likewise.
27243         * modules/vasprintf-posix (Depends-on): Likewise.
27244         * modules/vfprintf-posix (Depends-on): Likewise.
27245         * modules/vsnprintf-posix (Depends-on): Likewise.
27246         * modules/vsprintf-posix (Depends-on): Likewise.
27247         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27248         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27249         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27251         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27252         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27253         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27254
27255 2007-11-04  Bruno Haible  <bruno@clisp.org>
27256
27257         * modules/nocrash: New file.
27258         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27259         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27260
27261 2007-11-04  Bruno Haible  <bruno@clisp.org>
27262
27263         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27264         precision handling.
27265         * tests/test-vasprintf-posix.c (test_function): Likewise.
27266         * tests/test-snprintf-posix.h (test_function): Likewise.
27267         * tests/test-sprintf-posix.h (test_function): Likewise.
27268
27269         Fix *printf behaviour for large precisions on mingw and BeOS.
27270         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27271         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27273         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27274         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27275         gl_PRINTF_PRECISION and test its result. Invoke
27276         gl_PREREQ_VASNPRINTF_PRECISION.
27277         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27278         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27280         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27281         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27283         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27284         * doc/functions/fprintf.texi: Update.
27285         * doc/functions/printf.texi: Update.
27286         * doc/functions/snprintf.texi: Update.
27287         * doc/functions/sprintf.texi: Update.
27288         * doc/functions/vfprintf.texi: Update.
27289         * doc/functions/vprintf.texi: Update.
27290         * doc/functions/vsnprintf.texi: Update.
27291         * doc/functions/vsprintf.texi: Update.
27292
27293 2007-11-04  Bruno Haible  <bruno@clisp.org>
27294
27295         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27296
27297 2007-11-04  Bruno Haible  <bruno@clisp.org>
27298
27299         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27300         Reported by Sylvain Beucler <beuc@gnu.org>.
27301
27302 2007-11-03  Bruno Haible  <bruno@clisp.org>
27303
27304         * tests/test-fprintf-posix2.sh: New file.
27305         * tests/test-fprintf-posix2.c: New file.
27306         * modules/fprintf-posix-tests (Files): Add them.
27307         (TESTS): Add test-fprintf-posix2.sh.
27308         (configure.ac): Check for getrlimit and setrlimit.
27309         (check_PROGRAMS): Add test-fprintf-posix2.
27310
27311         * tests/test-printf-posix2.sh: New file.
27312         * tests/test-printf-posix2.c: New file.
27313         * modules/printf-posix-tests (Files): Add them.
27314         (TESTS): Add test-printf-posix2.sh.
27315         (configure.ac): Check for getrlimit and setrlimit.
27316         (check_PROGRAMS): Add test-printf-posix2.
27317
27318         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27319         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27320         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27321         (decode_double): New function, copied from decode_long_double.
27322         (scale10_round_decimal_decoded): New function, extracted from
27323         scale10_round_decimal_long_double.
27324         (scale10_round_decimal_long_double): Use it.
27325         (scale10_round_decimal_double): New function.
27326         (floorlog10): New function.
27327         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27329         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27330         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27331         gl_PRINTF_ENOMEM and test its result. Invoke
27332         gl_PREREQ_VASNPRINTF_ENOMEM.
27333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27334         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27335         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27336         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27337         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27338         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27339         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27340         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27341         * modules/snprintf-posix (Depends-on): Likewise.
27342         * modules/sprintf-posix (Depends-on): Likewise.
27343         * modules/vasnprintf-posix (Depends-on): Likewise.
27344         * modules/vasprintf-posix (Depends-on): Likewise.
27345         * modules/vfprintf-posix (Depends-on): Likewise.
27346         * modules/vsnprintf-posix (Depends-on): Likewise.
27347         * modules/vsprintf-posix (Depends-on): Likewise.
27348         * doc/functions/fprintf.texi: Update.
27349         * doc/functions/printf.texi: Update.
27350         * doc/functions/snprintf.texi: Update.
27351         * doc/functions/sprintf.texi: Update.
27352         * doc/functions/vfprintf.texi: Update.
27353         * doc/functions/vprintf.texi: Update.
27354         * doc/functions/vsnprintf.texi: Update.
27355         * doc/functions/vsprintf.texi: Update.
27356
27357 2007-11-03  Bruno Haible  <bruno@clisp.org>
27358
27359         * modules/frexp-nolibm-tests: New file.
27360
27361         * modules/frexp-nolibm: New file.
27362         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27363
27364 2007-11-03  Bruno Haible  <bruno@clisp.org>
27365
27366         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27367         value is C99 compliant.
27368         Needed for OSF/1 5.1.
27369
27370 2007-11-03  Bruno Haible  <bruno@clisp.org>
27371
27372         Fix out-of-memory handling of vasnprintf.
27373         * lib/printf-parse.c: Include <errno.h>.
27374         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27375         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27376         is already set.
27377
27378 2007-11-02  Eric Blake  <ebb9@byu.net>
27379
27380         Fix tests on cygwin.
27381         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27382
27383 2007-11-01  Bruno Haible  <bruno@clisp.org>
27384
27385         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27386         warning.
27387         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27388         needed for POSIX compatibility.
27389
27390 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27391
27392         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27393         for compatibility with GNU.
27394
27395 2007-11-01  Bruno Haible  <bruno@clisp.org>
27396
27397         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27398         (putenv): Renamed from rpl_putenv. Change argument type from
27399         'const char *' to 'char *'.
27400         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27401         of defining putenv in config.h, just set REPLACE_PUTENV.
27402         * modules/putenv (Depends-on): Add stdlib.
27403         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27404         (Include): Use <stdlib.h>.
27405         * lib/stdlib.in.h (putenv): New declaration.
27406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27407         REPLACE_PUTENV.
27408         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27409         REPLACE_PUTENV.
27410         Needed for MacOS X 10.5.0.
27411         Reported by Peter O'Gorman <peter@pogma.com>.
27412
27413 2007-11-01  Jim Meyering  <meyering@redhat.com>
27414
27415         Treat an empty date string exactly like "0".
27416         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27417         if the remaining date string (to be parsed) is empty, use "0".
27418         Reported by Mischa Molhoek and discussed in this thread:
27419         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27420
27421 2007-10-31  Bruno Haible  <bruno@clisp.org>
27422
27423         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27424         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27425         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27426         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27427         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27428         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27429
27430 2007-10-31  Bruno Haible  <bruno@clisp.org>
27431
27432         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27433         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27434         (AC_TYPE_LONG_LONG_INT): Use it.
27435         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27436         it as well.
27437         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27438         to m4/longlong.m4.
27439         * modules/stdint (Files): Remove m4/ulonglong.m4.
27440         * modules/strtoull (Files): Use m4/longlong.m4 instead of
27441         m4/ulonglong.m4.
27442         * modules/strtoumax (Files): Likewise.
27443
27444 2007-10-30  Bruno Haible  <bruno@clisp.org>
27445
27446         * modules/xvasprintf-posix: New file.
27447         Suggested by Eric Blake.
27448
27449 2007-10-30  Bruno Haible  <bruno@clisp.org>
27450
27451         * modules/xprintf-posix-tests: New file.
27452         * tests/test-xprintf-posix.sh: New file.
27453         * tests/test-xprintf-posix.c: New file.
27454         * tests/test-xfprintf-posix.c: New file.
27455
27456         * modules/xprintf-posix: New file.
27457
27458 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27459
27460         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27461         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27462         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27463
27464 2007-10-29  Bruno Haible  <bruno@clisp.org>
27465
27466         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27467         contain the special marker '_cv_'.
27468         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27469         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27470         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27471         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27472         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27473         Reported by Ralf Wildenhues.
27474
27475 2007-10-29  Bruno Haible  <bruno@clisp.org>
27476
27477         * gnulib-tool (func_import): When --lgpl is not specified, set
27478         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27479         GPLv3.
27480         Reported by Simon Josefsson.
27481
27482 2007-10-28  Bruno Haible  <bruno@clisp.org>
27483
27484         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27485         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27486         HAVE_DECL_ISFINITE.
27487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27488         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27489         HAVE_DECL_ISFINITE.
27490
27491 2007-10-28  Bruno Haible  <bruno@clisp.org>
27492
27493         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27494         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27495
27496 2007-10-28  Bruno Haible  <bruno@clisp.org>
27497
27498         Fix link errors with Sun C 5.0 on Solaris 10.
27499         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27500         function is declared but not present in the compiler's libm.
27501         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27502         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27503         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27504         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27505         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27506         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27507         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27509         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27510         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27511         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27512         HAVE_DECL_FLOORL.
27513
27514 2007-10-28  Bruno Haible  <bruno@clisp.org>
27515
27516         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27517         gl_FUNC_FLOORL. Cache the result.
27518         (gl_FUNC_FLOORL): Use it.
27519         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
27520         gl_FUNC_CEILL. Cache the result.
27521         (gl_FUNC_CEILL): Use it.
27522
27523         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
27524         gl_FUNC_FLOOR. Cache the result.
27525         (gl_FUNC_FLOOR): Use it.
27526         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
27527         gl_FUNC_CEIL. Cache the result.
27528         (gl_FUNC_CEIL): Use it.
27529
27530         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
27531         gl_FUNC_FLOORF. Cache the result.
27532         (gl_FUNC_FLOORF): Use it.
27533         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
27534         gl_FUNC_CEILF. Cache the result.
27535         (gl_FUNC_CEILF): Use it.
27536
27537 2007-10-28  Bruno Haible  <bruno@clisp.org>
27538
27539         * gnulib-tool: Allow specifying the LGPL version number through
27540         --lgpl=2 or --lgpl=3.
27541         (func_usage): Document --lgpl with argument.
27542         Handle --lgpl=... arguments.
27543         (func_import): Recognize also gl_LGPL calls with an argument. When
27544         --lgpl=2 is used and the module's license is just LGPL, report an
27545         error. Set sed_transform_lib_file according to the lgpl variable. In
27546         the generated files, use --lgpl or gl_LGPL invocations with argument,
27547         if necessary.
27548         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
27549         an LGPv2+ license.
27550         * doc/gnulib-tool.texi (Modified imports): Update explanation of
27551         gl_LGPL macro.
27552
27553 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27554             Bruno Haible  <bruno@clisp.org>
27555
27556         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
27557         (u16_uctomb_aux): Likewise.
27558         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
27559         !HAVE_INLINE.
27560         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
27561
27562 2007-10-28  Bruno Haible  <bruno@clisp.org>
27563
27564         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
27565         Invoke AM_GETTEXT_OPTION if it exists.
27566         * modules/vasprintf: Likewise.
27567         * modules/verror: Likewise.
27568         * modules/xprintf: Likewise.
27569         * modules/xvasprintf: Likewise.
27570
27571 2007-10-27  Ben Pfaff  <blp@gnu.org>
27572
27573         * lib/math.in.h: Define isfinite macro and prototypes for
27574         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
27575         implementations.
27576         * m4/math_h.m4: New substitutions for isfinite module.
27577         * lib/isfinite.c: New file.
27578         * m4/isfinite.m4: New file.
27579         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
27580         * modules/isfinite: New file.
27581         * modules/isfinite-tests: New file.
27582         * tests/tests-isfinite.c: New file.
27583         * doc/functions/isfinite.texi: Mention isfinite module.
27584         * MODULES.html.sh: Mention new module.
27585
27586 2007-10-27  Ben Pfaff  <blp@gnu.org>
27587
27588         Ralf Wildenhues reported that Tru64 4.0D declares the round
27589         functions but does not have definitions.
27590         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
27591         cannot be found in any library, set the output variable to
27592         "missing" instead of "".
27593         * m4/round.m4: Also use our substitute if we cannot find round in
27594         any library, even if it is declared.
27595         * m4/roundf.m4: Likewise for roundf.
27596         * m4/roundl.m4: Likewise for roundl.
27597         * lib/math.in.h: Undefine roundf, round, roundl before defining
27598         their replacements, to allow for hypothetical systems where these
27599         may be defined as macros but not available in libraries.
27600
27601 2007-10-27  Bruno Haible  <bruno@clisp.org>
27602
27603         * doc/gnulib.texi: Invoke @firstparagraphindent.
27604         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
27605         changes in gnulib.
27606         (Source changes): New section.
27607
27608 2007-10-26  Bruno Haible  <bruno@clisp.org>
27609
27610         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
27611         borrowed from autoconf.
27612
27613 2007-10-26  Bruno Haible  <bruno@clisp.org>
27614
27615         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
27616         strerror returned the empty string. Needed on HP-UX 11.00.
27617
27618 2007-10-24  Micah Cowan  <micah@cowan.name>
27619
27620         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
27621         * build-aux/bootstrap: Remove support for now-unnecessary option,
27622         --cvs-user, and envvars CVS_USER, CVS_RSH.
27623
27624 2007-10-24  Jim Meyering  <meyering@redhat.com>
27625
27626         Avoid diagnostics from sha1sum when there is no cached checksum.
27627         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
27628         if the po.s1 file hasn't been created yet.
27629
27630         * build-aux/bootstrap: Sync from coreutils:
27631         2007-10-24  Jim Meyering  <meyering@redhat.com>
27632         Get gnulib from the git repository, not from an obsolete cvs one.
27633         * build-aux/bootstrap: Suggestion from Micah Cowan.
27634         2007-10-04  Jim Meyering  <jim@meyering.net>
27635         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
27636         (update_po_files): Work also when there are no .po files in po/.
27637
27638 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27639
27640         * README: Append ".git" to git and cg examples.
27641         Problem reported by Benoit Sigoure.
27642
27643 2007-10-23  Micah Cowan  <micah@cowan.name>
27644
27645         * users.txt: Add wget.
27646
27647 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27648
27649         Fix linking of some unistdio tests on FreeBSD.
27650         * modules/unistdio/u16-vsnprintf-tests
27651         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
27652         * modules/unistdio/u16-vsprintf-tests
27653         (test_u16_vsnprintf1_LDADD): Likewise.
27654         * modules/unistdio/u32-vsnprintf-tests
27655         (test_u32_vsnprintf1_LDADD): Likewise.
27656         * modules/unistdio/u32-vsprintf-tests
27657         (test_u32_vsprintf1_LDADD): Likewise.
27658         * modules/unistdio/u8-vsnprintf-tests
27659         (test_u8_vsnprintf1_LDADD): Likewise.
27660         * modules/unistdio/u8-vsprintf-tests
27661         (test_u8_vsprintf1_LDADD): Likewise.
27662         * modules/unistdio/ulc-vsnprintf-tests
27663         (test_ulc_vsnprintf1_LDADD): Likewise.
27664         * modules/unistdio/ulc-vsprintf-tests
27665         (test_ulc_vsprintf1_LDADD): Likewise.
27666
27667         Fix linking of some uniconv tests on FreeBSD.
27668         * modules/uniconv/u16-conv-from-enc-tests
27669         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
27670         * modules/uniconv/u16-conv-to-enc-tests
27671         (test_u16_conv_to_enc_LDADD): Likewise.
27672         * modules/uniconv/u16-strconv-from-enc-tests
27673         (test_u16_strconv_from_enc_LDADD): Likewise.
27674         * modules/uniconv/u16-strconv-to-enc-tests
27675         (test_u16_strconv_to_enc_LDADD): Likewise.
27676         * modules/uniconv/u32-conv-from-enc-tests
27677         (test_u32_conv_from_enc_LDADD): Likewise.
27678         * modules/uniconv/u32-conv-to-enc-tests
27679         (test_u32_conv_to_enc_LDADD): Likewise.
27680         * modules/uniconv/u32-strconv-from-enc-tests
27681         (test_u32_strconv_from_enc_LDADD): Likewise.
27682         * modules/uniconv/u32-strconv-to-enc-tests
27683         (test_u32_strconv_to_enc_LDADD): Likewise.
27684         * modules/uniconv/u8-conv-from-enc-tests
27685         (test_u8_conv_from_enc_LDADD): Likewise.
27686         * modules/uniconv/u8-conv-to-enc-tests
27687         (test_u8_conv_to_enc_LDADD): Likewise.
27688         * modules/uniconv/u8-strconv-from-enc-tests
27689         (test_u8_strconv_from_enc_LDADD): Likewise.
27690         * modules/uniconv/u8-strconv-to-enc-tests
27691         (test_u8_strconv_to_enc_LDADD): Likewise.
27692
27693 2007-10-22  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
27696         size.
27697
27698 2007-10-22  Eric Blake  <ebb9@byu.net>
27699
27700         Tweak x*printf documentation.
27701         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
27702         variable name and comments.
27703         Suggested by Bruno Haible.
27704
27705 2007-10-22  Bruno Haible  <bruno@clisp.org>
27706
27707         * lib/acl.c (copy_acl): Fix file name in comment.
27708
27709 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27710
27711         Fix Tru64 problem with stdbool.h.
27712         * lib/stdbool.in.h (false, true):
27713         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
27714         Don't declare as an enum in this situation; it runs afoul of Tru64.
27715         Problem reported by Steven M. Schweda in
27716         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
27717
27718 2007-10-22  Eric Blake  <ebb9@byu.net>
27719
27720         Also wrap vf?printf.
27721         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
27722         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
27723         (xvprintf, xvfprintf): New functions.
27724
27725 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27726
27727         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
27728         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
27729
27730         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
27731         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
27732
27733 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
27734
27735         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
27736         by Bruno Haible.
27737
27738 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27739
27740         * lib/getloadavg.c
27741         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
27742         Undef `sys' after including sys/table.h, for Tru64 4.0D.
27743
27744         * tests/test-i-ring.c: Work for C89.
27745
27746 2007-10-22  Bruno Haible  <bruno@clisp.org>
27747
27748         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
27749         -1u, in preprocessor expression, so that we don't test for the bug
27750         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
27751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
27752
27753 2007-10-22  Eric Blake  <ebb9@byu.net>
27754
27755         * tests/test-yesno.sh: Silence stderr during test.
27756
27757 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27758
27759         * modules/crypto/gc-camellia: New file.
27760
27761         * m4/gc-camellia.m4: New file.
27762
27763         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
27764
27765         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
27766
27767 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27768
27769         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
27770         --help to stdout.  Reported by sms@antinode.org (Steven
27771         M. Schweda).
27772
27773 2007-10-22  Simon Josefsson  <simon@josefsson.org>
27774
27775         * users.txt: Fix link to libksba.
27776
27777 2007-10-21  Ben Pfaff  <blp@gnu.org>
27778
27779         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
27780         round.c roundf implementation that depends on floorf and ceilf to
27781         be tested unconditionally.
27782
27783 2007-10-21  Ben Pfaff  <blp@gnu.org>
27784
27785         * m4/check-libm-func.m4: Removed.
27786         * m4/check-math-lib.m4: New file.
27787         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
27788         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
27789         definition and lack of AC_LIBOBJ([roundf]).
27790         * m4/roundl.m4: Ditto, and similarly for roundl.
27791         * modules/round: Reference new m4 file.
27792         * modules/roundf: Ditto.
27793         * modules/roundl: Ditto.
27794         * tests/test-round2.c (main): Use ROUND instead of round.
27795         Bug report from Bruno Haible.
27796
27797 2007-10-21  Bruno Haible  <bruno@clisp.org>
27798
27799         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
27800         context.
27801
27802 2007-10-21  Bruno Haible  <bruno@clisp.org>
27803
27804         * tests/test-wcwidth.c (main): Allow negative result for some control
27805         characters.
27806
27807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
27808         Needed on OSF/1 5.1.
27809
27810 2007-10-21  Bruno Haible  <bruno@clisp.org>
27811
27812         * tests/test-floorf1.c: Include isnanf.h.
27813         (main): Use isnanf() instead of isnan().
27814         * tests/test-ceilf1.c: Include isnanf.h.
27815         (main): Use isnanf() instead of isnan().
27816         * tests/test-truncf1.c: Include isnanf.h.
27817         (main): Use isnanf() instead of isnan().
27818         * tests/test-roundf1.c: Include isnanf.h.
27819         (main): Use isnanf() instead of isnan().
27820
27821 2007-10-21  Eric Blake  <ebb9@byu.net>
27822
27823         * users.txt: Update URL for m4.
27824
27825 2007-10-21  Bruno Haible  <bruno@clisp.org>
27826
27827         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
27828
27829 2007-10-21  Bruno Haible  <bruno@clisp.org>
27830
27831         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
27832         Git's management files if the CVS files are not present.
27833
27834 2007-10-20  Bruno Haible  <bruno@clisp.org>
27835
27836         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
27837         gcc-3.4.x.
27838
27839 2007-10-20  Ben Pfaff  <blp@gnu.org>
27840
27841         * lib/math.in.h: Declare round, roundf, roundl if we are providing
27842         implementations.
27843         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
27844         * lib/round.c: New file.
27845         * lib/roundf.c: New file.
27846         * lib/roundl.c: New file.
27847         * m4/round.m4: New file.
27848         * m4/roundf.m4: New file.
27849         * m4/roundl.m4: New file.
27850         * m4/check-libm-func-m4: New file.
27851         * modules/math: Replace round, roundf, roundl related @VARS@ in
27852         math.in.h.
27853         * modules/round: New file.
27854         * modules/round-tests: New file.
27855         * modules/roundf: New file.
27856         * modules/roundf-tests: New file.
27857         * modules/roundl: New file.
27858         * modules/roundl-tests: New file.
27859         * tests/test-round1.c: New file.
27860         * tests/test-round2.c: New file.
27861         * tests/test-roundf1.c: New file.
27862         * tests/test-roundf2.c: New file.
27863         * tests/test-roundl.c: New file.
27864         * doc/functions/round.texi: Mention round module.
27865         * doc/functions/roundf.texi: Mention roundf module.
27866         * doc/functions/roundl.texi: Mention roundl module.
27867         * MODULES.html.sh: Mention new modules.
27868         Thanks to Bruno Haible for suggestions.
27869
27870 2007-10-20  Jim Meyering  <meyering@redhat.com>
27871
27872         * lib/xprintf.c: Include <config.h> unconditionally.
27873
27874         Change xprintf's license to GPL.
27875         * modules/xprintf (License): s/LGPL/GPL/, since this module
27876         depends on modules (exit and exitfail) which are GPL.
27877         Suggestion from Bruno Haible.
27878
27879         xprintf fixes.
27880         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
27881         Use a clearer diagnostic.
27882         Patch from Bruno Haible.
27883
27884 2007-10-20  Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
27887         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
27888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27889
27890 2007-10-20  Bruno Haible  <bruno@clisp.org>
27891
27892         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
27893         precision in the comparison result > x - 1 or similar.
27894         * tests/test-ceilf2.c (correct_result_p): Likewise.
27895         * tests/test-truncf2.c (correct_result_p): Likewise.
27896         * tests/test-trunc2.c (correct_result_p): Likewise.
27897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27898
27899 2007-10-20  Bruno Haible  <bruno@clisp.org>
27900
27901         * modules/ceil: New file.
27902         * m4/ceil.m4: New file.
27903         * doc/functions/ceil.texi: Mention the 'ceil' module.
27904
27905 2007-10-20  Bruno Haible  <bruno@clisp.org>
27906
27907         * modules/floor: New file.
27908         * m4/floor.m4: New file.
27909         * doc/functions/floor.texi: Mention the 'floor' module.
27910
27911 2007-10-20  Bruno Haible  <bruno@clisp.org>
27912
27913         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
27914         of %a.
27915         * modules/floorf-tests (Depends-on): Likewise.
27916         * modules/truncf-tests (Depends-on): Likewise.
27917         * modules/trunc-tests (Depends-on): Likewise.
27918         Reported by Ben Pfaff.
27919
27920 2007-10-19  Jim Meyering  <meyering@redhat.com>
27921
27922         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
27923         Don't bother testing specific errno values.  Just test ferror.
27924
27925         New module: xprintf
27926         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
27927
27928 2007-10-19  Bruno Haible  <bruno@clisp.org>
27929
27930         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
27931         syntax.
27932         * modules/javaexec (Makefile.am): Likewise.
27933         * modules/relocatable-prog (Makefile.am): Likewise.
27934         Suggested by Jim Meyering.
27935
27936 2007-10-18  Bruno Haible  <bruno@clisp.org>
27937
27938         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
27939         Reported by Jim Meyering.
27940
27941 2007-10-18  Eric Blake  <ebb9@byu.net>
27942
27943         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
27944
27945 2007-10-18  Bruno Haible  <bruno@clisp.org>
27946
27947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
27948         the format string into writable memory. Needed in Fortify conditions.
27949
27950 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
27951             Bruno Haible  <bruno@clisp.org>
27952
27953         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
27954         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
27955         * modules/trim (Depends-on): Add mbchar.
27956         (configure.ac): Add gl_FUNC_MBRTOWC.
27957         (Makefile.am): Augment lib_SOURCES.
27958
27959 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27960
27961         Modify glob.c to use fstatat and dirfd, to simplify it.
27962         Suggested by Eric Blake.
27963         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
27964         Don't include <stdbool.h>; not used.
27965         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
27966         (link_exists_p): Simplify implementation, since we can now assume
27967         dirfd and fstatat.
27968         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
27969
27970 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27971
27972         * gnulib-tool (func_get_dependencies): Fix sed script to
27973         match only tests.
27974
27975 2007-10-17  Bruno Haible  <bruno@clisp.org>
27976
27977         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
27978         allow locale names without encoding suffix.
27979         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27980         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27981
27982 2007-10-16  Bruno Haible  <bruno@clisp.org>
27983
27984         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
27985         * lib/getgroups.c (getgroups): Likewise.
27986         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
27987
27988 2007-10-16  Bruno Haible  <bruno@clisp.org>
27989
27990         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
27991         * modules/malloc-posix (License): Likewise.
27992         * modules/realloc-posix (License): Likewise.
27993         * modules/calloc-posix (License): Likewise.
27994         * modules/intprops (License): Change from GPL to LGPL, with
27995         Paul Eggert's approval.
27996
27997 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27998
27999         Merge glibc changes into lib/glob.c.
28000
28001         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28002         2007-10-15 04:59:03 UTC.  Here are the changes:
28003
28004         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28005
28006         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28007
28008         * lib/glob.c: Add some branch prediction throughout.
28009
28010         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28011
28012         [BZ #5103]
28013         * lib/glob.c (glob): Recognize patterns starting \/.
28014
28015         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28016
28017         [BZ #3996]
28018         * lib/glob.c (attribute_hidden): Define if not defined.
28019         (glob): Unescape dirname, filename or username when needed and not
28020         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28021         is NULL.  Handle unescaped [ in pattern without closing ].
28022         Don't pass GLOB_CHECK down to recursive glob for directories.
28023         (__glob_pattern_type): New function.
28024         (__glob_pattern_p): Implement using __glob_pattern_type.
28025         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28026         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28027         Remove unreachable code.
28028
28029         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28030
28031         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28032         explain why there are no leaks.
28033
28034         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28035
28036         [BZ #3253]
28037         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28038         time, rather allocate increasingly bigger arrays of pointers, if
28039         possible with alloca, if too large with malloc.
28040
28041 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28042
28043         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28044         Problem reported by H.Merijn Brand in
28045         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28046         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28047         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28048
28049 2007-10-15  Bruno Haible  <bruno@clisp.org>
28050
28051         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28052         with explicit rpl_ prefix.
28053         * lib/fopen.c (fopen): Likewise.
28054         * lib/freopen.c (freopen): Likewise.
28055         * lib/iconv.c (iconv): Likewise.
28056         * lib/iconv_close.c (iconv_close): Likewise.
28057
28058 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28059
28060         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28061
28062 2007-10-15  Bruno Haible  <bruno@clisp.org>
28063
28064         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28065         <stddef.h> instead of <stdlib.h> since we only need NULL.
28066         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28067
28068 2007-10-15  Bruno Haible  <bruno@clisp.org>
28069
28070         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28071         Replace paragraph talking about LIBOBJS.
28072         Reported by Colin Watson <cjwatson@debian.org>.
28073
28074 2007-10-15  Bruno Haible  <bruno@clisp.org>
28075
28076         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28077         <stdlib.h> before using NULL.
28078
28079 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28080
28081         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28082         Reported by Albert Chin <china@thewrittenword.com>.
28083
28084 2007-10-14  Bruno Haible  <bruno@clisp.org>
28085
28086         * modules/iconv_open-utf-tests: New file.
28087         * tests/test-iconv-utf.c: New file.
28088
28089         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28090         * modules/iconv_open-utf: New file.
28091         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28092         (iconv, iconv_close): New declarations.
28093         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28094         be defined.
28095         (iconv_open): Add special handling of conversion between UTF-8 and
28096         UTF-{16,32}{BE,LE}.
28097         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28098         * lib/iconv_close.c: New file.
28099         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28100         gl_FUNC_ICONV_OPEN.
28101         (gl_FUNC_ICONV_OPEN): Use it.
28102         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28103         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28104         and REPLACE_ICONV_UTF.
28105         * modules/iconv_open (Depends-on): Add c-strcase.
28106         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28107         ICONV_CONST.
28108         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28109
28110 2007-10-13  Albert Chin  <china@thewrittenword.com>
28111             Bruno Haible  <bruno@clisp.org>
28112
28113         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28114         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28115
28116 2007-10-13  Bruno Haible  <bruno@clisp.org>
28117
28118         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28119         defined, use the ISO C99 inline semantics.
28120         * lib/argp.h (ARGP_EI): Likewise.
28121
28122 2007-10-13  Bruno Haible  <bruno@clisp.org>
28123
28124         Handle 'inline' change in gcc 4.3.0.
28125         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28126         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28127         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28128         argp_fmtstream_point): Disable 'extern' declaration if the function
28129         definition is going to be provided inline.
28130         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28131         semantics, not the ISO C99 inline semantics.
28132         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28133         'extern' declaration if the function definition is going to be provided
28134         inline.
28135         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28136         the GNU C inline semantics, not the ISO C99 inline semantics. With
28137         GCC 4.2, avoid a warning.
28138
28139 2007-10-13  Bruno Haible  <bruno@clisp.org>
28140
28141         * lib/freading.h (freading): Enable the use of __freading for
28142         glibc >= 2.7.
28143         * lib/freading.c (freading): Likewise.
28144
28145 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28148         "warning: C99 inline functions are not supported; using GNU89".
28149
28150 2007-10-12  Bruno Haible  <bruno@clisp.org>
28151
28152         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28153         of 2.
28154         * tests/test-ceilf2.c: New file.
28155         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28156
28157         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28158         * modules/ceilf-tests: Update.
28159
28160 2007-10-12  Bruno Haible  <bruno@clisp.org>
28161
28162         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28163         of 2.
28164         * tests/test-floorf2.c: New file.
28165         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28166
28167         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28168         * modules/floorf-tests: Update.
28169
28170 2007-10-12  Bruno Haible  <bruno@clisp.org>
28171
28172         * tests/test-trunc2.c: New file.
28173         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28174
28175         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28176         * modules/trunc-tests: Update.
28177
28178 2007-10-12  Bruno Haible  <bruno@clisp.org>
28179
28180         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28181         of 2.
28182         * tests/test-truncf2.c: New file.
28183         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28184
28185         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28186         * modules/truncf-tests: Update.
28187
28188 2007-10-11  Eric Blake  <ebb9@byu.net>
28189
28190         Don't claim strerror is broken on Interix.
28191         * doc/functions/strerror.texi (strerror): Known broken systems are
28192         now Solaris 8, and not Interix.
28193         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28194         Interix on cross-compile.
28195         Reported by Martin Koeppe in
28196         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28197
28198 2007-10-11  Bruno Haible  <bruno@clisp.org>
28199
28200         * modules/i-ring-tests: New file.
28201         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28202         instead of assert.
28203
28204 2007-10-11  Bruno Haible  <bruno@clisp.org>
28205
28206         * modules/filenamecat-tests: New file.
28207         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28208         * lib/filenamecat.c: Remove test code.
28209
28210 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28211
28212         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28213
28214         * lib/strerror.c: Include <string.h> always, to test interface,
28215         and to remove the need for the dummy.
28216         Include intprops.h to compute width instead of doing it ourselves
28217         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28218         (strerror): Define it to return NULL if there's no system strerror.
28219         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28220         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
28221         ancient pre-strerror Unix systems well any more.  Saying "unknown
28222         system error" is enough.
28223         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28224         simpler strerror.c implementation.
28225         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28226         Simplify the tests to reflect the simpler strerror implementation.
28227         * modules/strerror (Depends-on): Add intprops.
28228
28229 2007-10-09  Eric Blake  <ebb9@byu.net>
28230
28231         Silence test-fpending.
28232         * modules/fpending-tests (Files): Add wrapper script.
28233         * tests/test-fpending.sh: New file.
28234
28235 2007-10-09  Bruno Haible  <bruno@clisp.org>
28236
28237         * MODULES.html.sh (func_module): Don't create a hyperlink for
28238         function names like 'printf_frexp'.
28239         (Misc): Add crc, memxor.
28240         (Characteristics of floating types): New section.
28241         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28242         isnanf-nolibm, signbit, trunc, truncf, truncl.
28243         (Enhancements for ISO C 99 functions): New subsection Input/output.
28244         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28245         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28246         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28247         (Compatibility checks for POSIX:2001 functions): Add clock-time.
28248         (Enhancements for POSIX:2001 functions): Add chdir-long.
28249         (File system functions): Add areadlink, chdir-safer, read-file.
28250         Remove cycle-check.
28251         (File system as inode set): New section.
28252         (Date and time): Add gethrxtime.
28253         (Multithreading): Add openmp.
28254         (Internationalization functions): Add localename.
28255         (Unicode string functions): Add unistr/u*-mbsnlen.
28256         (Support for maintaining and releasing projects): Add git-version-gen.
28257         (Lone files): Remove directories.
28258
28259 2007-10-08  Ben Pfaff  <blp@gnu.org>
28260
28261         * lib/xmalloca.h: Fix typo in comment.
28262
28263 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28264
28265         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28266         when avoiding problems with integer overflow.  Use a portable test
28267         instead.
28268
28269 2007-10-08  Simon Josefsson  <simon@josefsson.org>
28270
28271         * modules/dummy (License): Change to LGPLv2+.
28272         * modules/float (License): Likewise
28273         * modules/realloc (License): Likewise
28274         * modules/stdlib (License): Likewise
28275
28276 2007-10-07  Bruno Haible  <bruno@clisp.org>
28277
28278         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28279         * floor.c (TWO_MANT_DIG): Likewise.
28280         * ceil.c (TWO_MANT_DIG): Likewise.
28281         Reported by Ben Pfaff.
28282
28283 2007-10-07  Bruno Haible  <bruno@clisp.org>
28284
28285         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28286         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28287         * lib/frexp.c (FUNC): Likewise.
28288         * lib/printf-frexp.h (printf_frexp): Likewise.
28289         * lib/printf-frexpl.h (printf_frexpl): Likewise.
28290         * lib/printf-frexp.c (FUNC): Likewise.
28291         Suggested by Jim Meyering.
28292
28293 2007-10-07  Jim Meyering  <meyering@redhat.com>
28294
28295         Make xnanosleep's integer overflow test more robust.
28296         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28297         so that gcc-4.3.0 doesn't optimize away this test for overflow.
28298
28299 2007-10-07  Bruno Haible  <bruno@clisp.org>
28300
28301         * NEWS: Mention the license change.
28302
28303         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28304         abbreviations in the modules files.
28305
28306         Change copyright notice from GPLv2+ to GPLv3+.
28307         * README: Change copyright notice.
28308         * MODULES.html.sh: Likewise.
28309         * build-aux/bootstrap.conf: Likewise.
28310         * build-aux/config.libpath: Likewise.
28311         * build-aux/csharpcomp.sh.in: Likewise.
28312         * build-aux/csharpexec.sh.in: Likewise.
28313         * build-aux/install-reloc: Likewise.
28314         * build-aux/javacomp.sh.in: Likewise.
28315         * build-aux/javaexec.sh.in: Likewise.
28316         * build-aux/ldd.sh.in: Likewise.
28317         * build-aux/reloc-ldflags: Likewise.
28318         * build-aux/relocatable.sh.in: Likewise.
28319         * build-aux/x-to-1.in: Likewise.
28320         * check-module: Likewise.
28321         * config/srclistvars.sh: Likewise.
28322         * gnulib-tool: Likewise.
28323         * lib/acl-internal.h: Likewise.
28324         * lib/acl.c: Likewise.
28325         * lib/acl.h: Likewise.
28326         * lib/acl_entries.c: Likewise.
28327         * lib/areadlink-with-size.c: Likewise.
28328         * lib/areadlink.c: Likewise.
28329         * lib/areadlink.h: Likewise.
28330         * lib/argmatch.c: Likewise.
28331         * lib/argmatch.h: Likewise.
28332         * lib/argp-ba.c: Likewise.
28333         * lib/argp-eexst.c: Likewise.
28334         * lib/argp-fmtstream.c: Likewise.
28335         * lib/argp-fmtstream.h: Likewise.
28336         * lib/argp-fs-xinl.c: Likewise.
28337         * lib/argp-help.c: Likewise.
28338         * lib/argp-namefrob.h: Likewise.
28339         * lib/argp-parse.c: Likewise.
28340         * lib/argp-pin.c: Likewise.
28341         * lib/argp-pv.c: Likewise.
28342         * lib/argp-pvh.c: Likewise.
28343         * lib/argp-xinl.c: Likewise.
28344         * lib/argp.h: Likewise.
28345         * lib/at-func.c: Likewise.
28346         * lib/atanl.c: Likewise.
28347         * lib/backupfile.c: Likewise.
28348         * lib/backupfile.h: Likewise.
28349         * lib/basename.c: Likewise.
28350         * lib/binary-io.h: Likewise.
28351         * lib/byteswap.in.h: Likewise.
28352         * lib/c-stack.c: Likewise.
28353         * lib/c-stack.h: Likewise.
28354         * lib/c-strcasestr.c: Likewise.
28355         * lib/c-strcasestr.h: Likewise.
28356         * lib/c-strstr.c: Likewise.
28357         * lib/c-strstr.h: Likewise.
28358         * lib/c-strtod.c: Likewise.
28359         * lib/calloc.c: Likewise.
28360         * lib/canon-host.c: Likewise.
28361         * lib/canon-host.h: Likewise.
28362         * lib/canonicalize-lgpl.c: Likewise.
28363         * lib/canonicalize.c: Likewise.
28364         * lib/canonicalize.h: Likewise.
28365         * lib/ceil.c: Likewise.
28366         * lib/ceilf.c: Likewise.
28367         * lib/ceill.c: Likewise.
28368         * lib/chdir-long.c: Likewise.
28369         * lib/chdir-long.h: Likewise.
28370         * lib/chdir-safer.c: Likewise.
28371         * lib/chdir-safer.h: Likewise.
28372         * lib/chown.c: Likewise.
28373         * lib/classpath.c: Likewise.
28374         * lib/classpath.h: Likewise.
28375         * lib/clean-temp.c: Likewise.
28376         * lib/clean-temp.h: Likewise.
28377         * lib/cloexec.c: Likewise.
28378         * lib/close-stream.c: Likewise.
28379         * lib/closein.c: Likewise.
28380         * lib/closein.h: Likewise.
28381         * lib/closeout.c: Likewise.
28382         * lib/closeout.h: Likewise.
28383         * lib/concat-filename.c: Likewise.
28384         * lib/copy-file.c: Likewise.
28385         * lib/copy-file.h: Likewise.
28386         * lib/count-one-bits.h: Likewise.
28387         * lib/crc.c: Likewise.
28388         * lib/crc.h: Likewise.
28389         * lib/creat-safer.c: Likewise.
28390         * lib/csharpcomp.c: Likewise.
28391         * lib/csharpcomp.h: Likewise.
28392         * lib/csharpexec.c: Likewise.
28393         * lib/csharpexec.h: Likewise.
28394         * lib/cycle-check.c: Likewise.
28395         * lib/cycle-check.h: Likewise.
28396         * lib/diacrit.c: Likewise.
28397         * lib/diacrit.h: Likewise.
28398         * lib/diffseq.h: Likewise.
28399         * lib/dirchownmod.c: Likewise.
28400         * lib/dirent.in.h: Likewise.
28401         * lib/dirfd.c: Likewise.
28402         * lib/dirfd.h: Likewise.
28403         * lib/dirname.c: Likewise.
28404         * lib/dirname.h: Likewise.
28405         * lib/dummy.c: Likewise.
28406         * lib/dup-safer.c: Likewise.
28407         * lib/dup2.c: Likewise.
28408         * lib/eealloc.h: Likewise.
28409         * lib/error.c: Likewise.
28410         * lib/error.h: Likewise.
28411         * lib/euidaccess.c: Likewise.
28412         * lib/exclude.c: Likewise.
28413         * lib/exclude.h: Likewise.
28414         * lib/execute.c: Likewise.
28415         * lib/execute.h: Likewise.
28416         * lib/exitfail.c: Likewise.
28417         * lib/exitfail.h: Likewise.
28418         * lib/expl.c: Likewise.
28419         * lib/fatal-signal.c: Likewise.
28420         * lib/fatal-signal.h: Likewise.
28421         * lib/fbufmode.c: Likewise.
28422         * lib/fbufmode.h: Likewise.
28423         * lib/fchdir.c: Likewise.
28424         * lib/fchmodat.c: Likewise.
28425         * lib/fchownat.c: Likewise.
28426         * lib/fcntl--.h: Likewise.
28427         * lib/fcntl-safer.h: Likewise.
28428         * lib/fcntl.in.h: Likewise.
28429         * lib/fd-safer.c: Likewise.
28430         * lib/fflush.c: Likewise.
28431         * lib/file-has-acl.c: Likewise.
28432         * lib/file-set.c: Likewise.
28433         * lib/file-type.c: Likewise.
28434         * lib/file-type.h: Likewise.
28435         * lib/fileblocks.c: Likewise.
28436         * lib/filemode.c: Likewise.
28437         * lib/filemode.h: Likewise.
28438         * lib/filename.h: Likewise.
28439         * lib/filenamecat.c: Likewise.
28440         * lib/filenamecat.h: Likewise.
28441         * lib/findprog.c: Likewise.
28442         * lib/findprog.h: Likewise.
28443         * lib/float.in.h: Likewise.
28444         * lib/floor.c: Likewise.
28445         * lib/floorf.c: Likewise.
28446         * lib/floorl.c: Likewise.
28447         * lib/fopen-safer.c: Likewise.
28448         * lib/fopen.c: Likewise.
28449         * lib/fpending.c: Likewise.
28450         * lib/fpending.h: Likewise.
28451         * lib/fprintf.c: Likewise.
28452         * lib/fprintftime.h: Likewise.
28453         * lib/fpucw.h: Likewise.
28454         * lib/fpurge.c: Likewise.
28455         * lib/fpurge.h: Likewise.
28456         * lib/freadable.c: Likewise.
28457         * lib/freadable.h: Likewise.
28458         * lib/freadahead.c: Likewise.
28459         * lib/freadahead.h: Likewise.
28460         * lib/freading.c: Likewise.
28461         * lib/freading.h: Likewise.
28462         * lib/free.c: Likewise.
28463         * lib/freopen.c: Likewise.
28464         * lib/frexp.c: Likewise.
28465         * lib/frexpl.c: Likewise.
28466         * lib/fseek.c: Likewise.
28467         * lib/fseterr.c: Likewise.
28468         * lib/fseterr.h: Likewise.
28469         * lib/fstatat.c: Likewise.
28470         * lib/fstrcmp.c: Likewise.
28471         * lib/fstrcmp.h: Likewise.
28472         * lib/fsusage.c: Likewise.
28473         * lib/fsusage.h: Likewise.
28474         * lib/ftell.c: Likewise.
28475         * lib/ftello.c: Likewise.
28476         * lib/fts-cycle.c: Likewise.
28477         * lib/fts.c: Likewise.
28478         * lib/fts_.h: Likewise.
28479         * lib/full-read.c: Likewise.
28480         * lib/full-read.h: Likewise.
28481         * lib/full-write.c: Likewise.
28482         * lib/full-write.h: Likewise.
28483         * lib/fwritable.c: Likewise.
28484         * lib/fwritable.h: Likewise.
28485         * lib/fwriteerror.c: Likewise.
28486         * lib/fwriteerror.h: Likewise.
28487         * lib/fwriting.c: Likewise.
28488         * lib/fwriting.h: Likewise.
28489         * lib/gcd.c: Likewise.
28490         * lib/gcd.h: Likewise.
28491         * lib/getcwd.c: Likewise.
28492         * lib/getdate.h: Likewise.
28493         * lib/getdate.y: Likewise.
28494         * lib/getdomainname.c: Likewise.
28495         * lib/getdomainname.h: Likewise.
28496         * lib/getgroups.c: Likewise.
28497         * lib/gethostname.c: Likewise.
28498         * lib/gethrxtime.c: Likewise.
28499         * lib/gethrxtime.h: Likewise.
28500         * lib/getloadavg.c: Likewise.
28501         * lib/getndelim2.c: Likewise.
28502         * lib/getndelim2.h: Likewise.
28503         * lib/getnline.c: Likewise.
28504         * lib/getnline.h: Likewise.
28505         * lib/getopt.c: Likewise.
28506         * lib/getopt.in.h: Likewise.
28507         * lib/getopt1.c: Likewise.
28508         * lib/getopt_int.h: Likewise.
28509         * lib/getpagesize.h: Likewise.
28510         * lib/getsubopt.c: Likewise.
28511         * lib/gettime.c: Likewise.
28512         * lib/getugroups.c: Likewise.
28513         * lib/getugroups.h: Likewise.
28514         * lib/getusershell.c: Likewise.
28515         * lib/gl_anyavltree_list1.h: Likewise.
28516         * lib/gl_anyavltree_list2.h: Likewise.
28517         * lib/gl_anyhash_list1.h: Likewise.
28518         * lib/gl_anyhash_list2.h: Likewise.
28519         * lib/gl_anylinked_list1.h: Likewise.
28520         * lib/gl_anylinked_list2.h: Likewise.
28521         * lib/gl_anyrbtree_list1.h: Likewise.
28522         * lib/gl_anyrbtree_list2.h: Likewise.
28523         * lib/gl_anytree_list1.h: Likewise.
28524         * lib/gl_anytree_list2.h: Likewise.
28525         * lib/gl_anytree_oset.h: Likewise.
28526         * lib/gl_anytreehash_list1.h: Likewise.
28527         * lib/gl_anytreehash_list2.h: Likewise.
28528         * lib/gl_array_list.c: Likewise.
28529         * lib/gl_array_list.h: Likewise.
28530         * lib/gl_array_oset.c: Likewise.
28531         * lib/gl_array_oset.h: Likewise.
28532         * lib/gl_avltree_list.c: Likewise.
28533         * lib/gl_avltree_list.h: Likewise.
28534         * lib/gl_avltree_oset.c: Likewise.
28535         * lib/gl_avltree_oset.h: Likewise.
28536         * lib/gl_avltreehash_list.c: Likewise.
28537         * lib/gl_avltreehash_list.h: Likewise.
28538         * lib/gl_carray_list.c: Likewise.
28539         * lib/gl_carray_list.h: Likewise.
28540         * lib/gl_linked_list.c: Likewise.
28541         * lib/gl_linked_list.h: Likewise.
28542         * lib/gl_linkedhash_list.c: Likewise.
28543         * lib/gl_linkedhash_list.h: Likewise.
28544         * lib/gl_list.c: Likewise.
28545         * lib/gl_list.h: Likewise.
28546         * lib/gl_oset.c: Likewise.
28547         * lib/gl_oset.h: Likewise.
28548         * lib/gl_rbtree_list.c: Likewise.
28549         * lib/gl_rbtree_list.h: Likewise.
28550         * lib/gl_rbtree_oset.c: Likewise.
28551         * lib/gl_rbtree_oset.h: Likewise.
28552         * lib/gl_rbtreehash_list.c: Likewise.
28553         * lib/gl_rbtreehash_list.h: Likewise.
28554         * lib/gl_sublist.c: Likewise.
28555         * lib/gl_sublist.h: Likewise.
28556         * lib/group-member.c: Likewise.
28557         * lib/group-member.h: Likewise.
28558         * lib/hard-locale.c: Likewise.
28559         * lib/hard-locale.h: Likewise.
28560         * lib/hash-pjw.c: Likewise.
28561         * lib/hash-pjw.h: Likewise.
28562         * lib/hash-triple.c: Likewise.
28563         * lib/hash.c: Likewise.
28564         * lib/hash.h: Likewise.
28565         * lib/human.c: Likewise.
28566         * lib/human.h: Likewise.
28567         * lib/i-ring.c: Likewise.
28568         * lib/i-ring.h: Likewise.
28569         * lib/idcache.c: Likewise.
28570         * lib/imaxabs.c: Likewise.
28571         * lib/imaxdiv.c: Likewise.
28572         * lib/inet_pton.c: Likewise.
28573         * lib/inet_pton.h: Likewise.
28574         * lib/intprops.h: Likewise.
28575         * lib/inttostr.c: Likewise.
28576         * lib/inttostr.h: Likewise.
28577         * lib/inttypes.in.h: Likewise.
28578         * lib/isapipe.c: Likewise.
28579         * lib/isdir.c: Likewise.
28580         * lib/isnan.c: Likewise.
28581         * lib/isnan.h: Likewise.
28582         * lib/isnanf.c: Likewise.
28583         * lib/isnanf.h: Likewise.
28584         * lib/isnanl-nolibm.h: Likewise.
28585         * lib/isnanl.c: Likewise.
28586         * lib/isnanl.h: Likewise.
28587         * lib/javacomp.c: Likewise.
28588         * lib/javacomp.h: Likewise.
28589         * lib/javaexec.c: Likewise.
28590         * lib/javaexec.h: Likewise.
28591         * lib/javaversion.c: Likewise.
28592         * lib/javaversion.h: Likewise.
28593         * lib/javaversion.java: Likewise.
28594         * lib/lbrkprop.h: Likewise.
28595         * lib/lchmod.h: Likewise.
28596         * lib/lchown.c: Likewise.
28597         * lib/ldexpl.c: Likewise.
28598         * lib/linebreak.c: Likewise.
28599         * lib/linebreak.h: Likewise.
28600         * lib/linebuffer.c: Likewise.
28601         * lib/linebuffer.h: Likewise.
28602         * lib/locale.in.h: Likewise.
28603         * lib/logl.c: Likewise.
28604         * lib/long-options.c: Likewise.
28605         * lib/long-options.h: Likewise.
28606         * lib/lstat.c: Likewise.
28607         * lib/lstat.h: Likewise.
28608         * lib/math.in.h: Likewise.
28609         * lib/mbchar.c: Likewise.
28610         * lib/mbchar.h: Likewise.
28611         * lib/mbfile.h: Likewise.
28612         * lib/mbiter.h: Likewise.
28613         * lib/mbscasecmp.c: Likewise.
28614         * lib/mbscasestr.c: Likewise.
28615         * lib/mbschr.c: Likewise.
28616         * lib/mbscspn.c: Likewise.
28617         * lib/mbslen.c: Likewise.
28618         * lib/mbsncasecmp.c: Likewise.
28619         * lib/mbsnlen.c: Likewise.
28620         * lib/mbspbrk.c: Likewise.
28621         * lib/mbspcasecmp.c: Likewise.
28622         * lib/mbsrchr.c: Likewise.
28623         * lib/mbssep.c: Likewise.
28624         * lib/mbsspn.c: Likewise.
28625         * lib/mbsstr.c: Likewise.
28626         * lib/mbstok_r.c: Likewise.
28627         * lib/mbswidth.c: Likewise.
28628         * lib/mbswidth.h: Likewise.
28629         * lib/mbuiter.h: Likewise.
28630         * lib/memcasecmp.c: Likewise.
28631         * lib/memcasecmp.h: Likewise.
28632         * lib/memchr.c: Likewise.
28633         * lib/memcmp.c: Likewise.
28634         * lib/memcoll.c: Likewise.
28635         * lib/memcoll.h: Likewise.
28636         * lib/memcpy.c: Likewise.
28637         * lib/memrchr.c: Likewise.
28638         * lib/mkancesdirs.c: Likewise.
28639         * lib/mkdir-p.c: Likewise.
28640         * lib/mkdir-p.h: Likewise.
28641         * lib/mkdir.c: Likewise.
28642         * lib/mkdirat.c: Likewise.
28643         * lib/mkdtemp.c: Likewise.
28644         * lib/mkstemp-safer.c: Likewise.
28645         * lib/mkstemp.c: Likewise.
28646         * lib/modechange.c: Likewise.
28647         * lib/modechange.h: Likewise.
28648         * lib/mountlist.c: Likewise.
28649         * lib/mountlist.h: Likewise.
28650         * lib/mpsort.c: Likewise.
28651         * lib/nanosleep.c: Likewise.
28652         * lib/obstack.c: Likewise.
28653         * lib/obstack.h: Likewise.
28654         * lib/open-safer.c: Likewise.
28655         * lib/open.c: Likewise.
28656         * lib/openat-die.c: Likewise.
28657         * lib/openat-priv.h: Likewise.
28658         * lib/openat-proc.c: Likewise.
28659         * lib/openat.c: Likewise.
28660         * lib/openat.h: Likewise.
28661         * lib/pagealign_alloc.c: Likewise.
28662         * lib/pagealign_alloc.h: Likewise.
28663         * lib/physmem.c: Likewise.
28664         * lib/physmem.h: Likewise.
28665         * lib/pipe-safer.c: Likewise.
28666         * lib/pipe.c: Likewise.
28667         * lib/pipe.h: Likewise.
28668         * lib/posixtm.c: Likewise.
28669         * lib/posixtm.h: Likewise.
28670         * lib/posixver.c: Likewise.
28671         * lib/printf-frexp.c: Likewise.
28672         * lib/printf-frexp.h: Likewise.
28673         * lib/printf-frexpl.c: Likewise.
28674         * lib/printf-frexpl.h: Likewise.
28675         * lib/printf.c: Likewise.
28676         * lib/progname.c: Likewise.
28677         * lib/progname.h: Likewise.
28678         * lib/progreloc.c: Likewise.
28679         * lib/putenv.c: Likewise.
28680         * lib/quote.c: Likewise.
28681         * lib/quote.h: Likewise.
28682         * lib/quotearg.c: Likewise.
28683         * lib/quotearg.h: Likewise.
28684         * lib/raise.c: Likewise.
28685         * lib/readline.c: Likewise.
28686         * lib/readline.h: Likewise.
28687         * lib/readlink.c: Likewise.
28688         * lib/readtokens.c: Likewise.
28689         * lib/readtokens.h: Likewise.
28690         * lib/readtokens0.c: Likewise.
28691         * lib/readtokens0.h: Likewise.
28692         * lib/readutmp.c: Likewise.
28693         * lib/readutmp.h: Likewise.
28694         * lib/realloc.c: Likewise.
28695         * lib/relocwrapper.c: Likewise.
28696         * lib/rename-dest-slash.c: Likewise.
28697         * lib/rename.c: Likewise.
28698         * lib/rmdir.c: Likewise.
28699         * lib/rpmatch.c: Likewise.
28700         * lib/safe-read.c: Likewise.
28701         * lib/safe-read.h: Likewise.
28702         * lib/safe-write.c: Likewise.
28703         * lib/safe-write.h: Likewise.
28704         * lib/same-inode.h: Likewise.
28705         * lib/same.c: Likewise.
28706         * lib/same.h: Likewise.
28707         * lib/save-cwd.c: Likewise.
28708         * lib/save-cwd.h: Likewise.
28709         * lib/savedir.c: Likewise.
28710         * lib/savedir.h: Likewise.
28711         * lib/savewd.c: Likewise.
28712         * lib/savewd.h: Likewise.
28713         * lib/search.in.h: Likewise.
28714         * lib/setenv.c: Likewise.
28715         * lib/setenv.h: Likewise.
28716         * lib/settime.c: Likewise.
28717         * lib/sh-quote.c: Likewise.
28718         * lib/sh-quote.h: Likewise.
28719         * lib/sig2str.c: Likewise.
28720         * lib/sig2str.h: Likewise.
28721         * lib/signal.in.h: Likewise.
28722         * lib/signbitd.c: Likewise.
28723         * lib/signbitf.c: Likewise.
28724         * lib/signbitl.c: Likewise.
28725         * lib/sigprocmask.c: Likewise.
28726         * lib/sincosl.c: Likewise.
28727         * lib/sleep.c: Likewise.
28728         * lib/sprintf.c: Likewise.
28729         * lib/sqrtl.c: Likewise.
28730         * lib/stat-time.h: Likewise.
28731         * lib/stdio--.h: Likewise.
28732         * lib/stdio-safer.h: Likewise.
28733         * lib/stdlib--.h: Likewise.
28734         * lib/stdlib-safer.h: Likewise.
28735         * lib/stdlib.in.h: Likewise.
28736         * lib/stpcpy.c: Likewise.
28737         * lib/stpncpy.c: Likewise.
28738         * lib/strchrnul.c: Likewise.
28739         * lib/strcspn.c: Likewise.
28740         * lib/strerror.c: Likewise.
28741         * lib/strftime.c: Likewise.
28742         * lib/strftime.h: Likewise.
28743         * lib/striconveh.c: Likewise.
28744         * lib/striconveh.h: Likewise.
28745         * lib/striconveha.c: Likewise.
28746         * lib/striconveha.h: Likewise.
28747         * lib/stripslash.c: Likewise.
28748         * lib/strnlen1.c: Likewise.
28749         * lib/strnlen1.h: Likewise.
28750         * lib/strtod.c: Likewise.
28751         * lib/strtoimax.c: Likewise.
28752         * lib/strtok_r.c: Likewise.
28753         * lib/strtol.c: Likewise.
28754         * lib/strtoll.c: Likewise.
28755         * lib/strtoul.c: Likewise.
28756         * lib/strtoull.c: Likewise.
28757         * lib/sysexits.in.h: Likewise.
28758         * lib/tempname.c: Likewise.
28759         * lib/tempname.h: Likewise.
28760         * lib/timespec.h: Likewise.
28761         * lib/tls.c: Likewise.
28762         * lib/tls.h: Likewise.
28763         * lib/tmpdir.c: Likewise.
28764         * lib/tmpdir.h: Likewise.
28765         * lib/tmpfile-safer.c: Likewise.
28766         * lib/tmpfile.c: Likewise.
28767         * lib/trigl.c: Likewise.
28768         * lib/trigl.h: Likewise.
28769         * lib/trim.c: Likewise.
28770         * lib/trim.h: Likewise.
28771         * lib/trunc.c: Likewise.
28772         * lib/truncf.c: Likewise.
28773         * lib/truncl.c: Likewise.
28774         * lib/tsearch.c: Likewise.
28775         * lib/unicodeio.c: Likewise.
28776         * lib/unicodeio.h: Likewise.
28777         * lib/unistd--.h: Likewise.
28778         * lib/unistd-safer.h: Likewise.
28779         * lib/unistdio/ulc-fprintf.c: Likewise.
28780         * lib/unistdio/ulc-vfprintf.c: Likewise.
28781         * lib/unlinkdir.c: Likewise.
28782         * lib/unlinkdir.h: Likewise.
28783         * lib/unlocked-io.h: Likewise.
28784         * lib/unsetenv.c: Likewise.
28785         * lib/userspec.c: Likewise.
28786         * lib/utime.c: Likewise.
28787         * lib/utimecmp.c: Likewise.
28788         * lib/utimecmp.h: Likewise.
28789         * lib/utimens.c: Likewise.
28790         * lib/verify.h: Likewise.
28791         * lib/verror.c: Likewise.
28792         * lib/verror.h: Likewise.
28793         * lib/version-etc-fsf.c: Likewise.
28794         * lib/version-etc.c: Likewise.
28795         * lib/version-etc.h: Likewise.
28796         * lib/vfprintf.c: Likewise.
28797         * lib/vprintf.c: Likewise.
28798         * lib/vsprintf.c: Likewise.
28799         * lib/w32spawn.h: Likewise.
28800         * lib/wait-process.c: Likewise.
28801         * lib/wait-process.h: Likewise.
28802         * lib/wcwidth.c: Likewise.
28803         * lib/write-any-file.c: Likewise.
28804         * lib/xalloc-die.c: Likewise.
28805         * lib/xalloc.h: Likewise.
28806         * lib/xasprintf.c: Likewise.
28807         * lib/xgetcwd.c: Likewise.
28808         * lib/xgetcwd.h: Likewise.
28809         * lib/xgetdomainname.c: Likewise.
28810         * lib/xgetdomainname.h: Likewise.
28811         * lib/xgethostname.c: Likewise.
28812         * lib/xmalloc.c: Likewise.
28813         * lib/xmalloca.c: Likewise.
28814         * lib/xmalloca.h: Likewise.
28815         * lib/xmemcoll.c: Likewise.
28816         * lib/xnanosleep.c: Likewise.
28817         * lib/xreadlink.c: Likewise.
28818         * lib/xreadlink.h: Likewise.
28819         * lib/xsetenv.c: Likewise.
28820         * lib/xsetenv.h: Likewise.
28821         * lib/xstriconv.c: Likewise.
28822         * lib/xstriconv.h: Likewise.
28823         * lib/xstrndup.c: Likewise.
28824         * lib/xstrndup.h: Likewise.
28825         * lib/xstrtod.c: Likewise.
28826         * lib/xstrtod.h: Likewise.
28827         * lib/xstrtol-error.c: Likewise.
28828         * lib/xstrtol.c: Likewise.
28829         * lib/xstrtol.h: Likewise.
28830         * lib/xtime.h: Likewise.
28831         * lib/xvasprintf.c: Likewise.
28832         * lib/xvasprintf.h: Likewise.
28833         * lib/yesno.c: Likewise.
28834         * lib/yesno.h: Likewise.
28835         * posix-modules: Likewise.
28836         * tests/test-alloca-opt.c: Likewise.
28837         * tests/test-arcfour.c: Likewise.
28838         * tests/test-arctwo.c: Likewise.
28839         * tests/test-argmatch.c: Likewise.
28840         * tests/test-argp-2.sh: Likewise.
28841         * tests/test-argp.c: Likewise.
28842         * tests/test-arpa_inet.c: Likewise.
28843         * tests/test-array_list.c: Likewise.
28844         * tests/test-array_oset.c: Likewise.
28845         * tests/test-atexit.c: Likewise.
28846         * tests/test-avltree_list.c: Likewise.
28847         * tests/test-avltree_oset.c: Likewise.
28848         * tests/test-avltreehash_list.c: Likewise.
28849         * tests/test-base64.c: Likewise.
28850         * tests/test-binary-io.c: Likewise.
28851         * tests/test-byteswap.c: Likewise.
28852         * tests/test-c-ctype.c: Likewise.
28853         * tests/test-c-strcasecmp.c: Likewise.
28854         * tests/test-c-strcasestr.c: Likewise.
28855         * tests/test-c-strncasecmp.c: Likewise.
28856         * tests/test-c-strstr.c: Likewise.
28857         * tests/test-canonicalize-lgpl.c: Likewise.
28858         * tests/test-canonicalize.c: Likewise.
28859         * tests/test-carray_list.c: Likewise.
28860         * tests/test-ceilf.c: Likewise.
28861         * tests/test-ceill.c: Likewise.
28862         * tests/test-count-one-bits.c: Likewise.
28863         * tests/test-crc.c: Likewise.
28864         * tests/test-dirname.c: Likewise.
28865         * tests/test-fbufmode.c: Likewise.
28866         * tests/test-fcntl.c: Likewise.
28867         * tests/test-fflush.c: Likewise.
28868         * tests/test-floorf.c: Likewise.
28869         * tests/test-floorl.c: Likewise.
28870         * tests/test-fopen.c: Likewise.
28871         * tests/test-fprintf-posix.c: Likewise.
28872         * tests/test-fprintf-posix.h: Likewise.
28873         * tests/test-fpurge.c: Likewise.
28874         * tests/test-freadable.c: Likewise.
28875         * tests/test-freadahead.c: Likewise.
28876         * tests/test-freading.c: Likewise.
28877         * tests/test-freopen.c: Likewise.
28878         * tests/test-frexp.c: Likewise.
28879         * tests/test-frexpl.c: Likewise.
28880         * tests/test-fseek.c: Likewise.
28881         * tests/test-fseeko.c: Likewise.
28882         * tests/test-fseterr.c: Likewise.
28883         * tests/test-fstrcmp.c: Likewise.
28884         * tests/test-ftell.c: Likewise.
28885         * tests/test-ftello.c: Likewise.
28886         * tests/test-fwritable.c: Likewise.
28887         * tests/test-fwriting.c: Likewise.
28888         * tests/test-getaddrinfo.c: Likewise.
28889         * tests/test-getpass.c: Likewise.
28890         * tests/test-gettimeofday.c: Likewise.
28891         * tests/test-hmac-md5.c: Likewise.
28892         * tests/test-hmac-sha1.c: Likewise.
28893         * tests/test-iconv.c: Likewise.
28894         * tests/test-iconvme.c: Likewise.
28895         * tests/test-inttypes.c: Likewise.
28896         * tests/test-isnan.c: Likewise.
28897         * tests/test-isnanf.c: Likewise.
28898         * tests/test-isnanl-nolibm.c: Likewise.
28899         * tests/test-isnanl.c: Likewise.
28900         * tests/test-isnanl.h: Likewise.
28901         * tests/test-ldexpl.c: Likewise.
28902         * tests/test-linked_list.c: Likewise.
28903         * tests/test-linkedhash_list.c: Likewise.
28904         * tests/test-locale.c: Likewise.
28905         * tests/test-localename.c: Likewise.
28906         * tests/test-lock.c: Likewise.
28907         * tests/test-lseek.c: Likewise.
28908         * tests/test-malloca.c: Likewise.
28909         * tests/test-math.c: Likewise.
28910         * tests/test-mbscasecmp.c: Likewise.
28911         * tests/test-mbscasestr1.c: Likewise.
28912         * tests/test-mbscasestr2.c: Likewise.
28913         * tests/test-mbscasestr3.c: Likewise.
28914         * tests/test-mbscasestr4.c: Likewise.
28915         * tests/test-mbschr.c: Likewise.
28916         * tests/test-mbscspn.c: Likewise.
28917         * tests/test-mbsncasecmp.c: Likewise.
28918         * tests/test-mbspbrk.c: Likewise.
28919         * tests/test-mbspcasecmp.c: Likewise.
28920         * tests/test-mbsrchr.c: Likewise.
28921         * tests/test-mbsspn.c: Likewise.
28922         * tests/test-mbsstr1.c: Likewise.
28923         * tests/test-mbsstr2.c: Likewise.
28924         * tests/test-mbsstr3.c: Likewise.
28925         * tests/test-md5.c: Likewise.
28926         * tests/test-memmem.c: Likewise.
28927         * tests/test-netinet_in.c: Likewise.
28928         * tests/test-open.c: Likewise.
28929         * tests/test-printf-frexp.c: Likewise.
28930         * tests/test-printf-frexpl.c: Likewise.
28931         * tests/test-printf-posix.c: Likewise.
28932         * tests/test-printf-posix.h: Likewise.
28933         * tests/test-rbtree_list.c: Likewise.
28934         * tests/test-rbtree_oset.c: Likewise.
28935         * tests/test-rbtreehash_list.c: Likewise.
28936         * tests/test-read-file.c: Likewise.
28937         * tests/test-rijndael.c: Likewise.
28938         * tests/test-search.c: Likewise.
28939         * tests/test-signbit.c: Likewise.
28940         * tests/test-sleep.c: Likewise.
28941         * tests/test-snprintf-posix.c: Likewise.
28942         * tests/test-snprintf-posix.h: Likewise.
28943         * tests/test-snprintf.c: Likewise.
28944         * tests/test-sprintf-posix.c: Likewise.
28945         * tests/test-sprintf-posix.h: Likewise.
28946         * tests/test-stat-time.c: Likewise.
28947         * tests/test-stdbool.c: Likewise.
28948         * tests/test-stdint.c: Likewise.
28949         * tests/test-stdio.c: Likewise.
28950         * tests/test-stdlib.c: Likewise.
28951         * tests/test-stpncpy.c: Likewise.
28952         * tests/test-strcasestr.c: Likewise.
28953         * tests/test-striconv.c: Likewise.
28954         * tests/test-striconveh.c: Likewise.
28955         * tests/test-striconveha.c: Likewise.
28956         * tests/test-string.c: Likewise.
28957         * tests/test-sys_select.c: Likewise.
28958         * tests/test-sys_socket.c: Likewise.
28959         * tests/test-sys_stat.c: Likewise.
28960         * tests/test-sys_time.c: Likewise.
28961         * tests/test-sysexits.c: Likewise.
28962         * tests/test-time.c: Likewise.
28963         * tests/test-tls.c: Likewise.
28964         * tests/test-trunc.c: Likewise.
28965         * tests/test-truncf.c: Likewise.
28966         * tests/test-truncl.c: Likewise.
28967         * tests/test-unistd.c: Likewise.
28968         * tests/test-vasnprintf-posix.c: Likewise.
28969         * tests/test-vasnprintf-posix2.c: Likewise.
28970         * tests/test-vasnprintf.c: Likewise.
28971         * tests/test-vasprintf-posix.c: Likewise.
28972         * tests/test-vasprintf.c: Likewise.
28973         * tests/test-verify.c: Likewise.
28974         * tests/test-vfprintf-posix.c: Likewise.
28975         * tests/test-vprintf-posix.c: Likewise.
28976         * tests/test-vsnprintf-posix.c: Likewise.
28977         * tests/test-vsnprintf.c: Likewise.
28978         * tests/test-vsprintf-posix.c: Likewise.
28979         * tests/test-wchar.c: Likewise.
28980         * tests/test-wctype.c: Likewise.
28981         * tests/test-wcwidth.c: Likewise.
28982         * tests/test-xstrtol.c: Likewise.
28983         * tests/test-xvasprintf.c: Likewise.
28984         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28985         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28986         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28987         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28988         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28989         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28990         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28991         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28992         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28993         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28994         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28995         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28996         * tests/uniname/test-uninames.c: Likewise.
28997         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28998         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
28999         * tests/unistdio/test-u16-printf1.h: Likewise.
29000         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29001         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29002         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29003         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29004         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29005         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29006         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29007         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29008         * tests/unistdio/test-u32-printf1.h: Likewise.
29009         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29010         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29011         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29012         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29013         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29014         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29015         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29016         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29017         * tests/unistdio/test-u8-printf1.h: Likewise.
29018         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29019         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29020         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29021         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29022         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29023         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29024         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29025         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29026         * tests/unistdio/test-ulc-printf1.h: Likewise.
29027         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29028         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29029         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29030         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29031         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29032         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29033         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29034         * tests/uniwidth/test-u16-width.c: Likewise.
29035         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29036         * tests/uniwidth/test-u32-width.c: Likewise.
29037         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29038         * tests/uniwidth/test-u8-width.c: Likewise.
29039         * tests/uniwidth/test-uc_width.c: Likewise.
29040         * config/srclist-update: Likewise.
29041         (fixlicense): Update to GPLv3+.
29042
29043         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29044         * tests/test-tsearch.c: Change copyright notice.
29045
29046         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29047         * lib/c-strcaseeq.h: Change copyright notice.
29048         * lib/streq.h: Likewise.
29049         * lib/uniconv.h: Likewise.
29050         * lib/uniconv/u-conv-from-enc.h: Likewise.
29051         * lib/uniconv/u-conv-to-enc.h: Likewise.
29052         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29053         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29054         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29055         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29056         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29057         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29058         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29059         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29060         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29061         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29062         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29063         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29064         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29065         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29066         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29067         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29068         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29069         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29070         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29071         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29072         * lib/uniname.h: Likewise.
29073         * lib/uniname/uniname.c: Likewise.
29074         * lib/unistdio.h: Likewise.
29075         * lib/unistdio/u-asnprintf.h: Likewise.
29076         * lib/unistdio/u-asprintf.h: Likewise.
29077         * lib/unistdio/u-printf-args.c: Likewise.
29078         * lib/unistdio/u-printf-args.h: Likewise.
29079         * lib/unistdio/u-printf-parse.h: Likewise.
29080         * lib/unistdio/u-snprintf.h: Likewise.
29081         * lib/unistdio/u-sprintf.h: Likewise.
29082         * lib/unistdio/u-vasprintf.h: Likewise.
29083         * lib/unistdio/u-vsnprintf.h: Likewise.
29084         * lib/unistdio/u-vsprintf.h: Likewise.
29085         * lib/unistdio/u16-asnprintf.c: Likewise.
29086         * lib/unistdio/u16-asprintf.c: Likewise.
29087         * lib/unistdio/u16-printf-parse.c: Likewise.
29088         * lib/unistdio/u16-snprintf.c: Likewise.
29089         * lib/unistdio/u16-sprintf.c: Likewise.
29090         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29091         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29092         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29093         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29094         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29095         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29096         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29097         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29098         * lib/unistdio/u16-vasnprintf.c: Likewise.
29099         * lib/unistdio/u16-vasprintf.c: Likewise.
29100         * lib/unistdio/u16-vsnprintf.c: Likewise.
29101         * lib/unistdio/u16-vsprintf.c: Likewise.
29102         * lib/unistdio/u32-asnprintf.c: Likewise.
29103         * lib/unistdio/u32-asprintf.c: Likewise.
29104         * lib/unistdio/u32-printf-parse.c: Likewise.
29105         * lib/unistdio/u32-snprintf.c: Likewise.
29106         * lib/unistdio/u32-sprintf.c: Likewise.
29107         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29108         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29109         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29110         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29111         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29112         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29113         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29114         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29115         * lib/unistdio/u32-vasnprintf.c: Likewise.
29116         * lib/unistdio/u32-vasprintf.c: Likewise.
29117         * lib/unistdio/u32-vsnprintf.c: Likewise.
29118         * lib/unistdio/u32-vsprintf.c: Likewise.
29119         * lib/unistdio/u8-asnprintf.c: Likewise.
29120         * lib/unistdio/u8-asprintf.c: Likewise.
29121         * lib/unistdio/u8-printf-parse.c: Likewise.
29122         * lib/unistdio/u8-snprintf.c: Likewise.
29123         * lib/unistdio/u8-sprintf.c: Likewise.
29124         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29125         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29126         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29127         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29128         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29129         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29130         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29131         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29132         * lib/unistdio/u8-vasnprintf.c: Likewise.
29133         * lib/unistdio/u8-vasprintf.c: Likewise.
29134         * lib/unistdio/u8-vsnprintf.c: Likewise.
29135         * lib/unistdio/u8-vsprintf.c: Likewise.
29136         * lib/unistdio/ulc-asnprintf.c: Likewise.
29137         * lib/unistdio/ulc-asprintf.c: Likewise.
29138         * lib/unistdio/ulc-printf-parse.c: Likewise.
29139         * lib/unistdio/ulc-snprintf.c: Likewise.
29140         * lib/unistdio/ulc-sprintf.c: Likewise.
29141         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29142         * lib/unistdio/ulc-vasprintf.c: Likewise.
29143         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29144         * lib/unistdio/ulc-vsprintf.c: Likewise.
29145         * lib/unistr.h: Likewise.
29146         * lib/unistr/u-cpy-alloc.h: Likewise.
29147         * lib/unistr/u-cpy.h: Likewise.
29148         * lib/unistr/u-endswith.h: Likewise.
29149         * lib/unistr/u-move.h: Likewise.
29150         * lib/unistr/u-set.h: Likewise.
29151         * lib/unistr/u-startswith.h: Likewise.
29152         * lib/unistr/u-stpcpy.h: Likewise.
29153         * lib/unistr/u-stpncpy.h: Likewise.
29154         * lib/unistr/u-strcat.h: Likewise.
29155         * lib/unistr/u-strcpy.h: Likewise.
29156         * lib/unistr/u-strcspn.h: Likewise.
29157         * lib/unistr/u-strdup.h: Likewise.
29158         * lib/unistr/u-strlen.h: Likewise.
29159         * lib/unistr/u-strncat.h: Likewise.
29160         * lib/unistr/u-strncpy.h: Likewise.
29161         * lib/unistr/u-strnlen.h: Likewise.
29162         * lib/unistr/u-strpbrk.h: Likewise.
29163         * lib/unistr/u-strspn.h: Likewise.
29164         * lib/unistr/u-strstr.h: Likewise.
29165         * lib/unistr/u-strtok.h: Likewise.
29166         * lib/unistr/u16-check.c: Likewise.
29167         * lib/unistr/u16-chr.c: Likewise.
29168         * lib/unistr/u16-cmp.c: Likewise.
29169         * lib/unistr/u16-cpy-alloc.c: Likewise.
29170         * lib/unistr/u16-cpy.c: Likewise.
29171         * lib/unistr/u16-endswith.c: Likewise.
29172         * lib/unistr/u16-mblen.c: Likewise.
29173         * lib/unistr/u16-mbsnlen.c: Likewise.
29174         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29175         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29176         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29177         * lib/unistr/u16-mbtouc.c: Likewise.
29178         * lib/unistr/u16-mbtoucr.c: Likewise.
29179         * lib/unistr/u16-move.c: Likewise.
29180         * lib/unistr/u16-next.c: Likewise.
29181         * lib/unistr/u16-prev.c: Likewise.
29182         * lib/unistr/u16-set.c: Likewise.
29183         * lib/unistr/u16-startswith.c: Likewise.
29184         * lib/unistr/u16-stpcpy.c: Likewise.
29185         * lib/unistr/u16-stpncpy.c: Likewise.
29186         * lib/unistr/u16-strcat.c: Likewise.
29187         * lib/unistr/u16-strchr.c: Likewise.
29188         * lib/unistr/u16-strcmp.c: Likewise.
29189         * lib/unistr/u16-strcpy.c: Likewise.
29190         * lib/unistr/u16-strcspn.c: Likewise.
29191         * lib/unistr/u16-strdup.c: Likewise.
29192         * lib/unistr/u16-strlen.c: Likewise.
29193         * lib/unistr/u16-strmblen.c: Likewise.
29194         * lib/unistr/u16-strmbtouc.c: Likewise.
29195         * lib/unistr/u16-strncat.c: Likewise.
29196         * lib/unistr/u16-strncmp.c: Likewise.
29197         * lib/unistr/u16-strncpy.c: Likewise.
29198         * lib/unistr/u16-strnlen.c: Likewise.
29199         * lib/unistr/u16-strpbrk.c: Likewise.
29200         * lib/unistr/u16-strrchr.c: Likewise.
29201         * lib/unistr/u16-strspn.c: Likewise.
29202         * lib/unistr/u16-strstr.c: Likewise.
29203         * lib/unistr/u16-strtok.c: Likewise.
29204         * lib/unistr/u16-to-u32.c: Likewise.
29205         * lib/unistr/u16-to-u8.c: Likewise.
29206         * lib/unistr/u16-uctomb-aux.c: Likewise.
29207         * lib/unistr/u16-uctomb.c: Likewise.
29208         * lib/unistr/u32-check.c: Likewise.
29209         * lib/unistr/u32-chr.c: Likewise.
29210         * lib/unistr/u32-cmp.c: Likewise.
29211         * lib/unistr/u32-cpy-alloc.c: Likewise.
29212         * lib/unistr/u32-cpy.c: Likewise.
29213         * lib/unistr/u32-endswith.c: Likewise.
29214         * lib/unistr/u32-mblen.c: Likewise.
29215         * lib/unistr/u32-mbsnlen.c: Likewise.
29216         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29217         * lib/unistr/u32-mbtouc.c: Likewise.
29218         * lib/unistr/u32-mbtoucr.c: Likewise.
29219         * lib/unistr/u32-move.c: Likewise.
29220         * lib/unistr/u32-next.c: Likewise.
29221         * lib/unistr/u32-prev.c: Likewise.
29222         * lib/unistr/u32-set.c: Likewise.
29223         * lib/unistr/u32-startswith.c: Likewise.
29224         * lib/unistr/u32-stpcpy.c: Likewise.
29225         * lib/unistr/u32-stpncpy.c: Likewise.
29226         * lib/unistr/u32-strcat.c: Likewise.
29227         * lib/unistr/u32-strchr.c: Likewise.
29228         * lib/unistr/u32-strcmp.c: Likewise.
29229         * lib/unistr/u32-strcpy.c: Likewise.
29230         * lib/unistr/u32-strcspn.c: Likewise.
29231         * lib/unistr/u32-strdup.c: Likewise.
29232         * lib/unistr/u32-strlen.c: Likewise.
29233         * lib/unistr/u32-strmblen.c: Likewise.
29234         * lib/unistr/u32-strmbtouc.c: Likewise.
29235         * lib/unistr/u32-strncat.c: Likewise.
29236         * lib/unistr/u32-strncmp.c: Likewise.
29237         * lib/unistr/u32-strncpy.c: Likewise.
29238         * lib/unistr/u32-strnlen.c: Likewise.
29239         * lib/unistr/u32-strpbrk.c: Likewise.
29240         * lib/unistr/u32-strrchr.c: Likewise.
29241         * lib/unistr/u32-strspn.c: Likewise.
29242         * lib/unistr/u32-strstr.c: Likewise.
29243         * lib/unistr/u32-strtok.c: Likewise.
29244         * lib/unistr/u32-to-u16.c: Likewise.
29245         * lib/unistr/u32-to-u8.c: Likewise.
29246         * lib/unistr/u32-uctomb.c: Likewise.
29247         * lib/unistr/u8-check.c: Likewise.
29248         * lib/unistr/u8-chr.c: Likewise.
29249         * lib/unistr/u8-cmp.c: Likewise.
29250         * lib/unistr/u8-cpy-alloc.c: Likewise.
29251         * lib/unistr/u8-cpy.c: Likewise.
29252         * lib/unistr/u8-endswith.c: Likewise.
29253         * lib/unistr/u8-mblen.c: Likewise.
29254         * lib/unistr/u8-mbsnlen.c: Likewise.
29255         * lib/unistr/u8-mbtouc-aux.c: Likewise.
29256         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29257         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29258         * lib/unistr/u8-mbtouc.c: Likewise.
29259         * lib/unistr/u8-mbtoucr.c: Likewise.
29260         * lib/unistr/u8-move.c: Likewise.
29261         * lib/unistr/u8-next.c: Likewise.
29262         * lib/unistr/u8-prev.c: Likewise.
29263         * lib/unistr/u8-set.c: Likewise.
29264         * lib/unistr/u8-startswith.c: Likewise.
29265         * lib/unistr/u8-stpcpy.c: Likewise.
29266         * lib/unistr/u8-stpncpy.c: Likewise.
29267         * lib/unistr/u8-strcat.c: Likewise.
29268         * lib/unistr/u8-strchr.c: Likewise.
29269         * lib/unistr/u8-strcmp.c: Likewise.
29270         * lib/unistr/u8-strcpy.c: Likewise.
29271         * lib/unistr/u8-strcspn.c: Likewise.
29272         * lib/unistr/u8-strdup.c: Likewise.
29273         * lib/unistr/u8-strlen.c: Likewise.
29274         * lib/unistr/u8-strmblen.c: Likewise.
29275         * lib/unistr/u8-strmbtouc.c: Likewise.
29276         * lib/unistr/u8-strncat.c: Likewise.
29277         * lib/unistr/u8-strncmp.c: Likewise.
29278         * lib/unistr/u8-strncpy.c: Likewise.
29279         * lib/unistr/u8-strnlen.c: Likewise.
29280         * lib/unistr/u8-strpbrk.c: Likewise.
29281         * lib/unistr/u8-strrchr.c: Likewise.
29282         * lib/unistr/u8-strspn.c: Likewise.
29283         * lib/unistr/u8-strstr.c: Likewise.
29284         * lib/unistr/u8-strtok.c: Likewise.
29285         * lib/unistr/u8-to-u16.c: Likewise.
29286         * lib/unistr/u8-to-u32.c: Likewise.
29287         * lib/unistr/u8-uctomb-aux.c: Likewise.
29288         * lib/unistr/u8-uctomb.c: Likewise.
29289         * lib/unitypes.h: Likewise.
29290         * lib/uniwidth.h: Likewise.
29291         * lib/uniwidth/cjk.h: Likewise.
29292         * lib/uniwidth/u16-strwidth.c: Likewise.
29293         * lib/uniwidth/u16-width.c: Likewise.
29294         * lib/uniwidth/u32-strwidth.c: Likewise.
29295         * lib/uniwidth/u32-width.c: Likewise.
29296         * lib/uniwidth/u8-strwidth.c: Likewise.
29297         * lib/uniwidth/u8-width.c: Likewise.
29298         * lib/uniwidth/width.c: Likewise.
29299
29300 2007-10-07  Bruno Haible  <bruno@clisp.org>
29301
29302         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29303         The file is still under LGPL (see modules/inttypes).
29304
29305 2007-10-06  Bruno Haible  <bruno@clisp.org>
29306
29307         * modules/trunc (Dependencies): Add 'extensions'.
29308         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29309         Reported by Ben Pfaff <blp@gnu.org>.
29310
29311 2007-10-06  Bruno Haible  <bruno@clisp.org>
29312
29313         * modules/freopen-tests: New file.
29314         * tests/test-freopen.c: New file.
29315
29316         * modules/fopen-tests: New file.
29317         * tests/test-fopen.c: New file.
29318
29319         * modules/fopen: New file.
29320         * lib/fopen.c: New file.
29321         * m4/fopen.m4: New file.
29322         * modules/freopen: New file.
29323         * lib/freopen.c: New file.
29324         * m4/freopen.m4: New file.
29325         * lib/stdio.in.h (fopen, freopen): New declarations.
29326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29327         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29328         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29329         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29330         * doc/functions/fopen.texi: Mention the 'fopen' module.
29331         * doc/functions/freopen.texi: Mention the 'freopen' module.
29332
29333 2007-10-06  Bruno Haible  <bruno@clisp.org>
29334
29335         * modules/open-tests: New file.
29336         * tests/test-open.c: New file.
29337
29338         * modules/open: New file.
29339         * lib/open.c: New file.
29340         * m4/open.m4: New file.
29341         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29342         lib/open.c does.
29343         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29344         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29345         macros.
29346         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29347         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29348         REPLACE_OPEN.
29349         * doc/functions/open.texi: Mention the 'open' module.
29350
29351 2007-10-04  Bruno Haible  <bruno@clisp.org>
29352
29353         * modules/ceill-tests: New file.
29354         * tests/test-ceill.c: New file.
29355
29356         * modules/ceill: New file.
29357         * lib/ceill.c: Replace entire file.
29358         * m4/ceill.m4: New file.
29359         * lib/math.in.h (ceill): Replace declaration.
29360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29361         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29362         * doc/functions/ceill.texi: Mention the 'ceill' module.
29363         * modules/mathl (Files): Remove lib/ceill.c.
29364         (Depends-on): Add ceill.
29365
29366 2007-10-04  Bruno Haible  <bruno@clisp.org>
29367
29368         * modules/ceilf-tests: New file.
29369         * tests/test-ceilf.c: New file.
29370
29371         * modules/ceilf: New file.
29372         * lib/ceil.c: New file.
29373         * lib/ceilf.c: New file.
29374         * m4/ceilf.m4: New file.
29375         * lib/math.in.h (ceilf): New declaration.
29376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29377         HAVE_DECL_CEILF.
29378         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29379         HAVE_DECL_CEILF.
29380         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29381
29382 2007-10-04  Bruno Haible  <bruno@clisp.org>
29383
29384         * modules/floorl-tests: New file.
29385         * tests/test-floorl.c: New file.
29386
29387         * modules/floorl: New file.
29388         * lib/floorl.c: Replace entire file.
29389         * m4/floorl.m4: New file.
29390         * lib/math.in.h (floorl): Replace declaration.
29391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29392         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29393         * doc/functions/floorl.texi: Mention the 'floorl' module.
29394         * modules/mathl (Files): Remove lib/floorl.c.
29395         (Depends-on): Add floorl.
29396
29397 2007-10-04  Bruno Haible  <bruno@clisp.org>
29398
29399         * modules/floorf-tests: New file.
29400         * tests/test-floorf.c: New file.
29401
29402         * modules/floorf: New file.
29403         * lib/floor.c: New file.
29404         * lib/floorf.c: New file.
29405         * m4/floorf.m4: New file.
29406         * lib/math.in.h (floorf): New declaration.
29407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29408         HAVE_DECL_FLOORF.
29409         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29410         HAVE_DECL_FLOORF.
29411         * doc/functions/floorf.texi: Mention the 'floorf' module.
29412
29413 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
29414             Bruno Haible  <bruno@clisp.org>
29415
29416         Advertise for the Git server instead of the CVS server.
29417         * doc/gnulib-intro.texi (Steady Development): Mention the Git
29418         repository instead of the CVS one.
29419         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29420         about all VCS systems generically.
29421         * doc/gnulib.texi (Introduction): Capitalize `Git'.
29422
29423 2007-10-04  Bruno Haible  <bruno@clisp.org>
29424
29425         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29426         means.
29427         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29428
29429 2007-10-04  Bruno Haible  <bruno@clisp.org>
29430
29431         * modules/truncl-tests: New file.
29432         * tests/test-truncl.c: New file.
29433
29434         * modules/truncl: New file.
29435         * lib/truncl.c: New file.
29436         * m4/truncl.m4: New file.
29437         * lib/math.in.h (truncl): New declaration.
29438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29439         HAVE_DECL_TRUNCL.
29440         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29441         HAVE_DECL_TRUNCL.
29442         * doc/functions/truncl.texi: Mention the 'truncl' module.
29443
29444 2007-10-04  Bruno Haible  <bruno@clisp.org>
29445
29446         * modules/truncf-tests: New file.
29447         * tests/test-truncf.c: New file.
29448
29449         * modules/truncf: New file.
29450         * lib/trunc.c: Make paramerizable through USE_* macros.
29451         * lib/truncf.c: New file.
29452         * m4/truncf.m4: New file.
29453         * lib/math.in.h (truncf): New declaration.
29454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29455         HAVE_DECL_TRUNCF.
29456         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29457         HAVE_DECL_TRUNCF.
29458         * doc/functions/truncf.texi: Mention the 'truncf' module.
29459
29460 2007-10-03  Bruno Haible  <bruno@clisp.org>
29461
29462         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29463         augmentation also for tests modules.
29464         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29465         * modules/atexit-tests (Makefile.am): Likewise.
29466         * modules/binary-io-tests (Makefile.am): Likewise.
29467         * modules/c-strcase-tests (Makefile.am): Likewise.
29468         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29469         * modules/canonicalize-tests (Makefile.am): Likewise.
29470         * modules/closein-tests (Makefile.am): Likewise.
29471         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29472         * modules/freadahead-tests (Makefile.am): Likewise.
29473         * modules/fseek-tests (Makefile.am): Likewise.
29474         * modules/fseeko-tests (Makefile.am): Likewise.
29475         * modules/ftell-tests (Makefile.am): Likewise.
29476         * modules/ftello-tests (Makefile.am): Likewise.
29477         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29478         * modules/isnanl-tests (Makefile.am): Likewise.
29479         * modules/lseek-tests (Makefile.am): Likewise.
29480         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29481         * modules/mbscasestr-tests (Makefile.am): Likewise.
29482         * modules/mbschr-tests (Makefile.am): Likewise.
29483         * modules/mbscspn-tests (Makefile.am): Likewise.
29484         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29485         * modules/mbspbrk-tests (Makefile.am): Likewise.
29486         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29487         * modules/mbsrchr-tests (Makefile.am): Likewise.
29488         * modules/mbsspn-tests (Makefile.am): Likewise.
29489         * modules/mbsstr-tests (Makefile.am): Likewise.
29490         * modules/printf-posix-tests (Makefile.am): Likewise.
29491         * modules/snprintf-posix-tests (Makefile.am): Likewise.
29492         * modules/sprintf-posix-tests (Makefile.am): Likewise.
29493         * modules/tsearch-tests (Makefile.am): Likewise.
29494         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29495         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29496         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29497         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29498         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29499         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29500         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29501         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29502         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29503         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29504         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29505         * modules/xstrtol-tests (Makefile.am): Likewise.
29506         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29507         * modules/yesno-tests (Makefile.am): Likewise.
29508
29509 2007-10-03  Bruno Haible  <bruno@clisp.org>
29510
29511         * modules/trunc-tests: New file.
29512         * tests/test-trunc.c: New file.
29513
29514         * modules/trunc: New file.
29515         * lib/trunc.c: New file.
29516         * m4/trunc.m4: New file.
29517         * lib/math.in.h (trunc): New declaration.
29518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
29519         HAVE_DECL_TRUNC.
29520         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
29521         HAVE_DECL_TRUNC.
29522         * doc/functions/trunc.texi: Mention the 'trunc' module.
29523
29524 2007-10-03  Bruno Haible  <bruno@clisp.org>
29525
29526         * tests/test-fpending.c: New file, mostly copied
29527         from coreutils/lib/t-fpending.c.
29528         * modules/fpending-tests: New file.
29529
29530 2007-10-03  Bruno Haible  <bruno@clisp.org>
29531
29532         Port the stdio extensions to QNX (untested).
29533         * lib/fseterr.c (fseterr): Add support for QNX.
29534         * lib/fbufmode.c (fbufmode): Likewise.
29535         * lib/freadable.c (freadable): Likewise.
29536         * lib/fwritable.c (fwritable): Likewise.
29537         * lib/freading.c (freading): Likewise.
29538         * lib/fwriting.c (fwriting): Likewise.
29539         * lib/freadahead.c (freadahed): Likewise.
29540         * lib/fpurge.c (fpurge): Likewise.
29541         * lib/fseeko.c (rpl_fseeko): Likewise.
29542
29543 2007-10-03  Bruno Haible  <bruno@clisp.org>
29544             Jim Meyering  <jim@meyering.net>
29545             Eric Blake  <ebb9@byu.net>
29546
29547         * doc/relocatable.texi: Use @command instead of @program.
29548
29549 2007-10-02  Jim Meyering  <jim@meyering.net>
29550
29551         Perform one more "_.h" -> ".in.h" substitution.
29552         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
29553         instead of unistd_.h here, too.
29554
29555 2007-10-01  Bruno Haible  <bruno@clisp.org>
29556
29557         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
29558         Needed for the alloca-opt module.
29559
29560 2007-09-30  Bruno Haible  <bruno@clisp.org>
29561
29562         * lib/alloca.in.h: Renamed from lib/alloca_.h.
29563         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
29564         alloca_.h.
29565         * lib/argz.in.h: Renamed from lib/argz_.h.
29566         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
29567         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
29568         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
29569         byteswap_.h.
29570         * lib/dirent.in.h: Renamed from lib/dirent_.h.
29571         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
29572         dirent_.h.
29573         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
29574         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
29575         fcntl_.h.
29576         * lib/float.in.h: Renamed from lib/float_.h.
29577         * modules/float (Files, Makefile.am): Use float.in.h instead of
29578         float_.h.
29579         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
29580         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
29581         fnmatch_.h.
29582         * lib/getopt.in.h: Renamed from lib/getopt_.h.
29583         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
29584         getopt_.h.
29585         * lib/glob.in.h: Renamed from lib/glob_.h.
29586         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
29587         * lib/iconv.in.h: Renamed from lib/iconv_.h.
29588         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
29589         iconv_.h.
29590         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
29591         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
29592         inttypes_.h.
29593         * lib/locale.in.h: Renamed from lib/locale_.h.
29594         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
29595         locale_.h.
29596         * lib/math.in.h: Renamed from lib/math_.h.
29597         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
29598         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
29599         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
29600         of netinet_in_.h. Add dependency.
29601         * lib/poll.in.h: Renamed from lib/poll_.h.
29602         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
29603         * lib/search.in.h: Renamed from lib/search_.h.
29604         * modules/search (Files, Makefile.am): Use search.in.h instead of
29605         search_.h.
29606         * lib/signal.in.h: Renamed from lib/signal_.h.
29607         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
29608         _signal.h.
29609         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
29610         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
29611         stdbool_.h.
29612         * lib/stdint.in.h: Renamed from lib/stdint_.h.
29613         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
29614         stdint_.h.
29615         * lib/stdio.in.h: Renamed from lib/stdio_.h.
29616         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
29617         stdio_.h.
29618         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
29619         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
29620         stdlib_.h.
29621         * lib/string.in.h: Renamed from lib/string_.h.
29622         * modules/string (Files, Makefile.am): Use string.in.h instead of
29623         string_.h.
29624         * doc/gnulib-tool.texi (Initial import): Update.
29625         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
29626         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
29627         of sys_select_.h. Add dependency.
29628         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
29629         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
29630         of sys_socket_.h.
29631         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
29632         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
29633         sys_stat_.h.
29634         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
29635         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
29636         sys_time_.h.
29637         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
29638         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
29639         sysexits_.h.
29640         * lib/time.in.h: Renamed from lib/time_.h.
29641         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
29642         * lib/unistd.in.h: Renamed from lib/unistd_.h.
29643         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
29644         unistd_.h.
29645         * lib/wchar.in.h: Renamed from lib/wchar_.h.
29646         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
29647         wchar_.h.
29648         * lib/wctype.in.h: Renamed from lib/wctype_.h.
29649         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
29650         wctype_.h.
29651         * build-aux/bootstrap (slurp): Update.
29652         * lib/.cppi-disable: Update.
29653
29654 2007-09-30  Bruno Haible  <bruno@clisp.org>
29655
29656         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
29657         Needed on BeOS.
29658
29659 2007-09-30  Bruno Haible  <bruno@clisp.org>
29660
29661         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
29662
29663 2007-09-29  Bruno Haible  <bruno@clisp.org>
29664
29665         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
29666
29667 2007-09-29  Bruno Haible  <bruno@clisp.org>
29668
29669         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
29670         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
29671         * build-aux/install-reloc: Compile also areadlink.c.
29672         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
29673
29674 2007-09-29  Bruno Haible  <bruno@clisp.org>
29675
29676         * gnulib-tool (func_emit_initmacro_done): Indentation.
29677
29678 2007-09-29  Bruno Haible  <bruno@clisp.org>
29679
29680         * README: Add CVS checkout update instructions.
29681         Info from Bob Proulx <bob@proulx.com>.
29682
29683 2007-09-28  Eric Blake  <ebb9@byu.net>
29684
29685         Provide move-if-change.
29686         * build-aux/move-if-change: New file, based on best practice
29687         rather than any canonical upstream location.
29688
29689 2007-09-28  Jim Meyering  <jim@meyering.net>
29690
29691         Fix canonicalize loop-detection corner case.
29692         Do not attempt to stat the symlink values stored via seen_triple.
29693         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
29694         on linux-2.6.18, (but not 2.6.22).
29695         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
29696         triple_compare.  The former compares dev,ino,filename, while the latter
29697         would actually stat dirname(filename) when dev and ino were equal.
29698         * lib/hash-triple.c: Install <string.h>.
29699         (STREQ): Define.
29700         (triple_compare_ino_str): New function.
29701         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
29702
29703 2007-09-28  Eric Blake  <ebb9@byu.net>
29704
29705         Enforce that AC_REPLACE_FUNCS files exist.
29706         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
29707         override check for typos.
29708
29709         Fix test-closein on Solaris 10.
29710         * tests/test-closein.c (main): Don't assume stdin can be inherited
29711         closed on all systems.
29712         * tests/test-closein.sh: Likewise.
29713         Reported by Piotr Tarnowski.
29714
29715 2007-09-28  Jim Meyering  <jim@meyering.net>
29716
29717         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
29718
29719 2007-09-27  Jim Meyering  <jim@meyering.net>
29720
29721         canonicalize: Avoid a false-positive cycle failure.
29722         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
29723         Sort.  Remove cycle-check.
29724         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
29725         not cycle-check.h.
29726         (seen_triple): New function.
29727         (canonicalize_filename_mode): Use it instead of cycle-check.
29728         * tests/test-canonicalize.c: Add a test for this bug.
29729         * tests/test-canonicalize.sh: Set up and run the test.
29730
29731         New module, file-set, from coreutils.
29732         * modules/file-set: Define it.
29733         * lib/file-set.c, lib/file-set.h: Implement.
29734
29735         New module, hash-triple, from coreutils.
29736         * modules/hash-triple: Define it.
29737         * lib/hash-triple.c, lib/hash-triple.h: Implement.
29738
29739 2007-09-25  Eric Blake  <ebb9@byu.net>
29740
29741         Fix strerror on Interix.
29742         * lib/string_.h (strerror): Declare replacement.
29743         * doc/functions/strerror.texi (strerror): Document the Interix
29744         shortcoming.
29745         * modules/string (Makefile.am): Support new hooks.
29746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
29747         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
29748         gl_FUNC_STRERROR_SEPARATE.
29749         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
29750         * lib/strerror.c (rpl_strerror): Provide replacement.
29751         * modules/strerror (Depends-on): Add string.
29752         (configure.ac): Detect use of module.
29753         * tests/test-strerror.c: New file.
29754         * modules/strerror-tests: New test module.
29755         * modules/argp (Depends-on): Add strerror.
29756         * modules/error (Depends-on): Likewise.
29757         Reported by Martin Koeppe.
29758
29759 2007-09-24  Bruno Haible  <bruno@clisp.org>
29760
29761         * README: Update git instructions.
29762
29763 2007-09-24  Eric Blake  <ebb9@byu.net>
29764
29765         Revert fpending breakage from 2007-09-08.
29766         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
29767         __fpending.c.
29768
29769 2007-09-24  Jim Meyering  <jim@meyering.net>
29770
29771         filenamecat.c: Add a test.
29772         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
29773         showing how the function works when DIR is the empty string.
29774
29775 2007-09-21  Simon Josefsson  <simon@josefsson.org>
29776
29777         * tests/test-canonicalize.sh: Turn on executable bit.
29778
29779 2007-09-19  Eric Blake  <ebb9@byu.net>
29780
29781         * README: Update CVS instructions.
29782
29783 2007-09-18  Bruno Haible  <bruno@clisp.org>
29784
29785         * modules/areadlink: New file.
29786         * lib/areadlink.h (areadlink): New declaration.
29787         * lib/areadlink.c: New file, based on lib/xreadlink.c.
29788
29789 2007-09-17  Jim Meyering  <jim@meyering.net>
29790
29791         * lib/savewd.c (ESTALE) [!defined]: Define.
29792         Reported to be required on Interix by Martin Koeppe.
29793
29794 2007-09-17  Bruno Haible  <bruno@clisp.org>
29795
29796         * gnulib-tool (func_version): Use $version.
29797
29798 2007-09-16  Bruno Haible  <bruno@clisp.org>
29799
29800         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
29801         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
29802         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
29803         Reported by Greg Schafer <gschafer@zip.com.au>.
29804
29805 2007-09-15  Bruno Haible  <bruno@clisp.org>
29806
29807         * gnulib-tool (sed): Try a little harder to make bash understand the
29808         alias.
29809         Reported by Bruce Korb <bruce.korb@gmail.com>.
29810
29811 2007-09-13  Eric Blake  <ebb9@byu.net>
29812
29813         * ChangeLog: Remove conflict markers.
29814
29815 2007-09-13  Simon Josefsson  <simon@josefsson.org>
29816
29817         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
29818         Reported by Bruno Haible <bruno@clisp.org>.
29819
29820 2007-09-12  Bruno Haible  <bruno@clisp.org>
29821
29822         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
29823         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
29824         is not defined.
29825
29826 2007-09-12  Eric Blake  <ebb9@byu.net>
29827
29828         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
29829         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
29830         Autoconf definition.
29831         * modules/euidaccess (Depends-on): Add extensions, for
29832         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
29833         * modules/fnmatch (Depends-on): Likewise.
29834         * modules/getaddrinfo (Depends-on): Likewise.
29835         * modules/getdelim (Depends-on): Likewise.
29836         * modules/getline (Depends-on): Likewise.
29837         * modules/getsubopt (Depends-on): Likewise.
29838         * modules/gettext (Depends-on): Likewise.
29839         * modules/group-member (Depends-on): Likewise.
29840         * modules/mbchar (Depends-on): Likewise.
29841         * modules/memmem (Depends-on): Likewise.
29842         * modules/mempcpy (Depends-on): Likewise.
29843         * modules/memrchr (Depends-on): Likewise.
29844         * modules/pagealign_alloc (Depends-on): Likewise.
29845         * modules/readutmp (Depends-on): Likewise.
29846         * modules/stpcpy (Depends-on): Likewise.
29847         * modules/stpncpy (Depends-on): Likewise.
29848         * modules/strchrnul (Depends-on): Likewise.
29849         * modules/strndup (Depends-on): Likewise.
29850         * modules/strsep (Depends-on): Likewise.
29851         * modules/strverscmp (Depends-on): Likewise.
29852         * modules/vasprintf (Depends-on): Likewise.
29853         * modules/wcwidth (Depends-on): Likewise.
29854         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
29855         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
29856         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
29857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
29858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29859         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29860         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
29861         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
29862         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
29863         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29865         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29866         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29867         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29868         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
29869         * m4/readutmp.m4 (gl_READUTMP): Likewise.
29870         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29871         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29872         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29873         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29874         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29875         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29876         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29877         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
29878         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
29879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29880         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
29881         so that lock.m4 can be used in gettext without extensions module.
29882
29883 2007-09-11  Bruno Haible  <bruno@clisp.org>
29884
29885         * m4/isc-posix.m4: Remove file.
29886         Suggested by Eric Blake.
29887
29888 2007-09-11  Eric Blake  <ebb9@byu.net>
29889
29890         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
29891
29892 2007-09-10  Bruno Haible  <bruno@clisp.org>
29893
29894         * posix-modules: Fix typo in error message.
29895         Reported by Matt <mkraai@beckman.com>.
29896
29897 2007-09-09  Bruno Haible  <bruno@clisp.org>
29898
29899         * doc/functions/getdelim.texi: Update list of platforms lacking the
29900         function.
29901         * doc/functions/getline.texi: Likewise.
29902
29903 2007-09-09  Jim Meyering  <jim@meyering.net>
29904
29905         * lib/hash.c (hash_initialize): Detect calloc failure.
29906         Reported by Bruno Haible.
29907
29908 2007-09-09  Bruno Haible  <bruno@clisp.org>
29909
29910         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
29911         malloc or realloc fails.
29912
29913 2007-09-09  Bruno Haible  <bruno@clisp.org>
29914
29915         * modules/getcwd (Depends-on): Add malloc-posix.
29916         * modules/glob (Depends-on): Likewise.
29917         * modules/putenv (Depends-on): Likewise.
29918         * modules/strdup (Depends-on): Likewise.
29919         * modules/getdelim (Depends-on): Add realloc-posix.
29920         * modules/read-file (Depends-on): Likewise.
29921
29922 2007-09-09  Bruno Haible  <bruno@clisp.org>
29923
29924         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
29925         (gl_FUNC_MALLOC_POSIX): Require it.
29926         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
29927         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
29928         * modules/realloc (Files): Add m4/malloc.m4.
29929         * modules/calloc (Files): Likewise.
29930
29931 2007-09-09  Bruno Haible  <bruno@clisp.org>
29932
29933         * modules/malloc-posix: New file.
29934         * modules/malloc (Depends-on): Add malloc-posix.
29935         * lib/malloc.c: Include errno.h.
29936         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
29937         and a POSIX-compatible malloc into a single function. Set ENOMEM
29938         when returning NULL.
29939         * m4/malloc.m4: New file.
29940         * doc/functions/malloc.texi: Mention the malloc-posix module.
29941         * lib/stdlib_.h (malloc): New declaration.
29942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29943         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
29944         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
29945         and HAVE_MALLOC_POSIX.
29946
29947 2007-09-09  Bruno Haible  <bruno@clisp.org>
29948
29949         * modules/realloc-posix: New file.
29950         * modules/realloc (Depends-on): Add realloc-posix.
29951         * lib/realloc.c: Include errno.h.
29952         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
29953         and a POSIX-compatible realloc into a single function. Set ENOMEM
29954         when returning NULL.
29955         * m4/realloc.m4: New file.
29956         * doc/functions/realloc.texi: Mention the realloc-posix module.
29957         * lib/stdlib_.h (realloc): New declaration.
29958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29959         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
29960         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
29961         and HAVE_REALLOC_POSIX.
29962
29963 2007-09-09  Bruno Haible  <bruno@clisp.org>
29964
29965         * modules/calloc-posix: New file.
29966         * modules/calloc (Depends-on): Add calloc-posix.
29967         * lib/calloc.c: Include errno.h.
29968         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
29969         and a POSIX-compatible calloc into a single function. Set ENOMEM
29970         when returning NULL.
29971         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
29972         * doc/functions/calloc.texi: Mention the calloc-posix module.
29973         * lib/stdlib_.h (calloc): New declaration.
29974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29975         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
29976         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
29977         and HAVE_CALLOC_POSIX.
29978
29979 2007-09-09  Bruno Haible  <bruno@clisp.org>
29980
29981         Allow for modules to show an arbitrary notice.
29982         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
29983         * gnulib-tool: New option --extract-notice.
29984         (func_usage): Document it.
29985         (sed_extract_prog): Update.
29986         (func_get_notice): New function.
29987         (func_modules_notice): New function.
29988         (func_import, func_create_testdir): Invoke it.
29989         Suggested by Jim Meyering.
29990
29991 2007-09-09  Bruno Haible  <bruno@clisp.org>
29992
29993         * gnulib-tool: New options --verbose, --quiet.
29994         (func_usage): Document them.
29995         (verbose): New variable.
29996         (func_execute_command): New function.
29997         (func_import): Don't show the module list and the file list if
29998         $verbose < 0.
29999         (func_create_testdir): Likewise. Use func_execute_command.
30000         (func_create_megatestdir): Use func_execute_command.
30001
30002 2007-09-08  Bruno Haible  <bruno@clisp.org>
30003
30004         * gnulib-tool (func_import): Prefer rsync over wget when available,
30005         for fetching the PO files.
30006
30007 2007-09-08  Bruno Haible  <bruno@clisp.org>
30008
30009         * posix-modules: New file. Portions copied from gnulib-tool.
30010         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30011
30012 2007-09-08  Jim Meyering  <jim@meyering.net>
30013
30014         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30015         * lib/fpending.h: Rename from __fpending.h.
30016         * lib/fpending.c: Rename from __fpending.c.
30017         Include "fpending.h", not "__fpending.h".
30018         * lib/__fpending.h, lib/__fpending.c: Remove files.
30019         * modules/fpending (Files): Reflect new file names.
30020         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30021
30022 2007-09-08  Bruno Haible  <bruno@clisp.org>
30023
30024         * m4/inttypes-h.m4: Remove stub file.
30025
30026 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30027
30028         * doc/headers/stdint.texi: Discuss #include_next issue.
30029
30030 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30031
30032         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30033
30034 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30035
30036         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30037         in variable name.
30038
30039 2007-09-03  Jim Meyering  <jim@meyering.net>
30040
30041         New module: git-version-gen.
30042         * modules/git-version-gen: New file.
30043
30044         Import changes from coreutils for bootstrap script.
30045
30046         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30047
30048         bootstrap: uses rsync to download the .po files
30049         * build-aux/bootstrap (po_download_command_format): New global.
30050         (download_po_files): Use rsync.
30051         (update_po_files): Don't remove .po files after download,
30052         so future rsync runs can take advantage of the copies.
30053
30054         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30055
30056         Solve the unnecessary-.po-file-regeneration problem once and for all.
30057         * build-aux/bootstrap (download_po_files): New function, renamed from
30058         get_translations.  Now, downloads, but doesn't update LINGUAS.
30059         (update_po_files): New function.
30060
30061         bootstrap: Ignore more.
30062         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30063         uniwidth to e.g., lib/.gitignore.
30064         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30065
30066         * build-aux/bootstrap: New setting: vc_ignore.
30067         (insert_sorted_if_absent): Create $file if absent.
30068         Adapt to new, possibly empty, list: $vc_ignore.
30069
30070         bootstrap: generate more ignorable names
30071         * build-aux/bootstrap (slurp): When generating ignorable names,
30072         also map .sin to .sed, .gperf to .c, and .y to .c.
30073
30074 2007-09-03  Jim Meyering  <jim@meyering.net>
30075
30076         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30077         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30078
30079 2007-09-02  Bruno Haible  <bruno@clisp.org>
30080
30081         Fix mis-recognition of 'mcs' on QNX 6.
30082         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30083         output contains the string "Mono".
30084         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30085         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30086
30087 2007-09-01  Bruno Haible  <bruno@clisp.org>
30088
30089         Fix collision between uniwidth/* and linebreak modules.
30090         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30091         u32_width): Remove declarations.
30092         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30093         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30094         streq3, streq2, streq1, streq0): Remove functions.
30095         (STREQ): Remove macro.
30096         (is_cjk_encoding): Remove function.
30097         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30098         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30099         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30100         * NEWS: Document the change.
30101
30102 2007-09-01  Bruno Haible  <bruno@clisp.org>
30103
30104         * lib/streq.h: Add double-inclusion guard.
30105
30106 2007-09-01  Karl Berry  <karl@gnu.org>
30107
30108         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30109
30110 2007-08-28  Jim Meyering  <jim@meyering.net>
30111
30112         Rename mreadlink_with_size to areadlink_with_size.
30113         * NEWS: Document the change.
30114         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30115         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30116         * lib/mreadlink.h: Rename this to...
30117         * lib/areadlink.h: ...this.
30118         * modules/mreadlink-with-size: Rename this to...
30119         * modules/areadlink-with-size: ...this.
30120         * lib/canonicalize.c: Reflect the renaming.
30121         * modules/canonicalize: Likewise.
30122
30123 2007-08-26  Bruno Haible  <bruno@clisp.org>
30124
30125         * gnulib-tool (func_import): When deciding which files to remove,
30126         consider also dangling symbolic links.
30127         Reported by Eric Blake.
30128
30129 2007-08-26  Bruno Haible  <bruno@clisp.org>
30130
30131         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30132
30133 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30134
30135         * lib/readline.c: Don't include getline.h, the prototype is now
30136         found in stdio.h.
30137
30138 2007-08-23  Jim Meyering  <jim@meyering.net>
30139
30140         Getdelim touchup.
30141         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30142         around the funlockfile call, since funlockfile never sets errno.
30143         Don't set errno upon failed realloc.
30144
30145 2007-08-22  Eric Blake  <ebb9@byu.net>
30146
30147         Getline touchups.
30148         * lib/getdelim.c (getdelim): Revert regression that required *n to
30149         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30150         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30151         getdelim, rather than whether implementation is missing.
30152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30153         * lib/stdio_.h (getline): Also declare if replacement is
30154         required.
30155         * doc/functions/getdelim.texi: New file.
30156         * doc/functions/getline.texi: Likewise.
30157         * doc/gnulib.texi (Function Substitutes): Add new files.
30158         Reported by Bruno Haible.
30159
30160 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30161
30162         * users.txt: Add Guile.
30163
30164 2007-08-22  Eric Blake  <ebb9@byu.net>
30165
30166         * tests/test-getdelim.c (main): Use remove, not unlink.
30167         * tests/test-getline.c (main): Likewise.
30168
30169         Move getline and getdelim into stdio.h, per POSIX 200x.
30170         * modules/getline (Files): Remove getline.h.
30171         (Depends-on): Add stdio.
30172         (configure.ac): Add module indicator.
30173         * modules/getdelim (Files): Remove getdelim.h.
30174         (Depends-on): Add stdio.
30175         (configure.ac): Add module indicator.
30176         * modules/stdio (Makefile.am): Work with new indicators.
30177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30178         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30179         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30180         * lib/getdelim.h: Delete.
30181         * lib/getline.h: Delete.
30182         * lib/stdio_.h (getdelim, getline): Declare.
30183         * modules/getdelim-tests: New module.
30184         * modules/getline-tests: Likewise.
30185         * tests/test-getdelim.c: New file.
30186         * tests/test-getline.c: Likewise.
30187         * NEWS: Document the change.
30188         * lib/getline.c: Update choice of header.
30189         * lib/csharpcomp.c: Likewise.
30190         * lib/getpass.c: Likewise.
30191         * lib/javacomp.c: Likewise.
30192         * lib/javaversion.c: Likewise.
30193         * lib/yesno.c: Likewise.
30194         * lib/getdelim.c: Likewise.
30195         (getdelim): Set errno on failure, and avoid memory leak.
30196
30197 2007-08-19  Bruno Haible  <bruno@clisp.org>
30198
30199         * modules/closein (Depends-on): Add freadahead.
30200         * lib/closein.c: Include freadahead.h.
30201         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30202         is zero.
30203
30204 2007-08-19  Bruno Haible  <bruno@clisp.org>
30205
30206         * modules/freadahead-tests: New file.
30207         * tests/test-freadahead.sh: New file.
30208         * tests/test-freadahead.c: New file.
30209
30210         * modules/freadahead: New file.
30211         * lib/freadahead.h: New file.
30212         * lib/freadahead.c: New file.
30213         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30214         fbufmode, fpurge, freadable, fwritable.
30215
30216 2007-08-19  Eric Blake  <ebb9@byu.net>
30217
30218         Test yesno in combination with closein.
30219         * lib/yesno.c (yesno): Document use of stdin.
30220         * modules/yesno-tests (Files): New module.
30221         * tests/test-yesno.c (main): New file.
30222         * tests/test-yesno.sh: Likewise.
30223
30224 2007-08-19  Bruno Haible  <bruno@clisp.org>
30225
30226         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30227         * lib/fseeko.c (rpl_fseeko): Likewise.
30228         * lib/fseterr.c (fseterr): Likewise.
30229
30230 2007-08-19  Bruno Haible  <bruno@clisp.org>
30231
30232         * tests/test-lseek.c (main): Disable a test for BeOS.
30233         * doc/functions/lseek.texi: Document the BeOS bug.
30234
30235 2007-08-19  Bruno Haible  <bruno@clisp.org>
30236             Eric Blake  <ebb9@byu.net>
30237
30238         * lib/lseek.c: Include <sys/stat.h>.
30239         (rpl_lseek): Add workaround code also for Unix platforms.
30240         Needed for BeOS.
30241         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30242         * doc/functions/lseek.texi: Document BeOS definiency.
30243
30244 2007-08-18  Bruno Haible  <bruno@clisp.org>
30245
30246         * modules/fstrcmp-tests: New file.
30247         * tests/test-fstrcmp.c: New file.
30248
30249 2007-08-18  Bruno Haible  <bruno@clisp.org>
30250
30251         * modules/fstrcmp: New file, from GNU gettext with modifications.
30252         * lib/fstrcmp.h: New file, from GNU gettext.
30253         * lib/fstrcmp.c: New file, from GNU gettext.
30254         * MODULES.html.sh (String handling): Add fstrcmp.
30255
30256 2007-08-18  Bruno Haible  <bruno@clisp.org>
30257
30258         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30259         'bool'.
30260         (diag, compareseq): Remove const from the ctxt argument.
30261         (USE_HEURISTIC): Undefine at the end.
30262
30263 2007-08-18  Jim Meyering  <jim@meyering.net>
30264
30265         New file: lib/idcache.h
30266         * NEWS: Mention the addition.
30267         * modules/idcache (Files): Add lib/idcache.h
30268         * lib/idcache.c: Include "idcache.h".
30269         Don't include <sys/types.h>.
30270         Add a FIXME comment.
30271         Move file-scoped "static" declarations to the top.
30272         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
30273
30274 2007-08-17  Bruno Haible  <bruno@clisp.org>
30275         and Paul Eggert  <eggert@cs.ucla.edu>
30276
30277         * MODULES.html.sh: Add diffseq.
30278         * modules/diffseq: New file.
30279         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30280         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30281
30282 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30283
30284         Import changes from coreutils for bootstrap script.
30285
30286         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
30287
30288         * build-aux/bootstrap (slurp): Work even in environments where
30289         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
30290         current code does not slurp files whose names start with ".", and
30291         this looks like it might be a troublesome area.
30292
30293         2007-07-11  Jim Meyering  <jim@meyering.net>
30294
30295         If there's a GPL vN copyright comment, require that N == 3.
30296
30297         2007-07-08  Jim Meyering  <jim@meyering.net>
30298
30299         Run the coreutils-specific code only if tests/Makefile.am.in exists.
30300         * build-aux/bootstrap (mam_template): Move definition out of loop.
30301
30302         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30303
30304         * build-aux/bootstrap (symlink_to_dir): Rename function from
30305         symlink_to_gnulib.  Add a directory parameter.  Update all
30306         callers.
30307         (cp_mark_as_generated): Also check for -- and link to -- files in
30308         gl/.
30309
30310         2007-07-08  Jim Meyering  <jim@meyering.net>
30311
30312         Adapt to deeper hierarchy in gnulib.
30313         * build-aux/bootstrap (symlink_to_dir): If the destination
30314         directory doesn't exist, create it. This is required at least for
30315         "lib/uniwidth/cjk.h".
30316
30317         2007-05-15  Jim Meyering  <jim@meyering.net>
30318
30319         * build-aux/bootstrap: Now that generated Makefile.am files
30320         are no longer under version control, they must be created at
30321         bootstrap time.
30322
30323 2007-08-14  Ben Pfaff  <blp@gnu.org>
30324
30325         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
30326
30327 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30328
30329         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30330         given the changes below.
30331         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
30332         even on hosts that have padding bits beyond the supported 64.
30333
30334 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30335
30336         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30337         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30338         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
30339         depends on it.
30340         (xstrtol_error): Remove.
30341         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30342         but with a different signature.
30343         (ATTRIBUTE_NORETURN, __attribute__): New macros.
30344         * lib/xstrtol-error.c: Include exitfail.h.
30345         (xstrtol_fatal): New function, with a different signature from the
30346         old xstrtol_error, so that the caller need not worry about passing
30347         in an exit status, or about storage management of the option argument.
30348         (xstrtol_error): Now a static function.  Redo signature to
30349         implement xstrtol_fatal.  Output the correct number of hyphens in
30350         front of the option so that the caller need not worry about
30351         storage management.
30352         (N_): New macro.
30353         (_): Remove; not used now.
30354         * modules/xstrtol: Depend on getopt.
30355         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30356         of old STRTOL_FATAL_ERROR macro.
30357         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30358         of test program.
30359         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30360         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30361
30362 2007-08-08  Eric Blake  <ebb9@byu.net>
30363
30364         * lib/xstrtol-error.c: Add missing include.
30365
30366         Move xstrtol messages into gnulib domain, when --pobase is used.
30367         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30368         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30369         * modules/xstrtol (Files): Distribute new file.
30370         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30371         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30372         * tests/test-xstrtol.c: ...into new file.
30373         * tests/test-xstrtoul.c: Also test xstrtoul.
30374         * tests/test-xstrtoimax.c: Also test xstrtoimax.
30375         * tests/test-xstrtoumax.c: Also test xstrtoumax.
30376         * tests/test-xstrtol.sh: Drive the tests.
30377         * tests/test-xstrtoimax.sh: Likewise.
30378         * tests/test-xstrtoumax.sh: Likewise.
30379         * modules/xstrtol-tests: New module.
30380         * modules/xstrtoimax-tests: Likewise.
30381         * modules/xstrtoumax-tests: Likewise.
30382
30383 2007-08-08  Jim Meyering  <jim@meyering.net>
30384
30385         New function: mfile_name_concat.
30386         * lib/filenamecat.c (mfile_name_concat): New function, just like
30387         file_name_concat, but return NULL upon failure rather than exiting
30388         with a diagnostic.
30389         * lib/filenamecat.h: Declare it.
30390
30391 2007-08-07  Bruno Haible  <bruno@clisp.org>
30392
30393         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30394         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30395         warning from gcc.
30396         Reported by Eric Blake.
30397
30398 2007-08-07  Simon Josefsson  <simon@josefsson.org>
30399
30400         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30401         * modules/crypto/arcfour (License): Likewise.
30402         * modules/crypto/des-tests (License): Likewise.
30403         * modules/crypto/gc-arctwo-tests (License): Likewise.
30404         * modules/crypto/gc-des-tests (License): Likewise.
30405         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30406         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30407         * modules/crypto/gc-md2-tests (License): Likewise.
30408         * modules/crypto/gc-md4-tests (License): Likewise.
30409         * modules/crypto/gc-md5-tests (License): Likewise.
30410         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30411         * modules/crypto/gc-rijndael-tests (License): Likewise.
30412         * modules/crypto/gc-sha1-tests (License): Likewise.
30413         * modules/crypto/gc-tests (License): Likewise.
30414         * modules/crypto/hmac-md5 (License): Likewise.
30415         * modules/crypto/hmac-sha1 (License): Likewise.
30416         * modules/crypto/md2-tests (License): Likewise.
30417         * modules/crypto/md4-tests (License): Likewise.
30418         * modules/crypto/md5 (License): Likewise.
30419         * modules/crypto/rijndael (License): Likewise.
30420         * modules/crypto/sha1 (License): Likewise.
30421         * modules/memxor (License): Likewise.
30422
30423 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
30424         and Bruno Haible  <bruno@clisp.org>
30425
30426         * NEWS: Describe interface changes to human, xstrtol.
30427         * lib/human.h: Include <xstrtol.h>.
30428         (human_options): Return enum strtol_error, not int.  Remove
30429         bool arg; take int * instead.
30430         * lib/human.c: Don't include "gettext.h".
30431         (_): Remove; no longer used.
30432         Don't include <xstrtol.h>, since human.h does it.
30433         (human_options): Adjust to abovementioned interface changes.
30434         Do not report error to stderr; that's now the caller's
30435         responsibility.
30436         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30437         interface change.
30438         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30439         Str, Argument_type_string.  All uses changed.  Put " argument"
30440         in diagnostics to make them clearer.  Change wording of suffix
30441         message for clarity.
30442         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30443         Argument_type_string.
30444         (STRTOL_FATAL_WARN): Remove; no longer used.
30445         * modules/human (Depends-on): Remove gettext-h.
30446
30447 2007-08-06  Simon Josefsson  <simon@josefsson.org>
30448
30449         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30450
30451 2007-07-31  Bruno Haible  <bruno@clisp.org>
30452
30453         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30454         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30455         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30456
30457 2007-07-31  Bruno Haible  <bruno@clisp.org>
30458
30459         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30460         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30461
30462 2007-07-30  Bruno Haible  <bruno@clisp.org>
30463
30464         * modules/base64 (License): Use the synonymous term "LGPLv2+".
30465         * modules/c-ctype (License): Likewise.
30466         * modules/c-strcase (License): Likewise.
30467         * modules/check-version (License): Likewise.
30468         * modules/iconv (License): Likewise.
30469         * modules/iconv_open (License): Likewise.
30470         * modules/read-file (License): Likewise.
30471         * modules/striconv (License): Likewise.
30472         * modules/strverscmp (License): Likewise.
30473         * modules/vasprintf (License): Likewise.
30474         * modules/crypto/des (License): Likewise.
30475         * modules/crypto/gc (License): Likewise.
30476         * modules/crypto/gc-arcfour (License): Likewise.
30477         * modules/crypto/gc-arctwo (License): Likewise.
30478         * modules/crypto/gc-des (License): Likewise.
30479         * modules/crypto/gc-hmac-md5 (License): Likewise.
30480         * modules/crypto/gc-hmac-sha1 (License): Likewise.
30481         * modules/crypto/gc-md2 (License): Likewise.
30482         * modules/crypto/gc-md4 (License): Likewise.
30483         * modules/crypto/gc-md5 (License): Likewise.
30484         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30485         * modules/crypto/gc-random (License): Likewise.
30486         * modules/crypto/gc-rijndael (License): Likewise.
30487         * modules/crypto/gc-sha1 (License): Likewise.
30488         * modules/crypto/md2 (License): Likewise.
30489         * modules/crypto/md4 (License): Likewise.
30490
30491 2007-07-30  Jim Meyering  <jim@meyering.net>
30492
30493         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30494         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30495         it has valid stat data.  This bug would cause du not to count the
30496         sizes of inaccessible directories.
30497         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30498         in <http://bugzilla.redhat.com/250077>.
30499
30500 2007-07-25  Peter O'Gorman  <peter@pogma.com>
30501             Bruno Haible  <bruno@clisp.org>
30502
30503         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30504         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30505         #include_next, gives a diagnostic about it, but reports no error in
30506         the exit code.
30507         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30508
30509 2007-07-24  Ben Pfaff  <blp@gnu.org>
30510
30511         Improve name: "count-one-bits" is better than "popcount".
30512         * MODULES.html.sh: Update name.
30513         * lib/popcount.h: Renamed lib/count-one-bits.h.
30514         (popcount): Renamed count_one_bits.
30515         (popcountl): Renamed count_one_bits_l.
30516         (popcountll): Renamed count_one_bits_ll.
30517         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30518         * modules/popcount: Renamed module/count-one-bits.
30519         * modules/popcount-tests: Renamed module/count-one-bits-tests.
30520         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
30521
30522 2007-07-23  Ben Pfaff  <blp@gnu.org>
30523
30524         * lib/popcount.h (popcount32): Reduce size of constants, to allow
30525         better code generation, and add U to large constants to avoid
30526         warnings, in non-GCC case.
30527         Suggested by Bruno Haible.
30528
30529 2007-07-23  Ben Pfaff  <blp@gnu.org>
30530
30531         * lib/popcount.h: Use verify_true instead of if...abort.
30532         * modules/popcount: Depend on verify module.
30533         Suggested by Jim Meyering.
30534
30535 2007-07-23  Bruno Haible  <bruno@clisp.org>
30536
30537         * gnulib-tool (func_import): Create a .cvsignore file also when the
30538         directory is not yet in CVS but the toplevel directory is. When
30539         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
30540         Reported by Karl Berry.
30541
30542 2007-07-22  Ben Pfaff  <blp@gnu.org>
30543
30544         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
30545         case.
30546         Suggested by Eric Blake.
30547
30548 2007-07-22  Ben Pfaff  <blp@gnu.org>
30549
30550         New module: popcount.
30551         * MODULES.html.sh: Add popcount.
30552         * modules/popcount: New file.
30553         * modules/popcount-tests: New file.
30554         * tests/test-popcount.c: New file.
30555         * lib/popcount.h: New file.
30556         * m4/popcount.m4: New file.
30557
30558 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30559
30560         * build-aux/announce-gen: Update to GPLv3.
30561
30562         * build-aux/config.guess: Update from config.
30563
30564 2007-07-21  Bruno Haible  <bruno@clisp.org>
30565
30566         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
30567         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
30568
30569 2007-07-20  Jim Meyering  <jim@meyering.net>
30570
30571         * check-module: Diagnose a self-dependency.
30572
30573 2007-07-19  Bruno Haible  <bruno@clisp.org>
30574
30575         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
30576         empty.
30577         Reported by Eric Blake.
30578
30579 2007-07-18  Bruno Haible  <bruno@clisp.org>
30580
30581         * gnulib-tool: New options --po-base, --po-domain.
30582         (func_usage): Document them.
30583         (pobase, po_domain): New variables.
30584         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
30585         DEFAULT_TEXT_DOMAIN.
30586         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
30587         (func_import): Consider pobase and po_domain. Create a po/ directory.
30588         (func_create_testdir): Set pobase and po_domain to empty.
30589         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
30590         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
30591
30592 2007-07-18  Bruno Haible  <bruno@clisp.org>
30593
30594         * gnulib-tool (func_get_automake_snippet): Synthesize also an
30595         EXTRA_DIST augmentation for files in build-aux/.
30596
30597 2007-07-16  Bruno Haible  <bruno@clisp.org>
30598
30599         * modules/lseek (License): Use the synonymous term "LGPLv2+".
30600         * modules/getdelim (License): Likewise.
30601
30602 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30603
30604         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
30605         * modules/d-type (License): Likewise.
30606         * modules/extensions (License): Likewise.
30607         * modules/fnmatch (License): Likewise.
30608         * modules/fseeko (License): Likewise.
30609         * modules/getaddrinfo (License): Likewise.
30610         * modules/getline (License): Likewise.
30611         * modules/getlogin_r (License): Likewise.
30612         * modules/getpass (License): Likewise.
30613         * modules/gettimeofday (License): Likewise.
30614         * modules/glob (License): Likewise.
30615         * modules/inet_ntop (License): Likewise.
30616         * modules/malloc (License): Likewise.
30617         * modules/malloca (License): Likewise.
30618         * modules/memmem (License): Likewise.
30619         * modules/mempcpy (License): Likewise.
30620         * modules/memset (License): Likewise.
30621         * modules/minmax (License): Likewise.
30622         * modules/mktime (License): Likewise.
30623         * modules/netinet_in (License): Likewise.
30624         * modules/pathmax (License): Likewise.
30625         * modules/poll (License): Likewise.
30626         * modules/regex (License): Likewise.
30627         * modules/snprintf (License): Likewise.
30628         * modules/stdbool (License): Likewise.
30629         * modules/stdint (License): Likewise.
30630         * modules/stdio (License): Likewise.
30631         * modules/strcase (License): Likewise.
30632         * modules/strcasestr (License): Likewise.
30633         * modules/strdup (License): Likewise.
30634         * modules/string (License): Likewise.
30635         * modules/strndup (License): Likewise.
30636         * modules/strnlen (License): Likewise.
30637         * modules/strpbrk (License): Likewise.
30638         * modules/strptime (License): Likewise.
30639         * modules/strsep (License): Likewise.
30640         * modules/sys_select (License): Likewise.
30641         * modules/sys_socket (License): Likewise.
30642         * modules/sys_stat (License): Likewise.
30643         * modules/sys_time (License): Likewise.
30644         * modules/time (License): Likewise.
30645         * modules/time_r (License): Likewise.
30646         * modules/timegm (License): Likewise.
30647         * modules/unistd (License): Likewise.
30648         * modules/vsnprintf (License): Likewise.
30649         * modules/wctype (License): Likewise.
30650
30651 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30652
30653         * modules/argz (License): LGPLv2+.
30654
30655 2007-07-15  Karl Berry  <karl@gnu.org>
30656
30657         * doc/gnulib.texi: revise node structure per new fdl.texi.
30658
30659 2007-07-14  Bruno Haible  <bruno@clisp.org>
30660
30661         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
30662         the output file.
30663         * lib/uniname/uninames.h: Regenerated.
30664
30665 2007-07-14  Karl Berry  <karl@gnu.org>
30666
30667         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
30668         omitting sectioning and index commands.
30669
30670 2007-07-13  Bruno Haible  <bruno@clisp.org>
30671
30672         New gnulib-tool option --more-symlinks.
30673         * gnulib-tool (func_usage): Document --more-symlinks.
30674         (do_copyrights): New variable.
30675         Recognize option --more-symlinks.
30676         (func_import): Don't add a copyright notice transform to
30677         sed_transform_lib_file if do_copyrights is empty.
30678
30679 2007-07-13  Bruno Haible  <bruno@clisp.org>
30680
30681         * lib/vasnprintf.c (decimal_point_char): Define also if
30682         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
30683         && !NEED_PRINTF_DIRECTIVE_A.
30684         Reported by Clemens Koller <clemens.koller@anagramm.de> via
30685         Gary V. Vaughan <gary@gnu.org>.
30686
30687 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
30688
30689         * lib/inttypes_.h: Undo previous change, since it was fixed
30690         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
30691
30692 2007-07-13  Bruno Haible  <bruno@clisp.org>
30693
30694         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
30695         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
30696
30697 2007-07-13  Jim Meyering  <jim@meyering.net>
30698
30699         df: Don't fail for Tru64's "file-on-file mount".
30700         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
30701         so we fall through and use statfs instead.  Details here:
30702         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
30703         Reported by Albert Chin.
30704
30705 2007-07-13  Bruno Haible  <bruno@clisp.org>
30706
30707         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
30708         * modules/configmake (License): Likewise.
30709         * modules/gettext (License): Likewise.
30710         * modules/gettext-h (License): Likewise.
30711         * modules/include_next (License): Likewise.
30712         * modules/link-warning (License): Likewise.
30713         * modules/localcharset (License): Likewise.
30714         * modules/localename (License): Likewise.
30715         * modules/lock (License): Likewise.
30716         * modules/relocatable-lib-lgpl (License): Likewise.
30717         * modules/size_max (License): Likewise.
30718         * modules/vasnprintf (License): Likewise.
30719         * modules/wchar (License): Likewise.
30720         * modules/xsize (License): Likewise.
30721
30722 2007-07-13  Bruno Haible  <bruno@clisp.org>
30723
30724         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
30725         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
30726
30727 2007-07-12  Bruno Haible  <bruno@clisp.org>
30728
30729         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
30730         in the modules files.
30731
30732 2007-07-11  Karl Berry  <karl@gnu.org>
30733
30734         * MODULES.html.sh (func_module): use
30735          sed -e '\|^'"${includefile}"'$|d'
30736          instead of /.../d, to avoid errors on $includefile's containing /.
30737
30738 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
30739
30740         * gnulib-tool (func_import): Avoid duplication of --avoid
30741         statements
30742         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
30743         names to `_' in variable names.
30744
30745 2007-07-10  Eric Blake  <ebb9@byu.net>
30746
30747         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
30748         * NEWS: Document this change.
30749
30750 2007-07-08  Bruno Haible  <bruno@clisp.org>
30751
30752         Update to Unicode 5.0.
30753         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
30754         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
30755         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
30756         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
30757         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
30758         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
30759         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
30760         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
30761         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
30762         U+10A3F, U+1D242..U+1D244.
30763         (nonspacing_table_ind): Update.
30764         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
30765         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
30766
30767 2007-07-08  Bruno Haible  <bruno@clisp.org>
30768
30769         Update to Unicode 5.0.
30770         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
30771         code transform. Extend the name index field of unicode_name_to_code and
30772         unicode_code_to_name from 16 to 24 bits.
30773         * lib/uniname/uniname.c (unicode_character_name,
30774         unicode_name_character): Add the range 0x12xxx to the code transform.
30775         * lib/uniname/uninames.h: Regenerated.
30776         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
30777
30778 2007-07-07  Bruno Haible  <bruno@clisp.org>
30779
30780         * modules/wcwidth-tests: New file.
30781         * tests/test-wcwidth.c: New file.
30782
30783         Work around MacOS X wcwidth() bug.
30784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
30785         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
30786         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
30787         original wcwidth in non-UTF-8 locales.
30788         * modules/wcwidth (Depends-on): Add localcharset, streq,
30789         uniwidth/width.
30790         * doc/functions/wcwidth.texi: Update.
30791
30792 2007-07-07  Bruno Haible  <bruno@clisp.org>
30793
30794         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
30795         (wcwidth): New declaration.
30796         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
30797         macros.
30798         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
30799         here. Prepare for creating <wchar.h> unconditionally.
30800         * modules/wchar (Depends-on): Add link-warning.
30801         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
30802         REPLACE_WCWIDTH, and GL_LINK_WARNING.
30803         * lib/wcwidth.h: Remove file.
30804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
30805         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
30806         * modules/wcwidth (Files): Remove lib/wcwidth.h.
30807         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
30808         (Include): Replace wcwidth.h with <wchar.h>.
30809         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
30810         * lib/mbchar.h: Don't include wcwidth.h.
30811         * lib/mbswidth.c: Likewise.
30812         * NEWS: Mention the change.
30813
30814 2007-07-07  Bruno Haible  <bruno@clisp.org>
30815
30816         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
30817         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
30818         definition with an external declaration.
30819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
30820         defined as a function. Remove AC_C_INLINE requirement.
30821         * modules/wcwidth (Files): Add lib/wcwidth.c.
30822         (Makefile.am): Remove redundant statement.
30823
30824 2007-07-07  Bruno Haible  <bruno@clisp.org>
30825
30826         * MODULES.html.sh (Unicode string functions): Add the new modules.
30827
30828         * tests/uniwidth/test-u32-strwidth.c: New file.
30829         * modules/uniwidth/u32-strwidth-tests: New file.
30830
30831         * lib/uniwidth/u32-strwidth.c: New file.
30832         * modules/uniwidth/u32-strwidth: New file.
30833
30834         * tests/uniwidth/test-u16-strwidth.c: New file.
30835         * modules/uniwidth/u16-strwidth-tests: New file.
30836
30837         * lib/uniwidth/u16-strwidth.c: New file.
30838         * modules/uniwidth/u16-strwidth: New file.
30839
30840         * tests/uniwidth/test-u8-strwidth.c: New file.
30841         * modules/uniwidth/u8-strwidth-tests: New file.
30842
30843         * lib/uniwidth/u8-strwidth.c: New file.
30844         * modules/uniwidth/u8-strwidth: New file.
30845
30846         * tests/uniwidth/test-u32-width.c: New file.
30847         * modules/uniwidth/u32-width-tests: New file.
30848
30849         * lib/uniwidth/u32-width.c: New file.
30850         * modules/uniwidth/u32-width: New file.
30851
30852         * tests/uniwidth/test-u16-width.c: New file.
30853         * modules/uniwidth/u16-width-tests: New file.
30854
30855         * lib/uniwidth/u16-width.c: New file.
30856         * modules/uniwidth/u16-width: New file.
30857
30858         * tests/uniwidth/test-u8-width.c: New file.
30859         * modules/uniwidth/u8-width-tests: New file.
30860
30861         * lib/uniwidth/u8-width.c: New file.
30862         * modules/uniwidth/u8-width: New file.
30863
30864         * tests/uniwidth/test-uc_width.c: New file.
30865         * modules/uniwidth/width-tests: New file.
30866
30867         * lib/uniwidth/width.c: New file, from GNU libiconv.
30868         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
30869         * modules/uniwidth/width: New file.
30870
30871         * lib/uniwidth.h: New file, from GNU libiconv.
30872         * modules/uniwidth/base: New file.
30873
30874 2007-07-07  Bruno Haible  <bruno@clisp.org>
30875
30876         * lib/uniname.h: New file, from GNU gettext.
30877         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
30878         * lib/uniname/uninames.h: New file, from GNU gettext.
30879         * lib/uniname/uniname.c: New file, from GNU gettext.
30880         * tests/uniname/test-uninames.sh: New file.
30881         * tests/uniname/test-uninames.c: New file, from GNU gettext.
30882         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
30883         * modules/uniname/base: New file.
30884         * modules/uniname/uniname: New file.
30885         * modules/uniname/uniname-tests: New file.
30886         * MODULES.html.sh (Unicode string functions): Add the new modules.
30887
30888 2007-07-06  Bruno Haible  <bruno@clisp.org>
30889
30890         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
30891
30892 2007-07-06  Bruno Haible  <bruno@clisp.org>
30893
30894         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
30895         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
30896         includes <cygwin/sys_time.h> which includes <sys/select.h> which
30897         include <sys/time.h>.
30898         Reported by Eric Blake.
30899
30900 2007-07-06  Eric Blake  <ebb9@byu.net>
30901
30902         Fix testing canonicalize on cygwin.
30903         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
30904         Revert patch from 2007-06-19.
30905         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
30906         canonicalize module is also in use.
30907         * tests/test-canonicalize.c: New file.
30908         * tests/test-canonicalize.sh: Likewise.
30909         * modules/canonicalize-tests: Likewise.
30910
30911 2007-07-06  Jim Meyering  <jim@meyering.net>
30912
30913         * lib/getugroups.c (getugroups): Detect getgrent failure.
30914         Adjust comment to reflect reality: this function may return -1.
30915
30916 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
30917
30918         * build-aux/bootstrap (TP_URL,get_translations): Update to use
30919         the new TP address.
30920         (usage): Fix typo
30921         (gnulib_mk): New variable.
30922
30923 2007-07-05  Jim Meyering  <jim@meyering.net>
30924
30925         Don't let endgrent clobber errno, no matter how improbable.
30926         * lib/getugroups.c (getugroups): Save and restore errno around
30927         endgrent call.
30928
30929         Close the group DB even when failing with 2^31 or more members.
30930         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
30931
30932 2007-07-04  Jim Meyering  <jim@meyering.net>
30933
30934         * lib/getugroups.h: New file.
30935         * lib/getugroups.c: Include "getugroups.h".
30936         Remove uses of "register" keyword.
30937         Move local variable, "cp", down into scope where used.
30938         Give "username" parameter the "const" attribute.
30939         * modules/getugroups (Files): Add lib/getugroups.h
30940
30941 2007-07-04  Karl Berry  <karl@gnu.org>
30942
30943         * MODULES.html.sh (func_all_modules): Complete rename of
30944         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
30945
30946 2007-07-02  Bruno Haible  <bruno@clisp.org>
30947
30948         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
30949         mode, when inttypes.h comes from gnulib.
30950         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30951
30952 2007-07-02  Simon Josefsson  <simon@josefsson.org>
30953
30954         * NEWS: Mention lgpl module name change.
30955
30956         * modules/lgpl-2.1: Renamed from lgpl.
30957
30958         * NEWS: Mention gpl module name change.
30959
30960         * modules/gpl-3.0: New file, based on gpl-2.0.
30961
30962         * modules/gpl-2.0: Renamed from gpl.
30963
30964         * modules/gpl: Fix filename, doc/gpl.texi is now found at
30965         doc/gpl-2.0.texi.
30966
30967 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
30968
30969         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
30970         #define __STDC_LIMIT_MACROS temporarily while including
30971         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
30972         Problem reported by Joel E. Denny in
30973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
30974
30975 2007-07-01  Bruno Haible  <bruno@clisp.org>
30976
30977         * lib/unistdio.h: New file.
30978         * lib/unistdio/u-asnprintf.h: New file.
30979         * lib/unistdio/u-asprintf.h: New file.
30980         * lib/unistdio/u-printf-args.c: New file.
30981         * lib/unistdio/u-printf-args.h: New file.
30982         * lib/unistdio/u-printf-parse.h: New file.
30983         * lib/unistdio/u-snprintf.h: New file.
30984         * lib/unistdio/u-sprintf.h: New file.
30985         * lib/unistdio/u-vasprintf.h: New file.
30986         * lib/unistdio/u-vsnprintf.h: New file.
30987         * lib/unistdio/u-vsprintf.h: New file.
30988         * lib/unistdio/ulc-asnprintf.c: New file.
30989         * lib/unistdio/ulc-asprintf.c: New file.
30990         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
30991         * lib/unistdio/ulc-printf-parse.c: New file.
30992         * lib/unistdio/ulc-snprintf.c: New file.
30993         * lib/unistdio/ulc-sprintf.c: New file.
30994         * lib/unistdio/ulc-vasnprintf.c: New file.
30995         * lib/unistdio/ulc-vasprintf.c: New file.
30996         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
30997         * lib/unistdio/ulc-vsnprintf.c: New file.
30998         * lib/unistdio/ulc-vsprintf.c: New file.
30999         * lib/unistdio/u8-asnprintf.c: New file.
31000         * lib/unistdio/u8-asprintf.c: New file.
31001         * lib/unistdio/u8-printf-parse.c: New file.
31002         * lib/unistdio/u8-snprintf.c: New file.
31003         * lib/unistdio/u8-sprintf.c: New file.
31004         * lib/unistdio/u8-vasnprintf.c: New file.
31005         * lib/unistdio/u8-vasprintf.c: New file.
31006         * lib/unistdio/u8-vsnprintf.c: New file.
31007         * lib/unistdio/u8-vsprintf.c: New file.
31008         * lib/unistdio/u8-u8-asnprintf.c: New file.
31009         * lib/unistdio/u8-u8-asprintf.c: New file.
31010         * lib/unistdio/u8-u8-snprintf.c: New file.
31011         * lib/unistdio/u8-u8-sprintf.c: New file.
31012         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31013         * lib/unistdio/u8-u8-vasprintf.c: New file.
31014         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31015         * lib/unistdio/u8-u8-vsprintf.c: New file.
31016         * lib/unistdio/u16-asnprintf.c: New file.
31017         * lib/unistdio/u16-asprintf.c: New file.
31018         * lib/unistdio/u16-printf-parse.c: New file.
31019         * lib/unistdio/u16-snprintf.c: New file.
31020         * lib/unistdio/u16-sprintf.c: New file.
31021         * lib/unistdio/u16-vasnprintf.c: New file.
31022         * lib/unistdio/u16-vasprintf.c: New file.
31023         * lib/unistdio/u16-vsnprintf.c: New file.
31024         * lib/unistdio/u16-vsprintf.c: New file.
31025         * lib/unistdio/u16-u16-asnprintf.c: New file.
31026         * lib/unistdio/u16-u16-asprintf.c: New file.
31027         * lib/unistdio/u16-u16-snprintf.c: New file.
31028         * lib/unistdio/u16-u16-sprintf.c: New file.
31029         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31030         * lib/unistdio/u16-u16-vasprintf.c: New file.
31031         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31032         * lib/unistdio/u16-u16-vsprintf.c: New file.
31033         * lib/unistdio/u32-asnprintf.c: New file.
31034         * lib/unistdio/u32-asprintf.c: New file.
31035         * lib/unistdio/u32-printf-parse.c: New file.
31036         * lib/unistdio/u32-snprintf.c: New file.
31037         * lib/unistdio/u32-sprintf.c: New file.
31038         * lib/unistdio/u32-vasnprintf.c: New file.
31039         * lib/unistdio/u32-vasprintf.c: New file.
31040         * lib/unistdio/u32-vsnprintf.c: New file.
31041         * lib/unistdio/u32-vsprintf.c: New file.
31042         * lib/unistdio/u32-u32-asnprintf.c: New file.
31043         * lib/unistdio/u32-u32-asprintf.c: New file.
31044         * lib/unistdio/u32-u32-snprintf.c: New file.
31045         * lib/unistdio/u32-u32-sprintf.c: New file.
31046         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31047         * lib/unistdio/u32-u32-vasprintf.c: New file.
31048         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31049         * lib/unistdio/u32-u32-vsprintf.c: New file.
31050         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31051         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31052         * tests/unistdio/test-ulc-printf1.h: New file.
31053         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31054         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31055         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31056         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31057         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31058         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31059         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31060         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31061         * tests/unistdio/test-u8-asnprintf1.c: New file.
31062         * tests/unistdio/test-u8-asnprintf1.h: New file.
31063         * tests/unistdio/test-u8-printf1.h: New file.
31064         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31065         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31066         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31067         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31068         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31069         * tests/unistdio/test-u8-vasprintf1.c: New file.
31070         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31071         * tests/unistdio/test-u8-vsprintf1.c: New file.
31072         * tests/unistdio/test-u16-asnprintf1.c: New file.
31073         * tests/unistdio/test-u16-asnprintf1.h: New file.
31074         * tests/unistdio/test-u16-printf1.h: New file.
31075         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31076         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31077         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31078         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31079         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31080         * tests/unistdio/test-u16-vasprintf1.c: New file.
31081         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31082         * tests/unistdio/test-u16-vsprintf1.c: New file.
31083         * tests/unistdio/test-u32-asnprintf1.c: New file.
31084         * tests/unistdio/test-u32-asnprintf1.h: New file.
31085         * tests/unistdio/test-u32-printf1.h: New file.
31086         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31087         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31088         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31089         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31090         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31091         * tests/unistdio/test-u32-vasprintf1.c: New file.
31092         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31093         * tests/unistdio/test-u32-vsprintf1.c: New file.
31094         * modules/unistdio/base: New file.
31095         * modules/unistdio/u-printf-args: New file.
31096         * modules/unistdio/ulc-asnprintf: New file.
31097         * modules/unistdio/ulc-asprintf: New file.
31098         * modules/unistdio/ulc-fprintf: New file.
31099         * modules/unistdio/ulc-printf-parse: New file.
31100         * modules/unistdio/ulc-snprintf: New file.
31101         * modules/unistdio/ulc-sprintf: New file.
31102         * modules/unistdio/ulc-vasnprintf: New file.
31103         * modules/unistdio/ulc-vasprintf: New file.
31104         * modules/unistdio/ulc-vfprintf: New file.
31105         * modules/unistdio/ulc-vsnprintf: New file.
31106         * modules/unistdio/ulc-vsprintf: New file.
31107         * modules/unistdio/u8-asnprintf: New file.
31108         * modules/unistdio/u8-asprintf: New file.
31109         * modules/unistdio/u8-printf-parse: New file.
31110         * modules/unistdio/u8-snprintf: New file.
31111         * modules/unistdio/u8-sprintf: New file.
31112         * modules/unistdio/u8-vasnprintf: New file.
31113         * modules/unistdio/u8-vasprintf: New file.
31114         * modules/unistdio/u8-vsnprintf: New file.
31115         * modules/unistdio/u8-vsprintf: New file.
31116         * modules/unistdio/u8-u8-asnprintf: New file.
31117         * modules/unistdio/u8-u8-asprintf: New file.
31118         * modules/unistdio/u8-u8-snprintf: New file.
31119         * modules/unistdio/u8-u8-sprintf: New file.
31120         * modules/unistdio/u8-u8-vasnprintf: New file.
31121         * modules/unistdio/u8-u8-vasprintf: New file.
31122         * modules/unistdio/u8-u8-vsnprintf: New file.
31123         * modules/unistdio/u8-u8-vsprintf: New file.
31124         * modules/unistdio/u16-asnprintf: New file.
31125         * modules/unistdio/u16-asprintf: New file.
31126         * modules/unistdio/u16-printf-parse: New file.
31127         * modules/unistdio/u16-snprintf: New file.
31128         * modules/unistdio/u16-sprintf: New file.
31129         * modules/unistdio/u16-vasnprintf: New file.
31130         * modules/unistdio/u16-vasprintf: New file.
31131         * modules/unistdio/u16-vsnprintf: New file.
31132         * modules/unistdio/u16-vsprintf: New file.
31133         * modules/unistdio/u16-u16-asnprintf: New file.
31134         * modules/unistdio/u16-u16-asprintf: New file.
31135         * modules/unistdio/u16-u16-snprintf: New file.
31136         * modules/unistdio/u16-u16-sprintf: New file.
31137         * modules/unistdio/u16-u16-vasnprintf: New file.
31138         * modules/unistdio/u16-u16-vasprintf: New file.
31139         * modules/unistdio/u16-u16-vsnprintf: New file.
31140         * modules/unistdio/u16-u16-vsprintf: New file.
31141         * modules/unistdio/u32-asnprintf: New file.
31142         * modules/unistdio/u32-asprintf: New file.
31143         * modules/unistdio/u32-printf-parse: New file.
31144         * modules/unistdio/u32-snprintf: New file.
31145         * modules/unistdio/u32-sprintf: New file.
31146         * modules/unistdio/u32-vasnprintf: New file.
31147         * modules/unistdio/u32-vasprintf: New file.
31148         * modules/unistdio/u32-vsnprintf: New file.
31149         * modules/unistdio/u32-vsprintf: New file.
31150         * modules/unistdio/u32-u32-asnprintf: New file.
31151         * modules/unistdio/u32-u32-asprintf: New file.
31152         * modules/unistdio/u32-u32-snprintf: New file.
31153         * modules/unistdio/u32-u32-sprintf: New file.
31154         * modules/unistdio/u32-u32-vasnprintf: New file.
31155         * modules/unistdio/u32-u32-vasprintf: New file.
31156         * modules/unistdio/u32-u32-vsnprintf: New file.
31157         * modules/unistdio/u32-u32-vsprintf: New file.
31158         * modules/unistdio/ulc-asnprintf-tests: New file.
31159         * modules/unistdio/ulc-vasnprintf-tests: New file.
31160         * modules/unistdio/ulc-vasprintf-tests: New file.
31161         * modules/unistdio/ulc-vsnprintf-tests: New file.
31162         * modules/unistdio/ulc-vsprintf-tests: New file.
31163         * modules/unistdio/u8-asnprintf-tests: New file.
31164         * modules/unistdio/u8-vasnprintf-tests: New file.
31165         * modules/unistdio/u8-vasprintf-tests: New file.
31166         * modules/unistdio/u8-vsnprintf-tests: New file.
31167         * modules/unistdio/u8-vsprintf-tests: New file.
31168         * modules/unistdio/u16-asnprintf-tests: New file.
31169         * modules/unistdio/u16-vasnprintf-tests: New file.
31170         * modules/unistdio/u16-vasprintf-tests: New file.
31171         * modules/unistdio/u16-vsnprintf-tests: New file.
31172         * modules/unistdio/u16-vsprintf-tests: New file.
31173         * modules/unistdio/u32-asnprintf-tests: New file.
31174         * modules/unistdio/u32-vasnprintf-tests: New file.
31175         * modules/unistdio/u32-vasprintf-tests: New file.
31176         * modules/unistdio/u32-vsnprintf-tests: New file.
31177         * modules/unistdio/u32-vsprintf-tests: New file.
31178         * MODULES.html.sh (Unicode string functions): Add the new modules.
31179
31180 2007-07-01  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/sprintf.c (sprintf): Limit the available length estimation,
31183         to avoid address wraparound.
31184         * lib/vsprintf.c (vsprintf): Likewise.
31185         * modules/sprintf-posix (Dependencies): Add stdint.
31186         * modules/vsprintf-posix (Dependencies): Likewise.
31187
31188 2007-07-01  Bruno Haible  <bruno@clisp.org>
31189
31190         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31191         Windows PATH as well. Conservative double-quoting. Comments.
31192
31193 2007-07-01  Bruno Haible  <bruno@clisp.org>
31194             Eric Blake  <ebb9@byu.net>
31195             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31196
31197         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31198         empty components in $PATH, denoting '.'.
31199
31200 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31201
31202         * gnulib-tool: Fix indentation.
31203         (func_create_megatestdir): Likewise.
31204         Report by Bruno Haible.
31205
31206 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31207
31208         Sync from Automake.
31209         * build-aux/gnupload: Fix shell portability issues with for loops.
31210         Report by Karl Berry.
31211
31212 2007-06-29  Simon Josefsson  <simon@josefsson.org>
31213
31214         * build-aux/maint.mk (POURL): Use translationproject.org.
31215
31216 2007-06-27  Simon Josefsson  <simon@josefsson.org>
31217             Bruno Haible  <bruno@clisp.org>
31218
31219         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31220         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31221         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31222         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31223         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31224
31225 2007-06-27  Bruno Haible  <bruno@clisp.org>
31226
31227         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31228         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31229
31230 2007-06-26  Karl Berry  <karl@gnu.org>
31231
31232         * MODULES.html.sh: remove xreadlink-with-size.
31233
31234 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31237         method that I hope also handles the double-include problem noted
31238         by Bruno Haible in
31239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31240
31241 2007-06-23  Bruno Haible  <bruno@clisp.org>
31242
31243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31244         Don't let the 'mostlyclean' target fail if the last subdirectory could
31245         not be removed.
31246         Reported by Karl Berry.
31247
31248 2007-06-23  Bruno Haible  <bruno@clisp.org>
31249
31250         * gnulib-tool (echo): Add a speedier workaround for ksh.
31251         * tests/test-echo.sh: Likewise.
31252
31253 2007-06-23  Bruno Haible  <bruno@clisp.org>
31254
31255         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31256         * tests/test-echo.sh: Likewise.
31257
31258 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31259
31260         * gnulib-tool (IFS): Initialize early, so we don't set it to
31261         empty later.
31262         (self_abspathname): Rewrite algorithm to set it, reindent.
31263         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31264         (func_create_megatestdir): Merge some sed scripts.
31265
31266 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31267
31268         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31269         exposed by Sun Studio 11 cc on Solaris 8.
31270
31271 2007-06-22  Bruno Haible  <bruno@clisp.org>
31272
31273         * gnulib-tool (echo): Ensure the echo primitive does not interpret
31274         backslashes.
31275         * tests/test-echo.sh: New file.
31276
31277 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31278
31279         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31280         simplify `sed_replace_build_aux' scripts, they are portable but
31281         echoing them with `echo' is not.
31282         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31283
31284 2007-06-21  Karl Berry  <karl@gnu.org>
31285
31286         * config/srclist.txt: guess we can't handle the licenses via
31287         srclist at the moment.
31288
31289 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31290
31291         * MODULES.html.sh: Add include_next.
31292         * modules/include_next: New file.
31293
31294 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
31295
31296         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31297         INCLUDE_NEXT.
31298         (gl_CHECK_NEXT_HEADERS): New macro.
31299         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31300         the obsolescent gl_ABSOLUTE_HEADER.
31301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31302         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31303         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31304         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31305         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31306         * m4/math_h.m4 (gl_MATH_H): Likewise.
31307         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31308         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31309         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31310         * m4/stdint.m4 (gl_STDINT_H): Likewise.
31311         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31312         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31313         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31318         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31319         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31320         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31321         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31322         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31323         * m4/inttypes.m4 (gl_INTTYPES_H): Define
31324         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31325         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31326         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31327         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31328         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31329         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31330         * lib/float_.h: Likewise.
31331         * lib/inttypes_.h: Likewise.
31332         * lib/math_.h: Likewise.
31333         * lib/search_.h: Likewise.
31334         * lib/signal_.h: Likewise.
31335         * lib/stdint_.h: Likewise.
31336         * lib/stdio_.h: Likewise.
31337         * lib/stdlib_.h: Likewise.
31338         * lib/string_.h: Likewise.
31339         * lib/sys_stat_.h: Likewise.
31340         * lib/sys_time_.h: Likewise.
31341         * lib/time_.h: Likewise.
31342         * lib/unistd_.h: Likewise.
31343         * lib/wchar_.h: Likewise.
31344         * lib/wctype_.h: Likewise.
31345         * lib/dirent_.h: Likewise.
31346         * lib/iconv_.h: Likewise.
31347         * lib/locale_.h: Likewise.
31348         * lib/netinet_in_.h: Likewise.
31349         * lib/sys_select_.h: Likewise.
31350         * lib/sys_socket_.h: Likewise.
31351         * lib/sysexits_.h: Likewise.
31352         * modules/fcntl (Depends-on): Depend on include_next, not
31353         absolute_header.
31354         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31355         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31356         * modules/fchdir: Likewise.
31357         * modules/float: Likewise.
31358         * modules/iconv_open: Likewise.
31359         * modules/inttypes: Likewise.
31360         * modules/locale: Likewise.
31361         * modules/math: Likewise.
31362         * modules/netinet_in: Likewise.
31363         * modules/search: Likewise.
31364         * modules/signal: Likewise.
31365         * modules/stdint: Likewise.
31366         * modules/stdio: Likewise.
31367         * modules/stdlib: Likewise.
31368         * modules/string: Likewise.
31369         * modules/sys_select: Likewise.
31370         * modules/sys_socket: Likewise.
31371         * modules/sys_stat: Likewise.
31372         * modules/sys_time: Likewise.
31373         * modules/sysexits: Likewise.
31374         * modules/time: Likewise.
31375         * modules/unistd: Likewise.
31376         * modules/wchar: Likewise.
31377         * modules/wctype: Likewise.
31378         * modules/sys_stat: Change maintainer to "all".
31379         * modules/unistd: Likewise.
31380
31381 2007-06-20  Karl Berry  <karl@gnu.org>
31382
31383         * config/srclist.txt: track www changes in license files.
31384
31385 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
31386
31387         * build-aux/bootstrap: Remove stray dot.
31388         Make sure build_aux settings are honored when linking
31389         gnulib_extra_files.
31390
31391 2007-06-19  Eric Blake  <ebb9@byu.net>
31392
31393         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31394         Allow compilation on cygwin.
31395
31396 2007-06-19  Jim Meyering  <jim@meyering.net>
31397
31398         xreadlink-with-size: Remove module.  No longer used.
31399         Ex-callers now use xreadlink or mreadlink-with-size.
31400         * modules/xreadlink-with-size: Remove module.
31401         * lib/xreadlink-with-size.c: Remove file.
31402         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31403         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
31404         just before the function definition *is* accurate.
31405
31406         Eliminate one way canonicalize_filename_mode could exit.
31407         * lib/canonicalize.c (canonicalize_filename_mode):
31408         Use mreadlink_with_size, not xreadlink_with_size.
31409
31410 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31411
31412         Detect porting problems to FreeBSD/arm, which has time_t wider than
31413         long int.  Original problem reported for GNU diff by Xin Li in
31414         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31415         * modules/getdate (Depends-on): Add intprops, verify.
31416         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
31417         is an integer type no wider than long int.
31418
31419 2007-06-18  Jim Meyering  <jim@meyering.net>
31420
31421         New module: mreadlink-with-size.
31422         * MODULES.html.sh: Add mreadlink-with-size.
31423         * modules/mreadlink-with-size: New module
31424         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31425         not xreadlink-with-size.
31426         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31427
31428 2007-06-16  Bruno Haible  <bruno@clisp.org>
31429
31430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31431         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31432         Reported by Gary V. Vaughan <gary@gnu.org>.
31433
31434 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31435
31436         Revamp lchown so that it lives in unistd.h where it belongs.
31437         * lib/lchown.h: Remove.
31438         * lib/dirchownmod.c: Don't include lib/lchown.h.
31439         * lib/fchownat.c: Likewise.
31440         * lib/openat.c: Likewise.
31441         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31442         does not follow symlinks.
31443         (EOPNOTSUPP): Define if not defined.
31444         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31445         is defined to 0.
31446         (lchown): New decl.
31447         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31448         Do not check for lchown decl.
31449         Set REPLACE_LCHOWN.
31450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31451         REPLACE_LCHOWN.
31452         * modules/chown: Make it clear it follows symlinks.
31453         * modules/lchown: Make it clear it doesn't follow symlinks.
31454         (Files): Remove lib/lchown.h
31455         (Depends-on): Add unistd.
31456         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31457         (Include): Include <unistd.h>, not "lchown.h".
31458         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31459         REPLACE_LCHOWN.
31460
31461 2007-06-15  Jim Meyering  <jim@meyering.net>
31462
31463         Change license (GPL to LGPL) of fsusage and dependents.
31464         * modules/fsusage (License): Change to LGPL.
31465         * modules/full-read (License): Likewise.
31466         * modules/full-write (License): Likewise.
31467         * modules/safe-read (License): Likewise.
31468         * modules/safe-write (License): Likewise.
31469
31470 2007-06-14  Ben Pfaff  <blp@gnu.org>
31471
31472         Missing part of allocsa -> malloca transition.
31473         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31474         gl_MALLOCA.
31475
31476 2007-06-12  Bruno Haible  <bruno@clisp.org>
31477
31478         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31479         to ia64, x86_64, i386.
31480         Reported by Eric Blake.
31481
31482 2007-06-12  Bruno Haible  <bruno@clisp.org>
31483
31484         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31485         cross-compiling to x86_64.
31486
31487 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
31488
31489         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31490         glitch reported by Ralf Wildenhues in
31491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31492
31493         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31494         Vin Shelton.
31495
31496 2007-06-11  Bruno Haible  <bruno@clisp.org>
31497
31498         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31499         replacement string.
31500         Reported by Eric Blake.
31501
31502 2007-06-10  Bruno Haible  <bruno@clisp.org>
31503
31504         Prepare vasnprintf code for use with Unicode strings.
31505         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31506         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31507         TYPE_U32_STRING.
31508         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31509         a_u32_string variants.
31510         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31511         * lib/printf-args.c: Don't include config.h and the specification
31512         header if PRINTF_FETCHARGS is already defined.
31513         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31514         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31515         TYPE_U16_STRING, TYPE_U32_STRING.
31516         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31517         u16_directive, u16_directives, u32_directive, u32_directives): New
31518         types.
31519         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
31520         New declarations.
31521         * lib/printf-parse.c: Don't include config.h and the specification
31522         header if PRINTF_PARSE is already defined. Eliminate the set of
31523         parameters for WIDE_CHAR_VERSION; the user of this file must provide
31524         them now. Include c-ctype.h.
31525         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
31526         directive and CHAR_T_ONLY_ASCII.
31527         * lib/vasnprintf.c: Don't include config.h and the specification header
31528         if VASNPRINTF is already defined.
31529         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
31530         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
31531         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
31532         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
31533         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
31534         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
31535         code accordingly.
31536         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
31537         pad_ourselves also in this case, with the 'c' and 's' directives, and
31538         with a different notion of "width".
31539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
31540
31541 2007-06-10  Bruno Haible  <bruno@clisp.org>
31542
31543         * modules/unistr/u32-mbsnlen: New file.
31544         * lib/unistr/u32-mbsnlen.c: New file.
31545
31546         * modules/unistr/u16-mbsnlen: New file.
31547         * lib/unistr/u16-mbsnlen.c: New file.
31548
31549         * modules/unistr/u8-mbsnlen: New file.
31550         * lib/unistr/u8-mbsnlen.c: New file.
31551
31552         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
31553         declarations.
31554
31555 2007-06-10  Bruno Haible  <bruno@clisp.org>
31556
31557         * lib/string_.h (mbsnlen): New declaration.
31558         * lib/mbsnlen.c: New file.
31559         * m4/mbsnlen.m4: New file.
31560         * modules/mbsnlen: New file.
31561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
31562         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
31563         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
31564
31565 2007-06-10  Bruno Haible  <bruno@clisp.org>
31566
31567         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
31568
31569 2007-06-10  Bruno Haible  <bruno@clisp.org>
31570
31571         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
31572         * lib/mbuiter.h: Likewise.
31573
31574 2007-06-10  Bruno Haible  <bruno@clisp.org>
31575
31576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
31577         declaration.
31578
31579 2007-06-10  Karl Berry  <karl@gnu.org>
31580
31581         * config/srclist.txt: remove gettext entries, Bruno prefers
31582         to update individually.
31583
31584 2007-06-10  Bruno Haible  <bruno@clisp.org>
31585
31586         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
31587         'maxlen'. Ensure only length + width bytes are allocated, not
31588         length + 1 + width.
31589
31590 2007-06-09  Bruno Haible  <bruno@clisp.org>
31591
31592         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
31593         (CHAR_T): Remove macro.
31594         (VASNPRINTF): Update.
31595
31596 2007-06-09  Bruno Haible  <bruno@clisp.org>
31597
31598         * MODULES.html.sh (Unicode string functions): Add the new modules.
31599
31600         * modules/uniconv/u32-conv-to-enc: New file.
31601         * lib/uniconv/u32-conv-to-enc.c: New file.
31602         * modules/uniconv/u32-conv-to-enc-tests: New file.
31603         * tests/uniconv/test-u32-conv-to-enc.c: New file.
31604
31605         * modules/uniconv/u16-conv-to-enc: New file.
31606         * lib/uniconv/u16-conv-to-enc.c: New file.
31607         * lib/uniconv/u-conv-to-enc.h: New file.
31608         * modules/uniconv/u16-conv-to-enc-tests: New file.
31609         * tests/uniconv/test-u16-conv-to-enc.c: New file.
31610
31611         * modules/uniconv/u8-conv-to-enc: New file.
31612         * lib/uniconv/u8-conv-to-enc.c: New file.
31613         * modules/uniconv/u8-conv-to-enc-tests: New file.
31614         * tests/uniconv/test-u8-conv-to-enc.c: New file.
31615
31616         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31617         u32_conv_to_encoding): New declarations.
31618
31619 2007-06-09  Bruno Haible  <bruno@clisp.org>
31620
31621         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
31622
31623 2007-06-09  Bruno Haible  <bruno@clisp.org>
31624
31625         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
31626         * modules/malloca: Renamed from modules/allocsa, updated.
31627         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
31628         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
31629         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
31630         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
31631         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
31632         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
31633         * modules/xmalloca: Renamed from modules/xallocsa, updated.
31634         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
31635         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
31636         * modules/c-strcasestr (Depends-on): Update.
31637         * lib/c-strcasestr.c: Update.
31638         * modules/c-strstr (Depends-on): Update.
31639         * lib/c-strstr.c: Update.
31640         * modules/canonicalize-lgpl (Depends-on): Update.
31641         * lib/canonicalize-lgpl.c: Update.
31642         * modules/clean-temp (Depends-on): Update.
31643         * lib/clean-temp.c: Update.
31644         * modules/csharpcomp (Depends-on): Update.
31645         * lib/csharpcomp.c: Update.
31646         * modules/csharpexec (Depends-on): Update.
31647         * lib/csharpexec.c: Update.
31648         * modules/javacomp (Depends-on): Update.
31649         * lib/javacomp.c: Update.
31650         * modules/javaexec (Depends-on): Update.
31651         * lib/javaexec.c: Update.
31652         * modules/mbscasestr (Depends-on): Update.
31653         * lib/mbscasestr.c: Update.
31654         * modules/mbsstr (Depends-on): Update.
31655         * lib/mbsstr.c: Update.
31656         * modules/setenv (Depends-on): Update.
31657         * lib/setenv.c: Update.
31658         * modules/strcasestr (Depends-on): Update.
31659         * lib/strcasestr.c: Update.
31660         * modules/striconveha (Depends-on): Update.
31661         * lib/striconveha.c: Update.
31662         * modules/relocatable-prog-wrapper (Files): Update.
31663         * lib/relocwrapper.c: Update.
31664         * build-aux/install-reloc: Update.
31665         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
31666
31667 2007-06-08  Bruno Haible  <bruno@clisp.org>
31668
31669         Port to uClibc.
31670         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
31671         * lib/fpurge.c (fpurge): Likewise.
31672         * lib/freading.c (freading): Likewise.
31673         * lib/fseeko.c (rpl_fseeko): Likewise.
31674         * lib/fseterr.c (fseterr): Likewise.
31675         * lib/fwriting.c (fwriting): Likewise.
31676         * tests/test-fflush.c (main): Avoid a failure on uClibc.
31677
31678 2007-06-08  Bruno Haible  <bruno@clisp.org>
31679
31680         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
31681         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
31682         * modules/gettext (Files): Add m4/intlmacosx.m4.
31683
31684 2007-06-07  Bruno Haible  <bruno@clisp.org>
31685
31686         * modules/localename-tests: New file.
31687         * tests/test-localename.c: New file.
31688
31689         New module 'localename'.
31690         * lib/localename.h: New file.
31691         * lib/localename.c: New file, from GNU gettext.
31692         * m4/localename.m4: New file.
31693         * modules/localename: New file.
31694
31695 2007-06-07  Bruno Haible  <bruno@clisp.org>
31696
31697         Work around the lack of <wchar.h> on some builds of uClibc.
31698         * doc/headers/wchar.texi: Update.
31699         * lib/wchar_.h: Include <wchar.h> only if it exists.
31700         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
31701         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
31702         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
31703         doesn't exist.
31704         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
31705         * modules/mbfile (Depends-on): Add wchar.
31706         * modules/mbiter (Depends-on): Likewise.
31707         * modules/mbuiter (Depends-on): Likewise.
31708         Reported by Simon Josefsson.
31709
31710 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
31711
31712         Work around problem reported by Steven M. Schweda in
31713         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
31714         Tru64 5.1B with the Compaq compiler environment installed declares
31715         an 'isblank' function but does not define it in the C library.
31716         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
31717         * lib/regex_internal.h (isblank): Likewise.
31718         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
31719         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31720
31721 2007-06-05  Bruno Haible  <bruno@clisp.org>
31722
31723         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
31724         ia64.
31725         * modules/printf-safe: New file.
31726         * modules/fprintf-posix (Depends-on): Add printf-safe.
31727         * modules/printf-posix (Depends-on): Likewise.
31728         * modules/snprintf-posix (Depends-on): Likewise.
31729         * modules/sprintf-posix (Depends-on): Likewise.
31730         * modules/vasnprintf-posix (Depends-on): Likewise.
31731         * modules/vasprintf-posix (Depends-on): Likewise.
31732         * modules/vfprintf-posix (Depends-on): Likewise.
31733         * modules/vprintf-posix (Depends-on): Likewise.
31734         * modules/vsnprintf-posix (Depends-on): Likewise.
31735         * modules/vsprintf-posix (Depends-on): Likewise.
31736         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31737         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
31738         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
31739         "no" on i386, x86_64, ia64.
31740         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
31741         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31742         on i386, x86_64, ia64.
31743         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
31744         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31745         on i386, x86_64, ia64.
31746         * tests/test-vasnprintf-posix.c: Include float.h.
31747         (LDBL80_WORDS): New macro.
31748         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31749         on i386, x86_64, ia64.
31750         * tests/test-vasprintf-posix.c: Include float.h.
31751         (LDBL80_WORDS): New macro.
31752         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
31753         on i386, x86_64, ia64.
31754         * tests/test-snprintf-posix.c: Include float.h.
31755         * tests/test-sprintf-posix.c: Likewise.
31756         * tests/test-vsnprintf-posix.c: Likewise.
31757         * tests/test-vsprintf-posix.c: Likewise.
31758
31759 2007-06-05  Bruno Haible  <bruno@clisp.org>
31760
31761         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
31762         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
31763         non-IEEE numbers on i386, x86_64, ia64.
31764         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
31765         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
31766         * tests/test-isnanl.h: Include float.h.
31767         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
31768
31769 2007-06-05  Bruno Haible  <bruno@clisp.org>
31770
31771         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
31772         also the %a / %A. Handle the %a / %A code before this extra handling.
31773
31774 2007-06-05  Bruno Haible  <bruno@clisp.org>
31775
31776         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
31777         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
31778
31779 2007-06-05  Bruno Haible  <bruno@clisp.org>
31780
31781         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
31782         typo in variable name.
31783
31784 2007-06-05  Eric Blake  <ebb9@byu.net>
31785
31786         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
31787         Reported by Simon Josefsson.
31788
31789 2007-06-04  Bruno Haible  <bruno@clisp.org>
31790
31791         Avoid test failures on some PowerPC platforms.
31792         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
31793         Define differently for PowerPC.
31794         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
31795         Reported by Gary V. Vaughan <gary@gnu.org>.
31796
31797 2007-06-02  Bruno Haible  <bruno@clisp.org>
31798
31799         Fix test-stdint failure on FreeBSD/ia64.
31800         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
31801         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
31802         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
31803         * doc/headers/stdint.texi: Update.
31804
31805 2007-06-01  Bruno Haible  <bruno@clisp.org>
31806
31807         * tests/test-binary-io.c (main): Pass a third argument to open().
31808         Reported by Gary V. Vaughan <gary@gnu.org>.
31809
31810 2007-06-01  Bruno Haible  <bruno@clisp.org>
31811
31812         * doc/functions/frexpl.texi: Update for mingw.
31813
31814 2007-06-01  Bruno Haible  <bruno@clisp.org>
31815
31816         * tests/test-lseek.c (main): Disable test of errno for invalid third
31817         argument.
31818         * doc/functions/lseek.texi: Update.
31819         Reported by Gary V. Vaughan <gary@gnu.org>.
31820
31821 2007-05-28  Bruno Haible  <bruno@clisp.org>
31822
31823         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
31824
31825 2007-05-31  Eric Blake  <ebb9@byu.net>
31826
31827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
31828         cross compiling.
31829
31830 2007-05-30  Eric Blake  <ebb9@byu.net>
31831         and Bruno Haible  <bruno@clisp.org>
31832
31833         Work around mingw test failures exposed by m4-1.4.9b.
31834         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
31835         * tests/test-unistd.c: Disable uid_t and git_t tests for the
31836         moment.
31837
31838 2007-05-30  Bruno Haible  <bruno@clisp.org>
31839
31840         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
31841         assuming that they are closed. Needed on HP-UX 11.
31842
31843 2007-05-29  Bruno Haible  <bruno@clisp.org>
31844
31845         Fix a problem with #include_next.
31846         * lib/dirent_.h: Split the double-inclusion guard.
31847         * lib/fcntl_.h: Likewise.
31848         * lib/float_.h: Likewise.
31849         * lib/iconv_.h: Likewise.
31850         * lib/inttypes_.h: Likewise.
31851         * lib/locale_.h: Likewise.
31852         * lib/math_.h: Likewise.
31853         * lib/netinet_in_.h: Likewise.
31854         * lib/search_.h: Likewise.
31855         * lib/signal_.h: Likewise.
31856         * lib/stdint_.h: Likewise.
31857         * lib/stdio_.h: Likewise.
31858         * lib/stdlib_.h: Likewise.
31859         * lib/string_.h: Likewise.
31860         * lib/sys_select_.h: Likewise.
31861         * lib/sys_socket_.h: Likewise.
31862         * lib/sys_stat_.h: Likewise.
31863         * lib/sys_time_.h: Likewise.
31864         * lib/sysexits_.h: Likewise.
31865         * lib/time_.h: Likewise.
31866         * lib/unistd_.h: Likewise.
31867         * lib/wchar_.h: Likewise.
31868         * lib/wctype_.h: Likewise.
31869
31870 2007-05-29  Bruno Haible  <bruno@clisp.org>
31871
31872         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
31873         for the moment.
31874
31875 2007-05-29  Bruno Haible  <bruno@clisp.org>
31876
31877         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
31878         invocation.
31879         Reported by Eric Blake.
31880
31881 2007-05-29  Bruno Haible  <bruno@clisp.org>
31882
31883         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
31884         compiling case.
31885
31886 2007-05-29  Eric Blake  <ebb9@byu.net>
31887             Bruno Haible  <bruno@clisp.org>
31888
31889         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
31890         cross compiles.
31891
31892 2007-05-28  Eric Blake  <ebb9@byu.net>
31893
31894         * modules/closein-tests (test_closein_LDADD): Support test on
31895         cygwin with libtool.
31896
31897 2007-05-28  Bruno Haible  <bruno@clisp.org>
31898
31899         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
31900         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31901         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31902         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31903         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31904         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31905         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31906         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31907         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31908
31909 2007-05-28  Eric Blake  <ebb9@byu.net>
31910
31911         Unconditionally include <config.h> in unit tests.
31912         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
31913         * tests/test-allocsa.c, tests/test-arcfour.c,
31914         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
31915         tests/test-array_list.c, tests/test-array_oset.c,
31916         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
31917         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
31918         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
31919         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
31920         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
31921         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
31922         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
31923         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
31924         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
31925         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
31926         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
31927         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
31928         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
31929         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
31930         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
31931         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
31932         test-md5.c, test-memmem.c, test-printf-posix.c,
31933         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
31934         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
31935         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
31936         test-strcasestr.c, test-striconv.c, test-striconveh.c,
31937         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
31938         test-vasnprintf-posix2.c, test-vasnprintf.c,
31939         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
31940         test-vfprintf-posix.c, test-vprintf-posix.c,
31941         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
31942         test-xvasprintf.c: Likewise.
31943
31944 2007-05-28  Bruno Haible  <bruno@clisp.org>
31945
31946         * gnulib-tool (func_import): Remember the --with-tests command-line
31947         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
31948         Reported by Eric Blake.
31949
31950 2007-05-28  Bruno Haible  <bruno@clisp.org>
31951
31952         * modules/ftell-tests: New file.
31953         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
31954         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
31955
31956         * lib/ftell.c: New file.
31957         * modules/ftell: New file.
31958         * m4/ftell.m4: New file.
31959         * doc/functions/ftell.texi: Update.
31960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
31961         REPLACE_FTELL.
31962         * lib/stdio_.h (rpl_ftell): New declaration.
31963         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
31964         REPLACE_FTELL.
31965
31966 2007-05-28  Eric Blake  <ebb9@byu.net>
31967
31968         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
31969
31970 2007-05-28  Bruno Haible  <bruno@clisp.org>
31971
31972         * modules/fseek-tests: New file.
31973         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
31974         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
31975
31976         * lib/fseek.c: New file.
31977         * modules/fseek: New file.
31978         * m4/fseek.m4: New file.
31979         * doc/functions/fseek.texi: Update.
31980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
31981         REPLACE_FSEEK.
31982         * lib/stdio_.h (rpl_fseek): New declaration.
31983         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
31984         REPLACE_FSEEK.
31985
31986 2007-05-28  Bruno Haible  <bruno@clisp.org>
31987
31988         * lib/stdio_.h (fflush): More comments.
31989
31990 2007-05-28  Bruno Haible  <bruno@clisp.org>
31991
31992         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
31993         runtime test.
31994
31995 2007-05-28  Eric Blake  <ebb9@byu.net>
31996
31997         Improve lseek module.
31998         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
31999         * lib/unistd_.h (lseek): Scale back link warning message.
32000         * tests/test-lseek.c: Beef up test.
32001         * tests/test-lseek.sh: Exercise more facets of lseek.
32002         Reported by Bruno Haible.
32003
32004 2007-05-28  Bruno Haible  <bruno@clisp.org>
32005
32006         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32007         to define.
32008
32009 2007-05-27  Bruno Haible  <bruno@clisp.org>
32010
32011         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32012
32013 2007-05-27  Bruno Haible  <bruno@clisp.org>
32014
32015         * modules/openmp: New file.
32016         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32017         Noah Misch.
32018
32019 2007-05-26  Bruno Haible  <bruno@clisp.org>
32020
32021         * modules/chdir-long (Depends-on): Add fchdir.
32022         * modules/chdir-safer (Depends-on): Likewise.
32023         * modules/fts (Depends-on): Likewise.
32024         * modules/fts-lgpl (Depends-on): Likewise.
32025         * modules/openat (Depends-on): Likewise.
32026         * modules/savewd (Depends-on): Likewise.
32027
32028 2007-05-24  Eric Blake  <ebb9@byu.net>
32029
32030         Fix lseek on mingw.
32031         * modules/lseek: New module.
32032         * m4/lseek.m4: New file.
32033         * lib/lseek.c: New file.
32034         * modules/lseek-tests: New file.
32035         * tests/test-lseek.c: New file.
32036         * tests/test-lseek.sh: New file.
32037         * MODULES.html.sh: Document lseek module.
32038         * modules/fflush (Depends-on): Add lseek, fseeko.
32039         * modules/fseeko (Depends-on): Likewise.
32040         * modules/ftello (Depends-on): Likewise.
32041         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32042         broken.
32043         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32044         broken.
32045         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32046         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32047         * lib/ftello.c (rpl_ftello): Likewise.
32048         * tests/test-fseeko.c (main): Test this.
32049         * tests/test-fseeko.sh: Likewise.
32050         * tests/test-ftello.c (main): Likewise.
32051         * tests/test-ftello.sh: Likewise.
32052         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32053         implies replacing fseek.
32054         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32055         HAVE_FTELLO.
32056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32057         * modules/unistd (Makefile.am): Likewise.
32058         * lib/unistd_.h (lseek): Declare a replacement.
32059         * doc/functions/lseek.texi (lseek): Document this fix.
32060         * doc/functions/fseek.texi (fseek): Likewise.
32061         * doc/functions/ftell.texi (ftell): Likewise.
32062
32063 2007-05-24  Bruno Haible  <bruno@clisp.org>
32064
32065         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32066         in the printed representation of a NaN.
32067         * tests/test-vasprintf-posix.c (test_function): Likewise.
32068         * tests/test-snprintf-posix.h (test_function): Likewise.
32069         * tests/test-sprintf-posix.h (test_function): Likewise.
32070         Reported by Eric Blake.
32071
32072 2007-05-23  Eric Blake  <ebb9@byu.net>
32073
32074         Fix fseeko/ftello on cygwin 1.5.24.
32075         * doc/functions/fseeko.texi (fseeko): Document the fix.
32076         * doc/functions/ftello.texi (ftello): Document the fix.
32077         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32078         * doc/functions/stdout.text (stdout): New file.
32079         * doc/functions/stderr.text (stderr): New file.
32080         * doc/gnulib.texi (Function Substitutes): Use new files.
32081         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32082         prior to 1.7.0.
32083         * tests/test-ftello.c (main): Likewise for ftello.
32084         * tests/test-fseeko.sh: New file.
32085         * tests/test-ftello.sh: New file.
32086         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32087         with seekable stdin.
32088         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32089         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32090         (gl_REPLACE_FSEEKO): New macro.
32091         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32092         * modules/fseeko (Files): Distribute fseeko.c.
32093         * modules/ftello (Files): Distribute ftello.c.
32094         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32095         mode.
32096         * lib/ftello.c (rpl_ftello): New file.
32097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32098         fseeko, ftello.
32099         (gl_STDIN_LARGE_OFFSET): New macro.
32100         * modules/stdio (Makefile.am): Perform the replacement.
32101         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32102
32103 2007-05-23  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32106         GNULIB_POSIXCHECK is defined.
32107
32108 2007-05-21  Bruno Haible  <bruno@clisp.org>
32109
32110         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32111         Check also the output for NaN arguments. When cross-compiling, guess
32112         no on IRIX.
32113         * lib/vasnprintf.c: Update comments.
32114         * tests/test-vasnprintf-posix.c (strisnan): New function.
32115         (test_function): Use it.
32116         * tests/test-vasprintf-posix.c (strisnan): New function.
32117         (test_function): Use it.
32118         * tests/test-snprintf-posix.h (strisnan): New function.
32119         (test_function): Use it.
32120         * tests/test-sprintf-posix.h (strisnan): New function.
32121         (test_function): Use it.
32122         Reported by Eric Blake.
32123
32124 2007-05-20  Bruno Haible  <bruno@clisp.org>
32125
32126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32127         numbers that fails on BeOS.
32128         * doc/functions/frexpl.texi: Update.
32129
32130 2007-05-20  Jim Meyering  <jim@meyering.net>
32131
32132         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32133         forced upon us by glibc-2.6.
32134
32135 2007-05-20  Bruno Haible  <bruno@clisp.org>
32136
32137         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32138         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32139         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32140         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32141         NEED_PRINTF_INFINITE.
32142         (is_infinitel): New function.
32143         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32145         gl_PREREQ_VASNPRINTF_INFINITE.
32146         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32147         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32148         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32149         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32150         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32151         gl_PREREQ_VASNPRINTF_INFINITE.
32152         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32153         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32155         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32156         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32158         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32159         * doc/functions/fprintf.texi: Update.
32160         * doc/functions/printf.texi: Update.
32161         * doc/functions/snprintf.texi: Update.
32162         * doc/functions/sprintf.texi: Update.
32163         * doc/functions/vfprintf.texi: Update.
32164         * doc/functions/vprintf.texi: Update.
32165         * doc/functions/vsnprintf.texi: Update.
32166         * doc/functions/vsprintf.texi: Update.
32167
32168 2007-05-20  Bruno Haible  <bruno@clisp.org>
32169
32170         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32171         was not found in libc.
32172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32173
32174 2007-05-20  Bruno Haible  <bruno@clisp.org>
32175
32176         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32177         printed as "-nan" instead of "nan".
32178         * tests/test-vasprintf-posix.c (test_function): Likewise.
32179         * tests/test-snprintf-posix.h (test_function): Likewise.
32180         * tests/test-sprintf-posix.h (test_function): Likewise.
32181         Needed for HP-UX 11.
32182
32183 2007-05-20  Jim Meyering  <jim@meyering.net>
32184
32185         Fix buggy test for the fchownat-deref bug.
32186         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32187         symlink required for the run-test.  Without it, this test would
32188         always declare that fchownat doesn't work, and client code would
32189         unnecessarily use the replacement function with fixed libc.
32190         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32191         Reported by Greg Schafer.
32192
32193 2007-05-19  Bruno Haible  <bruno@clisp.org>
32194
32195         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32196         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32197         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32198         Needed for IRIX 6.5 and Solaris 2.5.1.
32199
32200 2007-05-19  Bruno Haible  <bruno@clisp.org>
32201
32202         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32203         (test_function): Skip tests involving -0.0 on platforms where
32204         -0.0 = 0.0.
32205         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32206         (test_function): Skip tests involving -0.0 on platforms where
32207         -0.0 = 0.0.
32208         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32209         (test_function): Skip tests involving -0.0 on platforms where
32210         -0.0 = 0.0.
32211         * tests/test-sprintf-posix.h (have_minus_zero): New function.
32212         (test_function): Skip tests involving -0.0 on platforms where
32213         -0.0 = 0.0.
32214         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32215         tests.
32216         * tests/test-printf-posix.h (test_function): Likewise.
32217         * tests/test-printf-posix.output: Remove all -0.0 related results.
32218         Needed for IRIX 6.5.
32219
32220 2007-05-19  Bruno Haible  <bruno@clisp.org>
32221
32222         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32223         printed as "nan0x7fffffff" instead of "nan".
32224         * tests/test-vasprintf-posix.c (test_function): Likewise.
32225         * tests/test-snprintf-posix.h (test_function): Likewise.
32226         * tests/test-sprintf-posix.h (test_function): Likewise.
32227         * tests/test-fprintf-posix.h (NaN): Remove macro.
32228         (test_function): Remove all NaN related tests.
32229         * tests/test-printf-posix.h (NaN): Remove macro.
32230         (test_function): Remove all NaN related tests.
32231         * tests/test-printf-posix.output: Remove all NaN related results.
32232         Needed for IRIX 6.5.
32233
32234 2007-05-19  Bruno Haible  <bruno@clisp.org>
32235
32236         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32238
32239 2007-05-19  Bruno Haible  <bruno@clisp.org>
32240
32241         * lib/float_.h: New file.
32242         * m4/float_h.m4: New file.
32243         * modules/float: New file.
32244         * modules/isnanl (Dependencies): Add float.
32245         * modules/isnanl-nolibm (Dependencies): Likewise.
32246         * modules/mathl (Dependencies): Likewise.
32247         * modules/printf-frexpl (Dependencies): Likewise.
32248         * modules/signbit (Dependencies): Likewise.
32249         * modules/vasnprintf (Dependencies): Likewise.
32250         * doc/headers/float.texi: Update.
32251
32252 2007-05-19  Jim Meyering  <jim@meyering.net>
32253
32254         * lib/utimens.c (gl_futimens): Rename from futimens,
32255         now that glibc-2.6 declares futimens.
32256         * lib/utimens.h: Likewise.
32257
32258 2007-05-19  Bruno Haible  <bruno@clisp.org>
32259
32260         Avoid test failures on mingw.
32261         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32262         * tests/test-printf-posix.sh: Likewise.
32263         * tests/test-vfprintf-posix.sh: Likewise.
32264         * tests/test-vprintf-posix.sh: Likewise.
32265
32266 2007-05-19  Bruno Haible  <bruno@clisp.org>
32267
32268         Fix *printf result for NaN, Inf, -0.0 on mingw.
32269         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32270         * lib/vasnprintf.c: Include math.h and isnan.h.
32271         (is_infinite_or_zero): New function.
32272         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32273         values in the %f, %F, %e, %E, %g, %G directives.
32274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32276         gl_PRINTF_INFINITE and test its result. Invoke
32277         gl_PREREQ_VASNPRINTF_INFINITE.
32278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32285         * doc/functions/fprintf.texi: Update.
32286         * doc/functions/printf.texi: Update.
32287         * doc/functions/snprintf.texi: Update.
32288         * doc/functions/sprintf.texi: Update.
32289         * doc/functions/vfprintf.texi: Update.
32290         * doc/functions/vprintf.texi: Update.
32291         * doc/functions/vsnprintf.texi: Update.
32292         * doc/functions/vsprintf.texi: Update.
32293
32294 2007-05-19  Bruno Haible  <bruno@clisp.org>
32295
32296         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32297         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32298         Instead of multiplying with 10^k, set extra_zeroes to k.
32299         (scale10_round_long_double): Remove function.
32300
32301 2007-05-18  Bruno Haible  <bruno@clisp.org>
32302
32303         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32304         introduced on 2007-05-06.
32305
32306 2007-05-18  Bruno Haible  <bruno@clisp.org>
32307
32308         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32309         %g directives.
32310         * tests/test-vasprintf-posix.c (test_function): Likewise.
32311         * tests/test-snprintf-posix.h (test_function): Likewise.
32312         * tests/test-sprintf-posix.h (test_function): Likewise.
32313
32314 2007-05-18  Bruno Haible  <bruno@clisp.org>
32315
32316         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32317         (strmatch): New function.
32318         (test_function): Test the %f directive on numbers of various exponents.
32319         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32320         (strmatch): New function.
32321         (test_function): Test the %f directive on numbers of various exponents.
32322         * tests/test-snprintf-posix.h (strmatch): New function.
32323         (test_function): Test the %f directive on numbers of various exponents.
32324         * tests/test-sprintf-posix.h (strmatch): New function.
32325         (test_function): Test the %f directive on numbers of various exponents.
32326         * tests/test-snprintf-posix.c (SIZEOF): New macro.
32327         * tests/test-sprintf-posix.c (SIZEOF): New macro.
32328         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32329         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32330
32331 2007-05-18  Bruno Haible  <bruno@clisp.org>
32332
32333         Add support for 'long double' number output.
32334         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32335         * lib/vasnprintf.c: Include math.h and float+.h.
32336         (mp_limb_t): New type.
32337         (GMP_LIMB_BITS): New macro.
32338         (mp_twolimb_t): New type.
32339         (GMP_TWOLIMB_BITS): New macro.
32340         (mpn_t): New type.
32341         (multiply, divide, convert_to_decimal, decode_long_double,
32342         scale10_round_long_double, scale10_round_decimal_long_double,
32343         floorlog10l): New functions.
32344         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32345         for the %f, %F, %e, %E, %g, %G directives.
32346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32347         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32348         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32349         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32350         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32354         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32356         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32357         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32358         * modules/snprintf-posix (Depends-on): Likewise.
32359         * modules/sprintf-posix (Depends-on): Likewise.
32360         * modules/vasnprintf-posix (Depends-on): Likewise.
32361         * modules/vasprintf-posix (Depends-on): Likewise.
32362         * modules/vfprintf-posix (Depends-on): Likewise.
32363         * modules/vsnprintf-posix (Depends-on): Likewise.
32364         * modules/vsprintf-posix (Depends-on): Likewise.
32365         * modules/vasnprintf (Files): Add lib/float+.h.
32366         * doc/functions/fprintf.texi: Update.
32367         * doc/functions/printf.texi: Update.
32368         * doc/functions/snprintf.texi: Update.
32369         * doc/functions/sprintf.texi: Update.
32370         * doc/functions/vfprintf.texi: Update.
32371         * doc/functions/vprintf.texi: Update.
32372         * doc/functions/vsnprintf.texi: Update.
32373         * doc/functions/vsprintf.texi: Update.
32374
32375 2007-05-18  Bruno Haible  <bruno@clisp.org>
32376
32377         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32378
32379 2007-05-18  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32382         for printing 64-bit integers. Needed for mingw.
32383
32384 2007-05-18  Bruno Haible  <bruno@clisp.org>
32385
32386         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32387         gl_FUNC_FREXPL_WORKS.
32388         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32389
32390 2007-05-18  Bruno Haible  <bruno@clisp.org>
32391
32392         * modules/frexpl-nolibm-tests: New file.
32393
32394         * modules/frexpl-nolibm: New file.
32395         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32396
32397 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
32398
32399         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32400         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32401         GCC 4.2, which otherwise issues a lot of warnings.
32402         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32403         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32404         Likewise.
32405         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32406         * modules/iconv_open (iconv.h): Likewise.
32407         * modules/locale (locale.h): Likewise.
32408         * modules/netinet_in (netinet/in.h): Likewise.
32409         * modules/sys_select (sys_select.h): Likewise.
32410         * modules/sys_socket (sys/socket.h): Likewise.
32411         * modules/sys_stat (sys/stat.h): Likewise.
32412         * modules/sysexits (sysexits.h): Likewise.
32413         * modules/unistd (unistd.h): Likewise.
32414
32415 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32416
32417         * modules/closein-tests (Makefile.am): Distribute
32418         `test-closein.sh'.
32419
32420 2007-05-17  Bruno Haible  <bruno@clisp.org>
32421
32422         * tests/test-printf-posix.output: Renamed from
32423         tests/test-fprintf-posix.out.
32424         * modules/fprintf-posix-tests: Update.
32425         * modules/printf-posix-tests: Update.
32426         * modules/vfprintf-posix-tests: Update.
32427         * modules/vprintf-posix-tests: Update.
32428         * tests/test-fprintf-posix.sh: Update.
32429         * tests/test-printf-posix.sh: Update.
32430         * tests/test-vfprintf-posix.sh: Update.
32431         * tests/test-vprintf-posix.sh: Update.
32432         Reported by Ralf Wildenhues.
32433
32434 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32435
32436         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32437         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
32438         GCC 4.2, which otherwise issues a lot of warnings.
32439         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32440         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32441         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32442         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32443         it should no longer be needed.
32444         * lib/string_.h: Likewise.
32445         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32446         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32447         * modules/inttypes (inttypes.h): Likewise.
32448         * modules/math (math.h): Likewise.
32449         * modules/search (search.h): Likewise.
32450         * modules/signal (signal.h): Likewise.
32451         * modules/stdint (stdint.h): Likewise.
32452         * modules/stdio (stdio.h): Likewise.
32453         * modules/stdlib (stdlib.h): Likewise.
32454         * modules/string (string.h): Likewise.
32455         * modules/sys_time (sys/time.h): Likewise.
32456         * modules/time (time.h): Likewise.
32457         * modules/wchar (wchar.h): Likewise.
32458         * modules/wctype (wtype.h): Likewise.
32459
32460 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32461
32462         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32463
32464 2007-05-13  Bruno Haible  <bruno@clisp.org>
32465
32466         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32467         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32468         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32469         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32470         (gl_PREREQ_STRTOK_R): Don't require it here.
32471
32472 2007-05-13  Bruno Haible  <bruno@clisp.org>
32473
32474         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32475         when used in C++ mode.
32476
32477 2007-05-12  Bruno Haible  <bruno@clisp.org>
32478
32479         * lib/linebuffer.h: Tweak doc.
32480         * lib/linebuffer.c: Likewise.
32481
32482 2007-05-12  James Youngman  <jay@gnu.org>
32483
32484         * lib/linebuffer.c (readlinebuffer_delim): New function,
32485         like readlinebuffer, but use a caller-specified delimiter.
32486         (readlinebuffer): Just call readlinebuffer_delim with '\n'
32487         as the delimiter.
32488         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32489
32490 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32491
32492         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32493         * modules/openat (Files): Remove openat-die.c.
32494         (Depends-on): Add openat-die.
32495         * modules/openat-die: New module.
32496
32497 2007-05-06  Bruno Haible  <bruno@clisp.org>
32498
32499         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32500         Update with info about Cygwin.
32501         * doc/functions/fprintf.texi: Update.
32502         * doc/functions/printf.texi: Update.
32503         * doc/functions/snprintf.texi: Update.
32504         * doc/functions/sprintf.texi: Update.
32505         * doc/functions/vfprintf.texi: Update.
32506         * doc/functions/vprintf.texi: Update.
32507         * doc/functions/vsnprintf.texi: Update.
32508         * doc/functions/vsprintf.texi: Update.
32509         Reported by Eric Blake.
32510
32511 2007-05-06  Bruno Haible  <bruno@clisp.org>
32512
32513         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32514         padding ourselves for the floating-point directives.
32515         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32517         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32518         gl_PRINTF_FLAG_ZERO and test its result. Invoke
32519         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
32520         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32521         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32522         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32523         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32524         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32525         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32526         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32527         * tests/test-snprintf-posix.h (test_function): Also check the width
32528         and some flags in the %f directive.
32529         * tests/test-sprintf-posix.h (test_function): Likewise.
32530         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32531         * tests/test-vasprintf-posix.c (test_function): Likewise.
32532         * doc/functions/fprintf.texi: Update.
32533         * doc/functions/printf.texi: Update.
32534         * doc/functions/snprintf.texi: Update.
32535         * doc/functions/sprintf.texi: Update.
32536         * doc/functions/vfprintf.texi: Update.
32537         * doc/functions/vprintf.texi: Update.
32538         * doc/functions/vsnprintf.texi: Update.
32539         * doc/functions/vsprintf.texi: Update.
32540
32541 2007-05-06  Bruno Haible  <bruno@clisp.org>
32542
32543         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
32544         pass the ' flag character to sprintf or snprintf.
32545         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
32546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
32547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32548         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
32549         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
32550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
32552         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32553         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32554         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32555         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32556         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32557         * tests/test-snprintf-posix.h (test_function): Also check the grouping
32558         flag.
32559         * tests/test-sprintf-posix.h (test_function): Likewise.
32560         * tests/test-vasnprintf-posix.c (test_function): Likewise.
32561         * tests/test-vasprintf-posix.c (test_function): Likewise.
32562         * doc/functions/fprintf.texi: Update.
32563         * doc/functions/printf.texi: Update.
32564         * doc/functions/snprintf.texi: Update.
32565         * doc/functions/sprintf.texi: Update.
32566         * doc/functions/vfprintf.texi: Update.
32567         * doc/functions/vprintf.texi: Update.
32568         * doc/functions/vsnprintf.texi: Update.
32569         * doc/functions/vsprintf.texi: Update.
32570
32571 2007-05-01  Bruno Haible  <bruno@clisp.org>
32572
32573         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
32574
32575 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
32576
32577         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
32578         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
32579
32580 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32581
32582         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
32583         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
32584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
32585
32586 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
32587
32588         * lib/argp-help.c (struct hol_entry): New member `ord'.
32589         (HOL_ENTRY_PTRCMP): Use ord for comparison
32590         (hol_sort): Initialize ord.
32591
32592 2007-05-01  Bruno Haible  <bruno@clisp.org>
32593
32594         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
32595         Reported by Eric Blake.
32596         * doc/gnulib.texi (Function Substitutes): Update.
32597
32598 2007-05-01  Bruno Haible  <bruno@clisp.org>
32599
32600         * doc/functions.texi: Remove file, now redundant through
32601         doc/functions/*.texi.
32602
32603 2007-05-01  Bruno Haible  <bruno@clisp.org>
32604
32605         * modules/argp (Depends-on): Add sleep.
32606
32607 2007-05-01  Bruno Haible  <bruno@clisp.org>
32608
32609         * modules/sleep-tests: New file.
32610         * tests/test-sleep.c: New file.
32611
32612         * modules/sleep: New file.
32613         * lib/sleep.c: New file.
32614         * m4/sleep.m4: New file.
32615         * lib/unistd_.h (sleep): New declaration.
32616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
32617         HAVE_SLEEP.
32618         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
32619         * doc/functions/sleep.texi: Document the sleep module.
32620
32621 2007-05-01  Bruno Haible  <bruno@clisp.org>
32622
32623         * lib/sigprocmask.h: Remove file.
32624         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
32625         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
32626         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
32627         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
32628         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
32629         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
32630         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
32631         HAVE_SIGSET_T as a shell variable.
32632         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
32633         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
32634         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
32635         (Depends-on): Add signal. Remove verify.
32636         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
32637         (Include): Mention <signal.h> instead of sigprocmask.h.
32638         * NEWS: Mention the change.
32639         * lib/fatal-signal.c: Don't include sigprocmask.h.
32640
32641 2007-05-01  Bruno Haible  <bruno@clisp.org>
32642
32643         * modules/signal: New file.
32644         * lib/signal_.h: New file.
32645         * m4/signal_h.m4: New file.
32646
32647 2007-05-01  Bruno Haible  <bruno@clisp.org>
32648
32649         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
32650         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
32651         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
32652         HAVE_WCTYPE_CTMP_BUG into wctype.h.
32653
32654 2007-05-01  Bruno Haible  <bruno@clisp.org>
32655
32656         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
32657         configure time.
32658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
32659         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
32660         * modules/sys_stat (Makefile.am): Substitute their values into
32661         sys/stat.h.
32662
32663 2007-05-01  Bruno Haible  <bruno@clisp.org>
32664
32665         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
32666         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
32667         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
32668
32669 2007-05-01  Bruno Haible  <bruno@clisp.org>
32670
32671         * doc/header/assert.texi: Undo last change: don't mention the gnulib
32672         'assert' module here.
32673
32674 2007-05-01  Bruno Haible  <bruno@clisp.org>
32675
32676         * doc/functions/*.texi: New files.
32677         * doc/functions/google-ranking.txt: New file.
32678         * doc/gnulib.texi (Function Substitutes): New chapter.
32679         (ctime, inet_ntoa): Remove sections.
32680         * doc/ctime.texi: Remove file.
32681         * doc/inet_ntoa.texi: Remove file.
32682         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
32683         dependencies.
32684         (%.info): New rule, specifying a --reference-limit.
32685
32686 2007-05-01  Bruno Haible  <bruno@clisp.org>
32687
32688         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
32689
32690 2007-05-01  Bruno Haible  <bruno@clisp.org>
32691
32692         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
32693         the portability of 'mkdir' to mingw systems.
32694
32695 2007-05-01  Bruno Haible  <bruno@clisp.org>
32696
32697         * doc/headers/google-ranking.txt: New file.
32698
32699 2007-04-30  Eric Blake  <ebb9@byu.net>
32700
32701         Prefer fseeko to fseek.
32702         * modules/getpass (Depends-on): Add fseeko.
32703         * lib/getpass.c (getpass): Use fseeko, not fseek.
32704
32705 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
32706
32707         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
32708         assumes the sorting is stable, while most qsort implementations
32709         are not.  Use argument addresses to ensure they never compare as
32710         equal.
32711
32712         * tests/test-argp-2.sh (usage-indent test): Fix output
32713         (func_compare): Restore diff options
32714         * tests/test-argp.c: Restore #include "progname.h"
32715
32716 2007-04-29  Bruno Haible  <bruno@clisp.org>
32717
32718         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
32719         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32720         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
32721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32722         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
32723         (configure.ac): Define CHECK_SNPRINTF_POSIX.
32724         (TESTS, check_PROGRAMS): Add test-snprintf.
32725         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
32726         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
32727         (TESTS, check_PROGRAMS): Add test-vsnprintf.
32728         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
32729         assertions that fail on HP-UX, OSF/1, or IRIX.
32730         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
32731
32732 2007-04-29  Bruno Haible  <bruno@clisp.org>
32733
32734         * MODULES.html.sh (posix_functions): Remove 'contents'.
32735
32736 2007-04-29  Karl Berry  <karl@gnu.org>
32737
32738         * config/srclist.txt (gendocs_template_min): new entry.
32739
32740 2007-04-29  Bruno Haible  <bruno@clisp.org>
32741
32742         Work around fpurge bug on BSD systems.
32743         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
32744         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
32745         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
32746         fpurge to rpl_fpurge if the system already has this function.
32747         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
32748         the case where the system already has this function. Correct invariants
32749         on BSD systems.
32750         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
32751         BSD systems.
32752
32753 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32754
32755         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
32756         proposed by Sven Verdoolaege.
32757
32758         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
32759         options.
32760         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
32761         (usage and help tests): Update
32762
32763 2007-04-29  Bruno Haible  <bruno@clisp.org>
32764
32765         * tests/test-fflush.c (main): Use a file of size 17, not 10.
32766         Print more information in case of failure. Disable a test on BeOS.
32767
32768 2007-04-29  Bruno Haible  <bruno@clisp.org>
32769
32770         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
32771         This helps debugging on systems on which no gdb is available.
32772
32773 2007-04-29  Bruno Haible  <bruno@clisp.org>
32774
32775         * lib/freading.h: Improve comments.
32776         * lib/fwriting.h: Likewise.
32777         * tests/test-freading.c (main): Don't check freading immediately after
32778         repositioning. Needed for glibc.
32779
32780 2007-04-29  Bruno Haible  <bruno@clisp.org>
32781
32782         * lib/freading.c (freading): Trivial simplification.
32783
32784 2007-04-28  Bruno Haible  <bruno@clisp.org>
32785
32786         * tests/test-fwriting.c (main): Also test the interaction between
32787         fflush and fwriting.
32788         * modules/fwriting-tests (Depends-on): Add fflush.
32789
32790         * tests/test-freading.c (main): Also test the interaction between
32791         fflush and freading.
32792         * modules/freading-tests (Depends-on): Add fflush.
32793
32794 2007-04-28  Bruno Haible  <bruno@clisp.org>
32795
32796         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
32797         fseeko and ftello.
32798         Suggested by Eric Blake.
32799
32800 2007-04-28  Jim Meyering  <jim@meyering.net>
32801
32802         Avoid false-negative in gl_STDINT_H's C99 conformance test.
32803         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
32804         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
32805
32806 2007-04-27  Eric Blake  <ebb9@byu.net>
32807
32808         * doc/headers/assert.texi (assert.h): Document assert module use.
32809
32810 2007-04-27  Bruno Haible  <bruno@clisp.org>
32811
32812         * doc/headers/*.texi: New files.
32813         * doc/gnulib.texi (Header File Substitutes): New chapter.
32814         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
32815         dependencies.
32816         (standards.info ,standards.html, standards.dvi): Update dependencies.
32817         (mostlyclean, clean): New targets.
32818
32819 2007-04-27  Bruno Haible  <bruno@clisp.org>
32820
32821         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
32822         * modules/sysexits (Files, Makefile.am): Update.
32823
32824         * lib/sys_socket_.h: Renamed from lib/socket_.h.
32825         * modules/sys_socket (Files, Makefile.am): Update.
32826
32827         * lib/sys_stat_.h: Renamed from lib/stat_.h.
32828         * modules/sys_stat (Files, Makefile.am): Update.
32829
32830 2007-04-27  Eric Blake  <ebb9@byu.net>
32831
32832         * lib/freading.h: Improve comments.
32833         * lib/fwriting.h: Likewise.
32834         * lib/fflush.c: Likewise.
32835
32836         Fix closein for mingw.
32837         * modules/closein-tests: Add tests for closein.
32838         * tests/test-closein.c: New file.
32839         * tests/test-closein.sh: Likewise.
32840         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
32841         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
32842
32843 2007-04-27  Bruno Haible  <bruno@clisp.org>
32844
32845         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
32846         version is < 6.
32847         * lib/math_.h [__DECC]: Likewise.
32848         * lib/stdio_.h [__DECC]: Likewise.
32849         * lib/stdlib_.h [__DECC]: Likewise.
32850         * lib/string_.h [__DECC]: Likewise.
32851         * lib/time_.h [__DECC]: Likewise.
32852         * lib/wchar_.h [__DECC]: Likewise.
32853         * lib/wctype_.h [__DECC]: Likewise.
32854
32855 2007-04-27  Bruno Haible  <bruno@clisp.org>
32856
32857         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
32858
32859 2007-04-27  Bruno Haible  <bruno@clisp.org>
32860
32861         * lib/fflush.c: Add comments.
32862         * modules/fpurge-tests (Depends-on): Add fflush.
32863         * modules/freadable-tests (Depends-on): Likewise.
32864         * modules/fwritable-tests (Depends-on): Likewise.
32865
32866 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
32867
32868         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
32869         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
32870         Report by Bruno Haible <bruno@clisp.org>.
32871
32872 2007-04-26  Eric Blake  <ebb9@byu.net>
32873
32874         Fix fflush on mingw.
32875         * modules/fflush (Depends-on): Add freading.
32876         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
32877         but unread data.
32878
32879 2007-04-26  Eric Blake  <ebb9@byu.net>
32880         and Bruno Haible  <bruno@clisp.org>
32881
32882         Implement freading and fwriting.
32883         * lib/freading.c: New file.
32884         * lib/freading.h: Likewise.
32885         * m4/freading.m4: Likewise.
32886         * modules/freading: Likewise.
32887         * modules/freading-tests: Likewise.
32888         * tests/test-freading.c: Likewise.
32889         * lib/fwriting.c: New file.
32890         * lib/fwriting.h: Likewise.
32891         * m4/fwriting.m4: Likewise.
32892         * modules/fwriting: Likewise.
32893         * modules/fwriting-tests: Likewise.
32894         * tests/test-fwriting.c: Likewise.
32895         * MODULES.html.sh (File stream based Input/Output): Mention them.
32896
32897 2007-04-26  Bruno Haible  <bruno@clisp.org>
32898
32899         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
32900         'long' when we assume it.
32901         Suggested by Eric Blake.
32902
32903 2007-04-26  Bruno Haible  <bruno@clisp.org>
32904
32905         Ensure fseeko, ftello are declared on glibc systems.
32906         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
32907         * modules/fseeko (configure.ac-early): Likewise.
32908         * modules/ftello (configure.ac-early): Likewise.
32909         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
32910         AC_FUNC_FSEEKO for this.
32911         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
32912         (gl_CHECK_FSEEKO): Remove macro.
32913
32914 2007-04-26  Bruno Haible  <bruno@clisp.org>
32915
32916         * tests/test-fflush.c (main): Also check the ftell result after
32917         fflush and fseek/fseeko.
32918         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
32919         file descriptor position cache in the stream.
32920         * lib/fseeko.c (rpl_fseeko): Likewise.
32921
32922 2007-04-26  Bruno Haible  <bruno@clisp.org>
32923
32924         * modules/fflush-tests (Depends-on): Add fseeko.
32925
32926 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
32927             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32928
32929         * lib/argz_.h: ensure error_t definition is obtained in same
32930         mechanism system argz.h would have.
32931         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
32932         argz facilities are known bad.  Err on the side of caution if
32933         cross-compiling.
32934
32935 2007-04-25  Eric Blake  <ebb9@byu.net>
32936
32937         * lib/fpurge.c (includes): Use stdlib.h for free.
32938         * tests/test-fflush.c (main): Also test fflush-fseeko.
32939
32940 2007-04-25  Bruno Haible  <bruno@clisp.org>
32941
32942         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
32943         * lib/fseeko.c: New file.
32944         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
32945         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
32946         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
32947         gl_FUNC_FSEEKO.
32948         (gl_FUNC_FSEEKO): Invoke it.
32949         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
32950         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
32951         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
32952
32953 2007-04-25  Bruno Haible  <bruno@clisp.org>
32954
32955         * modules/fflush (Depends-on): Add ftello.
32956
32957 2007-04-25  Bruno Haible  <bruno@clisp.org>
32958
32959         * modules/ftello-tests: New file.
32960         * tests/test-ftello.c: New file.
32961
32962         * modules/ftello: New file.
32963         * m4/ftello.m4: New file.
32964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
32965         HAVE_FTELLO.
32966         * lib/stdio_.h (ftello): New declaration.
32967         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
32968         HAVE_FTELLO.
32969
32970 2007-04-25  Bruno Haible  <bruno@clisp.org>
32971
32972         * modules/fseeko-tests: New file.
32973         * tests/test-fseeko.c: New file.
32974
32975         * modules/fseeko: New file.
32976         * m4/fseeko.m4: New file.
32977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
32978         HAVE_FSEEKO.
32979         * lib/stdio_.h (fseeko): New declaration.
32980         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
32981         HAVE_FSEEKO.
32982
32983 2007-04-25  Bruno Haible  <bruno@clisp.org>
32984
32985         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
32986
32987 2007-04-25  Bruno Haible  <bruno@clisp.org>
32988
32989         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
32990         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
32991         * tests/test-unistd.c: Likewise.
32992         * tests/test-fcntl.c: Likewise.
32993
32994 2007-04-23  Eric Blake  <ebb9@byu.net>
32995
32996         * lib/fflush.c: Fix missing include.
32997         Reported by Bruno Haible.
32998
32999 2007-04-23  Bruno Haible  <bruno@clisp.org>
33000
33001         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33002         Reported by Eric Blake.
33003
33004 2007-04-23  Bruno Haible  <bruno@clisp.org>
33005
33006         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33007
33008 2007-04-23  Bruno Haible  <bruno@clisp.org>
33009
33010         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33011
33012 2007-04-23  Bruno Haible  <bruno@clisp.org>
33013
33014         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33015         Needed on HP-UX 11.
33016
33017 2007-04-16  Eric Blake  <ebb9@byu.net>
33018
33019         Make fflush rely on fpurge.
33020         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33021         open coding all variants.
33022         * modules/fflush (Depends-on): Add fpurge and unistd.
33023         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33024         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33025
33026         Fix --with-tests compilation on cygwin.
33027         * modules/argmatch-tests (Makefile.am): List gnulib library first
33028         in LDADD.
33029         * modules/argp-tests (Makefile.am): Likewise.
33030         * modules/array-list-tests (Makefile.am): Likewise.
33031         * modules/array-oset-tests (Makefile.am): Likewise.
33032         * modules/avltree-list-tests (Makefile.am): Likewise.
33033         * modules/avltree-oset-tests (Makefile.am): Likewise.
33034         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33035         * modules/carray-list-tests (Makefile.am): Likewise.
33036         * modules/dirname-tests (Makefile.am): Likewise.
33037         * modules/frexp-tests (Makefile.am): Likewise.
33038         * modules/isnanl-tests (Makefile.am): Likewise.
33039         * modules/linked-list-tests (Makefile.am): Likewise.
33040         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33041         * modules/lock-tests (Makefile.am): Likewise.
33042         * modules/rbtree-list-tests (Makefile.am): Likewise.
33043         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33044         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33045         * modules/tls-tests (Makefile.am): Likewise.
33046         * modules/tsearch-tests (Makefile.am): Likewise.
33047         * modules/xvasprintf-tests (Makefile.am): Likewise.
33048
33049         Fix fpurge for cygwin.
33050         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33051         value.
33052         * modules/fpurge-tests (Depends-on): Clean up trash.
33053
33054 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33055
33056         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33057
33058         * m4/autobuild.m4: Re-indent.
33059
33060 2007-04-13  Bruno Haible  <bruno@clisp.org>
33061
33062         * modules/fpurge-tests: New file.
33063         * tests/test-fpurge.c: New file.
33064
33065         * modules/fpurge: New file.
33066         * lib/fpurge.h: New file.
33067         * lib/fpurge.c: New file.
33068         * m4/fpurge.m4: New file.
33069
33070 2007-04-13  Bruno Haible  <bruno@clisp.org>
33071
33072         * modules/fbufmode-tests: New file.
33073         * tests/test-fbufmode.c: New file.
33074
33075         * modules/fbufmode: New file.
33076         * lib/fbufmode.h: New file.
33077         * lib/fbufmode.c: New file.
33078         * m4/fbufmode.m4: New file.
33079
33080 2007-04-13  Bruno Haible  <bruno@clisp.org>
33081
33082         * modules/fwritable-tests: New file.
33083         * tests/test-fwritable.c: New file.
33084
33085         * modules/fwritable: New file.
33086         * lib/fwritable.h: New file.
33087         * lib/fwritable.c: New file.
33088         * m4/fwritable.m4: New file.
33089
33090 2007-04-13  Bruno Haible  <bruno@clisp.org>
33091
33092         * modules/freadable-tests: New file.
33093         * tests/test-freadable.c: New file.
33094
33095         * modules/freadable: New file.
33096         * lib/freadable.h: New file.
33097         * lib/freadable.c: New file.
33098         * m4/freadable.m4: New file.
33099
33100 2007-04-13  Bruno Haible  <bruno@clisp.org>
33101
33102         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33103         MOSTLYCLEANFILES.
33104
33105 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33106
33107         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33108         gzip bootstrap.conf to avoid dragging in i18n machinery.
33109         (gnulib_tool_option): Use it.
33110
33111 2007-04-13  Bruno Haible  <bruno@clisp.org>
33112
33113         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33114         %F directives.
33115         * tests/test-vasprintf-posix.c (test_function): Likewise.
33116         * tests/test-snprintf-posix.h (test_function): Likewise.
33117         * tests/test-sprintf-posix.h (test_function): Likewise.
33118         * tests/test-fprintf-posix.h (test_function): Likewise.
33119         * tests/test-printf-posix.h (test_function): Likewise.
33120         * tests/test-fprintf-posix.out: Likewise.
33121
33122 2007-04-13  Bruno Haible  <bruno@clisp.org>
33123
33124         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33125         * modules/tls-tests (configure.ac): Likewise.
33126         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33127
33128 2007-04-13  Bruno Haible  <bruno@clisp.org>
33129
33130         * lib/tls.c (glthread_tls_get): Fix return type.
33131         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33132
33133 2007-04-12  Eric Blake  <ebb9@byu.net>
33134
33135         * modules/gettime (Depends-on): Remove gettime.
33136         Reported by Dmitry V. Levin.
33137
33138 2007-04-12  Bruno Haible  <bruno@clisp.org>
33139
33140         * modules/fflush (Include): Mention <stdio.h>.
33141         * modules/strtoimax (Include): Mention <inttypes.h>.
33142         * modules/strtoumax (Include): Likewise.
33143
33144 2007-04-12  Eric Blake  <ebb9@byu.net>
33145
33146         * .cvsignore: New file.
33147         * .gitignore: Likewise.
33148
33149 2007-04-12  Bruno Haible  <bruno@clisp.org>
33150
33151         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33152         not before, since $(LDADD) often contains libgnu.a.
33153         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33154         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33155         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33156         Needed on Cygwin.
33157
33158 2007-04-12  Eric Blake  <ebb9@byu.net>
33159
33160         Work around glibc's failure to flush stdin on fclose.
33161         * lib/closein.c (close_stdin): Flush stdin before closing.
33162
33163         Work around glibc's failure to reset seekable stdin on exit.
33164         * modules/closein: New module.
33165         * lib/closein.c: New file.
33166         * lib/closein.h: Likewise.
33167         * m4/closein.m4: Likewise.
33168         * MODULES.html.sh (File stream based Input/Output): Document it.
33169
33170 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33171
33172         * gnulib-tool: Rename generated 'autobuild' script to
33173         'do-autobuild' in --create-megatestdir output.
33174
33175         * doc/gnulib.texi (Build robot for gnulib): Fix.
33176
33177 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33178
33179         * modules/sysexits (Depends-on): Add absolute-header.
33180
33181 2007-04-12  Eric Blake  <ebb9@byu.net>
33182
33183         No need to preserve errno on success.
33184         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33185         Reported by Bruno Haible.
33186
33187 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33188
33189         * MODULES.html.sh (Support for maintaining and releasing
33190         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33191
33192 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33193
33194         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33195
33196 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33197
33198         * modules/autobuild: New module.
33199
33200         * m4/autobuild.m4: New file.
33201
33202 2007-04-11  Bruno Haible  <bruno@clisp.org>
33203
33204         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33205         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33206         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33208         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33209         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33210         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33212         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33213         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33214         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33218         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33219         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33221         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33222         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33223         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33224         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33225         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33227         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33228         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33229         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33230         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33231         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33232         Reported by Eric Blake.
33233
33234 2007-04-11  Bruno Haible  <bruno@clisp.org>
33235
33236         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33237
33238 2007-04-10  Bruno Haible  <bruno@clisp.org>
33239
33240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33241         for NaN and Infinity. Needed on FreeBSD 6.1.
33242         * tests/test-vasnprintf-posix.c (test_function): Undo last change
33243         regarding results for "%010a" of Infinity and NaN.
33244         * tests/test-vasprintf-posix.c (test_function): Likewise.
33245         * tests/test-snprintf-posix.h (test_function): Likewise.
33246         * tests/test-sprintf-posix.h (test_function): Likewise.
33247         * tests/test-fprintf-posix.h (test_function): Likewise.
33248         * tests/test-printf-posix.h (test_function): Likewise.
33249         * tests/test-fprintf-posix.out: Likewise.
33250
33251 2007-04-10  Bruno Haible  <bruno@clisp.org>
33252
33253         * modules/locale-tests: New file.
33254         * tests/test-locale.c: New file.
33255
33256         * modules/locale: New file.
33257         * lib/locale_.h: New file.
33258         * m4/locale_h.m4: New file.
33259
33260 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
33261             Bruno Haible  <bruno@clisp.org>
33262
33263         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33264         be determined, test for availability of the copysignf, copysign,
33265         copysignl functions.
33266         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33267         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33268         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33269
33270 2007-04-09  Eric Blake  <ebb9@byu.net>
33271
33272         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33273         * modules/stdio (Makefile.am): Support fflush.
33274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33275         * modules/fflush: New file.
33276         * lib/fflush.c: Likewise.
33277         * m4/fflush.m4: Likewise.
33278         * modules/fflush-tests: New test.
33279         * tests/test-fflush.c: Likewise.
33280         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33281
33282 2007-04-06  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33285         (VASNPRINTF): Use signbit for faster determination whether to print a
33286         minus sign.
33287         * modules/vasnprintf (Files): Remove lib/float+.h.
33288         * modules/fprintf-posix (Depends-on): Add signbit.
33289         * modules/snprintf-posix (Depends-on): Likewise.
33290         * modules/sprintf-posix (Depends-on): Likewise.
33291         * modules/vasnprintf-posix (Depends-on): Likewise.
33292         * modules/vasprintf-posix (Depends-on): Likewise.
33293         * modules/vfprintf-posix (Depends-on): Likewise.
33294         * modules/vsnprintf-posix (Depends-on): Likewise.
33295         * modules/vsprintf-posix (Depends-on): Likewise.
33296
33297 2007-04-06  Bruno Haible  <bruno@clisp.org>
33298
33299         * tests/test-frexp.c (main): Test also the sign bit of zero results.
33300         * tests/test-frexpl.c (main): Likewise.
33301         * tests/test-ldexpl.c (main): Likewise.
33302         * modules/frexp-tests (Depends-on): Add signbit.
33303         * modules/frexpl-tests (Depdends-on): Likewise.
33304         * modules/ldexpl-tests (Depdends-on): Likewise.
33305
33306 2007-04-06  Bruno Haible  <bruno@clisp.org>
33307
33308         * modules/signbit-tests: New file.
33309         * tests/test-signbit.c: New file.
33310
33311         * modules/signbit: New file.
33312         * lib/signbitf.c: New file.
33313         * lib/signbitd.c: New file.
33314         * lib/signbitl.c: New file.
33315         * m4/signbit.m4: New file.
33316         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33317         (signbit): New macro.
33318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33319         REPLACE_SIGNBIT.
33320         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33321         REPLACE_FREXPL into math.h.
33322
33323 2007-04-06  Bruno Haible  <bruno@clisp.org>
33324
33325         * modules/isnanf-nolibm-tests: New file.
33326         * tests/test-isnanf.c: New file.
33327
33328         * modules/isnanf-nolibm: New file.
33329         * lib/isnanf.h: New file.
33330         * lib/isnanf.c: New file.
33331         * lib/isnan.c: Consider the USE_FLOAT macro.
33332         * m4/isnanf.m4: New file.
33333
33334 2007-04-06  Bruno Haible  <bruno@clisp.org>
33335
33336         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33337         (Link): New section.
33338
33339         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33340
33341 2007-04-06  Bruno Haible  <bruno@clisp.org>
33342
33343         Assume the 'long double' type.
33344         * m4/longdouble.m4: Remove file.
33345         * config/srclist.txt: Don't mention longdouble.m4.
33346         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33347         * lib/float+.h: Likewise.
33348         * lib/frexp.c: Likewise.
33349         * lib/printf-args.h: Likewise.
33350         * lib/printf-args.c: Likewise.
33351         * lib/printf-frexp.c: Likewise.
33352         * lib/printf-parse.c: Likewise.
33353         * lib/vasnprintf.c: Likewise.
33354         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33355         * m4/intl.m4: Likewise.
33356         * m4/isnanl.m4: Likewise.
33357         * m4/printf.m4: Likewise.
33358         * m4/printf-frexpl.m4: Likewise.
33359         * m4/vasnprintf.m4: Likewise.
33360         * modules/allocsa (Files): Remove m4/longdouble.m4.
33361         * modules/gettext (Files): Likewise.
33362         * modules/relocatable-prog-wrapper (Files): Likewise.
33363         * modules/vasnprintf (Files): Likewise.
33364         * modules/isnanl (Files): Likewise.
33365         (Include): Simplify.
33366         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33367         (Include): Simplify.
33368         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33369         (Include): Simplify.
33370         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33372         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33374         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33375         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33376         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33377         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33378         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33379         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33380         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33381         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33382         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33383         * tests/test-isnanl.c: Likewise.
33384         * tests/test-snprintf-posix.h: Likewise.
33385         * tests/test-sprintf-posix.h: Likewise.
33386         * tests/test-vasnprintf-posix.c: Likewise.
33387         * tests/test-vasnprintf-posix2.c: Likewise.
33388         * tests/test-vasprintf-posix.c: Likewise.
33389
33390 2007-04-06  Bruno Haible  <bruno@clisp.org>
33391
33392         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33393         * lib/math_.h [__DECC]: Include the overridden include file through
33394         #include_next, outside the double-inclusion guard.
33395         * lib/stdio_.h [__DECC]: Likewise.
33396         * lib/stdlib_.h [__DECC]: Likewise.
33397         * lib/string_.h [__DECC]: Likewise.
33398         * lib/time_.h [__DECC]: Likewise.
33399         * lib/wchar_.h [__DECC]: Likewise.
33400         * lib/wctype_.h [__DECC]: Likewise.
33401         * lib/inttypes_.h [__DECC]: Likewise.
33402         Reported by Albert Chin <china@thewrittenword.com> in
33403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33404
33405 2007-04-04  Eric Blake  <ebb9@byu.net>
33406
33407         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33408         1.5.x.
33409
33410 2007-04-04  Bruno Haible  <bruno@clisp.org>
33411
33412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33413         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33414
33415 2007-04-04  Bruno Haible  <bruno@clisp.org>
33416
33417         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33418         results for "%010a" of Infinity and NaN.
33419         * tests/test-vasprintf-posix.c (test_function): Likewise.
33420         * tests/test-snprintf-posix.h (test_function): Likewise.
33421         * tests/test-sprintf-posix.h (test_function): Likewise.
33422         * tests/test-fprintf-posix.h (test_function): Remove these tests.
33423         * tests/test-printf-posix.h (test_function): Likewise.
33424         * tests/test-fprintf-posix.out: Update.
33425         Needed for FreeBSD 6.1.
33426
33427 2007-04-04  Bruno Haible  <bruno@clisp.org>
33428
33429         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33430         directly used by the gnulib modules nor by gnulib-tool.
33431
33432 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33433
33434         * DEPENDENCIES: Give overall description of version dependency
33435         desirability.  Use more-typical names for apps.
33436         Add shell, coreutils, diffutils, grep, tar, gzip.
33437
33438 2007-04-04  Simon Josefsson  <simon@josefsson.org>
33439
33440         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
33441
33442 2007-04-04  Karl Berry  <karl@gnu.org>
33443
33444         * MODULES.html.sh (func_module): missing '.
33445
33446 2007-04-03  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/argmatch-tests (Makefile.am): New variable
33449         test_argmatch_LDADD.
33450         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33451         * modules/array-list-tests (Makefile.am): New variable
33452         test_array_list_LDADD.
33453         * modules/array-oset-tests (Makefile.am): New variable
33454         test_array_oset_LDADD.
33455         * modules/avltree-list-tests (Makefile.am): New variable
33456         test_avltree_list_LDADD.
33457         * modules/avltree-oset-tests (Makefile.am): New variable
33458         test_avltree_oset_LDADD.
33459         * modules/avltreehash-list-tests (Makefile.am): New variable
33460         test_avltreehash_list_LDADD.
33461         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33462         test_canonicalize_lgpl_LDADD.
33463         * modules/carray-list-tests (Makefile.am): New variable
33464         test_carray_list_LDADD.
33465         * modules/dirname-tests (Makefile.am): New variable
33466         test_dirname_LDADD.
33467         * modules/linked-list-tests (Makefile.am): New variable
33468         test_linked_list_LDADD.
33469         * modules/linkedhash-list-tests (Makefile.am): New variable
33470         test_linkedhash_list_LDADD.
33471         * modules/rbtree-list-tests (Makefile.am): New variable
33472         test_rbtree_list_LDADD.
33473         * modules/rbtree-oset-tests (Makefile.am): New variable
33474         test_rbtree_oset_LDADD.
33475         * modules/rbtreehash-list-tests (Makefile.am): New variable
33476         test_rbtreehash_list_LDADD.
33477         * modules/xvasprintf-tests (Makefile.am): New variable
33478         test_xvasprintf_LDADD.
33479         Reported by Eric Blake.
33480
33481 2007-04-03  Eric Blake  <ebb9@byu.net>
33482
33483         * DEPENDENCIES: Weaken m4 requirements.
33484
33485 2007-04-03  Bruno Haible  <bruno@clisp.org>
33486
33487         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33488         * modules/isnanl-tests (configure.ac): Likewise.
33489
33490 2007-04-03  Ben Pfaff  <blp@gnu.org>
33491
33492         * modules/iconv_open: Add $(srcdir)/ to source directory
33493         references in Makefile fragments that call gperf, to fix VPATH
33494         builds.
33495
33496 2007-04-03  Bruno Haible  <bruno@clisp.org>
33497
33498         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33499         * lib/ldexpl.c: Undo last change.
33500
33501 2007-04-03  Bruno Haible  <bruno@clisp.org>
33502
33503         * modules/printf-frexpl (Depends-on): Undo last change.
33504         (Files): Add m4/ldexpl.m4.
33505
33506 2007-04-03  Bruno Haible  <bruno@clisp.org>
33507
33508         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33509         * modules/isnanl (Link): New section.
33510
33511         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33512         * modules/frexp (Link): New section.
33513
33514         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33515         * modules/frexpl (Link): New section.
33516
33517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33518         * modules/ldexpl (Link): New section.
33519
33520 2007-04-03  Bruno Haible  <bruno@clisp.org>
33521
33522         * modules/TEMPLATE-EXTENDED: New file.
33523         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
33524
33525 2007-04-03  Bruno Haible  <bruno@clisp.org>
33526
33527         * DEPENDENCIES: New file.
33528         Suggested by Simon Josefsson.
33529
33530 2007-04-03  Bruno Haible  <bruno@clisp.org>
33531
33532         * doc/gnulib.texi: Escape @.
33533
33534 2007-04-03  James Youngman  <jay@gnu.org>
33535         and Paul Eggert  <eggert@cs.ucla.edu>
33536
33537         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
33538         birthtime on all systems that have birthtime, not just those which
33539         use st_birthtimensec rather than st_birthtim.  Putting zero in
33540         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
33541         that the birth time is not available for files on an NFS mount.
33542
33543 2007-04-03  Simon Josefsson  <simon@josefsson.org>
33544
33545         * modules/memxor: Move back from crypto/, suggested by Bruno.
33546         * modules/crypto/hmac-sha1: Fix memxor dependency.
33547
33548         * modules/crypto/gc: Moved from ../.
33549
33550 2007-04-02  Eric Blake  <ebb9@byu.net>
33551
33552         * lib/ldexpl.c (includes): Avoid libm.
33553
33554         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
33555
33556 2007-04-02  Bruno Haible  <bruno@clisp.org>
33557
33558         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
33559         on IRIX.
33560
33561 2007-04-02  Bruno Haible  <bruno@clisp.org>
33562
33563         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
33564         x86 or x86_64 platforms running MacOS X.
33565         Reported by Ryan Schmidt <@ryandesign.com>.
33566
33567 2007-04-02  Bruno Haible  <bruno@clisp.org>
33568
33569         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
33570         i386.
33571
33572 2007-04-01  Simon Josefsson  <simon@josefsson.org>
33573
33574         * modules/crypto/arcfour: Moved from ../.
33575         * modules/crypto/arcfour-tests: Moved from ../.
33576         * modules/crypto/arctwo: Moved from ../.
33577         * modules/crypto/arctwo-tests: Moved from ../.
33578         * modules/crypto/des: Moved from ../.
33579         * modules/crypto/des-tests: Moved from ../.
33580         * modules/crypto/gc-arcfour: Moved from ../.
33581         * modules/crypto/gc-arcfour-tests: Moved from ../.
33582         * modules/crypto/gc-arctwo: Moved from ../.
33583         * modules/crypto/gc-arctwo-tests: Moved from ../.
33584         * modules/crypto/gc-des: Moved from ../.
33585         * modules/crypto/gc-des-tests: Moved from ../.
33586         * modules/crypto/gc-hmac-md5: Moved from ../.
33587         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
33588         * modules/crypto/gc-hmac-sha1: Moved from ../.
33589         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
33590         * modules/crypto/gc-md2: Moved from ../.
33591         * modules/crypto/gc-md2-tests: Moved from ../.
33592         * modules/crypto/gc-md4: Moved from ../.
33593         * modules/crypto/gc-md4-tests: Moved from ../.
33594         * modules/crypto/gc-md5: Moved from ../.
33595         * modules/crypto/gc-md5-tests: Moved from ../.
33596         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
33597         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
33598         * modules/crypto/gc-random: Moved from ../.
33599         * modules/crypto/gc-rijndael: Moved from ../.
33600         * modules/crypto/gc-rijndael-tests: Moved from ../.
33601         * modules/crypto/gc-sha1: Moved from ../.
33602         * modules/crypto/gc-sha1-tests: Moved from ../.
33603         * modules/crypto/gc-tests: Moved from ../.
33604         * modules/crypto/hmac-md5: Moved from ../.
33605         * modules/crypto/hmac-md5-tests: Moved from ../.
33606         * modules/crypto/hmac-sha1: Moved from ../.
33607         * modules/crypto/hmac-sha1-tests: Moved from ../.
33608         * modules/crypto/md2: Moved from ../.
33609         * modules/crypto/md2-tests: Moved from ../.
33610         * modules/crypto/md4: Moved from ../.
33611         * modules/crypto/md4-tests: Moved from ../.
33612         * modules/crypto/md5: Moved from ../.
33613         * modules/crypto/md5-tests: Moved from ../.
33614         * modules/crypto/memxor: Moved from ../.
33615         * modules/crypto/rijndael: Moved from ../.
33616         * modules/crypto/rijndael-tests: Moved from ../.
33617         * modules/crypto/sha1: Moved from ../.
33618
33619 2007-03-30  James Youngman  <jay@gnu.org>
33620
33621         * tests/test-stat-time.c (prepare_test): use chmod() rather than
33622         rename() to change the ctime of a file (because ctime is unaffected
33623         by rename on jfs2 on AIX 5.1).
33624         (main): Start by doing cleanup, in case a previous run failed leaving
33625         test files behind.
33626
33627 2007-03-31  Bruno Haible  <bruno@clisp.org>
33628
33629         Support old proprietary implementations of iconv.
33630         * modules/iconv_open: New file.
33631         * lib/iconv_.h: New file.
33632         * m4/iconv_h.m4: New file.
33633         * lib/iconv_open.c: New file.
33634         * lib/iconv_open-aix.gperf: New file.
33635         * lib/iconv_open-hpux.gperf: New file.
33636         * lib/iconv_open-irix.gperf: New file.
33637         * lib/iconv_open-osf.gperf: New file.
33638         * m4/iconv_open.m4: New file.
33639         * modules/linebreak (Depends-on): Add iconv_open.
33640         * modules/striconv (Depends-on): Likewise.
33641         * modules/striconveh (Depends-on): Likewise.
33642         * modules/unicodeio (Depends-on): Likewise.
33643         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
33644         (iconv_t)(-1).
33645         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
33646         conversion if cd is (iconv_t)(-1).
33647         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
33648         is not possible.
33649
33650 2007-03-31  Bruno Haible  <bruno@clisp.org>
33651
33652         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33653         work on Solaris either. Protect also second use of "autodetect_jp".
33654
33655 2007-03-31  Bruno Haible  <bruno@clisp.org>
33656
33657         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
33658         the function is not present.
33659
33660 2007-03-31  Bruno Haible  <bruno@clisp.org>
33661
33662         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
33663         the function is not present.
33664
33665 2007-03-31  Bruno Haible  <bruno@clisp.org>
33666
33667         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
33668         a bug in HP-UX iconv_open().
33669
33670 2007-03-31  Bruno Haible  <bruno@clisp.org>
33671
33672         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
33673         (Mathematics <math.h>): New section, add fpieee.
33674         (Input/output <stdio.h>): Add fseterr.
33675         (Mathematics <math.h>): New section, add printf-frexp.
33676         (Container data structures): Add sublist.
33677         (Core language properties): Add fpucw, inline.
33678         (Functions for greatest-width integer types <inttypes.h>): Add
33679         imaxabs, imaxdiv, inttypes.
33680         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
33681         isnanl-nolibm, ldexp.
33682         (Mathematics <math.h>): New section, add printf-frexpl.
33683         (Support for systems lacking POSIX:2001): Add fprintf-posix,
33684         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
33685         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
33686         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
33687         (Unicode string functions): Add unistr/u*-mbtoucr.
33688         (Java): Add javacomp-script, javaexec-script.
33689         (C#): Add csharpcomp-script, csharpexec-script.
33690         (Support for building libraries and executables): Add havelib,
33691         relocatable-*.
33692         (Support for maintaining and releasing projects): Renamed from
33693         'Support for maintaining and release projects'. Add announce-gen.
33694
33695 2007-03-31  Bruno Haible  <bruno@clisp.org>
33696
33697         * README: Talk primarily about git.
33698         (git and CVS): Renamed from CVS.
33699         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
33700         gnulib is available through git.
33701         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
33702
33703 2007-03-30  Bruno Haible  <bruno@clisp.org>
33704
33705         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
33706         * lib/poll_.h: Likewise.
33707         * lib/stat_.h: Likewise.
33708         * lib/sys_time_.h: Likewise.
33709         * lib/sysexit_.h: Likewise.
33710         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
33711         * lib/stdbool_.h: Likewise.
33712         * lib/byteswap_.h: Add double-inclusion guard.
33713
33714 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
33715
33716         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
33717
33718 2007-03-30  Karl Berry  <karl@gnu.org>
33719
33720         * config/srclist-update: double space after USA in the license
33721         substitution, since that's how it's usually (?) written.
33722
33723 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33724
33725         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
33726         reported by Bruno Haible.
33727
33728 2007-03-29  Bruno Haible  <bruno@clisp.org>
33729
33730         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
33731         a bug in AIX iconv().
33732
33733 2007-03-29  Bruno Haible  <bruno@clisp.org>
33734
33735         * modules/ldexpl-tests: New file.
33736         * tests/test-ldexpl.c: New file.
33737
33738 2007-03-29  Bruno Haible  <bruno@clisp.org>
33739
33740         * lib/ldexpl.c: Include fpucw.h.
33741         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
33742         multiplication.
33743         * modules/ldexpl (Depends-on): Add fpucw.
33744
33745 2007-03-29  Bruno Haible  <bruno@clisp.org>
33746
33747         * modules/ldexpl: New file.
33748         * m4/ldexpl.m4: New file.
33749         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
33750         set.
33751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
33752         REPLACE_LDEXPL.
33753         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
33754         REPLACE_LDEXPL.
33755         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33756         gl_FUNC_LDEXPL_WORKS.
33757         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
33758         * modules/mathl (Files): Remove lib/ldexpl.c.
33759         (Depends-on): Add ldexpl.
33760
33761 2007-03-29  Bruno Haible  <bruno@clisp.org>
33762
33763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
33764
33765 2007-03-29  Bruno Haible  <bruno@clisp.org>
33766
33767         * tests/test-striconveh.c (main): Don't assume that a direct conversion
33768         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
33769         and possibly also HP-UX.
33770         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
33771         work on AIX, IRIX, HP-UX, OSF/1.
33772         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33773         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33774         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33775         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33776         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
33777         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33778
33779 2007-03-29  Bruno Haible  <bruno@clisp.org>
33780
33781         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
33782
33783 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33784
33785         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
33786         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
33787
33788 2007-03-29  Eric Blake  <ebb9@byu.net>
33789
33790         * lib/acl-internal.h: Remove redundant include.
33791         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
33792         Cygwin when a file is locked.
33793
33794 2007-03-29  Bruno Haible  <bruno@clisp.org>
33795
33796         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
33797         file.
33798         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
33799
33800 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
33801
33802         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
33803         try to remove a parent directory if the child couldn't be removed
33804         (except for the first rmdir, which could fail because the child
33805         doesn't exist).  Problem reported by Jeff Blaine in
33806         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
33807
33808 2007-03-28  Bruno Haible  <bruno@clisp.org>
33809
33810         * lib/striconveh.c (utf8conv_carefully): New function.
33811         (mem_cd_iconveh_internal): Invoke it.
33812
33813 2007-03-28  Bruno Haible  <bruno@clisp.org>
33814
33815         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
33816         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
33817         input.
33818         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
33819         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
33820         unistr/u8-uctomb.
33821
33822 2007-03-28  Bruno Haible  <bruno@clisp.org>
33823
33824         * modules/unistr/u8-mbtoucr: New file.
33825         * lib/unistr/u8-mbtoucr.c: New file.
33826         * modules/unistr/u16-mbtoucr: New file.
33827         * lib/unistr/u16-mbtoucr.c: New file.
33828         * modules/unistr/u16-mbtoucr: New file.
33829         * lib/unistr/u16-mbtoucr.c: New file.
33830         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
33831
33832 2007-03-27  Simon Josefsson  <simon@josefsson.org>
33833             Bruno Haible  <bruno@clisp.org>
33834
33835         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
33836         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
33837         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
33838
33839         * m4/stdio_h.m4: Add stubs for vasprintf too.
33840
33841         * modules/stdio: Support vasprintf in sed command.
33842
33843         * modules/vasprintf: Depend on stdio for prototypes.  Remove
33844         vasprintf.h.  Add stdio module indicator.
33845
33846         * lib/stdio_.h: Declare asprintf and vasprintf, based on
33847         vasprintf.h.
33848
33849         * lib/vasprintf.h: File removed.
33850
33851         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
33852         * lib/vasprintf.c: Ditto.
33853         * lib/xvasprintf.c: Ditto.
33854         * tests/test-vasprintf-posix.c: Ditto.
33855         * tests/test-vasprintf.c: Ditto.
33856
33857 2007-03-27  Bruno Haible  <bruno@clisp.org>
33858
33859         Make vasnprintf multithread-safe.
33860         * lib/vasnprintf.c (decimal_point_char): New function.
33861         (VASNPRINTF): Use it.
33862         Suggested by Simon Josefsson.
33863
33864 2007-03-27  Eric Blake  <ebb9@byu.net>
33865
33866         Support sub-second birthtime on cygwin.
33867         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
33868         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
33869         (get_stat_birthtime): Also work with st_birthtim.
33870
33871 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33872
33873         * lib/stat-time.h (USE_BIRTHTIME): Remove.
33874         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
33875         (get_stat_birthtime_ns): Do not try to use "spare" fields.
33876         (get_stat_birthtime_ns): Simplify compile-time tests.
33877         (get_stat_birthtime): Change the API to look like
33878         get_stat_mtime etc., except return a negative tv_nsec on error.
33879         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33880         Don't check for "spare" fields.
33881         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
33882         or for struct stat.st_birthtime, as these tests aren't used.
33883         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
33884
33885 2007-03-27  Bruno Haible  <bruno@clisp.org>
33886
33887         * lib/stat-time.h: Include <sys/stat.h>.
33888
33889 2007-03-27  James Youngman  <jay@gnu.org>
33890
33891         * lib/stat-time.h (get_stat_birthtime): New function for
33892           retrieving st_birthtime as provided by UFS2 (hence *BSD).
33893         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
33894           and its variants.
33895         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
33896         * modules/stat-time-test: New file.
33897         * tests/test-stat-time.c: New test, devised by Bruno Haible.
33898
33899 2007-03-26  Bruno Haible  <bruno@clisp.org>
33900
33901         Better support of signalling NaNs.
33902         * lib/atanl.c: Include isnanl.h.
33903         (atanl): Perform test for NaN at the beginning of the function and
33904         through a call to isnanl.
33905         * lib/cosl.c: Include isnanl.h.
33906         (cosl): Perform test for NaN at the beginning of the function and
33907         through a call to isnanl.
33908         * lib/ldexpl.c: Include isnanl.h.
33909         (ldexpl): Perform test for NaN through a call to isnanl.
33910         * lib/logl.c: Include isnanl.h.
33911         (logl): Perform test for NaN at the beginning of the function and
33912         through a call to isnanl.
33913         * lib/sinl.c: Include isnanl.h.
33914         (sinl): Perform test for NaN at the beginning of the function and
33915         through a call to isnanl.
33916         * lib/sqrtl.c: Include isnanl.h.
33917         (sqrtl): Perform test for NaN at the beginning of the function and
33918         through a call to isnanl.
33919         * lib/tanl.c: Include isnanl.h.
33920         (tanl): Perform test for NaN at the beginning of the function and
33921         through a call to isnanl.
33922         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
33923         * modules/mathl (Depends-on): Add isnanl.
33924
33925 2007-03-26  Eric Blake  <ebb9@byu.net>
33926
33927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
33928         regression in logic sense of previous patch.
33929
33930 2007-03-26  Bruno Haible  <bruno@clisp.org>
33931
33932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
33933         unportable shell command "if ! ...".
33934         Reported by Ralf Wildenhues.
33935
33936 2007-03-25  Bruno Haible  <bruno@clisp.org>
33937
33938         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
33939         <sysexits.h> file, and only add EX_CONFIG.
33940         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
33941         absolute file name and whether it is sufficient. Substitute also
33942         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
33943         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
33944         ABSOLUTE_SYSEXITS_H into sysexits.h.
33945
33946 2007-03-25  Bruno Haible  <bruno@clisp.org>
33947
33948         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
33949         hints is NULL.
33950
33951 2007-03-25  Bruno Haible  <bruno@clisp.org>
33952
33953         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
33954         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
33955
33956 2007-03-25  Bruno Haible  <bruno@clisp.org>
33957
33958         * lib/vasnprintf.c: Include langinfo.h.
33959         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
33960         multithread-safe.
33961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
33962         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
33963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
33969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33970         Reported by Simon Josefsson.
33971
33972 2007-03-25  Bruno Haible  <bruno@clisp.org>
33973
33974         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
33975         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
33976         * modules/vasnprintf (Depends-on): Add stdint.
33977
33978 2007-03-25  Bruno Haible  <bruno@clisp.org>
33979
33980         * modules/fpieee: New file.
33981         * m4/fpieee.m4: New file.
33982         * modules/isnan-nolibm (Depends-on): Add fpieee.
33983         * modules/isnanl-nolibm (Depends-on): Add fpieee.
33984         * modules/isnanl (Depends-on): Add fpieee.
33985
33986 2007-03-25  Bruno Haible  <bruno@clisp.org>
33987
33988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
33989
33990 2007-03-25  Bruno Haible  <bruno@clisp.org>
33991
33992         Avoid test failures on IRIX 6.5.
33993         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
33994         (main): Use it.
33995         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
33996         macros.
33997         (main): Use them.
33998
33999 2007-03-25  Bruno Haible  <bruno@clisp.org>
34000
34001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34002         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34003         exists but doesn't work.
34004         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34005         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34007         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34008
34009 2007-03-25  Bruno Haible  <bruno@clisp.org>
34010
34011         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34012         returns inf. Needed on IRIX 6.5.
34013
34014 2007-03-25  Bruno Haible  <bruno@clisp.org>
34015
34016         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34017         (main): Use isnanl instead of x != x idiom.
34018         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34019
34020         * tests/test-frexp.c: Include isnan.h.
34021         (main): Use isnan instead of x != x idiom.
34022         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34023
34024 2007-03-25  Bruno Haible  <bruno@clisp.org>
34025
34026         * tests/test-frexp.c (NaN): New function/macro.
34027         (main): Use it instead of 0.0 / 0.0.
34028         * tests/test-isnan.c (NaN): New function/macro.
34029         (main): Use it instead of 0.0 / 0.0.
34030         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34031         (test_function): Use it instead of 0.0 / 0.0.
34032         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34033         (test_function): Use it instead of 0.0 / 0.0.
34034         * tests/test-snprintf-posix.h (NaN): New function/macro.
34035         (test_function): Use it instead of 0.0 / 0.0.
34036         * tests/test-sprintf-posix.h (NaN): New function/macro.
34037         (test_function): Use it instead of 0.0 / 0.0.
34038         * tests/test-fprintf-posix.h (NaN): New function/macro.
34039         (test_function): Use it instead of 0.0 / 0.0.
34040         * tests/test-printf-posix.h (NaN): New function/macro.
34041         (test_function): Use it instead of 0.0 / 0.0.
34042
34043         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34044
34045 2007-03-25  Bruno Haible  <bruno@clisp.org>
34046
34047         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34048
34049 2007-03-25  Bruno Haible  <bruno@clisp.org>
34050
34051         * lib/regexec.c (merge_state_with_log): Make static.
34052
34053 2007-03-25  Bruno Haible  <bruno@clisp.org>
34054
34055         * lib/trigl.c (kernel_rem_pio2): Make static.
34056
34057 2007-03-25  Bruno Haible  <bruno@clisp.org>
34058
34059         * lib/sincosl.c (sincosl_table): Make static.
34060
34061 2007-03-25  Bruno Haible  <bruno@clisp.org>
34062
34063         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34064         if the compiler does not support C99.
34065
34066 2007-03-25  Bruno Haible  <bruno@clisp.org>
34067
34068         * modules/time (Makefile.am): Ensure all rule action lines start with a
34069         tab.
34070
34071 2007-03-24  Bruno Haible  <bruno@clisp.org>
34072
34073         * modules/tsearch-tests: New file.
34074         * tests/test-tsearch.sh: New file.
34075         * tests/test-tsearch.c: New file, mostly copied from glibc.
34076
34077         * modules/search-tests: New file.
34078         * tests/test-search.c: New file.
34079
34080         * modules/search: New file.
34081         * lib/search_.h: New file, incorporating lib/tsearch.h.
34082         * m4/search_h.m4: New file.
34083         * lib/tsearch.h: Remove file.
34084         * lib/tsearch.c: Include search.h instead of tsearch.h.
34085         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34086         HAVE_TSEARCH.
34087         * modules/tsearch (Files): Remove lib/tsearch.h.
34088         (Depends-on): Add search.
34089         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34090         (Include): Change tsearch.h into search.h.
34091
34092 2007-03-24  Bruno Haible  <bruno@clisp.org>
34093
34094         * modules/fpucw: New file.
34095         * lib/fpucw.h: New file.
34096         * lib/frexp.c: Include fpucw.h.
34097         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34098         (FUNC): Use them.
34099         * lib/printf-frexp.c: Include fpucw.h.
34100         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34101         (FUNC): Use them.
34102         * lib/vasnprintf.c: Include fpucw.h.
34103         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34104         'long double' calculations.
34105         * tests/test-frexpl.c: Include fpucw.h.
34106         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34107         * tests/test-printf-frexpl.c: Include fpucw.h.
34108         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34109         * modules/frexpl (Depends-on): Add fpucw.
34110         * modules/printf-frexpl (Depends-on): Likewise.
34111         * modules/fprintf-posix (Depends-on): Likewise.
34112         * modules/snprintf-posix (Depends-on): Likewise.
34113         * modules/sprintf-posix (Depends-on): Likewise.
34114         * modules/vasnprintf-posix (Depends-on): Likewise.
34115         * modules/vasprintf-posix (Depends-on): Likewise.
34116         * modules/vfprintf-posix (Depends-on): Likewise.
34117         * modules/vsnprintf-posix (Depends-on): Likewise.
34118         * modules/vsprintf-posix (Depends-on): Likewise.
34119         * modules/frexpl-tests (Depends-on): Likewise.
34120         * modules/printf-frexpl-tests (Depends-on): Likewise.
34121
34122 2007-03-24  Bruno Haible  <bruno@clisp.org>
34123
34124         * lib/float+.h: New file.
34125         * lib/isnan.c: Include float+.h.
34126         (SIZE): New macro.
34127         (FUNC): Compare only SIZE bytes of the value.
34128         * lib/vasnprintf.c: Include float+.h.
34129         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34130         SIZEOF_LDBL or SIZEOF_DBL bytes.
34131         * modules/isnan-nolibm (Files): Add lib/float+.h.
34132         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34133         * modules/isnanl (Files): Add lib/float+.h.
34134         * modules/vasnprintf (Files): Add lib/float+.h.
34135
34136 2007-03-24  Bruno Haible  <bruno@clisp.org>
34137
34138         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34139         include isnanl-nolibm.h.
34140
34141 2007-03-24  Bruno Haible  <bruno@clisp.org>
34142
34143         * tests/test-read-file.c (main): Don't produce spurious output for
34144         expected situations. Make the test fail if it encountered unexpected
34145         results.
34146
34147 2007-03-24  Bruno Haible  <bruno@clisp.org>
34148
34149         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34150         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34151
34152 2007-03-24  Bruno Haible  <bruno@clisp.org>
34153
34154         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34155
34156 2007-03-24  Bruno Haible  <bruno@clisp.org>
34157
34158         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34159         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34160
34161         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34162         * modules/utf8-ucs4: Turn into a symbolic link to module
34163         unistr/u8-mbtouc.
34164
34165         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34166         utf8-ucs4-unsafe.
34167         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34168         unistr/u8-mbtouc-unsafe.
34169
34170         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34171         * modules/utf16-ucs4: Turn into a symbolic link to module
34172         unistr/u16-mbtouc.
34173
34174         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34175         utf16-ucs4-unsafe.
34176         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34177         unistr/u16-mbtouc-unsafe.
34178
34179         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34180         * modules/ucs4-utf8: Turn into a symbolic link to module
34181         unistr/u8-ubtomb.
34182
34183         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34184         * modules/ucs4-utf16: Turn into a symbolic link to module
34185         unistr/u16-ubtomb.
34186
34187 2007-03-24  Bruno Haible  <bruno@clisp.org>
34188
34189         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34190         Enable the function only if HAVE_INLINE.
34191         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34192         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34193         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34194         Enable the function only if HAVE_INLINE.
34195         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34196         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34197         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34198         Enable the function only if HAVE_INLINE.
34199         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34200         Enable the function only if HAVE_INLINE.
34201         * modules/utf8-ucs4: Update.
34202         * modules/utf8-ucs4-unsafe: Update.
34203         * modules/utf16-ucs4: Update.
34204         * modules/utf16-ucs4-unsafe: Update.
34205         * modules/ucs4-utf8: Update.
34206         * modules/ucs4-utf16: Update.
34207
34208 2007-03-24  Bruno Haible  <bruno@clisp.org>
34209
34210         * lib/utf8-ucs4.h: Remove file.
34211         * lib/utf8-ucs4-unsafe.h: Remove file.
34212         * lib/utf16-ucs4.h: Remove file.
34213         * lib/utf16-ucs4-unsafe.h: Remove file.
34214         * lib/ucs4-utf8.h: Remove file.
34215         * lib/ucs4-utf16.h: Remove file.
34216         * lib/unistr.h: Include their previous contents.
34217         * m4/utf-ucs4.m4: Remove file.
34218         * m4/ucs4-utf.m4: Remove file.
34219         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34220         (Depends-on): Add unistr/base.
34221         (configure.ac): Remove gl_UTF_UCS4.
34222         (Makefile.am): Update.
34223         (Include): Change to unistr.h.
34224         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34225         (Depends-on): Add unistr/base.
34226         (configure.ac): Remove gl_UTF_UCS4.
34227         (Makefile.am): Update.
34228         (Include): Change to unistr.h.
34229         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34230         (Depends-on): Add unistr/base.
34231         (configure.ac): Remove gl_UTF_UCS4.
34232         (Makefile.am): Update.
34233         (Include): Change to unistr.h.
34234         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34235         (Depends-on): Add unistr/base.
34236         (configure.ac): Remove gl_UTF_UCS4.
34237         (Makefile.am): Update.
34238         (Include): Change to unistr.h.
34239         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34240         (Depends-on): Add unistr/base.
34241         (configure.ac): Remove gl_UCS4_UTF.
34242         (Makefile.am): Update.
34243         (Include): Change to unistr.h.
34244         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34245         (Depends-on): Add unistr/base.
34246         (configure.ac): Remove gl_UCS4_UTF.
34247         (Makefile.am): Update.
34248         (Include): Change to unistr.h.
34249         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34250         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34251         utf8-ucs4-unsafe.h.
34252         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34253         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34254         utf16-ucs4-unsafe.h.
34255         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34256         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34257         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34258         * lib/unistr/u8-strchr.c: Likewise.
34259         * lib/unistr/u8-strrchr.c: Likewise.
34260         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34261         * lib/unistr/u16-strchr.c: Likewise.
34262         * lib/unistr/u16-strrchr.c: Likewise.
34263         * lib/striconveh.c: Update.
34264         * lib/linebreak.c: Update.
34265
34266 2007-03-24  Bruno Haible  <bruno@clisp.org>
34267
34268         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34269         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34270
34271 2007-03-22  Bruno Haible  <bruno@clisp.org>
34272
34273         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34274
34275 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
34276
34277         * MODULES.html.sh (File system functions): New module write-any-file.
34278         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34279         * m4/write-any-file.m4: New files.
34280
34281 2007-03-23  Eric Blake  <ebb9@byu.net>
34282
34283         * gnulib-tool: Rearrange space-tab sequences, since some editors
34284         like to eat them.
34285
34286 2007-03-23  Eric Blake  <ebb9@byu.net>
34287
34288         * lib/version-etc.c (version_etc_va): Update license wording to
34289         be more concise.  Recommended by Richard Stallman.
34290
34291 2007-03-22  Bruno Haible  <bruno@clisp.org>
34292
34293         * lib/poll.c (MSG_PEEK): New fallback definition.
34294
34295 2007-03-22  Bruno Haible  <bruno@clisp.org>
34296
34297         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34298         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34299         (main): Update.
34300         Fixes a compilation error on BeOS.
34301
34302 2007-03-22  Bruno Haible  <bruno@clisp.org>
34303
34304         * modules/frexpl-tests: New file.
34305         * tests/test-frexpl.c: New file.
34306
34307         * modules/frexpl: New file.
34308         * m4/frexpl.m4: New file.
34309         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34310         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34312         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34313         (Depends-on): Add frexpl. Remove isnanl-nolibm.
34314         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34315
34316 2007-03-22  Bruno Haible  <bruno@clisp.org>
34317
34318         * lib/frexpl.c: Share code with lib/frexp.c.
34319         * modules/mathl (Files): Add lib/frexp.c.
34320         (Depends-on): Add isnanl-nolibm.
34321
34322 2007-03-22  Bruno Haible  <bruno@clisp.org>
34323
34324         * modules/printf-frexp (Files): Add m4/frexp.m4.
34325         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34326         only if the found frexp function actually works.
34327
34328 2007-03-22  Bruno Haible  <bruno@clisp.org>
34329
34330         * lib/frexp.c: Remove older implementation that uses divisions.
34331
34332 2007-03-21  Bruno Haible  <bruno@clisp.org>
34333
34334         * modules/frexp-tests: New file.
34335         * tests/test-frexp.c: New file.
34336
34337         * modules/frexp: New file.
34338         * lib/frexp.c: New file.
34339         * m4/frexp.m4: New file.
34340         * lib/math_.h (frexp): New declaration.
34341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34342         REPLACE_FREXP.
34343         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34344
34345 2007-03-21  Bruno Haible  <bruno@clisp.org>
34346
34347         * modules/isnanl-tests: New file.
34348         * tests/test-isnanl.c: New file.
34349
34350         * modules/isnanl: New file.
34351         * lib/isnanl.h: New file.
34352         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34353         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34354         gl_FUNC_ISNANL_WORKS.
34355         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34356         New macros.
34357
34358 2007-03-21  Bruno Haible  <bruno@clisp.org>
34359
34360         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34361         lib/isnanl.h.
34362         (Include): Update.
34363         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34364         * lib/vasnprintf.c: Update.
34365         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34366         tests/test-isnanl.h, remove tests/test-isnanl.c.
34367         (Makefile.am): Update.
34368         * tests/test-isnanl-nolibm.c: New file.
34369         * tests/test-isnanl.h: New file.
34370         * tests/test-isnanl.c: Remove file.
34371
34372 2007-03-21  Jim Meyering  <jim@meyering.net>
34373
34374         When trying to open ".", treat ESTALE like EACCES.
34375         * lib/savewd.c (savewd_save): Resort to forking not just upon
34376         failure with EACCES, but also when errno is ESTALE.
34377
34378 2007-03-20  Bruno Haible  <bruno@clisp.org>
34379
34380         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34381         Needed on AIX 5.1. Reported by Matthew Woehlke.
34382
34383 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34384
34385         Suggestions by Bruno Haible:
34386         * lib/acl-internal.h: Include "gettext.h" rather than rolling
34387         our own.
34388         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34389         * modules/acl (Depends-on): Add gettext.
34390
34391 2007-03-19  Bruno Haible  <bruno@clisp.org>
34392
34393         * modules/iconvme: Remove file.
34394         * lib/iconvme.h: Remove file.
34395         * lib/iconvme.c: Remove file.
34396         * m4/iconvme.m4: Remove file.
34397
34398 2007-03-19  Bruno Haible  <bruno@clisp.org>
34399
34400         * doc/relocatable-maint.texi: Break long shell script line.
34401         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34402
34403 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34404
34405         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34406         handle file_has_acl.
34407         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34408         * lib/acl.c: Move header inclusions and related macro defns into
34409         lib/acl-internal.h.
34410         (S_ISLNK): Remove defn, since that's now done for us.
34411         (file_has_acl): Move to lib/file-has-acl.c.
34412         Call acl_trivial if available.  This is the crucial part of the fix.
34413         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
34414         shared within the library.  Rewrite a bit, partly to make it compatible
34415         with the GNU coding style.
34416         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34417         Remove unnecessary double-quotes.
34418         Don't test for acl_to_text; the build will catch that.
34419         Replace acl_entries if it doesn't exist and it is needed.
34420         Check for -lsec and acl_trivial (as used on Solaris 10).
34421         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34422         lib/file-has-acl.c.
34423         (Depends-on): Add sys_stat, for S_ISLNK.
34424
34425 2007-03-19  Ben Pfaff  <blp@gnu.org>
34426
34427         * doc/gnulib.texi: Fix typos.
34428         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34429
34430 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34431
34432         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34433         If size is zero here, buf must be zero.
34434
34435 2007-03-19  Simon Josefsson  <simon@josefsson.org>
34436
34437         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
34438         <bruno@clisp.org>.
34439
34440 2007-03-18  Bruno Haible  <bruno@clisp.org>
34441
34442         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34443         Suggested by Eric Blake.
34444
34445 2007-03-18  Ben Pfaff  <blp@gnu.org>
34446
34447         * doc/relocatable.texi: Recommend using as prefix a directory
34448         that does not exist and will never be created.  Based on
34449         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34450         and others.
34451
34452 2007-03-17  Bruno Haible  <bruno@clisp.org>
34453
34454         * lib/fchownat.c: Include lchown.h.
34455
34456 2007-03-17  Bruno Haible  <bruno@clisp.org>
34457
34458         Fix endless loop when the given allocated size was > INT_MAX.
34459         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34460         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34461         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34462         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34463         * lib/sprintf.c (sprintf): Likewise.
34464
34465 2007-03-17  Bruno Haible  <bruno@clisp.org>
34466
34467         * tests/test-argp-2.sh (func_compare): Output a context diff.
34468
34469 2007-03-17  Bruno Haible  <bruno@clisp.org>
34470
34471         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34472         locale's decimal-point character.
34473
34474 2007-03-17  Bruno Haible  <bruno@clisp.org>
34475
34476         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34477         before comparing it. Needed because on some platforms (e.g. x86) a
34478         'long double' occupies less bytes than sizeof (long double).
34479
34480 2007-03-17  Bruno Haible  <bruno@clisp.org>
34481
34482         * tests/test-crc.c (main): Make printf statements 64-bit clean.
34483         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34484         * tests/test-getaddrinfo.c (simple): Likewise.
34485         * tests/test-read-file.c (main): Likewise.
34486
34487 2007-03-17  Bruno Haible  <bruno@clisp.org>
34488
34489         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34490
34491 2007-03-17  Bruno Haible  <bruno@clisp.org>
34492
34493         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34494         unused variable.
34495
34496 2007-03-17  Bruno Haible  <bruno@clisp.org>
34497
34498         * tests/test-c-strcasecmp.c: Include c-strcase.h.
34499         * tests/test-c-strncasecmp.c: Likewise.
34500
34501 2007-03-17  Bruno Haible  <bruno@clisp.org>
34502
34503         * modules/stdlib (Depends-on): Add unistd.
34504         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34505         Needed for MacOS X 10.3.
34506
34507 2007-03-17  Bruno Haible  <bruno@clisp.org>
34508
34509         * lib/unistr/u-strdup.h: Include <stdlib.h>.
34510
34511 2007-03-17  Bruno Haible  <bruno@clisp.org>
34512
34513         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34514
34515 2007-03-17  Bruno Haible  <bruno@clisp.org>
34516
34517         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34518         to reflect files copied from gnulib (with or without modifications).
34519         Suggested by Jim Meyering.
34520
34521 2007-03-17  Eric Blake  <ebb9@byu.net>
34522
34523         * NEWS: Document stdlib change from 2007-02-18.
34524
34525 2007-03-17  Jim Meyering  <jim@meyering.net>
34526
34527         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
34528         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
34529         someone uses a name containing shell meta-characters.
34530         Reported by Alfred M. Szmidt.
34531
34532         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
34533
34534 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34535
34536         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
34537         and copy gettext configuration files only if configure.ac contains
34538         a use of AM_GNU_GETTEXT_VERSION.
34539
34540 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
34541
34542         * build-aux/bootstrap (gnulib_name): New variable.
34543         (gnulib_tool_options): Use it.
34544
34545 2007-03-13  Simon Josefsson  <simon@josefsson.org>
34546
34547         * tests/test-des.c: Use new namespace.
34548
34549 2007-03-15  Bruno Haible  <bruno@clisp.org>
34550
34551         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
34552         Reported by James Youngman <jay@gnu.org>.
34553
34554 2007-03-15  Bruno Haible  <bruno@clisp.org>
34555
34556         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
34557         declared prototype. Needed with cc on OSF/1 5.1.
34558
34559 2007-03-15  Bruno Haible  <bruno@clisp.org>
34560
34561         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
34562         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
34563         (struct gl_list_implementation): Add dispose_fn argument to the
34564         'create_empty', 'create' methods.
34565         (struct gl_list_impl_base): Add field 'dispose_fn'.
34566         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
34567         argument.
34568         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
34569         dispose_fn argument.
34570         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
34571         dispose_fn on the dropped values.
34572         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
34573         dispose_fn argument.
34574         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
34575         dropped values.
34576         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
34577         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34578         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
34579         (gl_tree_remove_node): Call dispose_fn on the dropped value.
34580         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
34581         argument.
34582         (gl_tree_list_free): Call dispose_fn on the dropped values.
34583         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
34584         the dropped values.
34585         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
34586         Add dispose_fn argument.
34587         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
34588         Call dispose_fn on the dropped values.
34589         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
34590         Add dispose_fn argument.
34591         (gl_sublist_create): Initialize the 'dispose_fn' field.
34592         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
34593         * tests/test-array_list.c (main): Update.
34594         * tests/test-carray_list.c (main): Update.
34595         * tests/test-avltree_list.c (main): Update.
34596         * tests/test-rbtree_list.c (main): Update.
34597         * tests/test-avltreehash_list.c (main): Update.
34598         * tests/test-rbtreehash_list.c (main): Update.
34599         * tests/test-linked_list.c (main): Update.
34600         * tests/test-linkedhash_list.c (main): Update.
34601         * tests/test-array_oset.c (main): Update.
34602
34603 2007-03-15  Bruno Haible  <bruno@clisp.org>
34604
34605         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
34606         (gl_oset_create_empty): Add dispose_fn argument.
34607         (struct gl_oset_implementation): Add dispose_fn argument to
34608         'create_empty' method.
34609         (struct gl_oset_impl_base): Add dispose_fn field.
34610         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
34611         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
34612         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
34613         values.
34614         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
34615         (gl_tree_oset_free): Call dispose_fn on the dropped values.
34616         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34617         dropped value.
34618         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
34619         dropped value.
34620         * tests/test-array_oset.c (main): Update.
34621         * tests/test-avltree_oset.c (main): Update.
34622         * tests/test-rbtree_oset.c (main): Update.
34623         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
34624
34625 2007-03-13  Bruno Haible  <bruno@clisp.org>
34626
34627         * tests/test-stdbool.c (i): Update after last patch.
34628
34629 2007-03-12  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/quotearg.c: Include <wctype.h> early, before the definition of
34632         the iswprint macro. Needed on Solaris 2.5.1.
34633
34634 2007-03-12  Bruno Haible  <bruno@clisp.org>
34635
34636         * tests/test-printf-frexp.c (main): Declare x as volatile.
34637
34638 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34639
34640         * doc/gnulib.texi (Build robot for gnulib): New section.
34641
34642 2007-03-12  Jim Meyering  <jim@meyering.net>
34643
34644         * build-aux/bootstrap: New file.
34645         * build-aux/bootstrap.conf: New file, from coreutils.
34646
34647 2007-03-11  Bruno Haible  <bruno@clisp.org>
34648
34649         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
34650
34651 2007-03-12  Simon Josefsson  <simon@josefsson.org>
34652
34653         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
34654         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
34655         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
34656
34657 2007-03-11  Bruno Haible  <bruno@clisp.org>
34658
34659         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
34660         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
34661
34662 2007-03-11  Bruno Haible  <bruno@clisp.org>
34663
34664         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
34665         formula. Needed for SunPRO C 5.0.
34666
34667 2007-03-11  Bruno Haible  <bruno@clisp.org>
34668
34669         * modules/long-options (Depends-on): Add getopt.
34670
34671 2007-03-11  Bruno Haible  <bruno@clisp.org>
34672
34673         * modules/modechange (Depends-on): Add stdbool.
34674
34675 2007-03-11  Bruno Haible  <bruno@clisp.org>
34676
34677         * modules/i-ring (Depends-on): Add stdbool.
34678
34679 2007-03-11  Bruno Haible  <bruno@clisp.org>
34680
34681         * modules/gc-des (Depends-on): Add stdbool.
34682
34683 2007-03-11  Bruno Haible  <bruno@clisp.org>
34684
34685         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
34686
34687 2007-03-11  Bruno Haible  <bruno@clisp.org>
34688
34689         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
34690
34691 2007-03-11  Bruno Haible  <bruno@clisp.org>
34692
34693         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
34694
34695 2007-03-11  Bruno Haible  <bruno@clisp.org>
34696
34697         * lib/vasnprintf.c (sprintf): Undefine.
34698
34699 2007-03-11  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
34702         initializers in SunPRO C and Compaq C compilers.
34703
34704 2007-03-11  Bruno Haible  <bruno@clisp.org>
34705
34706         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
34707         decrementing code ANSI C compliant.
34708
34709 2007-03-11  Bruno Haible  <bruno@clisp.org>
34710
34711         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
34712         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
34713
34714 2007-03-11  Bruno Haible  <bruno@clisp.org>
34715
34716         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
34717         <stdbool.h> substitute doesn't pass.
34718
34719 2007-03-11  Bruno Haible  <bruno@clisp.org>
34720
34721         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
34722
34723 2007-03-11  Bruno Haible  <bruno@clisp.org>
34724
34725         * gnulib-tool (func_create_megatestdir): Create also an autobuild
34726         script, for submission to autobuild.josefsson.org.
34727
34728 2007-03-10  Bruno Haible  <bruno@clisp.org>
34729
34730         * modules/canonicalize-lgpl-tests: New file.
34731         * tests/test-canonicalize-lgpl.sh: New file.
34732         * tests/test-canonicalize-lgpl.c: New file.
34733
34734         * modules/c-strcase-tests: New file.
34735         * tests/test-c-strcase.sh: New file.
34736         * tests/test-c-strcasecmp.c: New file.
34737         * tests/test-c-strncasecmp.c: New file.
34738
34739         * modules/atexit-tests: New file.
34740         * tests/test-atexit.sh: New file.
34741         * tests/test-atexit.c: New file.
34742
34743 2007-03-10  Bruno Haible  <bruno@clisp.org>
34744
34745         * tests/test-binary-io.sh: Use temporary filenames that are not so
34746         likely to clash with those of other tests (in a parallel make).
34747         * tests/test-binary-io.c: Likewise.
34748
34749 2007-03-10  Bruno Haible  <bruno@clisp.org>
34750
34751         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
34752         fallback; use #error instead.
34753         Suggested by Simon Josefsson.
34754
34755 2007-03-10  Bruno Haible  <bruno@clisp.org>
34756
34757         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
34758         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
34759         first and the last.
34760
34761 2007-03-10  Bruno Haible  <bruno@clisp.org>
34762
34763         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
34764
34765 2007-03-10  Bruno Haible  <bruno@clisp.org>
34766
34767         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
34768         "make distcheck".
34769         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
34770         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
34771         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
34772
34773 2007-03-10  Bruno Haible  <bruno@clisp.org>
34774
34775         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
34776         variable.
34777         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
34778         variable.
34779
34780 2007-03-09  Eric Blake  <ebb9@byu.net>
34781         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
34782
34783         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
34784         types are not being provided by gnulib.
34785         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
34786         types are supported.
34787
34788 2007-03-10  Bruno Haible  <bruno@clisp.org>
34789
34790         * lib/stdio_.h (__attribute__): New macro.
34791         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
34792         vsprintf): Specify __attribute__ __format__ for GCC.
34793         Suggested by Eric Blake.
34794
34795 2007-03-09  Bruno Haible  <bruno@clisp.org>
34796
34797         * modules/printf-posix-tests: New file.
34798         * tests/test-printf-posix.sh: New file.
34799         * tests/test-printf-posix.c: New file.
34800
34801         * modules/printf-posix: New file.
34802         * lib/printf.c: New file.
34803         * m4/printf-posix-rpl.m4: New file.
34804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
34805         REPLACE_PRINTF.
34806         * lib/stdio_.h (printf): New declaration.
34807         (format, __format__, ____printf____, ____scanf____, ____strftime____,
34808         ____strfmon____): New macros.
34809         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
34810         REPLACE_PRINTF.
34811
34812 2007-03-09  Bruno Haible  <bruno@clisp.org>
34813
34814         * tests/test-vasnprintf-posix2.sh: New file.
34815         * tests/test-vasnprintf-posix2.c: New file.
34816         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
34817         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34818         (Makefile.am): Activate test-vasnprintf-posix2.sh.
34819
34820         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
34821         a locale dependent decimal point, rather than always '.'.
34822
34823 2007-03-09  Eric Blake  <ebb9@byu.net>
34824
34825         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
34826         spite of platforms like Tandem/NSK that define it to -1.
34827
34828 2007-03-08  Bruno Haible  <bruno@clisp.org>
34829
34830         * modules/vprintf-posix-tests: New file.
34831         * tests/test-vprintf-posix.sh: New file.
34832         * tests/test-vprintf-posix.c: New file.
34833         * tests/test-printf-posix.h: New file.
34834
34835         * modules/vprintf-posix: New file.
34836         * lib/vprintf.c: New file.
34837         * m4/vprintf-posix.m4: New file.
34838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
34839         REPLACE_VPRINTF.
34840         * lib/stdio_.h (vprintf): New declaration.
34841         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
34842         REPLACE_VPRINTF.
34843
34844 2007-03-08  Bruno Haible  <bruno@clisp.org>
34845
34846         * modules/fprintf-posix-tests: New file.
34847         * tests/test-fprintf-posix.sh: New file.
34848         * tests/test-fprintf-posix.c: New file.
34849
34850         * modules/fprintf-posix: New file.
34851         * lib/fprintf.c: New file.
34852         * m4/fprintf-posix.m4: New file.
34853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
34854         REPLACE_FPRINTF.
34855         * lib/stdio_.h (fprintf): New declaration.
34856         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
34857         REPLACE_FPRINTF.
34858
34859 2007-03-08  Bruno Haible  <bruno@clisp.org>
34860
34861         * modules/vfprintf-posix-tests: New file.
34862         * tests/test-vfprintf-posix.sh: New file.
34863         * tests/test-vfprintf-posix.c: New file.
34864         * tests/test-fprintf-posix.h: New file.
34865         * tests/test-fprintf-posix.out: New file.
34866
34867         * modules/vfprintf-posix: New file.
34868         * lib/vfprintf.c: New file.
34869         * m4/vfprintf-posix.m4: New file.
34870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
34871         REPLACE_VFPRINTF.
34872         * lib/stdio_.h (vfprintf): New declaration.
34873         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
34874         REPLACE_VFPRINTF.
34875
34876 2007-03-08  Bruno Haible  <bruno@clisp.org>
34877
34878         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
34879
34880 2007-03-08  Bruno Haible  <bruno@clisp.org>
34881
34882         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
34883         instead of 'expr' invocations.
34884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34887         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34888         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34889         Suggested by Paul Eggert.
34890
34891 2007-03-08  Bruno Haible  <bruno@clisp.org>
34892
34893         * modules/fseterr-tests: New file.
34894         * tests/test-fseterr.c: New file.
34895
34896         * modules/fseterr: New file.
34897         * lib/fseterr.h: New file.
34898         * lib/fseterr.c: New file.
34899
34900 2007-03-08  Bruno Haible  <bruno@clisp.org>
34901
34902         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
34903         * lib/getopt_.h: Likewise.
34904         * lib/mbswidth.h: Likewise.
34905         * lib/setenv.h: Likewise.
34906         * lib/vasnprintf.h: Likewise.
34907         * lib/vasprintf.h: Likewise.
34908         * lib/verror.h: Likewise.
34909         * lib/xsetenv.h: Likewise.
34910         * lib/xvasprintf.h: Likewise.
34911
34912 2007-03-08  Jim Meyering  <jim@meyering.net>
34913
34914         * users.txt: Add parted.
34915
34916         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
34917
34918 2007-03-07  Bruno Haible  <bruno@clisp.org>
34919
34920         * m4/printf.m4: Make the shell script snippets copy&pastable.
34921
34922 2007-03-02  Bruno Haible  <bruno@clisp.org>
34923
34924         * lib/netinet_in_.h: New file.
34925         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
34926         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
34927         * modules/netinet_in (Files): Add lib/netinet_in_.h.
34928         (Depends-on): Add absolute-header.
34929         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
34930         into netinet/in.h.
34931
34932 2007-03-03  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/sys_select_.h: New file.
34935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
34936         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
34937         * modules/sys_select (Files): Add lib/sys_select_.h.
34938         (Depends-on): Add absolute-header.
34939         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
34940         into sys/select.h.
34941
34942 2007-03-02  Bruno Haible  <bruno@clisp.org>
34943
34944         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
34945         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
34946         values.
34947         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
34948         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
34949         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
34950         * modules/sys_socket (Depends-on): Add absolute-header.
34951         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
34952         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
34953         (Include): Remove requirement of inclusion of <sys/types.h>.
34954
34955 2007-03-02  Bruno Haible  <bruno@clisp.org>
34956
34957         * lib/byteswap_.h (bswap_32): Fix formula.
34958
34959 2007-03-06  Bruno Haible  <bruno@clisp.org>
34960
34961         * modules/sprintf-posix-tests: New file.
34962         * tests/test-sprintf-posix.c: New file.
34963
34964         * modules/sprintf-posix: New file.
34965         * lib/sprintf.c: New file.
34966         * m4/sprintf-posix.m4: New file.
34967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
34968         REPLACE_SPRINTF.
34969         * lib/stdio_.h (sprintf): New declaration.
34970         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
34971         REPLACE_SPRINTF.
34972
34973 2007-03-06  Bruno Haible  <bruno@clisp.org>
34974
34975         * modules/vsprintf-posix-tests: New file.
34976         * tests/test-vsprintf-posix.c: New file.
34977         * tests/test-sprintf-posix.h: New file.
34978
34979         * modules/vsprintf-posix: New file.
34980         * lib/vsprintf.c: New file.
34981         * m4/vsprintf-posix.m4: New file.
34982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
34983         REPLACE_VSPRINTF.
34984         * lib/stdio_.h (vsprintf): New declaration.
34985         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
34986         REPLACE_VSPRINTF.
34987
34988 2007-03-06  Bruno Haible  <bruno@clisp.org>
34989
34990         * modules/vsnprintf (Depend-on): Remove minmax.
34991
34992 2007-03-06  Bruno Haible  <bruno@clisp.org>
34993
34994         * modules/snprintf-posix-tests: New file.
34995         * tests/test-snprintf-posix.c: New file.
34996
34997         * modules/snprintf-posix: New file.
34998         * m4/snprintf-posix.m4: New file.
34999         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35000         gl_FUNC_SNPRINTF.
35001         (gl_FUNC_SNPRINTF): Invoke it.
35002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35003         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35004         is set.
35005         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35006
35007 2007-03-06  Bruno Haible  <bruno@clisp.org>
35008
35009         * modules/vsnprintf-posix-tests: New file.
35010         * tests/test-vsnprintf-posix.c: New file.
35011         * tests/test-snprintf-posix.h: New file.
35012
35013         * modules/vsnprintf-posix: New file.
35014         * m4/vsnprintf-posix.m4: New file.
35015         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35016         gl_FUNC_VSNPRINTF.
35017         (gl_FUNC_VSNPRINTF): Invoke it.
35018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35019         * lib/stdio_.h (vsnprintf): Define as a replacement if
35020         REPLACE_VSNPRINTF is set.
35021         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35022
35023 2007-03-06  Bruno Haible  <bruno@clisp.org>
35024
35025         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35027
35028 2007-03-06  Bruno Haible  <bruno@clisp.org>
35029
35030         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35031         (asinl): Declare also if HAVE_DECL_ASINL is set.
35032         (atanl): Declare also if HAVE_DECL_ATANL is set.
35033         (ceill): Declare also if HAVE_DECL_CEILL is set.
35034         (cosl): Declare also if HAVE_DECL_COSL is set.
35035         (expl): Declare also if HAVE_DECL_EXPL is set.
35036         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35037         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35038         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35039         (logl): Declare also if HAVE_DECL_LOGL is set.
35040         (sinl): Declare also if HAVE_DECL_SINL is set.
35041         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35042         (tanl): Declare also if HAVE_DECL_TANL is set.
35043         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35046         declaration of frexpl, ldexpl.
35047         * modules/printf-frexpl (Depends-on): Add math.
35048         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35049
35050 2007-03-05  Bruno Haible  <bruno@clisp.org>
35051
35052         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35053         frexpl and ldexpl are declared.
35054         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35055
35056 2007-03-05  Bruno Haible  <bruno@clisp.org>
35057
35058         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35059         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35060
35061 2007-03-05  Bruno Haible  <bruno@clisp.org>
35062
35063         * lib/stdio_.h: Include <stddef.h>.
35064
35065 2007-03-05  Bruno Haible  <bruno@clisp.org>
35066
35067         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35068
35069 2007-03-05  Bruno Haible  <bruno@clisp.org>
35070
35071         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35072         NetBSD 4, from Ralf Wildenhues.
35073
35074 2007-03-04  Bruno Haible  <bruno@clisp.org>
35075
35076         * lib/vasprintf.h: Update #if logic for the case when the functions
35077         exist but are overridden.
35078
35079 2007-03-04  Bruno Haible  <bruno@clisp.org>
35080
35081         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35082         implementations: glibc-2.4 and MacOS X 10.3.
35083         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35084         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35085         * tests/test-vasprintf-posix.c (test_function): Likewise.
35086
35087 2007-03-04  Bruno Haible  <bruno@clisp.org>
35088
35089         * modules/vasprintf-posix-tests: New file.
35090         * tests/test-vasprintf-posix.c: New file.
35091
35092         * modules/vasprintf-posix: New file.
35093         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35094         defined.
35095         * m4/vasprintf-posix.m4: New file.
35096         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35097         gl_FUNC_VASPRINTF.
35098         (gl_FUNC_VASPRINTF): Invoke it.
35099         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35100         here.
35101         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35102
35103 2007-03-04  Bruno Haible  <bruno@clisp.org>
35104
35105         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35106         REPLACE_GETTIMEOFDAY.
35107         * modules/sys_time (Makefile.am): Likewise.
35108         * m4/sys_time_h.m4: Likewise.
35109         * m4/gettimeofday.m4: Likewise.
35110
35111 2007-03-04  Bruno Haible  <bruno@clisp.org>
35112
35113         * modules/vasnprintf-posix-tests: New file.
35114         * tests/test-vasnprintf-posix.c: New file.
35115
35116         * modules/vasnprintf-posix: New file.
35117         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35118         printf-frexpl.h.
35119         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35120         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35121         REPLACE_VASNPRINTF is defined.
35122         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35123         gl_FUNC_VASNPRINTF.
35124         (gl_FUNC_VASNPRINTF): Invoke it.
35125         * m4/vasnprintf-posix.m4: New file.
35126         * m4/printf.m4: New file.
35127
35128 2007-03-04  Bruno Haible  <bruno@clisp.org>
35129
35130         Compile progreloc.c only if --enable-relocatable is specified.
35131         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35132         if --enable-relocatable was specified.
35133         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35134         lib_SOURCES.
35135
35136 2007-03-04  Jim Meyering  <jim@meyering.net>
35137
35138         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35139         Use it consistently, rather than enumerating errno constants.
35140
35141 2007-03-04  Bruno Haible  <bruno@clisp.org>
35142
35143         * modules/xvasprintf-tests: New file.
35144         * tests/test-xvasprintf.c: New file.
35145
35146         * modules/vasprintf-tests: New file.
35147         * tests/test-vasprintf.c: New file.
35148
35149         * modules/vasnprintf-tests: New file.
35150         * tests/test-vasnprintf.c: New file.
35151
35152         * modules/vsnprintf-tests: New file.
35153         * tests/test-vsnprintf.c: New file.
35154
35155         * modules/snprintf-tests: New file.
35156         * tests/test-snprintf.c: New file.
35157
35158 2007-03-04  Bruno Haible  <bruno@clisp.org>
35159
35160         Compile relocatable.c only if --enable-relocatable is specified.
35161         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35162         gl_RELOCATABLE_LIBRARY.
35163         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35164         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35165         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35166         gl_RELOCATABLE_LIBRARY.
35167         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35168         (Makefile.am): Remove lib_SOURCES.
35169         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35170         gl_RELOCATABLE_LIBRARY.
35171         (Makefile.am): Remove lib_SOURCES.
35172         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35173         always.
35174         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35175         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35176
35177 2007-03-04  Bruno Haible  <bruno@clisp.org>
35178
35179         * modules/argmatch-tests: New file.
35180         * tests/test-argmatch.c: New file.
35181
35182         * tests/test-allocsa.c (main): Halve the number of loop runs.
35183
35184         * modules/alloca-opt-tests: New file.
35185         * tests/test-alloca-opt.c: New file.
35186
35187 2007-03-04  Jim Meyering  <jim@meyering.net>
35188
35189         Work around difference between Linux ACLs and Solaris 10 ZFS.
35190         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35191         for EINVAL.
35192
35193 2007-03-03  Bruno Haible  <bruno@clisp.org>
35194
35195         * modules/relocatable-prog (Depends-on): Add back progreloc's
35196         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35197
35198 2007-03-03  Bruno Haible  <bruno@clisp.org>
35199
35200         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35201         * modules/relocatable-lib: New file.
35202
35203 2007-03-03  Bruno Haible  <bruno@clisp.org>
35204
35205         * modules/relocatable-prog: Renamed from modules/relocatable.
35206         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35207
35208 2007-03-03  Bruno Haible  <bruno@clisp.org>
35209
35210         * modules/relocatable-script (Files): Add doc/relocatable.texi,
35211         m4/relocatable-lib.m4.
35212         (Depends-on): Remove 'relocatable'.
35213         (configure.ac): Add gl_RELOCATABLE_NOP.
35214
35215 2007-03-03  Bruno Haible  <bruno@clisp.org>
35216
35217         * modules/relocatable-prog-wrapper: New file.
35218         * modules/relocatable (Depends-on): Add it. Remove all other
35219         dependencies except progname.
35220         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35221
35222         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35223         (gl_FUNC_STRERROR): Nop.
35224         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35225
35226         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35227         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35228
35229         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35230         (gl_FUNC_READLINK): Update.
35231
35232         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35233
35234 2007-03-03  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/xreadlink.c: Include <unistd.h> unconditionally.
35237         * modules/xreadlink (Depends-on): Add unistd.
35238         * modules/xreadlink-with-size (Depends-on): Likewise.
35239
35240 2007-03-03  Bruno Haible  <bruno@clisp.org>
35241
35242         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35243         extracted from gt_FUNC_SETENV.
35244         (gt_FUNC_SETENV): Remove macro.
35245         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35246         remove gt_FUNC_SETENV.
35247
35248 2007-03-03  Bruno Haible  <bruno@clisp.org>
35249
35250         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35251         ENABLE_RELOCATABLE here.
35252         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35253
35254 2007-03-03  Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/rbtreehash-list-tests (Depends-on): Add progname.
35257         * tests/test-rbtreehash_list.c: Include progname.h.
35258         (main): Call set_program_name.
35259
35260         * modules/rbtree-oset-tests (Depends-on): Add progname.
35261         * tests/test-rbtree_oset.c: Include progname.h.
35262         (main): Call set_program_name.
35263
35264         * modules/rbtree-list-tests (Depends-on): Add progname.
35265         * tests/test-rbtree_list.c: Include progname.h.
35266         (main): Call set_program_name.
35267
35268         * modules/linked-list-tests (Depends-on): Add progname.
35269         * tests/test-linked_list.c: Include progname.h.
35270         (main): Call set_program_name.
35271
35272 2007-03-03  Bruno Haible  <bruno@clisp.org>
35273
35274         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35275         All uses of __restrict changed to _Restrict_.
35276         * lib/glob_.h (__restrict): Remove macro.
35277
35278 2007-03-02  Bruno Haible  <bruno@clisp.org>
35279
35280         * modules/gettext (configure.ac): Require gettext infrastructure
35281         from version 0.16.1.
35282
35283 2007-03-02  Bruno Haible  <bruno@clisp.org>
35284
35285         * modules/linkedhash-list-tests (Depends-on): Add progname.
35286         * tests/test-linkedhash_list.c: Include progname.h.
35287         (main): Call set_program_name.
35288
35289         * modules/carray-list-tests (Depends-on): Add progname.
35290         * tests/test-carray_list.c: Include progname.h.
35291         (main): Call set_program_name.
35292
35293         * modules/avltreehash-list-tests (Depends-on): Add progname.
35294         * tests/test-avltreehash_list.c: Include progname.h.
35295         (main): Call set_program_name.
35296
35297         * modules/avltree-oset-tests (Depends-on): Add progname.
35298         * tests/test-avltree_oset.c: Include progname.h.
35299         (main): Call set_program_name.
35300
35301         * modules/avltree-list-tests (Depends-on): Add progname.
35302         * tests/test-avltree_list.c: Include progname.h.
35303         (main): Call set_program_name.
35304
35305         * modules/array-oset-tests (Depends-on): Add progname.
35306         * tests/test-array_oset.c: Include progname.h.
35307         (main): Call set_program_name.
35308
35309         * modules/array-list-tests (Depends-on): Add progname.
35310         * tests/test-array_list.c: Include progname.h.
35311         (main): Call set_program_name.
35312
35313         * modules/argp-tests (Depends-on): Add progname.
35314         * tests/test-argp.c: Include argp.h first. Include progname.h.
35315         (main): Call set_program_name.
35316
35317 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
35318
35319         * doc/gnulib-tool.texi (Initial import): Reword description of
35320         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35321         limited effect even if defined after the first system include.
35322
35323 2007-03-01  Bruno Haible  <bruno@clisp.org>
35324
35325         * build-aux/config.libpath: Update to libtool-1.5.22.
35326         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35327
35328 2007-03-01  Bruno Haible  <bruno@clisp.org>
35329
35330         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35331         foo_CFLAGS.
35332         Reported by Ralf Wildenhues.
35333
35334 2007-03-01  Bruno Haible  <bruno@clisp.org>
35335
35336         * build-aux/install-reloc: Remove object files left over by some
35337         compilers.
35338         Reported by Ralf Wildenhues.
35339
35340 2007-03-01  Bruno Haible  <bruno@clisp.org>
35341
35342         * build-aux/install-reloc: Break long lines.
35343
35344 2007-03-01  Bruno Haible  <bruno@clisp.org>
35345
35346         * doc/relocatable.texi: Document that it may not work on OpenBSD.
35347         Reported by Ralf Wildenhues.
35348
35349 2007-03-01  Bruno Haible  <bruno@clisp.org>
35350
35351         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35352         include ordering constraints.
35353
35354 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35355
35356         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35358         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35359         as another example.
35360         * lib/time_.h: Fix misspelling.
35361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35362         Require gl_HEADER_TIME_H_DEFAULTS.
35363         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35364         * m4/time_r.m4 (gl_TIME_R): Likewise.
35365         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35366
35367 2007-03-01  Bruno Haible  <bruno@clisp.org>
35368
35369         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35370         * m4/utimens.m4 (gl_UTIMENS): Likewise.
35371
35372 2007-03-01  Jim Meyering  <jim@meyering.net>
35373
35374         * modules/xreadlink (Maintainer): Add my name.
35375         * modules/xreadlink-with-size (Depends-on): Alphabetize.
35376
35377 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
35378             Bruno Haible  <bruno@clisp.org>
35379
35380         * build-aux/install-reloc: Compile also c-ctype.c.
35381         * build-aux/relocatable.sh.in: New file.
35382         * doc/relocatable.texi: New file.
35383         * doc/relocatable-maint.texi: New file.
35384         * doc/gnulib.texi: Include relocatable-maint.texi.
35385         * lib/progreloc.c: Include unistd.h unconditionally.
35386         * lib/relocwrapper.c: Include unistd.h unconditionally.
35387         Include c-ctype.h.
35388         (add_dotbin): Use c_tolower.
35389         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35390         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35391         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35392         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35393         to m4/relocatable-lib.m4.
35394         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35395         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35396         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35397         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35398         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35399         * modules/relocatable: New file.
35400         * modules/relocatable-lib: New file.
35401         * modules/relocatable-script: New file.
35402
35403 2007-02-28  Bruno Haible  <bruno@clisp.org>
35404
35405         Import --enable-relocatable infrastructure.
35406         * build-aux/config.libpath: New file, from GNU gettext.
35407         * build-aux/install-reloc: New file, from GNU gettext.
35408         * build-aux/reloc-ldflags: New file, from GNU gettext.
35409         * lib/relocatable.h: New file, from GNU gettext.
35410         * lib/relocatable.c: New file, from GNU gettext.
35411         * lib/relocwrapper.c: New file, from GNU gettext.
35412         * m4/relocatable.m4: New file, from GNU gettext.
35413
35414 2007-02-28  Bruno Haible  <bruno@clisp.org>
35415
35416         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35417
35418         * modules/xreadlink: New file, from GNU gettext with modifications.
35419         * lib/xreadlink.c: New file, from GNU gettext.
35420         * lib/xreadlink.h: Add comments.
35421         (xreadlink): New declaration.
35422
35423         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35424         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35425         lib/xreadlink-with-size.c.
35426         (configure.ac): Remove gl_XREADLINK invocation.
35427         (Makefile.am): Augment lib_SOURCES.
35428         * m4/xreadlink.m4: Remove file.
35429         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35430         (xreadlink_with_size): Renamed from xreadink.
35431         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35432         * modules/canonicalize (Depends-on): Replace xreadlink with
35433         xreadlink-with-size.
35434         * lib/canonicalize.c (canonicalize_filename_mode): Update.
35435
35436 2007-02-25  Jim Meyering  <jim@meyering.net>
35437
35438         * build-aux/announce-gen: When complaining about excess arguments,
35439         list them.
35440
35441 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35442
35443         * README: Document signed integer overflow situation more
35444         accurately.
35445
35446 2007-02-25  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35449         'a' or 'A' conversion.
35450
35451 2007-02-25  Bruno Haible  <bruno@clisp.org>
35452
35453         * modules/filename: Renamed from modules/pathname.
35454         (Files): Replace lib/pathname.h with lib/filename.h. Replace
35455         lib/concatpath.c with lib/concat-filename.c.
35456         (Makefile.am): Update.
35457         (Include): Replace pathname.h with filename.h.
35458         * lib/filename.h: Renamed from lib/pathname.h.
35459         (concatenated_filename): Renamed from concatenated_pathname.
35460         * lib/concat-filename.c: Renamed from lib/concatpath.c.
35461         (concatenated_filename): Renamed from concatenated_pathname.
35462         * lib/findprog.c: Include filename.h instead of pathname.h.
35463         (find_in_path): Update.
35464         * lib/javacomp.c: Include filename.h instead of pathname.h.
35465         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35466         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35467         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35468         is_oldgcj_14_13_usable, is_javac_usable): Update.
35469         * lib/javaexec.c: Include filename.h instead of pathname.h.
35470         (execute_java_class): Update.
35471         * modules/findprog: Update.
35472         * modules/javacomp: Update.
35473         * modules/javaexec: Update.
35474         * MODULES.html.sh (File system functions): Add 'filename', remove
35475         'pathname'.
35476
35477 2007-02-25  Bruno Haible  <bruno@clisp.org>
35478
35479         * modules/printf-frexpl-tests: New file.
35480         * tests/test-printf-frexpl.c: New file.
35481
35482         * modules/printf-frexpl: New file.
35483         * lib/printf-frexpl.h: New file.
35484         * lib/printf-frexpl.c: New file.
35485         * m4/printf-frexpl.m4: New file.
35486
35487 2007-02-25  Bruno Haible  <bruno@clisp.org>
35488
35489         * modules/printf-frexp-tests: New file.
35490         * tests/test-printf-frexp.c: New file.
35491
35492         * modules/printf-frexp: New file.
35493         * lib/printf-frexp.h: New file.
35494         * lib/printf-frexp.c: New file.
35495         * m4/printf-frexp.m4: New file.
35496
35497 2007-02-25  Bruno Haible  <bruno@clisp.org>
35498
35499         Assume automake >= 1.10 for the tests.
35500         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35501         * modules/arctwo-tests: Likewise.
35502         * modules/argp-tests: Likewise.
35503         * modules/avltree-list-tests: Likewise.
35504         * modules/avltree-oset-tests: Likewise.
35505         * modules/avltreehash-list-tests: Likewise.
35506         * modules/carray-list-tests: Likewise.
35507         * modules/crc-tests: Likewise.
35508         * modules/des-tests: Likewise.
35509         * modules/gc-arcfour-tests: Likewise.
35510         * modules/gc-arctwo-tests: Likewise.
35511         * modules/gc-des-tests: Likewise.
35512         * modules/gc-hmac-md5-tests: Likewise.
35513         * modules/gc-hmac-sha1-tests: Likewise.
35514         * modules/gc-md2-tests: Likewise.
35515         * modules/gc-md4-tests: Likewise.
35516         * modules/gc-md5-tests: Likewise.
35517         * modules/gc-pbkdf2-sha1-tests: Likewise.
35518         * modules/gc-rijndael-tests: Likewise.
35519         * modules/gc-sha1-tests: Likewise.
35520         * modules/gc-tests: Likewise.
35521         * modules/getaddrinfo-tests: Likewise.
35522         * modules/hmac-md5-tests: Likewise.
35523         * modules/hmac-sha1-tests: Likewise.
35524         * modules/linked-list-tests: Likewise.
35525         * modules/linkedhash-list-tests: Likewise.
35526         * modules/lock-tests: Likewise.
35527         * modules/md2-tests: Likewise.
35528         * modules/md4-tests: Likewise.
35529         * modules/md5-tests: Likewise.
35530         * modules/rbtree-list-tests: Likewise.
35531         * modules/rbtree-oset-tests: Likewise.
35532         * modules/rbtreehash-list-tests: Likewise.
35533         * modules/read-file-tests: Likewise.
35534         * modules/rijndael-tests: Likewise.
35535         * modules/stdint-tests: Likewise.
35536         * modules/tls-tests: Likewise.
35537
35538 2007-02-24  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
35541         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
35542         function; instead check whether isnan with a double argument links.
35543         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
35544         function; instead check whether isnan with a 'long double' argument
35545         links.
35546         Reported by Eric Blake <ebb9@byu.net>.
35547
35548 2007-02-24  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
35551         defined.
35552         * lib/isnanl.c: Remove all code. Just include isnan.c.
35553         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
35554
35555 2007-02-25  Jim Meyering  <jim@meyering.net>
35556
35557         Avoid conflicting types for 'unsetenv' on FreeBSD.
35558         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
35559         conflicting with FreeBSD's (5.0 and 6.1) function declaration
35560         in stdlib.h.
35561
35562 2007-02-24  Bruno Haible  <bruno@clisp.org>
35563
35564         * modules/isnanl-nolibm-tests: New file.
35565         * tests/test-isnanl.c: New file.
35566
35567         * modules/isnanl-nolibm: New file.
35568         * lib/isnanl.h: New file.
35569         * lib/isnanl.c: New file.
35570         * m4/isnanl.m4: New file.
35571
35572 2007-02-24  Bruno Haible  <bruno@clisp.org>
35573
35574         * modules/isnan-nolibm-tests: New file.
35575         * tests/test-isnan.c: New file.
35576
35577         * modules/isnan-nolibm: New file.
35578         * lib/isnan.h: New file.
35579         * lib/isnan.c: New file.
35580         * m4/isnan.m4: New file.
35581
35582 2007-02-24  Bruno Haible  <bruno@clisp.org>
35583
35584         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
35585         assume that an exponent fits in 20 bits.
35586
35587 2007-02-24  Jim Meyering  <jim@meyering.net>
35588
35589         * m4/regex.m4: Update the description of the configure-time option,
35590         --without-included-regex, to state accurately what the defaults are,
35591         and perhaps to give people an idea why using this option is risky.
35592
35593 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35594
35595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
35596         loops on small arguments.  This attempts to avoid the problem
35597         Bruno Haible reported for AIX 4.3.2 in
35598         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
35599
35600 2007-02-23  Bruno Haible  <bruno@clisp.org>
35601
35602         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
35603         Needed for help2man.
35604
35605 2007-02-23  Karl Berry  <karl@gnu.org>
35606
35607         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
35608         exists, foo.h should be cvs-ignored, not committed.
35609
35610 2007-02-23  Eric Blake  <ebb9@byu.net>
35611
35612         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
35613         * lib/stat-time.h (includes): Likewise.
35614         * lib/utimecmp.c (includes): Likewise.
35615         * lib/utimens.h (includes): Likewise.
35616         * lib/getdate.y (includes): Also include "timespec.h" for use
35617         internal to the module.
35618         * modules/utimens (Depends-on): Revert yesterday's patch.
35619         * modules/nanosleep (Depends-on): Add missing dependency.
35620
35621 2007-02-22  Bruno Haible  <bruno@clisp.org>
35622
35623         * lib/glob.c: Don't include getlogin_r.h.
35624
35625 2007-02-22  Jim Meyering  <jim@meyering.net>
35626
35627         * modules/utimens (Depends-on): Add timespec, required for
35628         utimens.h's inclusion of timespec.h.
35629
35630 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35631
35632         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
35633         long unreadable paths in GNU/Linux.  Problem reported by Andreas
35634         Schwab in
35635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
35636         I'll try to think of a better way to fix the Solaris problem.
35637
35638         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
35639         like glibc; on Solaris 10, it fails with errno == EINVAL.
35640         POSIX says the behavior is unspecified if the first argument is NULL,
35641         so play it safe and never pass NULL to the system getcwd.
35642
35643 2007-02-21  Jim Meyering  <jim@meyering.net>
35644
35645         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
35646         of gettimeofday.  It would conflict with the one now always
35647         provided via sys_time_.h.  Reported by Matthew Woehlke, as
35648         an IRIX 6.5 build failure.
35649
35650 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35651
35652         Minor fixups to port to Solaris 10 with Sun C 5.8.
35653         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
35654         * modules/getcwd (Depends-on): Add dirfd.
35655         * lib/putenv.c (putenv): #undef it.
35656         (rpl_putenv): New decl.
35657         (malloc, free): Include <stdlib.h> rather than prototyping separately.
35658
35659 2007-02-20  Bruno Haible  <bruno@clisp.org>
35660
35661         * modules/stdio-tests: New file.
35662         * tests/test-stdio.c: New file.
35663
35664         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
35665         (Depends-on): Add stdio.
35666         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35667         (Include): Use <stdio.h> instead of vsnprintf.h.
35668         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35669         HAVE_DECL_VSNPRINTF.
35670         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
35671
35672         * modules/snprintf (Files): Remove lib/snprintf.h.
35673         (Depends-on): Add stdio.
35674         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35675         (Include): Use <stdio.h> instead of snprintf.h.
35676         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
35677         HAVE_DECL_SNPRINTF.
35678         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
35679         * lib/getaddrinfo.c: Likewise.
35680
35681         * modules/stdio: New file.
35682         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
35683         * lib/snprintf.h: Remove file.
35684         * lib/vsnprintf.h: Remove file.
35685         * lib/.cppi-disable: Remove snprintf.h.
35686         * m4/stdio_h.m4: New file.
35687         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
35688
35689 2007-02-20  Jim Meyering  <jim@meyering.net>
35690
35691         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
35692         used by e.g., mingw.  From Bruno Haible.
35693
35694 2007-02-19  Bruno Haible  <bruno@clisp.org>
35695
35696         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
35697         warnings.
35698         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35699
35700 2007-02-19  Bruno Haible  <bruno@clisp.org>
35701
35702         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
35703         from mingw users.
35704
35705 2007-02-19  Bruno Haible  <bruno@clisp.org>
35706
35707         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
35708         warnings.
35709         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
35710
35711 2007-02-19  Jim Meyering  <jim@meyering.net>
35712
35713         Don't use FD after a successful "fdopendir (fd)".
35714         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
35715         Reset it by calling dirfd on the just-obtained DIR*.
35716
35717         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
35718         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
35719
35720 2007-02-18  Bruno Haible  <bruno@clisp.org>
35721
35722         * lib/readlink.c: Include <unistd.h>.
35723         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
35724         HAVE_READLINK.
35725         * modules/readlink (Depends-on): Add unistd.
35726         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35727         (Include): Add <unistd.h>.
35728
35729         * lib/getlogin_r.h: Remove file.
35730         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
35731         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
35732         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
35733         HAVE_DECL_GETLOGIN_R.
35734         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
35735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35736         (Include): Use <unistd.h> instead of getlogin_r.h.
35737
35738         * lib/getcwd.h: Remove file.
35739         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
35740         * lib/xgetcwd.c: Likewise.
35741         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
35742         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
35743         * modules/getcwd (Files): Remove lib/getcwd.h.
35744         (Depends-on): Add unistd.
35745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35746         (Include): Use <unistd.h> instad of getcwd.h.
35747
35748         * lib/ftruncate.c: Include <unistd.h> first.
35749         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
35750         Set HAVE_FTRUNCATE.
35751         * modules/ftruncate (Depends-on): Add unistd.
35752         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35753
35754         * lib/fchdir.c: Include <unistd.h> first.
35755         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
35756         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
35757         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
35758         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35759         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
35760
35761         * lib/dup2.c: Include <unistd.h> first.
35762         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
35763         HAVE_DUP2.
35764         * modules/dup2 (Depends-on): Add unistd.
35765         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35766
35767         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
35768         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
35769         REPLACE_CHOWN. Don't define chown as a macro here.
35770         * modules/chown (Depends-on): Add unistd.
35771         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35772
35773         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
35774         Add definition for GL_LINK_WARNING.
35775         (chown, dup2): New declarations.
35776         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
35777         link warning.
35778         (ftruncate): New declaration.
35779         (getcwd): New declaration, taken from old getcwd.h.
35780         (getlogin_r): New declaration, taken from old getlogin_r.h.
35781         (readlink): New declaration.
35782         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
35783         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
35784         (gl_PREREQ_UNISTD): Remove macro.
35785         (gl_UNISTD_MODULE_INDICATOR): New macro.
35786         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
35787         many new variables. Don't set UNISTD_H.
35788         * modules/unistd (Description): Change.
35789         (Depends-on): Add link-warning.
35790         (configure.ac): Update.
35791         (Makefile.am): Create unistd.h always. Substitute many new variables
35792         into it.
35793
35794 2007-02-18  Bruno Haible  <bruno@clisp.org>
35795
35796         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
35797         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
35798         HAVE_GETSUBOPT.
35799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
35800         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
35801         * lib/getsubopt.h: Remove file.
35802         * modules/getsubopt (Files): Remove lib/getsubopt.h.
35803         (Depends-on): Add stdlib.
35804         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35805         (Includes): Use <stdlib.h> instead of getsubopt.h.
35806         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
35807         Set HAVE_GETSUBOPT.
35808         * lib/getsubopt.c: Don't include getsubopt.h.
35809
35810 2007-02-18  Bruno Haible  <bruno@clisp.org>
35811
35812         * modules/fchdir (Depends-on): Add dup2.
35813
35814 2007-02-18  Bruno Haible  <bruno@clisp.org>
35815
35816         * lib/stdlib_.h: Handle glibc's special invocation convention
35817         specially.
35818
35819 2007-02-18  Bruno Haible  <bruno@clisp.org>
35820
35821         * modules/stdlib-tests: New file.
35822         * tests/test-stdlib.c: New file.
35823
35824         * modules/mkstemp (Files): Remove lib/mkstemp.h.
35825         (Depends-on): Add stdlib.
35826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35827         (Includes): Use <stdlib.h> instead of mkstemp.h.
35828         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35829         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
35830         * lib/mkstemp.c: Don't include mkstemp.h.
35831         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
35832         * lib/stdlib--.h: Don't include mkstemp.h.
35833
35834         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
35835         (Depends-on): Add stdlib.
35836         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35837         (Includes): Use <stdlib.h> instead of mkdtemp.h.
35838         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
35839         HAVE_MKDTEMP.
35840         * lib/mkdtemp.c: Don't include mkdtemp.h.
35841         * lib/clean-temp.c: Don't include mkdtemp.h.
35842
35843         * modules/exit (Files): Remove lib/exit.h.
35844         (Depends-on): Add stdlib.
35845         (Makefile.am): Remove lib_SOURCES.
35846         (Include): Use <stdlib.h> instead of exit.h.
35847         * lib/argmatch.c: Don't include exit.h.
35848         * lib/execute.c: Likewise.
35849         * lib/pagealign_alloc.c: Likewise.
35850         * lib/pipe.c: Likewise.
35851         * lib/wait-process.c: Likewise.
35852         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
35853         * lib/exitfail.c: Likewise.
35854         * lib/savewd.c: Likewise.
35855         * lib/xsetenv.c: Likewise.
35856
35857         * modules/stdlib: New file.
35858         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
35859         and extra comments about mkstemp().
35860         * lib/exit.h: Remove file.
35861         * lib/mkdtemp.h: Remove file.
35862         * lib/mkstemp.h: Remove file.
35863         * m4/stdlib_h.m4: New file.
35864         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
35865
35866 2007-02-18  Bruno Haible  <bruno@clisp.org>
35867
35868         * modules/math-tests: New file.
35869         * tests/test-math.c: New file.
35870
35871         * modules/math: New file.
35872         * modules/mathl (Files): Remove lib/mathl.h.
35873         (Depends-on): Add math.
35874         (Makefile.am): Don't mention mathl.h.
35875         (Include): Use <math.h> instead of mathl.h.
35876         * lib/math_.h: New file.
35877         * lib/mathl.h: Remove file.
35878         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
35879         mathl.h.
35880         * lib/asinl.c: Likewise.
35881         * lib/atanl.c: Likewise.
35882         * lib/ceill.c: Likewise.
35883         * lib/cosl.c: Likewise.
35884         * lib/expl.c: Likewise.
35885         * lib/floorl.c: Likewise.
35886         * lib/frexpl.c: Likewise.
35887         * lib/ldexpl.c: Likewise.
35888         * lib/logl.c: Likewise.
35889         * lib/sincosl.c: Likewise.
35890         * lib/sinl.c: Likewise.
35891         * lib/sqrtl.c: Likewise.
35892         * lib/tanl.c: Likewise.
35893         * lib/trigl.c: Likewise.
35894         * m4/math_h.m4: New file.
35895         * MODULES.html.sh (Mathematics): Add math.
35896
35897 2007-02-17  Bruno Haible  <bruno@clisp.org>
35898
35899         * modules/wctype-tests: New file.
35900         * tests/test-wctype.c: New file.
35901
35902         * modules/wchar-tests: New file.
35903         * tests/test-wchar.c: New file.
35904
35905         * modules/unistd-tests: New file.
35906         * tests/test-unistd.c: New file.
35907
35908         * modules/time-tests: New file.
35909         * tests/test-time.c: New file.
35910
35911         * modules/sysexits-tests: New file.
35912         * tests/test-sysexits.c: New file.
35913
35914         * modules/sys_time-tests: New file.
35915         * tests/test-sys_time.c: New file.
35916
35917         * modules/sys_stat-tests: New file.
35918         * tests/test-sys_stat.c: New file.
35919
35920         * modules/sys_socket-tests: New file.
35921         * tests/test-sys_socket.c: New file.
35922
35923         * modules/sys_select-tests: New file.
35924         * tests/test-sys_select.c: New file.
35925
35926         * modules/string-tests: New file.
35927         * tests/test-string.c: New file.
35928
35929         * modules/stdbool-tests: New file.
35930         * tests/test-stdbool.c: New file.
35931
35932         * modules/netinet_in-tests: New file.
35933         * tests/test-netinet_in.c: New file.
35934
35935         * modules/inttypes-tests: New file.
35936         * tests/test-inttypes.c: New file.
35937
35938         * modules/fcntl-tests: New file.
35939         * tests/test-fcntl.c: New file.
35940
35941         * modules/byteswap-tests: New file.
35942         * tests/test-byteswap.c: New file.
35943
35944         * modules/arpa_inet-tests: New file.
35945         * tests/test-arpa_inet.c: New file.
35946
35947 2007-02-17  Bruno Haible  <bruno@clisp.org>
35948
35949         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
35950         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
35951         if the corresponding module is not enabled. Emit link warnings if
35952         the function is used nevertheless.
35953         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
35954         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
35955         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
35956         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
35957         * modules/inttypes (Depends-on): Add link-warning.
35958         (Makefile.am): Copy the contents of build-aux/link-warning.h into
35959         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
35960         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
35961         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
35962         * modules/imaxdiv (configure.ac): Likewise.
35963         * modules/strtoimax (configure.ac): Likewise.
35964         * modules/strtoumax (configure.ac): Likewise.
35965
35966 2007-02-17  Bruno Haible  <bruno@clisp.org>
35967
35968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
35969         gl_STRING_MODULE_INDICATOR_DEFAULTS.
35970         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
35971         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
35972
35973 2007-02-17  Bruno Haible  <bruno@clisp.org>
35974
35975         * modules/link-warning: New file.
35976         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
35977         * lib/string_.h (GL_LINK_WARNING): Remove definition.
35978         * modules/string (Depends-on): Add link-warning.
35979         (Makefile.am): Copy the contents of build-aux/link-warning.h into
35980         string.h.
35981         * MODULES.html.sh (Support for building libraries and executables): Add
35982         link-warning.
35983
35984 2007-02-17  Bruno Haible  <bruno@clisp.org>
35985
35986         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
35987         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
35988         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
35989         long lines.
35990
35991 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
35992             Bruno Haible  <bruno@clisp.org>
35993
35994         * modules/tmpfile: New file.
35995         * lib/tmpfile.c: New file.
35996         * m4/tmpfile.m4: New file.
35997         * MODULES.html.sh (func_all_modules): New section "Input/output".
35998
35999 2007-02-15  Bruno Haible  <bruno@clisp.org>
36000
36001         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36002         (supports_delete_on_close): New function.
36003         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36004
36005 2007-02-14  Bruno Haible  <bruno@clisp.org>
36006
36007         * modules/mbspcasecmp-tests: New file.
36008         * tests/test-mbspcasecmp.sh: New file.
36009         * tests/test-mbspcasecmp.c: New file.
36010
36011         New module mbspcasecmp.
36012         * modules/mbspcasecmp: New file.
36013         * lib/mbspcasecmp.c: New file.
36014         * lib/string_.h (strncasecmp): Change warning message.
36015         (mbspcasecmp): New declaration.
36016         * m4/mbspcasecmp.m4: New file.
36017         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36018         GNULIB_MBSPCASECMP.
36019         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36020         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36021
36022 2007-02-14  Bruno Haible  <bruno@clisp.org>
36023
36024         * modules/mbsncasecmp-tests: New file.
36025         * tests/test-mbsncasecmp.sh: New file.
36026         * tests/test-mbsncasecmp.c: New file.
36027
36028         New module mbsncasecmp.
36029         * modules/mbsncasecmp: New file.
36030         * lib/mbsncasecmp.c: New file.
36031         * lib/string_.h (mbsncasecmp): New declaration.
36032         * m4/mbsncasecmp.m4: New file.
36033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36034         GNULIB_MBSNCASECMP.
36035         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36036         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36037
36038 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36039
36040         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36041         Verify that it doesn't overlap with our flags.
36042         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36043         do not have the desired effect in multibyte locales; instead, use
36044         mbscasecmp.
36045         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36046         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36047         we don't require GNU fnmatch ourselves (if our users require it, they
36048         should do so explicitly).
36049
36050         Fix regex code so it doesn't rely on strcasecmp.
36051         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36052         Otherwise, include gnulib's langinfo.h.
36053         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36054         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36055         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36056         * modules/regex (FILES): Remove m4/codeset.m4.
36057         (Depends-on): Add localcharset.  Remove strcase.
36058
36059 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36060
36061         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36062         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36063
36064 2007-02-13  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36068
36069 2007-02-12  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36072         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36073         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36074         time warning rather than a link error.
36075
36076 2007-02-12  Bruno Haible  <bruno@clisp.org>
36077
36078         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36081
36082 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36083
36084         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36085         args, not 2.
36086
36087 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36088
36089         New module 'time', so that apps can include <time.h> as per
36090         POSIX and GNU instead of separate include files like time_r.h
36091         and timegm.h.  This implementation tries out a simpler approach
36092         for replacing decls in standard include files (as compared to
36093         the string module), somewhat as an experiment.
36094
36095         * config/srclist.txt: Comment out mktime.c for now.
36096         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36097         since it doesn't apply any more.  Use generic wording instead.
36098         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36099         'time'.
36100         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36101         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36102         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36103         Don't include <sys/types.h>; no longer needed since we assume C89.
36104         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36105         * lib/strftime.c: Likewise.
36106         * lib/time_r.c: Likewise.
36107         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36108         * lib/nanosleep.c: Include <time.h> first, to check interface.
36109         * lib/strptime.c: Likewise.
36110         * lib/time_r.c: Likewise.
36111         * lib/timegm.c: Likewise.
36112         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36113         needed.
36114         * lib/timegm.c: Don't include timegm.h; no longer needed.
36115         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36116         time.h now handles any problems in that area.
36117         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36118         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36119         that time.h defines struct timespec.
36120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36121         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36122         handles that.
36123         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36124         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36125         needed.  Set REPLACE_LOCALTIME.
36126         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36127         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36128         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36129         nanosleep; time_h.m4 now does that.  Don't require
36130         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36131         module handles this now.
36132         * modules/getdate (Depends-on): Remove timespec.  Add time.
36133         * modules/nanosleep (Depends-on): Likewise.
36134         * modules/stat-time (Depends-on): Likewise.
36135         * modules/nanosleep (Include): Include time.h, not timespec.h.
36136         * modules/strptime (Files): Remove lib/strptime.h.
36137         (Depends-on): Add extensions, time.
36138         (Include): Include time.h, not strptime.h.
36139         * modules/time_r (Files): Remove lib/time_r.h.
36140         (Depends-on): Add time.
36141         (Include): Include time.h, not time_r.h.
36142         * modules/timegm: Likewise.
36143         * modules/timespec (Description): Now does timespec-related decls
36144         of our own, instead of struct timespec itself.
36145         (Depends-on): Add time; remove extensions.
36146         (Maintainer): Add self.
36147         * modules/utimecmp (Depends-on): Add time; remove timespec.
36148         * modules/utimens (Depends-on): Likewise.
36149         * modules/xnanosleep (Depends-on): Likewise.
36150
36151 2007-02-11  Bruno Haible  <bruno@clisp.org>
36152
36153         * lib/c-strstr.c: Include allocsa.h.
36154         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36155         * lib/c-strcasestr.c: Include allocsa.h.
36156         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36157         * lib/strcasestr.c: Include allocsa.h.
36158         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36159         * lib/mbsstr.c: Include allocsa.h.
36160         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36161         allocsa/freesa instead of malloc/free.
36162         * lib/mbscasestr.c: Include allocsa.h.
36163         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36164         allocsa/freesa instead of malloc/free.
36165         * modules/c-strstr (Depends-on): Add allocsa.
36166         * modules/c-strcasestr (Depends-on): Likewise.
36167         * modules/strcasestr (Depends-on): Likewise.
36168         * modules/mbsstr (Depends-on): Likewise.
36169         * modules/mbscasestr (Depends-on): Likewise.
36170
36171 2007-02-11  Bruno Haible  <bruno@clisp.org>
36172
36173         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36174
36175         * modules/mbsspn-tests: New file.
36176         * tests/test-mbsspn.sh: New file.
36177         * tests/test-mbsspn.c: New file.
36178
36179 2007-02-11  Bruno Haible  <bruno@clisp.org>
36180
36181         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36182
36183         * modules/mbspbrk-tests: New file.
36184         * tests/test-mbspbrk.sh: New file.
36185         * tests/test-mbspbrk.c: New file.
36186
36187 2007-02-11  Bruno Haible  <bruno@clisp.org>
36188
36189         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36190         unneeded cast.
36191
36192         * modules/mbscspn-tests: New file.
36193         * tests/test-mbscspn.sh: New file.
36194         * tests/test-mbscspn.c: New file.
36195
36196 2007-02-11  Bruno Haible  <bruno@clisp.org>
36197
36198         * modules/mbscasecmp-tests: New file.
36199         * tests/test-mbscasecmp.sh: New file.
36200         * tests/test-mbscasecmp.c: New file.
36201
36202 2007-02-11  Bruno Haible  <bruno@clisp.org>
36203
36204         Ensure O(n) worst-case complexity of mbscasestr.
36205         * lib/mbscasestr.c: Include stdbool.h.
36206         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36207         functions.
36208         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36209         the bookkeeping indicates that it's worth it.
36210         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36211
36212         * modules/mbscasestr-tests: New file.
36213         * tests/test-mbscasestr1.c: New file.
36214         * tests/test-mbscasestr2.sh: New file.
36215         * tests/test-mbscasestr2.c: New file.
36216         * tests/test-mbscasestr3.sh: New file.
36217         * tests/test-mbscasestr3.c: New file.
36218         * tests/test-mbscasestr4.sh: New file.
36219         * tests/test-mbscasestr4.c: New file.
36220         * m4/locale-tr.m4: New file.
36221
36222 2007-02-11  Bruno Haible  <bruno@clisp.org>
36223
36224         Ensure O(n) worst-case complexity of mbsstr.
36225         * lib/mbsstr.c: Include stdbool.h.
36226         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36227         functions.
36228         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36229         bookkeeping indicates that it's worth it.
36230         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36231
36232         * modules/mbsstr-tests: New file.
36233         * tests/test-mbsstr1.c: New file.
36234         * tests/test-mbsstr2.sh: New file.
36235         * tests/test-mbsstr2.c: New file.
36236         * tests/test-mbsstr3.sh: New file.
36237         * tests/test-mbsstr3.c: New file.
36238         * m4/locale-fr.m4: New file.
36239
36240 2007-02-11  Bruno Haible  <bruno@clisp.org>
36241
36242         * lib/mbsrchr.c (mbsrchr): Fix bug.
36243
36244         * modules/mbsrchr-tests: New file.
36245         * tests/test-mbsrchr.sh: New file.
36246         * tests/test-mbsrchr.c: New file.
36247
36248 2007-02-11  Bruno Haible  <bruno@clisp.org>
36249
36250         * lib/mbschr.c (mbschr): Fix bug.
36251
36252         * modules/mbschr-tests: New file.
36253         * tests/test-mbschr.sh: New file.
36254         * tests/test-mbschr.c: New file.
36255         * m4/locale-zh.m4: New file.
36256
36257 2007-02-11  Bruno Haible  <bruno@clisp.org>
36258
36259         Support for copying multibyte string iterators.
36260         * lib/mbiter.h: Include <string.h>.
36261         (mbiter_multi_copy): New function.
36262         (mbi_copy): New macro.
36263         * lib/mbuiter.h: Include <string.h>.
36264         (mbuiter_multi_copy): New function.
36265         (mbui_copy): New macro.
36266
36267 2007-02-11  Bruno Haible  <bruno@clisp.org>
36268
36269         New module mbslen.
36270         * modules/mbslen: New file.
36271         * lib/mbslen.c: New file.
36272         * lib/string_.h (mbslen): New declaration.
36273         * m4/mbslen.m4: New file.
36274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36275         GNULIB_MBSLEN.
36276         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36277         * MODULES.html.sh (Internationalization functions): Add mbslen.
36278
36279 2007-02-11  Bruno Haible  <bruno@clisp.org>
36280
36281         Ensure O(n) worst-case complexity of strcasestr substitute.
36282         * lib/strcasestr.c: Include stdbool.h.
36283         (knuth_morris_pratt): New function.
36284         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36285         bookkeeping indicates that it's worth it.
36286         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36287
36288         * modules/strcasestr-tests: New file.
36289         * tests/test-strcasestr.c: New file.
36290
36291 2007-02-11  Bruno Haible  <bruno@clisp.org>
36292
36293         Ensure O(n) worst-case complexity of c_strcasestr.
36294         * lib/c-strcasestr.c: Include stdbool.h, string.h.
36295         (knuth_morris_pratt): New function.
36296         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36297         the bookkeeping indicates that it's worth it.
36298         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36299
36300         * modules/c-strcasestr-tests: New file.
36301         * tests/test-c-strcasestr.c: New file.
36302
36303 2007-02-11  Bruno Haible  <bruno@clisp.org>
36304
36305         Ensure O(n) worst-case complexity of c_strstr.
36306         * lib/c-strstr.c: Include stdbool.h, string.h.
36307         (knuth_morris_pratt): New function.
36308         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36309         bookkeeping indicates that it's worth it.
36310         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36311
36312         * lib/c-strstr.c: Complete rewrite for maintainability.
36313
36314         * modules/c-strstr-tests: New file.
36315         * tests/test-c-strstr.c: New file.
36316
36317 2007-02-11  Bruno Haible  <bruno@clisp.org>
36318
36319         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36320         5.2.1 and earlier, whereby \055 was treated just like the range
36321         delimiter '-'.
36322         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36323
36324 2007-02-08  Bruno Haible  <bruno@clisp.org>
36325
36326         * modules/regex (Depends-on): Add stdbool.
36327         Reported by Dalibor Topic <robilad@kaffe.org>.
36328
36329 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36330
36331         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36332         Prefer returning from main to exiting from it.
36333         Remove unnecessary parens after sizeof.
36334
36335 2007-02-05  Bruno Haible  <bruno@clisp.org>
36336
36337         New module mbssep.
36338         * modules/mbssep: New file.
36339         * lib/mbssep.c: New file.
36340         * lib/string_.h (strsep): Add a conditional link warning.
36341         (mbssep): New declaration.
36342         * m4/mbssep.m4: New file.
36343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36344         GNULIB_MBSSEP.
36345         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36346         * MODULES.html.sh (Internationalization functions): Add mbssep.
36347
36348 2007-02-05  Bruno Haible  <bruno@clisp.org>
36349
36350         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36351         Optimize search in case of 1 delimiter.
36352
36353 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36354
36355         * lib/acl.h: Include sys/types.h before sys/acl.h.
36356
36357 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
36358
36359         Merge upstream fix for glibc bugzilla #3957:
36360
36361         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
36362
36363         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36364         bit for RE_HAT_LISTS_NOT_NEWLINE.
36365         (build_charclass_op): Remove bogus comment.
36366
36367 2007-02-05  Simon Josefsson  <simon@josefsson.org>
36368
36369         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36370
36371 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36372
36373         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36374         * lib/memmem.c [!defined _LIBC]: Include config.h.
36375
36376 2007-02-04  Bruno Haible  <bruno@clisp.org>
36377
36378         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36379         warning message.
36380
36381 2007-02-04  Bruno Haible  <bruno@clisp.org>
36382
36383         New module mbstok_r.
36384         * modules/mbstok_r: New file.
36385         * lib/mbstok_r.c: New file.
36386         * lib/string_.h (strtok_r): Change argument names to match the
36387         comments. Add a conditional link warning.
36388         (mbstok_r): New declaration.
36389         * m4/mbstok_r.m4: New file.
36390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36391         GNULIB_MBSTOK_R.
36392         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36393         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36394
36395 2007-02-04  Bruno Haible  <bruno@clisp.org>
36396
36397         New module mbsspn.
36398         * modules/mbsspn: New file.
36399         * lib/mbsspn.c: New file.
36400         * lib/string_.h (strspn): Add a conditional link warning.
36401         (mbsspn): New declaration.
36402         * m4/mbsspn.m4: New file.
36403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36404         GNULIB_MBSSPN.
36405         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36406         * MODULES.html.sh (Internationalization functions): Add mbsspn.
36407
36408 2007-02-04  Bruno Haible  <bruno@clisp.org>
36409
36410         New module mbspbrk.
36411         * modules/mbspbrk: New file.
36412         * lib/mbspbrk.c: New file.
36413         * lib/string_.h (strpbrk): Add a conditional link warning.
36414         (mbspbrk): New declaration.
36415         * m4/mbspbrk.m4: New file.
36416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36417         GNULIB_MBSPBRK.
36418         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36419         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36420
36421 2007-02-04  Bruno Haible  <bruno@clisp.org>
36422
36423         New module mbscspn.
36424         * modules/mbscspn: New file.
36425         * lib/mbscspn.c: New file.
36426         * lib/string_.h (strcspn): Add a conditional link warning.
36427         (mbscspn): New declaration.
36428         * m4/mbscspn.m4: New file.
36429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36430         GNULIB_MBSCSPN.
36431         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36432         * MODULES.html.sh (Internationalization functions): Add mbscspn.
36433
36434 2007-02-04  Bruno Haible  <bruno@clisp.org>
36435
36436         New module mbscasestr, reduced goal of strcasestr.
36437         * modules/mbscasestr: New file.
36438         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36439         (mbscasestr): Renamed from strcasestr.
36440         * lib/strcasestr.c: Don't include mbuiter.h.
36441         (strcasestr): Remove support for multibyte locales.
36442         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36443         Change the conditional link warning.
36444         (mbscasestr): New declaration.
36445         * m4/mbscasestr.m4: New file.
36446         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36447         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36448         REPLACE_STRCASESTR.
36449         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36451         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36452         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36453         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36454         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36455         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36456         (Depends-on): Remove mbuiter.
36457         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36458
36459 2007-02-04  Bruno Haible  <bruno@clisp.org>
36460
36461         Simplify handling of strncasecmp.
36462         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36463         the conditional link warning.
36464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36465         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36467         * modules/strcase (configure.ac): Don't invoke
36468         gl_STRING_MODULE_INDICATOR.
36469         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36470
36471 2007-02-04  Bruno Haible  <bruno@clisp.org>
36472
36473         New module mbscasecmp, reduced goal of strcasecmp.
36474         * modules/mbscasecmp: New file.
36475         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36476         (mbscasecmp): Renamed from strcasecmp.
36477         * lib/strcasecmp.c: Don't include mbuiter.h.
36478         (strcasecmp): Remove support for multibyte locales.
36479         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36480         Change the conditional link warning.
36481         (mbscasecmp): New declaration.
36482         * m4/mbscasecmp.m4: New file.
36483         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36484         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36485         REPLACE_STRCASECMP.
36486         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36488         GNULIB_MBSCASECMP.
36489         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36490         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36491         * modules/strcase (Files): Remove m4/mbrtowc.m4.
36492         (Depends-on): Remove mbuiter.
36493         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36494
36495 2007-02-04  Bruno Haible  <bruno@clisp.org>
36496
36497         New module mbsstr. Remove module strstr.
36498         * modules/mbsstr: New file.
36499         * modules/strstr: Remove file.
36500         * lib/mbsstr.c: Renamed from lib/strstr.c.
36501         (mbsstr): Renamed from strstr.
36502         * lib/string_.h (strstr): Remove declaration. Change the conditional
36503         link warning.
36504         (mbsstr): New declaration.
36505         * m4/mbsstr.m4: New file.
36506         * m4/strstr.m4: Remove file.
36507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36508         REPLACE_STRSTR.
36509         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36510         Don't initialize GNULIB_STRSTR.
36511         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36512         substitute GNULIB_STRSTR and REPLACE_STRSTR.
36513         * MODULES.html.sh (Internationalization functions): Add mbsstr.
36514         (Support for systems lacking ANSI C 89): Remove strstr.
36515
36516 2007-02-04  Bruno Haible  <bruno@clisp.org>
36517
36518         New module mbsrchr.
36519         * modules/mbsrchr: New file.
36520         * lib/mbsrchr.c: New file.
36521         * lib/string_.h (strrchr): Add a conditional link warning.
36522         (mbsrchr): New declaration.
36523         * m4/mbsrchr.m4: New file.
36524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36525         GNULIB_MBSRCHR.
36526         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
36527         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
36528
36529 2007-02-04  Bruno Haible  <bruno@clisp.org>
36530
36531         New module mbschr.
36532         * modules/mbschr: New file.
36533         * lib/mbschr.c: New file.
36534         * lib/string_.h (strchr): Add a conditional link warning.
36535         (mbschr): New declaration.
36536         * m4/mbschr.m4: New file.
36537         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36538         GNULIB_MBSCHR.
36539         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
36540         * MODULES.html.sh (Internationalization functions): Add mbschr.
36541
36542 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36543
36544         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
36545
36546         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
36547
36548 2007-02-04  Bruno Haible  <bruno@clisp.org>
36549
36550         New module description section 'configure.ac-early'.
36551         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
36552         (func_get_autoconf_early_snippet): New function.
36553         (func_import, func_create_testdir): Use it. Remove special cases for
36554         modules 'extensions' and 'lock'.
36555         * modules/extensions (configure.ac-early): Require
36556         gl_USE_SYSTEM_EXTENSIONS.
36557         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
36558
36559 2007-02-04  Bruno Haible  <bruno@clisp.org>
36560
36561         Make use of gcj-4.3's -fsource and -ftarget option.
36562         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
36563         and if so try the options -fsource and -ftarget.
36564         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
36565         source_version, ftarget_option, target_version arguments.
36566         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
36567         (is_envjavac_oldgcj_14_14_usable): Renamed from
36568         is_envjavac_gcj_14_14_usable.
36569         (is_envjavac_oldgcj_14_13_usable): Renamed from
36570         is_envjavac_gcj_14_13_usable.
36571         (is_gcj_present): Update.
36572         (is_gcj_43, is_gcj43_usable): New functions.
36573         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
36574         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
36575         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
36576         try the options -fsource and -ftarget.
36577
36578 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36579
36580         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
36581         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
36582         larger value.
36583
36584 2007-02-03  Jim Meyering  <jim@meyering.net>
36585
36586         Give tools a better chance to allocate space for very large buffers.
36587         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
36588
36589         Make pwd and readlink work also when run with an unreadable parent dir
36590         on systems with openat support.
36591         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
36592         provided getcwd function, even when we have openat support.
36593         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
36594
36595 2007-02-02  Bruno Haible  <bruno@clisp.org>
36596
36597         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36598         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
36599         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
36600         portability problems if one of these functions is only used on specific
36601         platforms.
36602         Reported by Paul Eggert.
36603
36604 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
36605
36606         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
36607         is causing more trouble than it's curing.
36608         * lib/regex_internal.h (__mempcpy): Remove.
36609         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
36610         (and make the code a tad smaller to boot).
36611         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
36612
36613 2007-02-02  Jim Meyering  <jim@meyering.net>
36614
36615         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
36616         section, not in the Makefile.am: one.
36617
36618 2007-02-02  Eric Blake  <ebb9@byu.net>
36619
36620         * lib/strchrnul.c: Always include config.h first.
36621
36622         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
36623         gnulib strstr is not necessary here.
36624
36625 2007-02-02  Simon Josefsson  <simon@josefsson.org>
36626
36627         * m4/socklen.m4: Fix typo.
36628
36629 2007-02-02  Eric Blake  <ebb9@byu.net>
36630
36631         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
36632         * modules/netinet_in (Makefile.am): Likewise.
36633
36634 2007-02-01  Bruno Haible  <bruno@clisp.org>
36635
36636         * lib/string_.h (GL_LINK_WARNING): New macro.
36637         (strcasecmp, strstr, strcasestr): If provided by the system,
36638         conditionally define as a macro that leads to a warning instead of to
36639         an error.
36640         (strncasecmp): Conditionally define as a macro that leads to a warning.
36641
36642 2007-02-01  Karl Berry  <karl@gnu.org>
36643
36644         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
36645
36646 2007-02-01  Bruno Haible  <bruno@clisp.org>
36647
36648         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
36649         renamings.
36650
36651 2007-02-01  Eric Blake  <ebb9@byu.net>
36652
36653         * modules/regex (Depends-on): Revert dependence on mempcpy.
36654         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
36655         module's definition of mempcpy.
36656         Reported by Paul Eggert.
36657
36658 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
36659
36660         * lib/string_.h: If the gnulib module XYZ is not present, undefine
36661         the symbol XYZ before redefining it.  This fixes a problem with
36662         programs that don't use XYZ, when compiled on systems that define
36663         XYZ to something else.
36664
36665 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36666
36667         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
36668         occurs when "mkdir -m foo" creates a setgid directory that is (1)
36669         writeable to group or other and (2) is intended to have a special
36670         mode bit that is set or cleared.  In such a case, the directory
36671         should be neither group- nor other-writeable until the special
36672         mode bits are right.
36673
36674 2007-01-31  Eric Blake  <ebb9@byu.net>
36675
36676         * modules/mountlist (Depends-on): Add strstr.
36677
36678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
36679         bug.
36680         * modules/string (Makefile.am): Remove redundant replacement.
36681         * modules/regex (Depends-on): Add mempcpy.
36682
36683 2007-01-31  Bruno Haible  <bruno@clisp.org>
36684
36685         New module description field 'Link'.
36686         * gnulib-tool (func_usage): Document --extract-link-directive.
36687         (sed_extract_prog): Recognize 'Link' directive.
36688         (func_get_link_directive): New function.
36689         (func_import): Show summary of link directives.
36690         Handle --extract-link-directive option.
36691         * modules/acl (Link): New section.
36692         * modules/clock-time (Link): New section.
36693         * modules/euidaccess (Link): New section.
36694         * modules/gettext (Link): New section.
36695         * modules/iconv (Link): New section.
36696         * modules/lock (Link): New section.
36697         * modules/nanosleep (Link): New section.
36698         * modules/readline (Link): New section.
36699
36700 2007-01-27  Bruno Haible  <bruno@clisp.org>
36701
36702         Enforce the use of gnulib modules for unportable <string.h> functions.
36703         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
36704         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
36705         (gl_HEADER_STRING_H_BODY): Require it.
36706         * lib/string_.h: If the gnulib module XYZ is not present, redefine
36707         the symbol XYZ to one that gives a link error.
36708         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
36709         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
36710         * modules/mempcpy (configure.ac): Likewise.
36711         * modules/memrchr (configure.ac): Likewise.
36712         * modules/stpcpy (configure.ac): Likewise.
36713         * modules/stpncpy (configure.ac): Likewise.
36714         * modules/strcase (configure.ac): Likewise.
36715         * modules/strcasestr (configure.ac): Likewise.
36716         * modules/strchrnul (configure.ac): Likewise.
36717         * modules/strdup (configure.ac): Likewise.
36718         * modules/strndup (configure.ac): Likewise.
36719         * modules/strnlen (configure.ac): Likewise.
36720         * modules/strpbrk (configure.ac): Likewise.
36721         * modules/strsep (configure.ac): Likewise.
36722         * modules/strstr (configure.ac): Likewise.
36723         * modules/strtok_r (configure.ac): Likewise.
36724
36725 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
36726
36727         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
36728
36729 2007-01-30  Jim Meyering  <jim@meyering.net>
36730
36731         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
36732
36733 2007-01-29  Bruno Haible  <bruno@clisp.org>
36734
36735         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
36736         * lib/execute.c: Likewise.
36737         * lib/pipe.c: Likewise.
36738         * lib/printf-args.h: Likewise.
36739         * lib/printf-args.c: Likewise.
36740         * lib/printf-parse.c: Likewise.
36741         * lib/vasnprintf.c: Likewise.
36742
36743 2007-01-29  Eric Blake  <ebb9@byu.net>
36744
36745         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
36746         declaration.
36747
36748 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36749
36750         * lib/strptime.h (strptime): Use 'restrict' for args where
36751         POSIX requires this.
36752         * lib/strptime.c (strptime): Likewise.
36753         Change license notice from LGPL to GPL, since gnulib-tool will
36754         change this as needed.
36755         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
36756         defined.
36757         Include "strptime.h" first, to check interface.
36758         Do not #undef _LIBC and _NL_CURRENT.
36759         Do not include <stdlib.h>; no longer needed.
36760         Include "time_r.h" and declare ptime_locale_status
36761         only if _LIBC is not defined.
36762         (__P): Remove unused macro.
36763         (match_string): Bring back glibc version, but use it only if _LIBC
36764         is defined.
36765         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
36766         Remove unnecessary assertion and abort() call.
36767         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
36768         * m4/strptime.m4: Fix serial number comment.
36769         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
36770         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
36771         (Depends-on): Add time_r.
36772
36773 2007-01-29  Bruno Haible  <bruno@clisp.org>
36774
36775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36776         strptime.
36777         * modules/strptime (Depends-on): Add stdbool.
36778         * lib/strptime.h: Include <time.h> always. Add comments.
36779
36780 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36781
36782         * modules/strptime: New file.
36783         * lib/strptime.h: New file.
36784         * lib/strptime.c: New file.
36785         * m4/strptime.m4: New file.
36786
36787 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
36788
36789         * MODULES.html.sh: New module mpsort.
36790         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
36791
36792         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
36793         a circularity problem with HP-UX ia64 reported by Bob Proulx in
36794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
36795         All uses changed.
36796         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
36797         All uses changed.
36798         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
36799         to _Restrict_.
36800         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
36801         the parameter matches the prototype.
36802
36803 2007-01-28  Jim Meyering  <jim@meyering.net>
36804
36805         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
36806         sys/time.h here, reverting that part of the previous patch:
36807         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
36808
36809 2007-01-28  Bruno Haible  <bruno@clisp.org>
36810
36811         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
36812         value of $(SYS_TIME_H).
36813         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
36814         remove it conditionally, too. [added by Jim Meyering]
36815         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
36816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36817         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
36818         GETTIMEOFDAY_REPLACEMENT to 1.
36819
36820 2007-01-28  Bruno Haible  <bruno@clisp.org>
36821
36822         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
36823         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
36824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
36825         Set UNISTD_H instead of UNISTD_H2.
36826         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
36827
36828 2007-01-28  Bruno Haible  <bruno@clisp.org>
36829
36830         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
36831         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
36832
36833 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36834
36835         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
36836         (func_create_testdir): Ensure C locale for `grep' and `tr'
36837         character ranges.
36838         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
36839         ACLOCAL_AMFLAGS parsing state machine.
36840
36841 2007-01-27  Bruno Haible  <bruno@clisp.org>
36842
36843         * modules/unistr/base: Update.
36844
36845 2007-01-27  Bruno Haible  <bruno@clisp.org>
36846
36847         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
36848         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
36849         * modules/unistr/u32-mbtouc-unsafe: Renamed from
36850         modules/unistr/u32-mbtouc.
36851         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
36852         * lib/unistr.h: Update.
36853         * lib/linebreak.c: Update.
36854         * modules/unistr/u32-mbtouc: Renamed from
36855         modules/unistr/u32-mbtouc-safe.
36856         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
36857         * lib/unistr.h: Update.
36858         * lib/unistr/u32-to-u8.c: Update.
36859         * lib/unistr/u32-to-u16.c: Update.
36860
36861 2007-01-27  Bruno Haible  <bruno@clisp.org>
36862
36863         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
36864         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
36865         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
36866         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
36867         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
36868         * modules/unistr/u16-mbtouc-unsafe: Renamed from
36869         modules/unistr/u16-mbtouc.
36870         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
36871         * lib/unistr.h: Update.
36872         * lib/linebreak.c: Update.
36873         * modules/linebreak: Update.
36874         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
36875         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
36876         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
36877         * modules/unistr/u16-mbtouc: Renamed from
36878         modules/unistr/u16-mbtouc-safe.
36879         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
36880         * lib/unistr.h: Update.
36881         * lib/unistr/u16-to-u8.c: Update.
36882         * modules/unistr/u16-to-u8: Update.
36883         * lib/unistr/u16-to-u32.c: Update.
36884         * modules/unistr/u16-to-u32: Update.
36885
36886 2007-01-27  Bruno Haible  <bruno@clisp.org>
36887
36888         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
36889         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
36890         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
36891         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
36892         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
36893         * modules/unistr/u8-mbtouc-unsafe: Renamed from
36894         modules/unistr/u8-mbtouc.
36895         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
36896         * lib/unistr.h: Update.
36897         * lib/striconveh.c: Update.
36898         * modules/striconveh: Update.
36899         * lib/linebreak.c: Update.
36900         * modules/linebreak: Update.
36901         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
36902         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
36903         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
36904         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
36905         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
36906         * lib/unistr.h: Update.
36907         * lib/striconveh.c: Update.
36908         * modules/striconveh: Update.
36909         * lib/unistr/u8-to-u16.c: Update.
36910         * modules/unistr/u8-to-u16: Update.
36911         * lib/unistr/u8-to-u32.c: Update.
36912         * modules/unistr/u8-to-u32: Update.
36913
36914 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36915
36916         Sync from Libtool.
36917         * lib/argz.c: Do not include strings.h nor memory.h, include
36918         string.h unconditionally.  Patch by Simon Josefsson.
36919
36920 2007-01-27  Bruno Haible  <bruno@clisp.org>
36921
36922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
36923         from gl_HEADER_STRING_H_BODY.
36924         (gl_HEADER_STRING_H_BODY): Require it.
36925         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
36926         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
36927         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
36928         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
36929         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
36930         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
36931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
36932         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
36933         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
36934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
36935         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
36936         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
36937         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
36938         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
36939         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36940
36941 2007-01-27  Bruno Haible  <bruno@clisp.org>
36942
36943         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
36944         check_PROGRAMS into noinst_PROGRAMS.
36945         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
36946         check_PROGRAMS in this case.
36947         (func_import): Set for_test to false.
36948         (func_create_testdir): Set for_test to true.
36949
36950 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36951             Bruno Haible  <bruno@clisp.org>
36952
36953         * modules/strcasestr (Files): Remove lib/strcasestr.h.
36954         (Depends-on): Add string.
36955         (Includes): Use <string.h> instead of strcasestr.h.
36956         * modules/string (Makefile.am): Also substitute the value of
36957         REPLACE_STRCASESTR.
36958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
36959         assume strcasestr is declared in <string.h> not <strings.h>. Also
36960         set REPLACE_STRCASESTR.
36961         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
36962         REPLACE_STRCASESTR.
36963         * lib/strcasestr.h: Remove file.
36964         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
36965         * lib/string_.h (strcasestr): New declaration.
36966
36967 2007-01-27  Bruno Haible  <bruno@clisp.org>
36968
36969         * lib/string_.h: Use 'extern'.
36970
36971 2007-01-27  Jim Meyering  <jim@meyering.net>
36972
36973         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
36974         of set-but-not-used local, "q".
36975
36976         * lib/mempcpy.c: Include <config.h> before <string.h>.
36977         This fixes a compilation error on HP-UX, due to the system's
36978         "restrict"-using mempcpy prototype.
36979
36980 2007-01-26  Bruno Haible  <bruno@clisp.org>
36981
36982         Small optimization.
36983         * lib/javacomp.c: Include c-strstr.h.
36984          (is_envjavac_gcj): Use c_strstr instead of strstr.
36985         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
36986
36987 2007-01-26  Bruno Haible  <bruno@clisp.org>
36988
36989         * MODULES.html.sh (Unicode string functions): Add the new modules.
36990
36991         * modules/uniconv/u32-strconv-to-locale: New file.
36992         * lib/uniconv/u32-strconv-to-locale.c: New file.
36993
36994         * modules/uniconv/u16-strconv-to-locale: New file.
36995         * lib/uniconv/u16-strconv-to-locale.c: New file.
36996
36997         * modules/uniconv/u8-strconv-to-locale: New file.
36998         * lib/uniconv/u8-strconv-to-locale.c: New file.
36999
37000         * modules/uniconv/u32-strconv-from-locale: New file.
37001         * lib/uniconv/u32-strconv-from-locale.c: New file.
37002
37003         * modules/uniconv/u16-strconv-from-locale: New file.
37004         * lib/uniconv/u16-strconv-from-locale.c: New file.
37005
37006         * modules/uniconv/u8-strconv-from-locale: New file.
37007         * lib/uniconv/u8-strconv-from-locale.c: New file.
37008
37009         * modules/uniconv/u32-strconv-to-enc: New file.
37010         * lib/uniconv/u32-strconv-to-enc.c: New file.
37011         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37012         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37013
37014         * modules/uniconv/u16-strconv-to-enc: New file.
37015         * lib/uniconv/u16-strconv-to-enc.c: New file.
37016         * lib/uniconv/u-strconv-to-enc.h: New file.
37017         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37018         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37019
37020         * modules/uniconv/u8-strconv-to-enc: New file.
37021         * lib/uniconv/u8-strconv-to-enc.c: New file.
37022         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37023         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37024
37025         * modules/uniconv/u32-strconv-from-enc: New file.
37026         * lib/uniconv/u32-strconv-from-enc.c: New file.
37027         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37028         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37029
37030         * modules/uniconv/u16-strconv-from-enc: New file.
37031         * lib/uniconv/u16-strconv-from-enc.c: New file.
37032         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37033         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37034
37035         * modules/uniconv/u8-strconv-from-enc: New file.
37036         * lib/uniconv/u8-strconv-from-enc.c: New file.
37037         * lib/uniconv/u-strconv-from-enc.h: New file.
37038         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37039         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37040
37041         * modules/uniconv/u32-conv-from-enc: New file.
37042         * lib/uniconv/u32-conv-from-enc.c: New file.
37043         * modules/uniconv/u32-conv-from-enc-tests: New file.
37044         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37045
37046         * modules/uniconv/u16-conv-from-enc: New file.
37047         * lib/uniconv/u16-conv-from-enc.c: New file.
37048         * lib/uniconv/u-conv-from-enc.h: New file.
37049         * modules/uniconv/u16-conv-from-enc-tests: New file.
37050         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37051
37052         * modules/uniconv/u8-conv-from-enc: New file.
37053         * lib/uniconv/u8-conv-from-enc.c: New file.
37054         * modules/uniconv/u8-conv-from-enc-tests: New file.
37055         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37056
37057         * modules/uniconv/base: New file.
37058         * lib/uniconv.h: New file.
37059
37060 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37061
37062         * doc/gnulib-tool.texi (Initial import): Update to match current
37063         behavior with strdup module.
37064         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37065         * lib/memmem.h: Remove; all uses removed.  This is now done
37066         by <string.h>.
37067         * lib/mempcpy.h: Likewise.
37068         * lib/memrchr.h: Likewise.
37069         * lib/stpcpy.h: Likewise.
37070         * lib/stpncpy.h: Likewise.
37071         * lib/strcase.h: Likewise.
37072         * lib/strchrnul.h: Likewise.
37073         * lib/strdup.h: Likewise.
37074         * lib/strndup.h: Likewise.
37075         * lib/strnlen.h: Likewise.
37076         * lib/strpbrk.h: Likewise.
37077         * lib/strsep.h: Likewise.
37078         * lib/strstr.h: Likewise.
37079         * lib/strtok_r.h: Likewise.
37080         * lib/string_.h: New file.
37081         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37082         Rely on <string.h> instead.
37083         * lib/canon-host.c: Likewise.
37084         * lib/chdir-long.c: Likewise.
37085         * lib/concatpath.c: Likewise.
37086         * lib/exclude.c: Likewise.
37087         * lib/fchdir.c: Likewise.
37088         * lib/getaddrinfo.c: Likewise.
37089         * lib/getcwd.c: Likewise.
37090         * lib/getsubopt.c: Likewise.
37091         * lib/glob.c: Likewise.
37092         * lib/hard-locale.c: Likewise.
37093         * lib/iconvme.c: Likewise.
37094         * lib/javacomp.c: Likewise.
37095         * lib/mempcpy.c: Likewise.
37096         * lib/memrchr.c: Likewise.
37097         * lib/regex_internal.h: Likewise.
37098         * lib/stpncpy.c: Likewise.
37099         * lib/strcasecmp.c: Likewise.
37100         * lib/strchrnul.c: Likewise.
37101         * lib/strdup.c: Likewise.
37102         * lib/striconv.c: Likewise.
37103         * lib/striconveh.c: Likewise.
37104         * lib/striconveha.c: Likewise.
37105         * lib/strncasecmp.c: Likewise.
37106         * lib/strndup.c: Likewise.
37107         * lib/strnlen.c: Likewise.
37108         * lib/strsep.c: Likewise.
37109         * lib/strstr.c: Likewise.
37110         * lib/strtok_r.c: Likewise.
37111         * lib/userspec.c: Likewise.
37112         * lib/w32spawn.h: Likewise.
37113         * lib/xstrndup.c: Likewise.
37114         * lib/mountlist.c (strstr): Remove decl.
37115         * m4/string_h.m4: New file.
37116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37117         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37118         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37119         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37120         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37121         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37122         Set REPLACE_STRCASECMP if necessary.
37123         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37124         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37125         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37126         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37127         HAVE_DECL_STRDUP if necessary.
37128         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37129         since gl_FUNC_STRNDUP does that now.
37130         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37131         Check for decl here...
37132         (gl_PREREQ_STRNLEN): ... not here.
37133         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37134         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37135         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37136         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37137         necessary.
37138         * modules/string: New file.
37139         * modules/memmem (Files): Remove special-purpose include file.
37140         (Depends-on): Add string.
37141         (Include): Include <string.h>, not the removed file.
37142         * modules/mempcpy: Likewise.
37143         * modules/memrchr: Likewise.
37144         * modules/stpcpy: Likewise.
37145         * modules/stpncpy: Likewise.
37146         * modules/strcase: Likewise.
37147         * modules/strchrnul: Likewise.
37148         * modules/strdup: Likewise.
37149         * modules/strndup: Likewise.
37150         * modules/strnlen: Likewise.
37151         * modules/strpbrk: Likewise.
37152         * modules/strsep: Likewise.
37153         * modules/strstr: Likewise.
37154         * modules/strtok_r: Likewise.
37155         * tests/test-dirname.c: Don't include "strdup.h", since
37156         <string.h> now suffices.
37157         * tests/test-memmem.c: Don't include "memmem.h", since
37158         <string.h> now suffices.
37159
37160 2007-01-25  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37163         *resultp is 0.
37164
37165         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37166         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37167         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37168         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37169
37170         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37171         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37172         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37173         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37174         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37175         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37176
37177 2007-01-24  Bruno Haible  <bruno@clisp.org>
37178
37179         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37180         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37181         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37182         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37183         gl_FUNC_FTS_CORE.
37184         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37185         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37186         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37187         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37188         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37189         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37190         gl_FUNC_FCHOWNAT.
37191         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37192         gl_FUNC_STRFTIME.
37193         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37194         Reported by Ralf Wildenhues.
37195
37196 2007-01-24  Bruno Haible  <bruno@clisp.org>
37197
37198         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37199         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37200         gl_GETADDRINFO.
37201         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37202         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37203         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37204
37205 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37206
37207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37208         Don't use 'exit'; just return from 'main'.
37209         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37210
37211         * lib/fnmatch_.h: Readjust white space and comments to match
37212         glibc, to avoid spurious diffs.
37213
37214 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37215
37216         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37217         2004-12-01 change by Jakub Jelinek, since this code won't compile
37218         if !LIBC.  Problem reported by Bob Proulx.
37219
37220 2007-01-23  Bruno Haible  <bruno@clisp.org>
37221
37222         * lib/striconveh.c: Include c-strcaseeq.h.
37223         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37224         * modules/striconveh (Depends-on): Add c-strcaseeq.
37225
37226 2007-01-23  Bruno Haible  <bruno@clisp.org>
37227
37228         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37229
37230         * modules/c-strcaseeq: New file.
37231         * lib/c-strcaseeq.h: New file.
37232
37233         * modules/streq: New file.
37234         * lib/streq.h: New file.
37235
37236 2007-01-23  Bruno Haible  <bruno@clisp.org>
37237
37238         * modules/striconveha-tests: New file.
37239         * tests/test-striconveha.c: New file.
37240
37241         * lib/striconveha.h: Include <stdbool.h>.
37242         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37243         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37244         (mem_iconveha_notranslit): Renamed from mem_iconveha.
37245         (mem_iconveha): New function.
37246         (str_iconveha_notranslit): Renamed from str_iconveha.
37247         (str_iconveha): New function.
37248         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37249         c-strcase.
37250
37251 2007-01-23  Bruno Haible  <bruno@clisp.org>
37252
37253         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37254         encodings without forgiving before trying any encoding with handler.
37255         (str_iconveha): Try all encodings without forgiving before trying any
37256         encoding with handler.
37257
37258 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
37259
37260         Import the following changes from libc.
37261
37262         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
37263
37264         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37265
37266         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
37267
37268         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37269         normal_bracket label.
37270
37271         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
37272
37273         [BZ #361]
37274         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37275         to normal_bracket after fetching the next character.
37276
37277 2007-01-22  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37280         argument.
37281         * lib/striconveh.c (iconv_carefully_1): New function.
37282         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37283         argument.
37284         (str_cd_iconveh): Update.
37285         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37286         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37287         * tests/test-striconveh.c (MAGIC): New macro.
37288         (new_offsets): New function.
37289         (main): Test call with and without offsets.
37290
37291 2007-01-22  Bruno Haible  <bruno@clisp.org>
37292
37293         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37294         * modules/sys_select (Makefile.am): Likewise.
37295         * modules/sys_socket (Makefile.am): Likewise.
37296         * modules/sys_time (Makefile.am): Likewise.
37297
37298 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
37299
37300         * modules/gettimeofday (License): Change from GPL to LGPL, since
37301         gettimeofday is a library function.
37302
37303 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37304
37305         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37306
37307 2007-01-21  Bruno Haible  <bruno@clisp.org>
37308
37309         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37310
37311 2007-01-21  Bruno Haible  <bruno@clisp.org>
37312
37313         * modules/striconveha: New file.
37314         * lib/striconveha.h: New file.
37315         * lib/striconveha.c: New file.
37316         * MODULES.html.sh (Internationalization functions): Add striconveha.
37317         * lib/striconv.c (str_iconv): Optimize the case of an empty input
37318         string.
37319         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37320
37321 2007-01-21  Bruno Haible  <bruno@clisp.org>
37322
37323         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37324         * lib/striconveh.c (str_iconveh): Likewise.
37325
37326 2007-01-21  Bruno Haible  <bruno@clisp.org>
37327
37328         * lib/striconveh.h (mem_iconveh): New declaration.
37329         * lib/striconveh.c (mem_iconveh): New function.
37330         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37331
37332 2007-01-21  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37335
37336         * lib/striconveh.h (mem_cd_iconveh): Change specification.
37337         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37338         original result buffer.
37339         (str_cd_iconveh): Update.
37340         * tests/test-striconveh.c (main): Update.
37341
37342         * lib/striconv.h (mem_cd_iconv): Change specification.
37343         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37344         result buffer.
37345         (str_cd_iconv): Update.
37346         * tests/test-striconv.c (main): Update.
37347
37348 2007-01-21  Bruno Haible  <bruno@clisp.org>
37349
37350         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37351
37352 2007-01-20  Jim Meyering  <jim@meyering.net>
37353
37354         * lib/userspec.c (parse_with_separator): If a user or group string
37355         starts with "+", skip the corresponding name-to-ID look-up, since
37356         such a look-up must fail: user and group names may not include "+".
37357
37358 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
37359
37360         * lib/poll.c: Include sys/time.h and time.h unconditionally,
37361         since we now assume the sys_time module.
37362         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37363         check for sys/time.h; no longer needed.
37364         * modules/poll (Depends-on): Depend on sys_time.
37365
37366 2007-01-18  Bruno Haible  <bruno@clisp.org>
37367
37368         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37369         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37370
37371         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37372         gettimeofday.
37373
37374         * tests/test-gettimeofday.c: Include <time.h>.
37375         (dummy): Remove variable.
37376
37377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37378         gl_HEADER_SYS_TIME_H.
37379         (gl_HEADER_SYS_TIME_H): New macro.
37380
37381         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37382         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37383         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37384         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37385         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37387         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37388         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37389         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37390         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37391         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37392
37393         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37394         last change; it caused a compilation error when cross-compiling to
37395         Cygwin.
37396
37397 2007-01-18  Jim Meyering  <jim@meyering.net>
37398
37399         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37400         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37401         than the race-prone "test -d sys || mkdir sys".
37402         (configure.ac): Use AC_PROG_MKDIR_P.
37403         * modules/sys_select: Likewise.
37404         * modules/sys_socket: Likewise.
37405         * modules/sys_time: Likewise.
37406
37407 2007-01-18  Eric Blake  <ebb9@byu.net>
37408
37409         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37410         replace gettimeofday.
37411         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37412         name, to avoid infinite recursion.
37413
37414 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
37415
37416         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37417         module sys_time.
37418         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37419         assume timespec.h defines struct timeval.
37420         * lib/settime.c: Likewise.
37421         * lib/utimens.c: Likewise.
37422         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37423         since we now assume the gettimeofday module.
37424         * lib/tempname.c (__gen_tempname): Likewise.
37425         * lib/gettimeofday.h: Remove.
37426         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37427         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37428         Include <time.h>, for 'time()'.
37429         (localtime_buffer_addr): Also use this workaround if
37430         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
37431         to simplify the uses.  All uses changed.
37432         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37433         that #undef is inside {}, and 'const' follows type name consistently.
37434         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37435         (gettimeofday): Do not use the maximum possible value for
37436         tv->tv_usec, since that might break usages other than ls.c.
37437         Instead, we'll leave ls.c alone.  This undoes today's patch
37438         by Bruno.  Add a compile-time warning for 1s-clock resolution;
37439         we've never observed the problem but might as well keep the
37440         canary.
37441         * lib/nanosleep.c: Include timespec.h first, for interface check.
37442         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37443         now assume the sys_time module.
37444         * lib/tempname.c: Likewise.
37445         * lib/timespec.h: Likewise.
37446         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37447         needed.
37448         * lib/strftime.c: Likewise.
37449         * lib/timespec.h: Likewise.
37450         * lib/posixtm.c: Include posixtm.h first, for interface check.
37451         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37452         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37453         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37454         * lib/sys_time_.h: New file.
37455         * lib/timespec.h (struct timespec): Use long int, not long.
37456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37457         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37458         Remove obsolescent call to AC_HEADER_TIME.
37459         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37461         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37462         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37463         Likewise.
37464         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37465         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37466         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37467         into the sys_time module.  Check for gettimeofday just once.
37468         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
37469         for gettimeofday signature to just check the signature.  Merely
37470         compile it, since linking doesn't test signature.  Improve test for
37471         whether gettimeofday.o is actually needed.
37472         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37473         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
37474         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
37475         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37476         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37477         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37478         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37479         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37480         than worrying about sys/time.h.
37481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37482         Don't bother worrying about TIME_WITH_SYS_TIME.
37483         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37484         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37485         * m4/sys_time_h.m4: New file.
37486         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37487         Don't include sys/time.h.  Return from main rather than exiting.
37488         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37489         all uses changed.
37490         * modules/gethrxtime (Depends-on): Add sys_time.
37491         * modules/gettime (Depends-on): Likewise.
37492         * modules/gettimeofday (Depends-on): Likewise.
37493         * modules/nanosleep (Depends-on): Likewise.
37494         * modules/settime (Depends-on): Likewise.
37495         * modules/tempname (Depends-on): Likewise.
37496         * modules/utimens (Depends-on): Likewise.
37497         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37498         (Include:) Change back to <sys/time.h>.
37499         (Maintainer:) Add self.
37500         * modules/sys_time: New file.
37501         * modules/tempname (Depends-on): Add gettimeofday.
37502         * tests/test-gettimeofday.c: Include <sys/time.h>
37503         rather than gettimeofday.h.
37504
37505 2007-01-17  Bruno Haible  <bruno@clisp.org>
37506
37507         * gnulib-tool (func_get_license): Revert last patch. Instead, let
37508         the license default to GPL.
37509         (func_create_testdir): Don't complain if a module is LGPL and its
37510         tests module depends on GPLed modules.
37511
37512 2007-01-17  Bruno Haible  <bruno@clisp.org>
37513
37514         * lib/gettimeofday.c (gettimeofday): Add code for the case
37515         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37516         maximum possible value for tv->tv_usec, rather than the minimum one.
37517
37518 2005-10-08  Martin Lambers  <marlam@marlam.de>
37519 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37520 2007-01-16  Bruno Haible  <bruno@clisp.org>
37521
37522         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
37523         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
37524         gl_FUNC_GETTIMEOFDAY.
37525         (Include): Add gettimeofday.h.
37526         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
37527         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
37528         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
37529         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
37530         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
37531         * lib/gettimeofday.h: New file.
37532         * lib/gettimeofday.c: Include <sys/timeb.h>.
37533         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
37534         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37535         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
37536         fall back on time().
37537
37538         * tests/test-gettimeofday.c: New file.
37539         * modules/gettimeofday-tests: New file.
37540
37541 2007-01-16  Eric Blake  <ebb9@byu.net>
37542
37543         * modules/fnmatch (Depends-on): Depend on wchar.
37544         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
37545         * m4/fnmatch.m4: Likewise.
37546         * modules/mbchar (Makefile.am): Assume <wchar.h>.
37547         * m4/mbchar.m4: Likewise.
37548         * modules/mbswidth (Depends-on): Depend on wchar.
37549         * lib/mbswidth.c: Assume <wchar.h>.
37550         * m4/mbswidth.m4: Likewise.
37551         * modules/quotearg (Depends-on): Depend on wchar.
37552         * lib/quotearg.c: Assume <wchar.h>.
37553         * m4/quotearg.m4: Likewise.
37554         * modules/regex (Depends-on): Depend on wchar.
37555         * lib/regex_internal.h: Assume <wchar.h>.
37556         * m4/regex.m4: Likewise.
37557         * modules/stdint (Depends-on): Depend on wchar.
37558         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
37559         * m4/stdint.m4: Likewise.
37560         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
37561         * modules/strftime (Depends-on): Depend on wchar.
37562         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
37563         * modules/strtol (Depends-on): Depend on wchar.
37564         * lib/strtol.c: Assume <wchar.h>.
37565         * modules/wcwidth (Depends-on): Depend on wchar.
37566         * lib/wcwidth.h: Assume <wchar.h>.
37567         * m4/wcwidth.m4: Likewise.
37568
37569 2007-01-16  Bruno Haible  <bruno@clisp.org>
37570
37571         * modules/csharpexec-script: New, created from...
37572         * modules/csharpexec: ... this.
37573
37574 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
37575
37576         * modules/javaexec-script: New, created from...
37577         * modules/javaexec: ... this.
37578
37579 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37580
37581         * modules/poll (Dependencies): Add sys_select.
37582
37583 2007-01-15  Jim Meyering  <jim@meyering.net>
37584
37585         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
37586         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
37587         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
37588         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
37589
37590 2007-01-15  Bruno Haible  <bruno@clisp.org>
37591
37592         * modules/striconveh: New file.
37593         * lib/striconveh.h: New file.
37594         * lib/striconveh.c: New file.
37595         * MODULES.html.sh (Internationalization functions): Add striconveh.
37596
37597         * modules/striconveh-tests: New file.
37598         * tests/test-striconveh.c: New file.
37599
37600 2007-01-15  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
37603         not from GNU libiconv or GNU libc.
37604
37605 2007-01-15  Bruno Haible  <bruno@clisp.org>
37606
37607         * doc/gnulib-intro.texi (Copyright): Explain the different license
37608         terms for module descriptions, autoconf macros, tests, documentation.
37609
37610 2007-01-14  Bruno Haible  <bruno@clisp.org>
37611
37612         * modules/striconv-tests: New file.
37613         * tests/test-striconv.c: New file.
37614
37615 2007-01-14  Bruno Haible  <bruno@clisp.org>
37616
37617         * modules/iconv-tests: New file.
37618         * tests/test-iconv.c: New file.
37619
37620 2007-01-14  Bruno Haible  <bruno@clisp.org>
37621
37622         * gnulib-tool (func_get_license): For test modules, use the license of
37623         the main module.
37624
37625 2007-01-14  Bruno Haible  <bruno@clisp.org>
37626
37627         * modules/iconv (Include): Clarify that <iconv.h> can only be included
37628         if iconv is found to exist.
37629
37630 2007-01-14  Bruno Haible  <bruno@clisp.org>
37631
37632         * modules/c-ctype-tests: New file.
37633         * tests/test-c-ctype.c: New file.
37634
37635 2007-01-14  Bruno Haible  <bruno@clisp.org>
37636
37637         * modules/binary-io-tests: New file.
37638         * tests/test-binary-io.sh: New file.
37639         * tests/test-binary-io.c: New file.
37640
37641 2007-01-14  Bruno Haible  <bruno@clisp.org>
37642
37643         * modules/array-oset-tests: New file.
37644         * tests/test-array_oset.c: New file.
37645
37646 2007-01-14  Bruno Haible  <bruno@clisp.org>
37647
37648         * modules/array-list-tests: New file.
37649         * tests/test-array_list.c: New file.
37650
37651 2007-01-14  Bruno Haible  <bruno@clisp.org>
37652
37653         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
37654         and make.
37655         Reported by Simon Josefsson in
37656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
37657
37658 2007-01-14  Bruno Haible  <bruno@clisp.org>
37659
37660         * modules/allocsa-tests: New file.
37661         * tests/test-allocsa.c: New file.
37662
37663 2007-01-14  Bruno Haible  <bruno@clisp.org>
37664
37665         * modules/fchdir (Depends-on): Add absolute-header.
37666         * modules/unistd (Depends-on): Likewise.
37667
37668 2006-12-30  Bruno Haible  <bruno@clisp.org>
37669
37670         * modules/fchdir: New file.
37671         * modules/unistd (Files): Add lib/unistd_.h.
37672         (Makefile.am): Generate unistd.h from unistd_.h.
37673         * lib/fchdir.c: New file.
37674         * lib/dirent_.h: New file.
37675         * lib/unistd_.h: New file.
37676         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
37677         * m4/fchdir.m4: New file.
37678         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
37679         (gl_HEADER_UNISTD): Invoke it.
37680         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
37681         function.
37682         * lib/backupfile.c (opendir, closedir): Undefine.
37683         * lib/chown.c (open, close): Undefine.
37684         * lib/clean-temp.c (open, close): Undefine.
37685         * lib/copy-file.c (open, close): Undefine.
37686         * lib/execute.c (open, close): Undefine.
37687         * lib/fsusage.c (open, close): Undefine.
37688         * lib/gc-gnulib.c (open, close): Undefine.
37689         * lib/getcwd.c (opendir, closedir): Undefine.
37690         * lib/glob.c (opendir, closedir): Undefine.
37691         * lib/javacomp.c (open, close): Undefine.
37692         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
37693         * lib/openat-proc.c (open, close): Undefine.
37694         * lib/pagealign_alloc.c (open, close): Undefine.
37695         * lib/pipe.c (open, close): Undefine.
37696         * lib/progreloc.c (open, close): Undefine.
37697         * lib/savedir.c (opendir, closedir): Undefine.
37698         * lib/utime.c (open, close): Undefine.
37699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
37700
37701 2007-01-10  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
37704
37705 2007-01-12  Eric Blake  <ebb9@byu.net>
37706
37707         Provide a robust <wchar.h>.  Further simplifications are now
37708         possible in other modules, but not included here.
37709         * modules/wchar: New module.
37710         * m4/wchar.m4: New file.
37711         * lib/wchar_.h: Likewise.
37712         * modules/mbchar (Depends-on): Depend on wchar, as the first use
37713         of the new module.
37714         * MODULES.html.sh (Extended multibyte and wide character utilities):
37715         New section.
37716
37717 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
37718
37719         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
37720         to a reasonable default for memory allocation.
37721         (xreadlink): Don't allocate a huge buffer, to work around a buggy
37722         file system that reports garbage st_size values for symlinks.
37723         Problem reported by Liyang Hu.
37724
37725 2007-01-11  Simon Josefsson  <simon@josefsson.org>
37726
37727         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
37728         Emacs .#* auto-save files).
37729
37730 2007-01-11  Bruno Haible  <bruno@clisp.org>
37731
37732         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
37733         directory.
37734
37735 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37736
37737         Use @...@ consistently in lib/wctype_.h.
37738         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
37739         on it being set to 1 or 0.
37740         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
37741         go back to AC_SUBSTing it.
37742         * modules/wctype (Makefile.am): Undo previous change.
37743
37744 2007-01-10  Eric Blake  <ebb9@byu.net>
37745
37746         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
37747         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
37748         * modules/wctype (Makefile.am): Likewise.
37749         Reported by Chris McGuire.
37750
37751 2007-01-10  Jim Meyering  <jim@meyering.net>
37752
37753         fts.c: a small readability/maintainability improvement
37754         * lib/fts.c (fts_read): Make this code slightly more readable and
37755         maintainable by hoisting the "sp->fts_cur = p" assignments to
37756         immediately follow the statements that set P.  Derived from
37757         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
37758
37759 2007-01-10  Eric Blake  <ebb9@byu.net>
37760
37761         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
37762         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
37763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37764         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
37765         Reported by Chris McGuire.
37766
37767 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37768
37769         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
37770         in sed script.
37771
37772 2007-01-09  Bruno Haible  <bruno@clisp.org>
37773
37774         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
37775         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
37776         variables.
37777         (func_module): Use them.
37778
37779 2007-01-09  Bruno Haible  <bruno@clisp.org>
37780
37781         * modules/unistr/base: New file.
37782         * lib/unistr.h: New file.
37783
37784         * modules/unistr/u8-to-u16: New file.
37785         * lib/unistr/u8-to-u16.c: New file.
37786
37787         * modules/unistr/u8-to-u32: New file.
37788         * lib/unistr/u8-to-u32.c: New file.
37789
37790         * modules/unistr/u16-to-u8: New file.
37791         * lib/unistr/u16-to-u8.c: New file.
37792
37793         * modules/unistr/u16-to-u32: New file.
37794         * lib/unistr/u16-to-u32.c: New file.
37795
37796         * modules/unistr/u32-to-u8: New file.
37797         * lib/unistr/u32-to-u8.c: New file.
37798
37799         * modules/unistr/u32-to-u16: New file.
37800         * lib/unistr/u32-to-u16.c: New file.
37801
37802         * modules/unistr/u8-check: New file.
37803         * modules/unistr/u16-check: New file.
37804         * modules/unistr/u32-check: New file.
37805         * lib/unistr/u8-check.c: New file.
37806         * lib/unistr/u16-check.c: New file.
37807         * lib/unistr/u32-check.c: New file.
37808
37809         * modules/unistr/u8-chr: New file.
37810         * modules/unistr/u16-chr: New file.
37811         * modules/unistr/u32-chr: New file.
37812         * lib/unistr/u8-chr.c: New file.
37813         * lib/unistr/u16-chr.c: New file.
37814         * lib/unistr/u32-chr.c: New file.
37815
37816         * modules/unistr/u8-cmp: New file.
37817         * modules/unistr/u16-cmp: New file.
37818         * modules/unistr/u32-cmp: New file.
37819         * lib/unistr/u8-cmp.c: New file.
37820         * lib/unistr/u16-cmp.c: New file.
37821         * lib/unistr/u32-cmp.c: New file.
37822
37823         * modules/unistr/u8-cpy: New file.
37824         * modules/unistr/u16-cpy: New file.
37825         * modules/unistr/u32-cpy: New file.
37826         * lib/unistr/u8-cpy.c: New file.
37827         * lib/unistr/u16-cpy.c: New file.
37828         * lib/unistr/u32-cpy.c: New file.
37829         * lib/unistr/u-cpy.h: New file.
37830
37831         * modules/unistr/u8-cpy-alloc: New file.
37832         * modules/unistr/u16-cpy-alloc: New file.
37833         * modules/unistr/u32-cpy-alloc: New file.
37834         * lib/unistr/u8-cpy-alloc.c: New file.
37835         * lib/unistr/u16-cpy-alloc.c: New file.
37836         * lib/unistr/u32-cpy-alloc.c: New file.
37837         * lib/unistr/u-cpy-alloc.h: New file.
37838
37839         * modules/unistr/u8-endswith: New file.
37840         * modules/unistr/u16-endswith: New file.
37841         * modules/unistr/u32-endswith: New file.
37842         * lib/unistr/u8-endswith.c: New file.
37843         * lib/unistr/u16-endswith.c: New file.
37844         * lib/unistr/u32-endswith.c: New file.
37845         * lib/unistr/u-endswith.h: New file.
37846
37847         * modules/unistr/u8-mblen: New file.
37848         * modules/unistr/u16-mblen: New file.
37849         * modules/unistr/u32-mblen: New file.
37850         * lib/unistr/u8-mblen.c: New file.
37851         * lib/unistr/u16-mblen.c: New file.
37852         * lib/unistr/u32-mblen.c: New file.
37853
37854         * modules/unistr/u8-mbtouc: New file.
37855         * modules/unistr/u16-mbtouc: New file.
37856         * modules/unistr/u32-mbtouc: New file.
37857         * lib/unistr/u8-mbtouc.c: New file.
37858         * lib/unistr/u16-mbtouc.c: New file.
37859         * lib/unistr/u32-mbtouc.c: New file.
37860
37861         * modules/unistr/u8-mbtouc-safe: New file.
37862         * modules/unistr/u16-mbtouc-safe: New file.
37863         * modules/unistr/u32-mbtouc-safe: New file.
37864         * lib/unistr/u8-mbtouc-safe.c: New file.
37865         * lib/unistr/u16-mbtouc-safe.c: New file.
37866         * lib/unistr/u32-mbtouc-safe.c: New file.
37867
37868         * modules/unistr/u8-move: New file.
37869         * modules/unistr/u16-move: New file.
37870         * modules/unistr/u32-move: New file.
37871         * lib/unistr/u8-move.c: New file.
37872         * lib/unistr/u16-move.c: New file.
37873         * lib/unistr/u32-move.c: New file.
37874         * lib/unistr/u-move.h: New file.
37875
37876         * modules/unistr/u8-next: New file.
37877         * modules/unistr/u16-next: New file.
37878         * modules/unistr/u32-next: New file.
37879         * lib/unistr/u8-next.c: New file.
37880         * lib/unistr/u16-next.c: New file.
37881         * lib/unistr/u32-next.c: New file.
37882
37883         * modules/unistr/u8-prev: New file.
37884         * modules/unistr/u16-prev: New file.
37885         * modules/unistr/u32-prev: New file.
37886         * lib/unistr/u8-prev.c: New file.
37887         * lib/unistr/u16-prev.c: New file.
37888         * lib/unistr/u32-prev.c: New file.
37889
37890         * modules/unistr/u8-set: New file.
37891         * modules/unistr/u16-set: New file.
37892         * modules/unistr/u32-set: New file.
37893         * lib/unistr/u8-set.c: New file.
37894         * lib/unistr/u16-set.c: New file.
37895         * lib/unistr/u32-set.c: New file.
37896         * lib/unistr/u-set.h: New file.
37897
37898         * modules/unistr/u8-startswith: New file.
37899         * modules/unistr/u16-startswith: New file.
37900         * modules/unistr/u32-startswith: New file.
37901         * lib/unistr/u8-startswith.c: New file.
37902         * lib/unistr/u16-startswith.c: New file.
37903         * lib/unistr/u32-startswith.c: New file.
37904         * lib/unistr/u-startswith.h: New file.
37905
37906         * modules/unistr/u8-stpcpy: New file.
37907         * modules/unistr/u16-stpcpy: New file.
37908         * modules/unistr/u32-stpcpy: New file.
37909         * lib/unistr/u8-stpcpy.c: New file.
37910         * lib/unistr/u16-stpcpy.c: New file.
37911         * lib/unistr/u32-stpcpy.c: New file.
37912         * lib/unistr/u-stpcpy.h: New file.
37913
37914         * modules/unistr/u8-stpncpy: New file.
37915         * modules/unistr/u16-stpncpy: New file.
37916         * modules/unistr/u32-stpncpy: New file.
37917         * lib/unistr/u8-stpncpy.c: New file.
37918         * lib/unistr/u16-stpncpy.c: New file.
37919         * lib/unistr/u32-stpncpy.c: New file.
37920         * lib/unistr/u-stpncpy.h: New file.
37921
37922         * modules/unistr/u8-strcat: New file.
37923         * modules/unistr/u16-strcat: New file.
37924         * modules/unistr/u32-strcat: New file.
37925         * lib/unistr/u8-strcat.c: New file.
37926         * lib/unistr/u16-strcat.c: New file.
37927         * lib/unistr/u32-strcat.c: New file.
37928         * lib/unistr/u-strcat.h: New file.
37929
37930         * modules/unistr/u8-strchr: New file.
37931         * modules/unistr/u16-strchr: New file.
37932         * modules/unistr/u32-strchr: New file.
37933         * lib/unistr/u8-strchr.c: New file.
37934         * lib/unistr/u16-strchr.c: New file.
37935         * lib/unistr/u32-strchr.c: New file.
37936
37937         * modules/unistr/u8-strcmp: New file.
37938         * modules/unistr/u16-strcmp: New file.
37939         * modules/unistr/u32-strcmp: New file.
37940         * lib/unistr/u8-strcmp.c: New file.
37941         * lib/unistr/u16-strcmp.c: New file.
37942         * lib/unistr/u32-strcmp.c: New file.
37943
37944         * modules/unistr/u8-strcpy: New file.
37945         * modules/unistr/u16-strcpy: New file.
37946         * modules/unistr/u32-strcpy: New file.
37947         * lib/unistr/u8-strcpy.c: New file.
37948         * lib/unistr/u16-strcpy.c: New file.
37949         * lib/unistr/u32-strcpy.c: New file.
37950         * lib/unistr/u-strcpy.h: New file.
37951
37952         * modules/unistr/u8-strcspn: New file.
37953         * modules/unistr/u16-strcspn: New file.
37954         * modules/unistr/u32-strcspn: New file.
37955         * lib/unistr/u8-strcspn.c: New file.
37956         * lib/unistr/u16-strcspn.c: New file.
37957         * lib/unistr/u32-strcspn.c: New file.
37958         * lib/unistr/u-strcspn.h: New file.
37959
37960         * modules/unistr/u8-strdup: New file.
37961         * modules/unistr/u16-strdup: New file.
37962         * modules/unistr/u32-strdup: New file.
37963         * lib/unistr/u8-strdup.c: New file.
37964         * lib/unistr/u16-strdup.c: New file.
37965         * lib/unistr/u32-strdup.c: New file.
37966         * lib/unistr/u-strdup.h: New file.
37967
37968         * modules/unistr/u8-strlen: New file.
37969         * modules/unistr/u16-strlen: New file.
37970         * modules/unistr/u32-strlen: New file.
37971         * lib/unistr/u8-strlen.c: New file.
37972         * lib/unistr/u16-strlen.c: New file.
37973         * lib/unistr/u32-strlen.c: New file.
37974         * lib/unistr/u-strlen.h: New file.
37975
37976         * modules/unistr/u8-strmblen: New file.
37977         * modules/unistr/u16-strmblen: New file.
37978         * modules/unistr/u32-strmblen: New file.
37979         * lib/unistr/u8-strmblen.c: New file.
37980         * lib/unistr/u16-strmblen.c: New file.
37981         * lib/unistr/u32-strmblen.c: New file.
37982
37983         * modules/unistr/u8-strmbtouc: New file.
37984         * modules/unistr/u16-strmbtouc: New file.
37985         * modules/unistr/u32-strmbtouc: New file.
37986         * lib/unistr/u8-strmbtouc.c: New file.
37987         * lib/unistr/u16-strmbtouc.c: New file.
37988         * lib/unistr/u32-strmbtouc.c: New file.
37989
37990         * modules/unistr/u8-strncat: New file.
37991         * modules/unistr/u16-strncat: New file.
37992         * modules/unistr/u32-strncat: New file.
37993         * lib/unistr/u8-strncat.c: New file.
37994         * lib/unistr/u16-strncat.c: New file.
37995         * lib/unistr/u32-strncat.c: New file.
37996         * lib/unistr/u-strncat.h: New file.
37997
37998         * modules/unistr/u8-strncmp: New file.
37999         * modules/unistr/u16-strncmp: New file.
38000         * modules/unistr/u32-strncmp: New file.
38001         * lib/unistr/u8-strncmp.c: New file.
38002         * lib/unistr/u16-strncmp.c: New file.
38003         * lib/unistr/u32-strncmp.c: New file.
38004
38005         * modules/unistr/u8-strncpy: New file.
38006         * modules/unistr/u16-strncpy: New file.
38007         * modules/unistr/u32-strncpy: New file.
38008         * lib/unistr/u8-strncpy.c: New file.
38009         * lib/unistr/u16-strncpy.c: New file.
38010         * lib/unistr/u32-strncpy.c: New file.
38011         * lib/unistr/u-strncpy.h: New file.
38012
38013         * modules/unistr/u8-strnlen: New file.
38014         * modules/unistr/u16-strnlen: New file.
38015         * modules/unistr/u32-strnlen: New file.
38016         * lib/unistr/u8-strnlen.c: New file.
38017         * lib/unistr/u16-strnlen.c: New file.
38018         * lib/unistr/u32-strnlen.c: New file.
38019         * lib/unistr/u-strnlen.h: New file.
38020
38021         * modules/unistr/u8-strpbrk: New file.
38022         * modules/unistr/u16-strpbrk: New file.
38023         * modules/unistr/u32-strpbrk: New file.
38024         * lib/unistr/u8-strpbrk.c: New file.
38025         * lib/unistr/u16-strpbrk.c: New file.
38026         * lib/unistr/u32-strpbrk.c: New file.
38027         * lib/unistr/u-strpbrk.h: New file.
38028
38029         * modules/unistr/u8-strrchr: New file.
38030         * modules/unistr/u16-strrchr: New file.
38031         * modules/unistr/u32-strrchr: New file.
38032         * lib/unistr/u8-strrchr.c: New file.
38033         * lib/unistr/u16-strrchr.c: New file.
38034         * lib/unistr/u32-strrchr.c: New file.
38035
38036         * modules/unistr/u8-strspn: New file.
38037         * modules/unistr/u16-strspn: New file.
38038         * modules/unistr/u32-strspn: New file.
38039         * lib/unistr/u8-strspn.c: New file.
38040         * lib/unistr/u16-strspn.c: New file.
38041         * lib/unistr/u32-strspn.c: New file.
38042         * lib/unistr/u-strspn.h: New file.
38043
38044         * modules/unistr/u8-strstr: New file.
38045         * modules/unistr/u16-strstr: New file.
38046         * modules/unistr/u32-strstr: New file.
38047         * lib/unistr/u8-strstr.c: New file.
38048         * lib/unistr/u16-strstr.c: New file.
38049         * lib/unistr/u32-strstr.c: New file.
38050         * lib/unistr/u-strstr.h: New file.
38051
38052         * modules/unistr/u8-strtok: New file.
38053         * modules/unistr/u16-strtok: New file.
38054         * modules/unistr/u32-strtok: New file.
38055         * lib/unistr/u8-strtok.c: New file.
38056         * lib/unistr/u16-strtok.c: New file.
38057         * lib/unistr/u32-strtok.c: New file.
38058         * lib/unistr/u-strtok.h: New file.
38059
38060         * modules/unistr/u8-uctomb: New file.
38061         * modules/unistr/u16-uctomb: New file.
38062         * modules/unistr/u32-uctomb: New file.
38063         * lib/unistr/u8-uctomb.c: New file.
38064         * lib/unistr/u16-uctomb.c: New file.
38065         * lib/unistr/u32-uctomb.c: New file.
38066
38067         * MODULES.html.sh (Unicode string functions): Add the new modules.
38068
38069 2007-01-08  Bruno Haible  <bruno@clisp.org>
38070
38071         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38072         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38073         subdirectories.
38074
38075 2007-01-08  Karl Berry  <karl@gnu.org>
38076
38077         * doc/error.texi: mention that main() fns must set program_name
38078         when progname is used.
38079
38080 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38081
38082         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38083         WCTYPE_H is empty, for the benefit of builds from non-distclean
38084         directories.  Problem reported by Eric Blake in
38085         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38086
38087 2007-01-08  Bruno Haible  <bruno@clisp.org>
38088
38089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38090         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38091         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38092         PROVIDE_CANONICALIZE_FILENAME_MODE.
38093         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38094
38095 2007-01-08  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38098         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38099         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38100         * lib/fts.c: Likewise.
38101         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38102
38103 2006-12-25  Bruno Haible  <bruno@clisp.org>
38104
38105         * modules/utf8-ucs4-safe: New file.
38106         * lib/utf8-ucs4-safe.h: New file.
38107         * lib/unistr/utf8-ucs4-safe.c: New file.
38108
38109         * modules/utf16-ucs4-safe: New file.
38110         * lib/utf16-ucs4-safe.h: New file.
38111         * lib/unistr/utf16-ucs4-safe.c: New file.
38112
38113         * MODULES.html.sh (Unicode string functions): Add the new modules.
38114
38115 2007-01-08  Bruno Haible  <bruno@clisp.org>
38116
38117         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38118         (Depends-on): Add unitypes.
38119         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38120         (u8_mbtouc_aux): Move out to separate file.
38121         (u8_mbtouc): Use ucs4_t, uint8_t types.
38122         * lib/unistr/utf8-ucs4.c: New file.
38123
38124         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38125         (Depends-on): Add unitypes.
38126         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38127         (u16_mbtouc_aux): Move out to separate file.
38128         (u16_mbtouc): Use ucs4_t, uint16_t types.
38129         * lib/unistr/utf16-ucs4.c: New file.
38130
38131         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38132         (Depends-on): Add unitypes.
38133         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38134         (u8_uctomb_aux): Move out to separate file.
38135         (u8_uctomb): Use ucs4_t, uint8_t types.
38136         * lib/unistr/ucs4-utf8.c: New file.
38137
38138         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38139         (Depends-on): Add unitypes.
38140         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38141         (u16_uctomb_aux): Move out to separate file.
38142         (u16_uctomb): Use ucs4_t, uint16_t types.
38143         * lib/unistr/ucs4-utf16.c: New file.
38144
38145 2006-12-25  Bruno Haible  <bruno@clisp.org>
38146
38147         * modules/unitypes: New file.
38148         * lib/unitypes.h: New file.
38149         * MODULES.html.sh (func_all_modules): New section "Unicode string
38150         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38151         this section. Add unitypes.
38152
38153 2007-01-08  Bruno Haible  <bruno@clisp.org>
38154
38155         Avoid variable names that conflict with those from libtool.
38156         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38157         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38158         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38159         library_names_spec to acl_library_names_spec, hardcode_* to
38160         acl_hardcode_*.
38161         Reported by Ralf Wildenhues.
38162
38163 2007-01-08  Bruno Haible  <bruno@clisp.org>
38164
38165         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38166         definition.
38167         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38168         definition.
38169         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38170         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38171         definition.
38172         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38173         definition.
38174         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38175         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38176         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38177         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38178         definition.
38179         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38180         definition.
38181         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38182         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38183         GC_USE_<algorithm>.
38184         * lib/gc-libgcrypt.c: Likewise.
38185         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38186         * modules/gc-arctwo (configure.ac): Likewise.
38187         * modules/gc-des (configure.ac): Likewise.
38188         * modules/gc-hmac-md5 (configure.ac): Likewise.
38189         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38190         * modules/gc-md2 (configure.ac): Likewise.
38191         * modules/gc-md4 (configure.ac): Likewise.
38192         * modules/gc-md5 (configure.ac): Likewise.
38193         * modules/gc-random (configure.ac): Likewise.
38194         * modules/gc-rijndael (configure.ac): Likewise.
38195         * modules/gc-sha1 (configure.ac): Likewise.
38196
38197 2007-01-08  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38200         macro definition.
38201         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38202         definition.
38203         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38204         definition.
38205         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38206         * modules/fcntl-safer (configure.ac): Likewise.
38207         * modules/fopen-safer (configure.ac): Likewise.
38208         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38209         GNULIB_FWRITEERROR macro definition.
38210
38211 2007-01-08  Bruno Haible  <bruno@clisp.org>
38212
38213         * m4/gnulib-common.m4: New file.
38214         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38215         (func_get_filelist): Add m4/gnulib-common.m4.
38216
38217 2007-01-08  Bruno Haible  <bruno@clisp.org>
38218
38219         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38220         command.
38221
38222 2007-01-08  Jim Meyering  <jim@meyering.net>
38223
38224         Use a more robust test for a "can't happen" condition.
38225         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38226         narrowed the st_size value.  Presuming the "can't happen" condition
38227         is true, that narrowing could conceivably convert an invalid st_size
38228         value into a valid one.  Instead, use a change based on Matthew
38229         Woehlke's original patch.
38230
38231         Slight readability improvement: use an assert-like macro
38232         in place of literal "abort ()" uses.
38233         * lib/fts.c (fts_assert): Define.
38234         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38235         Use this macro instead of a bare 'abort'.
38236
38237 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
38238
38239         Don't worry about using IRIX 5.3's wctype.h broken definitions;
38240         simply work around them.
38241         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38242         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38243         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38244         declaring.
38245         Don't bother to define as macros, since the standard doesn't require it.
38246         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38247         longer worry about IRIX 5.3.
38248         (HAVE_WCTYPE_CTMP_BUG): Remove.
38249
38250 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38251
38252         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38253         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
38254         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38255         Problems reported by Georg Schwarz for IRIX 5.3.
38256
38257         * gnulib-tool (autoconf_minversion): Take the maximum version number
38258         found, not the minimum.  Problem reported by James Youngman.
38259
38260 2007-01-03  Karl Berry  <karl@gnu.org>
38261
38262         * doc/error.texi: new file, explaining interaction with progname.
38263         * doc/gnulib.texi: include it.  Update copyright.
38264
38265 2007-01-03  Simon Josefsson  <simon@josefsson.org>
38266
38267         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38268         AC_CANONICAL_HOST, to improve autobuild outputs.
38269
38270 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
38271             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38272
38273         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38274         sockets, server sockets, and other file descriptors.  Count errors
38275         to compute the return value.  Reorder the code a bit to be easier
38276         to follow.  Don't set event bits that were not requested (except
38277         POLLERR and POLLHUP).
38278
38279 2007-01-01  Bruno Haible  <bruno@clisp.org>
38280
38281         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38282
38283 2007-01-03  Jim Meyering  <jim@meyering.net>
38284
38285         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
38286
38287 2007-01-02  Bruno Haible  <bruno@clisp.org>
38288
38289         * modules/settime (Include): Require timespec.h.
38290         * modules/nanosleep (Include): Likewise.
38291
38292 2007-01-01  Bruno Haible  <bruno@clisp.org>
38293
38294         * gnulib-tool (func_emit_copyright_notice): Bump year.
38295         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38296
38297 2007-01-01  Bruno Haible  <bruno@clisp.org>
38298
38299         Improve support for OpenBSD.
38300         * build-aux/config.rpath (libname_spec): Export.
38301         (library_names_spec): New variable. Export.
38302         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38303         library_names_spec from the config.rpath output. Locate shared library
38304         through the name pattern in library_names_spec.
38305
38306 2007-01-01  Eric Blake  <ebb9@byu.net>
38307
38308         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38309
38310 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
38311
38312         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38313         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
38314         assume the C locale, and avoid an "eval" that could cause trouble.
38315         Problem with SORT reported by Bob Proulx.
38316
38317         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38318         Define.  Trivial patch from Henning Nielsen Lund, originally
38319         sent to bug-grep@gnu.org today.
38320
38321 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
38322
38323         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38324         struct stat.  Problem reported by Henning Nielsen Lund.
38325         * lib/acl.c: Include acl.h first, to check interface.  Don't
38326         bother to include sys/types.h and sys/stat.h again.
38327
38328 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38329
38330         Import the following change from libc; problem reported by
38331         Sven Verdoolaege.
38332
38333         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
38334
38335         [BZ #1373]
38336         * lib/argp.h: Remove __NTH for __argp_usage inline function.
38337
38338 2006-12-28  Jim Meyering  <jim@meyering.net>
38339
38340         * build-aux/announce-gen: Do not assume that the package
38341         builds any of tar.gz, tar.bz2, and .xdelta files.
38342         Suggestion from Simon Josefsson.
38343
38344 2006-12-28  Simon Josefsson  <simon@josefsson.org>
38345
38346         * modules/announce-gen: New file.
38347
38348 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
38349
38350         * lib/mbchar.h: Just include <wctype.h>; the wctype module
38351         handles its gotchas now.
38352         * lib/mbswidth.c: Likewise.
38353         * lib/wcwidth.h: Likewise.
38354         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38355         and iswcntrl; the wctype module does this stuff now.
38356         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38358         * modules/mbchar (Depends-on): Add wctype.
38359         * modules/mbswidth (Depends-on): Likewise.
38360         * modules/wcwidth (Depends-on): Likewise.
38361
38362 2006-12-27  Eric Blake  <ebb9@byu.net>
38363
38364         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38365         module uses more than what <wctype.h> is required to provide.
38366
38367 2006-12-26  Eric Blake  <ebb9@byu.net>
38368
38369         * gnulib-tool (sed_extract_prog): Avoid space-tab.
38370
38371 2006-12-26  Eric Blake  <ebb9@byu.net>
38372
38373         * modules/absolute-header: New module.
38374         * modules/fcntl (Depends-on): Depend on it.
38375         * modules/inttypes (Depends-on): Likewise.
38376         * modules/stdint (Depends-on): Likewise.
38377         * modules/sys_stat (Depends-on): Likewise.
38378         * modules/wctype (Depends-on): Likewise.
38379         * MODULES.html.sh (Support for building libraries and
38380         executables): Document it.
38381
38382 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
38383
38384         * gnulib-tool (SED): Remove, undoing previous change.
38385         The problem was that it broke coreutils on Solaris, because
38386         "sed --posix" leaked into a makefile.
38387         (sed): New alias, if 'alias' and GNU sed.
38388
38389 2006-12-24  Jim Meyering  <jim@meyering.net>
38390
38391         Work around an fchownat bug in glibc-2.4:
38392         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38393         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38394         in spite of the -P option.
38395         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38396         New macros.
38397         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38398         * modules/openat (Files): Add lib/fchownat.c.
38399         * lib/openat.c (fchownat): Don't define here.  Move to...
38400         * lib/fchownat.c: ...this new file.
38401
38402 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38403
38404         Fix bug reported by Bruno Haible in
38405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38406         where quotearg.c didn't compile on Mac OS X 10.2 because it
38407         lacks <wchar.h> and wint_t.
38408         * lib/wctype_.h (__wctype_wint_t): New type.
38409         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38410         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38411         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38412         Arg is now of type __wctype_wint_t, not wint_t.
38413         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38414         substitute HAVE_WINT_T.
38415         * modules/wctype (Files): Add m4/wint_t.m4.
38416         (wctype.h): Substitute HAVE_WINT_T.
38417
38418 2006-12-23  Bruno Haible  <bruno@clisp.org>
38419
38420         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38421
38422 2006-12-23  Bruno Haible  <bruno@clisp.org>
38423
38424         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38425         S_ISLNK.
38426         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38427         mingw.
38428
38429 2006-12-22  Bruno Haible  <bruno@clisp.org>
38430
38431         * lib/copy-file.c: Include acl.h.
38432         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38433         Close the file descriptors only after being done with copy_acl.
38434         * modules/copy-file (Depends-on): Add acl.
38435
38436 2006-12-22  Bruno Haible  <bruno@clisp.org>
38437
38438         * gnulib-tool (SED): New variable.
38439         Use $SED instead of sed everywhere.
38440
38441 2006-12-22  Bruno Haible  <bruno@clisp.org>
38442
38443         * modules/no-c++: New file.
38444         * m4/no-c++.m4: New file.
38445         * MODULES.html.sh (Support for building libraries and executables):
38446         Add no-c++.
38447
38448 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
38449
38450         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38451         Include <limits.h>, and use its INT_MAX to rewrite the
38452         j loop so that it does not overflow 'int'.  Problem reported by
38453         Ralf Wildenhues in
38454         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38455         Play it safe by shifting left by 1 rather than multiplying by 2,
38456         as GCC is less likely to optimize this away when the value
38457         is signed (when it assumes overflow leads to undefined behavior).
38458         Also, don't assume time_t uses two's complement.
38459
38460 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
38461
38462         * MODULES.html.sh: New module wctype.
38463         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38464         * lib/fnmatch.c: Don't bother to include <wchar.h> before
38465         <wctype.h>, since the new wctype module should fix this.
38466         * lib/quotearg.c: Include <wctype.h> unconditionally, since
38467         the wctype module should arrange for it.
38468         * lib/regex_internal.h: Likewise.
38469         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38470         since the wctype module should handle this now.
38471         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38472         * modules/fnmatch (Depends-on): Add wctype.
38473         * modules/quotearg (Depends-on): Likewise.
38474         * modules/regex (Depends-on): Likewise.
38475
38476 2006-12-19  Bruno Haible  <bruno@clisp.org>
38477
38478         * lib/strdup.h [C++]: Wrap definitions in extern "C".
38479         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38480
38481 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38482
38483         * modules/savewd (Depends-on): Fix dependency on fcntl.
38484
38485 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38486
38487         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38488         conforms to C99, rather than relying on the user's environment
38489         setting of STDINT_H.
38490
38491 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
38492         and Eric Blake  <ebb9@byu.net>
38493
38494         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38495         This is more consistent with the other defines here.
38496         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38497         Port to z/OS.  Problem reported by Paul Gilmartin.
38498         Change local vars to use gl_ prefix rather than ac_.
38499         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38500         with other defines.
38501         * modules/double-slash-root: New module.
38502         * modules/dirname (Files): Remove m4/double-slash-root.m4.
38503         (Depends-on): Add double-slash-root.
38504         * MODULES.html.sh (File system functions): Mention new module.
38505
38506 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
38507
38508         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38509         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38510         This is for the benefit of gzip, which doesn't do i18n.
38511
38512 2006-12-12  Jim Meyering  <jim@meyering.net>
38513
38514         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38515         Reported by Andreas Schwab <schwab@suse.de>.
38516
38517 2006-12-12  Bruno Haible  <bruno@clisp.org>
38518
38519         Merge these changes.
38520         2006-09-05  Bruno Haible  <bruno@clisp.org>
38521         * lib/iconvme.c (iconv_string): No need to save and restore errno when
38522         iconv_alloc succeeded.
38523         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
38524         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
38525         test for " && dest " at the end - dest is always != NULL there. Call
38526         iconv with 4xNULL arguments initially, to reset the state. Call iconv
38527         with 2xNULL arguments, also to flush the state storage. Handle the
38528         IRIX iconv behaviour. Realloc the final result, to throw away unused
38529         memory.
38530
38531 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
38532
38533         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
38534         and fchmodat unconditionally, since glibc 2.4 has them.
38535         Problem reported by Arkadiusz Miskiewicz.
38536
38537 2006-12-10  Bruno Haible  <bruno@clisp.org>
38538
38539         * gnulib-tool (func_import): Show the include files only for those
38540         modules that are copied and specified.
38541         Reported by Karl Berry.
38542
38543 2006-12-08  Jim Meyering  <jim@meyering.net>
38544
38545         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
38546         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
38547
38548         * build-aux/announce-gen: Add two new options, both optional:
38549         --bootstrap-tools=TOOL_LIST
38550               a comma-separated list of tools, e.g.,
38551               autoconf,automake,bison,gnulib
38552         --gnulib-snapshot-date=DATE
38553               if gnulib is in the bootstrap tool list,
38554               then report this as the snapshot date.
38555               If not specified, use the current date/time.
38556               If you specify a date here, be sure it's UTC.
38557
38558 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38559
38560         * tests/test-argp-2.sh: Fix test to match actual output.
38561         (func_compare): Fix sed script to be portable.
38562
38563 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
38564
38565         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
38566         workaround for this case.  It is not autoconfigured now; offhand
38567         it's hard to see how to autoconfigure it.
38568
38569 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
38570
38571         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
38572         a directory that is about to be chowned.  Such a directory's
38573         initial file permissions should permit the owner only and this
38574         should not be changed until after the chown, since the group and
38575         other bits would be incorrect if they granted permission before
38576         the chown.
38577
38578         Fix porting problem for iswctype reported by Georg Schwarz in:
38579         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
38580         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
38581         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
38582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
38583         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38584
38585 2006-12-03  Jim Meyering  <jim@meyering.net>
38586
38587         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
38588         p->fts_statp may not yet be defined.
38589         (fts_read): Instead, set it in the caller, once p->fts_statp is
38590         sure to be defined, and corresponds to a top-level directory.
38591         This bug made du -x fail.  Here's the coreutils test case:
38592         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
38593         Reported by Mike Frysinger.
38594
38595 2006-12-01  Jim Meyering  <jim@meyering.net>
38596
38597         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
38598         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
38599         Reported by Simon Josefsson.
38600
38601 2006-11-30  Jim Meyering  <jim@meyering.net>
38602
38603         * m4/warning.m4: Use the all-permissive copyright notice
38604         recommended by RMS (rather than LGPL).
38605         * m4/vararrays.m4: Likewise.
38606         * m4/flexmember.m4: Likewise.
38607
38608 2006-11-29  Bruno Haible  <bruno@clisp.org>
38609
38610         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38611         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
38612         using +=.
38613         Reported by Simon Josefsson <simon@josefsson.org>.
38614
38615 2006-11-28  James Youngman <jay@gnu.org>
38616
38617         * README: Advise users that they might find the bug-gnulib@gnu.org
38618         and autotools-announce@gnu.org mailing lists useful.
38619
38620 2006-11-28  Bruno Haible  <bruno@clisp.org>
38621
38622         * m4/ptrdiff_max.m4: Remove file.
38623
38624 2006-11-21  Bruno Haible  <bruno@clisp.org>
38625
38626         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
38627         _AC_COMPUTE_INT.
38628         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38629         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
38630         _AC_COMPUTE_INT.
38631         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38632         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
38633         _AC_COMPUTE_INT.
38634         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38635
38636 2006-11-28  Jim Meyering  <jim@meyering.net>
38637
38638         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
38639         warning from "gcc -Wshadow" about shadowing the builtin.
38640
38641 2006-11-27  Bruno Haible  <bruno@clisp.org>
38642
38643         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
38644         _AC_COMPUTE_INT.
38645         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
38646
38647 2006-11-27  Bruno Haible  <bruno@clisp.org>
38648             Paul Eggert  <eggert@cs.ucla.edu>
38649
38650         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
38651
38652 2006-11-26  Bruno Haible  <bruno@clisp.org>
38653
38654         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38655         noinst_LTLIBRARIES.
38656
38657 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
38658             Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
38661         if compiling with "gcc -ansi".
38662
38663 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
38664
38665         Fix some incompatibilities with gcc -ansi -pedantic.
38666         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
38667         if compiling pedantically with GCC, unless it's C99 or later.
38668         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
38669         it mishandles gcc -ansi -pedantic as well.
38670         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
38671         if gcc -pedantic.
38672         * lib/regexec.c (check_node_accept_bytes): Don't use auto
38673         initializers for struct if -pedantic, unless it's C99 or later.
38674
38675 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
38676
38677         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
38678         Don't close an fd more than once. Identical atimes indicate
38679         success, not failure.
38680
38681 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
38682
38683         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
38684
38685 2006-11-23  Jim Meyering  <jim@meyering.net>
38686
38687         * build-aux/announce-gen: New file.  From coreutils.
38688
38689 2006-11-22  Jim Meyering  <jim@meyering.net>
38690
38691         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
38692         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
38693         (fts_read): Use a temporary to narrow the overused st_size member
38694         before using it in a switch statement.  Reported by Matthew Woehlke.
38695
38696         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
38697         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38698
38699 2006-11-20  Bruno Haible  <bruno@clisp.org>
38700
38701         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
38702         changequote instead of pairs of brackets.
38703         Reported by Andreas Schwab <schwab@suse.de>.
38704
38705 2006-11-21  Jim Meyering  <jim@meyering.net>
38706
38707         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
38708         so as to remain compatible with older compilers.
38709         Patch from Michael Deutschmann.
38710
38711 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38712
38713         * MODULES.html.sh (File system functions): Add openat.
38714
38715         * lib/openat.h (rpl_fstatat): New macro, if
38716         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
38717         (fstatat): Define to rpl_fstatat under the same conditions,
38718         unless COMPILING_FSTATAT.
38719         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
38720         seems to have the bug.
38721         * lib/fstatat.c: New file.
38722         * modules/openat (Files): Add it.
38723
38724 2006-11-20  Bruno Haible  <bruno@clisp.org>
38725
38726         * Makefile: New file.
38727
38728 2006-11-20  Jim Meyering  <jim@meyering.net>
38729
38730         The beginnings of syntax-related checks for gnulib.
38731         * lib/Makefile: New file.
38732         * lib/t-idcache: New script.  Ensure that the two halves of
38733         idcache.c stay in sync.
38734
38735         * lib/idcache.c: Adjust comments in user- and group- portions to
38736         be more accurate, and to be consistent with one another.
38737
38738 2006-11-20  Jim Meyering  <jim@meyering.net>
38739
38740         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
38741         continue using the flexible array member (thus, this module performs
38742         half as many malloc calls), with the addition that...
38743         (getgroup, getuser): Consistently record a non-match via an empty
38744         "name" string, and map an empty string match to a NULL return value.
38745         * modules/idcache (Depends-on): Re-add flexmember.
38746
38747         * lib/idcache.c (getuser): Remove all uses of the register keyword.
38748         (getuidbyname, getgroup, getgidbyname): Likewise.
38749
38750         Use cleaner syntax: NULL rather than 0.
38751         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
38752
38753 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
38754
38755         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
38756         It mishandled the case where the group was missing.
38757         Problem reported by Greg Schafer.
38758         * modules/idcache: Likewise.
38759
38760 2006-11-18  Jim Meyering  <jim@meyering.net>
38761
38762         * check-module (%exempt_header): Add exception for some
38763         conditionally-included headers.
38764
38765         * modules/i-ring (Depends-on): Add verify.
38766         (License): Change to LGPL.
38767
38768 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
38769
38770         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
38771         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
38772         and inttostr.h.  Use snprintf rather than uinttostr, so that
38773         LGPLed code doesn't depend on GPLed.
38774
38775 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
38776
38777         * modules/inline (License): Change from GPL to LGPL.
38778
38779 2006-11-17  Jim Meyering  <jim@meyering.net>
38780
38781         * modules/d-type (License): Switch to LGPL.
38782
38783 2006-11-15  Bruno Haible  <bruno@clisp.org>
38784
38785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
38786
38787 2006-11-15  Eric Blake  <ebb9@byu.net>
38788
38789         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
38790         the module dependency.
38791
38792 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38793             Bruno Haible  <bruno@clisp.org>
38794
38795         * gnulib-tool (func_create_testdir): Add license consistency check.
38796
38797 2006-11-15  Eric Blake  <ebb9@byu.net>
38798
38799         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
38800         random "(cached)" in configure output.
38801
38802 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38803
38804         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
38805         test for conforming inttypes.h is both announced and cached.
38806
38807         * MODULES.html.sh (seen_modules, seen_files): New variables.
38808         (func_module): Rewrite to use a few less gnulib-tool and sed
38809         invocations.  Avoid a couple of quadratic algorithms for ...
38810         (missed_modules, missed_files): ... these, with ...
38811         (func_append, func_tmpdir): ... these new functions, from
38812         gnulib-tool.  Analogously, install traps for cleanup.
38813
38814         * tests/test-gc.c (main): Remove unused variables.
38815         * tests/test-read-file.c: Include stdlib.h, for 'free'.
38816
38817 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
38818
38819         * modules/inttostr (License): Change to LGPL.
38820
38821 2006-11-14  Eric Blake  <ebb9@byu.net>
38822
38823         * modules/tempname (License): Change to LGPL.
38824
38825 2006-11-14  Eric Blake  <ebb9@byu.net>
38826
38827         * doc/functions.texi (Function Portability): *printf functions on
38828         Cygwin now understand all POSIX size specifiers.
38829
38830 2006-11-14  Bruno Haible  <bruno@clisp.org>
38831
38832         * modules/c-ctype (License): Change to LGPL.
38833
38834 2006-11-12  Bruno Haible  <bruno@clisp.org>
38835
38836         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
38837         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
38838         for GNOME libraries, for which the include files are installed in
38839         subdirectories of $prefix/include.
38840
38841 2006-11-12  Bruno Haible  <bruno@clisp.org>
38842
38843         * m4/lib-link.m4: Require at least autoconf-2.54.
38844         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
38845         name to underscores for the --with option.
38846
38847 2006-11-13  Bruno Haible  <bruno@clisp.org>
38848
38849         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
38850         the tests directory.
38851         Reported by Ralf Wildenhues.
38852
38853 2006-11-13  Bruno Haible  <bruno@clisp.org>
38854
38855         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
38856         (func_emit_initmacro_end): Undo the override here.
38857         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
38858         Works around the famous automake error in coreutils.
38859
38860 2006-11-13  Eric Blake  <ebb9@byu.net>
38861
38862         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
38863         element, not its node.
38864
38865 2006-11-12  Bruno Haible  <bruno@clisp.org>
38866
38867         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
38868         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
38869
38870 2006-11-12  Bruno Haible  <bruno@clisp.org>
38871
38872         * gnulib-tool: New option --local-symlink.
38873         (func_usage): Document it.
38874         (lsymbolic): New variable.
38875         (func_import, func_create_testdir): If --symlink was not specified,
38876         test whether --local-symlink was specified and the file comes from
38877         the local_gnulib_dir.
38878
38879 2006-11-12  Bruno Haible  <bruno@clisp.org>
38880
38881         * gnulib-tool (func_ln): New function.
38882         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
38883
38884 2006-11-12  Bruno Haible  <bruno@clisp.org>
38885
38886         Finish support for source files in subdirectories.
38887         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
38888         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
38889         AUTOMAKE_OPTIONS.
38890         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
38891
38892 2006-11-12  Bruno Haible  <bruno@clisp.org>
38893
38894         * gnulib-tool (func_get_automake_snippet): Synthesize also an
38895         EXTRA_lib_SOURCES augmentation.
38896         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
38897
38898 2006-11-12  Jim Meyering  <jim@meyering.net>
38899
38900         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
38901         file descriptors.  This also averts a failure on systems with
38902         native openat support when a traversed directory lacks "x" access.
38903         * lib/fts_.h: Include "i-ring.h"
38904         (struct FTS) [fts_fd_ring]: New member.
38905         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
38906         (FCHDIR): Add parentheses.
38907         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
38908         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
38909         When descending, rather than simply closing the previous
38910         fts_cwd_fd value, push that file descriptor onto the ring.
38911         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
38912         (fts_open): Initialize the new fd_ring member.
38913         (fts_close): Clear the ring.
38914         (fts_safe_changedir): When possible, use our new fd_ring to skip
38915         the diropen and fstat and dev/ino comparison that would normally
38916         accompany a virtual `chdir ("..")'.
38917
38918         * modules/fts (Depends-on): Add i-ring.
38919         * modules/i-ring: New module.
38920         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
38921         * m4/i-ring.m4: New file.
38922
38923 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38924
38925         * gnulib-tool (func_create_testdir): Fix replacement of
38926         `build-aux' in configure.ac.  Run autotools in gltests
38927         subdirectory.
38928         (func_create_testdir, func_create_megatestdir, test): There is
38929         no need for '--force' in most autotool invocations in a new
38930         tree.  Actually fail the whole test if any of the tools, or the
38931         configure or make stages fail.
38932
38933         Sync from Automake.
38934         * build-aux/gnupload: Revert last change.  Add pointer to upload
38935         instructions of the GNU Maintenance Instructions.
38936         Suggestion by Karl Berry.
38937
38938 2006-11-10  Jim Meyering  <jim@meyering.net>
38939
38940         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
38941
38942 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
38943
38944         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
38945         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
38946         (bind_textdomain_codeset) [! ENABLE_NLS]:
38947         Evaluate all the arguments.  That way, callers get compatible behavior
38948         if the arguments have side effects.  Also, it avoids some GCC
38949         diagnostics in some cases; Joel E. Denny reported problems when Bison
38950         was configured with --enable-gcc-warnigs.
38951
38952 2006-11-10  Jim Meyering  <jim@meyering.net>
38953
38954         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
38955         relevant options in CFLAGS (like -O, -fno-inline) are taken into
38956         account.
38957
38958 2006-11-10  Jim Meyering  <jim@meyering.net>
38959
38960         * modules/inline: New file/module.
38961         * modules/xalloc (Files): Remove m4/inline.m4.
38962         (Depends-on): Add inline, instead.
38963         * modules/oset: Likewise.
38964         * modules/list: Likewise.
38965
38966 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
38967
38968         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
38969         Problem reported by Matthew Woehlke.
38970
38971 2006-11-09  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/tempname.c (gen_tempname): Remove variant that invokes
38974         __gen_tempname.
38975         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
38976         __gen_tempname.
38977
38978 2006-11-08  Bruno Haible  <bruno@clisp.org>
38979
38980         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
38981         to 'yes' instead of 'cross-compiling'.
38982
38983 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
38984
38985         * lib/quotearg.h (quotearg_free): New decl.
38986         * lib/quotearg.c (quotearg_free): New function.
38987         (slot0, nslots, slotvec0, slotvec):
38988         Now file-scope so that quotearg_free can get at them.
38989
38990 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38991
38992         Sync from Automake.
38993         * build-aux/gnupload: Add missing 'gnu' to example URL.
38994         Report by Karl Berry.
38995
38996 2006-11-08  Bruno Haible  <bruno@clisp.org>
38997
38998         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
38999         Suggested by Paul Eggert.
39000
39001 2006-11-08  Jim Meyering  <jim@meyering.net>
39002
39003         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39004         It's already included if !_LIBC.
39005         (fts_safe_changedir): Add a comment.
39006
39007 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39008
39009         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39010         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39011         Matthew Woehlke.
39012
39013         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39014         definitions up, to avoid colliding with change below.
39015         (static_inline) [HAVE_INLINE]: New macro.
39016         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39017         Provide extern decls when !HAVE_INLINE.  Do not define unless
39018         static_inline is defined, either by us or by xmalloc.c.  Use
39019         static_inline rather than static inline.
39020         (XCALLOC): Optimize sizeof(T) = 1 case.
39021         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39022
39023 2006-11-07  Bruno Haible  <bruno@clisp.org>
39024
39025         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39026         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39027         AC_C_INLINE.
39028         * modules/xalloc (Files): Add m4/inline.m4.
39029
39030 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39031
39032         * README: Fix typo.
39033         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39034         (Miscellanous Notes): ...from this.
39035
39036 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39037
39038         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39039         Mention that offsetof should be used instead of sizeof.
39040         From Bruno Haible.
39041
39042 2006-11-07  Bruno Haible  <bruno@clisp.org>
39043
39044         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39045
39046 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39047
39048         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39049         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39050         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39051         (gl_tree_add_before, gl_tree_add_after):
39052         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39053         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39054         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39055         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39056         (gl_linked_add_after, gl_linked_add_at): Likewise.
39057         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39058         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39059         (gl_tree_add_before, gl_tree_add_after): Likewise.
39060         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39061         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39062         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39063
39064 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39065
39066         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39067
39068 2006-11-06  Bruno Haible  <bruno@clisp.org>
39069
39070         * m4/inline.m4: New file.
39071         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39072         * modules/list (Files): Add m4/inline.m4.
39073         * modules/oset (Files): Likewise.
39074
39075 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39076
39077         * lib/idcache.c: Include <stddef.h>, for offsetof.
39078         (struct userid.name): Change from char * to a flexible array member.
39079         All uses changed.
39080         * modules/idcache (Depends-on): Add flexmember.
39081
39082         * MODULES.html.sh (Core language properties): New module flexmember.
39083         * modules/flexmember, m4/flexmember.m4: New files.
39084
39085         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39086         inline functions that are identical with the old xnmalloc_inline,
39087         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39088         that we can avoid some unnecessary integer multiplications and
39089         divisions in the common case where the element size is known at
39090         compile time.
39091         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39092         needed.
39093         (xnboundedmalloc): Remove.
39094         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39095         arguments, for consistency with rest of this header.
39096         (xcharalloc): Rewrite using XNMALLOC.
39097         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39098         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39099         versions have been moved to lib/xalloc.h and renamed to be the
39100         non-*_inline versions.
39101         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39102         and xnrealloc functions, since those functions are now inline and
39103         now call us.
39104         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39105         renaming described above.
39106         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39107         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39108         captures the dependency in AC_C_INLINE.
39109
39110         New module canonicalize-lgpl, proposed by Charles Wilson in
39111         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39112         with a few small changes afterwards.
39113         * MODULES.html.sh (File system functions): New module
39114         canonicalize-lgpl.
39115         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39116         and canonicalize_file_name.
39117         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39118         * modules/canonicalize-lgpl: New files.
39119
39120 2006-11-05  Bruno Haible  <bruno@clisp.org>
39121
39122         * gnulib-tool (func_import, func_create_testdir): Create directories
39123         also for files in subdirectories of lib/.
39124
39125 2006-11-05  Bruno Haible  <bruno@clisp.org>
39126
39127         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39128         ANSI C compliant.
39129
39130 2006-11-03  Bruno Haible  <bruno@clisp.org>
39131
39132         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39133         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39134         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39135         (xnboundedmalloc): New inline function.
39136         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39137         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39138         xmalloc.
39139         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39140         xmalloc.
39141         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39142         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39143         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39144         xmalloc.
39145         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39146         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39147         xmalloc.
39148         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39149         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39150         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39151         xmalloc.
39152         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39153         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39154         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39155         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39156         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39157         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39158         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39159
39160 2006-11-03  Bruno Haible  <bruno@clisp.org>
39161
39162         * lib/c-ctype.h [C++]: Define functions without name mangling.
39163         * lib/fwriteerror.h [C++]: Likewise.
39164         * lib/gcd.h [C++]: Likewise.
39165         * lib/linebreak.h [C++]: Likewise.
39166
39167 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39168
39169         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39170         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39171         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39172         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39173         Check for functions and headers just once.
39174         Check for declaration of canonicalize_file_name.
39175         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39176
39177 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39178
39179         * gnulib-tool (func_import): Fix typo in actioncmd.
39180
39181 2006-11-02  Bruno Haible  <bruno@clisp.org>
39182
39183         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39184         newline sequence in the Makefile.am snippet as a space, like "make"
39185         does.
39186         Reported by Roger Persson <perrog@gmail.com>.
39187
39188 2006-11-01  Bruno Haible  <bruno@clisp.org>
39189
39190         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39191         already declared in <string.h>.
39192         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39193
39194 2006-11-01  Bruno Haible  <bruno@clisp.org>
39195
39196         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39197         * lib/strcase.h: Include <string.h>.
39198         (strcasecmp): Define to rpl_strcasecmp here.
39199
39200 2006-11-01  Bruno Haible  <bruno@clisp.org>
39201
39202         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39203
39204 2006-11-01  Eric Blake  <ebb9@byu.net>
39205
39206         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39207
39208         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39209
39210 2006-10-29  Bruno Haible  <bruno@clisp.org>
39211
39212         Make it compile in C++ mode.
39213         * lib/full-write.c (full_rw): Add a cast.
39214
39215 2006-11-01  Bruno Haible  <bruno@clisp.org>
39216
39217         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39218         be POSIX compliant.
39219         Reported by Roger Persson <perrog@gmail.com>.
39220
39221 2006-11-01  Eric Blake  <ebb9@byu.net>
39222
39223         * lib/getopt_.h: Fix comments.
39224
39225 2006-10-31  Eric Blake  <ebb9@byu.net>
39226
39227         * modules/tmpdir (Depends-on): Add sys_stat.
39228         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39229         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39230         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39231         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39232         tempname.
39233
39234 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
39235
39236         Avoid some C++ diagnostics reported by Bruno Haible.
39237         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39238         xmalloc.
39239         (quotearg_alloc): Use xcharalloc rather than xmalloc.
39240         (struct slotvec): Move to top level.
39241         (quotearg_n_options): Rewrite to avoid xmalloc.
39242         * lib/xalloc.h (xcharalloc): New function.
39243         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39244         [defined __cplusplus]: Add function template that provides result
39245         type propagation.  This part of the change is from Bruno Haible.
39246
39247 2006-10-29  Bruno Haible  <bruno@clisp.org>
39248
39249         Make it compile in C++ mode.
39250         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39251         * lib/strnlen1.c (strnlen1): Cast memchr result.
39252         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39253         * lib/clean-temp.c (string_equals, string_hash): Add casts.
39254         (create_temp_dir): Rename local variable 'template'.
39255         (compile_csharp_using_sscli): Add cast.
39256         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39257         * lib/findprog.c (find_in_path): Likewise.
39258         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39259         * lib/wait-process.c (register_slave_subprocess): Likewise.
39260
39261 2006-10-22  Bruno Haible  <bruno@clisp.org>
39262
39263         * modules/tsearch: New file.
39264         * lib/tsearch.h: New file.
39265         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39266         * m4/tsearch.m4: New file.
39267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39268
39269 2006-10-29  Eric Blake  <ebb9@byu.net>
39270
39271         * lib/arcfour.c: Assume config.h.
39272         * lib/arctwo.c: Likewise.
39273         * lib/base64.c: Likewise.
39274         * lib/check-version.c: Likewise.
39275         * lib/crc.c: Likewise.
39276         * lib/des.c: Likewise.
39277         * lib/gc-gnulib.c: Likewise.
39278         * lib/gc-libgcrypt.c: Likewise.
39279         * lib/gc-pbkdf2-sha1.c: Likewise.
39280         * lib/getaddrinfo.c: Likewise.
39281         * lib/getdelim.c: Likewise.
39282         * lib/getline.c: Likewise.
39283         * lib/hmac-md5.c: Likewise.
39284         * lib/hmac-sha1.c: Likewise.
39285         * lib/iconvme.c: Likewise.
39286         * lib/md2.c: Likewise.
39287         * lib/md4.c: Likewise.
39288         * lib/memxor.c: Likewise.
39289         * lib/read-file.c: Likewise.
39290         * lib/readline.c: Likewise.
39291         * lib/rijndael-alg-fst.c: Likewise.
39292         * lib/rijndael-api-fst.c: Likewise.
39293         * lib/xgetdomainname.c: Likewise.
39294
39295 2006-10-28  Eric Blake  <ebb9@byu.net>
39296
39297         * lib/xstrndup.c: Assume config.h.
39298
39299 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39300
39301         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39302         stat-macros.h is now for our own macros, whereas stat_h is for
39303         macros in the <sys/stat.h> name space.
39304         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39305         (STAT_MACROS_H): Remove.
39306         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39307         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39308         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39309         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39310         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39311         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39312         Move these macros to ...
39313         * lib/stat_.h: here.  Don't include stat-macros.h.
39314         * lib/canonicalize.c: Don't include stat-macros.h.
39315         * lib/chown.c: Likewise.
39316         * lib/euidaccess.c: Likewise.
39317         * lib/file-type.c: Likewise.
39318         * lib/filemode.c: Likewise.
39319         * lib/glob.c: Likewise.
39320         * lib/isapipe.c: Likewise.
39321         * lib/lchown.c: Likewise.
39322         * lib/lstat.c: Likewise.
39323         * lib/mkdir-p.c: Likewise.
39324         * lib/rmdir.c: Likewise.
39325         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39327         unless mkdir isn't declared, to speed up 'configure'.
39328         Always create sys/stat.h, since it's unlikely any real sys/stat.h
39329         would define all the S_* symbols.
39330         * modules/canonicalize (Depends-on):
39331         Depend on sys_stat, not stat-macros.
39332         * modules/chown: Likewise.
39333         * modules/euidaccess: Likewise.
39334         * modules/filemode: Likewise.
39335         * modules/file-type: Likewise.
39336         * modules/glob: Likewise.
39337         * modules/isapipe: Likewise.
39338         * modules/lchown: Likewise.
39339         * modules/lstat: Likewise.
39340         * modules/mkancesdirs: Likewise.
39341         * modules/rmdir: Likewise.
39342         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39343         * modules/modechange: Likewise.
39344         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39345         (configure.ac): Remove gl_STAT_MACROS.
39346         * modules/sys_stat (Depends-on): Remove stat-macros.
39347
39348 2006-10-27  Bruno Haible  <bruno@clisp.org>
39349
39350         * m4/signed.m4: Remove file.
39351         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39352         invocation.
39353         * modules/vasnprintf (Files): Remove m4/signed.m4.
39354
39355 2006-10-27  Bruno Haible  <bruno@clisp.org>
39356
39357         Update to GNU gettext 0.16.
39358         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39359         m4/inttypes-h.m4, m4/signed.m4.
39360         * m4/gettext.m4: Update to GNU gettext 0.16.
39361         * m4/intl.m4: New file, from GNU gettext.
39362         * m4/intldir.m4: New file, from GNU gettext.
39363         * config/srclist.txt: Update
39364
39365 2006-10-27  Eric Blake  <ebb9@byu.net>
39366
39367         * MODULES.html.sh: Document tempname.
39368         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39369         dependencies.
39370         (Files): Move lib/tempname.c...
39371         * modules/tempname: ...to this new module.
39372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39373         (gl_PREREQ_TEMPNAME): Move...
39374         * m4/tempname.m4: ...to this new file.
39375         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39376         * modules/sys_stat (Depends-on): Add stat-macros.
39377         * lib/stat_.h (includes): Pick up stat macros.
39378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39379         if stat macros are broken.
39380         * lib/tempname.c (includes): No need to include "stat-macros.h".
39381         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39382         (direxists, __path_search) [!_LIBC]: Don't compile these in
39383         gnulib; the tmpdir module covers that.
39384         * lib/tempname.h: New file.
39385
39386 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
39387
39388         * COPYING: Explain how gnulib-tool converts licence headers.
39389         Almost all wording by Eric Blake.
39390
39391 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
39392
39393         * lib/mbchar.h (is_basic_table): Make read-only.
39394         * lib/mbchar.c (is_basic_table): Likewise.
39395         Reported by John Darrington.
39396
39397 2006-10-25  Bruno Haible  <bruno@clisp.org>
39398
39399         * lib/progname.h (set_program_name): Undefine before defining.
39400
39401 2006-10-25  Bruno Haible  <bruno@clisp.org>
39402
39403         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39404         false for non-gcc C++ compilers.
39405         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39406
39407 2006-10-24  Bruno Haible  <bruno@clisp.org>
39408
39409         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39410         iconv implementations like Irix iconv.
39411
39412 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39413
39414         * modules/vararrays: New file.
39415         * m4/vararrays.m4: New file, taken from diffutils.
39416         * MODULES.html.sh: New module vararrays.
39417
39418 2006-10-24  Karl Berry  <karl@gnu.org>
39419
39420         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39421         Don't call GNU Unix.
39422
39423 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39424
39425         * users.txt: Add Libtool.
39426
39427         Sync from Libtool:
39428
39429         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39430
39431         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39432         to gnulib's policy of including config.h unconditionally.
39433
39434 2006-10-24  Bruno Haible  <bruno@clisp.org>
39435
39436         * modules/wcwidth (Files): Add m4/wint_t.m4.
39437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39438         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39439
39440 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39441
39442         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39443         to pacify GCC with some -W flags enabled.  Problem reported by
39444         Bruno Haible.
39445
39446 2006-10-24  Jim Meyering  <jim@meyering.net>
39447
39448         * MODULES.html.sh: Remove uinttostr.  It's not a module.
39449         Reported by Karl Berry.
39450
39451 2006-10-23  Bruno Haible  <bruno@clisp.org>
39452
39453         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39454
39455 2006-10-24  Bruno Haible  <bruno@clisp.org>
39456
39457         * lib/gl_list.h: Use C comment style, not C++ comment style.
39458
39459 2006-10-23  Eric Blake  <ebb9@byu.net>
39460
39461         * lib/getaddrinfo.c (includes): Add missing include.
39462
39463 2006-10-23  Bruno Haible  <bruno@clisp.org>
39464             Paul Eggert  <eggert@cs.ucla.edu>
39465
39466         Ability to rename obstack_free.
39467         * lib/obstack.h (__obstack_free): New macro. Declare instead of
39468         obstack_free.
39469         (obstack_free): Invoke the __obstack_free macro.
39470         * lib/obstack.c (obstack_free): Use __obstack_free macro.
39471
39472 2006-10-23  Bruno Haible  <bruno@clisp.org>
39473             Paul Eggert  <eggert@cs.ucla.edu>
39474
39475         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39476         __argc, __argv from the declaration. (They are defined as macros on
39477         mingw.)
39478
39479 2006-10-22  Bruno Haible  <bruno@clisp.org>
39480
39481         * doc/gnulib-intro.texi: New file.
39482         * doc/gnulib.texi: Include it.
39483
39484 2006-10-21  Bruno Haible  <bruno@clisp.org>
39485
39486         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39487         "Introduction", "Miscellanous Notes", "Particular Modules".
39488
39489 2006-10-21  Bruno Haible  <bruno@clisp.org>
39490
39491         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39492         Change mostlyclean-local rule to avoid sh syntax error from bash
39493         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39494
39495 2006-10-23  Jim Meyering  <jim@meyering.net>
39496
39497         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39498         in place of snprintf.
39499
39500         * modules/inttostr (Files): Add lib/uinttostr.c.
39501         * lib/uinttostr.c (inttostr): New file/function.
39502         * lib/inttostr.h (uinttostr): Declare.
39503         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39504         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39505         Add uinttostr.
39506         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
39507
39508 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39509
39510         * lib/canonicalize.c (ELOOP): Define if not already defined.
39511         Problem reported by Bruno Haible in
39512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39513
39514 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
39515
39516         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39517         Problem reported by Perry Smith and Ville Laurikari.
39518
39519         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
39520         uses.
39521
39522 2006-10-19  Bruno Haible  <bruno@clisp.org>
39523
39524         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
39525         for mingw.
39526
39527 2006-10-19  Bruno Haible  <bruno@clisp.org>
39528
39529         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
39530         Needed for mingw.
39531
39532 2006-10-19  Bruno Haible  <bruno@clisp.org>
39533
39534         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
39535
39536 2006-10-19  Bruno Haible  <bruno@clisp.org>
39537
39538         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
39539         it.
39540
39541 2006-10-19  Bruno Haible  <bruno@clisp.org>
39542
39543         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
39544         invocation.
39545
39546 2006-10-19  Bruno Haible  <bruno@clisp.org>
39547
39548         * gnulib-tool (func_create_testdir): Don't include ftruncate and
39549         mountlist by default.
39550
39551 2006-10-16  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/c-strstr.c: Include c-strstr.h.
39554
39555 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39556
39557         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
39558         in a slash.
39559
39560 2006-10-18  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/lock.h [C++]: Wrap definitions in extern "C".
39563
39564 2006-10-18  Bruno Haible  <bruno@clisp.org>
39565
39566         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
39567         gl_LIBOBJS list.
39568
39569 2006-10-18  Bruno Haible  <bruno@clisp.org>
39570
39571         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
39572
39573 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
39574
39575         * lib/xstrtol.h: Include gettext.h.
39576         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
39577         Problem reported by Eric Blake.
39578         * modules/xstrtol (Depends-on): Add gettext-h.
39579
39580 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
39581
39582         * lib/strftime.c (advance): New macro.
39583         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
39584         incomplete type, so you can't add 0 to it.  Problem and patch
39585         reported by Eelco Dolstra for dietlibc.
39586
39587 2006-10-18  Jim Meyering  <jim@meyering.net>
39588
39589         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
39590         type for a local, and rename it: s/up/user_proc/.
39591
39592 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
39593
39594         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
39595         READ_UTMP_USER_PROCESS.
39596         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
39597
39598 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
39601         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
39602
39603 2006-10-17  Eric Blake  <ebb9@byu.net>
39604
39605         * lib/sigprocmask.c (sigprocmask): Fix typo.
39606
39607         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
39608
39609         * modules/clean-temp (Makefile.am): Don't add to make output...
39610         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
39611         config.h.
39612
39613 2006-10-17  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
39616         differently if DEFAULT_TEXT_DOMAIN is set.
39617
39618 2006-10-16  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/clean-temp.c: Include fwriteerror.h.
39621
39622 2006-10-16  Bruno Haible  <bruno@clisp.org>
39623
39624         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
39625
39626 2006-10-16  Bruno Haible  <bruno@clisp.org>
39627
39628         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
39629         * lib/sigprocmask.h: Include <sys/types.h>.
39630         (sigset_t): Use the system's definition if present.
39631
39632 2006-10-17  Eric Blake  <ebb9@byu.net>
39633
39634         * lib/xvasprintf.c (includes): Assume config.h.
39635         * lib/xasprintf.c (includes): Likewise.
39636
39637 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39638
39639         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
39640         at least as wide as intmax_t.
39641
39642 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
39643
39644         (Imported from Automake.)
39645         * build-aux/gnupload: Update to version 1.1 of directive file.
39646
39647 2006-10-16  Eric Blake  <ebb9@byu.net>
39648
39649         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
39650         match Automake 1.10a.
39651
39652 2006-10-14  Bruno Haible  <bruno@clisp.org>
39653
39654         * modules/sigprocmask: New file.
39655         * lib/sigprocmask.h: New file.
39656         * lib/sigprocmask.c: New file.
39657         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
39658         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
39659         request sigprocmask.o.
39660         (gl_PREREQ_SIGPROCMASK): New macro.
39661         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
39662         (Depends-on): Add sigprocmask.
39663         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
39664         gt_SIGNALBLOCKING. Test for 'raise' only once.
39665         * lib/fatal-signal.c: Include sigprocmask.h.
39666         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
39667         unblock_fatal_signals): Define always.
39668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39669         sigprocmask.
39670
39671 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
39672
39673         Sync from Automake.
39674         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
39675         which incorrectly sets the mode of an existing destination
39676         directory.  In some cases the unpatched install-sh could do the
39677         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
39678         system.  We hope this is rare in practice, but it's clearly worth
39679         fixing.  Problem reported by Alex Unleashed in
39680         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
39681         Also, don't bother to check for -m bugs unless we're using -m;
39682         suggested by Stepan Kasal.
39683
39684 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39685
39686         Sync from Automake.
39687         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
39688         `-c' flag, so they appear at the same position as in %FASTDEP%
39689         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
39690         which ignores unknown options only after the first non-option.
39691         Bug report against M4 by Nelson H. F. Beebe.
39692
39693 2006-10-13  Jim Meyering  <jim@meyering.net>
39694
39695         Fix a bug in yesterday's change.
39696         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
39697         p->fts_statp->st_dev would be used uninitialized.
39698         Ensures that we always call fts_stat on the very first entry.
39699         Miklos Szeredi reported that find -xdev stopped working.
39700
39701 2006-10-12  Bruno Haible  <bruno@clisp.org>
39702
39703         * gnulib-tool (func_get_automake_snippet): Append an automatically
39704         computed EXTRA_DIST augmentation.
39705         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
39706         * modules/alloca-opt (Makefile.am): Likewise.
39707         * modules/allocsa (Makefile.am): Likewise.
39708         * modules/arcfour (Makefile.am): Likewise.
39709         * modules/arctwo (Makefile.am): Likewise.
39710         * modules/argmatch (Makefile.am): Likewise.
39711         * modules/argz (Makefile.am): Likewise.
39712         * modules/atexit (Makefile.am): Likewise.
39713         * modules/backupfile (Makefile.am): Likewise.
39714         * modules/byteswap (Makefile.am): Likewise.
39715         * modules/c-strtod (Makefile.am): Likewise.
39716         * modules/c-strtold (Makefile.am): Likewise.
39717         * modules/calloc (Makefile.am): Likewise.
39718         * modules/canon-host (Makefile.am): Likewise.
39719         * modules/canonicalize (Makefile.am): Likewise.
39720         * modules/chdir-long (Makefile.am): Likewise.
39721         * modules/chdir-safer (Makefile.am): Likewise.
39722         * modules/check-version (Makefile.am): Likewise.
39723         * modules/chown (Makefile.am): Likewise.
39724         * modules/cloexec (Makefile.am): Likewise.
39725         * modules/close-stream (Makefile.am): Likewise.
39726         * modules/closeout (Makefile.am): Likewise.
39727         * modules/crc (Makefile.am): Likewise.
39728         * modules/csharpexec (Makefile.am): Likewise.
39729         * modules/cycle-check (Makefile.am): Likewise.
39730         * modules/des (Makefile.am): Likewise.
39731         * modules/dev-ino (Makefile.am): Likewise.
39732         * modules/dirfd (Makefile.am): Likewise.
39733         * modules/dirname (Makefile.am): Likewise.
39734         * modules/dup2 (Makefile.am): Likewise.
39735         * modules/eealloc (Makefile.am): Likewise.
39736         * modules/error (Makefile.am): Likewise.
39737         * modules/euidaccess (Makefile.am): Likewise.
39738         * modules/exclude (Makefile.am): Likewise.
39739         * modules/exitfail (Makefile.am): Likewise.
39740         * modules/fcntl-safer (Makefile.am): Likewise.
39741         * modules/fcntl (Makefile.am): Likewise.
39742         * modules/file-type (Makefile.am): Likewise.
39743         * modules/fileblocks (Makefile.am): Likewise.
39744         * modules/filemode (Makefile.am): Likewise.
39745         * modules/filenamecat (Makefile.am): Likewise.
39746         * modules/fnmatch (Makefile.am): Likewise.
39747         * modules/fopen-safer (Makefile.am): Likewise.
39748         * modules/fpending (Makefile.am): Likewise.
39749         * modules/fprintftime (Makefile.am): Likewise.
39750         * modules/free (Makefile.am): Likewise.
39751         * modules/fsusage (Makefile.am): Likewise.
39752         * modules/ftruncate (Makefile.am): Likewise.
39753         * modules/fts (Makefile.am): Likewise.
39754         * modules/gc-arcfour (Makefile.am): Likewise.
39755         * modules/gc-des (Makefile.am): Likewise.
39756         * modules/gc-hmac-md5 (Makefile.am): Likewise.
39757         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
39758         * modules/gc-md4 (Makefile.am): Likewise.
39759         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39760         * modules/gc-sha1 (Makefile.am): Likewise.
39761         * modules/gc (Makefile.am): Likewise.
39762         * modules/getaddrinfo (Makefile.am): Likewise.
39763         * modules/getcwd (Makefile.am): Likewise.
39764         * modules/getdelim (Makefile.am): Likewise.
39765         * modules/getdomainname (Makefile.am): Likewise.
39766         * modules/getgroups (Makefile.am): Likewise.
39767         * modules/gethostname (Makefile.am): Likewise.
39768         * modules/gethrxtime (Makefile.am): Likewise.
39769         * modules/getline (Makefile.am): Likewise.
39770         * modules/getloadavg (Makefile.am): Likewise.
39771         * modules/getlogin_r (Makefile.am): Likewise.
39772         * modules/getndelim2 (Makefile.am): Likewise.
39773         * modules/getopt (Makefile.am): Likewise.
39774         * modules/getpagesize (Makefile.am): Likewise.
39775         * modules/getpass-gnu (Makefile.am): Likewise.
39776         * modules/getpass (Makefile.am): Likewise.
39777         * modules/getsubopt (Makefile.am): Likewise.
39778         * modules/gettime (Makefile.am): Likewise.
39779         * modules/gettimeofday (Makefile.am): Likewise.
39780         * modules/getugroups (Makefile.am): Likewise.
39781         * modules/getusershell (Makefile.am): Likewise.
39782         * modules/glob (Makefile.am): Likewise.
39783         * modules/group-member (Makefile.am): Likewise.
39784         * modules/hard-locale (Makefile.am): Likewise.
39785         * modules/hash (Makefile.am): Likewise.
39786         * modules/hmac-md5 (Makefile.am): Likewise.
39787         * modules/hmac-sha1 (Makefile.am): Likewise.
39788         * modules/human (Makefile.am): Likewise.
39789         * modules/idcache (Makefile.am): Likewise.
39790         * modules/imaxabs (Makefile.am): Likewise.
39791         * modules/imaxdiv (Makefile.am): Likewise.
39792         * modules/inet_ntop (Makefile.am): Likewise.
39793         * modules/inet_pton (Makefile.am): Likewise.
39794         * modules/intprops (Makefile.am): Likewise.
39795         * modules/inttostr (Makefile.am): Likewise.
39796         * modules/inttypes (Makefile.am): Likewise.
39797         * modules/isapipe (Makefile.am): Likewise.
39798         * modules/javaversion (Makefile.am): Likewise.
39799         * modules/lchmod (Makefile.am): Likewise.
39800         * modules/lchown (Makefile.am): Likewise.
39801         * modules/localcharset (Makefile.am): Likewise.
39802         * modules/long-options (Makefile.am): Likewise.
39803         * modules/lstat (Makefile.am): Likewise.
39804         * modules/malloc (Makefile.am): Likewise.
39805         * modules/mathl (Makefile.am): Likewise.
39806         * modules/mbchar (Makefile.am): Likewise.
39807         * modules/md2 (Makefile.am): Likewise.
39808         * modules/md4 (Makefile.am): Likewise.
39809         * modules/md5 (Makefile.am): Likewise.
39810         * modules/memcasecmp (Makefile.am): Likewise.
39811         * modules/memchr (Makefile.am): Likewise.
39812         * modules/memcmp (Makefile.am): Likewise.
39813         * modules/memcoll (Makefile.am): Likewise.
39814         * modules/memcpy (Makefile.am): Likewise.
39815         * modules/memmem (Makefile.am): Likewise.
39816         * modules/memmove (Makefile.am): Likewise.
39817         * modules/mempcpy (Makefile.am): Likewise.
39818         * modules/memrchr (Makefile.am): Likewise.
39819         * modules/memset (Makefile.am): Likewise.
39820         * modules/memxor (Makefile.am): Likewise.
39821         * modules/mkancesdirs (Makefile.am): Likewise.
39822         * modules/mkdir-p (Makefile.am): Likewise.
39823         * modules/mkdir (Makefile.am): Likewise.
39824         * modules/mkdtemp (Makefile.am): Likewise.
39825         * modules/mkstemp (Makefile.am): Likewise.
39826         * modules/mktime (Makefile.am): Likewise.
39827         * modules/modechange (Makefile.am): Likewise.
39828         * modules/mountlist (Makefile.am): Likewise.
39829         * modules/nanosleep (Makefile.am): Likewise.
39830         * modules/obstack (Makefile.am): Likewise.
39831         * modules/openat (Makefile.am): Likewise.
39832         * modules/pagealign_alloc (Makefile.am): Likewise.
39833         * modules/pathmax (Makefile.am): Likewise.
39834         * modules/physmem (Makefile.am): Likewise.
39835         * modules/poll (Makefile.am): Likewise.
39836         * modules/posixtm (Makefile.am): Likewise.
39837         * modules/posixver (Makefile.am): Likewise.
39838         * modules/putenv (Makefile.am): Likewise.
39839         * modules/quote (Makefile.am): Likewise.
39840         * modules/quotearg (Makefile.am): Likewise.
39841         * modules/raise (Makefile.am): Likewise.
39842         * modules/read-file (Makefile.am): Likewise.
39843         * modules/readline (Makefile.am): Likewise.
39844         * modules/readlink (Makefile.am): Likewise.
39845         * modules/readtokens (Makefile.am): Likewise.
39846         * modules/readutmp (Makefile.am): Likewise.
39847         * modules/realloc (Makefile.am): Likewise.
39848         * modules/regex (Makefile.am): Likewise.
39849         * modules/rename-dest-slash (Makefile.am): Likewise.
39850         * modules/rename (Makefile.am): Likewise.
39851         * modules/rijndael (Makefile.am): Likewise.
39852         * modules/rmdir (Makefile.am): Likewise.
39853         * modules/rpmatch (Makefile.am): Likewise.
39854         * modules/safe-read (Makefile.am): Likewise.
39855         * modules/safe-write (Makefile.am): Likewise.
39856         * modules/same-inode (Makefile.am): Likewise.
39857         * modules/same (Makefile.am): Likewise.
39858         * modules/save-cwd (Makefile.am): Likewise.
39859         * modules/savedir (Makefile.am): Likewise.
39860         * modules/setenv (Makefile.am): Likewise.
39861         * modules/settime (Makefile.am): Likewise.
39862         * modules/sha1 (Makefile.am): Likewise.
39863         * modules/sig2str (Makefile.am): Likewise.
39864         * modules/snprintf (Makefile.am): Likewise.
39865         * modules/stat-macros (Makefile.am): Likewise.
39866         * modules/stat-time (Makefile.am): Likewise.
39867         * modules/stdbool (Makefile.am): Likewise.
39868         * modules/stdint (Makefile.am): Likewise.
39869         * modules/stdlib-safer (Makefile.am): Likewise.
39870         * modules/stpcpy (Makefile.am): Likewise.
39871         * modules/stpncpy (Makefile.am): Likewise.
39872         * modules/strcase (Makefile.am): Likewise.
39873         * modules/strcasestr (Makefile.am): Likewise.
39874         * modules/strchrnul (Makefile.am): Likewise.
39875         * modules/strcspn (Makefile.am): Likewise.
39876         * modules/strdup (Makefile.am): Likewise.
39877         * modules/strerror (Makefile.am): Likewise.
39878         * modules/strftime (Makefile.am): Likewise.
39879         * modules/strndup (Makefile.am): Likewise.
39880         * modules/strnlen (Makefile.am): Likewise.
39881         * modules/strpbrk (Makefile.am): Likewise.
39882         * modules/strsep (Makefile.am): Likewise.
39883         * modules/strstr (Makefile.am): Likewise.
39884         * modules/strtod (Makefile.am): Likewise.
39885         * modules/strtoimax (Makefile.am): Likewise.
39886         * modules/strtok_r (Makefile.am): Likewise.
39887         * modules/strtol (Makefile.am): Likewise.
39888         * modules/strtoll (Makefile.am): Likewise.
39889         * modules/strtoul (Makefile.am): Likewise.
39890         * modules/strtoull (Makefile.am): Likewise.
39891         * modules/strtoumax (Makefile.am): Likewise.
39892         * modules/strverscmp (Makefile.am): Likewise.
39893         * modules/sys_socket (Makefile.am): Likewise.
39894         * modules/sys_stat (Makefile.am): Likewise.
39895         * modules/sysexits (Makefile.am): Likewise.
39896         * modules/time_r (Makefile.am): Likewise.
39897         * modules/timegm (Makefile.am): Likewise.
39898         * modules/timespec (Makefile.am): Likewise.
39899         * modules/tmpfile-safer (Makefile.am): Likewise.
39900         * modules/trim (Makefile.am): Likewise.
39901         * modules/unistd-safer (Makefile.am): Likewise.
39902         * modules/unlinkdir (Makefile.am): Likewise.
39903         * modules/unlocked-io (Makefile.am): Likewise.
39904         * modules/userspec (Makefile.am): Likewise.
39905         * modules/utime (Makefile.am): Likewise.
39906         * modules/utimecmp (Makefile.am): Likewise.
39907         * modules/utimens (Makefile.am): Likewise.
39908         * modules/vasnprintf (Makefile.am): Likewise.
39909         * modules/vasprintf (Makefile.am): Likewise.
39910         * modules/vsnprintf (Makefile.am): Likewise.
39911         * modules/xalloc (Makefile.am): Likewise.
39912         * modules/xgetcwd (Makefile.am): Likewise.
39913         * modules/xnanosleep (Makefile.am): Likewise.
39914         * modules/xreadlink (Makefile.am): Likewise.
39915         * modules/xstrtod (Makefile.am): Likewise.
39916         * modules/xstrtol (Makefile.am): Likewise.
39917         * modules/xstrtold (Makefile.am): Likewise.
39918         * modules/yesno (Makefile.am): Likewise.
39919         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
39920
39921 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
39922
39923         * modules/error (Makefile.am): Distribute files through
39924         EXTRA_DIST, not lib_SOURCES.
39925
39926 2006-10-12  Eric Blake  <ebb9@byu.net>
39927
39928         * modules/error (Makefile.am): Distribute files in /lib.
39929         * modules/obstack (Makefile.am): Likewise.
39930
39931 2006-10-12  Bruno Haible  <bruno@clisp.org>
39932
39933         * modules/acl (Makefile.am): Distribute all files in lib/ through
39934         EXTRA_DIST.
39935         * modules/arcfour (Makefile.am): Likewise.
39936         * modules/arctwo (Makefile.am): Likewise.
39937         * modules/argmatch (Makefile.am): Likewise.
39938         * modules/argz (Makefile.am): Likewise.
39939         * modules/atexit (Makefile.am): Likewise.
39940         * modules/backupfile (Makefile.am): Likewise.
39941         * modules/c-strtod (Makefile.am): Likewise.
39942         * modules/c-strtold (Makefile.am): Likewise.
39943         * modules/calloc (Makefile.am): Likewise.
39944         * modules/canon-host (Makefile.am): Likewise.
39945         * modules/canonicalize (Makefile.am): Likewise.
39946         * modules/chdir-long (Makefile.am): Likewise.
39947         * modules/chdir-safer (Makefile.am): Likewise.
39948         * modules/check-version (Makefile.am): Likewise.
39949         * modules/chown (Makefile.am): Likewise.
39950         * modules/cloexec (Makefile.am): Likewise.
39951         * modules/close-stream (Makefile.am): Likewise.
39952         * modules/closeout (Makefile.am): Likewise.
39953         * modules/crc (Makefile.am): Likewise.
39954         * modules/cycle-check (Makefile.am): Likewise.
39955         * modules/des (Makefile.am): Likewise.
39956         * modules/dirfd (Makefile.am): Likewise.
39957         * modules/dirname (Makefile.am): Likewise.
39958         * modules/dup2 (Makefile.am): Likewise.
39959         * modules/euidaccess (Makefile.am): Likewise.
39960         * modules/exclude (Makefile.am): Likewise.
39961         * modules/exitfail (Makefile.am): Likewise.
39962         * modules/fcntl-safer (Makefile.am): Likewise.
39963         * modules/file-type (Makefile.am): Likewise.
39964         * modules/fileblocks (Makefile.am): Likewise.
39965         * modules/filemode (Makefile.am): Likewise.
39966         * modules/filenamecat (Makefile.am): Likewise.
39967         * modules/fnmatch (Makefile.am): Likewise.
39968         * modules/fopen-safer (Makefile.am): Likewise.
39969         * modules/fpending (Makefile.am): Likewise.
39970         * modules/fprintftime (Makefile.am): Likewise.
39971         * modules/free (Makefile.am): Likewise.
39972         * modules/fsusage (Makefile.am): Likewise.
39973         * modules/ftruncate (Makefile.am): Likewise.
39974         * modules/fts (Makefile.am): Likewise.
39975         * modules/gc (Makefile.am): Likewise.
39976         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
39977         * modules/getaddrinfo (Makefile.am): Likewise.
39978         * modules/getcwd (Makefile.am): Likewise.
39979         * modules/getdelim (Makefile.am): Likewise.
39980         * modules/getdomainname (Makefile.am): Likewise.
39981         * modules/getgroups (Makefile.am): Likewise.
39982         * modules/gethostname (Makefile.am): Likewise.
39983         * modules/gethrxtime (Makefile.am): Likewise.
39984         * modules/getline (Makefile.am): Likewise.
39985         * modules/getloadavg (Makefile.am): Likewise.
39986         * modules/getlogin_r (Makefile.am): Likewise.
39987         * modules/getopt (Makefile.am): Likewise.
39988         * modules/getpass (Makefile.am): Likewise.
39989         * modules/getpass-gnu (Makefile.am): Likewise.
39990         * modules/getsubopt (Makefile.am): Likewise.
39991         * modules/gettime (Makefile.am): Likewise.
39992         * modules/gettimeofday (Makefile.am): Likewise.
39993         * modules/getugroups (Makefile.am): Likewise.
39994         * modules/getusershell (Makefile.am): Likewise.
39995         * modules/glob (Makefile.am): Likewise.
39996         * modules/group-member (Makefile.am): Likewise.
39997         * modules/hard-locale (Makefile.am): Likewise.
39998         * modules/hash (Makefile.am): Likewise.
39999         * modules/hmac-md5 (Makefile.am): Likewise.
40000         * modules/hmac-sha1 (Makefile.am): Likewise.
40001         * modules/human (Makefile.am): Likewise.
40002         * modules/idcache (Makefile.am): Likewise.
40003         * modules/imaxabs (Makefile.am): Likewise.
40004         * modules/imaxdiv (Makefile.am): Likewise.
40005         * modules/inet_ntop (Makefile.am): Likewise.
40006         * modules/inet_pton (Makefile.am): Likewise.
40007         * modules/inttostr (Makefile.am): Likewise.
40008         * modules/isapipe (Makefile.am): Likewise.
40009         * modules/lchown (Makefile.am): Likewise.
40010         * modules/long-options (Makefile.am): Likewise.
40011         * modules/lstat (Makefile.am): Likewise.
40012         * modules/malloc (Makefile.am): Likewise.
40013         * modules/mathl (Makefile.am): Likewise.
40014         * modules/mbchar (Makefile.am): Likewise.
40015         * modules/md2 (Makefile.am): Likewise.
40016         * modules/md4 (Makefile.am): Likewise.
40017         * modules/md5 (Makefile.am): Likewise.
40018         * modules/memcasecmp (Makefile.am): Likewise.
40019         * modules/memchr (Makefile.am): Likewise.
40020         * modules/memcmp (Makefile.am): Likewise.
40021         * modules/memcoll (Makefile.am): Likewise.
40022         * modules/memcpy (Makefile.am): Likewise.
40023         * modules/memmem (Makefile.am): Likewise.
40024         * modules/memmove (Makefile.am): Likewise.
40025         * modules/mempcpy (Makefile.am): Likewise.
40026         * modules/memrchr (Makefile.am): Likewise.
40027         * modules/memset (Makefile.am): Likewise.
40028         * modules/memxor (Makefile.am): Likewise.
40029         * modules/mkancesdirs (Makefile.am): Likewise.
40030         * modules/mkdir (Makefile.am): Likewise.
40031         * modules/mkdir-p (Makefile.am): Likewise.
40032         * modules/mkdtemp (Makefile.am): Likewise.
40033         * modules/mkstemp (Makefile.am): Likewise.
40034         * modules/mktime (Makefile.am): Likewise.
40035         * modules/modechange (Makefile.am): Likewise.
40036         * modules/mountlist (Makefile.am): Likewise.
40037         * modules/nanosleep (Makefile.am): Likewise.
40038         * modules/openat (Makefile.am): Likewise.
40039         * modules/pagealign_alloc (Makefile.am): Likewise.
40040         * modules/physmem (Makefile.am): Likewise.
40041         * modules/poll (Makefile.am): Likewise.
40042         * modules/posixtm (Makefile.am): Likewise.
40043         * modules/posixver (Makefile.am): Likewise.
40044         * modules/putenv (Makefile.am): Likewise.
40045         * modules/quote (Makefile.am): Likewise.
40046         * modules/quotearg (Makefile.am): Likewise.
40047         * modules/raise (Makefile.am): Likewise.
40048         * modules/read-file (Makefile.am): Likewise.
40049         * modules/readline (Makefile.am): Likewise.
40050         * modules/readlink (Makefile.am): Likewise.
40051         * modules/readtokens (Makefile.am): Likewise.
40052         * modules/readutmp (Makefile.am): Likewise.
40053         * modules/realloc (Makefile.am): Likewise.
40054         * modules/regex (Makefile.am): Likewise.
40055         * modules/rename (Makefile.am): Likewise.
40056         * modules/rename-dest-slash (Makefile.am): Likewise.
40057         * modules/rijndael (Makefile.am): Likewise.
40058         * modules/rmdir (Makefile.am): Likewise.
40059         * modules/rpmatch (Makefile.am): Likewise.
40060         * modules/safe-read (Makefile.am): Likewise.
40061         * modules/safe-write (Makefile.am): Likewise.
40062         * modules/same (Makefile.am): Likewise.
40063         * modules/save-cwd (Makefile.am): Likewise.
40064         * modules/savedir (Makefile.am): Likewise.
40065         * modules/setenv (Makefile.am): Likewise.
40066         * modules/settime (Makefile.am): Likewise.
40067         * modules/sha1 (Makefile.am): Likewise.
40068         * modules/sig2str (Makefile.am): Likewise.
40069         * modules/snprintf (Makefile.am): Likewise.
40070         * modules/stdlib-safer (Makefile.am): Likewise.
40071         * modules/stpcpy (Makefile.am): Likewise.
40072         * modules/stpncpy (Makefile.am): Likewise.
40073         * modules/strcase (Makefile.am): Likewise.
40074         * modules/strcasestr (Makefile.am): Likewise.
40075         * modules/strchrnul (Makefile.am): Likewise.
40076         * modules/strcspn (Makefile.am): Likewise.
40077         * modules/strdup (Makefile.am): Likewise.
40078         * modules/strerror (Makefile.am): Likewise.
40079         * modules/strftime (Makefile.am): Likewise.
40080         * modules/strndup (Makefile.am): Likewise.
40081         * modules/strnlen (Makefile.am): Likewise.
40082         * modules/strpbrk (Makefile.am): Likewise.
40083         * modules/strsep (Makefile.am): Likewise.
40084         * modules/strstr (Makefile.am): Likewise.
40085         * modules/strtod (Makefile.am): Likewise.
40086         * modules/strtoimax (Makefile.am): Likewise.
40087         * modules/strtok_r (Makefile.am): Likewise.
40088         * modules/strtol (Makefile.am): Likewise.
40089         * modules/strtoll (Makefile.am): Likewise.
40090         * modules/strtoul (Makefile.am): Likewise.
40091         * modules/strtoull (Makefile.am): Likewise.
40092         * modules/strtoumax (Makefile.am): Likewise.
40093         * modules/strverscmp (Makefile.am): Likewise.
40094         * modules/time_r (Makefile.am): Likewise.
40095         * modules/timegm (Makefile.am): Likewise.
40096         * modules/tmpfile-safer (Makefile.am): Likewise.
40097         * modules/unistd-safer (Makefile.am): Likewise.
40098         * modules/unlinkdir (Makefile.am): Likewise.
40099         * modules/userspec (Makefile.am): Likewise.
40100         * modules/utime (Makefile.am): Likewise.
40101         * modules/utimecmp (Makefile.am): Likewise.
40102         * modules/utimens (Makefile.am): Likewise.
40103         * modules/vasnprintf (Makefile.am): Likewise.
40104         * modules/vasprintf (Makefile.am): Likewise.
40105         * modules/vsnprintf (Makefile.am): Likewise.
40106         * modules/xalloc (Makefile.am): Likewise.
40107         * modules/xgetcwd (Makefile.am): Likewise.
40108         * modules/xnanosleep (Makefile.am): Likewise.
40109         * modules/xreadlink (Makefile.am): Likewise.
40110         * modules/xstrtod (Makefile.am): Likewise.
40111         * modules/xstrtol (Makefile.am): Likewise.
40112         * modules/xstrtold (Makefile.am): Likewise.
40113         * modules/yesno (Makefile.am): Likewise.
40114
40115 2006-10-12  Jim Meyering  <jim@meyering.net>
40116
40117         * m4/getloadavg.m4: Revert the change below.
40118
40119         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40120         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40121         fail with a symlink, which is what coreutils' ./bootstrap now
40122         creates by default.
40123
40124 2006-10-12  Bruno Haible  <bruno@clisp.org>
40125
40126         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40127         mingw.
40128         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40129         MSVC and mingw explicitly.
40130
40131 2006-10-11  Simon Josefsson  <jas@extundo.com>
40132             Bruno Haible  <bruno@clisp.org>
40133
40134         Add support for multiple gnulib-tool invocations in the scope of a
40135         single configure.ac file.
40136         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40137         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40138         with the same contents as the _LIBADD variable.
40139         (func_emit_initmacro_start, func_emit_initmacro_end,
40140         func_emit_initmacro_done): New functions.
40141         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40142         gl_LIBOBJS and gl_LTLIBOBJS.
40143
40144 2006-10-11  Bruno Haible  <bruno@clisp.org>
40145
40146         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40147         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40148         autoreconf. Instead, invoke autopoint explicitly but move back the
40149         *.m4 files from gnulib.
40150
40151 2006-10-11  Bruno Haible  <bruno@clisp.org>
40152
40153         * gnulib-tool (func_usage): Make module names after --create-testdir
40154         optional.
40155         (func_create_testdir): If no module was specified, use nearly all
40156         modules.
40157
40158 2006-10-12  Jim Meyering  <jim@meyering.net>
40159
40160         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40161         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40162         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40163         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40164         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40165         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40166         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40167         (fts_set_stat_required): New function.
40168         (fts_open): Defer the calls to fts_stat, if possible or requested.
40169         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40170         into fts_stat itself.
40171         (fts_read): Perform any required (deferred) fts_stat call.
40172         (fts_build): Likewise, for the directory we're about to open and read.
40173         In the readdir loop, carefully decide whether each entry will require
40174         an eventual call to fts_stat, using dirent.d_type info if available.
40175         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40176         a command line argument into this function.  Update all callers.
40177         Map a return value of FTS_DOT to FTS_D for a command line argument.
40178         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40179         Thanks to Miklos Szeredi for his tenacity and for the initial
40180         bug report about "find" failing on a FUSE-based file system.
40181
40182         * lib/fts.c (fts_open): Use consistent indentation.
40183
40184 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40185
40186         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40187         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40188         reported by Jim Meyering.  All uses of cache variables renamed
40189         to match Autoconf's.
40190         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40191         the other one.
40192
40193         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40194         Fix misspelling in diagnostic.
40195
40196 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40197
40198         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40199         defined.  Problem reported by Matthew Woehlke.
40200
40201         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40202         Add support for Tandem NonStop R series.
40203         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40204         Use new macro.
40205
40206         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40207         (has_trailing_slash): Omit size arg; all callers changed.
40208         Omit 'inline', since it doesn't help performance and we'd
40209         need to configure it.
40210         Don't count //, ///, etc. as having a trailing slash.
40211         As a side effect, this removes a C99ism reported by Matthew Woehlke.
40212         (rpl_rename_dest_slash): On failure, use rename's errno rather
40213         than (in some cases) an incorrect or junk errno.
40214         Simplify code by removing need to compute length; this does
40215         cause it to make two passes instead of one over the file name,
40216         but it's worth it.
40217
40218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40219         change, since Autoconf's version may no longer be appropriate now
40220         that we are using CVS Autoconf's version.  Add support for Tandem.
40221
40222 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40223             Bruno Haible  <bruno@clisp.org>
40224
40225         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40226         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40227         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40228         gl_AC_TYPE_LONG_LONG.
40229
40230         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40231         instead of HAVE_LONG_LONG.
40232         * lib/printf-args.c (printf_fetchargs): Likewise.
40233         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40234         * lib/vasnprintf.c (VASNPRINTF): Likewise.
40235         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40236         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40237         gl_AC_TYPE_LONG_LONG.
40238
40239 2006-10-11  Bruno Haible  <bruno@clisp.org>
40240
40241         * m4/longlong.m4: Add comments.
40242         * m4/ulonglong.m4: Likewise.
40243
40244 2006-10-10  Bruno Haible  <bruno@clisp.org>
40245
40246         Make it possible to #define stpcpy, strdup to aliases.
40247         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40248         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40249
40250 2006-10-10  Bruno Haible  <bruno@clisp.org>
40251
40252         Make it possible to #define gcd to an alias.
40253         * lib/gcd.c: Include config.h.
40254
40255 2006-10-10  Bruno Haible  <bruno@clisp.org>
40256
40257         Make it possible to #define c_isascii to an alias.
40258         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40259         defined. Undefine the macros before defining them, to avoid gcc
40260         warnings.
40261         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40262         define NO_C_CTYPE_MACROS early.
40263
40264 2006-10-10  Bruno Haible  <bruno@clisp.org>
40265
40266         Make it possible to #define set_program_name to an alias.
40267         * lib/progname.c: Don't undefine set_program_name; instead, undefine
40268         ENABLE_RELOCATABLE early.
40269
40270 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40271
40272         Port to Tandem NSK OSS, which has 64-bit signed int but at most
40273         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
40274         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40275         More generally, don't assume that 64-bit signed int is available
40276         if unsigned int is, and vice versa.
40277         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40278         unsigned symbols, not on their signed counterparts.
40279         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40280         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40281         (UINT64_C, UINTMAX_C):
40282         Likewise.
40283         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40284         unsigned counterparts.
40285         (Have_long_long, Unsigned): New macros.
40286         (Int): Renamed from INT.
40287         (strtoimax): Use the new macros.
40288         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40289         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40290         * modules/inttypes (inttypes.h): Substitute
40291         HAVE_UNSIGNED_LONG_LONG_INT.
40292         * modules/stdint (stdint.h): Likewise.
40293         (Files): Add m4/ulonglong.m4.
40294
40295 2006-10-10  Bruno Haible  <bruno@clisp.org>
40296
40297         Fix a gcc -Wshadow warning.
40298         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40299         to 'bucket'.
40300         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40301         gl_linked_indexof_from_to): Likewise.
40302         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40303         Likewise.
40304         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40305         Likewise.
40306         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40307         Reported by Eric Blake.
40308
40309 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
40310
40311         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40312         for NetBSD.  Problem reported by Bruno Haible.
40313
40314 2006-10-09  Jim Meyering  <jim@meyering.net>
40315
40316         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40317         Patch from Bruno Haible.
40318
40319 2006-10-09  Jim Meyering  <jim@meyering.net>
40320
40321         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40322         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40323         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40324
40325 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40326
40327         Don't include <config.h> twice; this doesn't work in some cases,
40328         e.g., when config.h has "#define intmax_t long long int" and
40329         we include <config.h>, <inttypes.h>, <config.h> in that order.
40330         Problem reported by Matthew Woehlke in:
40331         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40332         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40333         * lib/fts-cycle.c: Don't include config.h.
40334         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40335         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40336         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
40337         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40338         inttypes.h.
40339         * lib/xstrtoumax.c: Likewise.
40340         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40341         __strtol and the like, so that this module is more like its siblings.
40342         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40343         Remove; no longer needed now that we assume gnulib inttypes.h.
40344
40345 2006-10-08  Bruno Haible  <bruno@clisp.org>
40346
40347         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40348         option.
40349
40350 2006-10-07  Jim Meyering  <jim@meyering.net>
40351
40352         * modules/inttypes (inttypes.h): Revert what seems to have been
40353         an inadvertent part of today's change: use "|", not "/" in the
40354         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40355
40356 2006-10-07  Bruno Haible  <bruno@clisp.org>
40357
40358         * modules/sublist: New file.
40359
40360 2006-10-07  Bruno Haible  <bruno@clisp.org>
40361
40362         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40363         * modules/argz (argz.h): Likewise.
40364         * modules/arpa_inet (arpa/inet.h): Likewise.
40365         * modules/byteswap (byteswap.h): Likewise.
40366         * modules/configmake (configmake.h): Likewise.
40367         * modules/fcntl (fcntl.h): Likewise.
40368         * modules/fnmatch (fnmatch.h): Likewise.
40369         * modules/getopt (getopt.h): Likewise.
40370         * modules/glob (glob.h): Likewise.
40371         * modules/inttypes (inttypes.h): Likewise.
40372         * modules/netinet_in (netinet/in.h): Likewise.
40373         * modules/poll (poll.h): Likewise.
40374         * modules/stdbool (stdbool.h): Likewise.
40375         * modules/stdint (stdint.h): Likewise.
40376         * modules/sys_select (sys/select.h): Likewise.
40377         * modules/sys_socket (sys/socket.h): Likewise.
40378         * modules/sys_stat (sys/stat.h): Likewise.
40379         * modules/sysexits (sysexits.h): Likewise.
40380         * modules/unistd (unistd.h): Likewise.
40381         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40382         Add a "DO NOT EDIT" comment to the generated file.
40383         (func_import): Likewise for gnulib-comp.m4.
40384
40385 2006-10-07  Bruno Haible  <bruno@clisp.org>
40386
40387         * lib/gl_sublist.h: New file.
40388         * lib/gl_sublist.c: New file.
40389
40390 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40391
40392         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40393         name (relative to the original working directory) and the file
40394         name component (relative to the temporary working directory).  All
40395         callers changed.
40396         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40397         * lib/mkdir-p.c (make_dir_parents): Likewise.
40398         * lib/mkdir-p.h (make_dir_parents): Likewise.
40399
40400 2006-10-06  Eric Blake  <ebb9@byu.net>
40401
40402         Define several macros for use by the clean-temp module.
40403         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40404         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40405         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40406
40407         * lib/clean-temp.h (close_stream_temp): New declaration.
40408         * lib/clean-temp.c (includes): Pull in headers according to what
40409         other modules are in use.
40410         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40411
40412 2006-10-06  Bruno Haible  <bruno@clisp.org>
40413
40414         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40415         instead of fopen, fwriteerror.
40416
40417 2006-10-06  Bruno Haible  <bruno@clisp.org>
40418
40419         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40420         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40421         int.
40422         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40423         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40424         Return an error indicator.
40425         Suggested by Eric Blake.
40426
40427 2006-10-06  Bruno Haible  <bruno@clisp.org>
40428
40429         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40430         Reported by Eric Blake.
40431
40432 2006-10-06  Bruno Haible  <bruno@clisp.org>
40433
40434         * modules/closeout (Description): Mention stderr too.
40435
40436 2006-10-06  Bruno Haible  <bruno@clisp.org>
40437         and Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         * lib/closeout.c (close_stdout): Also close stderr.
40440         * lib/closeout.h: Update comment.
40441
40442 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40443
40444         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40445         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40446         * lib/dirchownmod.c: Include lchown.h.
40447         * lib/lchown.c: Don't include files that lchown.h now includes.
40448         Don't declare chown, since lchown.h now does that.
40449         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40450         (lchown): Define to rpl_chown if lchown is declared but
40451         does not exist.  Declare using a prototype if lchown is not
40452         declared.  Add a copyright notice.
40453         * lib/mkstemp.h: Include <unistd.h>.
40454         * lib/openat.c: Include lchown.h.
40455
40456         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40457         we now test for that separately.
40458         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40459         rather than O_NOFOLLOW, when testing whether it's possible to
40460         avoid a race condition reliably.
40461         * lib/savewd.c (savewd_chdir): Likewise.
40462
40463         Remove macros that are no longer needed now that stdint.h is
40464         reliable.
40465         * lib/fsusage.c (UINTMAX_MAX): Remove.
40466         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40467         * lib/utimecmp.c (SIZE_MAX): Remove.
40468
40469         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40470
40471         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40472         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
40473         O_NOATIME works.
40474
40475 2006-10-05  Bruno Haible  <bruno@clisp.org>
40476
40477         * lib/gl_list.h (gl_sortedlist_search_from_to,
40478         gl_sortedlist_indexof_from_to): New declarations.
40479         (gl_list_implementation): New fields sortedlist_search_from_to,
40480         sortedlist_indexof_from_to.
40481         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40482         inline functions.
40483         * lib/gl_list.c (gl_sortedlist_search_from_to,
40484         gl_sortedlist_indexof_from_to): New functions.
40485         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40486         function.
40487         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40488         (gl_array_sortedlist_search_from_to): New function.
40489         (gl_array_list_implementation): Update.
40490         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40491         function.
40492         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40493         (gl_carray_sortedlist_search_from_to): New function.
40494         (gl_carray_list_implementation): Update.
40495         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40496         gl_linked_sortedlist_indexof_from_to): New functions.
40497         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40498         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40499         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40500         gl_tree_sortedlist_indexof_from_to): New functions.
40501         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40502         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40503         Update.
40504         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40505         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40506         Update.
40507
40508 2006-10-05  Bruno Haible  <bruno@clisp.org>
40509
40510         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40511         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40512         (struct gl_list_implementation): Add fields search_from_to,
40513         indexof_from_to. Remove fields search, indexof.
40514         (gl_list_search): Use the search_from_to method.
40515         (gl_list_search_from, gl_list_search_from_to): New functions.
40516         (gl_list_indexof): Use the indexof_from_to method.
40517         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40518         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
40519         (gl_list_search_from, gl_list_search_from_to): New functions.
40520         (gl_list_indexof): Use the indexof_from_to method.
40521         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40522         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
40523         gl_array_indexof. Add start_index, end_index arguments.
40524         (gl_array_search_from_to): Renamed from gl_array_search. Add
40525         start_index, end_index arguments.
40526         (gl_array_remove, gl_array_list_implementation): Update.
40527         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
40528         gl_carray_indexof. Add start_index, end_index arguments.
40529         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
40530         start_index, end_index arguments.
40531         (gl_carray_remove, gl_carray_list_implementation): Update.
40532         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
40533         gl_linked_search. Add start_index, end_index arguments.
40534         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
40535         start_index, end_index arguments.
40536         (gl_linked_remove): Update.
40537         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40538         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40539         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
40540         field to 'size_t'.
40541         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
40542         gl_tree_search. Add start_index, end_index arguments.
40543         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40544         start_index, end_index arguments.
40545         (gl_tree_remove): Update.
40546         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40547         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40548         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
40549         function.
40550         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
40551         gl_tree_search. Add start_index, end_index arguments.
40552         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
40553         start_index, end_index arguments.
40554         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40555         Update.
40556         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40557
40558 2006-10-05  Bruno Haible  <bruno@clisp.org>
40559
40560         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
40561
40562         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
40563         fwriteerror_temp): New declarations.
40564         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
40565         (descriptors): New variable.
40566         (cleanup): First, close the descriptors.
40567         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
40568         fclose_temp, fwriteerror_temp): New functions.
40569
40570 2006-10-04  Jim Meyering  <jim@meyering.net>
40571
40572         * lib/fts.c (fts_open): Tiny comment change.
40573
40574 2006-10-04  Bruno Haible  <bruno@clisp.org>
40575
40576         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
40577         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
40578         gl_LOCK_BODY.
40579         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
40580         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
40581         gl_LOCK_EARLY_BODY.
40582         (gl_LOCK): Require gl_LOCK_BODY.
40583
40584 2006-10-04  Bruno Haible  <bruno@clisp.org>
40585
40586         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
40587         (gl_oset_search_atleast): New declaration.
40588         (struct gl_oset_implementation): Add field 'search_atleast'.
40589         (gl_oset_search_atleast): New inline function.
40590         * lib/gl_oset.c (gl_oset_search_atleast): New function.
40591         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
40592         (gl_array_oset_implementation): Update.
40593         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
40594         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
40595         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
40596
40597 2006-10-04  Bruno Haible  <bruno@clisp.org>
40598
40599         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
40600
40601 2006-10-03  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
40604         from gl_avltreehash_list_implementation.
40605
40606 2006-10-03  Bruno Haible  <bruno@clisp.org>
40607
40608         * lib/gl_oset.c (gl_oset_add): Fix return type.
40609
40610 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
40611
40612         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
40613
40614 2006-10-02  Eric Blake  <ebb9@byu.net>
40615
40616         * modules/strnlen (Depends-on): Add extensions.
40617
40618 2006-10-02  Eric Blake  <ebb9@byu.net>
40619
40620         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
40621         definition in 2.60+.
40622
40623 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
40624
40625         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
40626         checks.
40627
40628 2006-10-02  Bruno Haible  <bruno@clisp.org>
40629
40630         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
40631         to the AUTOMAKE_OPTIONS.
40632         Reported by Jim Meyering.
40633
40634 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40635
40636         Work around bug in Solaris 10 /proc file system:
40637         /proc/self/fd/NNN/.. isn't the parent directory of
40638         the directory whose file descriptor is NNN.  This needs to
40639         be worked around at run time, not compile time, since a
40640         program might be built on Solaris 8, where things work, and
40641         run on Solaris 10.
40642         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
40643         to use the following interface instead:
40644         (OPENAT_BUFFER_SIZE): New macro.
40645         (openat_proc_name): New function.
40646         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
40647         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
40648         Likewise.
40649         * lib/openat-proc.c: New file.
40650         * modules/openat (Files): Add lib/openat-proc.c.
40651         (Depends-on): Add same-inode, stdbool.
40652         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
40653
40654 2006-09-29  Bruno Haible  <bruno@clisp.org>
40655
40656         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
40657         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
40658         argument. Set stdout_closed before testing for ferror, not after.
40659         (fwriteerror, fwriteerror_no_ebadf): New functions.
40660
40661 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40662
40663         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
40664
40665 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
40666
40667         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
40668         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
40669
40670 2006-09-28  Jim Meyering  <jim@meyering.net>
40671
40672         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
40673         Include <unistd.h>.
40674
40675 2006-09-28  Bruno Haible  <bruno@clisp.org>
40676
40677         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
40678         * modules/linkedhash-list (Depends-on): Likewise.
40679         * modules/rbtreehash-list (Depends-on): Likewise.
40680
40681 2006-09-28  Bruno Haible  <bruno@clisp.org>
40682
40683         * lib/strndup.h: Simplify the redefinition of strndup.
40684         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
40685         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
40686
40687 2006-09-28  Bruno Haible  <bruno@clisp.org>
40688
40689         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
40690         * lib/gl_linkedhash_list.c: Likewise.
40691         * lib/gl_rbtreehash_list.c: Likewise.
40692
40693 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40694
40695         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
40696         getaddrinfo.
40697
40698         * lib/__fpending.h: Don't include <stdio_ext.h> unless
40699         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
40700         it causes <stdio_ext.h> to cause a compile-time error.
40701         Problem reported by Nelson H. F. Beebe.
40702         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
40703         of HAVE_DECL___PENDING.
40704
40705         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
40706         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
40707         declaration.
40708
40709 2006-09-27  Jim Meyering  <jim@meyering.net>
40710
40711         This file could end up with a definition for a function
40712         named __strndup, rather than rpl_strndup on a system with
40713         incomplete weak_alias support.
40714         * lib/strndup.c (strndup): Rename from __strndup.
40715         Remove #defines that used to map __strndup to strndup.
40716         Don't use K&R prototypes.
40717         Remove LIBC-related code, since this file is not sync'd with glibc.
40718         * lib/strndup.h: Revamp, accordingly.
40719         * m4/strndup.m4: Modernize.
40720
40721 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40722
40723         * modules/savewd (Depends-on): Add 'raise'.
40724         * lib/savewd.c: Include <signal.h>, for 'raise'.
40725
40726 2006-09-26  Jim Meyering  <jim@meyering.net>
40727
40728         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
40729         when we detect Darwin 8.7.0's acl_get_file bug.
40730         Rearrange to perform the new (below) run-test while $LIBS
40731         contains any acl-related library.  Set USE_ACL at the end.
40732         (gl_ACL_GET_FILE): New function.
40733
40734 2006-09-26  Eric Blake  <ebb9@byu.net>
40735
40736         * lib/verror.c: Include <config.h> unconditionally.
40737
40738 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
40739
40740         * modules/clock-time (Maintainer): Add self.
40741         * modules/getlogin_r (Depends-on): Add extensions.
40742
40743 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40744
40745         * modules/clock-time: New module.
40746         * modules/nanosleep (Depends-on): Add clock-time.
40747         * modules/gethrxtime (Depends-on): Likewise.
40748         * modules/gettime (Depends-on): Likewise.
40749         * modules/settime (Depends-on): Likewise.
40750
40751         * modules/fts-lgpl: Depend on openat.
40752         * modules/mkancesdirs: Depend on savewd.
40753         * modules/mkdir-p: Likewise.
40754
40755 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40756
40757         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
40758
40759         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
40760         `gl_have_arbitrary_file_name_length_limit' to
40761         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
40762         actually works between configure runs.
40763
40764 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40765             Bruno Haible  <bruno@clisp.org>
40766
40767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
40768
40769 2006-09-25  Jim Meyering  <jim@meyering.net>
40770
40771         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
40772         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
40773
40774 2006-09-25  Eric Blake  <ebb9@byu.net>
40775
40776         * gnulib-tool (func_import, func_create_testdir): Fix typos in
40777         exec's in 2006-09-18 patch when shuffling fds.
40778
40779 2006-09-25  Bruno Haible  <bruno@clisp.org>
40780
40781         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
40782         Reported by Jim Meyering.
40783
40784 2006-09-24  Jim Meyering  <jim@meyering.net>
40785
40786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
40787         compare a pointer against a literal "0".  That caused failures with
40788         at least HP-UX's hpcc.
40789
40790 2006-09-22  Simon Josefsson  <jas@extundo.com>
40791
40792         * modules/gc-sha1:
40793         * modules/gc-md4:
40794         * modules/gc-hmac-sha1:
40795         * modules/gc-hmac-md5:
40796         * modules/gc-des:
40797         * modules/gc-arcfour: Distribute more files.
40798
40799 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40800
40801         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
40802         (gl_linked_iterator_from_to): Initialize struct completely.
40803         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
40804         (gl_tree_iterator_from_to): Likewise
40805         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
40806         * lib/gl_array_list.c [lint] (gl_array_iterator)
40807         (gl_array_iterator_from_to): Likewise.
40808         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
40809         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
40810         (gl_carray_iterator_from_to): Likewise.
40811
40812         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
40813         * lib/md4.c (md4_process_block): Remove unused variable.
40814         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
40815         parentheses for clarity.
40816
40817 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40818
40819         * modules/bison-i18n (Depends-on): Add gettext.
40820
40821 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40822
40823         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
40824         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40825         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
40826         also add missing comma that caused broken test.
40827         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
40828         stdlib.h, for `abort'.
40829         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
40830         variables.
40831         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
40832         include unistd.h if present, for `rmdir'.
40833         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
40834         variables.
40835         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
40836         in the process include standard headers for prototypes.
40837         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
40838         gets declared on GNU/Linux.
40839         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
40840         unistd.h, for `rmdir'.
40841         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
40842
40843         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
40844         always true.
40845         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
40846
40847         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
40848
40849 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40850
40851         * gnulib-tool (func_version): Create output all at once.  This
40852         may help avoid triggering unnecessary SIGPIPEs, and at any
40853         rate it doesn't hurt.
40854
40855 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40856             Bruno Haible  <bruno@clisp.org>
40857
40858         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
40859         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40860         * m4/signed.m4 (bh_C_SIGNED): Likewise.
40861
40862         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
40863         (gl_FUNC_VASPRINTF): Invoke it.
40864
40865 2006-09-22  Bruno Haible  <bruno@clisp.org>
40866
40867         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
40868         getloadavg.c as first argument.
40869
40870 2006-09-22  Bruno Haible  <bruno@clisp.org>
40871
40872         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
40873         at the beginning of the gl_INIT macro.
40874         * modules/getloadavg (configure.ac): Pass $gl_source_base to
40875         gl_GETLOADAVG.
40876
40877 2006-09-22  Bruno Haible  <bruno@clisp.org>
40878
40879         * gnulib-tool (func_create_megatestdir): Don't include the config-h
40880         module.
40881         Suggested by Ralf Wildenhues.
40882
40883 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40884
40885         Import this patch from libc:
40886
40887         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
40888
40889         * lib/regex_internal.c (re_string_reconstruct): Handle
40890         offset < pstr->valid_raw_len && pstr->offsets_needed case.
40891         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
40892         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
40893         re_string_context_at.
40894
40895         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
40896         now requires it.
40897         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
40898         gl_REGEX now does it for us.
40899         (gl_REGEX): Add test taken from
40900         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
40901
40902         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
40903         Check that large offsets work.  Modernize Autoconf usages.
40904         Prefer "yes" to mean a good thing rather than a bad.
40905         Don't put "#define mkstemp" in config.h, as this might interfere
40906         with standard system headers that "#define mkstemp mkstemp64".
40907
40908         * modules/mkstemp (Depends-on): Add extensions, so that
40909         mkstemp is visible on some platforms.
40910         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
40911         (Include): Change to "mkstemp.h" from <stdlib.h>.
40912         (Files): Add mkstemp.h.
40913
40914         * lib/mkstemp.h: New file, since some standard headers
40915         #define mkstemp.
40916         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
40917         Include "mkstemp.h".
40918         Make the _LIBC code resemble glibc original more,
40919         e.g., use K&R style.
40920         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
40921         (mkstemp): Remove, since mkstemp.h does this for us.
40922         * lib/stdlib--.h: Include mkstemp.h.
40923
40924         Import this patch from libc:
40925
40926         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
40927
40928         * lib/tempname.c (__gen_tempname): Change attempts_min
40929         into a macro.  Use preprocessor to decide how to initialize
40930         attempts [Coverity CID 67].
40931
40932 2006-09-20  Bruno Haible  <bruno@clisp.org>
40933
40934         * lib/mkdtemp.c: Import from libc.
40935         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
40936                 * sysdeps/posix/tempname.c (__gen_tempname): Change
40937                 attempts_min into a macro.  Use preprocessor to decide how to
40938                 initialize attempts [Coverity CID 67].
40939         2001-11-27  Paul Eggert  <eggert@twinsun.com>
40940                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
40941                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
40942
40943 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40944
40945         * gnulib-tool (func_exit): New function, to allow to pass the
40946         exit status portably through the trap.  Use everywhere.
40947         (--help, --version): Signal a write error.
40948         (trap): catch SIGPIPE, for write errors.
40949         Exit at the end of the trap, with the correct exit status.
40950
40951 2006-09-19  Karl Berry  <karl@gnu.org>
40952
40953         * doc/gnulib.texi: note about the license texinfo files.
40954
40955 2006-09-19  Eric Blake  <ebb9@byu.net>
40956
40957         * gnulib-tool: Avoid space-tab.
40958
40959 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
40960
40961         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
40962         that prevented coreutils 6.1 from building.  Problem reported
40963         by Petter Reinholdtsen.
40964
40965 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
40966
40967         * gnulib-tool (avoidlist): Fix typo that broke options like
40968         --avoid=lock that are used by coreutils bootstrap.
40969
40970 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
40971
40972         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
40973         more systematically.
40974
40975 2006-09-18  Jim Meyering  <jim@meyering.net>
40976
40977         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
40978
40979 2006-09-18  Bruno Haible  <bruno@clisp.org>
40980
40981         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
40982
40983 2006-09-18  Bruno Haible  <bruno@clisp.org>
40984
40985         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
40986         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
40987         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
40988         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
40989         * m4/gettext.m4: Require autoconf >= 2.52.
40990         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
40991         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
40992         of gl_cv_header_inttypes_h.
40993
40994 2006-09-18  Bruno Haible  <bruno@clisp.org>
40995
40996         * lib/javaversion.c: Include configmake.h.
40997
40998 2006-09-18  Bruno Haible  <bruno@clisp.org>
40999
41000         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41001         avoid that the while loops be executed in a subshell.
41002
41003 2006-09-18  Bruno Haible  <bruno@clisp.org>
41004
41005         * MODULES.html.sh (func_module): Break long lines.
41006         Suggested by Bruce Korb <bkorb@gnu.org>.
41007
41008 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41009
41010         Speed up by a factor of 1.12.
41011         * gnulib-tool (nl): New variable.
41012         (func_import): Rewrite include directive extraction to only read each
41013         directive once.
41014
41015 2006-09-17  Bruno Haible  <bruno@clisp.org>
41016
41017         * modules/javaversion (Makefile.am): Remove DEFS setting.
41018         (Depends-on): Add configmake, for PKGDATADIR definition.
41019
41020 2006-09-17  Bruno Haible  <bruno@clisp.org>
41021
41022         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41023
41024 2006-09-17  Bruno Haible  <bruno@clisp.org>
41025
41026         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41027         (func_modules_transitive_closure, func_modules_add_dummy,
41028         func_modules_to_filelist, func_import, func_create_testdir,
41029         func_create_megatestdir, ...): Use it wherever possible.
41030         Suggested by Ralf Wildenhues.
41031
41032 2006-09-16  Karl Berry  <karl@gnu.org>
41033
41034         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41035         to avoid sectioning errors.
41036         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41037         [ifinfo]: blank line after @center-ed titles.
41038         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41039         Spell FSF address consistently with others.
41040         (These changes approved by rms.)
41041
41042 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41043
41044         Speed up by a factor of 1.61.
41045         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41046         already checked module names again.
41047
41048 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41049
41050         Speed up by a factor of 1.13.
41051         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41052         for new_files, and the input to func_add_or_update.
41053
41054 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41055
41056         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41057         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41058
41059 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41060
41061         * modules/mkancesdirs (Depends-on): Add fcntl.
41062         * modules/savewd: New file.
41063         * MODULES.html.sh (File system functions): Add savewd.
41064
41065         * modules/configmake (Makefile.am): Add support for the
41066         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41067
41068 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41069
41070         * m4/savewd.m4: New file.
41071
41072 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41073
41074         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41075         (dirchownmod): New arg FD.  All callers changed.
41076         Use FD rather than opening the directory ourself, as opening is
41077         now the caller's responsibility.
41078         * lib/dirchownmod.h: Likewise.
41079         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41080         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41081         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41082         (test_dir): Remove.
41083         (mkancesdirs): Return length of prefix of FILE that has already
41084         been made, or -2 if there is a child doing the work.  Redo
41085         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41086         ".", and treat ".." specially since it might stray back into
41087         already-created areas.  Use a subprocess if necessary.  New arg
41088         WD; all users changed.  MAKE_DIR function should now return 1
41089         if it creates a directory that is not readable.  Return -2 if
41090         a child process is spun off.
41091         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41092         Adjust signature to match code.
41093         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41094         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41095         all users changed.
41096         * lib/savewd.c, lib/savewd.h: New files.
41097
41098 2006-09-15  Jim Meyering  <jim@meyering.net>
41099
41100         * modules/rename-dest-slash: New module.
41101         * MODULES.html.sh (posix_compat): Add it here.
41102
41103         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41104
41105 2006-09-15  Jim Meyering  <jim@meyering.net>
41106
41107         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41108         file.
41109
41110         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41111
41112 2006-09-15  Jim Meyering  <jim@meyering.net>
41113
41114         * lib/rename-dest-slash.c (has_trailing_slash): Use
41115         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41116         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41117         test before testing whether SRC is a directory.
41118         Suggestions from Bruno Haible.
41119
41120         Avoid a warning about an unused variable.
41121         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41122         into the #ifdef block where it's used.
41123
41124         * lib/rename-dest-slash.c: New file.
41125
41126 2006-09-14  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/allocsa.c: Include <config.h> unconditionally.
41129         * lib/asnprintf.c: Likewise.
41130         * lib/asprintf.c: Likewise.
41131         * lib/c-strcasecmp.c: Likewise.
41132         * lib/c-strcasestr.c: Likewise.
41133         * lib/c-strncasecmp.c: Likewise.
41134         * lib/c-strstr.c: Likewise.
41135         * lib/classpath.c: Likewise.
41136         * lib/clean-temp.c: Likewise.
41137         * lib/concatpath.c: Likewise.
41138         * lib/copy-file.c: Likewise.
41139         * lib/csharpcomp.c: Likewise.
41140         * lib/csharpexec.c: Likewise.
41141         * lib/execute.c: Likewise.
41142         * lib/fatal-signal.c: Likewise.
41143         * lib/findprog.c: Likewise.
41144         * lib/fwriteerror.c: Likewise.
41145         * lib/gl_array_list.c: Likewise.
41146         * lib/gl_array_oset.c: Likewise.
41147         * lib/gl_avltree_list.c: Likewise.
41148         * lib/gl_avltree_oset.c: Likewise.
41149         * lib/gl_avltreehash_list.c: Likewise.
41150         * lib/gl_carray_list.c: Likewise.
41151         * lib/gl_linked_list.c: Likewise.
41152         * lib/gl_linkedhash_list.c: Likewise.
41153         * lib/gl_list.c: Likewise.
41154         * lib/gl_oset.c: Likewise.
41155         * lib/gl_rbtree_list.c: Likewise.
41156         * lib/gl_rbtree_oset.c: Likewise.
41157         * lib/gl_rbtreehash_list.c: Likewise.
41158         * lib/imaxabs.c: Likewise.
41159         * lib/imaxdiv.c: Likewise.
41160         * lib/javacomp.c: Likewise.
41161         * lib/javaexec.c: Likewise.
41162         * lib/javaversion.c: Likewise.
41163         * lib/linebreak.c: Likewise.
41164         * lib/localcharset.c: Likewise.
41165         * lib/lock.c: Likewise.
41166         * lib/mbchar.c: Likewise.
41167         * lib/mbswidth.c: Likewise.
41168         * lib/mkdtemp.c: Likewise.
41169         * lib/pipe.c: Likewise.
41170         * lib/printf-args.c: Likewise.
41171         * lib/printf-parse.c: Likewise.
41172         * lib/progname.c: Likewise.
41173         * lib/progreloc.c: Likewise.
41174         * lib/readlink.c: Likewise.
41175         * lib/sh-quote.c: Likewise.
41176         * lib/stpcpy.c: Likewise.
41177         * lib/stpncpy.c: Likewise.
41178         * lib/strcasecmp.c: Likewise.
41179         * lib/strcasestr.c: Likewise.
41180         * lib/strcspn.c: Likewise.
41181         * lib/striconv.c: Likewise.
41182         * lib/strncasecmp.c: Likewise.
41183         * lib/strnlen1.c: Likewise.
41184         * lib/strstr.c: Likewise.
41185         * lib/strtok_r.c: Likewise.
41186         * lib/tls.c: Likewise.
41187         * lib/tmpdir.c: Likewise.
41188         * lib/unicodeio.c: Likewise.
41189         * lib/unsetenv.c: Likewise.
41190         * lib/vasnprintf.c: Likewise.
41191         * lib/vasprintf.c: Likewise.
41192         * lib/wait-process.c: Likewise.
41193         * lib/xallocsa.c: Likewise.
41194         * lib/xsetenv.c: Likewise.
41195         * lib/xstriconv.c: Likewise.
41196
41197 2006-09-13  Simon Josefsson  <jas@extundo.com>
41198
41199         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41200         that internally, suggested by Ralf Wildenhues
41201         <Ralf.Wildenhues@gmx.de>.
41202
41203 2006-09-13  Simon Josefsson  <jas@extundo.com>
41204
41205         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41206         @LIBOBJS@.
41207         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41208
41209 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41210
41211         * lib/_fpending.c: Include <config.h> unconditionally, since we no
41212         longer worry about uses that don't define HAVE_CONFIG_H.
41213         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41214         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41215         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41216         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41217         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41218         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41219         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41220         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41221         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41222         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41223         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41224         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41225         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41226         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41227         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41228         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41229         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41230         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41231         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41232         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41233         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41234         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41235         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41236         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41237         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41238         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41239         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41240         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41241         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41242         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41243         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41244         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41245         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41246         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41247         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41248         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41249         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41250         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41251         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41252         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41253         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41254         Likewise.
41255
41256 2006-09-13  Eric Blake  <ebb9@byu.net>
41257
41258         * lib/getopt.c: Fix typo in last commit.
41259
41260 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41261
41262         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41263         dgettext.
41264
41265 2006-09-12  Jim Meyering  <jim@meyering.net>
41266
41267         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41268         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41269         Reported by Nelson H. F. Beebe.
41270
41271 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
41272
41273         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41274         program_invocation_name and program_invocation_short_name are
41275         initialized.
41276         * lib/argp-namefrob.h: Move declarations of program_invocation_name
41277         and program_invocation_short_name to argp.h, so they are visible
41278         to user programs.
41279         * lib/argp.h: Likewise
41280
41281 2006-09-10  Bruno Haible  <bruno@clisp.org>
41282
41283         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41284         m4/inttypes_h.m4, m4/uintmax_t.m4.
41285
41286 2006-09-10  Bruno Haible  <bruno@clisp.org>
41287
41288         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41289         gl_AC_TYPE_UINTMAX_T.
41290
41291 2006-09-10  Bruno Haible  <bruno@clisp.org>
41292
41293         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41294
41295 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
41296
41297         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41298         convention.  Text proposed by Bruno Haible.
41299         (struct argp_option): Document the use of N_() wrappers.
41300
41301         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41302         '\v', and translate the two parts separately, instead of feeding
41303         the whole string to gettext.  This allows to exclude
41304         '\v' from the strings visible to the translator by writing doc
41305         strings as N_("..") "\v" N_("..").
41306
41307 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
41308
41309         * config/srclist.txt: Undo latest change; the bug was fixed.
41310
41311 2006-09-09  Bruno Haible  <bruno@clisp.org>
41312
41313         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41314         assignments if building a library without libtool.
41315         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41316         in func_emit_lib_Makefile_am.
41317         (func_import): When building a static library libfoo.a, arrange to
41318         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41319         (func_create_testdir): Likewise.
41320         * modules/gc (configure.ac, Makefile.am): If building statically,
41321         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41322         * modules/iconvme (configure.ac, Makefile.am): Likewise.
41323         * modules/striconv (configure.ac, Makefile.am): Likewise.
41324         Based on a suggestion by Ralf Wildenhues.
41325
41326 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41327
41328         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41329         Check for unistd.h too, since Autoconf doesn't assume POSIX.
41330         Also:
41331
41332         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41333         Add year_2050_test to catch glibc bug 2821
41334         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41335
41336         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41337         Prefer #ifdef to #if.
41338
41339         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
41340         Return from 'main' instead of calling 'exit'.
41341
41342 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41343
41344         * lib/mktime.c (guess_time_tm): Fix bug where mktime
41345         returned the maximum time_t value rather than (time_t) -1.
41346         Problem originally reported by William Bardwell
41347         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41348
41349         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41350         Moved to here ...
41351         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41352         ... from here.
41353
41354 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41355
41356         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41357         2821 is fixed.
41358
41359 2006-09-08  Jim Meyering  <jim@meyering.net>
41360
41361         Don't make generated files read-only.  That would bother too many
41362         people.  However, do retain the ability to work when targets are
41363         read-only: remove the destination and temporary files before writing
41364         them (when generated via sed or echo), or by using the -f option for
41365         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
41366         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41367         * modules/byteswap, modules/configmake, modules/fcntl:
41368         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41369         * modules/localcharset, modules/netinet_in, modules/poll:
41370         * modules/stdbool, modules/stdint, modules/sys_select:
41371         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41372
41373 2006-09-08  Jim Meyering  <jim@meyering.net>
41374
41375         Avoid new build failure on FreeBSD 6.0.
41376         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41377         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
41378         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41379
41380 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41381
41382         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41383
41384 2006-09-07  Jim Meyering  <jim@meyering.net>
41385
41386         Fix global typo in last change: use chmod u-w, not chmod u-x.
41387         Spotted by Paul Eggert and Bruce Korb.
41388         * modules/alloca-opt, modules/argz, modules/arpa_inet:
41389         * modules/byteswap, modules/configmake, modules/fcntl:
41390         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41391         * modules/localcharset, modules/netinet_in, modules/poll:
41392         * modules/stdbool, modules/stdint, modules/sys_select:
41393         * modules/sys_socket, modules/sys_stat, modules/sysexits:
41394
41395 2006-09-06  Jim Meyering  <jim@meyering.net>
41396
41397         Make generated files be read-only.
41398         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41399         Ensure that each generated file is now read-only.
41400         * modules/argz: Likewise.
41401         * modules/arpa_inet: Likewise.
41402         * modules/byteswap: Likewise.
41403         * modules/configmake: Likewise.
41404         * modules/fcntl: Likewise.
41405         * modules/fnmatch: Likewise.
41406         * modules/getopt: Likewise.
41407         * modules/glob: Likewise.
41408         * modules/inttypes: Likewise.
41409         * modules/netinet_in: Likewise.
41410         * modules/poll: Likewise.
41411         * modules/stdbool: Likewise.
41412         * modules/stdint: Likewise.
41413         * modules/sys_select: Likewise.
41414         * modules/sys_socket: Likewise.
41415         * modules/sys_stat: Likewise.
41416         * modules/sysexits: Likewise.
41417         * modules/localcharset: Same as above, but continue using temporary
41418         file named "t-$@" (why different?) rather than the "$@-t" used
41419         everywhere else.
41420
41421         * modules/sysexits (Makefile.am): Replace literal occurrences
41422         of "sysexit.h" more readable, and more consistent, "$@".
41423
41424 2006-09-06  Bruno Haible  <bruno@clisp.org>
41425
41426         * modules/striconv: New file.
41427         * modules/xstriconv: New file.
41428         * MODULES.html.sh (Internationalization functions): Add striconv,
41429         xstriconv.
41430
41431 2006-09-06  Bruno Haible  <bruno@clisp.org>
41432
41433         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41434         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41435         not using libtool correctly.
41436
41437 2006-09-06  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/striconv.h: New file.
41440         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41441         iconvstring.c.
41442         * lib/xstriconv.h: New file.
41443         * lib/xstriconv.c: New file.
41444
41445 2006-09-06  Bruno Haible  <bruno@clisp.org>
41446
41447         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41448         lib_..._LDFLAGS.
41449
41450 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41451
41452         * lib/argz_.h: Sync from Libtool.
41453
41454         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
41455                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41456
41457         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41458
41459 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41460
41461         * modules/trim: New file.
41462
41463 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
41464
41465         * lib/trim.h: New file.
41466         * lib/trim.c: New file.
41467
41468 2006-09-05  Bruno Haible  <bruno@clisp.org>
41469
41470         * MODULES.html.sh (String handling): Add trim.
41471
41472 2006-09-04  Karl Berry  <karl@gnu.org>
41473
41474         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41475         until next release.
41476
41477 2006-09-03  Bruno Haible  <bruno@clisp.org>
41478
41479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41480         correctly.
41481
41482 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41483
41484         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41485         not gl_GETLOADAVG.  Omit unneeded semicolons.
41486         Problems reported by Ralf Wildenhues in
41487         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41488         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
41489         at the end, which is the usual gnulib style.
41490
41491         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41492         of doing all the work ourselves.
41493         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41494         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41495
41496 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41497
41498         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41499         Problem reported by Ralf Wildenhues in
41500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41501
41502         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41503         HAVE_STRUCT_STATFS_F_FSTYPENAME.
41504
41505 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41506
41507         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41508         yesterday's patch by changing test -n to test -z.
41509
41510 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41511
41512         * modules/getloadavg (Files): Add m4/getloadavg.m4.
41513         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41514         the former is now obsolescent.
41515
41516         * modules/chdir-long (Depends-on): Add fcntl.
41517
41518 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41519
41520         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
41521         obsolescent, and programs should use gnulib instead.
41522         * m4/getloadavg.m4: New file, with contents taken from Autoconf
41523         but with prefixes changed.
41524
41525 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41526
41527         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
41528         or stdbool.h, because they might not exist while configuring.
41529
41530         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
41531         Don't include unistd.h or limits.h; not needed, since chdir-long.h
41532         does that for us.
41533         (O_DIRECTORY): Remove.
41534
41535 2006-08-31  Eric Blake  <ebb9@byu.net>
41536
41537         * gnulib-tool: Don't let emacs change spaces to TAB.
41538
41539 2006-08-31  Bruno Haible  <bruno@clisp.org>
41540
41541         * gnulib-tool: When calling func_import more than once, do it in a
41542         subshell.
41543         Reported by Eric Blake <ebb9@byu.net>.
41544
41545 2006-08-31  Bruno Haible  <bruno@clisp.org>
41546
41547         * gnulib-tool (nl): Remove variable.
41548         (sed_transform_lib_file): Use more robust test for config-h module.
41549         (func_import): Fix typo in 2006-08-25 patch.
41550
41551 2006-08-31  Bruno Haible  <bruno@clisp.org>
41552
41553         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
41554         specified, augment Makefile.am variables instead of assigning them.
41555
41556 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41557
41558         Work around a bug in both the Linux and SunOS 64-bit kernels:
41559         nanosleep mishandles sleeps for longer than 2**31 seconds.
41560         Problem reported by Frank v Waveren in
41561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
41563         Check for nanosleep bug.
41564         (LIB_NANOSLEEP): Append clock_gettime library if needed.
41565
41566 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41567
41568         Work around a bug in both the Linux and SunOS 64-bit kernels:
41569         nanosleep mishandles sleeps for longer than 2**31 seconds.
41570         Problem reported by Frank v Waveren in
41571         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
41572         * lib/nanosleep.c (BILLION): New constant.
41573         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
41574         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
41575         implementation.
41576
41577 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41578
41579         * modules/nanosleep (Depends-on): Add gettime.
41580
41581 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
41582         and Simon Josefsson  <jas@extundo.com>
41583         and Oskar Liljeblad  <oskar@osk.mine.nu>
41584
41585         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
41586         * gnulib-tool (func_import): New license type 'unmodifiable license
41587         text'.
41588         * modules/fdl: Use it.  Longer description.
41589         * module/gpl, module/lgpl: New files.
41590
41591 2006-08-30  Jim Meyering  <jim@meyering.net>
41592
41593         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
41594         shadowing the parameter.
41595
41596 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41597
41598         Sync from Libtool:
41599
41600         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41601
41602         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
41603         sharing with gnulib.  Report by Eric Blake.
41604
41605 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41606
41607         * modules/isapipe: New file.
41608         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
41609
41610 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         * modules/configmake (Makefile.am): Add a comment, and omit
41613         the CONFIGMAKE_ prefix from generated macro names.  Suggested
41614         by Bruno Haible.
41615
41616 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41617
41618         * m4/isapipe.m4: New file.
41619
41620 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
41621
41622         * lib/isapipe.c, lib/isapipe.h: New files.
41623
41624 2006-08-29  Jim Meyering  <jim@meyering.net>
41625
41626         * modules/configmake (Makefile.am): Make configmake.h depend on
41627         Makefile.  Otherwise, a stale configmake.h could hang around.
41628
41629 2006-08-29  Eric Blake  <ebb9@byu.net>
41630
41631         * lib/error.c (error_at_line, print_errno_message): Match libc, after
41632         resolution of upstream bug 3044.
41633
41634 2006-08-29  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/localcharset (Depends-on): Add configmake.
41637         (Makefile.am): Remove setting of LIBDIR through DEFS.
41638
41639 2006-08-29  Bruno Haible  <bruno@clisp.org>
41640
41641         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
41642         defined.
41643
41644 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41645
41646         * modules/fcntl: New file.
41647         * modules/chdir-safer (Depends-on): Add fcntl.
41648         * modules/fts: Likewise.
41649         * modules/mkdir-p: Likewise.
41650
41651         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
41652         This undoes the most recent change, since we're now addressing the
41653         problem in a different way.
41654
41655         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
41656         into output, since the output might be called Makefile.am even
41657         if $makefile_name is something different.
41658         (func_import): Use $makefile_am rather than
41659         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
41660         empty.
41661
41662         * modules/inttypes (Files): Add m4/inttypes-h.m4.
41663
41664 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41665
41666         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
41667         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
41668         recent change to stdint.m4, since we're now addressing the problem in a
41669         different way.
41670
41671 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41672
41673         * m4/fcntl_h.m4: New file.
41674
41675 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
41676
41677         * lib/fcntl_.h: New file.
41678         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
41679         the fcntl module.
41680         * lib/dirchownmod.c: Likewise.
41681         * lib/fts.c: Likewise.
41682
41683         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
41684         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
41685         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
41686         just before including <inttypes.h>, to avoid circular inclusion.
41687
41688 2006-08-28  Jim Meyering  <jim@meyering.net>
41689
41690         * doc/visibility.texi: Actually read and correct the grammar of the
41691         sentence affected by yesterday's change.
41692
41693 2006-08-28  Eric Blake  <ebb9@byu.net>
41694
41695         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
41696         needs wrapper.
41697
41698 2006-08-28  Eric Blake  <ebb9@byu.net>
41699
41700         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
41701
41702 2006-08-28  Eric Blake  <ebb9@byu.net>
41703
41704         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
41705
41706 2006-08-28  Bruno Haible  <bruno@clisp.org>
41707
41708         * modules/c-strstr: New file, from GNU gettext.
41709         * MODULES.html.sh (String handling): Add c-strstr.
41710
41711 2006-08-28  Bruno Haible  <bruno@clisp.org>
41712
41713         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
41714         macros.
41715         Reported by Eric Blake.
41716
41717 2006-08-28  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
41720         (VASNPRINTF): Return a string of length > INT_MAX without failing.
41721         * lib/vasprintf.c: Include errno.h, limits.h.
41722         (EOVERFLOW): New fallback definition.
41723         (vasprintf): Test here whether the string length is > INT_MAX.
41724         * lib/vsnprintf.c: Include errno.h, limits.h.
41725         (EOVERFLOW): New fallback definition.
41726         (vsnprintf): Fix bug when generated string was too long for the buffer.
41727         Test here whether the string length is > INT_MAX.
41728
41729 2006-08-28  Bruno Haible  <bruno@clisp.org>
41730
41731         * lib/inttypes_.h (SCNX*): Remove definitions.
41732         Reported by Eric Blake.
41733
41734 2006-08-28  Bruno Haible  <bruno@clisp.org>
41735
41736         * lib/c-strstr.h: New file, from GNU gettext.
41737         * lib/c-strstr.c: New file, from GNU gettext.
41738
41739 2006-08-28  Bruno Haible  <bruno@clisp.org>
41740
41741         * gnulib-tool: Reorder some statements.
41742
41743 2006-08-28  Bruno Haible  <bruno@clisp.org>
41744
41745         * gnulib-tool: New option --makefile-name.
41746         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
41747         $makefile_name.
41748         (func_import): Write $makefile_name to the cache file, and read it from
41749         there unless explicitly specified. Use $makefile_name as file name
41750         instead of Makefile.am. Adjust the recommendations accordingly.
41751
41752 2006-08-28  Bruno Haible  <bruno@clisp.org>
41753
41754         * gnulib-tool (func_verify_module): Check against misapplying patch.
41755
41756 2006-08-28  Bruno Haible  <bruno@clisp.org>
41757
41758         * gnulib-tool (func_relativize, func_relconcat): New functions.
41759         Give an error if --local-dir is given with --update.
41760         Remove trailing slashes from $local_gnulib_dir.
41761         (func_import): Store the relativized $local_gnulib_dir in
41762         gnulib-cache.m4, and read it from there if not specified explicitly.
41763
41764 2006-08-28  Bruno Haible  <bruno@clisp.org>
41765
41766         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
41767         is the current directory. Respect also $local_gnulib_dir.
41768
41769 2006-08-28  Bruno Haible  <bruno@clisp.org>
41770             Simon Josefsson  <jas@extundo.com>
41771
41772         BeOS portability.
41773         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
41774
41775 2006-08-27  Jim Meyering  <jim@meyering.net>
41776
41777         * doc/visibility.texi: Remove duplicate word: "pointer".
41778
41779 2006-08-26  Bruno Haible  <bruno@clisp.org>
41780
41781         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
41782         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
41783         (Makefile.am): Create inttypes.h from inttypes_.h.
41784         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
41785
41786         * modules/imaxabs: New file.
41787
41788         * modules/imaxdiv: New file.
41789
41790 2006-08-26  Bruno Haible  <bruno@clisp.org>
41791
41792         * m4/inttypes.m4: New file.
41793         * m4/_inttypes_h.m4: Remove file.
41794         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
41795         PRI_MACROS_BROKEN.
41796         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
41797
41798         * m4/imaxabs.m4: New file.
41799
41800         * m4/imaxdiv.m4: New file.
41801
41802 2006-08-26  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/inttypes_.h: New file.
41805         * lib/inttypes.h: Remove file.
41806         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
41807
41808         * lib/imaxabs.c: New file.
41809
41810         * lib/imaxdiv.c: New file.
41811
41812 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41813
41814         New config-h module, so that "make" output needn't be cluttered
41815         by -DHAVE_CONFIG_H.
41816         * MODULES.html.sh (Support for building libraries and executables):
41817         Add config-h.
41818         * modules/config-h: New file.
41819         * gnulib-tool (nl, sed_transform_lib_file): New vars.
41820         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
41821         the config-h module is used.
41822
41823         New configmake module, so that "make" output needn't be cluttered
41824         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
41825         * MODULES.html.sh (Support for building libraries and executables):
41826         Add configmake.
41827         * modules/configmake: New file.
41828
41829 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41830
41831         * m4/config-h.m4: New file.
41832
41833 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41834
41835         * config/srclist.txt: Add elisp-comp.
41836
41837 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41838
41839         * MODULES.html.sh (Support for building libraries and executables):
41840         Add elisp-comp.
41841         * build-aux/elisp-comp: New file.
41842         * modules/elisp-comp: New file.
41843
41844 2006-08-24  Bruno Haible  <bruno@clisp.org>
41845
41846         * gnulib-tool (func_create_testdir): Use non-default values of
41847         sourcebase and m4base.
41848
41849 2006-08-24  Bruno Haible  <bruno@clisp.org>
41850
41851         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
41852         HTML structure.
41853
41854 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
41855
41856         * modules/openat (Depends-on): Add lchown.
41857
41858 2006-08-23  Bruno Haible  <bruno@clisp.org>
41859
41860         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
41861         of gl_LOCK_EARLY instead of gl_LOCK.
41862
41863 2006-08-23  Bruno Haible  <bruno@clisp.org>
41864
41865         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
41866         on OSF/1 to no.
41867         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
41868
41869 2006-08-23  Bruno Haible  <bruno@clisp.org>
41870
41871         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
41872         as unusable.
41873
41874         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
41875         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
41876         (gl_LOCK): New macro.
41877
41878 2006-08-22  Simon Josefsson  <jas@extundo.com>
41879
41880         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
41881         to md5 module.
41882
41883 2006-08-22  Simon Josefsson  <jas@extundo.com>
41884
41885         * MODULES.html.sh: Add "Support for maintaining and release
41886         projects".
41887
41888         * build-aux/gnupload: New file, from coreutils.
41889
41890 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41891
41892         Avoid the need for AC_LIBSOURCES in m4 macros.
41893         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
41894         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
41895         * modules/check-version (EXTRA_DIST): Add check-version.h.
41896         * modules/crc (EXTRA_DIST): Add crc.h.
41897         * modules/des (EXTRA_DIST): Add des.h.
41898         * modules/gc (EXTRA_DIST): Add gc.h.
41899         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
41900         * modules/getline (EXTRA_DIST): Add getline.h.
41901         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
41902         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
41903         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
41904         * modules/md2 (EXTRA_DIST): Add md2.h.
41905         * modules/md4 (EXTRA_DIST): Add md4.h.
41906         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
41907         * modules/read-file (EXTRA_DIST): Add read-file.h.
41908         * modules/readline (EXTRA_DIST): Add readline.h.
41909         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
41910         rijndael-api-fst.h.
41911
41912 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41913
41914         * m4/rijndael.m4 (gl_ARCFOUR):
41915         * m4/arctwo.m4 (gl_ARCTWO):
41916         * m4/check-version.m4 (gl_CHECK_VERSION):
41917         * m4/crc.m4 (gl_CRC):
41918         * m4/des.m4 (gl_DES):
41919         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
41920         * m4/gc.m4 (gl_GC):
41921         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
41922         * m4/getline.m4 (gl_FUNC_GETLINE):
41923         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
41924         * m4/hmac-md5.m4 (gl_HMAC_MD5):
41925         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
41926         * m4/md2.m4 (gl_MD2):
41927         * m4/md4.m4 (gl_MD4):
41928         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
41929         * m4/read-file.m4 (gl_FUNC_READ_FILE):
41930         * m4/readline.m4 (gl_FUNC_READLINE):
41931         * m4/rijndael.m4 (gl_RIJNDAEL):
41932         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
41933         to get the necessary .h files and whatnot.
41934
41935 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
41936
41937         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
41938         gnulib rather than the other way around.
41939         * config/srclistvars.sh (COREUTILS): Remove.
41940
41941 2006-08-22  Jim Meyering  <jim@meyering.net>
41942
41943         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
41944
41945         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
41946
41947 2006-08-22  Eric Blake  <ebb9@byu.net>
41948
41949         * modules/regexprops-generic: New file.
41950         * MODULES.html.sh (Support for building documentation): List it.
41951
41952 2006-08-22  Eric Blake  <ebb9@byu.net>
41953
41954         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
41955         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41956         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
41957         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
41958
41959 2006-08-22  Bruno Haible  <bruno@clisp.org>
41960
41961         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
41962         and lib_LTLIBRARIES like the other lib_* variables.
41963
41964 2006-08-22  Bruno Haible  <bruno@clisp.org>
41965
41966         * build-aux/x-to-1.in: New file, from GNU gettext.
41967
41968 2006-08-22  Bruno Haible  <bruno@clisp.org>
41969
41970         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
41971         <utmpx.h> exists.
41972
41973 2006-08-22  Bruno Haible  <bruno@clisp.org>
41974
41975         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
41976         <utmpx.h> exists.
41977
41978 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
41979
41980         BeOS portability.
41981         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
41982         exist.
41983         Problem reported by Bruno Haible.
41984
41985 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
41986
41987         Avoid the need for AC_LIBSOURCES in m4 macros.
41988         * modules/acl (EXTRA_DIST): Add acl.h.
41989         * modules/argmatch (Files): Add m4/argmatch.m4.
41990         (configure.ac): Add gl_ARGMATCH.
41991         (EXTRA_DIST): Renamed from lib_SOURCES, for
41992         consistency with the other modules.  Remove argmatch.c.
41993         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
41994         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
41995         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
41996         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
41997         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
41998         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
41999         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42000         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42001         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42002         * modules/closeout (EXTRA_DIST): Add closeout.h.
42003         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42004         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42005         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42006         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42007         dirname.h; remove basename.c and stripslash.c.
42008         * modules/exclude (EXTRA_DIST): Add exclude.h.
42009         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42010         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42011         * modules/file-type (EXTRA_DIST): Add file-type.h.
42012         * modules/filemode (EXTRA_DIST): Add filemode.h.
42013         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42014         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42015         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42016         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42017         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42018         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42019         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42020         * modules/getdate (EXTRA_DIST): Add getdate.c.
42021         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42022         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42023         * modules/getpass (EXTRA_DIST): Add getpass.h.
42024         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42025         * modules/group-member (EXTRA_DIST): Add group-member.h.
42026         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42027         * modules/hash (EXTRA_DIST): Add hash.h.
42028         * modules/human (EXTRA_DIST): Add human.h.
42029         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42030         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42031         * modules/lchown (EXTRA_DIST): Add lchown.h.
42032         * modules/long-options (EXTRA_DIST): Add long-options.h.
42033         * modules/lstat (EXTRA_DIST): Add lstat.h.
42034         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42035         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42036         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42037         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42038         * modules/memxor (EXTRA_DIST): Add memxor.h.
42039         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42040         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42041         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42042         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42043         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42044         * modules/physmem (EXTRA_DIST): Add physmem.h.
42045         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42046         * modules/posixver (EXTRA_DIST): Add posixver.h.
42047         * modules/quote (EXTRA_DIST): Add quote.h.
42048         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42049         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42050         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42051         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42052         regex_internal.h regexec.c.
42053         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42054         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42055         * modules/same (EXTRA_DIST): Add same.h.
42056         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42057         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42058         * modules/savedir (EXTRA_DIST): Add savedir.h.
42059         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42060         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42061         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42062         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42063         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42064         * modules/strdup (EXTRA_DIST): Add strdup.h.
42065         * modules/strftime (EXTRA_DIST): Add strftime.h.
42066         * modules/strndup (EXTRA_DIST): Add strndup.h.
42067         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42068         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42069         * modules/time_r (EXTRA_DIST): Add time_r.h.
42070         * modules/timespec (EXTRA_DIST): Add timespec.h.
42071         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42072         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42073         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42074         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42075         * modules/userspec (EXTRA_DIST): Add userspec.h.
42076         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42077         * modules/utimens (EXTRA_DIST): Add utimens.h.
42078         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42079         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42080         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42081         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42082         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42083         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42084         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42085         * modules/yesno (EXTRA_DIST): Add yesno.h.
42086
42087 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42088
42089         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42090
42091         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42092         * m4/dev-ino.m4, same-inode.m4: Remove.
42093
42094         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42095         * m4/acl.m4 (AC_FUNC_ACL):
42096         * m4/backupfile.m4 (gl_BACKUPFILE):
42097         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42098         * m4/canon-host.m4 (gl_CANON_HOST):
42099         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42100         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42101         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42102         * m4/cloexec.m4 (gl_CLOEXEC):
42103         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42104         * m4/closeout.m4 (gl_CLOSEOUT):
42105         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42106         * m4/dirname.m4 (gl_DIRNAME):
42107         * m4/exclude.m4 (gl_EXCLUDE):
42108         * m4/exitfail.m4 (gl_EXITFAIL):
42109         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42110         * m4/file-type.m4 (gl_FILE_TYPE):
42111         * m4/filemode.m4 (gl_FILEMODE):
42112         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42113         * m4/fpending.m4 (gl_FUNC_FPENDING):
42114         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42115         * m4/fts.m4 (gl_FUNC_FTS):
42116         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42117         * m4/getdate.m4 (gl_GETDATE):
42118         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42119         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42120         * m4/getpass.m4 (gl_FUNC_GETPASS):
42121         * m4/gettime.m4 (gl_GETTIME):
42122         * m4/getugroups.m4 (gl_GETUGROUPS):
42123         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42124         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42125         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42126         * m4/hash.m4 (gl_HASH):
42127         * m4/idcache.m4 (gl_IDCACHE):
42128         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42129         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42130         * m4/long-options.m4 (gl_LONG_OPTIONS):
42131         * m4/lstat.m4 (gl_FUNC_LSTAT):
42132         * m4/md5.m4 (gl_MD5):
42133         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42134         * m4/memcoll.m4 (gl_MEMCOLL):
42135         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42136         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42137         * m4/memxor.m4 (gl_MEMXOR):
42138         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42139         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42140         * m4/modechange.m4 (gl_MODECHANGE):
42141         * m4/mountlist.m4 (gl_MOUNTLIST):
42142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42143         * m4/openat.m4 (gl_FUNC_OPENAT):
42144         * m4/pathmax.m4 (gl_PATHMAX):
42145         * m4/physmem.m4 (gl_PHYSMEM):
42146         * m4/posixtm.m4 (gl_POSIXTM):
42147         * m4/posixver.m4 (gl_POSIXVER):
42148         * m4/quote.m4 (gl_QUOTE):
42149         * m4/quotearg.m4 (gl_QUOTEARG):
42150         * m4/readtokens.m4 (gl_READTOKENS):
42151         * m4/readutmp.m4 (gl_READUTMP):
42152         * m4/regex.m4 (gl_REGEX):
42153         * m4/safe-read.m4 (gl_SAFE_READ):
42154         * m4/safe-write.m4 (gl_SAFE_WRITE):
42155         * m4/same.m4 (gl_SAME):
42156         * m4/save-cwd.m4 (gl_SAVE_CWD):
42157         * m4/savedir.m4 (gl_SAVEDIR):
42158         * m4/settime.m4 (gl_SETTIME):
42159         * m4/sha1.m4 (gl_SHA1):
42160         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42161         * m4/stat-macros.m4 (gl_STAT_MACROS):
42162         * m4/stat-time.m4 (gl_STAT_TIME):
42163         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42164         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42165         * m4/strdup.m4 (gl_FUNC_STRDUP):
42166         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42167         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42168         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42169         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42170         * m4/time_r.m4 (gl_TIME_R):
42171         * m4/timespec.m4 (gl_TIMESPEC):
42172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42173         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42174         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42175         * m4/userspec.m4 (gl_USERSPEC):
42176         * m4/utimecmp.m4 (gl_UTIMECMP):
42177         * m4/utimens.m4 (gl_UTIMENS):
42178         * m4/xalloc.m4 (gl_XALLOC):
42179         * m4/xgetcwd.m4 (gl_XGETCWD):
42180         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42181         * m4/xreadlink.m4 (gl_XREADLINK):
42182         * m4/xstrtod.m4 (gl_XSTRTOD):
42183         * m4/yesno.m4 (gl_YESNO):
42184         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42185         to get the necessary .h files and whatnot.
42186
42187 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42188             Bruno Haible  <bruno@clisp.org>
42189
42190         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42191         /bin/sh understanding of '!' conditional negation.
42192
42193 2006-08-21  Jim Meyering  <jim@meyering.net>
42194
42195         * modules/openat (Depends-on): Really alphabetize.
42196
42197         * modules/acl (Depends-on): Add error and quote.
42198
42199         * check-module (find_included_lib_files): Add at-func.c to the
42200         ok-to-include-more-than-once white list.
42201
42202         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42203
42204 2006-08-21  Bruno Haible  <bruno@clisp.org>
42205
42206         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42207         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42208         Reported by Martin Lambers <marlam@marlam.de>.
42209
42210 2006-08-21  Bruno Haible  <bruno@clisp.org>
42211
42212         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42213         specify an installation location, don't emit a noinst_LIBRARIES or
42214         noinst_LTLIBRARIES assignment.
42215
42216 2006-08-21  Bruno Haible  <bruno@clisp.org>
42217
42218         BeOS portability.
42219         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42220         BeOS has mbrtowc() but no <wctype.h>.
42221
42222 2006-08-21  Bruno Haible  <bruno@clisp.org>
42223
42224         BeOS portability.
42225         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42226         exist.
42227
42228 2006-08-21  Bruno Haible  <bruno@clisp.org>
42229
42230         BeOS portability.
42231         * lib/mbchar.h: Include <wctype.h> only if it exists.
42232
42233 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42234
42235         Remove files that are no longer needed by their respective modules.
42236         * m4/obstack.m4: Remove.
42237         * m4/strerror_r.m4: Remove.
42238         * m4/uint32_t.m4: Remove.
42239         * m4/uintptr_t.m4: Remove.
42240         * m4/ullong_max.m4: Remove.
42241         * m4/xstrtoimax.m4: Remove.
42242         * m4/xstrtoumax.m4: Remove.
42243
42244         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42245         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42246         dependencies now capture this.
42247
42248         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42249         Do not use AC_LIBSOURCES, since gnulib modules now do this.
42250         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42251         * m4/human.m4 (gl_HUMAN): Likewise.
42252         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42253         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42254
42255         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42256
42257         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42258         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42259         stdint.
42260         * m4/human.m4 (gl_HUMAN): Likewise.
42261         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42262         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42263         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42264         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42265         * m4/xstrtol (gl_XSTRTOL): Likewise.
42266
42267         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42268         AC_TYPE_LONG_LONG_INT.
42269         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42270         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42271         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42272         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42273
42274         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42275         on stdbool.
42276
42277         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42278         (gl_PREREQ_XSTRTOUL): Remove.
42279
42280         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42281
42282         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42283         mode.
42284
42285 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42286
42287         Add and change modules to make it easier for coreutils to use
42288         gnulib-tool.
42289         * modules/backupfile (Files): Remove m4/d-ino.m4.
42290         (Depends-on): Add d-ino.
42291         * modules/cycle-check (Depends-on): Add stdint.
42292         (lib_SOURCES): Add cycle-check.h.
42293         * modules/d-ino: New module.
42294         * modules/d-type: New module.
42295         * modules/error (Files): Remove m4/strerror_r.m4.
42296         * modules/filemode (Files): Add m4/st_dm_mode.m4.
42297         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42298         m4/inttypes_h.m4, m4/uintmax_t.m4.
42299         (Depends-on): Add stdint.
42300         (lib_SOURCES): Add fsusage.h.
42301         * modules/getcwd (Files): Remove d-ino.m4.
42302         (Depends-on): Add d-ino.
42303         * modules/getndelim2 (Depends-on): Add stdint.
42304         * modules/glob (Files): Remove m4/d-type.m4.
42305         (Depends-on): Add d-type.
42306         * modules/host-os: New module.
42307         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
42308         m4/inttypes_h.m4, m4/uintmax_t.m4.
42309         * Depends-on: Add stdint.
42310         (lib_SOURCES): Add human.h.
42311         * modules/inttostr (Files): Remove m4/intmax_t.m4,
42312         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42313         m4/uintmax_t.m4, m4/ulonglong.m4.
42314         (Depends-on): Add stdint.
42315         (EXTRA_DIST): Add inttostr.h.
42316         * modules/lchmod: New module.
42317         * modules/link-follow: New module.
42318         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42319         (Depends-on): Add lchmod.
42320         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42321         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42322         (Depends-on): Add stdint.
42323         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42324         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42325         (Depends-on): Add stdint.
42326         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42327         * modules/perl: New module.
42328         * modules/regex (Depends-on): Add stdint.
42329         * modules/rmdir-errno: New module.
42330         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42331         m4/intmax_t.m4.
42332         (Depends-on): Add stdint.
42333         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42334         m4/uintmax_t.m4.
42335         (Depends-on): Add stdint.
42336         * modules/unlink-busy: New module.
42337         * modules/utimecmp (Depends-on): Add stdint.
42338         * modules/uptime: New module.
42339         * modules/winsz-ioctl: New module.
42340         * modules/winsz-termios: New module.
42341         * modules/xnanosleep (Depends-on): Add nanosleep.
42342         * modules/ullong_max: Remove.
42343         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42344         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42345         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42346         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42347         (Depends-on): Add inttypes.
42348         (lib_SOURCES): Add xstrtol.h.
42349         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42350         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42351         * MODULES.html.sh: Move 'assert' into the assert section.
42352         Move 'dummy' into the linking section.
42353         Remove ullong_max.
42354         Add section for compatibility checks for POSIX:2001 functions,
42355         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42356         winsz-ioctl, and winsz-termios into it.
42357         Add lchmod.
42358         Add top-level Misc section and put host-os, perl, and uptime
42359         into it.
42360
42361 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42362
42363         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42364         now assume the stdint module.  Do not include inttypes.h.
42365         * lib/fsusage.h: Likewise.
42366         * lib/getndelim2.c: Likewise.
42367         * lib/human.h: Likewise.
42368         * lib/inttostr.h: Likewise.
42369         * lib/obstack.c: Likewise.
42370         * lib/regex_internal.h: Likewise.
42371         * lib/tempname.c: Likewise.
42372         * lib/utimecmp.c: Likewise.
42373         * lib/xstrtol.h: Likewise.
42374
42375         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42376
42377         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42378         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42379         * lib/xtime.h: Likewise.
42380
42381 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42382
42383         * modules/openat (Files): Add lib/fchmodat.c.
42384         Fixes problem reported by Jay Youngman.
42385
42386 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42387
42388         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
42389         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
42390
42391 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
42392             Bruno Haible  <bruno@clisp.org>
42393
42394         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42395         and is a script that invokes bison. Tighten the code. Add comments.
42396
42397 2006-08-18  Jim Meyering  <jim@meyering.net>
42398
42399         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42400         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42401         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
42402         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42403
42404 2006-08-18  Bruno Haible  <bruno@clisp.org>
42405
42406         * modules/bison-i18n: New file.
42407         * MODULES.html.sh (Internationalization functions): Add it.
42408
42409 2006-08-18  Bruno Haible  <bruno@clisp.org>
42410
42411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42412         sys/statvfs.h. When getmntinfo was found, check its declaration and
42413         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42414
42415 2006-08-18  Bruno Haible  <bruno@clisp.org>
42416
42417         * m4/bison-i18n.m4: New file, from bison.
42418
42419 2006-08-18  Bruno Haible  <bruno@clisp.org>
42420
42421         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42422         (ME_DUMMY): Treat "kernfs" as a dummy.
42423         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42424
42425 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42426
42427         Update from coreutils.
42428
42429         2006-08-15  Jim Meyering  <jim@meyering.net>
42430
42431         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42432
42433         2006-01-17  Jim Meyering  <jim@meyering.net>
42434
42435         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42436
42437         2006-01-11  Jim Meyering  <jim@meyering.net>
42438
42439         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42440         Check for the lchmod function.
42441
42442 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42443
42444         Update from coreutils.
42445
42446         * lib/__fpending.h: Add copyright notice.
42447         * lib/fprintftime.h: Likewise.
42448         * lib/savedir.c: Use (C) in copyright notice.
42449         * lib/savedir.h: Likewise.
42450
42451         2006-08-15  Jim Meyering  <jim@meyering.net>
42452
42453         * lib/at-func.c: New file, with the logic of all emulated at-functions.
42454         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42455         in support of the EXPECTED_ERRNO macro.
42456         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42457         definitions.  Instead, define the appropriate symbols and include
42458         "at-func.c".
42459         * lib/mkdirat.c (mkdirat): Likewise.
42460         * lib/fchmodat.c (fchmodat): Likewise.
42461         (ENOSYS): Remove definition.
42462         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42463         it.  Don't include "unistd--.h" -- it wasn't ever used.
42464
42465         2006-01-17  Jim Meyering  <jim@meyering.net>
42466
42467         Rewrite fts.c not to change the current working directory,
42468         by using openat, fstatat, fdopendir, etc..
42469
42470         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42471         (HAVE_OPENAT_SUPPORT): Define.
42472         [_LIBC] (fchdir): Don't undef or define; no longer used.
42473         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42474         Now, this `function' always succeeds, and consumes its file descriptor
42475         parameter -- so callers must not close such FDs.  Update callers.
42476         (diropen_fd, opendirat, cwd_advance_fd): New functions.
42477         (diropen): Add parameter, SP.  Adjust all callers.
42478         Implement using diropen_fd, rather than open.
42479         (fts_open): Initialize new member, fts_cwd_fd.
42480         Remove fts_rft-setting code.
42481         (fts_close): Close fts_cwd_fd, if necessary.
42482         (__opendir2): Define in terms of opendir or opendirat,
42483         depending on whether the FST_NOCHDIR flag is set.
42484         (fts_build): Since fts_safe_changedir consumes its FD, and since
42485         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42486         and close the dup'd file descriptor upon failure.
42487         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42488         (fts_safe_changedir): Tweak semantics to reflect that this function
42489         now calls cwd_advance_fd and hence consumes its FD argument.
42490         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42491         [struct FTS] (fts_rft): Remove now-unused member.
42492         [struct FTS] (fts_cycle.state): Improve comment.
42493
42494         * lib/openat.c (openat_needs_fchdir): New function.
42495         * lib/openat.h (openat_needs_fchdir): Declare it.
42496
42497 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42498
42499         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42500         Problem and fix reported by Pádraig Brady in
42501         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42502
42503 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42504
42505         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42506
42507 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42508
42509         * lib/memcoll.c (memcoll): Optimize for the common case where the
42510         arguments are bytewise equal.
42511
42512 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42513
42514         * doc/regexprops-generic.texi: Add a copyright notice.
42515
42516 2006-08-15  Bruno Haible  <bruno@clisp.org>
42517
42518         * modules/tmpdir (License): Change to LGPL.
42519
42520 2006-08-15  Bruno Haible  <bruno@clisp.org>
42521
42522         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
42523         module.
42524
42525 2006-08-14  Simon Josefsson  <jas@extundo.com>
42526
42527         * config/srclist.txt: Add gnupload.
42528
42529 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42530
42531         Change copyright notice from LGPL 2 to GPL 2, since that's the
42532         standard form used in the gnulib repository.
42533         * tests/test-lock.c: Likewise.
42534         * tests/test-stdint.c: Likewise.
42535         * tests/test-tls.c: Likewise.
42536
42537         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
42538         prelude-manager.  User shorter URLs for GNU projects, without '?'.
42539         Add copyright notice.
42540
42541         * check-module: Add copyright notice.  Output a copyright
42542         notice if "--version" is specified.
42543         * modules/COPYING: New file.
42544         * tests/test-getaddrinfo.c: Add copyright notice.
42545         * tests/test-verify.c: Likewise.
42546
42547 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42548
42549         Change copyright notice from LGPL 2 to GPL 2, since that's the
42550         standard form used in the gnulib repository.
42551         * lib/lock.c: LGPL -> GPL.
42552         * lib/lock.h: Likewise.
42553         * lib/strnlen1.c: Likewise.
42554         * lib/strnlen1.h: Likewise.
42555         * lib/tls.c: Likewise.
42556         * lib/tls.h: Likewise.
42557         * lib/tmpdir.c: Likewise.
42558
42559         * lib/TODO: Remove; this belongs only in coreutils.
42560
42561 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42562
42563         Add copyright notices to long-enough files that lack them, since
42564         otherwise the files aren't clearly free.  Use the same notice that
42565         getdate.texi already uses.
42566         * doc/alloca-opt.texi: Add copyright notice.
42567         * doc/alloca.texi: Likewise.
42568         * doc/ctime.texi: Likewise.
42569         * doc/functions.texi: Likewise.
42570         * doc/gcd.texi: Likewise.
42571         * doc/gnulib-tool.texi: Likewise.
42572         * doc/inet_ntoa.texi: Likewise.
42573         * doc/visibility.texi: Likewise.
42574
42575         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
42576         * doc/quote.texi: Add copyright notice.
42577
42578         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
42579         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
42580         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
42581         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
42582         is now obsolete, and give a pointer to the Sun list.
42583         Add copyright notice.
42584
42585 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
42586
42587         * config/srclistvars.sh: Add copyright notice.
42588
42589 2006-08-14  Eric Blake  <ebb9@byu.net>
42590
42591         Import the following change from libc:
42592
42593         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
42594
42595         Upstream bug 2997.
42596         * lib/misc/error.c: Add space between program name and message if file
42597         name is missing.
42598
42599 2006-08-12  Karl Berry  <karl@gnu.org>
42600
42601         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
42602         remove, these originate in gnulib now.
42603
42604 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42605
42606         * doc/Makefile (standards.info standards.html standards.dvi):
42607         Also depend on make-stds.texi.
42608
42609 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
42610
42611         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
42612         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
42613
42614         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
42615         in wchar_t.  Problem reported by Eric Blake.
42616
42617         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
42618         LEN is smaller than SIZE.  Suggested by Bruno Haible.
42619         Also, help the compiler to keep LEN in a register.
42620
42621 2006-08-11  Eric Blake  <ebb9@byu.net>
42622
42623         * users.txt: Sort.  Add tar.
42624
42625 2006-08-11  Bruno Haible  <bruno@clisp.org>
42626
42627         * users.txt: New file.
42628
42629 2006-08-11  Bruno Haible  <bruno@clisp.org>
42630
42631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
42632         before <wchar.h>. Needed for OSF/1 and BSD/OS.
42633
42634 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42635
42636         * modules/snprintf (Depends-on): Remove minmax.
42637         (Maintainer): Add self and Bruno.
42638
42639 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
42640
42641         * lib/.cppi-disable: Add snprintf.h, socket_.h.
42642         * lib/snprintf.c: Include <errno.h> and <limits.h>.
42643         (EOVERFLOW): Define if the system does not.
42644         Do not include "minmax.h"; it wasn't used.
42645         (snprintf): Don't assume size_t promotes to an unsigned type.
42646         Fix bug when generated string was too long for the buffer: the
42647         buffer's contents are supposed to be the initial prefix of the
42648         output.  Don't assume vasnprintf returns EOVERFLOW if the size
42649         exceeds INT_MAX; do the check ourselves.
42650
42651         Import the following changes from libc:
42652
42653         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
42654
42655         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
42656         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
42657         set wc to the byte which couldn't be converted.
42658         (re_string_reconstruct): Don't clear valid_raw_len before calling
42659         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
42660         tip_context using re_string_context_at.
42661
42662         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
42663
42664         * lib/posix/regex.h: g++ still cannot handled [restrict].
42665
42666         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
42667
42668         * lib/posix/regex.h: Remove special handling for VMS.
42669
42670 2006-08-10  Jim Meyering  <jim@meyering.net>
42671
42672         * modules/same-inode: New module.
42673         * modules/dev-ino: New module.
42674         * modules/cycle-check: Depend on these modules, rather than simply
42675         including their .h files.
42676         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
42677         required via m4/cycle-check.m4.
42678         * modules/same: Depend on new same-inode module, rather than
42679         including same-inode.h.
42680         * modules/chdir-safer: New file.
42681
42682         * modules/chown (Depends-on): Add stat-macros.
42683
42684 2006-08-10  Jim Meyering  <jim@meyering.net>
42685
42686         * m4/cycle-check.m4: New file.
42687         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
42688         * m4/dev-ino.m4, m4/same-inode.m4: New files.
42689
42690 2006-08-10  Eric Blake  <ebb9@byu.net>
42691
42692         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
42693         in from original proposal.
42694
42695 2006-08-10  Eric Blake  <ebb9@byu.net>
42696         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42697
42698         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
42699         namespace.
42700
42701 2006-08-10  Bruno Haible  <bruno@clisp.org>
42702
42703         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
42704         as well.
42705
42706 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42707
42708         Sync from coreutils.
42709
42710         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
42711
42712         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
42713         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
42714
42715 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42716
42717         * modules/restrict: Remove; no longer needed now that we assume
42718         Autoconf 2.59 or later.
42719         * MODULES.html.sh: Remove 'restrict'.
42720         * modules/argp (Depends-on): Remove 'restrict'.
42721         * modules/base64 (Depends-on): Likewise.
42722         * modules/gc (Depends-on): Likewise.
42723         * modules/getaddrinfo (Depends-on): Likewise.
42724         * modules/glob (Depends-on): Likewise.
42725         * modules/inet_ntop (Depends-on): Likewise.
42726         * modules/inet_pton (Depends-on): Likewise.
42727         * modules/memxor (Depends-on): Likewise.
42728         * modules/regex (Depends-on): Likewise.
42729         * modules/strtok_r (Depends-on): Likewise.
42730         * modules/time_r (Depends-on): Likewise.
42731
42732 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
42733
42734         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
42735         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
42736         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42737         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
42738         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
42739         * m4/memxor.m4 (gl_MEMXOR): Likewise.
42740         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
42741         gl_C_RESTRICT replaced by AC_C_RESTRICT.
42742
42743         Merge from coreutils.
42744         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
42745         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
42746         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42747         * m4/time_r.m4 (gl_TIME_R): Likewise.
42748
42749 2006-08-09  Karl Berry  <karl@gnu.org>
42750
42751         * config/srclist.txt: no more gettext-tools, per Bruno.
42752
42753 2006-08-08  Eric Blake  <ebb9@byu.net>
42754
42755         * modules/verror: New module.
42756         * MODULES.html.sh: Document it.
42757
42758 2006-08-08  Eric Blake  <ebb9@byu.net>
42759
42760         * lib/verror.h, lib/verror.c: New files.
42761
42762 2006-08-08  Eric Blake  <ebb9@byu.net>
42763
42764         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
42765         verror_at_line output complies with GNU Coding Standards even when
42766         file is NULL.
42767
42768 2006-08-07  Bruno Haible  <bruno@clisp.org>
42769
42770         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
42771         versions of AIX.
42772         Reported by Ralf Wildenhues.
42773
42774 2006-08-07  Bruno Haible  <bruno@clisp.org>
42775
42776         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
42777         in an AC_DEFUN. Needed so that the autoconf snippets can use
42778         AC_REQUIRE.
42779
42780 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42781
42782         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42783         Initialize pkgdata_DATA.
42784         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
42785         overriding it.
42786
42787 2006-08-06  Eric Blake  <ebb9@byu.net>
42788
42789         * lib/error.h: Fold in some upstream changes from glibc.
42790         * lib/error.c: Likewise.
42791
42792 2006-08-04  Bruno Haible  <bruno@clisp.org>
42793
42794         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42795         Make the mostlyclean-local rule depend on mostlyclean-generic.
42796         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
42797
42798 2006-07-31  Bruno Haible  <bruno@clisp.org>
42799
42800         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
42801         <stdlib.h>, <string.h>.
42802
42803 2006-07-30  Bruno Haible  <bruno@clisp.org>
42804
42805         * modules/readlink (License): Change to LGPL.
42806
42807 2006-07-30  Bruno Haible  <bruno@clisp.org>
42808
42809         * modules/javaversion (Makefile.am): Distribute javaversion.java and
42810         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
42811         set PKGDATADIR to point to it.
42812
42813 2006-07-30  Bruno Haible  <bruno@clisp.org>
42814
42815         * modules/csharpexec (configure.ac): Comment out macro invocation.
42816         * modules/javaexec (configure.ac): Likewise.
42817         * modules/javacomp-script (configure.ac): Likewise.
42818
42819         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
42820
42821 2006-07-30  Bruno Haible  <bruno@clisp.org>
42822
42823         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
42824         linked-list.
42825
42826 2006-07-30  Bruno Haible  <bruno@clisp.org>
42827
42828         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
42829
42830 2006-07-30  Bruno Haible  <bruno@clisp.org>
42831
42832         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42833         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
42834         get removed.
42835
42836 2006-07-29  Bruno Haible  <bruno@clisp.org>
42837
42838         Make it possible for gnulib-tool to work with locally modified or
42839         augmented gnulib repositories.
42840         * gnulib-tool (func_usage): Document --local-dir option.
42841         (local_gnulib_dir): New variable.
42842         Handle --local-dir option.
42843         (func_lookup_file): New function.
42844         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
42845         (func_get_description, func_get_filelist, func_get_description,
42846         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
42847         func_get_automake_snippet, func_get_include_directive,
42848         func_get_license, func_get_maintainer): Use func_lookup_file.
42849         (func_import, func_create_testdir): Use func_lookup_file.
42850
42851 2006-07-29  Bruno Haible  <bruno@clisp.org>
42852
42853         * modules/setenv (Depends-on): Add unistd.
42854
42855 2006-07-29  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
42858
42859 2006-07-29  Bruno Haible  <bruno@clisp.org>
42860
42861         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
42862
42863 2006-07-29  Bruno Haible  <bruno@clisp.org>
42864
42865         * gnulib-tool (import, update): If there is no Makefile.am, look at
42866         aclocal.m4, instead of bailing out.
42867
42868 2006-07-29  Bruno Haible  <bruno@clisp.org>
42869
42870         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
42871         Categorize the options by when they are useful.
42872
42873 2006-07-29  Bruno Haible  <bruno@clisp.org>
42874
42875         * gnulib-tool (func_usage): Document option --no-libtool.
42876         Handle option --no-libtool.
42877         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
42878         for changed semantics of $libtool variable.
42879         (func_import): Likewise. If libtool is not used, show this through
42880         an option --no-libtool.
42881         (func_create_testdir): Update.
42882
42883 2006-07-29  Bruno Haible  <bruno@clisp.org>
42884
42885         * gnulib-tool (func_import): Extend error message about missing
42886         --doc-base.
42887
42888 2006-07-29  Bruno Haible  <bruno@clisp.org>
42889
42890         * gnulib-tool (func_import): Don't create the $docbase directory if
42891         there is no file to store there.
42892
42893 2006-07-29  Bruno Haible  <bruno@clisp.org>
42894
42895         * gnulib-tool (autoconf_minversion): If a --dir option is given and
42896         relevant, look for configure.ac there, not in the current directory.
42897         Also use a simple search for AC_PREREQ, not "autoconf --trace".
42898
42899 2006-07-29  Bruno Haible  <bruno@clisp.org>
42900
42901         * gnulib-tool (SORT): New variable.
42902         (func_usage): Undocument --assume-autoconf option.
42903         Remove --assume-autoconf option handling.
42904         (autoconf_minversion): Determine from the contents of configure.ac.
42905         (func_import): Remove autoconf_minversion handling.
42906         Suggested by Eric Blake.
42907
42908 2006-07-29  Bruno Haible  <bruno@clisp.org>
42909
42910         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
42911
42912 2006-07-29  Bruno Haible  <bruno@clisp.org>
42913
42914         * config/srclist.txt (*setenv.[ch]): Remove rules.
42915
42916 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42917
42918         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
42919
42920 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42921
42922         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
42923         arpa/inet.h.
42924
42925 2006-07-28  Simon Josefsson  <jas@extundo.com>
42926
42927         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
42928         * modules/inet_pton (Depends-on): Likewise.
42929
42930 2006-07-28  Simon Josefsson  <jas@extundo.com>
42931
42932         * m4/netinet_in_h.m4: New file.
42933
42934 2006-07-28  Simon Josefsson  <jas@extundo.com>
42935
42936         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
42937         #include's.
42938
42939 2006-07-28  Simon Josefsson  <jas@extundo.com>
42940
42941         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
42942         #include's.
42943
42944 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
42945
42946         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
42947         setgid on directories only if they set these bits.
42948         * lib/modechange.h: Remove obsolete comment about masks.
42949
42950 2006-07-28  Eric Blake  <ebb9@byu.net>
42951
42952         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
42953         macro expansion.
42954
42955 2006-07-28  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
42958
42959 2006-07-28  Bruno Haible  <bruno@clisp.org>
42960
42961         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
42962
42963 2006-07-28  Bruno Haible  <bruno@clisp.org>
42964
42965         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42966         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42967         Define fallbacks.
42968         Avoids link error on FreeBSD 4.x.
42969         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42970
42971         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
42972         encoding.
42973         * lib/mbswidth.c (iswcntrl): Likewise.
42974
42975 2006-07-27  Bruno Haible  <bruno@clisp.org>
42976
42977         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
42978         test.
42979
42980 2006-07-27  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
42983         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
42984         defined.
42985
42986 2006-07-26  Eric Blake  <ebb9@byu.net>
42987
42988         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
42989
42990 2006-07-26  Eric Blake  <ebb9@byu.net>
42991
42992         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
42993         like mingw that lack mkstemp.
42994         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
42995         avoid compilation warning on mingw.
42996
42997 2006-07-26  Bruno Haible  <bruno@clisp.org>
42998
42999         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43000         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43001         INT_FAST*_MIN, INTPTR_MIN.
43002
43003 2006-07-25  Bruno Haible  <bruno@clisp.org>
43004
43005         * modules/version-etc (Depends-on): Add stdarg.
43006
43007 2006-07-25  Bruno Haible  <bruno@clisp.org>
43008
43009         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43010         complex commands.
43011
43012 2006-07-25  Bruno Haible  <bruno@clisp.org>
43013
43014         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43015         defined in <stdarg.h> or config.h.
43016
43017 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43018
43019         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43020         (gl_STDIO_SAFER): Remove.
43021
43022 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43023
43024         * MODULES.html.sh (File stream based Input/Output):
43025         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43026         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43027         * modules/fopen-safer, modules/tmpfile-safer: New files.
43028         * modules/stdio-safer: Remove.
43029
43030 2006-07-24  Bruno Haible  <bruno@clisp.org>
43031
43032         * modules/tmpdir: New file.
43033         * MODULES.html.sh (File system functions): Add it.
43034
43035 2006-07-24  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43038         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43039
43040 2006-07-24  Bruno Haible  <bruno@clisp.org>
43041
43042         * modules/clean-temp: New file.
43043
43044 2006-07-24  Bruno Haible  <bruno@clisp.org>
43045
43046         * m4/tmpdir.m4: New file, from GNU gettext.
43047
43048 2006-07-24  Bruno Haible  <bruno@clisp.org>
43049
43050         * lib/tmpdir.h: New file, from GNU gettext.
43051         * lib/tmpdir.c: New file, from GNU gettext.
43052
43053 2006-07-24  Bruno Haible  <bruno@clisp.org>
43054
43055         * lib/clean-temp.h: New file, from GNU gettext.
43056         * lib/clean-temp.c: New file, from GNU gettext.
43057
43058 2006-07-23  Eric Blake  <ebb9@byu.net>
43059
43060         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43061         (Depends-on): Add binary-io.
43062
43063 2006-07-23  Eric Blake  <ebb9@byu.net>
43064
43065         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43066
43067 2006-07-23  Eric Blake  <ebb9@byu.net>
43068
43069         * lib/tmpfile-safer.c: New file.
43070         * lib/stdio-safer.h (fopen_safer): Add prototype.
43071         * lib/stdio--.h (tmpfile): Make safer.
43072
43073 2006-07-23  Bruno Haible  <bruno@clisp.org>
43074
43075         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43076         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43077         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43078         gl_linked_remove_at): Use it.
43079
43080 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43081         and Simon Josefsson <jas@extundo.com>
43082
43083         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43084
43085         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43086
43087 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43088
43089         * modules/close-stream: New file.
43090         * modules/closeout (Description): Make it clear that it exits
43091         with a diagnostic on error.
43092         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43093         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43094
43095 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43096
43097         * m4/close-stream.m4: New file.
43098
43099 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43100
43101         * lib/close-stream.c, lib/close-stream.h: New files.
43102
43103 2006-07-22  Bruno Haible  <bruno@clisp.org>
43104
43105         Merge from GNU gettext 0.15.
43106
43107         2006-05-01  Bruno Haible  <bruno@clisp.org>
43108
43109                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43110
43111         2006-07-22  Bruno Haible  <bruno@clisp.org>
43112
43113                 * modules/javaversion: New file.
43114                 * MODULES.html.sh (Java): Add javaversion.
43115
43116         2006-03-12  Bruno Haible  <bruno@clisp.org>
43117
43118                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43119
43120         2005-12-04  Bruno Haible  <bruno@clisp.org>
43121
43122                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43123                 (untested).
43124
43125         2006-06-21  Bruno Haible  <bruno@clisp.org>
43126
43127                 Avoid warnings from recent versions of mcs.
43128                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43129                 -o, -L, -r any more. Use options documented since mcs-1.0
43130                 instead. Similarly for -g.
43131
43132         2005-12-04  Bruno Haible  <bruno@clisp.org>
43133
43134                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43135                 .resources, not .resource.
43136
43137         2005-07-09  Bruno Haible  <bruno@clisp.org>
43138
43139                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43140                 add a .dll suffix.
43141                 Reported by Mark Junker <mjscod@gmx.de>.
43142
43143         2006-07-22  Bruno Haible  <bruno@clisp.org>
43144
43145                 * modules/gettext: Upgrade to gettext-0.15.
43146                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43147                 m4/visibility.m4.
43148                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43149
43150 2006-07-22  Bruno Haible  <bruno@clisp.org>
43151
43152         Merge from GNU gettext 0.15.
43153
43154         2006-03-25  Bruno Haible  <bruno@clisp.org>
43155
43156                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43157
43158         2006-07-21  Bruno Haible  <bruno@clisp.org>
43159
43160                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43161                 "1.1".
43162
43163         2006-05-09  Bruno Haible  <bruno@clisp.org>
43164
43165                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43166                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43167                 for the conftestver execution.
43168
43169         2006-05-01  Bruno Haible  <bruno@clisp.org>
43170
43171                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43172                 optional target-version argument. Verify that the compiler
43173                 groks source of the specified source-version, or add -source
43174                 option as necessary. Verify that the compiler produces
43175                 bytecode in the specified target-version, or add -target and
43176                 -source options as necessary. Make the result of the test
43177                 available as variable CONF_JAVAC. Also log error output in
43178                 config.log.
43179
43180         2006-03-11  Bruno Haible  <bruno@clisp.org>
43181
43182                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43183
43184         2006-05-09  Bruno Haible  <bruno@clisp.org>
43185
43186                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43187                 CLASSPATH_SEPARATOR to a semicolon.
43188
43189         2006-03-12  Bruno Haible  <bruno@clisp.org>
43190
43191                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43192                 available as variable CONF_JAVA, for subsequent autoconf
43193                 tests. Also log error output in config.log.
43194
43195         2006-07-19  Bruno Haible  <bruno@clisp.org>
43196
43197                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43198                 that getline works on glibc2 systems. Needed to avoid trouble
43199                 in relocatable.c.
43200                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43201
43202         2005-12-04  Bruno Haible  <bruno@clisp.org>
43203
43204                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43205                 launcher (untested).
43206
43207         2005-12-04  Bruno Haible  <bruno@clisp.org>
43208
43209                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43210
43211         2006-07-22  Bruno Haible  <bruno@clisp.org>
43212
43213                 * gettext.m4: Update from GNU gettext-0.15.
43214                 * nls.m4: Likewise.
43215                 * po.m4: Likewise.
43216                 * inttypes-pri.m4: Likewise.
43217                 * inttypes-h.m4: Renamed from inttypes.m4.
43218                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43219
43220 2006-07-22  Bruno Haible  <bruno@clisp.org>
43221
43222         Merge from GNU gettext 0.15.
43223
43224         2005-07-05  Bruno Haible  <bruno@clisp.org>
43225
43226                 * printf-args.c (printf_fetchargs): Work around broken
43227                 definition of wint_t on mingw.
43228
43229         2005-02-12  Bruno Haible  <bruno@clisp.org>
43230
43231                 * xallocsa.h: Add extern "C" for C++.
43232
43233         2006-05-17  Bruno Haible  <bruno@clisp.org>
43234
43235                 Cygwin portability.
43236                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43237
43238         2006-04-30  Bruno Haible  <bruno@clisp.org>
43239
43240                 * progreloc.c: Include <mach-o/dyld.h> if available.
43241                 (find_executable): Use _NSGetExecutablePath when possible.
43242
43243         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
43244
43245                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43246                 function.
43247
43248         2005-12-29  Bruno Haible  <bruno@clisp.org>
43249
43250                 * progreloc.c (set_program_name_and_installdir): Fix
43251                 compilation error.
43252
43253         2005-12-04  Bruno Haible  <bruno@clisp.org>
43254
43255                 Cygwin portability.
43256                 * progreloc.c: Include <windows.h> also on Cygwin.
43257                 (find_executable): Add support for Cygwin.
43258                 (set_program_name_and_installdir): Handle also platforms with
43259                 nonempty EXEEXT.
43260
43261         2006-07-11  Bruno Haible  <bruno@clisp.org>
43262
43263                 * javacomp.c: Fix a comment.
43264                 Reported by Jim Meyering.
43265
43266         2006-04-30  Bruno Haible  <bruno@clisp.org>
43267
43268                 * javacomp.h (compile_java_class): Add source_version,
43269                 target_version arguments.
43270                 * javacomp.c: Rewritten to choose only a compiler that
43271                 respects the specified source_version and target_version.
43272
43273         2006-06-27  Bruno Haible  <bruno@clisp.org>
43274
43275                 Assume correct S_ISDIR macro.
43276                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43277
43278         2006-07-22  Bruno Haible  <bruno@clisp.org>
43279
43280                 * javaversion.h: New file, from GNU gettext.
43281                 * javaversion.c: New file, from GNU gettext.
43282                 * javaversion.java: New file, from GNU gettext.
43283                 * javaversion.class: New file, from GNU gettext.
43284
43285         2006-05-17  Bruno Haible  <bruno@clisp.org>
43286
43287                 Cygwin portability.
43288                 * javaexec.c (execute_java_class): Test for jview program
43289                 also on Cygwin.
43290
43291         2006-04-09  Bruno Haible  <bruno@clisp.org>
43292
43293                 * fatal-signal.c: Don't include string.h.
43294                 (at_fatal_signal): Use a copying loop instead of memcpy.
43295
43296         2005-12-04  Bruno Haible  <bruno@clisp.org>
43297
43298                 * csharpexec.c: Add support for 'clix' launcher (untested).
43299                 (execute_csharp_using_sscli): New function.
43300                 (execute_csharp_program): Call it.
43301
43302         2006-06-21  Bruno Haible  <bruno@clisp.org>
43303
43304                 Avoid warnings from recent versions of mcs.
43305                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43306                 -o, -L, -r any more. Use options documented since mcs-1.0
43307                 instead. Similarly for -g.
43308
43309         2005-07-09  Bruno Haible  <bruno@clisp.org>
43310
43311                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43312                 add a .dll suffix.
43313                 Reported by Mark Junker <mjscod@gmx.de>.
43314
43315         2006-06-17  Bruno Haible  <bruno@clisp.org>
43316
43317                 * config.charset: Update for NetBSD 3.0.
43318
43319         2006-05-17  Bruno Haible  <bruno@clisp.org>
43320
43321                 Cygwin portability.
43322                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43323
43324         2006-05-16  Bruno Haible  <bruno@clisp.org>
43325
43326                 * localcharset.c [CYGWIN]: Include <windows.h>.
43327                 (get_charset_aliases): For Cygwin, return the same CPxxx
43328                 aliases list as under WIN32.
43329                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43330                 the environment variables. Fall back to GetACP().
43331
43332         2006-04-05  Bruno Haible  <bruno@clisp.org>
43333
43334                 * config.charset: Update Juan Manuel Guerrero's address.
43335
43336         2005-02-12  Bruno Haible  <bruno@clisp.org>
43337
43338                 * allocsa.h: Add extern "C" for C++.
43339
43340         2005-02-10  Bruno Haible  <bruno@clisp.org>
43341
43342                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43343                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43344
43345         2006-07-22  Bruno Haible  <bruno@clisp.org>
43346
43347                 * gettext.h: Update to GNU gettext-0.15.
43348
43349 2006-07-22  Bruno Haible  <bruno@clisp.org>
43350
43351         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43352         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43353         lib-prefix.m4, longdouble.m4, ssize_t.m4.
43354
43355 2006-07-21  Eric Blake  <ebb9@byu.net>
43356
43357         * modules/stdlib-safer: New file.
43358         * MODULES.html.sh (File stream based Input/Output): Add
43359         stdlib-safer.
43360
43361 2006-07-21  Eric Blake  <ebb9@byu.net>
43362
43363         * lib/stdlib-safer.h: New file from coreutils, required by
43364         stdlib--.h.
43365
43366 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
43367
43368         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43369
43370 2006-07-20  Bruno Haible  <bruno@clisp.org>
43371
43372         * gnulib-tool: Recognize new option --assume-autoconf.
43373         (autoconf_minversion): New variable.
43374         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43375
43376 2006-07-20  Bruno Haible  <bruno@clisp.org>
43377
43378         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43379
43380 2006-07-19  Derek R. Price  <derek@ximbiot.com>
43381
43382         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43383         Reindent and repaginate.
43384
43385 2006-07-19  Derek Price  <derek@ximbiot.com>
43386
43387         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
43388         Correct grammar.
43389
43390 2006-07-17  Bruno Haible  <bruno@clisp.org>
43391
43392         * modules/list: New file.
43393         * modules/array-list: New file.
43394         * modules/carray-list, modules/carray-list-tests: New files.
43395         * modules/linked-list, modules/linked-list-tests: New files.
43396         * modules/avltree-list, modules/avltree-list-tests: New files.
43397         * modules/rbtree-list, modules/rbtree-list-tests: New files.
43398         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43399         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43400         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43401         * modules/oset: New file.
43402         * modules/array-oset: New file.
43403         * modules/avltree-oset, modules/avltree-oset-tests: New files.
43404         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43405         * tests/test-carray_list.c: New file.
43406         * tests/test-linked_list.c: New file.
43407         * tests/test-avltree_list.c: New file.
43408         * tests/test-rbtree_list.c: New file.
43409         * tests/test-linkedhash_list.c: New file.
43410         * tests/test-avltreehash_list.c: New file.
43411         * tests/test-rbtreehash_list.c: New file.
43412         * tests/test-avltree_oset.c: New file.
43413         * tests/test-rbtree_oset.c: New file.
43414         * MODULES.html.sh (Container data structures): New section.
43415
43416 2006-07-17  Bruno Haible  <bruno@clisp.org>
43417
43418         * m4/gl_list.m4: New file.
43419
43420 2006-07-17  Bruno Haible  <bruno@clisp.org>
43421
43422         * lib/gl_list.h: New file.
43423         * lib/gl_list.c: New file.
43424         * lib/gl_array_list.h: New file.
43425         * lib/gl_array_list.c: New file.
43426         * lib/gl_carray_list.h: New file.
43427         * lib/gl_carray_list.c: New file.
43428         * lib/gl_linked_list.h: New file.
43429         * lib/gl_linked_list.c: New file.
43430         * lib/gl_anylinked_list1.h: New file.
43431         * lib/gl_anylinked_list2.h: New file.
43432         * lib/gl_avltree_list.h: New file.
43433         * lib/gl_avltree_list.c: New file.
43434         * lib/gl_anyavltree_list1.h: New file.
43435         * lib/gl_anyavltree_list2.h: New file.
43436         * lib/gl_rbtree_list.h: New file.
43437         * lib/gl_rbtree_list.c: New file.
43438         * lib/gl_anyrbtree_list1.h: New file.
43439         * lib/gl_anyrbtree_list2.h: New file.
43440         * lib/gl_anytree_list1.h: New file.
43441         * lib/gl_anytree_list2.h: New file.
43442         * lib/gl_linkedhash_list.h: New file.
43443         * lib/gl_linkedhash_list.c: New file.
43444         * lib/gl_anyhash_list1.h: New file.
43445         * lib/gl_anyhash_list2.h: New file.
43446         * lib/gl_avltreehash_list.h: New file.
43447         * lib/gl_avltreehash_list.c: New file.
43448         * lib/gl_rbtreehash_list.h: New file.
43449         * lib/gl_rbtreehash_list.c: New file.
43450         * lib/gl_anytreehash_list1.h: New file.
43451         * lib/gl_anytreehash_list2.h: New file.
43452
43453         * lib/gl_oset.h: New file.
43454         * lib/gl_oset.c: New file.
43455         * lib/gl_array_oset.h: New file.
43456         * lib/gl_array_oset.c: New file.
43457         * lib/gl_avltree_oset.h: New file.
43458         * lib/gl_avltree_oset.c: New file.
43459         * lib/gl_rbtree_oset.h: New file.
43460         * lib/gl_rbtree_oset.c: New file.
43461         * lib/gl_anytree_oset.h: New file.
43462
43463 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43464
43465         * m4/mkancesdirs.m4: New file.
43466         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43467         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43468         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43469         it.
43470
43471 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43472
43473         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43474         * lib/mkancesdirs.h: New files.
43475         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43476         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43477         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
43478         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43479         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
43480         callers changed.  Revamp internals significantly, by not
43481         attempting to create directories that are temporarily more
43482         permissive than the final results.  Do not attempt to use
43483         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43484         This removes some race conditions, fixes some bugs, and simplifies
43485         things.  Use new dirchownmod function to do owner and mode changes.
43486         * lib/mkdir-p.h: Likewise.
43487         * lib/modechange.c (octal_to_mode): New function.
43488         (struct mode_change): New member mentioned.
43489         (make_node_op_equals): New arg mentioned.  All callers changed.
43490         (mode_compile): Keep track of which mode bits the user has explicitly
43491         mentioned.
43492         (mode_adjust): New arg DIR, so that we implement the X op correctly.
43493         New arg PMODE_BITS, to keep track of which mode bits the user
43494         mentioned; it treats S_ISUID and S_ISGID speciall.
43495         All callers changed.
43496         * lib/modechange.h: Likewise.
43497
43498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
43499
43500         * MODULES.html.sh: Add mkancestors.
43501         * modules/mkancesdirs: New module.
43502         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43503         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43504         The chdir-safer and afs files are now orphans; I'll remove them
43505         unless someone speaks up.
43506         Add lib/dirchownmod.c, lib/dirchownmod.h.
43507         (Depends-on): Remove alloca, chown, save-cwd, dirname.
43508         Add lchown, mkancesdirs.
43509         (Maintainer): Add self.
43510
43511 2006-07-15  Karl Berry  <karl@gnu.org>
43512
43513         * gnulib-tool: help message wording/arrangement.
43514
43515 2006-07-14  Simon Josefsson  <jas@extundo.com>
43516
43517         * doc/gnulib.texi (Libtool and Windows): New section.
43518
43519 2006-07-12  Simon Josefsson  <jas@extundo.com>
43520
43521         * modules/gendocs (License): Fix license, approved by Karl.
43522
43523 2006-07-12  Eric Blake  <ebb9@byu.net>
43524
43525         * MODULES.html.sh: Add gendocs.
43526
43527 2006-07-11  Eric Blake  <ebb9@byu.net>
43528
43529         * modules/fdl: New module, to install doc/fdl.texi.
43530         * MODULES.html.sh: Add new section for documentation modules.
43531         * gnulib-tool: Avoid space-tab.
43532         (--doc-base): New option, to manage files from doc.
43533
43534 2006-07-11  Eric Blake  <ebb9@byu.net>
43535
43536         * m4/absolute-header.m4: Fix comments to match recent change.
43537
43538 2006-07-11  Eric Blake  <ebb9@byu.net>
43539
43540         * gnulib-tool: List --doc-base before --tests-base.
43541
43542 2006-07-11  Derek R. Price  <derek@ximbiot.com>
43543
43544         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
43545
43546 2006-07-11  Bruno Haible  <bruno@clisp.org>
43547
43548         * README: Mention where to put documentation.
43549
43550 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43551
43552         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
43553
43554 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
43557         to stdint.m4.
43558
43559 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
43560
43561         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
43562         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
43563         "no/such/file/stdint.h" when there is no such file, so that
43564         the resulting C code can be parsed by dodgy compilers.
43565         Problems reported by Bob Proulx.
43566
43567 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43568
43569         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
43570         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43571         macros into the GNU _D_EXACT_NAMLEN.
43572         * lib/savedir.c:  Likewise.
43573         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
43574
43575 2006-07-10  Derek R. Price  <derek@ximbiot.com>
43576         and Paul Eggert  <eggert@cs.ucla.edu>
43577
43578         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
43579         * m4/savedir.m4:
43580         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
43581         macros into the GNU _D_EXACT_NAMLEN.
43582
43583 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43584
43585         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
43586         around the absolute name, to work around a problem with the HP-UX
43587         11.23 native C compiler, reported by Bob Proulx.
43588
43589 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43590
43591         * doc/maintain.texi, make-stds.texi: Sync from
43592         <http://savannah.gnu.org/projects/gnustandards>.
43593
43594 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43595
43596         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
43597
43598 2006-07-09  Jim Meyering  <jim@meyering.net>
43599
43600         * m4/glob.m4: Remove a doubled word in a comment.
43601
43602 2006-07-09  Jim Meyering  <jim@meyering.net>
43603
43604         * lib/argp-pv.c: Remove a doubled word in a comment.
43605         * lib/check-version.c (check_version): Likewise.
43606         * lib/javacomp.c (compile_java_class): Likewise.
43607
43608 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
43609
43610         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
43611         for the benefit of people using Autoconf 2.60.  If you want to
43612         support older Autoconf versions you can copy m4/onceonly_2_57.m4
43613         (or m4/onceonly.m4, if pre-2.57) manually.
43614
43615 2006-07-08  Jim Meyering  <jim@meyering.net>
43616
43617         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
43618         comment.
43619         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
43620         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
43621         comment.
43622
43623 2006-07-08  Jim Meyering  <jim@meyering.net>
43624
43625         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
43626
43627 2006-07-07  Simon Josefsson  <jas@extundo.com>
43628
43629         * tests/test-crc.c: Change expected crc value, the test vector
43630         were probably computed using the old broken crc.c?
43631
43632 2006-07-06  Simon Josefsson  <jas@extundo.com>
43633
43634         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
43635         now the canonical place for the M4 file).
43636
43637         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
43638         from the sys_socket dependency now.
43639
43640         * modules/inet_pton (Files): Ditto.
43641
43642         * modules/inet_ntop (Files): Ditto.
43643
43644 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43645
43646         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
43647         not gl_PREREQ_GETUSERSHELL.
43648
43649 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43650
43651         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
43652         with only one argument, for Autoconf 2.60.
43653         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
43654         expand to nothing, so add a shell command to avoid syntax error.
43655         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43656
43657 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43658
43659         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
43660
43661 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
43664         no longer needed.  Check for isblank decl.
43665         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
43666         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
43667         of existence.
43668
43669 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43670
43671         * lib/getloadavg.c: Use __VMS, not VMS.
43672         * lib/getopt.c: Likewise.
43673         * lib/getpagesize.h: Likewise.
43674         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
43675         and probably does not work.
43676
43677 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
43678
43679         * lib/.cppi-disable: Add wcwidth.
43680         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
43681         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
43682         (ISGRAPH): Remove.  All uses changed to isgraph.
43683         (FOLD) [!defined _LIBC]: Remove special case.
43684         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
43685         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
43686         HAVE_ISBLANK.
43687         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
43688         case.
43689
43690 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
43691
43692         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
43693         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
43694         brackets.  Other minor changes to suppress some compiler
43695         warnings.
43696
43697 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43698         and Paul Eggert  <eggert@cs.ucla.edu>
43699
43700         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
43701         of invoking obsolescent AC_HEADER_DIRENT macro.
43702         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
43703         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
43704         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
43706         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
43707         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43708         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
43709         * m4/readdir.m4: Remove; no longer needed.
43710
43711 2006-07-06  Derek R. Price  <derek@ximbiot.com>
43712         and Paul Eggert  <eggert@cs.ucla.edu>
43713
43714         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
43715         Don't worry about this obsolete case any more.
43716         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
43717         directories.
43718         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
43719         worry about this obsolete case any more.
43720         * lib/fts.c: Likewise.
43721         * lib/getcwd.c: Likewise.
43722         * lib/glob.h: Likewise.
43723         * lib/savedir.c: Likewise.
43724
43725 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
43728         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
43729         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
43730         needed.
43731         All uses removed.
43732         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43733         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43734         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
43735         needed.
43736         * m4/getdate.m4 (gl_GETDATE): Likewise.
43737         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43738         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43739         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43740         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43741         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
43742         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43743         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
43744         needed.
43745
43746 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
43747
43748         * lib/memcasecmp.c: Include <limits.h>.
43749         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
43750         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
43751         Don't assume isdigit succeeds only on '0' through '9'.
43752
43753 2006-07-05  Eric Blake  <ebb9@byu.net>
43754
43755         * modules/getaddrinfo (Depends-on): Add snprintf.
43756
43757 2006-07-05  Eric Blake  <ebb9@byu.net>
43758
43759         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
43760         to avoid 'header present but could not be compiled' on cygwin.
43761
43762 2006-07-05  Eric Blake  <ebb9@byu.net>
43763
43764         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
43765         missing from netdb.h.
43766         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
43767
43768 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43769
43770         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
43771         no longer needed.
43772         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
43773         * m4/getdate.m4 (gl_GETDATE): Likewise.
43774         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
43775         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
43776         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
43777         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
43778         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
43779
43780 2006-07-05  Derek R. Price  <derek@ximbiot.com>
43781
43782         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
43783         All uses of is_space replaced by isspace.
43784         * lib/exit.h: Don't talk about STDC_HEADERS.
43785         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
43786         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
43787         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
43788         replaced by isprint etc.
43789         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
43790         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43791         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
43792         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
43793         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
43794         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
43795
43796 2006-07-05  Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
43799         the function exists, before testing against AIX.
43800         Reported by Martin Lambers <marlam@marlam.de>.
43801
43802 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
43803
43804         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
43805         From Mark D. Baushke.
43806
43807 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
43808
43809         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
43810         to the absolute name, not just one, to bypass Sun C 5.8's
43811         "warning: #include of /usr/include/... may be non-portable".
43812
43813 2006-07-04  Eric Blake  <ebb9@byu.net>
43814
43815         * modules/dirname-tests: New test module.
43816         * tests/test-dirname.c: New file, replacing dirname.c
43817         TEST_DIRNAME section that was recently deleted.
43818
43819 2006-07-04  Bruno Haible  <bruno@clisp.org>
43820
43821         Assume ANSI C header files and <ctype.h> functions.
43822         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
43823         (mbsnwidth): Use isprint, iscntrl instead.
43824
43825 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43826
43827         Merge from coreutils.
43828         * MODULES.html.sh: Add xstrtold.
43829         * modules/xstrtold: New file.
43830         * modules/cycle-check (Files): Add lib/same-inode.h.
43831         * modules/dirname (Files): Add m4/double-slash-root.m4.
43832         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
43833         * modules/mkdir-p (Files): Add lib/same-inode.h.
43834         * modules/same (Files): Add lib/same-inode.h.
43835
43836 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43837
43838         * m4/absolute-header.m4: Renamed from full-header-path.m4.
43839         This is to keep the terminology clean; POSIX talks about
43840         "absolute pathnames", not "full pathnames", but the GNU
43841         Coding Standards say to use "path" for something else;
43842         so use "absolute" to keep both sides happy.
43843         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
43844         Set gl_absolute_header, not gl_full_header_path.
43845         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
43846         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
43847         All uses changed.
43848
43849         Merge from coreutils.
43850
43851         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43852
43853         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
43854         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
43855         want to require the building of c-strtod.o.
43856         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
43857         needs -lm directly.
43858         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
43859
43860         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43861
43862         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
43863         --as-needed option if available.  Problem reported by Albert Chin in
43864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
43865         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
43866         cc merely issues a bunch of annoying warnings for --as-needed
43867         (this problem was reported by Bob Proulx).  Also, try linking with
43868         -lm to detect a bug in binutils 2.16 (this problem was reported
43869         by Ralf Wildenhues).
43870
43871         2006-06-18  Jim Meyering  <jim@meyering.net>
43872
43873         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
43874         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
43875         macro.
43876         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
43877         also check for glibc-2.4's abort-inducing bug.
43878
43879         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
43880         Low-probability clean-up should be to use rmdir to get rid of
43881         the just-created directory, not unlink.
43882
43883         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
43884         configure fail, and request a bug report to inform us about it.
43885         Add a comment that, barring reports to the contrary, in 2007 we'll
43886         assume ftruncate is universally available.
43887
43888         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
43889
43890         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
43891
43892         2006-03-12  Jim Meyering  <jim@meyering.net>
43893
43894         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
43895         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
43896         * m4/same.m4 (gl_SAME): Likewise.
43897         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
43898
43899         2006-03-11  Eric Blake  <ebb9@byu.net>
43900
43901         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
43902         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
43903         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
43904         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
43905
43906 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
43907
43908         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
43909         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
43910         reported by Mark D. Baushke, one in
43911         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
43912
43913         Merge from coreutils.
43914
43915         * lib/.cppi-disable: Add stdint_.h.
43916         * lib/.cvsignore: Add stdint.h.
43917
43918         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
43919
43920         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
43921         both double and long double versions.
43922         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
43923         * lib/xstrtold.c: New file.
43924         * lib/xstrtod.h (xstrtold): New decl.
43925
43926         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         * lib/filemode.c (setst): Remove.
43929         (strmode): Rewrite to avoid setst.  This makes the code shorter,
43930         (arguably) clearer, and the generated code is a bit smaller on my
43931         Debian GNU/Linux stable x86 host.
43932
43933         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
43934
43935         * lib/filemode.c: Include "filemode.h" first, to test the interface.
43936         Assume that filemode.h includes sys/types.h and sys/stat.h.
43937         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
43938         (ftypelet): Reorder to put common cases first, for efficiency.
43939         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
43940         to do 'M'.
43941         (strmode): Renamed from mode_string, and now stores 12 bytes instead
43942         of 10, for compatibility with FreeBSD.  All callers changed.
43943         (filemodestring): Now stores 12 bytes instead of 10, and sets file
43944         types that can't be deduced solely from st_mode.  First arg is now a
43945         const pointer.
43946         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
43947         (strmode): Renamed from mode_string.
43948         (filemodestring): New decl.
43949         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
43950         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
43951         needed.
43952         (S_ISPORT, S_ISWHT): New macros, if not already defined.
43953
43954         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
43955
43956         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
43957         fsusage.h now does that.  Include fsusage.h first, to test interface.
43958         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
43959         at most one method (the old code could have generated decls that
43960         didn't conform to C89, not that this was ever exercised).
43961         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
43962
43963         2006-03-19  Jim Meyering  <jim@meyering.net>
43964
43965         Work even in a chroot where d_ino values for entries in "/"
43966         don't match the stat.st_ino values for the same names.
43967         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
43968         number, iterate through all entries again, using lstat instead.
43969         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
43970         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
43971
43972         * lib/getcwd.c (__getcwd): Clarify a comment.
43973         Use memcpy in place of a call to strcpy.
43974
43975         2006-03-12  Jim Meyering  <jim@meyering.net>
43976
43977         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
43978         matches that of the current directory (which we're about to chdir ".."
43979         out of), then save the dev-ino of the parent, instead.
43980
43981         * lib/same-inode.h (SAME_INODE): New file/macro.
43982         * lib/chdir-safer.c (SAME_INODE): Remove definition.
43983         Include "same-inode.h", instead.
43984         * lib/same.c: Likewise.
43985         * lib/cycle-check.h: Include "same-inode.h".
43986         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
43987         * lib/cycle-check.c (SAME_INODE): Remove definition.
43988         * lib/root-dev-ino.h: Include "same-inode.h".
43989
43990         2006-03-11  Eric Blake  <ebb9@byu.net>
43991
43992         * lib/same.c (same_name): s/base_name/last_component/
43993         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
43994         * lib/filenamecat.c (file_name_concat): Likewise.
43995
43996         2006-03-11  Eric Blake  <ebb9@byu.net>,
43997                     Paul Eggert  <eggert@cs.ucla.edu>
43998
43999         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44000         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44001         drive prefix.
44002         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44003         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44004         (last_component): New method.
44005         * lib/dirname.c (dir_len): Determine when drive letters need a
44006         subsequent slash.  Preserve // when it is special.
44007         (dir_name): Don't append dot when drive letter is absolute.
44008         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44009         * lib/basename.c (base_name): New semantics - malloc the result.
44010         Preserve // when it is special.  Preserve relative files that look
44011         like drive letters.
44012         (base_len): Preserve // when it is special.
44013         (last_component): New method, similar to old base_name semantics.
44014         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44015         base_name.  Strip redundant slashes from ///.
44016
44017 2006-07-03  Jim Meyering  <jim@meyering.net>
44018
44019         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44020         macro is used before the first cycle_check call.
44021
44022 2006-07-03  Eric Blake  <ebb9@byu.net>
44023
44024         * modules/dirname (Depends-on): Add xstrndup.
44025
44026 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44027
44028         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44029         test cases, so that config.log is a bit easier to follow.
44030
44031 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44032
44033         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44034         both are 64 bits, since this seems to be the tradition, and this
44035         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44036         we ever run into a host that prefers long long to long in this
44037         case, we'll need another configure-time test.  Problem reported by
44038         Jim Meyering.
44039
44040 2006-07-02  Eric Blake  <ebb9@byu.net>
44041
44042         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44043
44044 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44045
44046         * modules/inttypes (Depends-on): No longer depends on stdint.
44047         * modules/stdint (Description): Say more about assumptions.
44048         Say that the fast types might differ.  Say macros are used.
44049         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44050         (Makefile.am): Revise list of substituted symbols to match
44051         new stdint.m4.
44052         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44053         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44054         * tests/test-stdint.c (verify_same_types)
44055         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44056         the code conforms to C99/C89.
44057         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44058         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44059
44060 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44061
44062         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44063         but fix a bug, by requiring at least 64 bits.
44064         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44065         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44066         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44067         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44068
44069         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44070         changes.  Make 2.59 a prerequisite.  Check and substitute for
44071         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44072         inttypes.h.  Do not use special include files; just use the
44073         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44074         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44075         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44076         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44077         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44078         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44079         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44080         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44081         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44082         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44083         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44084         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44085         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44086         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44087         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44088         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44089         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44090         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44091         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44092         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44093         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44094         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44095         not check for things that C99 does not require, e.g., int8_t.  If
44096         a test isn't needed unless <stdint.h> isn't working, and is
44097         unlikely to be needed for any other reason, then don't do it
44098         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44099         size_t, since we assume C89 freestanding at least.  Do not check
44100         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44101         the right thing even if the types are not defined.  Instead use:
44102         (gl_STDINT_TYPE_PROPERTIES): New macro.
44103         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44104         testing whether <sys/types.h> clashes, as Autoconf does this for
44105         us now.  All uses removed.
44106         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44107         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44108         (gl_CHECK_TYPE_SAME):
44109         Remove; no longer needed.
44110         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44111         exists, since we'll return 0 anyway in that case.
44112         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44113
44114 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44115
44116         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44117         possible collision with system files.
44118         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44119         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44120         WCHAR_MIN and WCHAR_MAX in this case.
44121         (<stddef.h>): Do not include; no longer needed.
44122         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44123         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44124         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44125         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44126         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44127         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44128         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44129         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44130         !defined(__c99))]: Include in this case too, since it's harmless
44131         now.
44132         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44133         dangerous to do so.
44134         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44135         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44136         (_STDINT_MIN, _STDINT_MAX): New macros.
44137         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44138         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44139         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44140         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44141         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44142         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44143         macros, not typedefs; this simplifies things quite a bit.
44144         Use long int for all types narrower than int64_t.
44145         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44146         Define in terms of long long int or int64_t or long int,
44147         not int64_t or int32_t.  This saves some compile-time testing.
44148         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44149         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44150         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44151         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44152         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44153         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44154         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44155         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44156         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44157         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44158         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44159         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44160         undef any previous version and define our own version, for
44161         simplicity and consistency with the new macros for types.
44162         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44163         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44164         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44165         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44166         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44167         @WINT_T_SUFFIX@ to keep things simple here.
44168         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44169         Simplify by assuming typical 8/16/32/64 host, since we're
44170         already doing that elsewhere anyway.
44171         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44172         and assume long long int is 64 bits if available.  This
44173         speeds up 'configure'.
44174
44175 2006-07-01  Eric Blake  <ebb9@byu.net>
44176
44177         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44178         Reported by Andreas Buening.
44179
44180 2006-07-01  Eric Blake  <ebb9@byu.net>
44181
44182         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44183
44184 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44185
44186         * lib/getaddrinfo.c: fixed typo
44187
44188 2006-06-29  Jim Meyering  <jim@meyering.net>
44189
44190         * modules/strftime (Maintainer): Add my name, since with the
44191         FPRINTFTIME changes strftime.c has forked from glibc.
44192
44193 2006-06-29  Eric Blake  <ebb9@byu.net>
44194
44195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44196
44197 2006-06-29  Eric Blake  <ebb9@byu.net>
44198
44199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44200
44201 2006-06-29  Eric Blake  <ebb9@byu.net>
44202
44203         * lib/stat_.h: New file.
44204
44205 2006-06-29  Eric Blake  <ebb9@byu.net>
44206
44207         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44208         unused static function.
44209
44210 2006-06-29  Eric Blake  <ebb9@byu.net>
44211
44212         * doc/functions.texi (Function Portability): Document missing lstat
44213         on mingw.
44214
44215 2006-06-29  Eric Blake  <ebb9@byu.net>
44216
44217         * MODULES.html.sh: Add sys_stat.
44218         * modules/sys_stat: New module.
44219         * modules/mkstemp (Depends-on): Add sys_stat.
44220
44221 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44222
44223         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44224
44225 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44226
44227         * m4/c-bs-a.m4: Removed.
44228
44229 2006-06-29  Derek R. Price  <derek@ximbiot.com>
44230
44231         * lib/strftime.c: Assume strftime() exists.
44232
44233 2006-06-29  Derek Price  <derek@ximbiot.com>
44234
44235         * modules/c-bs-a: Removed - \a is C89.
44236         * MODULES.html.sh: Remove c-bs-a.
44237
44238 2006-06-29  Bruno Haible  <bruno@clisp.org>
44239
44240         * modules/wcwidth (License): Change to LGPL.
44241
44242 2006-06-28  Simon Josefsson  <jas@extundo.com>
44243
44244         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
44245         on _WIN32.
44246
44247         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44248         getnameinfo.
44249
44250 2006-06-28  Simon Josefsson  <jas@extundo.com>
44251
44252         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44253
44254 2006-06-28  Simon Josefsson  <jas@extundo.com>
44255
44256         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44257         functions there.  It will succeed on Windows XP, but on Windows
44258         2000 and (presumably) earlier, it will fail, and use the internal
44259         re-implementation.
44260         (use_win32_p): New function.
44261         (getaddrinfo): Use strtoul on servname, to support numeric ports.
44262         Support AI_NUMERICSERV to disable getservbyname.
44263         (getnameinfo): New function, only supports
44264         NI_NUMERICHOST|NI_NUMERICSERV for now.
44265
44266         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44267         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
44268         getnameinfo.
44269
44270 2006-06-28  Eric Blake  <ebb9@byu.net>
44271
44272         * modules/wcwidth: New file.
44273         * modules/mbchar (Depends-on): Add wcwidth.
44274         * modules/mbswidth (Depends-on): Add wcwidth.
44275         * MODULES.html.sh: Add wcwidth.
44276
44277 2006-06-28  Eric Blake  <ebb9@byu.net>
44278
44279         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44281
44282 2006-06-28  Eric Blake  <ebb9@byu.net>
44283
44284         * lib/xvasprintf.h: Fix comments.
44285
44286 2006-06-28  Eric Blake  <ebb9@byu.net>
44287
44288         * lib/mbchar.h (wcwidth): Include wcwidth.h.
44289         * lib/mbswidth.c (wcwidth): Move from here...
44290         * lib/wcwidth.h: ...to this new file.
44291
44292 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44293
44294         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44295
44296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44297         it's obsolete.
44298         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44299
44300 2006-06-28  Derek R. Price  <derek@ximbiot.com>
44301
44302         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
44303         Autoconf 2.60 says this stuff was obsolete.
44304
44305 2006-06-28  Bruno Haible  <bruno@clisp.org>
44306
44307         * modules/wcwidth (Files): Add m4/wchar_t.m4.
44308
44309 2006-06-28  Bruno Haible  <bruno@clisp.org>
44310
44311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44312         gt_TYPE_WCHAR_T.
44313
44314 2006-06-28  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44317         declaration for wcwidth.
44318         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44319
44320 2006-06-28  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/mkdtemp.c [MINGW]: Include <io.h>.
44323         (mkdir): Define using _mkdir.
44324
44325 2006-06-28  Bruno Haible  <bruno@clisp.org>
44326
44327         * lib/getaddrinfo.h: Fix POSIX URL.
44328         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44329         _WIN32.
44330         (use_win32_p): Make static.
44331         (getaddrinfo): Reject service name if it is empty or does not consist
44332         solely of decimal digits, or if its value is > 65535.
44333         (getnameinfo): Remove useless casts.
44334
44335 2006-06-27  Simon Josefsson  <jas@extundo.com>
44336
44337         * modules/sys_select: New file, suggested by Bruno Haible, Paul
44338         Eggert and Martin Lambers.
44339
44340 2006-06-27  Simon Josefsson  <jas@extundo.com>
44341
44342         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44343         Eggert and Martin Lambers.
44344
44345 2006-06-27  Bruno Haible  <bruno@clisp.org>
44346
44347         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44348         result to 0, not to empty.
44349         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44350
44351 2006-06-27  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44354
44355 2006-06-26  Simon Josefsson  <jas@extundo.com>
44356
44357         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44358         present.
44359
44360 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44363         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
44364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44365
44366 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
44367
44368         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44369
44370 2006-06-26  Bruno Haible  <bruno@clisp.org>
44371
44372         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44373
44374 2006-06-26  Bruno Haible  <bruno@clisp.org>
44375
44376         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44377
44378 2006-06-26  Bruno Haible  <bruno@clisp.org>
44379
44380         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44381         SGI C compiler in pre-C99 mode.
44382         Suggested by Mark D. Baushke and Larry Jones.
44383
44384 2006-06-26  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44387         WCHAR_MAX.
44388         Reported by Mark D. Baushke and Larry Jones.
44389
44390 2006-06-26  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44393         in pre-C99 mode.
44394         Suggested by Mark D. Baushke and Larry Jones.
44395
44396 2006-06-23  Simon Josefsson  <jas@extundo.com>
44397             Bruno Haible  <bruno@clisp.org>
44398
44399         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44400         Emit mostlyclean-local rule.
44401         (func_emit_tests_Makefile_am): Likewise.
44402         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44403
44404 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
44405
44406         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44407
44408 2006-06-23  Bruno Haible  <bruno@clisp.org>
44409
44410         * tests/test-stdint.c: Update to match ISO C 99 Technical
44411         Corrigendum 1.
44412
44413 2006-06-23  Bruno Haible  <bruno@clisp.org>
44414
44415         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44416
44417 2006-06-23  Bruno Haible  <bruno@clisp.org>
44418
44419         * lib/stdint_.h: Treat IRIX like OpenBSD.
44420
44421 2006-06-23  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44424         ISO C 99 Technical Corrigendum 1.
44425
44426 2006-06-22  Simon Josefsson  <jas@extundo.com>
44427
44428         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44429         MinGW.
44430
44431 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44432
44433         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44434         needed.  Some compiler complained about some of them.  Problem reported
44435         by Larry Jones in
44436         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44437
44438 2006-06-21  Simon Josefsson  <jas@extundo.com>
44439
44440         * tests/test-getaddrinfo.c: New file.
44441
44442         * modules/getaddrinfo-tests: New file.
44443
44444         * MODULES.html.sh: Add inet_pton.
44445
44446         * modules/inet_pton: New file.
44447
44448 2006-06-21  Simon Josefsson  <jas@extundo.com>
44449
44450         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
44451         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
44452         of using the (limited) gnulib implementation on Windows XP.
44453
44454         * m4/inet_pton.m4: New file.
44455
44456 2006-06-21  Simon Josefsson  <jas@extundo.com>
44457
44458         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44459         variable.
44460
44461         * lib/socket_.h: Don't define WINVER.
44462
44463         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44464         slightly modified to work in gnulib.
44465
44466 2006-06-21  Simon Josefsson  <jas@extundo.com>
44467
44468         * doc/gnulib.texi (Windows sockets): Add.
44469
44470 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
44471
44472         * lib/read-file.c (fread_file): Start with buffer allocation of
44473         0 bytes rather than 1 byte; this simplifies the code.
44474         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
44475         code to free buffer and save/restore errno.
44476         (internal_read_file): Remove unused local.
44477
44478 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
44479
44480         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44481         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44482         Problem reported by Denis Excoffier in
44483         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44484
44485 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44486
44487         * modules/sys_socket, modules/socklen: Include sys/types since
44488         FreeBSD 4.x's sys/socket.h needs it.
44489
44490 2006-06-19  Simon Josefsson  <jas@extundo.com>
44491
44492         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44493
44494 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44495
44496         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44497
44498 2006-06-19  Bruno Haible  <bruno@clisp.org>
44499
44500         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44501         and FULL_PATH_INTTYPES_H in angle brackets.
44502         Reported by Mark D. Baushke <mdb@gnu.org>.
44503
44504 2006-06-17  Eric Blake  <ebb9@byu.net>
44505
44506         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44507         errno.
44508
44509 2006-06-17  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44512         <sys/inttypes.h>.
44513
44514 2006-06-17  Bruno Haible  <bruno@clisp.org>
44515
44516         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44517         whether errno is declared. Assume <errno.h> declares errno.
44518
44519 2006-06-17  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
44522
44523 2006-06-17  Bruno Haible  <bruno@clisp.org>
44524
44525         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
44526         problem on Solaris 2.5.1.
44527
44528 2006-06-16  Eric Blake  <ebb9@byu.net>
44529
44530         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
44531         * lib/unicodeio.c [!defined errno]: Likewise.
44532         * lib/strtol.c [!defined errno]: Likewise.
44533         * lib/strtod.c [!defined errno]: Likewise.
44534
44535 2006-06-15  Eric Blake  <ebb9@byu.net>
44536
44537         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
44538
44539 2006-06-15  Eric Blake  <ebb9@byu.net>
44540
44541         * config/srclist.txt (ssize_t.m4): Lose sync.
44542
44543 2006-06-15  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/stdint (Files): Include m4/full-header-path.m4,
44546         m4/size_max.m4, m4/wchar_t.m4.
44547         (Makefile.am): Many more substitutions.
44548         * modules/stdint-tests: New file.
44549         * tests/test-stdint.c: New file.
44550
44551 2006-06-15  Bruno Haible  <bruno@clisp.org>
44552
44553         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
44554         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
44555         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
44556         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
44557         gl_CHECK_TYPE_SAME): New macros.
44558
44559 2006-06-15  Bruno Haible  <bruno@clisp.org>
44560
44561         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
44562
44563 2006-06-15  Bruno Haible  <bruno@clisp.org>
44564
44565         * lib/stdint_.h: Rewritten to be fully auto-configured.
44566         Fixes bug on HP-UX/IA64.
44567
44568 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
44569
44570         * lib/getdate.y (__attribute__): Don't define if already defined.
44571         Problem reported by Larry Jones.
44572         * lib/utimens.c (__attribute__): Likewise.
44573
44574 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
44575
44576         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
44577         reported by Andreas Schwab.
44578
44579 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44580             Bruno Haible  <bruno@clisp.org>
44581
44582         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
44583         check for the declaration of strnlen and a run test that exposes the
44584         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
44585         rpl_strndup.
44586
44587 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44588             Bruno Haible  <bruno@clisp.org>
44589
44590         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
44591
44592 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44593
44594         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
44595         compile test, for Tru64 4.0D.
44596
44597 2006-05-28  Karl Berry  <karl@gnu.org>
44598
44599         * config/srclist.txt (printf-args.c): lose sync.
44600
44601 2006-05-26  Martin Lambers  <marlam@marlam.de>
44602
44603         * lib/getpass.c: Updates the test for the native W32 API, and adds
44604         missing includes, thus fixing compilation warnings.
44605
44606 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44607
44608         * lib/exclude.c (exclude_fnmatch): New function.
44609         (excluded_file_name): Call exclude_fnmatch.
44610         * lib/exclude.h (excluded_file_name): New prototype
44611
44612 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
44613
44614         * lib/tempname.c (small_open, large_open): New macros.
44615         (__open, __open64) [!_LIBC]: Remove.
44616         (__gen_tempname): Use small_open and large_open instead of __open
44617         and __open64.  This fixes a portability bug on HP-UX 11.11i
44618         reported by Simon Wing-Tang in
44619         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
44620
44621 2006-05-24  Bruno Haible  <bruno@clisp.org>
44622
44623         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
44624         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
44625         Reported by Thorsten Maerz <torte@netztorte.de> via
44626         Aaron Stone <aaron@serendipity.cx>.
44627
44628 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
44631         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
44632         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
44633         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
44634         not really conditional on the cache.
44635         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
44636
44637 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44638
44639         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
44640         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
44641         (my_usleep): Don't mishandle maximum value.
44642
44643 2006-05-19  Jim Meyering  <jim@meyering.net>
44644
44645         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
44646
44647 2006-05-17  Bruno Haible  <bruno@clisp.org>
44648
44649         Cygwin portability.
44650         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
44651
44652 2006-05-17  Bruno Haible  <bruno@clisp.org>
44653
44654         * lib/stdint_.h: Fix recognition of Cygwin.
44655
44656 2006-05-15  Bruno Haible  <bruno@clisp.org>
44657
44658         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
44659         on libtool patch by Ralf Wildenhues.
44660
44661 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
44662
44663         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
44664         test for C99 conformance; (bool) 0.5 is an integer constant
44665         expression, but (bool) -0.5 is not.  Problem reported by Fedor
44666         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
44667
44668 2006-05-11  Simon Josefsson  <jas@extundo.com>
44669
44670         * m4/xvasprintf.m4: Fix obvious typo.
44671
44672 2006-05-11  Jim Meyering  <jim@meyering.net>
44673
44674         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
44675         James Lemley.
44676
44677 2006-05-10  Simon Josefsson  <jas@extundo.com>
44678
44679         * lib/md4.c: Typo fix, update copyright years.
44680         (K1, K2): Don't use L because it turn computations into 64-bit on
44681         64-bit platforms.
44682
44683 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
44684
44685         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
44686         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
44687         unwanted sign propagation, e.g., on hosts with 64-bit int.
44688         There still are some problems with reeelly weird theoretical hosts
44689         (e.g., 33-bit int) but it's not worth worrying about now.
44690         * lib/sha1.c (rol): Likewise.
44691         (K1, K2, K3, K4): Remove unnecessary L suffix.
44692
44693 2006-05-10  Bruno Haible  <bruno@clisp.org>
44694
44695         * lib/des.c: Cast to avoid warnings.
44696
44697 2006-05-09  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
44700         (Depends-on): Depend also on xsize, stdarg.
44701         (configure.ac): Add gl_XVASPRINTF.
44702
44703 2006-05-09  Bruno Haible  <bruno@clisp.org>
44704
44705         * m4/xvasprintf.m4: New file.
44706
44707 2006-05-09  Bruno Haible  <bruno@clisp.org>
44708
44709         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
44710         (EOVERFLOW): Define fallback value.
44711         (xstrcat): New function.
44712         (xvasprintf): Recognize the special case of a string concatenation.
44713
44714 2006-05-08  Eric Blake  <ebb9@byu.net>
44715
44716         * gnulib-tool (func_version): Base copyright year on CVS date.
44717         (func_emit_copyright_notice): New function.
44718         (func_emit_lib_Makefile_am): Use it.
44719         (func_emit_tests_Makefile_am): Likewise.
44720         (func_import): Likewise.
44721
44722 2006-05-08  Bruno Haible  <bruno@clisp.org>
44723
44724         * modules/stdarg: New file.
44725         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
44726
44727 2006-05-08  Bruno Haible  <bruno@clisp.org>
44728
44729         * m4/stdarg.m4: New file, from GNU gettext.
44730
44731 2006-05-08  Bruno Haible  <bruno@clisp.org>
44732
44733         * config/srclist.txt (build-aux/config.rpath): different from latest
44734         release.
44735
44736 2006-05-08  Bruno Haible  <bruno@clisp.org>
44737
44738         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
44739
44740 2006-05-05  Jim Meyering  <jim@meyering.net>
44741
44742         * m4/warning.m4: New file, derived from bison's file by the same name.
44743
44744 2006-05-03  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/stdint_.h: Shorter URL.
44747         * lib/inttypes.h: Likewise.
44748
44749 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44750
44751         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
44752
44753 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44754
44755         * lib/verify.h: Document the internals better.  Most of this change
44756         was written by Bruno Haible.
44757
44758 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
44759
44760         * doc/verify.texi: New file, partly based on a proposal by
44761         Bruno Haible.
44762
44763 2006-05-02  Bruno Haible  <bruno@clisp.org>
44764
44765         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
44766         test from here...
44767         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
44768
44769 2006-04-29  Bruno Haible  <bruno@clisp.org>
44770
44771         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
44772         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
44773
44774 2006-04-29  Bruno Haible  <bruno@clisp.org>
44775
44776         * gnulib-tool: Make --update option actually work.
44777
44778 2006-04-29  Bruno Haible  <bruno@clisp.org>
44779
44780         * doc/gcd.texi: New file.
44781         * doc/gnulib.texi: Include it.
44782
44783 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
44784
44785         * lib/getdate.y (get_date): When adding relative date, start with the
44786         initial time, not with the result of the first mktime call.
44787
44788 2006-04-25  Bruno Haible  <bruno@clisp.org>
44789
44790         * gnulib-tool (func_import): Output the include directives in three
44791         blocks, sorted separately.
44792         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44793
44794 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
44795
44796         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
44797         to define main with arguments, for C++.  Reported by Eric Blake.
44798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
44799         Prefer 'int main ()' to 'int main (void)', for C++.
44800         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
44802         for 'main', for C99 and C++.
44803
44804 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
44805
44806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
44807         Don't assume that exit status -1 is valid.
44808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44809         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44810         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44811         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
44812         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
44813         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
44814         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
44815         functions can be used without declaring them, or that you can
44816         exit with status -1.
44817         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44818
44819 2006-04-24  Karl Berry  <karl@gnu.org>
44820
44821         * config/srclist.txt (longdouble.m4): sync lost.
44822
44823 2006-04-24  Eric Blake  <ebb9@byu.net>
44824
44825         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
44826
44827 2006-04-24  Bruno Haible  <bruno@clisp.org>
44828
44829         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
44830         poll() implementation in AIX.
44831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44832
44833 2006-04-24  Bruno Haible  <bruno@clisp.org>
44834
44835         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
44836         assigned exactly once.
44837
44838 2006-04-23  Claudio Fontana  <claudio@gnu.org>
44839             Bruno Haible  <bruno@clisp.org>
44840
44841         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
44842         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
44843         for AM_CPPFLAGS.
44844
44845 2006-04-23  Bruno Haible  <bruno@clisp.org>
44846
44847         * modules/copy-file: Depend on unistd.
44848         * modules/execute: Likewise.
44849         * modules/fatal-signal: Likewise.
44850         * modules/findprog: Likewise.
44851         * modules/mkdtemp : Likewise.
44852         * modules/pipe: Likewise.
44853         * modules/wait-process: Likewise.
44854
44855 2006-04-23  Bruno Haible  <bruno@clisp.org>
44856
44857         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
44858         condition was already detected.
44859         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44860
44861 2006-04-23  Bruno Haible  <bruno@clisp.org>
44862
44863         * lib/copy-file.c: Include <unistd.h> unconditionally.
44864         * lib/execute.c: Likewise.
44865         * lib/fatal-signal.c: Likewise.
44866         * lib/findprog.c: Likewise.
44867         * lib/mkdtemp.c: Likewise.
44868         * lib/pipe.h: Likewise.
44869         * lib/pipe.c: Likewise.
44870         * lib/wait-process.h: Likewise.
44871
44872 2006-04-23  Bruno Haible  <bruno@clisp.org>
44873
44874         * gnulib-tool (func_usage): Fix --import description. Document
44875         --update.
44876         (func_import): Create temporary file in a temporary directory, if
44877         --dry-run is specified. Silence errors from 'grep' when there are no
44878         m4 files in $m4dir.
44879         (func_create_testdir): Silence errors from 'grep' when there are no
44880         m4 files in $m4dir.
44881         Reported by Karl Berry <karl@freefriends.org>.
44882
44883 2006-04-20  Bruno Haible  <bruno@clisp.org>
44884
44885         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
44886         one argument, so that the code will be portable to Autoconf 2.60.
44887         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
44888         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44889         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
44890
44891 2006-04-19  Derek Price  <derek@ximbiot.com>
44892             Eric Blake  <ebb9@byu.net>
44893
44894         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
44895         rather than "/full/path.h".  Update comment to match.  Shorten &
44896         generalize m4_translit call via AS_TR_CPP.
44897
44898 2006-04-19  Derek Price  <derek@ximbiot.com>
44899             Eric Blake  <ebb9@byu.net>
44900
44901         * lib/inttypes.h: Correct grammar in comment.
44902
44903 2006-04-18  Derek Price  <derek@ximbiot.com>
44904             Paul Eggert  <eggert@cs.ucla.edu>
44905
44906         * modules/inttypes: New file.
44907         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
44908
44909 2006-04-18  Derek Price  <derek@ximbiot.com>
44910             Paul Eggert  <eggert@cs.ucla.edu>
44911
44912         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
44913         New files.
44914
44915 2006-04-18  Derek Price  <derek@ximbiot.com>
44916             Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * lib/inttypes.h: New file.
44919         * lib/strtoimax.c: Assume <inttypes.h>.
44920
44921 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
44922
44923         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
44924         isn't mounted.  Problem reported by Kir Kolyshkin.
44925
44926 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
44927
44928         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
44929         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
44930         Derek R. Price.
44931         * lib/regex.h (RE_DUP_MAX): Update comment to match current
44932         implementation.
44933
44934 2006-04-12  Eric Blake  <ebb9@byu.net>
44935
44936         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
44937         is now done automatically by the corresponding Autoconf macro.
44938
44939 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
44940
44941         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
44942         time_r.h.
44943
44944 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         Merge regex changes from libc, removing some of our
44947         POSIX-conformance changes that were rejected and redoing them in a
44948         less-intrusive way.
44949
44950         * lib/regcomp.c (re_compile_internal, init_dfa):
44951         Length arg is now size_t, not Idx.  All uses changed.
44952         (peek_token): Forward decl now says internal_function.
44953         (__re_error_msgid, __re_error_msgid_idx):
44954         Now static rather than extern with attribute_hidden.
44955         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
44956         For some reason libc prefers K&R style defns for external functions.
44957         (regerror) [!defined _LIBC]: Likewise.
44958         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
44959         (seek_collating_symbol_entry, lookup_collation_sequence_value):
44960         (build_range_exp, build_collating_symbol):
44961         Use K&R-style defn.
44962         (re_compile_fastmap): Use '\0' to memset, not 0.
44963         (utf8_sb_map): Make the calculations more obvious.
44964         (init_dfa, parse_bracket_exp, build_charclass_op):
44965         Call calloc and cast result, as glibc does.
44966         (init_word_char, fetch_token, peek_token, peek_token_bracket):
44967         (build_range_exp, build_collating_symbol):
44968         Now internal functions.
44969
44970         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
44971
44972         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
44973         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
44974         Don't depend on VMS; depend on __VMS instead, for POSIX
44975         namespace cleanness.
44976         (regoff_t): Define to ssize_t, not long int.
44977
44978         Remove the REG_ macros named below.  Instead, make the old names
44979         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
44980         __USE_GNU_REGEX.
44981         (REG_BACKSLASH_ESCAPE_IN_LISTS):
44982         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
44983         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
44984         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
44985         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
44986         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
44987         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
44988         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
44989         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
44990         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
44991         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
44992         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
44993         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
44994         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
44995         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
44996         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
44997         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
44998         (REG_NREGS):
44999         Remove.  All uses replaced by the old RE_* names.
45000         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45001         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45002         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45003         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45004         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45005         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45006         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45007         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45008         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45009         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45010         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45011         Don't bother having these macros be independent of each others'
45012         values, since they no longer exist in the POSIX name space.
45013
45014         Rename the following member names back to their old names,
45015         unless !__USE_GNU_REGEX.  All uses changed back.
45016         (buffer): Renamed from re_buffer.
45017         (allocated): Renamed from re_allocated.
45018         (used): Renamed from re_used.
45019         (syntax): Renamed from re_syntax.
45020         (fastmap): Renamed from re_fastmap.
45021         (translate): Renamed from re_translate.
45022         (can_be_null): Renamed from re_can_be_null.
45023         (regs_allocated): Renamed from re_regs_allocated.
45024         (fastmap_accurate): Renamed from re_fastmap_accurate.
45025         (no_sub): Renamed from re_no_sub.
45026         (not_bol): Renamed from re_not_bol.
45027         (not_eol): Renamed from re_not_eol.
45028         (newline_anchor): Renamed from re_newline_anchor.
45029         (num_regs): Renamed from rm_num_regs.
45030         (start): Renamed from rm_start.
45031         (end): Renamed from rm_end.
45032
45033         (free_state): Move up a bit.
45034
45035         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45036         #define to be empty.
45037         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45038         when that is what is intended.
45039         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45040         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45041         (MAX): New macro.
45042         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45043         All uses changed back to re_malloc, etc.  It's now the caller's
45044         responsibility to check for overflow; all callers changed.
45045         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45046         (re_x2nrealloc): Remove.
45047         (free_state): Remove decl.
45048
45049         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45050         (re_set_registers, re_exec):
45051         Use K&R-style defn.
45052
45053         2006-01-31  Roland McGrath  <roland@redhat.com>
45054
45055         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45056         Reported by Mike Frysinger <vapier@gentoo.org>.
45057
45058         2006-01-15  Andreas Jaeger  <aj@suse.de>
45059
45060         [BZ #1950]
45061         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45062         build_wcs_upper_buffer change.
45063         (build_wcs_upper_buffer): Change return type.
45064
45065         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45066
45067         * lib/regex_internal.h: Include <stdint.h> if available.
45068
45069         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45070
45071         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45072
45073         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45074
45075         * lib/regcomp.c: Adjust for changed secondary hash function.
45076
45077         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45078
45079         * lib/regex.h: Pretty printing.
45080         Clean up namespace a bit.
45081
45082         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45083
45084         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45085         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45086
45087         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45088                     Ulrich Drepper  <drepper@redhat.com>
45089
45090         [BZ #1302]
45091         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45092         changed.
45093         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45094
45095         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45096
45097         [BZ #281]
45098         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45099         * lib/regcomp.c: Remove unnecessary uses of
45100         unsigned RE_TRANSLATE_TYPE.
45101         * lib/regex_internal.h: Likewise.
45102         * lib/regex_internal.c: Likewise.
45103         * lib/regexec.c: Likewise.
45104         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45105
45106         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45107
45108         * lib/regexec.c (find_recover_state): Remove unnecessary
45109         initialization.
45110         (transit_state_bkref): Make DFA a const pointer.
45111         (get_subexp): Likewise.
45112         (check_arrival): Likewise.
45113         (update_cur_sifted_state): Likewise.
45114         (re_search_internal): Likewise.
45115         (prune_impossible_nodes): Likewise.
45116         (acquire_init_state_context): Likewise.
45117         (proceed_next_node): Likewise.
45118         (set_regs): Likewise.
45119         (free_fail_stack_return): Likewise.
45120         (check_arrival_expand_ecl): Mark DFA parameter as const.
45121         (check_arrival_expand_ecl_sub): Likewise.
45122         (check_subexp_limits): Likewise.
45123         (sub_epsilon_src_nodes):  Likewise.
45124         (add_epsilon_src_nodes):  Likewise.
45125         (merge_state_array): Likewise.
45126         (update_regs): Likewise.
45127         (build_trtable): Likewise.
45128         (sift_states_backward): Mark MCTX parameter as const.
45129         (build_sifted_states): Likewise.
45130         (update_cur_sifted_state): Likewise.
45131         (sift_states_mkref): Likewise.
45132         (check_arrival_expand_ecl): Mark eclosure as const.
45133         (check_dst_limits_calc_pos_1): Likewise.
45134         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45135         pointer.
45136
45137         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45138
45139         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45140         (transit_state_sb): Likewise.
45141         (transit_state_mb): Likewise.
45142         (sift_states_iter_mb): Likewise.
45143         (check_arrival_add_next_nodes): Likewise.
45144         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45145         [_LIBC] (re_search_2_stub): Use mempcpy.
45146
45147         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45148         mbrtowc for very simple UTF-8 case.
45149
45150         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45151         a pointer-to-const.
45152         (re_acquire_state_context): Likewise.
45153         * lib/regex_internal.h: Adjust prototypes.
45154
45155         * lib/regex.c: Prevent using C++ compilers.
45156
45157         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45158         (re_acquire_state_context): Likewise.
45159
45160 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45161
45162         * modules/regex (Depends-on): Add ssize_t.
45163
45164 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45165
45166         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45167         translation table.
45168
45169 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45170
45171         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45172
45173 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45174             Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45177         <sys/types.h> and <inttypes.h>.
45178
45179 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45180
45181         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45182         `__error_t_defined', so argp.h will not typedef the former.
45183
45184 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45185
45186         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45187         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45188         glibc names.  Even if glibc is changed to conform to POSIX, the
45189         traditional names will be available anyway, since regex depends on
45190         the extensions module.  Also, fix a longstanding typo in the
45191         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45192         reported by Emanuele Giaquinta.  Also, change sense of cached
45193         variable, so that the message makes sense.
45194
45195 2006-03-24  Simon Josefsson  <jas@extundo.com>
45196
45197         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45198         including some doc fixes.
45199         (base64_encode_alloc): Fix +1 bug on allocation failures.
45200
45201 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45202
45203         * lib/base64.c (base64_encode): Do not read past end of array with
45204         unsanitized input on systems with CHAR_BIT > 8.
45205
45206 2006-03-24  Eric Blake  <ebb9@byu.net>
45207
45208         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45209
45210 2006-03-22  Karl Berry  <karl@gnu.org>
45211
45212         * config/srclist.txt (*setenv.[ch]): get from coreutils.
45213         * config/srclistvars.sh (COREUTILS): new var.
45214
45215 2006-03-17  Jim Meyering  <jim@meyering.net>
45216
45217         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45218         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45219
45220 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45221
45222         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45223         no longer needs it.  Instead, check that regoff_t is as least
45224         as wide as ptrdiff_t.
45225
45226         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45227         so that our regex.h stays compatible with the installed regex.
45228         This is helpful for installers who configure --without-included-regex.
45229         Problem reported by Emanuele Giaquinta.
45230
45231 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
45232
45233         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45234         Typedef to long int, not to off_, as POSIX will likely change
45235         in that direction.
45236
45237 2006-03-15  Eric Blake  <ebb9@byu.net>
45238
45239         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45240
45241 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45242
45243         * lib/argp-help.c (validate_uparams): Fix typo
45244         * lib/argp-parse.c (argp_default_options): Consistently begin help
45245         messages with a lowercase letter.
45246
45247 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
45248
45249         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
45250         overrun buffers and shouldn't be used (much as gets shouldn't be
45251         used).
45252         * lib/time_r.c (asctime_r, ctime_r): Likewise.
45253
45254 2006-03-08  Simon Josefsson  <jas@extundo.com>
45255
45256         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45257         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45258
45259 2006-03-08  Simon Josefsson  <jas@extundo.com>
45260
45261         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45262         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45263
45264 2006-03-08  Simon Josefsson  <jas@extundo.com>
45265
45266         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45267         signal that configure disabled the device.
45268
45269 2006-03-08  Simon Josefsson  <jas@extundo.com>
45270
45271         * build-aux/maint.mk: Fix refresh-po, to handle no translated
45272         languages.
45273
45274 2006-03-07  Simon Josefsson  <jas@extundo.com>
45275
45276         * modules/getopt (Depends-on): Add unistd.
45277
45278         * modules/unistd: New file.
45279
45280 2006-03-07  Simon Josefsson  <jas@extundo.com>
45281
45282         * modules/gc-random: New file.
45283
45284 2006-03-07  Simon Josefsson  <jas@extundo.com>
45285
45286         * m4/unistd_h.m4: New file.
45287
45288 2006-03-07  Simon Josefsson  <jas@extundo.com>
45289
45290         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45291         test to be side-effect free by storing the result in the cache
45292         variable gl_cv_lib_readline, and moving the assignment of
45293         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45294         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45295
45296 2006-03-07  Simon Josefsson  <jas@extundo.com>
45297
45298         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
45299         error on missing devices (the functions will return an error).
45300
45301         * m4/gc.m4: Move random stuff to gc-random.m4
45302
45303 2006-03-07  Simon Josefsson  <jas@extundo.com>
45304
45305         * lib/unistd_.h: New file.
45306
45307 2006-03-07  Simon Josefsson  <jas@extundo.com>
45308
45309         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45310
45311 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45312
45313         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45314         Problem reported by Juan Manuel Guerrero.
45315
45316 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45319         the unistd module.
45320         * lib/getlogin_r.c: Likewise.
45321         * lib/getlogin_r.h: Likewise.
45322         * lib/glob.c: Likewise.
45323         * lib/pagealign_alloc.c: Likewise.
45324         * lib/unistd_.h: Remove; no longer needed.
45325
45326 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
45327
45328         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45329         Add unistd.
45330         * modules/c-stack (Depends-on): Add unistd.
45331         * modules/getlogin_r: Likewise.
45332         * modules/glob: Likewise.
45333         * modules/pagealign_alloc: Likewise.
45334         * modules/unistd (Files): Remove lib/unistd_.h.
45335         (EXTRA_DIST): Remove.
45336         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45337         need unistd_.h.
45338         (MOSTLYCLEANFILES): Remove unistd.h-t.
45339
45340 2006-03-03  Simon Josefsson  <jas@extundo.com>
45341
45342         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45343
45344 2006-03-03  Simon Josefsson  <jas@extundo.com>
45345
45346         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45347         libidn and bison.
45348
45349 2006-03-03  Simon Josefsson  <jas@extundo.com>
45350
45351         * build-aux/maint.mk: Add indent target.
45352
45353 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
45354
45355         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45356         our replacement poll.h in any case, to avoid a differing
45357         declaration from a system header.  Seen on AIX.
45358
45359 2006-03-01  Simon Josefsson  <jas@extundo.com>
45360
45361         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45362         <kasal@ucw.cz>.
45363
45364 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45365
45366         * modules/gettime (Depends-on): Add extensions module.
45367         * modules/nanosleep (Depends-on): Likewise.
45368         * modules/settime (Depends-on): Likewise.
45369
45370 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45371
45372         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45373         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45374         pedantically.
45375         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45376         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45377
45378         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45379         not "==".  Reported by Ralf Wildenhues.
45380
45381 2006-03-01  Karl Berry  <karl@gnu.org>
45382
45383         * doc/Copyright/request-*: new files, synced from gnuorg.
45384
45385 2006-03-01  Karl Berry  <karl@gnu.org>
45386
45387         * config/srclist.txt (Copyright/*): new entries.
45388
45389 2006-02-28  Simon Josefsson  <jas@extundo.com>
45390
45391         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45392
45393 2006-02-27  Simon Josefsson  <jas@extundo.com>
45394
45395         * lib/base64.h: Indent #define's.  From Jim Meyering
45396         <jim@meyering.net>.
45397
45398 2006-02-27  Jim Meyering  <jim@meyering.net>
45399
45400         Revert the change of 2006-02-24, so these files can continue
45401         to be sync'd from gettext.
45402         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45403         of `config.h'.
45404
45405 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
45406
45407         * modules/intprops: New file.
45408         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45409         Add intprops.
45410         * modules/getloadavg (Files): Remove lib/intprops.h.
45411         (Depends-on): Add intprops.
45412         * modules/human: Likewise.
45413         * modules/inttostr: Likewise.
45414         * modules/openat: Likewise.
45415         * modules/sig2str: Likewise.
45416         * modules/userspec: Likewise.
45417         * modules/utimecmp: Likewise.
45418         * modules/xnanosleep: Likewise.
45419         * modules/xstrtol: Likewise.
45420
45421 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
45422
45423         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45424         * modules/lock-tests (TESTS): Use $(EXEEXT).
45425         * modules/tls-tests: Likewise.
45426         * modules/argp-tests: Likewise.
45427         (check_PROGRAMS): New var, replacing...
45428         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45429
45430 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45431
45432         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45433         `config.h'.
45434
45435 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45436
45437         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45438
45439 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45440
45441         Sync from coreutils.
45442         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45443         gl_CHDIR_SAFER.
45444
45445 2006-02-22  Jim Meyering  <jim@meyering.net>
45446
45447         Sync from coreutils.
45448         * m4/chdir-safer.m4: New file.
45449
45450 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45453         AT_FDCWD exceeds INT_MAX.
45454         * lib/openat.h (AT_FDCWD): Likewise.
45455
45456 2006-02-17  Eric Blake  <address@hidden>
45457
45458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45459
45460 2006-02-16  Simon Josefsson  <jas@extundo.com>
45461
45462         * modules/getaddrinfo (Depends-on): Add sys_socket.
45463
45464 2006-02-15  Simon Josefsson  <jas@extundo.com>
45465
45466         * build-aux/maint.mk: Add dsyntax-check rule.
45467
45468 2006-02-15  Eric Blake  <ebb9@byu.net>
45469
45470         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45471         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45472         'present but cannot compile' warnings on cygwin.
45473         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
45474         use ws2tcpip.h if sys/socket.h works.
45475         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45476         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45477
45478 2006-02-14  Simon Josefsson  <jas@extundo.com>
45479
45480         * modules/maintainer-makefile (Files): Rename.
45481
45482         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45483         and (the local) Makefile.cfg to maint-cfg.mk.
45484
45485         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45486         to the latter.
45487
45488         * modules/maintainer-makefile: New module.
45489
45490         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45491         severaly stripped to make it possible to build it up from scratch
45492         with reliable tests.
45493
45494         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45495         fixes to permit overriding the default actions when configure and
45496         makefile are not available.
45497
45498 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45499
45500         Sync from coreutils.
45501         * modules/lstat (Depends-on): Don't depend on xalloc.
45502         (License): Change from GPL to LGPL, since this is now simply a
45503         replacement for a libc function.
45504
45505 2006-02-14  Jim Meyering  <jim@meyering.net>
45506
45507         Sync from coreutils.
45508
45509         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45510         failure on deficient systems, and simplify gnulib lgpl dependencies.
45511         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45512         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
45513
45514         * lib/xalloc-die.c: Remove unused definition of N_.
45515
45516 2006-02-14  Jim Meyering  <jim@meyering.net>
45517
45518         Sync from coreutils.
45519         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
45520         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
45521         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
45522         double-quote uses of that variable, to accommodate the rare case in
45523         which getmntent is available in none of the libraries checked.  This
45524         happens at least on FreeBSD 5.0.
45525
45526 2006-02-13  Simon Josefsson  <jas@extundo.com>
45527
45528         * gnulib-tool (Usage): Fix --import, from
45529         karl@freefriends.org (Karl Berry).
45530
45531 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
45532
45533         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
45534
45535 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
45536
45537         * lib/argp-namefrob.h: Restore changes accidentally lost during the
45538         "autoupdate" on 2005-12-12.
45539
45540 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45541
45542         * modules/closeout (Depends-on): Remove atexit.
45543
45544 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
45545
45546         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
45547         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
45548
45549 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45550
45551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
45552         __EXTENSIONS__ if this causes compilation to fail.  Problem
45553         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
45554         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
45555
45556 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
45557
45558         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
45559         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
45560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
45561         All uses changed.
45562
45563 2006-01-26  Simon Josefsson  <jas@extundo.com>
45564
45565         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
45566         prototype is visible on mingw32.
45567
45568         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
45569         for mingw32.
45570
45571         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
45572         mingw32).
45573
45574 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
45577         attempt to open for write; this always fails, at least on POSIX
45578         hosts.  This reinstates the 2006-01-09 change, which was
45579         inadvertently removed.
45580
45581 2006-01-26  Bruno Haible  <bruno@clisp.org>
45582
45583         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
45584         Reported by Paul Eggert.
45585
45586 2006-01-26  Bruno Haible  <bruno@clisp.org>
45587             Paul Eggert  <eggert@cs.ucla.edu>
45588
45589         * lib/stdbool_.h (_Bool)
45590         [(! (defined __cplusplus || defined __BEOS__)
45591           && !defined __GNUC__
45592           && !(defined __HP_cc || defined __xlc__
45593                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
45594                || defined __sgi))]:
45595         #define to signed char in these cases too; this simplifies
45596         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
45597         etc., separately) and makes it more conservative.
45598
45599 2006-01-25  Simon Josefsson  <jas@extundo.com>
45600
45601         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
45602         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
45603         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
45604
45605 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45606
45607         * lib/argp-namefrob.h: Bugfix. Remove stray #
45608
45609 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45610
45611         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
45612         so that we test the test.
45613         Check for yet another HP-UX cc bug involving *bool |= bool.
45614
45615 2006-01-25  Karl Berry  <karl@gnu.org>
45616
45617         * config/srclist.txt (vasnprintf.c): sync lost.
45618
45619 2006-01-25  Jim Meyering  <jim@meyering.net>
45620
45621         Sync from the stable (b5) branch of coreutils:
45622
45623         * lib/fts.c (fts_children): Don't let close() clobber errno from
45624         failed fchdir().
45625
45626         * lib/fts.c (fts_stat): When following a symlink-to-directory,
45627         don't necessarily interpret stat-fails+lstat-succeeds as indicating
45628         a dangling symlink.  That can also happen at least for ELOOP.
45629         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
45630         FYI, this bug predates the inclusion of fts.c in coreutils.
45631
45632         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
45633         in their own block, so pre-c99 compilers don't object.
45634
45635         Avoid the double-free (first in fts_read, second in fts_close) that
45636         would occur when an `active' directory is made inaccessible (e.g.,
45637         via chmod a-x) during a traversal.
45638         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45639         before returning.  Reproduce this failure by
45640         mkdir -p a/b; cd a; chmod a-x . b
45641         Reported by Stavros Passas.
45642
45643 2006-01-25  Jim Meyering  <jim@meyering.net>
45644
45645         * lib/fileblocks.c: Remove more useless parentheses.
45646         * lib/readutmp.h: Likewise.
45647
45648 2006-01-25  Bruno Haible  <bruno@clisp.org>
45649
45650         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
45651         warnings.
45652         Reported by Paul Eggert.
45653
45654 2006-01-25  Bruno Haible  <bruno@clisp.org>
45655
45656         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
45657         rid of a trap command. For Solaris sh.
45658         Reported by Mark D. Baushke <mdb@gnu.org>.
45659
45660 2006-01-24  Simon Josefsson  <jas@extundo.com>
45661
45662         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
45663         Bruno.
45664
45665 2006-01-24  Karl Berry  <karl@gnu.org>
45666
45667         * config/srclist.txt (argp-namefrob.h): sync lost.
45668
45669 2006-01-24  Jim Meyering  <jim@meyering.net>
45670
45671         * modules/openat (Files): Add lib/intprops.h.
45672         From Mark D. Baushke.
45673
45674 2006-01-24  Jim Meyering  <jim@meyering.net>
45675
45676         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
45677         Reported by Mark D. Baushke.
45678
45679 2006-01-24  Jim Meyering  <jim@meyering.net>
45680
45681         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
45682
45683 2006-01-24  Bruno Haible  <bruno@clisp.org>
45684
45685         * modules/strnlen (Maintainer): Change from glibc to all.
45686
45687 2006-01-24  Bruno Haible  <bruno@clisp.org>
45688
45689         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
45690         Patch by Paul Eggert.
45691
45692 2006-01-24  Bruno Haible  <bruno@clisp.org>
45693
45694         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
45695         already has it.
45696         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
45697         2005-11-26.
45698
45699         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
45700         'signed char' to avoid problems with the built-in _Bool type.
45701         Reported by Paul Eggert on 2005-11-26.
45702
45703 2006-01-24  Bruno Haible  <bruno@clisp.org>
45704
45705         * gnulib-tool (func_import): Avoid constructing complicated sed
45706         expressions inside backquote.
45707         Report and solution by Mark D. Baushke <mdb@gnu.org>.
45708
45709 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
45710
45711         These changes imported from libc.
45712         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
45713         test and two separate function calls.
45714         * lib/strndup.c (__strndup): Add libc_hidden_def.
45715
45716 2006-01-23  Simon Josefsson  <jas@extundo.com>
45717
45718         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
45719         Remove the test_*_SOURCES variable: automake infers it by default.
45720         * modules/tls-tests: Likewise.
45721
45722 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45723
45724         Work around porting bugs reported by Dieter in
45725         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
45726         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
45727         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
45728         Include "getopt.h" first, to check interface.
45729         (getenv): Declare only if defined HAVE_DECL_GETENV &&
45730         !HAVE_DECL_GETENV.
45731         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
45732         (__strndup): Revert to K&R-style function dfns, the glibc style.
45733         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
45734         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
45735         Include strnlen.h first, to get prototype properly.
45736         (strnlen): Renamed from __strnlen.
45737         Remove weak alias.
45738
45739 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45740
45741         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
45742
45743 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45744
45745         * config/srclist.txt: Adjust to reflect glibc reorganization.
45746         This affects only comments.
45747
45748 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45749
45750          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
45751          Reported by Bruce Korb <bkorb@gnu.org>.
45752
45753 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45754
45755         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
45756         to pacify gcc -Wswitch-default.
45757
45758 2006-01-22  Bruno Haible  <bruno@clisp.org>
45759
45760         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
45761         temporary buffer for sprintf, take into account the precision also
45762         for 'd', 'i', 'u', 'o', 'x', 'X'.
45763
45764 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45765
45766         * modules/argp-tests: New module
45767         * tests/test-argp.c: New file
45768         * tests/test-argp-2.sh: New file
45769
45770 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
45771
45772         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
45773         (__argp_base_name): Removed
45774         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
45775         typo.
45776         (__argp_base_name): Provide macro definition or extern declaration
45777         depending on the configuration
45778
45779 2006-01-20  Simon Josefsson  <jas@extundo.com>
45780
45781         * modules/inet_ntop (Depends-on): Depend on sys_socket.
45782
45783 2006-01-20  Simon Josefsson  <jas@extundo.com>
45784
45785         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
45786
45787 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
45788
45789         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
45790         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
45791         Suggested by Bruno Haible.
45792
45793 2006-01-20  Karl Berry  <karl@gnu.org>
45794
45795         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
45796         until changes propagate, I guess.
45797
45798 2006-01-19  Simon Josefsson  <jas@extundo.com>
45799
45800         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
45801
45802 2006-01-19  Simon Josefsson  <jas@extundo.com>
45803
45804         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
45805
45806 2006-01-19  Simon Josefsson  <jas@extundo.com>
45807
45808         * gnulib-tool: Set check_PROGRAMS.
45809
45810         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45811         modules/des-tests, modules/gc-arcfour-tests,
45812         modules/gc-arctwo-tests, modules/gc-des-tests,
45813         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45814         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45815         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45816         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45817         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45818         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
45819         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
45820         test_*_SOURCES.
45821
45822 2006-01-18  Simon Josefsson  <jas@extundo.com>
45823
45824         * modules/socklen (Depends-on): Depend on sys_socket.
45825
45826 2006-01-18  Simon Josefsson  <jas@extundo.com>
45827
45828         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
45829         modules/des-tests, modules/gc-arcfour-tests,
45830         modules/gc-arctwo-tests, modules/gc-des-tests,
45831         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
45832         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
45833         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
45834         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
45835         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
45836         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
45837         $(EXEEXT) to automake TESTS variable, for mingw32.
45838
45839 2006-01-17  Simon Josefsson  <jas@extundo.com>
45840
45841         * modules/socklen (Include): Need sys/socket.h.
45842
45843 2006-01-17  Bruno Haible  <bruno@clisp.org>
45844
45845         * modules/ssize_t (Include): Add <sys/types.h>.
45846
45847 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
45848
45849         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
45850         it's not portable and it doesn't work with cross-compiles.
45851         Problem reported by Bruno Haible.  Fix missing-$ typo in
45852         'test "gl_cv_ignore_unused_libraries" ...' that prevented
45853         -zignore from being used with Sun's C compiler.
45854
45855 2006-01-12  Simon Josefsson  <jas@extundo.com>
45856
45857         * lib/base64.c: Fix warning, reported by Bruno Haible
45858         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
45859
45860 2006-01-12  Bruno Haible  <bruno@clisp.org>
45861
45862         * modules/ldd: New file.
45863         * build-aux/ldd.sh.in: New file.
45864         * MODULES.html.sh (Support for building libraries and executables): Add
45865         ldd.
45866
45867 2006-01-12  Bruno Haible  <bruno@clisp.org>
45868
45869         * m4/ldd.m4: New file.
45870
45871 2006-01-12  Bruno Haible  <bruno@clisp.org>
45872
45873         * gnulib-tool (func_import, func_create_testdir): Don't go into an
45874         endless loop while replacing $auxdir with build-aux.
45875
45876 2006-01-11  Simon Josefsson  <jas@extundo.com>
45877
45878         * lib/stdint_.h (SIZE_MAX): Add missing (.
45879
45880 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
45881
45882         Sync from coreutils.
45883         * lib/md5.c: Fix commentary typos.
45884         (alignof, UNALIGNED_P): No need for a GCC-specific version.
45885         * lib/md5.h (__attribute__): Remove; unused.
45886         * lib/sha1.c: Fix commentary to match md5 better.
45887         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
45888         so that we don't need to worry about alignment.  All uses changed.
45889         This merges the 2005-10-28 md5 change into sha1.
45890
45891 2006-01-11  Jim Meyering  <jim@meyering.net>
45892
45893         Sync from coreutils.
45894         * lib/md5.c (OP): Fix spacing.
45895
45896 2006-01-11  Bruno Haible  <bruno@clisp.org>
45897
45898         Ensure automatic ordering between gl_LOCK and gl_ARGP.
45899         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
45900         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
45901
45902 2006-01-11  Bruno Haible  <bruno@clisp.org>
45903
45904         Ensure automatic ordering between gl_LOCK and gl_ARGP.
45905         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
45906         the "early" section as well.
45907
45908 2006-01-11  Bruno Haible  <bruno@clisp.org>
45909
45910         Avoid "ar: no archive members specified" error on MacOS X.
45911         * gnulib-tool (func_modules_add_dummy): New function.
45912         (func_import, func_create_testdir): Invoke it.
45913
45914 2006-01-11  Bruno Haible  <bruno@clisp.org>
45915
45916         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
45917         with $auxdir in AC_CONFIG_FILES statements.
45918
45919 2006-01-11  Bruno Haible  <bruno@clisp.org>
45920
45921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45922         Initialize also noinst_HEADERS to empty.
45923
45924 2006-01-11  Bruno Haible  <bruno@clisp.org>
45925
45926         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
45927         variables.
45928         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
45929         autoreconf.
45930
45931 2006-01-11  Bruno Haible  <bruno@clisp.org>
45932
45933         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
45934         overridable by the user.
45935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45936
45937 2006-01-10  Simon Josefsson  <jas@extundo.com>
45938
45939         * modules/sys_socket: New file.
45940
45941 2006-01-10  Simon Josefsson  <jas@extundo.com>
45942
45943         * m4/sys_socket_h.m4: New file.
45944
45945 2006-01-10  Simon Josefsson  <jas@extundo.com>
45946
45947         * lib/socket_.h: New file.
45948
45949 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45950
45951         * modules/readutmp (Maintainer): Add myself.
45952
45953 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45954
45955         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
45956         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
45957         People who are still concerned with buggy memcmp implementations
45958         can invoke gl_FUNC_MEMCMP themselves.
45959
45960 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45961
45962         * lib/regex_internal.h (BITSET_WORD_BITS):
45963         Work around a bug in 64-bit PGC (before version 6.1-2), where the
45964         preprocessor mishandles large unsigned values as if they were signed.
45965         Problem reported by Claudio Fontana in
45966         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
45967
45968 2006-01-10  Jim Meyering  <jim@meyering.net>
45969
45970         Avoid the double-free (first in fts_read, second in fts_close) that
45971         would occur when an `active' directory is made inaccessible (e.g.,
45972         via chmod a-x) during a traversal.
45973         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
45974         before returning.  Reproduce this failure by
45975         mkdir -p a/b; cd a; chmod a-x . b
45976         Reported by Stavros Passas.
45977
45978         Sync from coreutils.
45979         * lib/sha1.c: Tweak grammar in a comment.
45980
45981 2006-01-10  Jim Meyering  <jim@meyering.net>
45982
45983         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
45984         Patch by Joerg Sonnenberger.
45985
45986 2006-01-10  Bruno Haible  <bruno@clisp.org>
45987
45988         * modules/readutmp: Depend on module free.
45989         * modules/strtok_r: Depend on module restrict.
45990
45991 2006-01-10  Bruno Haible  <bruno@clisp.org>
45992
45993         * modules/gettext (configure.ac): Add an invocation of
45994         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
45995
45996 2006-01-10  Bruno Haible  <bruno@clisp.org>
45997
45998         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
45999         Reported by Werner Lemberg <wl@gnu.org>.
46000
46001 2006-01-10  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/localcharset.c: Update from GNU gettext.
46004
46005 2006-01-10  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/argp.h (__const): Remove macro. Use const instead.
46008         * lib/argp-fmtstream.h (__const): Likewise.
46009         * lib/glob_.h (__const): Remove macro.
46010         * lib/glob-libc.h: Use const instead of __const.
46011
46012 2006-01-10  Bruno Haible  <bruno@clisp.org>
46013
46014         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46015         variable.
46016         Needed to avoid an automake error regarding the 'gettext' module.
46017
46018 2006-01-09  Simon Josefsson  <jas@extundo.com>
46019
46020         * modules/inet_ntop (Depends-on): Add restrict.
46021
46022 2006-01-09  Simon Josefsson  <jas@extundo.com>
46023
46024         * modules/gc-rijndael-tests (License): Put under LGPL.
46025
46026         * modules/gc-des-tests (License): Likewise.
46027
46028         * modules/gc-arcfour-tests (License): Likewise.
46029
46030         * modules/gc-arctwo-tests (License): Likewise.
46031
46032         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46033
46034         * modules/gc-hmac-sha1-tests (Files): Likewise.
46035
46036         * modules/gc-hmac-md5-tests (License): Likewise.
46037
46038         * modules/gc-sha1-tests (License): Likewise.
46039
46040         * modules/gc-md5-tests (License): Likewise.
46041
46042         * modules/gc-md4-tests (License): Likewise.
46043
46044         * modules/gc-md2-tests (License): Likewise.
46045
46046         * modules/gc-tests (License): Likewise.
46047
46048         * modules/des-tests (License): Likewise.
46049
46050         * modules/md4-tests (License): Likewise.
46051
46052         * modules/md2-tests (License): Likewise.
46053
46054 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46055
46056         Sync from coreutils:
46057
46058         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46059         * modules/lib-ignore: New file.
46060         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46061         chdir-safer.m4, lchmod.m4.
46062         * modules/openat: Add mkdirat.c, openat-priv.h.
46063
46064 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46065
46066         Sync from coreutils.
46067         * m4/lib-ignore.m4: New file.
46068         * m4/lchmod.m4: New file.
46069
46070 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46071
46072         Sync from coreutils.
46073         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46074         for write access: POSIX says that must fail.
46075         * lib/fts.c (diropen): Likewise.
46076         * lib/save-cwd.c (save_cwd): Likewise.
46077         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46078         well, for minor improvements on hosts that lack O_DIRECTORY.
46079         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46080         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46081         Fall back on chown if open failed with EACCES.
46082
46083         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46084         Report an error at compile-time if only a 1-second nominal clock
46085         resolution is found.
46086
46087         * lib/lchmod.h: New file.
46088         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46089         (make_dir_parents): Use lchown rather than chown, and
46090         lchmod rather than chmod.
46091
46092         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46093         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46094         "proc" reported by n0dalus.
46095
46096         * lib/mountlist.c: Include <limits.h>.
46097         (dev_from_mount_options)
46098         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46099         New function.  It no longer assumes "dev=" has the System V meaning
46100         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46101         (read_file_system_list)
46102         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46103         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46104         dev= in that case.
46105
46106         * lib/posixtm.h (PDS_PRE_2000): New macro.
46107         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46108         allow_century.  All usages changed.  Reject dates outside the range
46109         1969-1999 if PDS_PRE_2000 is used.
46110
46111 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46112
46113         Sync from coreutils.
46114         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46115         (Time of day items): Mention the possibility of leap seconds.
46116         Problem reported by Dr. David Alan Gilbert.
46117
46118 2006-01-09  Jim Meyering  <jim@meyering.net>
46119
46120         Sync from coreutils.
46121
46122         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46123
46124         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46125
46126         * lib/modechange.c (mode_compile): Reject an invalid mode string
46127         that starts with an octal digit.  From Andreas Gruenbacher.
46128
46129         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46130         and dup to open_safer and dup_safer, respectively.
46131         (openat_permissive): Fix typo in comment.
46132
46133         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46134         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46135         (_): Remove; no longer needed.
46136         (openat): Renamed from rpl_openat; no need for rpl_openat
46137         since openat.h renames openat for us.
46138         Replace most of the body with a call to openat_permissive,
46139         to avoid duplicate code.
46140         Port to (probably hypothetical) environments were mode_t is
46141         wider than int.
46142         (openat_permissive): Require mode arg, so that we can check
46143         types better.  Put it just after flags.  Change cwd failure
46144         indicator from pointer-to-bool to pointer-to-errno-value.
46145         All callers changed.
46146         Invoke openat_save_fail and/or openat_restore_fail if
46147         cwd_errno is null, so that openat can call us.
46148         (openat_permissive, fdopendir, fstatat, unlinkat):
46149         Simplify errno handling to avoid some duplicate code,
46150         as it's OK to set errno on success.
46151         * lib/openat.h: Revamp code so that function macros depend on
46152         __OPENAT_PREFIX only, not also on AT_FDCWD.
46153         (openat_ro): Remove.  Caller changed to use openat_permissive.
46154         (openat_permissive): Now a macro, if not a function.
46155         (openat_restore_fail, openat_save_fail): Now always functions,
46156         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46157
46158         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46159         and openat.c.
46160         * lib/mkdirat.c: Include openat-priv.h.
46161         Remove definitions of macros defined therein.
46162         * lib/openat.c: Likewise.
46163
46164         * lib/mkdirat.c (mkdirat): New file and function.
46165         * lib/openat.h (mkdirat): Declare.
46166
46167         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46168
46169         * lib/openat.h (openat_permissive): Declare.
46170         (openat_ro): Define.
46171
46172         * lib/openat.c (EXPECTED_ERRNO): New macro.
46173         (openat_permissive): New function -- used in remove.c rewrite.
46174         (all functions): Set errno just before returning, only if there
46175         was an actual failure.
46176         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46177
46178         Emulate openat-family functions using Linux's procfs, if possible.
46179         Idea and some code based on Ulrich Drepper's glibc changes.
46180
46181         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46182         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46183         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46184         before falling back on save_cwd and restore_cwd.
46185         (fdopendir, fstatat, unlinkat): Likewise.
46186
46187         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46188         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46189
46190         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46191         as second argument to va_arg.  Otherwise, some versions of gcc
46192         warn that `if this code is reached, the program will abort'.
46193
46194 2006-01-09  Jim Meyering  <jim@meyering.net>
46195
46196         Sync from coreutils.
46197         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46198         Require openat-priv.h.
46199
46200 2006-01-09  Bruno Haible  <bruno@clisp.org>
46201
46202         * modules/strnlen (Include): Use strnlen.h.
46203
46204 2006-01-09  Bruno Haible  <bruno@clisp.org>
46205
46206         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46207
46208 2006-01-09  Bruno Haible  <bruno@clisp.org>
46209
46210         * lib/sysexit_.h (EX_OK): New macro.
46211         Suggested by Martin Lambers <marlam@marlam.de>.
46212
46213 2006-01-09  Bruno Haible  <bruno@clisp.org>
46214
46215         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46216         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46217
46218 2006-01-09  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46221         numbers.
46222
46223 2006-01-09  Bruno Haible  <bruno@clisp.org>
46224
46225         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46226         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46227         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46228         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46229
46230 2006-01-09  Bruno Haible  <bruno@clisp.org>
46231
46232         * build-aux/javacomp.sh.in: New file, moved from lib/.
46233         * modules/javacomp-script (Files): Update.
46234         (configure.ac): Add AC_CONFIG_FILES invocation.
46235         (EXTRA_DIST): Remove variable.
46236
46237         * build-aux/javaexec.sh.in: New file, moved from lib/.
46238         * modules/javaexec (Files): Update.
46239         (configure.ac): Add AC_CONFIG_FILES invocation.
46240         (EXTRA_DIST): Remove javaexec.sh.in.
46241
46242         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46243         * modules/csharpcomp-script (Files): Update.
46244         (configure.ac): Add AC_CONFIG_FILES invocation.
46245         (EXTRA_DIST): Remove variable.
46246
46247         * build-aux/csharpexec.sh.in: New file, moved from lib/.
46248         * modules/csharpexec (Files): Update.
46249         (configure.ac): Add AC_CONFIG_FILES invocation.
46250         (EXTRA_DIST): Remove csharpexec.sh.in.
46251
46252 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46253
46254         Sync from coreutils.
46255
46256         Add POSIX ACL support
46257         * lib/acl.h (copy_acl, set_acl): Add declarations.
46258         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46259         systems other than Linux.
46260         (chmod_or_fchmod): New function: use fchmod when possible,
46261         and chmod otherwise.
46262         (file_has_acl): Add a POSIX ACL implementation, with a
46263         Linux-specific subcase.
46264         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46265         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
46266         acls are unsupported.
46267         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46268         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
46269         are unsupported.
46270
46271 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
46272
46273         Sync from coreutils.
46274         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46275
46276 2006-01-07  Bruno Haible  <bruno@clisp.org>
46277
46278         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46279         gl_EARLY.
46280
46281 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46282
46283         * lib/strftime.c (tzname): Don't declare if it is already #defined.
46284         Problem reported for Mingw by Mark Junker.
46285
46286 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46287
46288         * README: Gnulib normally doesn't generate a tarball.
46289
46290 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
46291
46292         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46293         long int, not int, for nanosecond counts, so that people who are
46294         used to POSIX struct timespec won't be surprised.  Reported by Jim
46295         Meyering.
46296
46297 2005-12-28  Bruno Haible  <bruno@clisp.org>
46298
46299         * build-aux/config.rpath: Update from GNU gettext.
46300
46301 2005-12-16  Jim Meyering  <jim@meyering.net>
46302
46303         * modules/fprintftime: New module.
46304         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46305
46306 2005-12-16  Jim Meyering  <jim@meyering.net>
46307
46308         * m4/fprintftime.m4: New file.
46309
46310 2005-12-16  Jim Meyering  <jim@meyering.net>
46311
46312         * lib/fprintftime.c, lib/fprintftime.h: New files.
46313
46314 2005-12-15  Simon Josefsson  <jas@extundo.com>
46315
46316         * modules/socklen (configure.ac): Fix M4 macro name, to align with
46317         new m4/socklen.m4.
46318
46319 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46320
46321         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46322         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46323
46324 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46325
46326         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46327         * lib/argp-help.c (fill_in_uparams): Check if the constructed
46328         struct uparams is valid. Fall back to the default values if it is
46329         not.
46330
46331 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46332
46333         * modules/argp (Files): Add argp-pin.c
46334         (Depends-on): dirname
46335         (lib_SOURCES): Add argp-pin.c
46336
46337 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46338
46339         * m4/argp.m4:  Check if program_invocation_name and
46340         program_invocation_short_name are declared and define appropriate
46341         macros if they are not.
46342
46343 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
46344
46345         * lib/argp-help.c (__argp_base_name): New function
46346         (__argp_short_program_name): Rewrite using __argp_base_name
46347         * lib/argp-namefrob.h: Define program_invocation_name and
46348         program_invocation_short_name if requested
46349         (__argp_base_name): Add prototype
46350         * lib/argp-parse.c (argp_def): Use gettext wrappers
46351         (argp_default_parser): Use __argp_base_name
46352         * lib/argp-pin.c: New file. Defines program_invocation_name and
46353         program_invocation_short_name on systems that lack them.
46354
46355 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46356
46357         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46358         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46359         porting problem reported by Georg Schwarz in
46360         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46361
46362 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
46363
46364         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46365         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46366         porting problem reported by Georg Schwarz in
46367         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46368
46369 2005-12-05  Bruno Haible  <bruno@clisp.org>
46370
46371         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46372         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46373         Reported by Mark Junker <mjscod@gmx.de>.
46374
46375 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
46376
46377         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46378         Use implementation from Albert Chin, with some
46379         comments/corrections by Stepan Kasal and myself.
46380
46381 2005-12-02  Bruno Haible  <bruno@clisp.org>
46382
46383         * gnulib-tool (func_import): Accept GPLed build tool modules when
46384         --lgpl is given.
46385         * modules/csharpcomp-script: New file.
46386         * modules/csharpcomp: Depend on it.
46387         * modules/javacomp-script: New file.
46388         * modules/javacomp: Depend on it.
46389         Suggested by Simon Josefsson.
46390
46391 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
46392
46393         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46394         statement, to work around an HP-UX 10.20 compiler bug reported by
46395         Peter O'Gorman.
46396
46397 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46398
46399         * modules/savedir (Depends-on): Add openat.
46400
46401 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
46402
46403         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46404         (uintmax_t) [defined uintmax_t]: Do not declare.
46405         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46406         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46407         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
46408         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46409         sake of portability to weird hosts that C allows (though we don't
46410         know of any practical examples).
46411
46412         * lib/savedir.h (fdsavedir): New decl.
46413         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46414         contains most of the former guts of savedir.
46415         (savedir): Use savedirstream.
46416         Include "openat.h".
46417
46418 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
46419
46420         * modules/obstack (Files): Add m4/ulonglong.m4.
46421         Problem reported by Davide Angelocola.
46422
46423 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46424
46425         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46426         coreutils no longer futzes with rounding modes.
46427
46428 2005-11-14  Jim Meyering  <jim@meyering.net>
46429
46430         * lib/mkstemp-safer.c: Include <config.h>, required for possible
46431         replacement of mkstemp.
46432
46433 2005-11-10  Simon Josefsson  <jas@extundo.com>
46434
46435         * lib/readline.c: Remove EOL.
46436
46437 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46438
46439         * modules/gethrxtime (Depends-on): Add gettime.
46440
46441 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46442
46443         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46444         or gettimeofday; no longer needed.
46445
46446 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
46447
46448         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46449         time business.
46450         (gethrxtime) [! (HAVE_NANOUPTIME
46451         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46452         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46453         our own approximation.
46454
46455 2005-11-08  Eric Blake  <ebb9@byu.net>
46456
46457         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46458
46459 2005-11-08  Eric Blake  <ebb9@byu.net>
46460
46461         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46462
46463 2005-11-04  Bruno Haible  <bruno@clisp.org>
46464
46465         * gnulib-tool: Implement --update mode.
46466
46467 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         Fix porting problem reported by Theodoros V. Kalamatianos.
46470         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46471         Don't assume that futimes failing means we must fail.
46472
46473 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
46474
46475         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46476         variables to suggest the intended function of the PATH_MAX check.
46477
46478 2005-10-30  Kean Johnston  <jkj@sco.com>
46479
46480         Trivial changes to support SCO systems.
46481         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46482         as PATH_MAX.
46483         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46484         where __ptr is null when no I/O is pending.
46485
46486 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
46487
46488         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46489         leave errno alone.  Problem reported by Dmitry V. Levin.
46490
46491 2005-10-28  Simon Josefsson  <jas@extundo.com>
46492
46493         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46494         Test more.
46495
46496         * tests/test-gc-md2.c, tests/test-md2.c: New files.
46497
46498         * modules/md2, modules/md2-tests: New files.
46499
46500 2005-10-28  Simon Josefsson  <jas@extundo.com>
46501
46502         * m4/inet_ntop.m4: More tests.
46503
46504         * m4/gc-md2.m4, md2.m4: New file.
46505
46506 2005-10-28  Simon Josefsson  <jas@extundo.com>
46507
46508         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46509         "restrict" keywords, as per POSIX.  Protect the function
46510         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46511         Don't use K&R prototypes.  Check the sprintf return values.
46512         Re-define EAFNOSUPPORT if not present.  Indent.
46513
46514         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46515         suggested by Bruno Haible <bruno@clisp.org>.
46516
46517         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
46518
46519         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
46520
46521         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
46522         libgcrypt).
46523
46524         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
46525
46526         * lib/md2.h, lib/md2.c: New files.
46527
46528 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
46529
46530         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
46531         errno alone.  Problem reported by Frederic Jolliton.
46532
46533 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46534
46535         * modules/verify (License): Change from GPL to LGPL.  This is a
46536         tiny module and there are apparently near-equivalents that are
46537         under the BSD license.
46538
46539 2005-10-24  Simon Josefsson  <jas@extundo.com>
46540
46541         * modules/sha1: Relicense to LGPL.
46542
46543 2005-10-24  Simon Josefsson  <jas@extundo.com>
46544
46545         * lib/md4.h: Shrink buffer size, now that we changed the type.
46546
46547 2005-10-23  Simon Josefsson  <jas@extundo.com>
46548
46549         * gnulib-tool (func_import): Fix --tests-base.
46550
46551 2005-10-22  Simon Josefsson  <jas@extundo.com>
46552
46553         * modules/arcfour (Depends-on): Need stdint.
46554
46555 2005-10-22  Simon Josefsson  <jas@extundo.com>
46556
46557         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
46558         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
46559
46560 2005-10-22  Simon Josefsson  <jas@extundo.com>
46561
46562         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
46563         suggested by Bruno Haible <bruno@clisp.org>.
46564
46565 2005-10-22  Simon Josefsson  <jas@extundo.com>
46566
46567         * lib/crc.h: Include stddef.h, for size_t.
46568
46569 2005-10-22  Simon Josefsson  <jas@extundo.com>
46570
46571         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
46572         arcfour_context struct (simplify test vector testing in GNU
46573         Shishi).
46574
46575 2005-10-21  Simon Josefsson  <jas@extundo.com>
46576
46577         * modules/des, modules/des-tests: New files.
46578
46579         * modules/gc-des, modules/gc-des-tests: New files.
46580
46581         * tests/test-des.c, tests/test-gc-des.c: New file.
46582
46583 2005-10-21  Simon Josefsson  <jas@extundo.com>
46584
46585         * modules/arctwo, modules/arctwo-tests: New files.
46586
46587         * tests/test-arctwo.c: New file.
46588
46589         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
46590
46591         * tests/test-gc-arctwo.c: New file.
46592
46593 2005-10-21  Simon Josefsson  <jas@extundo.com>
46594
46595         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
46596         Bruno Haible <bruno@clisp.org>.
46597
46598         * m4/gc-des.m4: New file.
46599
46600 2005-10-21  Simon Josefsson  <jas@extundo.com>
46601
46602         * m4/arctwo.m4: New file.
46603
46604         * m4/gc-arctwo.m4: New file.
46605
46606 2005-10-21  Simon Josefsson  <jas@extundo.com>
46607
46608         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
46609         block.
46610
46611 2005-10-21  Simon Josefsson  <jas@extundo.com>
46612
46613         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
46614         <bruno@clisp.org>.
46615
46616         * lib/hmac-sha1.c (hmac_sha1): Likewise.
46617
46618         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
46619         Bruno Haible <bruno@clisp.org>.
46620
46621         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
46622         <bruno@clisp.org>.
46623
46624 2005-10-21  Simon Josefsson  <jas@extundo.com>
46625
46626         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
46627
46628 2005-10-21  Simon Josefsson  <jas@extundo.com>
46629
46630         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
46631
46632 2005-10-21  Simon Josefsson  <jas@extundo.com>
46633
46634         * lib/des.h, lib/des.c: New files.
46635
46636         * lib/gc-gnulib.c: Support DES.c
46637
46638 2005-10-21  Simon Josefsson  <jas@extundo.com>
46639
46640         * lib/arctwo.h, lib/arctwo.c: New files.
46641
46642         * lib/gc-gnulib.c: Support ARCTWO.
46643
46644 2005-10-21  Simon Josefsson  <jas@extundo.com>
46645
46646         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
46647         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46648
46649 2005-10-21  Simon Josefsson  <jas@extundo.com>
46650
46651         * gnulib-tool (func_import, func_create_testdir): Define automake
46652         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
46653         Makefile.am snippet),
46654         suggested by Bruno Haible <bruno@clisp.org>.
46655
46656         * modules/gc (Makefile.am): Use it.
46657
46658 2005-10-21  Bruno Haible  <bruno@clisp.org>
46659
46660         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
46661         patch.
46662
46663 2005-10-19  Simon Josefsson  <jas@extundo.com>
46664
46665         * tests/test-gc-rijndael.c: New file.
46666
46667         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
46668
46669 2005-10-19  Simon Josefsson  <jas@extundo.com>
46670
46671         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
46672         interface too.
46673
46674 2005-10-19  Simon Josefsson  <jas@extundo.com>
46675
46676         * tests/test-gc-arcfour.c: New file.
46677
46678         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
46679
46680 2005-10-19  Simon Josefsson  <jas@extundo.com>
46681
46682         * modules/gc-md4, modules/gc-md4-tests: New file.
46683
46684         * tests/test-gc-md4.c: New file.
46685
46686 2005-10-19  Simon Josefsson  <jas@extundo.com>
46687
46688         * m4/gc-md4.m4: New file.
46689
46690 2005-10-19  Simon Josefsson  <jas@extundo.com>
46691
46692         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
46693         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
46694         <kasal@ucw.cz>.
46695
46696 2005-10-19  Simon Josefsson  <jas@extundo.com>
46697
46698         * m4/gc-arcfour.m4: New file.
46699
46700         * m4/gc-rijndael.m4: New file.
46701
46702 2005-10-19  Simon Josefsson  <jas@extundo.com>
46703
46704         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
46705
46706 2005-10-19  Simon Josefsson  <jas@extundo.com>
46707
46708         * lib/gc-gnulib.c: Support ARCFOUR.
46709
46710 2005-10-19  Simon Josefsson  <jas@extundo.com>
46711
46712         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
46713         support.
46714
46715         * lib/gc.h: Add ECB enum type.
46716
46717         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
46718
46719 2005-10-18  Simon Josefsson  <jas@extundo.com>
46720
46721         * tests/test-md5.c: New file.
46722
46723         * modules/md5-tests: New file.
46724
46725 2005-10-18  Simon Josefsson  <jas@extundo.com>
46726
46727         * tests/test-md4.c: New file.
46728
46729         * modules/md4, modules/md4-tests: New files.
46730
46731 2005-10-18  Simon Josefsson  <jas@extundo.com>
46732
46733         * m4/md4.m4: New file.
46734
46735 2005-10-18  Simon Josefsson  <jas@extundo.com>
46736
46737         * lib/md4.h, lib/md4.c: New files, based on md5.?.
46738
46739 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
46740
46741         * gnulib-tool (func_create_testdir): Omit the second check whether
46742         BUILT_SOURCES in nonempty.
46743
46744 2005-10-17  Simon Josefsson  <jas@extundo.com>
46745
46746         * tests/test-rijndael.c: New file.
46747
46748 2005-10-17  Simon Josefsson  <jas@extundo.com>
46749
46750         * modules/sha1: Depend on stdint instead of md5.
46751
46752         * modules/md5: Depend on stdint, remove uint32_t.
46753
46754 2005-10-17  Simon Josefsson  <jas@extundo.com>
46755
46756         * modules/gc-sha1-tests: New file.
46757
46758         * tests/test-gc-sha1.c: New file.
46759
46760 2005-10-17  Simon Josefsson  <jas@extundo.com>
46761
46762         * m4/md5.m4: Remove call to uint32_t.m4.
46763
46764 2005-10-17  Simon Josefsson  <jas@extundo.com>
46765
46766         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
46767
46768         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
46769         md5.h.
46770
46771         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
46772
46773         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
46774
46775 2005-10-17  Simon Josefsson  <jas@extundo.com>
46776
46777         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
46778
46779 2005-10-17  Simon Josefsson  <jas@extundo.com>
46780
46781         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
46782
46783 2005-10-17  Simon Josefsson  <jas@extundo.com>
46784
46785         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
46786
46787         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
46788
46789 2005-10-17  Bruno Haible  <bruno@clisp.org>
46790
46791         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
46792         that it can also be used in a test.
46793
46794 2005-10-16  Bruno Haible  <bruno@clisp.org>
46795
46796         * gnulib-tool (func_emit_tests_Makefile_am): Also define
46797         TESTS_ENVIRONMENT, so that individual tests can augment it.
46798
46799         * gnulib-tool (func_create_testdir): Use an intermediate target for
46800         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
46801         macros, like $(ALLOCA_H), which cannot be passed through the command
46802         line.
46803
46804 2005-10-15  Simon Josefsson  <jas@extundo.com>
46805
46806         * modules/rijndael-tests: New file.
46807
46808         * modules/rijndael: New file.
46809
46810 2005-10-15  Simon Josefsson  <jas@extundo.com>
46811
46812         * m4/rijndael.m4: New file.
46813
46814 2005-10-15  Simon Josefsson  <jas@extundo.com>
46815
46816         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
46817
46818         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
46819
46820 2005-10-14  Simon Josefsson  <jas@extundo.com>
46821
46822         * tests/test-arcfour.c: New file.
46823
46824         * modules/arcfour, modules/arcfour-tests: New files.
46825
46826 2005-10-14  Simon Josefsson  <jas@extundo.com>
46827
46828         * m4/arcfour.m4: New file.
46829
46830 2005-10-14  Simon Josefsson  <jas@extundo.com>
46831
46832         * lib/arcfour.h, lib/arcfour.c: New files.
46833
46834 2005-10-14  Roland McGrath  <roland@redhat.com>
46835
46836         Import from libc.  [BZ #1331]
46837         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
46838         macro argument.
46839         Reported by Matej Vela <vela@debian.org>.
46840
46841 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46842
46843         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
46844         include <wchar.h>; no longer needed.
46845
46846 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
46847
46848         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
46849
46850 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
46851         and  Ulrich Drepper  <drepper@redhat.com>
46852
46853         Import from libc.
46854         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
46855         instead of inline stream orientation test and two separate
46856         function calls.  Pay no attention to USE_IN_LIBIO.
46857
46858 2005-10-13  Simon Josefsson  <jas@extundo.com>
46859
46860         * modules/gc-hmac-md5-tests: New file.
46861
46862         * tests/test-gc-hmac-sha1.c: New file.
46863
46864         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
46865
46866         * modules/gc-hmac-md5-tests: New file.
46867
46868         * tests/test-gc-md5.c: New file.
46869
46870         * modules/gc-md5-tests: New file.
46871
46872 2005-10-13  Simon Josefsson  <jas@extundo.com>
46873
46874         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
46875         Move memory allocation outside of loop.
46876
46877 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
46878
46879         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
46880         intermediate directory is in a read-only file system.  Problem
46881         reported by Eric Blake.
46882
46883 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
46884
46885         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
46886
46887 2005-10-12  Simon Josefsson  <jas@extundo.com>
46888
46889         * tests/test-hmac-sha1.c: New file.
46890
46891         * modules/hmac-sha1-tests: New file.
46892
46893         * modules/hmac-sha1: New file.
46894
46895 2005-10-12  Simon Josefsson  <jas@extundo.com>
46896
46897         * modules/gc-sha1: New file.
46898
46899 2005-10-12  Simon Josefsson  <jas@extundo.com>
46900
46901         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
46902
46903         * tests/test-gc-pbkdf2-sha1.c: New file.
46904
46905 2005-10-12  Simon Josefsson  <jas@extundo.com>
46906
46907         * modules/gc-md5, modules/gc-hmac-md5: New files.
46908
46909         * modules/gc (Files): Remove md5, memxor and hmac files.
46910
46911 2005-10-12  Simon Josefsson  <jas@extundo.com>
46912
46913         * m4/gc-pbkdf2-sha1.m4: New file.
46914
46915         * m4/gc-hmac-sha1.m4: New file.
46916
46917         * m4/gc-sha1: New file.
46918
46919         * m4/hmac-sha1.m4: New file.
46920
46921 2005-10-12  Simon Josefsson  <jas@extundo.com>
46922
46923         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
46924
46925         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
46926
46927 2005-10-12  Simon Josefsson  <jas@extundo.com>
46928
46929         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
46930         suggested by Bruno Haible <bruno@clisp.org>.
46931
46932 2005-10-12  Simon Josefsson  <jas@extundo.com>
46933
46934         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
46935
46936 2005-10-12  Simon Josefsson  <jas@extundo.com>
46937
46938         * lib/gc-pbkdf2-sha1.c: New file.
46939
46940         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
46941
46942 2005-10-12  Simon Josefsson  <jas@extundo.com>
46943
46944         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
46945
46946         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
46947
46948 2005-10-12  Simon Josefsson  <jas@extundo.com>
46949
46950         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
46951         GC_USE_HMAC_MD5, respectively.
46952
46953         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
46954         (gc_md5): Fix typo.
46955
46956         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
46957
46958         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
46959
46960         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
46961
46962 2005-10-12  Bruno Haible  <bruno@clisp.org>
46963
46964         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
46965         Reported by Stepan Kasal <kasal@ucw.cz>.
46966
46967 2005-10-11  Simon Josefsson  <jas@extundo.com>
46968
46969         * tests/test-crc.c: New file.
46970
46971         * modules/crc, modules/crc-tests: New files.
46972
46973 2005-10-11  Simon Josefsson  <jas@extundo.com>
46974
46975         * m4/crc.m4: New file.
46976
46977 2005-10-11  Simon Josefsson  <jas@extundo.com>
46978
46979         * lib/gc.h: Add gc_hash and gc_hash_buffer.
46980
46981         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
46982
46983         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
46984
46985 2005-10-11  Simon Josefsson  <jas@extundo.com>
46986
46987         * lib/crc.h, lib/crc.c: New files.
46988
46989         * lib/gc.h (gc_hash_buffer): Add doc.
46990
46991 2005-10-11  Bruno Haible  <bruno@clisp.org>
46992
46993         * modules/c-strcasestr: New file.
46994         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
46995
46996 2005-10-11  Bruno Haible  <bruno@clisp.org>
46997
46998         * modules/c-strcase: New file.
46999         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47000
47001 2005-10-11  Bruno Haible  <bruno@clisp.org>
47002
47003         * lib/strcasecmp.c: Include limits.h.
47004         (strcasecmp): Avoid integer overflow on exotic platforms.
47005         * lib/strncasecmp.c: Include limits.h.
47006         (strncasecmp): Avoid integer overflow on exotic platforms.
47007         Reported by Paul Eggert.
47008
47009 2005-10-11  Bruno Haible  <bruno@clisp.org>
47010
47011         * lib/c-strcasestr.h: New file, from GNU gettext.
47012         * lib/c-strcasestr.c: New file, from GNU gettext.
47013
47014 2005-10-11  Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/c-strcase.h: New file, from GNU gettext.
47017         * lib/c-strcasecmp.c: New file, from GNU gettext.
47018         * lib/c-strncasecmp.c: New file, from GNU gettext.
47019
47020 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47021
47022         * modules/mempcpy (License): GPL -> LGPL.
47023         * modules/strchrnul (License): Likewise.
47024         * modules/sysexits (License): Likewise.
47025
47026 2005-10-08  Simon Josefsson  <jas@extundo.com>
47027
47028         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47029
47030 2005-10-07  Simon Josefsson  <jas@extundo.com>
47031
47032         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47033
47034 2005-10-06  Simon Josefsson  <jas@extundo.com>
47035
47036         * tests/test-hmac-md5.c: New file.
47037
47038         * modules/hmac-md5-tests: New file.
47039
47040         * modules/hmac-md5: New file.
47041
47042 2005-10-06  Simon Josefsson  <jas@extundo.com>
47043
47044         * m4/hmac-md5.m4: New file.
47045
47046         * m4/memxor.m4: Require gl_C_RESTRICT.
47047
47048 2005-10-06  Simon Josefsson  <jas@extundo.com>
47049
47050         * lib/memxor.c (memxor): Avoid casts and warnings.
47051
47052 2005-10-06  Simon Josefsson  <jas@extundo.com>
47053
47054         * lib/hmac-md5.c: New file.
47055
47056         * lib/hmac.h: New file.
47057
47058 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47059
47060         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47061         promotes to int, not unsigned int, to catch the AIX 5.3
47062         compiler bug.
47063
47064 2005-10-05  Simon Josefsson  <jas@extundo.com>
47065
47066         * modules/memxor: New file.
47067
47068         * modules/iconv (Files): Move config.rpath to havelib, it is used
47069         there.
47070
47071         * modules/havelib (Files): Add config.rpath.
47072
47073 2005-10-05  Simon Josefsson  <jas@extundo.com>
47074
47075         * m4/memxor.m4: New file.
47076
47077 2005-10-05  Simon Josefsson  <jas@extundo.com>
47078
47079         * lib/memxor.c (memxor): Fix compiler error.
47080
47081         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47082         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47083
47084         * lib/memxor.h, lib/memxor.c: New files.
47085
47086         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47087         we assume all systems have it, suggested by Jim Meyering
47088         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47089         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47090         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47091         same reasons.
47092
47093 2005-10-05  Simon Josefsson  <jas@extundo.com>
47094
47095         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47096
47097 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47098
47099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47100         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47101         needed, since the source code now assumes these .h files.
47102
47103 2005-10-05  Derek Price  <derek@ximbiot.com>
47104
47105         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47106
47107 2005-10-05  Bruno Haible  <bruno@clisp.org>
47108
47109         * modules/stdint (License): Change to LGPL.
47110
47111 2005-10-04  Simon Josefsson  <jas@extundo.com>
47112
47113         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47114         D. Baushke" <mdb@gnu.org>.
47115
47116 2005-10-04  Bruno Haible  <bruno@clisp.org>
47117
47118         * lib/verify.h (verify_true): Provide alternative definition for C++.
47119
47120 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47121
47122         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47123         (SSIZE_MAX): New macro, if not already defined.
47124         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47125         than 2 GiB.
47126
47127 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47128
47129         Sync from coreutils.
47130         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47131         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47132         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47133         ULLONG_MAX doesn't work with 2.7.2.1.
47134
47135 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47136
47137         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47138         From Ben Pfaff.
47139
47140         * modules/exclude (Depends-on): Depend on verify.
47141         * modules/strtoimax (Depends-on): Likewise.
47142         * modules/utimecmp (Depends-on): Likewise.
47143
47144 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47145
47146         * lib/exclude.c: Include verify.h.
47147         (verify): Remove.  All callers changed to use verify.h's version.
47148         * lib/strtoimax.c: Likewise.
47149         * lib/utimecmp.c: Likewis.e
47150
47151         Sync from coreutils.
47152         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47153         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47154         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47155         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47156         bother returning ENOSYS if settimeofday or stime fails; just let
47157         them return whatever errno they want to return.
47158         * lib/utimens.c: Include unistd.h, for dup2.
47159         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47160         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47161
47162 2005-10-02  Jim Meyering  <jim@meyering.net>
47163
47164         Sync from coreutils.
47165         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47166         from glibc-2.2.5 that fails for read-only files.
47167
47168 2005-10-02  Jim Meyering  <jim@meyering.net>
47169
47170         Sync from coreutils.
47171         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47172         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47173         `#if HAVE_CONFIG_H'.
47174         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47175         Remove AT_FDCWD test.
47176         Do not consume the fd unless successful.
47177         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47178         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47179         block, so that we don't even try to compile it if settimeofday is
47180         available.  This works around a compilation failure on OSF1 V5.1,
47181         due to stime requiring a `long int*' while tv_sec is `int'.
47182
47183 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47184
47185         Sync from coreutils.
47186         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47187         against `yes', rather than just testing for nonempty.
47188
47189 2005-10-01  Simon Josefsson  <jas@extundo.com>
47190
47191         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47192         and Darwin.
47193
47194         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47195         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47196         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47197         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47198         Check if struct addrinfo is declared.
47199
47200 2005-10-01  Simon Josefsson  <jas@extundo.com>
47201
47202         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47203         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47204         AI_* and EAI_* definitions.  Protect function declarations.
47205
47206 2005-10-01  Jim Meyering  <jim@meyering.net>
47207
47208         Sync from coreutils.
47209
47210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47211         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
47212         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47213         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47214         in the inet and nsl libraries.  Required on Solaris 5.7.
47215
47216 2005-10-01  Jim Meyering  <jim@meyering.net>
47217
47218         Sync from coreutils.
47219         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47220         in the inet and nsl libraries.  Required on Solaris 5.7.
47221
47222 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
47223
47224         * lib/getdelim.c (getdelim): Remove unused variables.
47225
47226 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
47227
47228         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47229         so that the code works even with ancient cpp.  Portability problem
47230         with GCC 2.7.2.1 reported by Thomas M.Ott.
47231
47232 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
47233
47234         * modules/regex (Depends-on): Add strcase.
47235
47236         * modules/gethostname (Licence): Change from GPL to LGPL, since
47237         gethostname.c is a trivial implementation of a standard library
47238         function.
47239         * modules/poll (License): Change from GPL to LGPL, since it's
47240         derived from LGPL code.
47241
47242 2005-09-27  Jim Meyering  <jim@meyering.net>
47243
47244         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47245         HAVE_CONFIG_H.
47246
47247         * lib/intprops.h (signed_type_or_expr__): Define.
47248         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47249         for unsigned types.
47250
47251 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47252
47253         * lib/verify.h (verify_expr): Remove, replacing with:
47254         (verify_true): New macro that returns true instead of void.
47255         (verify_type__): Remove.
47256         (verify): Use verify_true rather than verify_type__.
47257
47258 2005-09-26  Bruno Haible  <bruno@clisp.org>
47259
47260         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47261         is necessary.
47262         (lib_SOURCES): Remove mbchar.c.
47263         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47264         (Files): Add m4/mbrtowc.m4.
47265         * modules/mbiter: Likewise.
47266         * modules/mbuiter: Likewise.
47267
47268 2005-09-26  Bruno Haible  <bruno@clisp.org>
47269
47270         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47271         compile mbchar.c if they are not both present.
47272         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47273         * m4/mbiter.m4 (gl_MBITER): Likewise.
47274         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47275         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47276         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47277
47278 2005-09-25  Jim Meyering  <jim@meyering.net>
47279
47280         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47281         also uses socklen_t.
47282
47283 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
47284
47285         * lib/utimens.c (ENOSYS): Define if not already defined.
47286         (futimens): Support having a null PATH if the file descriptor
47287         is nonnegative.
47288
47289         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47290         Remove.
47291         (__attribute): Define to empty unless GCC 3.1 or later.
47292         This works around a core dump on OpenBSD 3.4, which has GCC
47293         2.95.3, which dumps core when given __attribute__(()).  It also
47294         simplifies other tests, since we really don't want to bother with
47295         worrying about which ancient version of GCC supported what.
47296         Original problem reported by Yoann Vandoorselaere, with part of
47297         the fix suggested by Derek Price.
47298
47299 2005-09-24  Jim Meyering  <jim@meyering.net>
47300
47301         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47302         so we can once again use a positive bitfield width of 1 -- now we
47303         don't have to explain why we were using a bitfield width of 2.
47304
47305 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47306
47307         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47308         and similarly for the other external symbols.  Problem reported
47309         by James Gallager.
47310
47311         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47312         bug reported by Jim Meyering.
47313
47314         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47316         not needed, since socklen is a prerequisite module.
47317
47318 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47321         Problem reported by Eric Blake.
47322         (getaddrinfo): Initialize se so that it's not garbage.
47323         Redo internal storage allocation so that it doesn't make unportable
47324         assumptions about alignment.
47325         Fix a memory leak.
47326
47327         * lib/utimens.c (futimens): Use futimesat if available.
47328         Prefer it to futimes since it doesn't have the futimes bug.
47329
47330         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47331         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47332         Instead, declare a function that returns a pointer to an array,
47333         and use verify_type__ to declare the size of the array.
47334         Problem and germ of a solution reported by Bruno Haible.
47335         (verify_type__): Use 2, not 1, for bitfield size, to avoid
47336         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
47337
47338 2005-09-23  Jim Meyering  <jim@meyering.net>
47339
47340         Sync from coreutils.
47341         Correct build failure (socklen_t not defined) on at least
47342         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47343         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47344
47345 2005-09-23  Jim Meyering  <jim@meyering.net>
47346
47347         * modules/getaddrinfo (Depends-on): Add socklen.
47348
47349 2005-09-23  Bruno Haible  <bruno@clisp.org>
47350
47351         * tests/test-verify.c: New file.
47352
47353 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47354
47355         Sync from coreutils.
47356
47357         * modules/argmatch (Depends-on): Add verify.
47358         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47359         unistd-safer.
47360         * modules/save-cwd (Depends-on): Likewise.
47361
47362         * modules/openat (Files): Add lib/openat-die.c.
47363         (Depends-on): Remove error, exitfail.
47364         Add dirname.
47365
47366         * modules/verify: New file.
47367         * MODULES.html.sh (Diagnostics <assert.h>): New section,
47368         with "verify" module.
47369
47370 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47371
47372         Sync from coreutils.
47373
47374         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47375         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47376         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47377         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47378         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47379         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47380         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47381         Don't bother checking for string.h, stdlib.h, unistd.h.
47382         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47383         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47384         module's job.
47385         * m4/jm-macros.m4 (gl_MACROS): Likewise.
47386         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47387
47388         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47389         (gl_GETDATE): Use it.
47390
47391         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47392
47393 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         Sync from coreutils.
47396
47397         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47398         stat-time.h.
47399         * lib/argmatch.h: Include verify.h
47400         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47401         (ARGMATCH_ASSERT): Remove; unused.
47402         * lib/canonicalize.c: Assume STDC_HEADERS.
47403         * lib/exclude.c: Include "strcase.h".
47404         * lib/regex_internal.h [!defined _LIBC]: Likewise.
47405         * lib/getusershell.c: Include stdio--.h rather than stdio.h
47406         and stdio-safer.h.
47407         (getusershell): Call fopen, not fopen_safer.
47408         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47409         Do not include unistd-safer.h.
47410         (save_cwd): Don't call fd_safer; no longer needed
47411         now that we include fcntl--.h.
47412
47413         * lib/getdate.y (relative_time): New type.
47414         (RELATIVE_TIME_0): New constant.
47415         (parser_control): Use relative_time instead of doing it ourselves.
47416         (%union): Add new relative_time rel member.
47417         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47418         Now typeless.
47419         (relunit, relunit_snumber): Now of type rel.
47420         (zone, rel, relunit, get_date): Adjust to above changes.
47421
47422         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47423         Do not include unistd-safer.h.
47424         (getloadavg): Don't call fd_safer; no longer needed
47425         now that we include fcntl--.h.
47426
47427         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47428         (make_dir_parents): Treat ENOSYS like EEXIST.
47429
47430         Improve quality of diagnostics on restore_cwd failure.
47431         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
47432         (make_dir_parents): Last arg is now int * (for errno), not bool *.
47433         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47434         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47435         each time through the loop.  Do not diagnose restore_cwd failure;
47436         that is the caller's job (and perhaps the caller does not care).
47437
47438         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47439         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47440         If the file already exists but is not a directory, don't bother
47441         to try to make its parents.
47442         Close potential file descriptor leak if we can't chdir("/") (!).
47443         Don't always return true if chdir($PWD) fails; return true only
47444         if the requested action was done successfully (except for the
47445         chdir($PWD)).
47446         Don't log final directory unless we actually made it.
47447         Refactor to avoid duplicate code to fix up permissions.
47448         Don't attempt to fix up parent permissions if chdir($PWD) fails.
47449
47450         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47451         to make it a bit faster and (I hope) clearer.
47452         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47453         Fix bug in formats like %2N.
47454
47455         * lib/verify.h: New file.
47456
47457 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         Sync from coreutils.
47460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47461
47462 2005-09-22  Jim Meyering  <jim@meyering.net>
47463
47464         Sync from coreutils.
47465
47466         * m4/lstat.m4 (gl_FUNC_LSTAT):
47467         Use AC_LIBSOURCES to require lstat.c and lstat.h.
47468         Remove obsolete comment.
47469         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47470         * m4/xstrtod.m4: Likewise.
47471
47472         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47473
47474 2005-09-22  Jim Meyering  <jim@meyering.net>
47475
47476         Sync from coreutils.
47477
47478         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47479
47480         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47481         the .tm_year member, since otherwise gcc-4.0 would now warn about
47482         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47483
47484         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47485         order to avoid an unsuppressible warning from gcc on 64-bit systems.
47486
47487         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47488         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47489         when run in a time zone for which daylight savings time is in effect
47490         for the starting date.
47491
47492         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47493         stop us from restricting permissions of just-created absolute-named
47494         directories.
47495         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47496         to restore initial working directory.
47497         * lib/mkdir-p.c (make_dir_parents): New parameter:
47498         different_working_dir, to tell caller if/when we change the working
47499         directory and are unable to return to the initial one.
47500         * lib/mkdir-p.h (make_dir_parents): Update prototype.
47501         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47502         `return false'.  This fixes a bug introduced on 2004-07-30.
47503
47504         * lib/openat.c (fdopendir): Be sure to close the supplied
47505         file descriptor before returning.  This makes our replacement
47506         implementation a little closer to Solaris's, where fdopendir
47507         ties the file descriptor to the returned DIR* pointer.
47508         * lib/openat.c (unlinkat): New function.
47509         * lib/openat.h (unlinkat): Add prototype.
47510         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47511         (openat_restore_fail): Rename from openat_restore_die.
47512         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47513
47514         Provide an alternative to exiting immediately upon save_cwd or
47515         restore_cwd failure.  Now, an application can arrange e.g.,
47516         to perform a longjump in that case.
47517         * lib/openat.c: Include dirname.h.
47518         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
47519         (rpl_openat, fdopendir, fstatat): Call openat_save_die
47520         and openat_restore_die rather than calling error directly.
47521         Don't include "error.h" or "exitfail.h"; they're no longer needed.
47522
47523         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
47524         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
47525         define.
47526
47527         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
47528         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
47529                             int utc, int nanoseconds);
47530         Background:
47531         date should not have to allocate a megabyte of virtual memory to
47532         handle a format argument like +%1048575T.  When implemented with
47533         strftime, it must allocate such a buffer, use strftime to fill it
47534         in, print it, then free it.
47535         With fprintftime, it simply prints everything and exits.
47536         With no need for memory allocation, that's one fewer way to fail.
47537         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
47538         optional field width, not before, so we accept %9:z, not %:9z.
47539         (my_strftime): Be sure to use L_('x') for literals.
47540
47541         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
47542         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
47543         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
47544         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
47545         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
47546         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
47547         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
47548         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
47549         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
47550         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
47551         * lib/xgethostname.c, lib/xreadlink.c:
47552         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
47553
47554         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
47555         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
47556         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
47557         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47558         and don't include <sys/file.h>).
47559
47560 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
47561
47562         Sync from coreutils.
47563
47564         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
47565         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
47566         [!LDAV_DONE]: Avoid unused variable warning.
47567
47568 2005-09-21  Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/unicodeio.h (unicode_to_mb): New declaration.
47571
47572 2005-09-20  Derek Price  <derek@ximbiot.com>
47573
47574         * lib/getaddrinfo.c: Don't include <netdb.h> included from
47575         getaddrinfo.h.
47576
47577 2005-09-20  Bruno Haible  <bruno@clisp.org>
47578
47579         * gnulib-tool: Remove trailing slashes from the values specified for
47580         --source-base, --m4-base, --tests-base, --aux-dir.
47581         Suggested by Simon Josefsson <jas@extundo.com>.
47582
47583 2005-09-20  Bruno Haible  <bruno@clisp.org>
47584
47585         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
47586         func_modules_to_filelist, func_import, func_create_testdir): Make all
47587         sorting results locale-independent, so that gnulib-cache.m4 doesn't
47588         change when gnulib-tool is invoked in a different locale.
47589
47590 2005-09-19  Simon Josefsson  <jas@extundo.com>
47591
47592         * m4/socklen.m4: Fix typo.
47593
47594 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47595
47596         Use a consistent style for including <config.h>.
47597         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
47598         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
47599         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
47600         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
47601         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
47602         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
47603         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
47604         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
47605         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
47606         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
47607         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
47608         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
47609         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
47610         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
47611         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
47612         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
47613         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
47614         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
47615         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
47616         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
47617         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
47618         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
47619         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
47620         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
47621         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
47622         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
47623         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
47624         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
47625         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
47626         lib/xstrtoumax.c, lib/yesno.c:
47627         Standardize inclusion of config.h.
47628         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
47629         lib/inttostr.h:  Removed inclusion of config.h from header files.
47630         * lib/inttostr.c:  Adjusted in-tree users.
47631         * lib/timespec.h: Remove superfluous warning to include config.h.
47632         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
47633         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
47634         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
47635         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
47636         config.h with HAVE_CONFIG_H.
47637
47638 2005-09-19  Jim Meyering  <jim@meyering.net>
47639
47640         * modules/pathmax (License): Change to LGPL.
47641
47642 2005-09-19  Derek Price  <derek@ximbiot.com>
47643
47644         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
47645
47646 2005-09-19  Bruno Haible  <bruno@clisp.org>
47647
47648         * gnulib-tool (import): Provide default for --tests-base.
47649
47650 2005-09-19  Bruno Haible  <bruno@clisp.org>
47651
47652         * doc/quote.texi: New file, extracted from gnulib.texi.
47653         * doc/ctime.texi: New file, extracted from gnulib.texi.
47654         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
47655         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
47656         * doc/gnulib.texi: Include them.
47657
47658 2005-09-18  Bruno Haible  <bruno@clisp.org>
47659
47660         Portability fix.
47661         * gnulib-tool (func_readlink): New function.
47662         (func_ln_if_changed): Use it.
47663
47664 2005-09-18  Bruno Haible  <bruno@clisp.org>
47665
47666         * gnulib-tool: Support --with-tests also with --import.
47667         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
47668         (func_import): Use variables $testsbase and $inctests. Emit a
47669         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
47670         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
47671         SUBDIRS += $testsdir.
47672         (func_create_testdir): Update.
47673
47674 2005-09-18  Bruno Haible  <bruno@clisp.org>
47675
47676         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
47677         instead of $dry_run.
47678         (func_cp_if_changed, func_mv_if_changed): Remove functions.
47679         (func_ln_if_changed): Don't handle dry-run here.
47680         (func_import): In dry-run mode, detect more precisely which actions
47681         would be performed, and don't use "...ing" verbs.
47682
47683 2005-09-18  Bruno Haible  <bruno@clisp.org>
47684
47685         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
47686         (func_import): Use join on two temporary files instead of three nested
47687         loops, in order to determine which files are new or old.
47688
47689 2005-09-18  Bruno Haible  <bruno@clisp.org>
47690
47691         * gnulib-tool (func_import): Comment out code that spits out the
47692         new files with --dry-run.
47693
47694 2005-09-18  Bruno Haible  <bruno@clisp.org>
47695
47696         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
47697
47698 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47699
47700         * lib/stat-time.h: New file.
47701         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
47702         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
47703         in a different way.
47704         (timespec_cmp): New function.
47705         * lib/utimecmp.c: Include stat-time.h.
47706         (SYSCALL_RESOLUTION): Depend on whether various struct stat
47707         members exist, not on the obsolescent ST_MTIM_NSEC.
47708         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
47709
47710 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47711
47712         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
47713
47714 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
47715
47716         * MODULES.html.sh (File system functions): Add stat-time.
47717         * modules/stat-time: New file.
47718         * modules/timespec (Files): Remove m4/st_mtim.m4; this
47719         is now done in a different way, by the stat-time module.
47720         * modules/utimecmp (Depends-on): Add stat-time.
47721
47722 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47723
47724         * m4/st_mtim.m4: Remove.  Superseded by...
47725         * m4/stat-time.m4: New file.
47726         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
47727         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
47728
47729 2005-09-15  Derek Price  <derek@ximbiot.com>
47730
47731         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
47732
47733 2005-09-15  Derek Price  <derek@ximbiot.com>
47734
47735         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
47736         * lib/regex_internal.c: Ditto, using this...
47737         (__GNUC_PREREQ): ...new macro.
47738         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
47739         using...
47740         (__GNUC_PREREQ): ...this new macro.
47741
47742         * lib/strstr.h: Include string.h. Define strstr as a macro here.
47743
47744 2005-09-15  Derek Price  <derek@ximbiot.com>
47745             Paul Eggert  <eggert@cs.ucla.edu>
47746
47747         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
47748         changes, consolidating in...
47749         * lib/regex_internal.h: ...this file.
47750
47751 2005-09-13  Jim Meyering  <jim@meyering.net>
47752
47753         * lib/canon-host.c: Filter through gnu indent and reword comments
47754         slightly.
47755         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
47756
47757 2005-09-13  Derek Price  <derek@ximbiot.com>
47758
47759         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
47760         failure.
47761         Reported by Jim Meyering  <jim@meyering.net>.
47762
47763 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47764
47765         * lib/base64.c: Typo.
47766         (base64_encode): Put b64str in initialized data section.
47767
47768 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47769
47770         Merge glibc and coreutils changes into gnulib, plus a few
47771         extra fixes.
47772         * lib/md5.c: Use #error rather than a string.
47773         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
47774         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
47775         (__attribute__): Define to empty for non recent-GCC.
47776         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
47777         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
47778         Renamed from their non-__ counterparts, with new macros replacing
47779         them if not _LIBC.  Add __THROW attribute.
47780         (rol): Remove.
47781         (struct md5_ctx): Align buffer if using GCC.
47782         * lib/sha1.h (struct sha1_ctx): Likewise.
47783         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
47784         The old name was backwards.
47785         (NOTSWAP): Remove; not used.
47786         (rol): New macro, moved here from md5.h.
47787         (sha1_process_block): Remove a FIXME that doesn't make sense.
47788
47789 2005-09-12  Derek Price  <derek@ximbiot.com>
47790
47791         Return usable errors from canon-host.
47792         * lib/canon-host.h: New file.
47793         * lib/canon-host.c (canon_host): Wrap...
47794         (canon_host_r): ...this new function, which now relies exclusively on
47795         getaddrinfo.
47796         (ch_strerror): New function.
47797         (last_cherror): New global.
47798         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
47799         interface.
47800         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
47801         void *.
47802         (freeaddrinfo): Free ai->ai_canonname when set.
47803
47804 2005-09-12  Derek Price  <derek@ximbiot.com>
47805
47806         Make canon-host require getaddrinfo.
47807         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
47808         AC_LIBSOURCE canon-host.h.  Call...
47809         (gl_PREREQ_CANON_HOST): ...this new function, which requires
47810         gl_GETADDRINFO.
47811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
47812
47813 2005-09-12  Derek Price  <derek@ximbiot.com>
47814
47815         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
47816         LGPL.
47817         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
47818
47819 2005-09-12  Derek Price  <derek@ximbiot.com>
47820
47821         * lib/gai_strerror.c: Include config.h when available.  Include
47822         getaddrinfo.h before other headers to test interface.
47823         Reported by Larry Jones <lawrence.jones@ugs.com>.
47824
47825 2005-09-12  Derek Price  <derek@ximbiot.com>
47826             Paul Eggert  <eggert@cs.ucla.edu>
47827
47828         * modules/glob (Files): Add glob-libc.h.
47829
47830 2005-09-12  Derek Price  <derek@ximbiot.com>
47831             Paul Eggert  <eggert@cs.ucla.edu>
47832
47833         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
47834         glob_.h, glob-libc.h.
47835         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
47836
47837 2005-09-12  Derek Price  <derek@ximbiot.com>
47838             Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
47841         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
47842         protecting things that should be done only in gnulib contexts.
47843         * lib/glob_.h: New file, containing only the glob things needed for
47844         gnulib.
47845         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
47846         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
47847         (glob, globfree, glob_pattern_p): Now defined simply in terms of
47848         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
47849         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
47850         and to respect the namespace rules better.
47851
47852 2005-09-08  Simon Josefsson  <jas@extundo.com>
47853
47854         * modules/socklen: New file.
47855
47856 2005-09-08  Simon Josefsson  <jas@extundo.com>
47857
47858         * m4/socklen.m4: New file.
47859
47860 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47861
47862         * modules/utimens (Files): Add m4/utimbuf.m4, since
47863         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
47864         Reported by Sergey Poznyakoff.
47865
47866 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47867
47868         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
47869         definitions, since that's the preferred style in glibc.
47870         Fix a minor spacing issue, and update copyright notice to match
47871         glibc's.
47872
47873 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47874
47875         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
47876
47877 2005-09-06  Simon Josefsson  <jas@extundo.com>
47878
47879         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
47880         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
47881
47882 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47883
47884         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
47885         warning.
47886
47887 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47888
47889         * config/srclist.txt: Add glibc bug 1302.
47890
47891 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
47892
47893         Change bitset word type from unsigned int to unsigned long int,
47894         as this has better performance on typical 64-bit hosts.
47895         Port bitset code to hosts with unusual word sizes.
47896         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
47897         (build_collating_symbol):
47898         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
47899         argument is a bitset.  This is merely a style issue, but it makes
47900         it clearer that an entire array is expected.
47901         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
47902         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
47903         Port to the case where bitset_word is not the same as unsigned int.
47904         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
47905         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
47906         Likewise.
47907         * lib/regexec.c (check_dst_limits_calc_pos_1,
47908         check_subexp_matching_top):
47909         (build_trtable, group_nodes_into_DFAstates):
47910         Likewise.
47911         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
47912         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
47913         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
47914         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
47915         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
47916         * lib/regcomp.c (optimize_subexps, lower_subexp):
47917         Work even if bitset_word has holes in its bitwise representation.
47918         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
47919         * lib/regexec.c (check_dst_limits_calc_pos_1,
47920         check_subexp_matching_top):
47921         Likewise.
47922         * lib/regex_internal.c (re_string_reconstruct):
47923         Don't assume UCHAR_MAX == 255.
47924         * lib/regex_internal.h (bitset_set_all): Likewise.
47925         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
47926         All uses changed.
47927         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
47928         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
47929         All uses changed.
47930         (BITSET_WORD_MAX): New macro.
47931         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
47932         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
47933         (bitset_empty, bitset_copy):
47934         Prefer sizeof (bitset) to multiplying it out ourselves.
47935         (bitset_not_merge): Remove; unused.
47936         (bitset_contain): Return bool, not unsigned int with one bit on.
47937         All callers changed.
47938         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
47939         alignment than re_node_set; do this by defining a new internal
47940         type struct dests_alloc and using it to allocate memory.
47941
47942 2005-09-05  Bruno Haible  <bruno@clisp.org>
47943
47944         * gnulib-tool (func_import): Fix comparison in handling of symbolic
47945         links.
47946
47947 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
47948
47949         * modules/size_max (Makefile.am): Add size_max.h
47950
47951 2005-09-04  Derek Price  <derek@ximbiot.com>
47952
47953         * gnulib-tool (func_import): Fix reversed $symbolic logic.
47954
47955 2005-09-03  Simon Josefsson  <jas@extundo.com>
47956
47957         * gnulib-tool: Fix typo.
47958
47959 2005-09-03  Simon Josefsson  <jas@extundo.com>
47960
47961         * config/srclist.txt: Add glibc bug 1293.
47962
47963 2005-09-03  Derek Price  <derek@ximbiot.com>
47964
47965         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
47966         From Larry Jones <lawrence.jones@ugs.com>.
47967
47968 2005-09-02  Simon Josefsson  <jas@extundo.com>
47969
47970         * modules/socklen: New file.
47971
47972 2005-09-02  Simon Josefsson  <jas@extundo.com>
47973
47974         * modules/havelib: New module.
47975
47976         * modules/gettext, modules/iconv, modules/lock, modules/readline:
47977         Use havelib.
47978
47979 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47980
47981         Check for arithmetic overflow when calculating sizes, to prevent
47982         some buffer-overflow issues.  These patches are conservative, in the
47983         sense that when I couldn't determine whether an overflow was possible,
47984         I inserted a run-time check.
47985         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
47986         macros.
47987         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
47988         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
47989         (re_xnrealloc, re_x2nrealloc): New inline functions.
47990         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
47991         parse_bracket_exp):
47992         (build_equiv_class, build_charclass): Check for arithmetic overflow
47993         in size expression calculations.
47994         * lib/regex_internal.c (re_string_realloc_buffers):
47995         (build_wcs_upper_buffer, re_node_set_add_intersect):
47996         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
47997         (re_dfa_add_node, register_state): Likewise.
47998         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
47999         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48000         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48001         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48002
48003 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48004
48005         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48006         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48007
48008 2005-09-02  Bruno Haible  <bruno@clisp.org>
48009
48010         Support for lib vs. lib64 distinction on biarch platforms.
48011         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48012         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48014
48015 2005-09-02  Bruno Haible  <bruno@clisp.org>
48016
48017         * gnulib-tool (import): In the other first-use case, provide defaults
48018         as well.
48019
48020 2005-09-02  Bruno Haible  <bruno@clisp.org>
48021
48022         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48023         patches not yet found in the latest gettext release.
48024
48025 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48026
48027         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48028         to avoid a collision with bits/local_lim.h in glibc.
48029         All uses changed.  Problem reported by Dmitry V. Levin in
48030         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48031
48032         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48033         bugs in int versus size_t comparisons.
48034         (re_string_context_at): Fix bug where the code assumed that
48035         Idx is signed.
48036
48037         Use bool where appropriate.
48038         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48039         All callers changed.
48040         (calc_eclosure_iter): Likewise, for ROOT arg.
48041         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48042         (build_charclass_op): Likewise, for NON_MATCH arg.
48043         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48044         (re_string_construct_common): Likewise, for ICASE arg.
48045         * lib/regexec.c (re_search_2_stub, re_search_stub):
48046         Likewise, for RET_LEN arg.
48047         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48048         (set_regs): Likewise, for FL_BACKTRACK arg.
48049         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48050         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48051         (calc_eclosure_iter, parse_bracket_exp):
48052         Use bool for internal variables that are booleans.
48053         * lib/regexec.c (re_search_internal, check_matching,
48054         proceed_next_node):
48055         (set_regs, build_sifted_states, sift_states_bkref):
48056         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48057         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48058         (find_collation_sequence_value):
48059         Likewise.
48060         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48061         (re_node_set_compare):
48062         Return bool, not int. All callers changed.
48063         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48064         (build_trtable, check_node_accept): Likewise.
48065         * lib/regex_internal.h: Include stdbool.h.
48066
48067         Fix bugs uncovered when converting to bool.
48068         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48069         failure instead of charging ahead blindly.
48070         * lib/regex_internal.c (register_state): Likewise.
48071         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48072         for freeing internal storage.
48073         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48074         bitset pieces used as boolean, to avoid undefined behavior
48075         on hosts that do int overflow checking.
48076
48077 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48078
48079         * config/srclist.txt: Add glibc bugs 1285-1287.
48080
48081 2005-09-01  Jim Meyering  <jim@meyering.net>
48082
48083         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48084         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48085         Require gl_STAT_MACROS, too.
48086
48087 2005-09-01  Bruno Haible  <bruno@clisp.org>
48088
48089         * gnulib-tool (import): In the first-use case, provide defaults.
48090
48091 2005-09-01  Bruno Haible  <bruno@clisp.org>
48092
48093         * gnulib-tool (func_import): Remove the .tmp files.
48094
48095 2005-09-01  Bruno Haible  <bruno@clisp.org>
48096
48097         * gnulib-tool (func_import): Fix handling of symbolic links.
48098
48099 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48102         old glibc regex code mishandles strings longer than 2**31 bytes.
48103         This patch fixes this when the regex code is used in gnulib
48104         (i.e., outside glibc).
48105
48106         This patch should not affect the use of the regex code inside
48107         glibc.  No doubt this problem also needs to be handled for glibc
48108         as well, but the result will be an incompatible change to the
48109         glibc ABI, and the old ABI will have to be supported too.  That
48110         can be the the subject for another patch.
48111
48112         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48113         governing whether the rest of this patch is active.  By default,
48114         the macro is disabled and the patch has no effect.
48115         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48116         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48117         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48118         (re_match_2, re_set_registers): Use the new types.
48119         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48120         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48121         New macros.
48122         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48123         (re_string_context_at, bin_tree_t, re_dfastate_t):
48124         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48125         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48126         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48127         (re_string_char_size_at, re_string_wchar_at):
48128         (re_string_elem_size_at):
48129         Use the new types and macros to port to 64-bit hosts.
48130         Use unsigned types for internal values, so that the code
48131         mostly works even for arrays larger than SSIZE_MAX.
48132         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48133         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48134         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48135         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48136         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48137         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48138         (calc_inveclosure, parse_dup_op, build_range_exp):
48139         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48140         (fetch_number, create_token_tree, mark_opt_subexp):
48141         Likewise.
48142         * lib/regex_internal.c (re_string_construct_common,
48143         create_ci_newstate):
48144         (create_cd_newstate, re_string_allocate, re_string_construct):
48145         (re_string_realloc_buffers, build_wcs_upper_buffer):
48146         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48147         (re_string_reconstruct, re_string_peek_byte_case):
48148         (re_string_fetch_byte_case, re_string_context_at):
48149         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48150         (re_node_set_init_copy, re_node_set_add_intersect):
48151         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48152         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48153         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48154         (re_acquire_state, re_acquire_state_context, register_state):
48155         Likewise.
48156         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48157         search_cur_bkref_entry):
48158         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48159         (re_search_internal, re_search_2_stub, re_search_stub)
48160         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48161         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48162         (update_cur_sifted_state, check_dst_limits):
48163         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48164         (check_subexp_limits, sift_states_bkref, merge_state_array):
48165         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48166         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48167         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48168         (expand_bkref_cache, check_node_accept_bytes):
48169         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48170         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48171         (acquire_init_state_context, check_halt_node_context):
48172         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48173         (sift_states_backward, clean_state_log_if_needed):
48174         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48175         (find_recover_state, transit_state_sb, transit_state_mb):
48176         (transit_state_bkref, build_trtable, match_ctx_clean):
48177         Likewise.
48178         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48179         to work around an assumption that REG_MISSING is negative.
48180
48181         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48182         (seek_collating_symbol_entry) [defined _LIBC]:
48183         (lookup_collation_sequence_value) [defined _LIBC]:
48184         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48185         Use prototypes rather than old-style function definitions.
48186         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48187         (transit_state_sb) [0]:
48188         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48189
48190         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48191         rm_eo.
48192
48193         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48194         (optimize_subexps, lower_subexp):
48195         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48196         since the signed shift might overflow.  Use 1u<<31 instead.
48197         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48198         Likewise.
48199         * lib/regexec.c (check_dst_limits_calc_pos_1,
48200         check_subexp_matching_top): Likewise.
48201
48202         * lib/regcomp.c (optimize_subexps, lower_subexp):
48203         Use CHAR_BIT rather than 8, for clarity.
48204         * lib/regexec.c (check_dst_limits_calc_pos_1):
48205         (check_subexp_matching_top): Likewise.
48206         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48207         have to worry about portability issues when shifting it left.
48208         Remove no-longer-needed test for table_size > 0.
48209         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48210         in a word, as the resulting behavior is undefined.
48211         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48212         in one case, a <= should have been an <, and in another case the
48213         whole test was missing.
48214         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
48215         the standard name CHAR_BIT.
48216         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48217         this is not true on one's complement and signed-magnitude hosts.
48218
48219         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48220         next_last_offset.
48221         (struct re_dfa_t): Remove unused member states_alloc.
48222         * lib/regcomp.c (init_dfa): Don't initialize unused members.
48223
48224 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48227         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
48228         and large-file glibc and in 32-bit large-file Solaris.
48229
48230 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48231
48232         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48233         lengths fit in regoff_t; this isn't true if regoff_t is the same
48234         width as size_t.
48235         * lib/regex.c (re_search_internal): 5th arg is LAST_START
48236         (= START + RANGE) instead of RANGE.  This avoids overflow
48237         problems when regoff_t is the same width as size_t.
48238         All callers changed.
48239         (re_search_2_stub): Check for overflow when adding the
48240         sizes of the two strings.
48241         (re_search_stub): Check for overflow when adding START
48242         to RANGE; if it occurs, substitute the extreme value.
48243
48244 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48245
48246         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48247
48248 2005-08-31  Jim Meyering  <jim@meyering.net>
48249
48250         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48251         a pointer-to-const.
48252         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48253         (register_state): Likewise.
48254         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48255         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48256         (group_nodes_into_DFAstates): Likewise.
48257
48258 2005-08-31  Jim Meyering  <jim@meyering.net>
48259
48260         * check-module: Add a FIXME comment.
48261
48262 2005-08-31  Eric Blake  <ebb9@byu.net>
48263
48264         * modules/unistd-safer (Files): Add unistd--.h.
48265         * modules/stdio-safer (Files): Add stdio--.h.
48266
48267 2005-08-31  Derek Price  <derek@ximbiot.com>
48268
48269         * lib/getdelim.c (getdelim): Return EOF on EOF.
48270         Reported by Larry Jones <lawrence.jones@ugs.com>.
48271
48272 2005-08-31  Bruno Haible  <bruno@clisp.org>
48273
48274         Avoid unnecessary diffs in the generated lib/Makefile.am.
48275         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48276         the generated files.
48277         (func_import): Don't set cmd.
48278
48279 2005-08-31  Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/strstr.c: Include <stddef.h>, for NULL.
48282         * lib/strcasestr.c: Likewise.
48283         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48284
48285 2005-08-31  Bruno Haible  <bruno@clisp.org>
48286
48287         * gnulib-tool: New option --macro-prefix.
48288         (func_import): Use macro_prefix.
48289         (import): Handle option --macro-prefix.
48290
48291 2005-08-31  Bruno Haible  <bruno@clisp.org>
48292
48293         * gnulib-tool (import): Rename most ac_* variables to cached_*.
48294         Also use new variables cached_lgpl, cached_libtool.
48295
48296 2005-08-31  Bruno Haible  <bruno@clisp.org>
48297
48298         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48299         always instantiating them.
48300
48301 2005-08-31  Bruno Haible  <bruno@clisp.org>
48302
48303         * gnulib-tool (func_import): Read the previous cached settings
48304         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48305         earlier added by gnulib but are now dropped. Warn when a gnulib file
48306         overwrites a non-gnulib file.
48307
48308 2005-08-31  Bruno Haible  <bruno@clisp.org>
48309
48310         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48311         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48312         projects that don't keep autogenerated files in CVS. Put into
48313         actioncmd only the specified modules, not the transitive closure.
48314
48315 2005-08-31  Bruno Haible  <bruno@clisp.org>
48316
48317         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48318         Create directories that shall be filled.
48319         (import): Don't look for gl_* macros in configure.ac. Recurse across
48320         all directories containing a gnulib-cache.m4 files, if meaningful.
48321
48322 2005-08-31  Bruno Haible  <bruno@clisp.org>
48323
48324         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48325         (import): Set seen_libtool when we see gl_LIBTOOL.
48326
48327 2005-08-31  Bruno Haible  <bruno@clisp.org>
48328
48329         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48330         declaration macro definitions from generated gnulib.m4.
48331
48332 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
48333
48334         * lib/iconvme.h: Add prototype for iconv_alloc.
48335
48336 2005-08-29  Simon Josefsson  <jas@extundo.com>
48337
48338         * lib/iconvme.c: Fix errno.
48339
48340 2005-08-29  Bruno Haible  <bruno@clisp.org>
48341
48342         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48343         that it works when the directory contains spaces.
48344
48345 2005-08-29  Bruno Haible  <bruno@clisp.org>
48346
48347         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48348
48349 2005-08-29  Bruno Haible  <bruno@clisp.org>
48350
48351         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48352         Emit more advice.
48353
48354 2005-08-29  Bruno Haible  <bruno@clisp.org>
48355         and Stepan Kasal  <kasal@ucw.cz>
48356
48357         * check-module: If more parameters are given, check each of them
48358         separately; add more exceptions, as noted by Jim Meyering.
48359         (check_module): New procedure.
48360         (%exempt_header): Now contains all exceptions.
48361
48362 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
48363
48364         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48365
48366 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
48367
48368         * lib/iconvme.c: Split iconv_string into iconv_alloc.
48369
48370 2005-08-28  Bruno Haible  <bruno@clisp.org>
48371
48372         * m4/gnulib-tool.m4: New file.
48373
48374 2005-08-27  Jim Meyering  <jim@meyering.net>
48375
48376         * modules/unistd-safer (Files): Add pipe-safer.c.
48377         * modules/fcntl-safer (Files): Add creat-safer.c.
48378
48379 2005-08-27  Jim Meyering  <jim@meyering.net>
48380
48381         * m4/stdlib-safer.m4: New file.  From coreutils.
48382         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48383         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48384         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48385         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48386         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48387
48388 2005-08-27  Jim Meyering  <jim@meyering.net>
48389
48390         * lib/fopen-safer.c: Merge minor changes from coreutils.
48391         * lib/dup-safer.c: Likewise.
48392         * lib/fd-safer.c: Likewise.
48393
48394         Merge from coreutils.
48395         * lib/stdio--.h: New file.
48396         * lib/stdlib--.h: New file.
48397         * lib/mkstemp-safer.c: New file.
48398
48399         GNU tar needs these.
48400         * lib/pipe-safer.c: New file.
48401         * lib/creat-safer.c: New file.
48402         * lib/fcntl--.h (creat): Define to creat_safer.
48403         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48404         * lib/unistd--.h (pipe): Define to pipe_safer.
48405         * lib/unistd-safer.h: Declare pipe_safer.
48406
48407 2005-08-26  Simon Josefsson  <jas@extundo.com>
48408
48409         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48410         Haible <bruno@clisp.org>.
48411
48412 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
48413
48414         * lib/regex_internal.h: Remove all references to
48415         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48416         or better.
48417         (bitset_not, bitset_merge, bitset_not_merge):
48418         (bitset_mask, re_string_allocate, re_string_construct):
48419         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48420         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48421         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48422         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48423         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48424         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48425         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48426         (re_acquire_state_context):
48427         Remove unnecessary forward decls.
48428         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48429         Put __attribute at function definition,
48430         now that the function decl has been removed.
48431         * lib/regex_internal.c (re_string_peek_byte_case):
48432         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48433         Likewise.
48434
48435 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
48436
48437         * m4/regex.m4: Add AC_PREREQ(2.50).
48438         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48439
48440 2005-08-25  Simon Josefsson  <jas@extundo.com>
48441
48442         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48443         __fsetlocking.
48444
48445 2005-08-25  Simon Josefsson  <jas@extundo.com>
48446
48447         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
48448         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
48449         GLIBC specific code.
48450
48451 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         Make regex safe for g++.  This fixes one real bug (an "err"
48454         that should have been "*err").  g++ problem reported by
48455         Sam Steingold.
48456         * lib/regex_internal.h (re_calloc): New macro, consistent with
48457         re_malloc etc.  All callers of calloc changed to use re_calloc.
48458         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48459         not int.  All callers changed.
48460         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48461         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48462         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48463         (find_recover_state): Change "err" to "*err"; this fixes what
48464         appears to be a real bug.
48465         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48466         versus int.
48467
48468 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48469
48470         * modules/regex (Depends-on): Add malloc, since the code
48471         assumes that !malloc(0) means failure.
48472
48473 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48476
48477         alloca modernization/simplification for regex.
48478         * lib/regex.c: Remove portability cruft for alloca.  This no longer
48479         needs to be at the start of the file, and can be moved into
48480         regex_internal.h and simplified.
48481         * lib/regex_internal.h: Include <alloca.h>.
48482         (__libc_use_alloca) [!defined _LIBC]: New macro.
48483         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48484         now works outside glibc.
48485
48486 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
48487
48488         * config/srclist.txt: Add glibc bugs 1241, 1245.
48489
48490 2005-08-25  Jim Meyering  <jim@meyering.net>
48491
48492         * lib/open-safer.c: Include <config.h>.
48493         Otherwise, we'd lose LARGEFILE support in any file using
48494         e.g. "fcntl--.h"
48495
48496 2005-08-25  Bruno Haible  <bruno@clisp.org>
48497
48498         * m4/minmax.m4: Require autoconf 2.52.
48499         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48500         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48501         alternatives of translit over the alphabet.
48502         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48503
48504 2005-08-24  Simon Josefsson  <jas@extundo.com>
48505
48506         * tests/test-getpass.c: New file.
48507
48508 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48509
48510         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48511         for GNU regex features.
48512
48513 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48514
48515         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48516         * lib/regex.h (regerror): Likewise.
48517
48518         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
48519         requires this.  (The code never needed it.)
48520
48521         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
48522         All uses of recently-renamed identifiers changed to use the new,
48523         POSIX-compliant names.  The code will build and run just fine
48524         without these changes, but it's better to eat our own dog food
48525         and use the standard-conforming names.
48526
48527         * lib/regex.h: Fix a multitude of POSIX name space violations.
48528         These changes have an effect only for programs that define
48529         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
48530         do not change anything for programs compiled in the normal way.
48531         Also, there is no effect on the ABI.
48532
48533         (_REGEX_SOURCE): New macro.
48534         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
48535         defined and _GNU_SOURCE is not; this fixes a name space violation.
48536
48537         Rename the following macros to obey POSIX requirements.
48538         The old names are still visible as macros if _REGEX_SOURCE is defined.
48539         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
48540         RE_BACKSLASH_ESCAPE_IN_LISTS.
48541         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
48542         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
48543         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
48544         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
48545         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
48546         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
48547         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
48548         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
48549         (REG_INTERVALS): renamed from RE_INTERVALS.
48550         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
48551         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
48552         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
48553         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
48554         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
48555         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
48556         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
48557         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
48558         RE_UNMATCHED_RIGHT_PAREN_ORD.
48559         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
48560         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
48561         (REG_DEBUG): renamed from RE_DEBUG.
48562         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
48563         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
48564         unusual, since we can't clash with the POSIX REG_ICASE.
48565         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
48566         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
48567         (REG_NO_SUB): renamed from RE_NO_SUB.
48568         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
48569         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
48570         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
48571         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
48572         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
48573         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
48574         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
48575         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
48576         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
48577         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
48578         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
48579         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
48580         RE_SYNTAX_POSIX_MINIMAL_BASIC.
48581         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
48582         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
48583         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
48584         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
48585         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
48586         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
48587         (REG_FIXED): Renamed from REGS_FIXED.
48588         (REG_NREGS): Renamed from RE_NREGS.
48589
48590         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
48591         of other REG_* macros, since POSIX says the user is allowed to
48592         #undef these macros selectively.
48593
48594         (reg_errcode_t): Update comment stating what other tables need
48595         to be consistent.
48596
48597         Rename the following enum values to obey POSIX requirements.
48598         The old names are still visible as macros.
48599         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
48600         is not defined, since GNU is supposed to be a superset of POSIX as
48601         much as possible, and since we want reg_errcode_t to be a signed
48602         type for implementation consistency.
48603         (_REG_NOERROR): Renamed from REG_NOERROR.
48604         (_REG_NOMATCH): Renamed from REG_NOMATCH.
48605         (_REG_BADPAT): Renamed from REG_BADPAT.
48606         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
48607         (_REG_ECTYPE): Renamed from REG_ECTYPE.
48608         (_REG_EESCAPE): Renamed from REG_EESCAPE.
48609         (_REG_ESUBREG): Renamed from REG_ESUBREG.
48610         (_REG_EBRACK): Renamed from REG_EBRACK.
48611         (_REG_EPAREN): Renamed from REG_EPAREN.
48612         (_REG_EBRACE): Renamed from REG_EBRACE.
48613         (_REG_BADBR): Renamed from REG_BADBR.
48614         (_REG_ERANGE): Renamed from REG_ERANGE.
48615         (_REG_ESPACE): Renamed from REG_ESPACE.
48616         (_REG_BADRPT): Renamed from REG_BADRPT.
48617         (_REG_EEND): Renamed from REG_EEND.
48618         (_REG_ESIZE): Renamed from REG_ESIZE.
48619         (_REG_ERPAREN): Renamed from REG_ERPAREN.
48620         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
48621         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
48622         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
48623         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
48624
48625         (_REG_RE_NAME, _REG_RM_NAME): New macros.
48626         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
48627         changed.  But support the old name if the new one is not defined
48628         and if _REGEX_SOURCE.
48629
48630         Change the following member names in struct re_pattern_buffer.
48631         The old names are still supported if !_REGEX_SOURCE.
48632         The new names are always supported, regardless of _REGEX_SOURCE.
48633         (re_buffer): Renamed from buffer.
48634         (re_allocated): Renamed from allocated.
48635         (re_used): Renamed from used.
48636         (re_syntax): Renamed from syntax.
48637         (re_fastmap): Renamed from fastmap.
48638         (re_translate): Renamed from translate.
48639         (re_can_be_null): Renamed from can_be_null.
48640         (re_regs_allocated): Renamed from regs_allocated.
48641         (re_fastmap_accurate): Renamed from fastmap_accurate.
48642         (re_no_sub): Renamed from no_sub.
48643         (re_not_bol): Renamed from not_bol.
48644         (re_not_eol): Renamed from not_eol.
48645         (re_newline_anchor): Renamed from newline_anchor.
48646
48647         Change the following member names in struct re_registers.
48648         The old names are still supported if !_REGEX_SOURCE.
48649         The new names are always supported, regardless of _REGEX_SOURCE.
48650         (rm_num_regs): Renamed from num_regs.
48651         (rm_start): Renamed from start.
48652         (rm_end): Renamed from end.
48653
48654         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
48655         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
48656         Prepend __ to parameter names.
48657
48658         Undo yesterday's changes.
48659
48660 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
48661
48662         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
48663         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
48664         lib/regex.c.
48665
48666 2005-08-24  Jim Meyering  <jim@meyering.net>
48667
48668         Sync from coreutils.
48669         * m4/fcntl-safer.m4: New file.
48670
48671         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
48672         and object files for this module.
48673
48674 2005-08-24  Jim Meyering  <jim@meyering.net>
48675
48676         Sync from coreutils.
48677         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
48678
48679 2005-08-24  Jim Meyering  <jim@meyering.net>
48680
48681         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
48682         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
48683
48684 2005-08-24  Jim Meyering  <jim@meyering.net>
48685
48686         * modules/fcntl-safer: New module.
48687         * modules/fts (Depends-on): Add fcntl-safer.
48688         * MODULES.html.sh (File descriptor based Input/Output):
48689         Add fcntl-safer.
48690
48691 2005-08-24  Bruno Haible  <bruno@clisp.org>
48692
48693         Support for unit test modules.
48694         * modules/README: Mention tests modules.
48695         * modules/TEMPLATE-TESTS: New file.
48696         * gnulib-tool: New options --extract-tests-module, --with-tests and
48697         --tests-base (unused for the moment).
48698         (testsbase, inctests): New variables.
48699         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
48700         (func_verify_module): Exclude TEMPLATE-TESTS.
48701         (func_verify_nontests_module, func_verify_tests_module): New functions.
48702         (func_get_dependencies): Add implicit dependency for tests modules.
48703         (func_get_tests_module): New function.
48704         (func_modules_transitive_closure): When --with-tests was specified,
48705         include the unit tests as well, unless explicitly avoided.
48706         (func_emit_lib_Makefile_am): Ignore the tests modules here.
48707         (func_emit_tests_Makefile_am): New function.
48708         (func_create_testdir): When --with-tests was specified, emit a
48709         tests/ directory.
48710         * MODULES.html.sh (Future developments): Update.
48711
48712 2005-08-24  Bruno Haible  <bruno@clisp.org>
48713
48714         * modules/tls-tests: New file.
48715         * tests/test-tls.c: New file, from GNU gettext.
48716
48717 2005-08-24  Bruno Haible  <bruno@clisp.org>
48718
48719         * modules/lock-tests: New file.
48720         * tests/test-lock.c: New file, from GNU gettext.
48721
48722 2005-08-24  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/lock.h: Add multiple inclusion guard.
48725         * lib/tls.h: Add multiple inclusion guard.
48726
48727 2005-08-24  Bruno Haible  <bruno@clisp.org>
48728
48729         * gnulib-tool: Add support for the --aux-dir option to
48730         --create-testdir, --create-megatestdir, --test, --megatest.
48731         (func_create_testdir, func_create_megatestdir): Optionally emit a
48732         AC_CONFIG_AUX_DIR directive.
48733         (create-testdir, create-megatestdir, test, megatest): Provide a
48734         default value for $auxdir.
48735
48736 2005-08-24  Bruno Haible  <bruno@clisp.org>
48737
48738         * gnulib-tool (import): Use compound statement instead of subshell
48739         where possible.
48740
48741 2005-08-24  Bruno Haible  <bruno@clisp.org>
48742
48743         * gnulib-tool (import): Change --aux-dir default to "build-aux".
48744
48745 2005-08-24  Bruno Haible  <bruno@clisp.org>
48746
48747         * gnulib-tool (func_version): Update.
48748
48749 2005-08-24  Bruno Haible  <bruno@clisp.org>
48750
48751         * gnulib-tool (func_import, func_create_testdir,
48752         func_create_megatestdir): Quote all autoconf macro arguments.
48753
48754 2005-08-24  Bruno Haible  <bruno@clisp.org>
48755
48756         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
48757         option --force, because --force causes the aclocal.m4 of each
48758         subdirectory to be newer than the corresponding config.h.in.
48759
48760 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
48763         All contents moved to gl_REGEX.
48764         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
48765         assume that it does.
48766
48767 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48768
48769         * lib/regex.h (REG_NOSYS)
48770         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
48771         Define, since POSIX requires it as of 2001.
48772         (_REG_ENOSYS)
48773         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
48774         New private symbol, used to keep the enum signed in all cases.
48775         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
48776         Youngman in
48777         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
48778
48779         * lib/regex_internal.c (re_string_skip_chars, register_state):
48780         (calc_state_hash):
48781         Remove forward decls; no longer needed now that we use prototypes.
48782         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
48783         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
48784         (clean_state_log_if_needed): Likewise.
48785
48786 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
48787
48788         * config/srclist.txt: Add glibc bugs 1231-1233.
48789
48790 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48791
48792         Fix problems reported by Sam Steingold in
48793         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
48794         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
48795         assumed that reg_errcode_t is a signed type, which is not
48796         necessarily true if _XOPEN_SOURCE is not defined.
48797         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
48798         since some compilers warn about it otherwise.
48799
48800 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48801
48802         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
48803         (init_word_char, create_initial_state, duplicate_node_closure):
48804         (fetch_token, peek_token_bracket, build_range_exp):
48805         (build_collating_symbol): Remove forward decls; no longer needed
48806         now that we use prototypes.
48807
48808         * lib/regcomp.c:
48809         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
48810         (re_compile_fastmap_iter, regcomp, regerror, regfree):
48811         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
48812         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
48813         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
48814         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
48815         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
48816         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
48817         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
48818         (build_range_exp, build_collating_symbol, parse_bracket_exp):
48819         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
48820         (build_charclass, build_charclass_op, fetch_number, create_tree):
48821         (create_token_tree, mark_opt_subexp, duplicate_tree):
48822         Use prototypes rather than old-style definitions.
48823
48824         * lib/regex_internal.c:
48825         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
48826         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
48827         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48828         (re_string_reconstruct, re_string_peek_byte_case):
48829         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
48830         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48831         (re_node_set_init_copy, re_node_set_add_intersect):
48832         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48833         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48834         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48835         (re_acquire_state, re_acquire_state_context, register_state):
48836         (create_ci_newstate, create_cd_newstate, free_state):
48837         Likewise.
48838         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
48839         re_search_2):
48840         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
48841         (re_search_internal, prune_impossible_nodes):
48842         (acquire_init_state_context, check_matching, static):
48843         (check_halt_node_context, check_halt_state_context, proceed_next_node):
48844         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
48845         (update_regs, sift_states_backward, build_sifted_states):
48846         (clean_state_log_if_needed, merge_state_array):
48847         (update_cur_sifted_state, add_epsilon_src_nodes):
48848         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
48849         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
48850         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
48851         (find_recover_state, check_subexp_matching_top, transit_state_mb):
48852         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
48853         (check_arrival, check_arrival_add_next_nodes):
48854         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48855         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48856         (check_node_accept_bytes, check_node_accept, extend_buffers):
48857         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
48858         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
48859         (sift_ctx_init):
48860         Likewise.
48861
48862         * lib/regex_internal.h:
48863         (re_string_allocate, re_string_construct, re_string_reconstruct):
48864         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
48865         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
48866         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
48867         (re_string_context_at, re_string_peek_byte_case):
48868         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
48869         is defined, since we now use prototypes always.
48870
48871         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
48872         C89 or better.  All uses removed.
48873
48874 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48875
48876         * config/srclist.txt: Add glibc bugs 1220-1227.
48877
48878 2005-08-20  Jim Meyering  <jim@meyering.net>
48879
48880         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
48881         of unused local, dfa.
48882
48883 2005-08-20  Bruno Haible  <bruno@clisp.org>
48884
48885         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
48886
48887 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48888
48889         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
48890         (re_node_set_insert_last, re_dfa_add_node):
48891         Rename local variables to avoid GCC shadowing warnings.
48892
48893 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48894
48895         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
48896         [defined lint]: Suppress bogus uninitialized-variable warnings.
48897
48898         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
48899         and let the caller return REG_ESPACE if out of space.  This
48900         removes an uninitialied-variable warning with GCC 4.0.1, and also
48901         avoids taking the address of a local variable.  All callers
48902         changed.
48903
48904 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48905
48906         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
48907         $LIBCSRC/posix/regexec.c.
48908         Add glibc bug 1217 for regcomp.c.
48909
48910 2005-08-19  Jim Meyering  <jim@meyering.net>
48911
48912         * lib/regexec.c (proceed_next_node): Redo local variables to
48913         avoid GCC shadowing warnings.
48914
48915 2005-08-18  Bruno Haible  <bruno@clisp.org>
48916
48917         * lib/strstr.c (strstr): Fix return value in multibyte case.
48918         * lib/strcasestr.c (strcasestr): Likewise.
48919
48920 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48921
48922         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
48923
48924 2005-08-17  Jim Meyering  <jim@meyering.net>
48925
48926         Make the %s format (seconds since the epoch) work for a negative
48927         number and when used with a zero-padded field width, e.g. %015s.
48928
48929         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
48930         label so that it precedes the code to set `digits'.  Otherwise,
48931         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
48932         print `00-22'.  Now, it prints `-0022', as it should.
48933
48934 2005-08-17  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/strstr (Files): Add m4/mbrtowc.m4.
48937         (Depends-on): Add mbuiter.
48938
48939 2005-08-17  Bruno Haible  <bruno@clisp.org>
48940
48941         * modules/strcasestr: New file.
48942         * MODULES.html.sh (String handling, based on ANSI C 89): Add
48943         strcasestr.
48944
48945 2005-08-17  Bruno Haible  <bruno@clisp.org>
48946
48947         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
48948
48949 2005-08-17  Bruno Haible  <bruno@clisp.org>
48950
48951         * modules/mbuiter: New file.
48952         * MODULES.html.sh (Extended multibyte and wide character utilities):
48953         Add mbuiter.
48954
48955 2005-08-17  Bruno Haible  <bruno@clisp.org>
48956
48957         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
48958         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
48959
48960 2005-08-17  Bruno Haible  <bruno@clisp.org>
48961
48962         * m4/strcasestr.m4: New file.
48963
48964 2005-08-17  Bruno Haible  <bruno@clisp.org>
48965
48966         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
48967         * lib/strstr.c: Completely rewritten, with multibyte locale support.
48968
48969 2005-08-17  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/strcasestr.h: New file.
48972         * lib/strcasestr.c: New file.
48973
48974 2005-08-17  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/strcasecmp.c: Use mbuiter.h.
48977
48978 2005-08-17  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/mbuiter.h: New file.
48981
48982 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48983
48984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
48985         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
48986         and gl_GETOPT are both invoked via different paths (as happens
48987         with GNU tar CVS because it uses both argp and getopt), the former
48988         wins.
48989
48990 2005-08-16  Bruno Haible  <bruno@clisp.org>
48991
48992         * modules/tls: New file.
48993         * MODULES.html.sh (Multithreading): Add tls.
48994
48995 2005-08-16  Bruno Haible  <bruno@clisp.org>
48996
48997         * modules/strnlen1: New file.
48998         * MODULES.html.sh (String handling): Add strnlen1.
48999
49000 2005-08-16  Bruno Haible  <bruno@clisp.org>
49001
49002         * modules/strcase (Files): Add m4/mbrtowc.m4.
49003         (Depends-on): Add strnlen1, mbchar.
49004
49005 2005-08-16  Bruno Haible  <bruno@clisp.org>
49006
49007         * modules/mbiter: New file.
49008         * MODULES.html.sh (Extended multibyte and wide character utilities):
49009         Add mbiter.
49010
49011 2005-08-16  Bruno Haible  <bruno@clisp.org>
49012
49013         * modules/mbfile: New file.
49014         * MODULES.html.sh (Extended multibyte and wide character utilities):
49015         Add mbfile.
49016
49017 2005-08-16  Bruno Haible  <bruno@clisp.org>
49018
49019         * modules/mbchar: New file.
49020         * MODULES.html.sh (Extended multibyte and wide character utilities):
49021         New section.
49022
49023 2005-08-16  Bruno Haible  <bruno@clisp.org>
49024
49025         * m4/tls.m4: New file, from GNU gettext.
49026
49027 2005-08-16  Bruno Haible  <bruno@clisp.org>
49028
49029         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49030         always.
49031         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49032
49033 2005-08-16  Bruno Haible  <bruno@clisp.org>
49034
49035         * m4/mbiter.m4: New file.
49036
49037 2005-08-16  Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/mbfile.m4: New file.
49040
49041 2005-08-16  Bruno Haible  <bruno@clisp.org>
49042
49043         * m4/mbchar.m4: New file.
49044
49045 2005-08-16  Bruno Haible  <bruno@clisp.org>
49046
49047         * lib/tls.h: New file, from GNU gettext.
49048         * lib/tls.c: New file, from GNU gettext.
49049
49050 2005-08-16  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/strnlen1.h: New file.
49053         * lib/strnlen1.c: New file.
49054
49055 2005-08-16  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49058         (mbi_init): Update.
49059         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49060         NUL byte, not after it.
49061
49062 2005-08-16  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/strcase.h (strcasecmp): Add note in comments.
49065         * lib/strncasecmp.c: Use code from strcasecmp.c.
49066         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49067         (strcasecmp): Work correctly in multibyte locales.
49068
49069 2005-08-16  Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/mbiter.h: New file.
49072
49073 2005-08-16  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/mbfile.h: New file.
49076
49077 2005-08-16  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/mbchar.h: New file.
49080         * lib/mbchar.c: New file.
49081
49082 2005-08-16  Bruno Haible  <bruno@clisp.org>
49083
49084         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49085         the valid ones. Makes the comparison operations transitive:
49086         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49087         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49088
49089 2005-08-15  Simon Josefsson  <jas@extundo.com>
49090
49091         * modules/ssize_t (License): Change to 'unlimited'.
49092
49093         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49094
49095 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49096
49097         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49098         Add comments for each pending glibc patch.
49099
49100 2005-08-15  Bruno Haible  <bruno@clisp.org>
49101
49102         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49103         __cplusplus is defined.
49104
49105 2005-08-14  Jim Meyering  <jim@meyering.net>
49106
49107         Sync from coreutils.
49108
49109         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49110         Use the hash-table-based cycle-detection code not just when
49111         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49112         Reported by James Youngman in
49113         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49114         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49115         FTS_TIGHT_CYCLE_CHECK.
49116         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49117         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49118         once again.
49119         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49120         * lib/fts.c (fd_safer): Remove decl.
49121         Include fcntl--.h rather than unistd-safer.h
49122         (fts_safe_changedir): Don't call fd_safer; no longer needed
49123         now that we include fcntl--.h.
49124
49125 2005-08-12  Simon Josefsson  <jas@extundo.com>
49126
49127         * modules/getndelim2: Use ssize_t module.
49128         * modules/getnline: Likewise.
49129         * modules/safe-read: Likewise.
49130         * modules/xreadlink: Likewise.
49131
49132         * modules/ssize_t: New file.
49133
49134 2005-08-12  Simon Josefsson  <jas@extundo.com>
49135
49136         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49137
49138 2005-08-12  Simon Josefsson  <jas@extundo.com>
49139
49140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49141         ssize_t.
49142
49143 2005-08-12  Simon Josefsson  <jas@extundo.com>
49144
49145         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49146         readline, getdelim and check_version.
49147         (Support for systems lacking ISO C 99: Sizes of integer types):
49148         Add size_max.
49149
49150 2005-08-12  Bruno Haible  <bruno@clisp.org>
49151
49152         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49153
49154 2005-08-11  Simon Josefsson  <jas@extundo.com>
49155
49156         * modules/readline: New file.
49157
49158         * modules/strnlen (Files): Add strnlen.h.
49159
49160 2005-08-11  Simon Josefsson  <jas@extundo.com>
49161
49162         * m4/readline.m4: New file.
49163
49164 2005-08-11  Simon Josefsson  <jas@extundo.com>
49165
49166         * lib/readline.h, readline.c: New file.
49167
49168 2005-08-11  Simon Josefsson  <jas@extundo.com>
49169
49170         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49171         gl_AVOID.
49172
49173 2005-08-11  Bruno Haible  <bruno@clisp.org>
49174
49175         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49176
49177 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49178
49179         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49180
49181 2005-08-10  Simon Josefsson  <jas@extundo.com>
49182
49183         * tests/test-iconvme.c: New file.
49184
49185 2005-08-10  Simon Josefsson  <jas@extundo.com>
49186
49187         * m4/strnlen.m4: New file.
49188
49189         * m4/strndup.m4: Don't check for strnlen declaration, done in
49190         strnlen.m4.
49191
49192 2005-08-10  Simon Josefsson  <jas@extundo.com>
49193
49194         * lib/strndup.c: Use strnlen.h.
49195
49196         * lib/strnlen.h: New file.
49197
49198 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49199
49200         * README: Typos.
49201
49202 2005-08-02  Simon Josefsson  <jas@extundo.com>
49203
49204         * modules/readline: New file.
49205
49206 2005-08-02  Simon Josefsson  <jas@extundo.com>
49207
49208         * modules/getdelim: New file.
49209
49210         * modules/getline: Rewrite, don't use getndelim2.
49211
49212 2005-08-02  Simon Josefsson  <jas@extundo.com>
49213
49214         * m4/getline.m4: Separate out getdelim stuff into separate module.
49215
49216         * m4/getdelim.m4: New file.
49217
49218 2005-08-02  Simon Josefsson  <jas@extundo.com>
49219
49220         * lib/getline.h, getline.c: Rewrite.
49221
49222         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49223
49224 2005-07-31  Bruno Haible  <bruno@clisp.org>
49225
49226         * lib/lock.h (gl_lock_initializer): New macro.
49227         (gl_lock_define_initialized): Use it.
49228         (gl_rwlock_initializer): New macro.
49229         (gl_rwlock_define_initialized): Use it.
49230         (gl_recursive_lock_initializer): New macro.
49231         (gl_recursive_lock_define_initialized): Use it.
49232
49233 2005-07-30  Karl Berry  <karl@gnu.org>
49234
49235         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49236         Report from Ben Pfaff, regarding getopt.
49237
49238 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
49239
49240         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49241         normal way.
49242         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49243         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
49244         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49245         (gl_GETOPT): Use the new macros.  Most of the implementation
49246         is moved to the new macros.  This is for programs like Emacs
49247         that don't want all the functionality of gl_GETOPT.
49248
49249 2005-07-26  Bruno Haible  <bruno@clisp.org>
49250
49251         * m4/lock.m4: Update from GNU gettext.
49252
49253 2005-07-26  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/lock.h: Update from GNU gettext.
49256         * lib/lock.c: Update from GNU gettext.
49257
49258 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49259
49260         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49261         obsolescent AC_TRY_RUN.  Include the default includes files, for
49262         'exit'.
49263
49264 2005-07-24  Bruno Haible  <bruno@clisp.org>
49265
49266         * modules/visibility: New file.
49267         * MODULES.html.sh (Misc): Add visibility.
49268
49269 2005-07-24  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/visibility.m4: New file.
49272
49273 2005-07-24  Bruno Haible  <bruno@clisp.org>
49274
49275         * doc/visibility.texi: New file.
49276
49277 2005-07-22  Bruno Haible  <bruno@clisp.org>
49278
49279         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49280         $(ALLOCA_H), redundant through BUILT_SOURCES.
49281         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49282         redundant through BUILT_SOURCES.
49283         * modules/byteswap (Makefile.am): Remove explicit dependency on
49284         $(BYTESWAP_H), redundant through BUILT_SOURCES.
49285         * modules/fnmatch (Makefile.am): Remove explicit dependency on
49286         $(FNMATCH_H), redundant through BUILT_SOURCES.
49287         * modules/getopt (Makefile.am): Remove explicit dependency on
49288         $(GETOPT_H), redundant through BUILT_SOURCES.
49289         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49290         redundant through BUILT_SOURCES.
49291         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49292         redundant through BUILT_SOURCES.
49293         * modules/stdbool (Makefile.am): Remove explicit dependency on
49294         $(STDBOOL_H), redundant through BUILT_SOURCES.
49295         * modules/stdint (Makefile.am): Remove explicit dependency on
49296         $(STDINT_H), redundant through BUILT_SOURCES.
49297         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49298         Remove explicit dependency on $(SYSEXITS_H).
49299         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49300
49301 2005-07-18  Simon Josefsson  <jas@extundo.com>
49302
49303         * lib/check-version.c (check_version): Accept identical versions too.
49304
49305 2005-07-18  Bruno Haible  <bruno@clisp.org>
49306
49307         * modules/lock: New file.
49308         * MODULES.html.sh (Multithreading): New section.
49309
49310 2005-07-18  Bruno Haible  <bruno@clisp.org>
49311
49312         * m4/lock.m4: New file, from GNU gettext.
49313
49314 2005-07-18  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/lock.h: New file, from GNU gettext.
49317         * lib/lock.c: New file, from GNU gettext.
49318
49319 2005-07-18  Bruno Haible  <bruno@clisp.org>
49320
49321         * lib/lock.h (gl_once_t): New type.
49322         (gl_once_define, gl_once): New macros.
49323         * lib/lock.c (fresh_once): New variable.
49324         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49325         functions.
49326
49327 2005-07-16  Simon Josefsson  <jas@extundo.com>
49328
49329         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49330         workaround, suggested by Bruno.
49331
49332 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         * modules/xalloc (Depends-on): Add xalloc-die.
49335         * modules/xvasprintf (Depends-on): Add xalloc-die.
49336
49337 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49338
49339         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49340         with a minor change.
49341
49342 2005-07-15  Bruno Haible  <bruno@clisp.org>
49343
49344         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49345         When using lib/poll.c, define poll as rpl_poll.
49346
49347 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * modules/argp (Depends-on): Remove unlocked-io.
49350
49351 2005-07-14  Derek Price  <derek@ximbiot.com>
49352
49353         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
49354         for glob symlink bug.
49355
49356 2005-07-14  Bruno Haible  <bruno@clisp.org>
49357
49358         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49359         Instead, test for *_unlocked function declarations directly.
49360
49361 2005-07-11  Simon Josefsson  <jas@extundo.com>
49362
49363         * modules/size_max: New file.
49364
49365         * modules/xsize: Depend on size_max module for size_max.m4.
49366
49367 2005-07-11  Simon Josefsson  <jas@extundo.com>
49368
49369         * lib/size_max.h: New file.
49370
49371 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
49372
49373         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49374         copyright symbol and the year.
49375         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49376         (version_etc_va): Use parameterized copyright notice.
49377         Reword to conform to the current GNU coding standards.
49378
49379 2005-07-11  Karl Berry  <karl@gnu.org>
49380
49381         * doc/gnulib.texi (Quoting): new node.
49382         (Initial import): more info, from Patrice.
49383
49384 2005-07-11  Bruno Haible  <bruno@clisp.org>
49385
49386         * gnulib-tool (func_usage): Document option --avoid.
49387         (Command line options): Handle --avoid.
49388         (func_acceptable): New function.
49389         (func_modules_transitive_closure): Use it.
49390
49391 2005-07-11  Bruno Haible  <bruno@clisp.org>
49392
49393         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49394         Reported by Jim Meyering.
49395
49396 2005-07-10  Bruno Haible  <bruno@clisp.org>
49397
49398         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49399         Needed when size_t is smaller than 'unsigned int'.
49400         Reported by Paul Eggert.
49401
49402 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49403
49404         * modules/argp (Depends-on): Add unlocked-io
49405
49406 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49407
49408         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49409         block of defines.
49410
49411 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49412
49413         * config/srclist.txt: Comment out regcomp.c, since we have a porting
49414         fix now.
49415
49416 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
49417         and Paul Eggert  <eggert@cs.ucla.edu>
49418
49419         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49420         in wint_t, not wchar_t.  Remove now-unnecessary cast.
49421
49422 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49423
49424         * modules/regex (Files): Add lib/regex_internal.c,
49425         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49426         (Depends-on): Add extensions.
49427         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49428
49429 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49430
49431         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49432         pathconf.
49433         * m4/same.m4 (gl_SAME): Likewise.
49434         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49435
49436         * m4/regex.m4: Adjust to new libc regex implementation.
49437         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49438         all the .c and .h parts of (the new) regex.
49439         Quote the m4 stuff better.
49440         Check for RE_ICASE bug of old gnulib.
49441         Check for REG_STARTEND of recent libc.
49442         Rename local variables from jm_* to gl_*.
49443         Quote operand of "test -f".
49444         Say "recent enough" version of libc, not "version 2".
49445         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49446         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
49447         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49448         Remove check for btowc, isascii.
49449         Require AM_LANGINFO_CODESET.
49450
49451 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49452
49453         * lib/regex.c, regex.h: Sync from libc.
49454         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49455         * lib/regexec.c:
49456         New files, synced from libc, except that regex_internal.h
49457         currently has a small porting fix.
49458
49459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49462         regex_internal.c, regexec.c.
49463         Add regex_internal.h too, but as a comment, since the libc version
49464         is currently broken in gnulib mode.
49465
49466 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49467
49468         Support programs like Emacs that use gnulib but not gettext.
49469         * MODULES.html.sh (Internationalization functions): Add gettext-h.
49470         * modules/gettext-h: New file.
49471         * modules/gettext (Files): Remove lib/gettext.h.
49472         (Depends-on): Add gettext-h.
49473         (Makefile.am): Remove lib_SOURCES.
49474         * modules/argmatch, modules/c-stack, modules/closeout:
49475         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49476         * modules/execute, modules/file-type, modules/getaddrinfo:
49477         * modules/getopt, modules/human, modules/javacomp:
49478         * modules/javaexec, modules/mkdir-p, modules/obstack:
49479         * modules/openat, modules/pagealign_alloc, modules/pipe:
49480         * modules/quotearg, modules/regex, modules/rpmatch:
49481         * modules/unicodeio, modules/userspec, modules/version-etc:
49482         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49483         * modules/xsetenv:
49484         Depend on gettext-h, not gettext.
49485
49486 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49487
49488         * gnulib-tool (func_import): Add support for 'public domain' license.
49489         * modules/alloca, modules/atexit, modules/memmove:
49490         Now public domain, not GPL.
49491         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49492         * modules/realloc, modules/strerror, modules/strtod:
49493         Now LGPL, not GPL.
49494
49495 2005-07-05  Bruno Haible  <bruno@clisp.org>
49496
49497         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49498         autoconf CVS. Needed for mingw.
49499
49500 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49501
49502         Remove the dependency of the strftime module on the tzset module.
49503         * modules/strftime (Depends-on): Remove dependency on tzset.
49504
49505 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49506
49507         Remove the dependency of the strftime module on the tzset module.
49508         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49509         gl_FUNC_TZSET_CLOBBER.
49510
49511 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49512
49513         Remove the dependency of the strftime module on the tzset module.
49514         * lib/strftime.c (my_strftime)
49515         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49516         Copy the input structure, to work around some of the bug with
49517         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
49518         Solaris releases, you should also use the tzset module, but we won't
49519         require it as a dependency any more since we don't want LGPLed code
49520         to depend on GPLed code.
49521
49522 2005-07-02  Jim Meyering  <jim@meyering.net>
49523
49524         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
49525         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
49526         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
49527         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
49528
49529 2005-07-02  Jim Meyering  <jim@meyering.net>
49530
49531         * lib/backupfile.c (backup_args): Change a `0' to NULL.
49532
49533 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
49534
49535         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
49536         declares only 'struct timespec;' (!).
49537
49538 2005-07-01  Jim Meyering  <jim@meyering.net>
49539
49540         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
49541         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
49542         * lib/save-cwd.c, tempname.c:
49543         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
49544         and don't include <sys/file.h>).
49545
49546 2005-06-29  Jim Meyering  <jim@meyering.net>
49547
49548         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
49549         type name.  Use the variable name instead.
49550         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
49551         Likewise.
49552
49553 2005-06-28  Simon Josefsson  <jas@extundo.com>
49554
49555         * modules/check-version (Files): Add check-version.m4.
49556
49557 2005-06-28  Simon Josefsson  <jas@extundo.com>
49558
49559         * m4/check-version.m4: New file, suggested by Jim Meyering
49560         <jim@meyering.net>.
49561
49562 2005-06-28  Simon Josefsson  <jas@extundo.com>
49563
49564         * lib/check-version.h, lib/check-version.c: New files.
49565
49566 2005-06-28  Simon Josefsson  <jas@extundo.com>
49567
49568         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
49569         collision with global variable.  Better indentation.  Don't
49570         increment buffer pointer beyond buffer end.  Based on comments
49571         from Paul Eggert <eggert@cs.ucla.edu>.
49572
49573         * lib/base64.h: Indent.
49574
49575 2005-06-28  Simon Josefsson  <jas@extundo.com>
49576
49577         * doc/gnulib.texi (Library version handling): New section.
49578
49579 2005-06-28  Jim Meyering  <jim@meyering.net>
49580
49581         * check-module (find_included_lib_files): Hard-code another
49582         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
49583         but modules/fts-lgpl (correctly) does not list those files.
49584
49585         * modules/canonicalize (Files): Add lib/pathmax.h.
49586
49587 2005-06-25  Simon Josefsson  <jas@extundo.com>
49588
49589         * modules/check-version: New file.
49590
49591 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
49592
49593         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
49594         initializer of struct addrinfo, as an indication that we don't
49595         care how many members the structure has.
49596
49597 2005-06-24  Derek Price  <derek@ximbiot.com>
49598         and Bruno Haible  <bruno@clisp.org>
49599
49600         Remove stat module & update lstat.
49601         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
49602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49603         * m4/stat.m4: Remove this file.
49604
49605 2005-06-24  Derek Price  <derek@ximbiot.com>
49606         and Bruno Haible  <bruno@clisp.org>
49607
49608         Remove stat module & update lstat.
49609         * lib/stat.c: Remove this file...
49610         (slash_aware_lstat): ...moving this content and its support...
49611         * lib/lstat.c (rpl_lstat): ...into here.
49612         * lib/lstat.h: New file.
49613
49614 2005-06-24  Derek Price  <derek@ximbiot.com>
49615         and Bruno Haible  <bruno@clisp.org>
49616
49617         Remove stat module & update lstat.
49618         * config/srclist.txt (libc sources): Remove stat.
49619
49620 2005-06-24  Derek Price  <derek@ximbiot.com>
49621         and Bruno Haible  <bruno@clisp.org>
49622
49623         Remove stat module & update lstat.
49624         * MODULES.html.sh (stat): Remove.
49625         * MODULES.html: Regenerated.
49626         * modules/lstat (Description): Correct function name.
49627         (Files): Add "lstat.h".
49628         (Depends-on): Remove stat, add xalloc, stat-macros.
49629         * modules/stat: Remove this file.
49630         (Include): Add "lstat.h", remove <sys/stat.h>.
49631
49632 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49633
49634         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
49635         (ranged_convert): Don't save conversion in a temporary struct.
49636         This causes a warning with GCC 4.0.0, and anyway in the typical
49637         case it's not worth the extra 100 bytes or so of code.
49638         (ranged_convert, __mktime_internal): When calling a function via a
49639         pointer P, use P () rather than (*P) (), as we now assume C89 or
49640         better.
49641
49642 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
49643
49644         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
49645         "who -r" failed to give output.  Problem reported by Tim Waugh.
49646
49647         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
49648         (xcalloc): Use it to avoid needless tests.
49649         Problem reported by Jim Meyering.
49650
49651 2005-06-20  Derek Price  <derek@ximbiot.com>
49652
49653         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
49654         unnecessary for Autoconfs > 2.59c.
49655
49656 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49657
49658         * lib/argp.h (__option_is_short): Check upper limit of
49659         __key. Isprint() requires its argument to have the value
49660         of an unsigned char or EOF.
49661
49662 2005-06-16  Jim Meyering  <jim@meyering.net>
49663
49664         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
49665         when either N or S is zero.
49666
49667 2005-06-16  Derek Price  <derek@ximbiot.com>
49668
49669         * m4/bison.m4: Declare YACC & YFLAGS precious.
49670
49671 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
49672
49673         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
49674         multibyte string or pattern, fall back on unibyte matching.
49675         Problem reported by James Youngman.
49676
49677 2005-06-08  Bruno Haible  <bruno@clisp.org>
49678
49679         * modules/csharpcomp: New file.
49680         * MODULES.html.sh (C#): Add csharpcomp.
49681
49682 2005-06-08  Bruno Haible  <bruno@clisp.org>
49683
49684         * m4/csharpcomp.m4: New file, from GNU gettext.
49685
49686 2005-06-08  Bruno Haible  <bruno@clisp.org>
49687
49688         * lib/csharpcomp.h: New file, from GNU gettext.
49689         * lib/csharpcomp.c: New file, from GNU gettext.
49690         * lib/csharpcomp.sh.in: New file, from GNU gettext.
49691
49692 2005-06-08  Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
49695         warning on mingw.
49696
49697 2005-06-07  Derek Price  <derek@ximbiot.com>
49698
49699         Sync from CVS.
49700         * lib/glob_.h: Indent nested #ifdef.
49701
49702 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         Sync from coreutils.
49705         Use "file name" when talking about file names, instead of "filename"
49706         or "path", as per the GNU coding standards.
49707         * lib/mkdir-p.c: Renamed from makepath.c.
49708         (make_dir_parents): Renamed from make_path.  All callers changed.
49709         * lib/mkdir-p.h: Likewise.  All includers changed.
49710         * lib/filenamecat.c: Renamed from path-concat.c.
49711         (file_name_concat): Renamed from path_concat.  All callers changed.
49712         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
49713         * lib/filenamecat.h: Likewise.  All includers changed.
49714         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
49715         in comments or local variable names.
49716         * lib/basename.c: Likewise.
49717         * lib/canonicalize.c, canonicalize.h: Likewise.
49718         * lib/dirname.c, dirname.h: Likewise.
49719         * lib/euidaccess.c: Likewise.
49720         * lib/exclude.c: Likewise
49721         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
49722         * lib/fsusage.c, fsuage.h: Likewise.
49723         * lib/fts.c, fts_.h: Likewise.
49724         * lib/getcwd.c: Likewise.
49725         * lib/getloadavg.c: Likewise.
49726         * lib/mkstemp.c: Likewise.
49727         * lib/mountlist.c, mountlist.h: Likewise.
49728         * lib/openat.c, openat.h: Likewise.
49729         * lib/readlink-stub.c: Likewise.
49730         * lib/readutmp.c, readutmp.h: Likewise.
49731         * lib/rename.c: Likewise.
49732         * lib/rmdir.c: Likewise.
49733         * lib/same.c: Likewise.
49734         * lib/savedir.c: Likewise.
49735         * lib/stripslash.c: Likewise.
49736         * lib/tempname.c: Likewise.
49737         * lib/xreadlink.c: Likewise.
49738         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
49739         All uses changed.
49740         * lib/exclude.h: Likewise.
49741
49742         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
49743         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49744         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
49745         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49746         * lib/pathmax.h: Include <limits.h> unconditionally, since other
49747         files have been getting away with it for years (MORE/BSD 4.3
49748         is extinct now).
49749         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
49750         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
49751
49752         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
49753         Define to 256, not 255, as per modern POSIX.
49754
49755 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49756
49757         Sync from coreutils.
49758         Use "file name" when talking about file names, instead of "filename"
49759         or "path", as per the GNU coding standards.
49760         * MODULES.html.sh: mkdir-p renamed from makepath.
49761         filenamecat renamed from path-concat.
49762         * modules/filenamecat: Renamed from modules/path-concat.
49763         (Files): filenamecat.h and filenamecat.c renamed from
49764         path-concat.h and path-concat.c.
49765         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
49766         (Include): filenamecat.h, not path-concat.h.
49767         * modules/mkdir-p: Renamed from modules/makepath.
49768         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
49769         makepath.c.
49770         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
49771         (Include): mkdir-p.h, not makepath.h.
49772
49773 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
49774
49775         Sync from coreutils.
49776         * m4/mkdir-p.m4: Renamed from makepath.m4.
49777         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
49778         Rename files from makepath.c to mkdir-p.c, and from
49779         makepath.h to mkdir-p.h.
49780         * m4/filenamecat.m4: Renamed from path-concat.m4.
49781         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
49782         Rename files from path-concat.c to filenamecat.c,
49783         and from path-concat.h to filenamecat.h.
49784         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
49785         "file name" in local variables or comments.
49786         * m4/rename.m4: Likewise.
49787
49788 2005-06-01  Bruno Haible  <bruno@clisp.org>
49789
49790         * modules/csharpexec: New file.
49791         * MODULES.html.sh (C#): New section.
49792
49793 2005-06-01  Bruno Haible  <bruno@clisp.org>
49794
49795         * m4/csharp.m4: New file, from GNU gettext.
49796         * m4/csharpexec.m4: New file, from GNU gettext.
49797
49798 2005-06-01  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/csharpexec.h: New file, from GNU gettext.
49801         * lib/csharpexec.c: New file, from GNU gettext.
49802         * lib/csharpexec.sh.in: New file, from GNU gettext.
49803
49804 2005-05-31  Derek Price  <derek@ximbiot.com>
49805             Paul Eggert  <eggert@cs.ucla.edu>
49806
49807         Sync from cvs.
49808         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49809
49810 2005-05-31  Derek Price  <derek@ximbiot.com>
49811             Paul Eggert  <eggert@cs.ucla.edu>
49812
49813         Sync from cvs.
49814         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
49815
49816 2005-05-29  Derek Price  <derek@ximbiot.com>
49817
49818         * config/srclist.txt (glob_.h, glob.c): Add these files.
49819
49820 2005-05-29  Derek Price  <derek@ximbiot.com>
49821
49822         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
49823         * modules/glob: New file.
49824         * modules/getlogin_r: Add link to POSIX spec in description.
49825
49826 2005-05-29  Derek Price  <derek@ximbiot.com>
49827             Paul Eggert  <eggert@cs.ucla.edu>
49828
49829         * m4/glob.m4: New file.
49830
49831 2005-05-29  Derek Price  <derek@ximbiot.com>
49832             Paul Eggert  <eggert@cs.ucla.edu>
49833
49834         * lib/glob_.h, lib/glob.c: New files.
49835
49836 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49837
49838         * modules/fts (Files): Remove m4/inttypes-pri.m4.
49839         * modules/fts-lgpl (Depends-on): Remove gettext.
49840
49841 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49842
49843         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
49844         and don't require gt_INTTYPES_PRI.
49845
49846 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
49847
49848         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
49849
49850         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
49851         the configuration hassle isn't worth it.
49852         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
49853         (LONGEST_MODIFIER, PRIuMAX): Remove.
49854
49855 2005-05-27  Bruno Haible  <bruno@clisp.org>
49856
49857         * lib/getlogin_r.h: Remove second include of <stddef.h>.
49858
49859 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
49860
49861         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
49862         _POSIX_PTHREAD_SEMANTICS for Solaris.
49863
49864 2005-05-25  Derek Price  <derek@ximbiot.com>
49865
49866         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
49867
49868 2005-05-25  Derek Price  <derek@ximbiot.com>
49869             Paul Eggert  <eggert@cs.ucla.edu>
49870
49871         * modules/getlogin_r, m4/getlogin_r.m4: New files.
49872         * lib/getlogin_r.c, getlogin_r.h: New files.
49873
49874 2005-05-25  Bruno Haible  <bruno@clisp.org>
49875             Derek Price  <derek@ximbiot.com>
49876
49877         * lib/getlogin_r.h: Simplify API documentation.
49878
49879 2005-05-23  Derek Price  <derek@ximbiot.com>
49880
49881         * modules/minmax (Files): Add m4/minmax.m4.
49882         (configure.ac): Add gl_MINMAX.
49883
49884 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49885
49886         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
49887         so that unistd-safer.h (GPL'ed code) need not be included.
49888
49889 2005-05-22  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/minmax.m4: New file.
49892         Based on a patch by Derek Price <derek@ximbiot.com>.
49893
49894 2005-05-22  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
49897         (INT64_MIN): Fix definition.
49898         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
49899
49900         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
49901         NEED_SIGNED_INT_TYPES.
49902
49903         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
49904         HAVE_SYSTEM_INTTYPES.
49905
49906 2005-05-22  Bruno Haible  <bruno@clisp.org>
49907
49908         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
49909         Also include <sys/param.h> if it defines MIN, MAX.
49910         Based on a patch by Derek Price <derek@ximbiot.com>.
49911
49912 2005-05-21  Jim Meyering  <jim@meyering.net>
49913
49914         * modules/fts (Files): Add m4/inttypes-pri.m4.
49915         (Depends-on): Add lstat and remove gettext.  Alphabetize.
49916
49917 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49918
49919         New fts module.
49920         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
49921         (setup_dir, free_dir): New functions.
49922         (enter_dir, leave_dir): Define trivial
49923         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
49924         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
49925         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
49926         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
49927         Move to fts-cycle.c.
49928         (fts_open): Use setup_dir.
49929         (fts_close): Use free_dir.
49930         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
49931         This adds a label and some gotos, but the alternatives were messier.
49932         Check for memory allocation failure when entering a dir.
49933         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
49934         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
49935         (FTS): New member fts_cycle, that is a union that contains the
49936         old active_dir_ht and cycle_state.  All uses changed to mention
49937         fts_cycle.ht and fts_cycle.state.
49938         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
49939         fts.c, with the following changes:
49940         (setup_dir, free_dir): New functions.
49941         (enter_dir): Now returns bool.  Return true if successful, false
49942         if memory exhausted.  All callers changed.
49943         Do not bother partly cleaning up on
49944         memory allocation failure; that is free_dir's job.
49945         However, free ad if hash_insert fails, to avoid memory leak.
49946         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
49947         fts->fts_options to see which union member to use.
49948
49949 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
49952         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
49953
49954 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
49955
49956         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
49957
49958 2005-05-20  Jim Meyering  <jim@meyering.net>
49959
49960         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
49961         Now a macro, to pacify GCC.
49962
49963 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
49964
49965         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
49966         of -1.
49967
49968 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
49969
49970         * lib/chown.c (rpl_chown): Return -1 on failure.
49971
49972 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
49973
49974         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
49975         Don't check for stddef.h.
49976         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
49977         don't use its results.
49978         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
49979         since we include them unconditionally.  Don't require
49980         AM_STDBOOL_H, since stdbool is a prerequisite.
49981         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
49982         since we assume C89 or better.
49983         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
49984         as we don't use their results.
49985         Don't check for fchdir, memmove, memset, strrchr, as we use
49986         them unconditionally.
49987         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
49988         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
49989
49990 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
49991
49992         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
49993         Include <stddef.h> unconditionally, since we assume C89 now.
49994         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
49995         * lib/fts.c: Include fts_.h first, to check interface.
49996         Do not include intprops.h; no longer needed.
49997         Include cycle-check.h and hash.h, since fts_.h no longer does.
49998         Remove unnecessary casts of closedir to void.
49999         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50000         decide whether to decrement nlinks.
50001         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50002         (FTS): Use struct hash_table * instead of Hash_table, so that
50003         we no longer need to include hash.h here.
50004
50005 2005-05-18  Jim Meyering  <jim@meyering.net>
50006
50007         * modules/dirfd (License): Change to LGPL.  Most of the code
50008         is already in the public domain.
50009
50010 2005-05-18  Jim Meyering  <jim@meyering.net>
50011
50012         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50013         Reported by Yoann Vandoorselaere.
50014
50015 2005-05-17  Jim Meyering  <jim@meyering.net>
50016
50017         * m4/fts.m4: New file, from coreutils.
50018
50019 2005-05-17  Jim Meyering  <jim@meyering.net>
50020
50021         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50022
50023 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50024
50025         Sync from coreutils.
50026         * m4/unlinkdir.m4: New file.
50027
50028 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50029
50030         Sync from coreutils.
50031         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50032         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50033         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50034         White space changes only.
50035         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50036         special.
50037         * lib/yesno.c: Include getline.h, not ctype.h.
50038         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50039         Use getline to remove arbitrary restriction on response length.
50040
50041 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50042
50043         * config/srclist-update: Spell out "Street" in FSF postal
50044         mail address; this is the style the FSF seems to prefer.
50045
50046         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50047         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50048         this updates FSF postal mail address.
50049
50050         Sync from coreutils.
50051         * modules/unlinkdir: New file.
50052         * modules/yesno (Depends-on): Add getline.
50053         * MODULES.html.sh (File system functions): Add unlinkdir.
50054
50055 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50056
50057         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50058         lib/strsep.h:
50059         Change the initial comment to refer to GPL, not LGPL.
50060         gnulib-tool will change it to LGPL as needed.
50061
50062         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50063         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50064         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50065         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50066         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50067         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50068         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50069         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50070         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50071         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50072         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50073         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50074         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50075         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50076         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50077         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50078         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50079         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50080         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50081         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50082         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50083         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50084         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50085         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50086         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50087         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50088         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50089         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50090         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50091         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50092         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50093         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50094         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50095         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50096         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50097         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50098         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50099         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50100         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50101         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50102         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50103         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50104         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50105         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50106         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50107         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50108         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50109         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50110         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50111         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50112         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50113         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50114         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50115         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50116         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50117         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50118         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50119         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50120         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50121         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50122         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50123         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50124         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50125         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50126         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50127         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50128         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50129         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50130         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50131         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50132         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50133         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50134         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50135         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50136         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50137         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50138         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50139         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50140         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50141         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50142         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50143         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50144         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50145         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50146         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50147         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50148         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50149         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50150         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50151         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50152         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50153         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50154         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50155         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50156         lib/yesno.c, lib/yesno.h:
50157         Update FSF postal mail address.
50158
50159 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50162         tests/test-memmem.c, tests/test-stpncpy.c:
50163         Update FSF postal mail address.
50164
50165 2005-05-13  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50168         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50169         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50170         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50171         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50172         Add support for 64-bit integers in the MSVC compiler.
50173
50174 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50175
50176         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50177
50178 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50179
50180         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50181
50182 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * doc/getdate.texi (General date syntax): Don't say that date
50185         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50186         Problem reported by Nic Ferrier.
50187
50188 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50189
50190         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50191         specified in ai_socktype. Fix invalid ai_protocol
50192         check. ai_protocol is usually set to 0 or depending on
50193         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50194         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50195         ai_socktype / ai_protocol in the returned addrinfo structure.
50196
50197 2005-05-10  Simon Josefsson  <jas@extundo.com>
50198
50199         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50200         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50201
50202 2005-05-10  Karl Berry  <karl@gnu.org>
50203
50204         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50205         (from http://www.gnu.org/licenses).
50206         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50207         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50208         fdl.texi suffices.
50209
50210 2005-05-10  Karl Berry  <karl@gnu.org>
50211
50212         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50213         (COPYING.DOC): remove.
50214
50215         * config/srclist-update: new FSF address.
50216
50217 2005-05-10  Derek Price  <derek@ximbiot.com>
50218
50219         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50220         possible.
50221
50222 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50223             Bruno Haible  <bruno@clisp.org>
50224
50225         * modules/inet_ntop: New file.
50226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50227         inet_ntop.
50228
50229 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50230             Bruno Haible  <bruno@clisp.org>
50231
50232         * m4/inet_ntop.m4: New file.
50233
50234 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50235             Bruno Haible  <bruno@clisp.org>
50236
50237         * lib/inet_ntop.h: New file.
50238         * lib/inet_ntop.c: New file, from glibc with modifications.
50239
50240 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         * modules/time_r (License): Change to LGPL.
50243         * modules/extensions (License): Change to LGPL.  Actually,
50244         the license is more permissive than that, but currently gnulib-tool
50245         doesn't know how to handle more-permissive licenses.
50246
50247         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50248         Problem reported by Dave Love.
50249
50250 2005-05-08  Jim Meyering  <jim@meyering.net>
50251
50252         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50253         blank.
50254
50255 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         * modules/argmatch (Depends-on): Add stdbool.
50258         * modules/backupfile (Depends-on): Likewise.
50259         * modules/chdir-long (Depends-on): Likewise.
50260         * modules/closeout (Depends-on): Likewise.
50261         * modules/cycle-check (Depends-on): Likewise.
50262         * modules/dirname (Depends-on): Likewise.
50263         * modules/fnmatch (Depends-on): Likewise.
50264         * modules/fsusage (Depends-on): Likewise.
50265         * modules/fwriteerror (Depends-on): Likewise.
50266         * modules/getcwd (Depends-on): Likewise.
50267         * modules/getloadavg (Depends-on): Likewise.
50268         * modules/hard-locale (Depends-on): Likewise.
50269         * modules/makepath (Depends-on): Likewise.
50270         * modules/mountlist (Depends-on): Likewise.
50271         * modules/nanosleep (Depends-on): Likewise.
50272         * modules/posixtm (Depends-on): Likewise.
50273         * modules/quotearg (Depends-on): Likewise.
50274         * modules/readtokens (Depends-on): Likewise.
50275         * modules/readtokens0 (Depends-on): Likewise.
50276         * modules/readutmp (Depends-on): Likewise.
50277         * modules/save-cwd (Depends-on): Likewise.
50278         * modules/strftime (Depends-on): Likewise.
50279         * modules/userspec (Depends-on): Likewise.
50280         * modules/utimecmp (Depends-on): Likewise.
50281         * modules/xgetcwd (Depends-on): Likewise.
50282         * modules/xnanosleep (Depends-on): Likewise.
50283         * modules/xstrtod (Depends-on): Likewise.
50284         * modules/yesno (Depends-on): Likewise.
50285
50286 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50287
50288         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50289         needless checks.
50290
50291 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50292
50293         Merge from coreutils.  Among other things,
50294         add bulletproofing for cases where stdin, stdout, or stderr are closed.
50295         * lib/fd-safer.c: New file.
50296         * lib/fcntl-safer.h, open-safer.c: Remove.
50297         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50298         * lib/dup-safer.c: Include unistd-safer.h first.
50299         Don't include errno.h.
50300         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50301         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50302         * lib/file-type.c: Rely on file-type.h change.
50303         * lib/getloadavg.c: Include unistd-safer.h.
50304         (getloadavg): Use safer open.
50305         * lib/getusershell.c: Include "stdio-safer.h".
50306         (getusershell): Use safer fopen.
50307         * lib/long-options.c (long_options): Use NULL rather than 0.
50308         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50309         'free'.
50310         * lib/modechange.c: Likewise.
50311         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50312         (MODE_DONE): New constant.
50313         (struct mode_change): Remove 'next' member.
50314         (make_node_op_equals): New function; like the old one of the
50315         same name, except it allocates an array.
50316         (mode_compile, mode_create_from_ref): Use it.
50317         (mode_compile): Allocate result as an array, not a linked list.
50318         Parse octal string ourself, so that we catch mistakes like "+0".
50319         (mode_adjust): Arg is an array, not a linked list.
50320         * lib/modechange.c: Include stat-macros.h, xalloc.h.
50321         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50322         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50323         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50324         Remove.  This is now stat-macros.h's job.
50325         (talloc): Remove.  All callers replaced by xalloc, so that
50326         our invokers don't have to worry about reporting memory failures.
50327         (make_node_op_equals): Remove.
50328         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50329         New constants.
50330         (struct mode_change): Moved here from modechange.h.
50331         (mode_append_entry): Remove.
50332         (mode_compile): Remove MASKED_OPS arg, since it encouraged
50333         apps to have incorrect behavior.  Use simpler algorithm for head
50334         and tail.  Don't futz with umask; that's now the job of mode_adjust.
50335         Detect more invalid usages rather than having somewhat-random behavior.
50336         Don't insert an "a=" action, as that leads to incorrect behavior.
50337         (mode_compile, mode_create_from_ref): Return NULL on error instead
50338         of an enum, since now there's only one way to have an error.  All
50339         callers changed.
50340         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50341         at the correct time.  Simplify calculation of "+u" and its ilk.
50342         Don't mishandle "+X".
50343         (mode_free): Remove "register" and localize decls.
50344         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50345         (struct mode_change): Move to modechange.c; callers don't
50346         need to see this stuff.
50347         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50348         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50349         (mode_change, mode_adjust): Reflect the new signatures noted above.
50350         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50351         that might redefine system include files.
50352         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50353         (my_usleep): Use NULL rather than (void *) 0.
50354         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50355         Use siginterrupt to specify that system calls should be interrupted.
50356         (rpl_nanosleep): Move initialization of suspended closer to call of
50357         my_usleep.
50358         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
50359         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
50360         (desirable_utmp_entry): New function.
50361         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50362         using x2nrealloc, to simplify logic.
50363         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50364         size calculation.  Do not assume utmp file is a regular file.
50365         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50366         (READ_UTMP_CHECK_PIDS): New constant.
50367         * lib/save-cwd.c: Include unistd-safer.h.
50368         (save_cwd): Use fd_safer.
50369         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50370         [!_LIBC] Include "stat-macros.h" instead.
50371         * lib/unistd-safer.h (fd_safer): New decl.
50372
50373 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50374
50375         * modules/getloadavg (Depends-on): Add unistd-safer.
50376         * modules/getusershell (Depends-on): Add stdio-safer.
50377         * modules/lstat (Depends-on): Remove xalloc.
50378         * modules/mkstemp (Depends-on): Add stat-macros.
50379         * modules/modechange (Depends-on): Remove xstrtol.
50380         Add stat-macros, xalloc.
50381         * modules/save-cwd (Depends-on): Add unistd-safer.
50382         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50383         * modules/unistd-safer (Files): Add lib/fd-safer.c
50384         (Makefile.am): Remove lib_SOURCES.
50385
50386         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50387         Remove fcntl-safer; unistd-safer supersedes it.
50388
50389 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50390
50391         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50392         AC_HEADER_STAT.
50393         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50394         (gl_PREREQ_CHOWN): Remove.
50395         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50396         it.  Don't require AC_HEADER_STAT.
50397         (gl_PREREQ_LSTAT): Remove.
50398         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50399         Don't require AC_HEADER_STAT.
50400         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50401         (gl_PREREQ_RMDIR): Remove.
50402         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50403         mention stat-macros.h or AC_HEADER_STAT, since we'll make
50404         the stat-macros module a prerequisite.
50405         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50406         * m4/filemode.m4 (gl_FILEMODE): Likewise.
50407         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50408         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50409         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50410         variable names.
50411         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50412         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
50413         variable prefixes.
50414         * m4/fcntl-safer.m4: Remove.
50415         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50416         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50417         Invoke gl_PREREQ_FD_SAFER.
50418         (gl_PREREQ_FD_SAFER): New macro.
50419         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50420         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50421         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50422         Remove duplicate call to AC_LIBOBJ(readutmp).
50423         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
50424
50425         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50426         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
50427
50428 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
50429
50430         * MODULES.html.sh (Misc): Add byteswap.
50431
50432 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50433
50434         * modules/getcwd (Depends-on): Add extensions.
50435         * modules/openat (Depends-on): Likewise.
50436
50437 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50438
50439         * modules/byteswap: New file.
50440
50441 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50442
50443         * m4/byteswap.m4: New file.
50444
50445 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
50446
50447         * lib/byteswap_.h: New file.
50448
50449 2005-04-25  Karl Berry  <karl@gnu.org>
50450
50451         * m4/gettext.m4: Update from GNU gettext 0.14.4.
50452
50453 2005-04-25  Albert Chin  <china@thewrittenword.com>
50454
50455         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50456         Toolkit C bug.
50457
50458 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
50459
50460         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50461         (func_ln_if_changed) Remove forcibly for no error message
50462         in case file does not exist.
50463
50464 2005-04-19  Simon Josefsson  <jas@extundo.com>
50465
50466         * gnulib-tool (Options): Make --symlink mean --symbolic.
50467
50468 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
50469
50470         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
50471
50472 2005-04-16  Simon Josefsson  <jas@extundo.com>
50473
50474         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50475
50476 2005-04-15  Simon Josefsson  <jas@extundo.com>
50477
50478         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50479
50480 2005-04-15  Simon Josefsson  <jas@extundo.com>
50481
50482         * gnulib-tool: Rename --symlink to --symbolic.
50483
50484 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
50485
50486         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50487         symbolic links to files instead of copying/moving.  Add --aux-dir,
50488         specifying directory relative --dir where auxiliary build tools
50489         are placed.
50490
50491 2005-04-14  Bruno Haible  <bruno@clisp.org>
50492
50493         * modules/allocsa (License): Change to LGPL.
50494         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50495
50496 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50499         that "UTC +1 second" continues to work.  Problem reported
50500         by Dmitry V. Levin.
50501         (relunit_snumber): New rule.
50502         (relunit): Use it.
50503
50504 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
50505
50506         * lib/getdate.y (universal_time_zone_table): New constant.
50507         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50508         universal_time_zone_table.
50509         (lookup_zone): Prefer universal_time_zone_table to
50510         local_time_zone_table, so that "GMT" time stamps are allowed in
50511         London during the summer.  Problem reported by Ian Abbott.
50512
50513 2005-04-12  Jim Meyering  <jim@meyering.net>
50514
50515         * lib/human.c (humblock): Set *options even when returning due to
50516         xstrtoumax conversion failure.  Thanks to a used-uninitialized
50517         warning from gcc-4.
50518
50519 2005-04-09  Jim Meyering  <jim@meyering.net>
50520
50521         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
50522         -Wuninitialized: initialize tm0.tm_year.
50523
50524 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50525
50526         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
50527         count, since there's no maximum.  All uses changed.
50528         Add member dsts_seen.
50529         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
50530         not being INT_MAX.
50531         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
50532         Use pc_rels_seen to decide whther a date is absolute.
50533
50534         * lib/getdate.y (number): Don't overwrite year.
50535         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
50536         check.
50537
50538 2005-04-02  Simon Josefsson  <jas@extundo.com>
50539
50540         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
50541         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
50542
50543 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
50544
50545         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
50546         where no absolute path name can be longer than PATH_MAX.
50547
50548 2005-03-27  Jim Meyering  <jim@meyering.net>
50549
50550         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
50551
50552 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
50553
50554         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
50555         "one's complement" -> "ones' complement" in comment, as per Knuth.
50556         "value of type" -> "type or expression" in comment.
50557         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
50558
50559 2005-03-26  Jim Meyering  <jim@meyering.net>
50560
50561         Comment nits.
50562         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
50563         Correct typos: s/or/of/.
50564
50565 2005-03-26  Jim Meyering  <jim@meyering.net>
50566
50567         * modules/check-include-files: Move to ../ and rename to...
50568         * check-module: ...this.
50569
50570 2005-03-25  Jim Meyering  <jim@meyering.net>
50571
50572         * modules/xvasprintf (Files): Add xalloc.h.
50573
50574 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50575
50576         * modules/gettext (Files): config/config.rpath ->
50577         build-aux/config.rpath
50578         * modules/iconv (Files): Likewise.
50579         Problem reported by Oskar Liljeblad.
50580
50581 2005-03-23  Jim Meyering  <jim@meyering.net>
50582
50583         * modules/check-include-files: New script to check for
50584         missing dependencies, multiple includes, etc.
50585
50586         * modules/c-strtold (Depends-on): Add xalloc.
50587         * modules/c-strtod (Depends-on): Add xalloc.
50588         * modules/hash (Depends-on): Add xalloc.
50589         (Files): Remove lib/xalloc.h.
50590
50591         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
50592         * modules/userspec (Files): Add lib/inttostr.h.
50593
50594 2005-03-23  Jim Meyering  <jim@meyering.net>
50595
50596         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
50597
50598 2005-03-22  Jim Meyering  <jim@meyering.net>
50599
50600         * modules/stat-macros: New module.
50601         * modules/canonicalize, modules/euidaccess, modules/file-type,
50602         * modules/filemode, modules/lchown, modules/makepath,
50603         * modules/rmdir, modules/stat: Depend on new stat-macros module
50604         rather than listing lib/stat-macros.h manually.
50605         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
50606
50607 2005-03-22  Jim Meyering  <jim@meyering.net>
50608
50609         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
50610
50611 2005-03-22  Bruno Haible  <bruno@clisp.org>
50612
50613         * config/srclist.txt: Replace target directory 'config' with
50614         'build-aux'.
50615         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
50616         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
50617         ../build-aux/.
50618
50619 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
50620
50621         * modules/chdir-long (Depends-on): Add mempcpy.
50622
50623         * modules/acl, modules/backupfile, modules/c-strtod,
50624         modules/c-strtold, modules/canon-host, modules/canonicalize,
50625         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
50626         modules/exclude, modules/exitfail, modules/file-type,
50627         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
50628         modules/getdate, modules/getline, modules/getpagesize,
50629         modules/getpass, modules/getugroups, modules/group-member,
50630         modules/hard-locale, modules/hash, modules/human, modules/idcache,
50631         modules/inttostr, modules/long-options, modules/makepath,
50632         modules/md5, modules/memcasecmp, modules/memcoll,
50633         modules/modechange, modules/mountlist, modules/path-concat,
50634         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
50635         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
50636         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
50637         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
50638         modules/strftime, modules/strndup, modules/strverscmp,
50639         modules/timespec, modules/unlocked-io, modules/userspec,
50640         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
50641         modules/yesno:
50642         Remove lib_SOURCES line from Makefile.am section, as this is now
50643         done automatically by the corresponding Autoconf macro.
50644
50645 2005-03-21  Jim Meyering  <jim@meyering.net>
50646
50647         Changes imported from coreutils.
50648
50649         * lib/cycle-check.c: Don't include xalloc.h.
50650
50651         * lib/path-concat.c: Don't include assert.h.
50652         (path_concat): Remove assertion that would have triggered
50653         for ABASE starting with more than one slash.
50654         Reported by Andreas Schwab.
50655
50656         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
50657         properly when ABASE is an absolute file name.
50658         Correct the description of this function.
50659         Include <assert.h>.
50660         Add an assertion and a test driver.
50661         This fixes a bug introduced on 2004-07-02.
50662         Andreas Schwab reported the resulting failure of cp --parents:
50663         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
50664
50665 2005-03-21  Jim Meyering  <jim@meyering.net>
50666
50667         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
50668         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
50669
50670 2005-03-21  Jim Meyering  <jim@meyering.net>
50671         and  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
50674         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
50675         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
50676         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
50677         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
50678         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
50679         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
50680         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
50681         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
50682         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
50683         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
50684         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
50685         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
50686         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
50687         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
50688         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
50689         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
50690         for these modules.
50691
50692 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
50693
50694         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
50695         (which shouldn't happen), generate nothing instead of returning 0
50696         immediately, so that nstrftime (NULL, ...) doesn't return 0.
50697
50698 2005-03-16  Bruno Haible  <bruno@clisp.org>
50699
50700         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
50701         HAVE_LONGLONG_64BIT.
50702
50703 2005-03-16  Bruno Haible  <bruno@clisp.org>
50704
50705         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
50706         HAVE_LONGLONG_64BIT.
50707
50708 2005-03-16  Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
50711         HAVE_LONGLONG_64BIT.
50712
50713 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50714
50715         * lib/strftime.c (my_strftime): Prepend space to format so that we can
50716         reliably distinguish strftime failure from empty output on POSIX
50717         hosts.
50718
50719 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
50720
50721         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
50722         (iconv_string): Don't guess a size-zero buffer, as that might cause
50723         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
50724         result would be 'too large', where 'too large' is (heuristically)
50725         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
50726         overflow concerns.  This will prevent some unwanted malloc failures
50727         when the inputs are very large.
50728
50729 2005-03-15  Karl Berry  <karl@gnu.org>
50730
50731         * config/srclist.txt (config.rpath): from gettext.
50732         * config/config.rpath: update.
50733
50734 2005-03-15  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
50737         to 'negate'.
50738
50739         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
50740         variable.
50741
50742         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
50743         results.
50744
50745 2005-03-14  Simon Josefsson  <jas@extundo.com>
50746
50747         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
50748         <fx@gnu.org>.
50749
50750 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
50751
50752         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
50753         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
50754         intprops.h.
50755         * lib/strtol.c: Likewise.
50756
50757 2005-03-14  Jim Meyering  <jim@meyering.net>
50758
50759         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
50760         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
50761         to be nonzero so that we (and caller) can detect the difference
50762         between a valid zero-length expansion and an error return, even
50763         when the underlying strftime fails before writing anything into
50764         that location.
50765
50766 2005-03-14  Bruno Haible  <bruno@clisp.org>
50767
50768         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
50769         Update from GNU gettext 0.14.3.
50770
50771 2005-03-10  Jim Meyering  <jim@meyering.net>
50772
50773         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
50774
50775 2005-03-10  Jim Meyering  <jim@meyering.net>
50776
50777         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
50778         so that this module works on systems without fchdir.
50779
50780 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
50781
50782         Factor int-properties macros into a single file, except for
50783         glibc-related files.
50784         * lib/intprops.h: New file.
50785         * lib/getloadavg.c: Include it instead of limits.h.
50786         (INT_STRLEN_BOUND): Remove.
50787         * lib/human.c: Include intprops.h.
50788         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
50789         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
50790         302/1000.
50791         * lib/inttostr.h: Include intprops.h instead of limits.h.
50792         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
50793         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
50794         for consistency with intprops.h.
50795         (time_t_is_integer, twos_complement_arithmetic): Use them.
50796         * lib/sig2str.h: Include <signal.h>, intprops.h.
50797         (INT_STRLEN_BOUND): Remove.
50798         * lib/strftime.c (TYPE_SIGNED): Remove.
50799         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
50800         * lib/strtol.c: Adjust comments to match intprops.h.
50801         * lib/userspec.c: Include intprops.h.
50802         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
50803         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
50804         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
50805         instead of rolling our own expressions.
50806         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
50807
50808         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
50809         instead of int.
50810         (my_strftime): Do not mishandle years close to INT_MAX, by doing
50811         the right thing even if adding 1900 would overflow.  Similarly
50812         for tm_mon + 1 and tm_yday + 1.
50813         Make %Y always equivalent to %C%y, and similarly for %G and %g.
50814         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
50815         (DO_SIGNED_NUMBER): New macro.
50816         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
50817
50818 2005-03-07  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
50821
50822 2005-03-07  Bruno Haible  <bruno@clisp.org>
50823
50824         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
50825
50826 2005-03-04  Derek R. Price  <derek@ximbiot.com>
50827
50828         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
50829         (func_import): Only replace files via --import when they have actually
50830         changed.
50831
50832 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50833
50834         * m4/mmap-anon.m4: New file.
50835         * m4/pagealign_alloc.m4: New file.
50836
50837 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50838             Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/pagealign_alloc: New file.
50841         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
50842
50843 2005-03-03  Derek R. Price  <derek@ximbiot.com>
50844             Bruno Haible  <bruno@clisp.org>
50845
50846         * lib/pagealign_alloc.h: New file.
50847         * lib/pagealign_alloc.c: New file.
50848
50849 2005-03-03  Bruno Haible  <bruno@clisp.org>
50850
50851         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
50852         Use an all-permissive copyright notice, recommended by RMS.
50853
50854 2005-03-02  Bruno Haible  <bruno@clisp.org>
50855
50856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
50857         of AIX, the replacement has to be done only after <string.h> is
50858         included, therefore not in config.h. stpncpy.h does the replacement,
50859         and stpncpy.c uses it.
50860
50861 2005-03-02  Bruno Haible  <bruno@clisp.org>
50862
50863         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
50864         stpncpy.c uses it.
50865
50866 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50867
50868         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
50869         The workaround isn't strictly needed for POSIX conformance, and
50870         it's too much of a pain to configure and maintain.  We'll ask
50871         people to fix their kernels instead.
50872         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
50873         (NANOSLEEP_BUG_WORKAROUND): Remove.
50874         (xnanosleep): Remove the workaround.
50875
50876 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50877
50878         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
50879         Reported by Derek Price.
50880         (Include): Add "timespec.h".
50881
50882         * modules/xnanosleep (Depends-on): Remove gethrxtime.
50883
50884 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
50885
50886         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
50887         to detect nanosleep bug.
50888
50889 2005-03-01  Bruno Haible  <bruno@clisp.org>
50890
50891         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
50892
50893 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
50894
50895         * modules/gethrxtime: New file.
50896         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
50897         (Depends-on): Add gethrxtime.
50898         (configure.ac): Add gl_XNANOSLEEP.
50899         (Makefile.am): Remove lib_SOURCES line.
50900
50901 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50902
50903         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
50904         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
50905
50906 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
50907
50908         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
50909         * lib/timespec.h (gettime): Return void, since it always
50910         succeeds now.  All uses changed.
50911         * lib/gettime.c (gettime) Likewise.
50912         [HAVE_NANOTIME]: Prefer nanotime.
50913         Assume gettimeofday succeeds, as POSIX requires.
50914         Assime time () succeeds, since other code already does.
50915         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
50916         (timespec_subtract): Remove.
50917         (NANOSLEEP_BUG_WORKAROUND): New constant.
50918         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
50919         things considerably.  Use it only on GNU/Linux hosts, since the
50920         workaround shouldn't be needed elsewhere.
50921
50922 2005-02-24  Bruno Haible  <bruno@clisp.org>
50923
50924         * modules/gettext (Files): Add m4/glibc2.m4.
50925
50926 2005-02-24  Bruno Haible  <bruno@clisp.org>
50927
50928         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
50929         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
50930         * m4/progtest.m4:
50931         Update from GNU gettext 0.14.2.
50932         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
50933
50934 2005-02-24  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/localcharset.c: Update from GNU gettext 0.14.2.
50937         * lib/config.charset: Update from GNU gettext 0.14.2.
50938
50939 2005-02-24  Bruno Haible  <bruno@clisp.org>
50940
50941         * lib/gettext.h: Update from GNU gettext 0.14.2.
50942
50943 2005-02-23  Simon Josefsson  <jas@extundo.com>
50944
50945         * m4/iconvme.m4: New file.
50946
50947 2005-02-23  Jim Meyering  <jim@meyering.net>
50948
50949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
50950         change.
50951         Thanks to Bruno Haible for catching it.
50952
50953 2005-02-22  Simon Josefsson  <jas@extundo.com>
50954
50955         * modules/iconvme: New file.
50956
50957         * MODULES.html.sh: Add iconvme.
50958
50959 2005-02-22  Simon Josefsson  <jas@extundo.com>
50960
50961         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
50962
50963 2005-02-22  Simon Josefsson  <jas@extundo.com>
50964
50965         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
50966
50967 2005-02-22  Jim Meyering  <jim@meyering.net>
50968
50969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
50970         s/ifndef/ifdef/.
50971
50972 2005-02-20  Neil Conway  <neilc@samurai.com>
50973
50974         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
50975         returned by OSX/Darwin if the specified buffer is not large
50976         enough for the hostname.
50977
50978 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50979
50980         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
50981         pass it to _help, otherwise the latter coredumps trying to
50982         dereference state.root_argp.
50983
50984 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * modules/chdir-long (Depends-on): Add memrchr.
50987         * modules/memrchr (Files): Add lib/memrchr.h.
50988         (Include): "memrchr.h".
50989
50990 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50991
50992         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
50993
50994 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * lib/memrchr.h: New file.
50997         * lib/chdir-long.c: Include it.
50998         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
50999         Don't bother including stddef.h.
51000
51001 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51002
51003         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51004         inclusion.
51005         Include <sys/types.h>, for dev_t.
51006         (ME_DUMMY, ME_REMOTE): Move from here....
51007         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51008         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51009         Dmitry V. Levin.
51010         Include mountlist.h first, to test the interface.
51011
51012 2005-01-29  Bruno Haible  <bruno@clisp.org>
51013
51014         * lib/progname.c (program_name): Initialize.
51015         Needed when linking statically on MacOS X.
51016
51017 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51018
51019         Sync from coreutils.
51020         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51021         (Depends-on): Add c-strtod.
51022         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51023
51024 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51025
51026         Sync from coreutils.
51027         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51028
51029         Remove files that are specific to coreutils.
51030         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51031
51032 2005-01-28  Bruno Haible  <bruno@clisp.org>
51033
51034         * modules/javacomp: New file.
51035         * MODULES.html.sh (Java): Add javacomp.
51036
51037 2005-01-28  Bruno Haible  <bruno@clisp.org>
51038
51039         * m4/javacomp.m4: New file, from GNU gettext.
51040
51041 2005-01-28  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/javacomp.sh.in: New file, from GNU gettext.
51044         * lib/javacomp.h: New file, from GNU gettext.
51045         * lib/javacomp.c: New file, from GNU gettext.
51046
51047 2005-01-26  Simon Josefsson  <jas@extundo.com>
51048
51049         * lib/gai_strerror.c: Use GPL in header.
51050
51051 2005-01-26  Bruno Haible  <bruno@clisp.org>
51052
51053         * modules/javaexec: New file.
51054         * MODULES.html.sh (Java): Add javaexec.
51055
51056 2005-01-26  Bruno Haible  <bruno@clisp.org>
51057
51058         * m4/javaexec.m4: New file, from GNU gettext.
51059
51060 2005-01-26  Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/javaexec.sh.in: New file, from GNU gettext.
51063         * lib/javaexec.h: New file, from GNU gettext.
51064         * lib/javaexec.c: New file, from GNU gettext.
51065
51066 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51067
51068         * modules/lchown (Depends-on): Remove lchown.h
51069
51070 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51071
51072         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51073         must be defined if the header file was not found, in order
51074         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51075
51076 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51077
51078         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51079         initializers for struct pentry_state.
51080         (__argp_error): Check return value of __asprintf
51081         (__argp_failure): Translate error message
51082
51083         * lib/argp-parse.c: Removed braces around the expansion of N_()
51084
51085 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51086
51087         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51088         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51089         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51090         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51091         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51092         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51093         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51094         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51095         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51096         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51097         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51098         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51099         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51100         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51101         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51102         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51103         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51104         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51105         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51106         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51107         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51108         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51109         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51110         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51111         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51112         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51113         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51114         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51115         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51116         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51117         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51118         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51119         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51120         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51121         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51122         Use an all-permissive copyright notice, recommended by RMS.
51123
51124 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51125
51126         * modules/chdir-long (Depends-on): Remove mempcpy.
51127
51128 2005-01-21  Jim Meyering  <jim@meyering.net>
51129
51130         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51131         same value as for Solaris 9.
51132
51133         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51134         component length.  This included changing the parameter to be
51135         of type `char *' rather than `char const *'.
51136         * lib/chdir-long.h (chdir_long): Update prototype.
51137
51138         * lib/openat.c (fdopendir, fstatat): New functions.
51139         * lib/openat.h: Include headers required for use of DIR and struct
51140         stat.
51141         [AT_SYMLINK_NOFOLLOW]: Define.
51142         (fdopendir, fstatat): Add prototypes.
51143
51144 2005-01-21  Bruno Haible  <bruno@clisp.org>
51145
51146         * modules/classpath: New file.
51147         * MODULES.html.sh (Java): Add classpath.
51148
51149 2005-01-21  Bruno Haible  <bruno@clisp.org>
51150
51151         * lib/classpath.h: New file, from GNU gettext.
51152         * lib/classpath.c: New file, from GNU gettext.
51153
51154 2005-01-20  Simon Josefsson  <jas@extundo.com>
51155
51156         * modules/version-etc-fsf: New file.
51157
51158 2005-01-20  Simon Josefsson  <jas@extundo.com>
51159
51160         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51161         * lib/version-etc.c: Remove version_etc_copyright.
51162         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51163         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51164
51165 2005-01-20  Simon Josefsson  <jas@extundo.com>
51166
51167         * lib/base64.h (isbase64): Add.
51168
51169         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51170         using a unsigned prototype, don't inline.
51171         (base64_decode): Use it.
51172
51173 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51174
51175         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51176         it.
51177
51178 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51179
51180         * lib/save-cwd.c (save_cwd): Remove code to support the case
51181         where fchdir is missing or flaky.
51182
51183 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51184
51185         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51186
51187 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51188
51189         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51190         AC_LIBSOURCES now does this.
51191         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51192         with new ullong_max module.
51193
51194 2005-01-19  Bruno Haible  <bruno@clisp.org>
51195
51196         * modules/sh-quote: New file.
51197         * MODULES.html.sh (Executing programs): Add sh-quote.
51198
51199 2005-01-19  Bruno Haible  <bruno@clisp.org>
51200
51201         * lib/sh-quote.h: New file, from GNU gettext.
51202         * lib/sh-quote.c: New file, from GNU gettext.
51203
51204 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         Merge from coreutils.
51207         * m4/ullong_max.m4: New file.
51208         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51209         (gl_MACROS): Assume localeconv exists.
51210
51211 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51212
51213         Merge changes from coreutils, as described below in several
51214         changelogs dated today.
51215
51216         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51217         (O_DIRECTORY): Remove; not needed here, since "." must be
51218         a directory.  All uses removed.
51219         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
51220         universal on Suns, and we also need to test for IRIX.
51221         Revamp code to use 'if' rather than '#if'.
51222         Avoid unnecessary comparison of cwd->desc to 0.
51223
51224         * lib/utimens.c (futimens): Robustify the previous patch, by checking
51225         for known valid error numbers rather than observed invalid ones.
51226
51227 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51228
51229         * modules/ullong_max: New file.
51230
51231         * modules/chdir-long, modules/openat: New files.
51232         * modules/save-cwd (Depends-on): Depend on chdir-long.
51233         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51234
51235 2005-01-18  Jim Meyering  <jim@meyering.net>
51236
51237         Merge from coreutils.
51238         * m4/chdir-long.m4, m4/openat.m4: New files.
51239         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51240         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
51241         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51242         is sane and DOES follow symlinks.  Besides, testing 20 different
51243         systems found no broken chown implementations.
51244         Prompted by a change in rsync's copy of this macro.
51245         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51246
51247         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51248
51249         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51250         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51251         NULL-means-set-to-current-time semantics.
51252         Remove temporary file immediately, rather than waiting
51253         for configure's at-exit trap code to do it.
51254
51255 2005-01-18  Jim Meyering  <jim@meyering.net>
51256
51257         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51258
51259         * lib/utimens.c (futimens): Account for the fact that futimes
51260         can also fail with errno == ENOSYS or errno == ENOENT.
51261         Patch from Dmitry V. Levin.
51262
51263         Change the name of the robust chdir function from chdir to chdir_long.
51264         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51265         (restore_cwd): Use chdir_long, not chdir.
51266         * lib/chdir-long.c: Renamed from chdir.c.
51267         * lib/chdir-long.h: Renamed from chdir.h.
51268         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51269         Hurd.
51270
51271 2005-01-18  Bruno Haible  <bruno@clisp.org>
51272
51273         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51274         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51275         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51276         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51277         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51278         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51279         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51280         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51281         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51282         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51283         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51284         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51285         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51286         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51287         Use an all-permissive copyright notice, recommended by RMS.
51288
51289 2005-01-18  Bob Proulx  <bob@proulx.com>
51290
51291         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51292         simplify offsetof() macro construct to avoid compile failure with
51293         native HP-UX 11.0 ANSI C compiler.
51294
51295 2005-01-17  Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51298         redundant because stpncpy.m4 takes care of it.
51299
51300 2005-01-17  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51303
51304 2005-01-17  Bruno Haible  <bruno@clisp.org>
51305
51306         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51307         used.
51308
51309 2005-01-17  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/fwriteerror.h (fwriteerror): Change specification to include
51312         fclose.
51313         * lib/fwriteerror.c: Include <stdbool.h>.
51314         (fwriteerror): At the end, close the file stream. Record whether
51315         stdout was already closed.
51316
51317 2005-01-17  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/execute.c (environ): Declare if needed.
51320         * lib/pipe.c (environ): Likewise.
51321         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51322
51323 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51324
51325         * modules/argp: Depend on vsnprintf
51326
51327 2005-01-10  Jim Meyering  <jim@meyering.net>
51328
51329         * modules/closeout (Depends-on): Add atexit.
51330
51331 2005-01-06  Bruno Haible  <bruno@clisp.org>
51332
51333         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51334
51335 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
51336
51337         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51338         definitions to be after all include files, to avoid collisions.
51339         Problem reported by Bob Proulx.
51340
51341 2005-01-04  Jim Meyering  <jim@meyering.net>
51342
51343         Changes imported from coreutils.
51344         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51345         as the mkstemp template, use a temporary directory and an
51346         8.3-friendly template to avoid trouble on systems like DJGPP.
51347         Reported by Juan M. Guerrero via Stepan Kasal.
51348         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51349         close. Remove the temporary directory right away, rather than waiting
51350         for configure's at-exit trap code to do it.
51351         Suggestion from Stepan Kasal.
51352
51353 2005-01-01  Simon Josefsson  <jas@extundo.com>
51354
51355         * gnulib-tool: Print #include directives when --import'ing.
51356
51357 2004-12-28  Simon Josefsson  <jas@extundo.com>
51358
51359         * tests/test-base64.c: Include required header files.  Remove
51360         unused variables.
51361
51362 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51363
51364         * modules/error (Depends-on): Remove gettext.
51365
51366 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51367
51368         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51369         not needed.  This removes a dependency on the gettext module.
51370         [defined _LIBC]: Do not include <libintl.h>; not needed.
51371
51372 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51373
51374         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51375         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51376
51377 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
51378
51379         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51380         HAVE_DECL_STRTOLD.
51381
51382 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51383
51384         * modules/getdate (Depends-on): Remove alloca-opt.
51385
51386 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51387
51388         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51389
51390 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
51391
51392         * lib/argp-parse.c: Include <stddef.h>.
51393         (alignof, alignto): New macros.
51394         (parser_init): Don't assume that void * is aligned sufficiently
51395         for struct option.
51396
51397         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51398         need to extend the stack.
51399         (YYINITDEPTH): New macro, so that the initial stack isn't overly
51400         large.
51401
51402 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51403
51404         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51405
51406 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51407
51408         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51409         (2004-10-24) change.  Apparently this was a false alarm.
51410
51411         * modules/getdate: Depend on alloca-opt, not alloca.
51412
51413 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51416         Remove now-obsolete comment about AIX.
51417         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51418         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51419         (YYMAXDEPTH): New macro.
51420
51421 2004-12-18  Simon Josefsson  <jas@extundo.com>
51422
51423         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51424
51425 2004-12-18  Bruno Haible  <bruno@clisp.org>
51426
51427         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51428
51429 2004-12-18  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/fatal-signal.c (fatal_signals): Make non-const.
51432         (init_fatal_signals): New function.
51433         (uninstall_handlers, install_handlers): Ignore signals that were set to
51434         SIG_IGN.
51435         (at_fatal_signal): Call init_fatal_signals.
51436         (init_fatal_signal_set): Likewise. Ignore signals that were set to
51437         SIG_IGN.
51438         Reported by Paul Eggert.
51439
51440 2004-12-18  Bruno Haible  <bruno@clisp.org>
51441
51442         * doc/alloca.texi: New file.
51443         * doc/alloca-opt.texi: New file.
51444
51445 2004-12-17  Jim Meyering  <jim@meyering.net>
51446
51447         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51448         Otherwise, install-sh could exit with improper exit status when
51449         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
51450
51451 2004-12-16  Simon Josefsson  <jas@extundo.com>
51452
51453         * tests/test-base64.c: Add license.
51454
51455 2004-12-15  Stepan Kasal  <address@hidden>
51456
51457         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51458
51459 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
51460
51461         * modules/getcwd (Files): Add m4/d-ino.m4.
51462         Suggested by Mark D. Baushke.
51463
51464 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51465
51466         * lib/getdate.y (textint): New member "negative".
51467         (time_zone_hhmm): New function.
51468         Expect 14 shift-reduce conflicts, not 13.
51469         (o_colon_minutes): New rule.
51470         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51471         (yylex): Set the "negative" member of signed numbers.
51472
51473 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
51474
51475         * doc/getdate.texi (Time of day items, Time zone items):
51476         Describe new formats +00:00, UTC+00:00.
51477
51478 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51481         spurious "-l"s.  Problem reported by Stepan Kasal.
51482
51483 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51486         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
51487
51488 2004-12-04  Simon Josefsson  <jas@extundo.com>
51489
51490         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51491         Vandoorselaere <yoann@prelude-ids.org>.
51492
51493 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51494
51495         Changes imported from coreutils.
51496         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51497         exist.
51498         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51499
51500 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51501
51502         Changes imported from coreutils.
51503         * lib/hard-locale.c: Assume <locale.h> exists.
51504         Include "strdup.h".
51505         (GLIBC_VERSION): New macro.
51506         (hard_locale): Assume setlocale exists.
51507         Rewrite to avoid #ifdef.
51508         Use strdup rather than malloc + strcpy.
51509         * lib/human.c: Assume <locale.h> exists.
51510         (human_readable): Assume localeconv exists.
51511
51512 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
51513
51514         * modules/hard-locale (Depends-on): Add strdup.
51515
51516 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
51517
51518         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
51519         convert T2, not T.  (Imported from libc.)
51520
51521 2004-11-30  Simon Josefsson  <jas@extundo.com>
51522
51523         * modules/restrict (License): Change to LGPL.
51524
51525 2004-11-30  Simon Josefsson  <jas@extundo.com>
51526
51527         * m4/restrict.m4: Add copyright and copying conditions.
51528
51529 2004-11-30  Simon Josefsson  <jas@extundo.com>
51530
51531         * m4/base64.m4: New file.
51532
51533 2004-11-30  Simon Josefsson  <jas@extundo.com>
51534
51535         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
51536         base64.
51537
51538         * tests/test-base64.c: New file.
51539
51540         * modules/base64: New file.
51541
51542 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51543
51544         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
51545         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
51546
51547         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
51548
51549 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
51550
51551         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
51552         (__getcwd.c): Don't restore errno; glibc doesn't.
51553         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
51554         first, falling back to our code only if its results look suspicious.
51555         Ensure that the resulting buffer is only as large as necessary.
51556
51557         * lib/readutmp.c: Include readutmp.h first.
51558         Include <errno.h>, since readutmp.h no longer does that.
51559         * lib/readutmp.h: Don't include <errno.h>,
51560         <sys/param.h>, <time.h>; not needed to establish interface.
51561         (errno): Remove decl.
51562         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
51563         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
51564         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
51565
51566 2004-11-28  Simon Josefsson  <jas@extundo.com>
51567
51568         * lib/base64.h, base64.c: New file.
51569
51570 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
51571
51572         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
51573
51574 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
51575
51576         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
51577         (Depends-on): Remove pathmax, same.  Add mempcpy.
51578         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
51579         (Makefile.am): Append getcwd.h to lib_SOURCES.
51580         (Include): Add getcwd.h.
51581         (Maintainer): Change from Jim Meyering to "all, glibc",
51582         since getdate now uses intended-for-glibc code.
51583         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
51584         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
51585
51586 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51587
51588         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
51589         HP's ANSI C compiler.
51590         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
51591         Declaring int functions causes warnings on some modern systems and
51592         shouldn't be needed to compile on ancient ones.
51593         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
51594         defined.
51595
51596         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
51597         with the following changes.
51598         (__set_errno): Parenthesize properly.
51599         Include <stdbool.h>.
51600         (MIN, MAX, MATCHING_INO): New macros.
51601         (__getcwd): Define with prototype, not K&R form.
51602         Use heuristics to allocate default buffer on stack if possible.
51603         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
51604         behavior, and to avoid the PATH_MAX limit when computing
51605         ../../../../...
51606         Use MATCHING_INO to compare inode number to file.
51607         Check for arithmetic overflow in size calculations.
51608         Fix bug in reallocation of dot array that caused getcwd to fail
51609         on directories nested deeper than 75.
51610         Be more careful about saving errno on error.
51611         Do not use realloc; use only free+malloc, as this is a bit
51612         more flexible and avoids a needless copy operation.
51613         Do not inspect st_dev and st_ino for symbolic links; POSIX
51614         doesn't specify the latter.
51615         Check for closedir errors.
51616         Avoid needless casts.
51617         Use "#ifdef weak_alias" around weak_alias, to be like other
51618         glibc code.
51619         The following changes to getcwd.c have effect only when used in
51620         gnulib; they have no effect inside glibc proper.
51621         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
51622         as alloca isn't used.
51623         (alloca, __alloca): Likewise.
51624         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
51625         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51626         unconditionally, as gnulib assumes C89 or better.
51627         Do not include <sys/param.h>.
51628         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
51629         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
51630         better.
51631         (NULL) [!defined NULL]: Remove; we assume C89 or better.
51632         Include <dirent.h> in a way that is compatible with modern Autoconf.
51633         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
51634         New macros, if not already defined.
51635         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
51636         Use "_LIBC", not "defined _LIBC", for consistency.
51637         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
51638         a mempcpy module.
51639         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
51640         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
51641         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
51642         credit only to Jim Meyering and adjust the copyright dates.
51643         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
51644         <stdlib.h>, <unistd.h>, "pathmax.h".
51645         Instead, include "xgetcwd.h" (first) and "getcwd.h".
51646         (INITIAL_BUFFER_SIZE): Remove.
51647         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
51648
51649 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
51650
51651         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
51652         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
51653         Use the _ONCE methods, for efficiency.
51654         Check for fcntl.h.  In test program, include <errno.h>
51655         and <fcntl.h> if available.  Remove old K&R cruft from
51656         test program.  Check for common errors in GNU/Linux,
51657         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
51658         don't do AC_LIBOBJ, as that's getcwd.m4's job.
51659         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
51660         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
51661         name accordingly.
51662         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
51663         accommodate new getcwd.c.
51664         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
51665         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
51666         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
51667         that's all we need now.
51668
51669 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51670
51671         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
51672         argp-parse.c depends on getopt internals, that means we should
51673         always use our getopt, to be on the safe side.
51674         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
51675         order not to spoil the result of an eventual previous invocation
51676         of gl_GETOPT_SUBSTITUTE.
51677
51678 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51679
51680         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
51681         redefinition warnings. To avoid them, include the defines
51682         in `#if !defined __need_getopt ... #endif'. The only place
51683         where __getopt_argv_const is used is in definitions
51684         of getopt_long and getopt_long_only below, which are as well
51685         protected by `#ifndef __need_getopt'.
51686         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
51687         __need_getopt after including <stdio.h> and <unistd.h> These
51688         headers might have defined it.
51689
51690 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51691
51692         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
51693
51694 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
51695
51696         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
51697         (futimens): New function, which uses futimes if available.
51698         (futimens, utimens): Support timespec==NULL, with same semantics
51699         as utime and utimens.
51700         * lib/utimens.h (futimens): New decl.
51701
51702 2004-11-23  Jim Meyering  <jim@meyering.net>
51703
51704         * lib/getopt_.h: Remove trailing blanks.
51705
51706 2004-11-23  Jim Meyering  <jim@meyering.net>
51707
51708         * lib/__fpending.c: Add comment.
51709
51710 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * modules/canonicalize (Depends-on): Add xreadlink.
51713         Problem reported by James Youngman.
51714
51715 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
51718         New macros.
51719         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
51720         optopt): Use them instead of invoking ## directly; otherwise, the
51721         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
51722
51723 2004-11-19  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/strtok_r.c: Move comments from here...
51726         * lib/strtok_r.h: ... to here.
51727
51728 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51729
51730         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
51731         implementations that mishandle size_t overflow.
51732
51733 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
51734
51735         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
51736         might fail.  Problem reported by Yoann Vandoorselaere.
51737         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
51738         implementations that mishandle size_t overflow.
51739
51740 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * modules/canon-host (Depends-on): Add strdup.
51743
51744 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51745
51746         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
51747
51748 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51749
51750         * lib/canon-host.c: Include "strdup.h".
51751         (canon_host): Use getaddrinfo if available, so that IPv6 works.
51752         Use strdup instead of malloc/strcpy to duplicate strings.
51753
51754         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
51755         (human_space_before_unit): New constant.
51756         * lib/human.c (human_readable): Support it.
51757
51758         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
51759         (xgetcwd): Set errno correctly when failing.
51760         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
51761         the failure is actually due to a PATH_MAX problem.
51762
51763         Further getopt changes to make it more likely that glibc will
51764         buy the changes back.
51765         * lib/getopt.c (POSIXLY_CORRECT): New constant.
51766         (getopt): Use it, so to preserve glibc semantic
51767         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
51768         when compiling for libc.
51769         * lib/getopt_.h (__getopt_argv_const): Bring it back.
51770         (getopt_long, getopt_long_only): Use it.
51771
51772         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51773         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
51774         (getopt): Argv is now char * const *, as per standard.
51775         (_getopt_internal_r, _getopt_internal): Argv is now char **,
51776         not char *__getopt_argv_const *.
51777         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51778         _getopt_long_only_r): Likewise.
51779         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
51780         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51781         _getopt_long_r, _getopt_long_only_r): Likewise.
51782         * lib/getopt_.h (__getopt_argv_const): Remove.
51783         (getopt): Argv is now char * const *, as per standard.
51784
51785         * lib/getdate.y (tORDINAL): New token.
51786         (day, relunit): Allow it for relative times.
51787         (relative_time_table): Use tORDINAL for ordinals.
51788
51789 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51790
51791         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
51792         Document that "second" isn't allowed as an ordinal number.
51793
51794 2004-11-16  Jim Meyering  <jim@meyering.net>
51795
51796         * modules/closeout (Depends-on): Add fpending.
51797
51798 2004-11-15  Jim Meyering  <jim@meyering.net>
51799
51800         * lib/closeout.c: Include "__fpending.h" once again.
51801         Include <stdbool.h>.
51802         (close_stdout): Don't fail just because stdout was closed initially,
51803         since some programs don't write to stdout in the normal course of
51804         operation (other than --version and --help), and we don't want this
51805         function to make e.g. `touch file >&-' fail.
51806         But do fail if it was closed and someone has tried to write to it.
51807         E.g., `printf foo >&-' must fail.
51808
51809 2004-11-13  Jim Meyering  <jim@meyering.net>
51810
51811         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
51812
51813 2004-11-12  Simon Josefsson  <jas@extundo.com>
51814
51815         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
51816         small doc fix is still pending.
51817
51818 2004-11-11  Simon Josefsson  <jas@extundo.com>
51819
51820         * modules/strtok_r: New file.
51821
51822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51823         strtok_r.
51824
51825 2004-11-11  Simon Josefsson  <jas@extundo.com>
51826
51827         * m4/strtok_r.m4: New file.
51828
51829         * m4/getopt.m4: Replace opterr.
51830
51831 2004-11-11  Simon Josefsson  <jas@extundo.com>
51832
51833         * lib/strtok_r.h, strtok_r.c: New file.
51834
51835 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
51838         of replacing opterr, getopt, etc.  This should handle the
51839         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
51840
51841 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
51844         we can stop lying to compilers about the constness of argv when we
51845         are compiled outside glibc.
51846         (getopt, getopt_long, getopt_long_only): Use it.
51847         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
51848         _getopt_internal, getopt): Likewise.
51849         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
51850         _getopt_long_only_r): Likewise.
51851         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
51852         _getopt_long_r, _getopt_long_only_r): Likewise.
51853
51854         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
51855         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
51856         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
51857         the other external symbols.
51858         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
51859         declaration, since the above renaming now works around collisions.
51860
51861 2004-11-11  Jim Meyering  <jim@meyering.net>
51862
51863         * lib/linebreak.c: Remove trailing blanks.
51864         * lib/alloca_.h: Likewise.
51865         * lib/acosl.c: Likewise.
51866         * lib/euidaccess.c: Likewise.
51867         * lib/allocsa.h: Likewise.
51868
51869 2004-11-10  Simon Josefsson  <jas@extundo.com>
51870
51871         * m4/getaddrinfo.m4: New file.
51872
51873 2004-11-10  Simon Josefsson  <jas@extundo.com>
51874
51875         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
51876
51877 2004-11-10  Simon Josefsson  <jas@extundo.com>
51878
51879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51880         getaddrinfo.
51881
51882         * modules/getaddrinfo: New file.
51883
51884 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51885
51886         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
51887
51888 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * lib/mktime.c (SHR): New macro, which is a portable
51891         substitute for >> that should work even on Crays.
51892         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
51893         Problem reported by Mark D. Baushke in
51894         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
51895         * lib/getdate.y (SHR): Likewise.
51896         (tm_diff): Use it.
51897         * lib/strftime.c (SHR): Likewise.
51898         (tm_diff): Use it.
51899         * lib/quotearg.c (struct quoting_options): Use unsigned int for
51900         quote_these_too, so that right shifts are well defined.  All uses
51901         changed.
51902
51903 2004-11-10  Jim Meyering  <jim@meyering.net>
51904
51905         Ensure that no close failure goes unreported.
51906         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
51907         return early when it seems there's nothing to flush.
51908         Don't include __fpending.h.
51909
51910 2004-11-10  Jim Meyering  <jim@meyering.net>
51911
51912         * modules/closeout (Depends-on): Remove fpending.
51913
51914 2004-11-10  Jim Meyering  <jim@meyering.net>
51915
51916         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
51917
51918 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51919
51920         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
51921         gl_FUNC_STRFTIME.
51922         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
51923         and AC_REQUIRE when possible, to avoid duplicate checks.
51924         Check for <wchar.h>.
51925
51926 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
51927
51928         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
51929
51930 2004-11-09  Bruno Haible  <bruno@clisp.org>
51931
51932         * m4/sockpfaf.m4: New file.
51933
51934 2004-11-05  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
51937         Reported by Mark D. Baushke <mdb@cvshome.org>.
51938
51939 2004-11-04  Bruno Haible  <bruno@clisp.org>
51940
51941         2004-09-11  Bruno Haible  <bruno@clisp.org>
51942                 * allocsa.valgrind: New file.
51943         2004-02-06  Bruno Haible  <bruno@clisp.org>
51944                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
51945                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
51946                 Reported by Christopher Seip <chris.seip@hp.com>.
51947
51948 2004-11-04  Bruno Haible  <bruno@clisp.org>
51949
51950         * modules/allocsa (Files): Add lib/allocsa.valgrind.
51951         (Makefile.am): Distribute it.
51952
51953 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
51954
51955         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
51956         with errno == ERANGE if the buffer is too small.
51957         Problem reported by Mark D. Baushke.
51958
51959 2004-11-03  Albert Chin  <china@thewrittenword.com>
51960             Paul Eggert  <eggert@cs.ucla.edu>
51961
51962         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
51963         equivalent, substitute $ac_type for equivalent type rather than
51964         blindly using uint32_t *always* which won't work if uint32_t is not
51965         available.  Define _UINT32_T to work around typedef of uint32_t if
51966         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
51967         2.5.1.
51968
51969 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
51970
51971         * m4/jm-macros.m4: Sync from coreutils.
51972         (gl_MACROS): Check for mbrlen, for pathchk.
51973         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
51974
51975 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
51976
51977         * lib/xreadlink.c (MAXSIZE): New macro.
51978         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
51979         size does not exceed MAXSIZE.  Avoid cast.
51980         As suggested by Mark D. Baushke in
51981         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
51982         if readlink fails with buffer size just under MAXSIZE, try again
51983         with MAXSIZE.
51984
51985 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
51986
51987         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
51988
51989 2004-11-02  Derek R. Price  <derek@ximbiot.com>
51990         and  Paul Eggert  <eggert@cs.ucla.edu>
51991
51992         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
51993         (get_date): Overparenthesize to avoid GCC warning.
51994
51995 2004-11-02  Bruno Haible  <bruno@clisp.org>
51996
51997         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
51998         returns void.
51999
52000 2004-11-02  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52003         function returns void.
52004
52005 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52006
52007         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52008         fflush_unlocked, flockfile, funlockfile, funlockfile,
52009         fputs_unlocked, putc_unlocked.
52010
52011 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52014         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52015         already declared.
52016
52017 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52018
52019         * modules/getdate (Files): Add doc/getdate.texi.
52020         (Depends-on): Add setenv, xalloc.
52021
52022 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52023
52024         * lib/getdate.y: Add support for TZ="foo" within a date string.
52025         Fix some bugs near time_t boundaries.  Reject dates with
52026         out-of-range components, e.g., "Sept 31".
52027         Include <stdlib.h>, "setenv.h", "xalloc.h".
52028         (ISDIGIT_LOCALE): Remove; unused.
52029         Note that the TZ and time functions used here are not reentrant.
52030         (mktime_ok, get_tz): New functions.
52031         (TZBUFSIZE): New constant.
52032         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52033         This requires that we sometimes generate our own TZ="XXX..." setting.
52034
52035 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * doc/getdate.texi: New file, from coreutils with modifications for
52038         the new TZ parsing.
52039
52040 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52041
52042         * lib/mktime.c (not_equal_tm): Remove redundant check.
52043
52044 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52045
52046         * modules/regex (lib_SOURCES): Add regex.c.
52047         Reported by James Youngman in
52048         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52049
52050 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52051
52052         * lib/getdate.y: Use Bison 1.875 features, and some minor
52053         code cleanups.  This change does not affect semantics.
52054         Don't include <stdlib.h>; no longer needed.
52055         Don't include unlocked-io.h; only the "#if TEST" code uses
52056         stdio, and performance isn't crucial there.
52057         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52058         Bison 1.875 features as described below.
52059         All uses of "PC." replaced by "pc->".
52060         (YYSTYPE): Add a forward declaration.
52061         (yylex, yyerror): Use full prototypes in forward decls.
52062         Use "%pure-parser" rather than obsolescent "%pure_parser".
52063         Use %parse-param and %lex-param instead of obsolescent
52064         YYPARSE_PARAM and YYLEX_PARAM.
52065         (meridian_table, month_and_day_table, time_units_table,
52066         relative_time_table, time_zone_table, military_table,
52067         lookup_zone, lookup_word, get_date):
52068         Use NULL instead of 0 where appropriate.
52069         (to_hour): Avoid abort (), to avoid a dependency on
52070         stdlib.h.
52071         (yyerror, yylex): Now accepts parser_control * arg.
52072         (main) [TEST]: Use '\0' rather than 0 for char.
52073
52074 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52075
52076         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52077
52078 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52079
52080         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52081         It's now the caller's responsibility to handle the case where
52082         !HAVE_GETPAGESIZE && !defined getpagesize.
52083
52084         * lib/mktime.c (leapyear): Arg is long int, not int.
52085
52086 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52087
52088         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52089
52090 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52091
52092         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52093         missing.  Problem reported by James Youngman.
52094
52095 2004-10-16  Simon Josefsson  <jas@extundo.com>
52096
52097         * gnulib-tool: Fix comments.  Fix parse problem.
52098         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52099
52100 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52101
52102         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52103         implementation of getopt_long.  Problem reported by Alexander Taler in:
52104         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52105
52106 2004-10-15  Bruno Haible  <bruno@clisp.org>
52107
52108         * gnulib-tool: Untabify. Initialize supplied_libname.
52109         (func_usage): More homogenous output.
52110         (func_modules_transitive_closure, func_modules_to_filelist,
52111         func_emit_lib_Makefile_am): New functions.
52112         (func_import): New function, extracted from big case statement. Use
52113         func_get_license, func_modules_transitive_closure,
52114         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52115         opt_lgpl. Don't use test -a, as it's not portable.
52116         (func_create_testdir): Use func_modules_transitive_closure,
52117         func_modules_to_filelist, func_emit_lib_Makefile_am.
52118
52119 2004-10-15  Bruno Haible  <bruno@clisp.org>
52120
52121         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52122
52123 2004-10-15  Bruno Haible  <bruno@clisp.org>
52124
52125         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52126         the portions belonging to each module.
52127         Suggested by Derek Robert Price <derek@ximbiot.com>.
52128
52129 2004-10-12  Simon Josefsson  <jas@extundo.com>
52130
52131         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52132         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52133         to real functions.
52134
52135 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52136
52137         * modules/vsnprintf: New file.
52138
52139 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52140
52141         * m4/vsnprintf.m4: New file.
52142
52143 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52144
52145         * lib/vsnprintf.h: New file.
52146         * lib/vsnprintf.c: New file.
52147
52148 2004-10-11  Bruno Haible  <bruno@clisp.org>
52149
52150         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52151         vsnprintf.
52152
52153 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52154
52155         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52156
52157 2004-10-07  Bruno Haible  <bruno@clisp.org>
52158
52159         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52160         fits into the provided buffer.
52161
52162 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52163
52164         * lib/diacrit.c, diacrit.h: Add GPL notice.
52165
52166         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52167         notice.
52168         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52169         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52170         This avoids a potential constant-folding bug.
52171
52172 2004-10-05  Bruno Haible  <bruno@clisp.org>
52173
52174         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52175         for the declaration of strsep.
52176
52177 2004-10-05  Bruno Haible  <bruno@clisp.org>
52178
52179         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52180
52181 2004-10-04  Simon Josefsson  <jas@extundo.com>
52182
52183         * modules/memmem: New file.
52184         * tests/test-memmem.c: New file.
52185         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52186
52187 2004-10-04  Simon Josefsson  <jas@extundo.com>
52188
52189         * m4/memmem.m4: New file.
52190
52191 2004-10-04  Simon Josefsson  <jas@extundo.com>
52192
52193         * lib/memmem.h: New file.
52194         * lib/memmem.c: New file, taken from glibc.
52195
52196 2004-10-04  Simon Josefsson  <jas@extundo.com>
52197
52198         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52199         '#ifdef USE_UNLOCKED_IO'.
52200
52201 2004-10-04  Simon Josefsson  <jas@extundo.com>
52202
52203         * config/srclist.txt: Add memmem from glibc.
52204
52205 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52206
52207         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52208
52209         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52210         modules/exclude, modules/getdate, modules/getline,
52211         modules/getndelim2, modules/getpass, modules/getpass-gnu,
52212         modules/getusershell, modules/linebuffer, modules/md5,
52213         modules/mountlist, modules/posixtm, modules/readtokens,
52214         modules/readutmp, modules/regex, modules/sha1,
52215         modules/version-etc, modules/yesno:
52216         Remove dependency on unlocked-io.
52217
52218 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52219
52220         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
52221
52222         * m4/unlocked-io.m4: Add copyright notice.
52223         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52224
52225 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52226
52227         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
52228         * lib/xmalloc.c (xmemdup): Likewise.
52229         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52230         XFREE): Remove these long-obsolescent macros.
52231         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52232         * lib/xstrdup.c: Remove.
52233
52234         * lib/regex.c (re_comp): Cast gettext return value to char *,
52235         Problem reported by Martin Neitzel via Mark D. Baushke.
52236
52237 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52238
52239         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52240         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52241         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52242         regex.c, sha1.c, version-etc.c, yesno.c:
52243         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52244         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52245         the includer's responsibility.
52246
52247         Sync from coreutils.
52248
52249         * lib/modechange.c (mode_compile): Don't decrement a pointer that
52250         points to the start of a string, as the C Standard says the
52251         resulting behavior is undefined.
52252
52253         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52254         simple -> simple_backups, numbered_existing ->
52255         numbered_existing_backups, numbered -> numbered_backups
52256         to avoid shadowing problems.  All uses changed.
52257         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52258         * lib/backupfile.c (check_extension, numbered_backup):
52259         Rename locals to avoid shadowing 'basename'.
52260         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52261         once.
52262
52263         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52264         * lib/.cvsignore: Add getopt.h.
52265
52266 2004-10-04  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/README: New file.
52269         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52270         not a module.
52271
52272 2004-10-02  Jim Meyering  <jim@meyering.net>
52273
52274         * lib/dirfd.h, getpagesize.h: Add copyright notice.
52275
52276 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52277
52278         * modules/strsep: New file.
52279
52280 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52281
52282         * m4/strsep.m4: New file.
52283
52284 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52285
52286         * lib/strsep.h: New file.
52287         * lib/strsep.c: New file.
52288
52289 2004-10-01  Simon Josefsson  <jas@extundo.com>
52290
52291         * lib/snprintf.c (snprintf): Handle size==0.
52292
52293 2004-10-01  Simon Josefsson  <jas@extundo.com>
52294             Bruno Haible  <bruno@clisp.org>
52295
52296         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52297         (snprintf): Declare 'args'.
52298
52299 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
52300
52301         * lib/snprintf.c: Remove comments as to why each header is needed.
52302
52303 2004-10-01  Bruno Haible  <bruno@clisp.org>
52304
52305         * MODULES.html.sh: Add strsep.
52306
52307 2004-09-30  Simon Josefsson  <jas@extundo.com>
52308
52309         * modules/snprintf: New file.
52310
52311 2004-09-30  Simon Josefsson  <jas@extundo.com>
52312
52313         * m4/snprintf.m4: New file.
52314
52315 2004-09-30  Simon Josefsson  <jas@extundo.com>
52316
52317         * lib/snprintf.h, lib/snprintf.c: New files.
52318
52319 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52320
52321         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52322         (hol_entry_help): Never translate an empty string.
52323         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52324         * lib/argp.h (OPTION_NO_TRANS): New option.
52325
52326 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52327
52328         * modules/argp (Maintainer): Replace Simon Josefsson
52329         by Sergey Poznyakoff.
52330
52331 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52332
52333         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52334         changes merged back into glibc.
52335
52336 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
52337
52338         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52339
52340 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
52341
52342         * lib/xvasprintf.c: Include xalloc.h.
52343         (xvasprintf): Use xalloc_die, not xmalloc_die.
52344
52345 2004-09-29  Bruno Haible  <bruno@clisp.org>
52346
52347         * modules/alloca-opt: New file, derived from modules/alloca.
52348         * modules/allocsa: Depend on alloca-opt instead of alloca.
52349         * modules/setenv: Likewise.
52350         * modules/vasnprintf: Likewise.
52351         * MODULES.html.sh: Add alloca-opt.
52352
52353 2004-09-28  Simon Josefsson  <jas@extundo.com>
52354
52355         * gnulib-tool: New parameter --lgpl, to asseert that modules are
52356         LGPL, and to replace license template from GPL to LGPL.
52357
52358 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52359
52360         * modules/dummy: Change license to LGPL.
52361
52362 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52365
52366 2004-09-24  Simon Josefsson  <jas@extundo.com>
52367
52368         * modules/minmax (License): Change from GPL to LGPL.
52369
52370 2004-09-23  Simon Josefsson  <jas@extundo.com>
52371
52372         * gnulib-tool (--import): Typo.
52373
52374 2004-09-23  Simon Josefsson  <jas@extundo.com>
52375
52376         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52377
52378 2004-09-22  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/*: Add 'License' field.
52381         * gnulib-tool: Accept --extract-license option.
52382         (func_get_license): New function.
52383
52384 2004-09-21  Bruno Haible  <bruno@clisp.org>
52385
52386         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52387         Reported by Simon Josefsson.
52388
52389 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52392         gl_AC_TYPE_LONG_LONG.
52393
52394 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52397
52398 2004-09-18  Simon Josefsson  <jas@extundo.com>
52399         and  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52402         calls with autoreconf.  Define GL_LIB.
52403
52404 2004-09-14  Karl Berry  <karl@gnu.org>
52405
52406         * config/srclist.txt: unsync setenv.c, sigh.
52407
52408 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52409
52410         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52411         Problem reported by Bruno Haible in:
52412         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52413
52414 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
52415
52416         * config/srclist.txt: Comment out argp-pvh.c.
52417
52418 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
52419
52420         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52421         in case some system header has #define'd it.  Problem reported by
52422         Soeren D. Schulze in
52423         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52424
52425 2004-09-09  Karl Berry  <karl@gnu.org>
52426
52427         * regex.[ch]: delete from the root.  These were supposed to be
52428                 synced with emacs cvs, but this has not happened for about
52429                 a year, and anyway nothing else uses emacs regex.[ch].
52430                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52431                 lib/regex[.ch] is untouched.
52432
52433 2004-09-09  Bruno Haible  <bruno@clisp.org>
52434
52435         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52436
52437 2004-09-09  Bruno Haible  <bruno@clisp.org>
52438
52439         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52440         modifications.
52441         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52442
52443 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52444
52445         * modules/xvasprintf: New file.
52446         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52447
52448 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
52449
52450         * lib/xvasprintf.h: New file.
52451         * lib/xvasprintf.c: New file.
52452         * lib/xasprintf.c: New file.
52453
52454 2004-09-08  Bruno Haible  <bruno@clisp.org>
52455
52456         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52457
52458 2004-09-08  Bruno Haible  <bruno@clisp.org>
52459
52460         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52461         length is > INT_MAX.
52462         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52463         more.
52464
52465 2004-09-08  Bruno Haible  <bruno@clisp.org>
52466
52467         * lib/stdint_.h: New file, taken from GNU clisp.
52468
52469 2004-09-08  Bruno Haible  <bruno@clisp.org>
52470             Oskar Liljeblad  <oskar@osk.mine.nu>
52471
52472         * modules/stdint: New file.
52473         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52474
52475 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52476
52477         Import from coreutils.
52478         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52479         strings on unbounded length.  alloca's performance benefits aren't
52480         that important here.
52481         (V_STRDUP): Remove.
52482         (parse_with_separator): New function, with most of the internals
52483         of the old parse_user_spec.  Allow user to omit both user and group,
52484         for compatibility with FreeBSD.
52485         Clone only the user name, not the entire spec.
52486         Do not set *uid, *gid unless entirely successful.
52487         Avoid memory leak in some failing cases.
52488         Fix regression for USER.GROUP reported by Dmitry V. Levin in
52489         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52490         (parse_user_spec): Rewrite to use parse_with_separator.
52491
52492 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52493
52494         * modules/userspec: Don't depend on alloca.
52495
52496 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52499
52500 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52501
52502         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52503         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52504         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
52505
52506 2004-08-16  Simon Josefsson  <jas@extundo.com>
52507
52508         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52509         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52510         Add --dry-run for --import.
52511         Let user provided command line parameters override configure.ac
52512         settings.
52513
52514 2004-08-12  Simon Josefsson  <jas@extundo.com>
52515
52516         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52517         as discussed with Paul Eggert in threads rooted at
52518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
52519         and
52520         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
52521         Before, the test was empty, and relied on ELIDE_CODE in source
52522         code.)
52523         (gl_PREREQ_GETOPT): New macro.
52524         (gl_GETOPT): Use them.
52525
52526 2004-08-12  Simon Josefsson  <jas@extundo.com>
52527
52528         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
52529         * lib/getopt_.h: Renamed from getopt.h.
52530
52531 2004-08-12  Simon Josefsson  <jas@extundo.com>
52532
52533         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
52534         Change default library name from libfoo to libgnu.
52535         Now, if you have a configure.ac that says:
52536                 gl_SOURCE_BASE(gl)
52537                 gl_M4_BASE(gl/m4)
52538                 gl_MODULES(error getopt etcetera)
52539                 gl_INIT
52540         you can import all you need by running:
52541                 ../gnulib/gnulib-tool --import
52542
52543         * modules/getopt (Files): Rename getopt.h to getopt_.h.
52544         (Makefile.am): Rewrite, use logic from argz.
52545         (Include): Use <getopt.h> instead of "getopt.h".
52546
52547 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * modules/argp (Files): Add m4/unlocked-io.m4.
52550         (Depends-on): Add extensions.
52551
52552 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
52555         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
52556         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
52557         Check for program_invocation_name, program_invocation_short_name,
52558         flockfile, funlockfile, features.h, _getopt_long_only_r.
52559
52560 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52561
52562         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
52563         its complicated substitute.
52564         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
52565         and program_invocation_name.
52566         (__argp_basename) [!_LIBC]: Remove; the only use was
52567         replaced by its body.
52568         (__argp_short_program_name): Change condition from
52569         !defined __argp_short_program_name to
52570         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
52571         to match argp-namefrob.h.
52572         (__argp_failure): Don't assume strerror_r returns char *.
52573         * lib/argp-parse.c (N_): Define unconditionally.
52574         (argp_default_options): Fill out initializers with 0 to avoid
52575         gcc warnings.
52576
52577 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
52578
52579         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
52580         getopt1.c.
52581
52582 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52583
52584         Merge from coreutils.
52585
52586         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
52587
52588         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
52589         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
52590
52591 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52592
52593         Merge from coreutils.
52594
52595         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
52596         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
52597         for Reliant Unix 5.43.
52598
52599         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
52600         (union fooround): Use uintmax_t, not long int.
52601         The rest is a merge from libc:
52602         [defined _LIBC]: Include <shlib-compat.h>.
52603         (_obstack) [defined _LIBC]: Remove after 2.3.4.
52604
52605         * lib/settime.c (settime): Recode to avoid warning with
52606         Sun Forte C 6U2.
52607
52608         * lib/strverscmp.c: Convert to UTF-8.
52609
52610 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
52613         m4/uintmax_t.m4.
52614
52615 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52616
52617         * modules/xalloc-die: New file.
52618         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
52619
52620         * modules/md5 (Files): Add m4/uint32_t.m4.
52621         * modules/sha1: Renamed from modules/sha.
52622         (Files):
52623         Rename lib/sha.h to lib/sha1.h.
52624         Rename lib/sha.c to lib/sha1.c.
52625         Rename m4/sha.m4 to m4/sha1.m4.
52626         (lib_SOURCES): Likewise.
52627         (configure.ac): Rename gl_SHA to gl_SHA1.
52628         (Include): sha.h -> sha1.h.
52629
52630 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52631
52632         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
52633         * m4/sha1.m4: Renamed from sha.m4.
52634         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
52635
52636 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52637
52638         * lib/obstack.h (obstack_empty_p):
52639         Don't assume that chunk->contents is suitably aligned.
52640         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
52641         Likewise. Problem reported by Benno in
52642         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
52643
52644         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
52645         readable.  This could be improved further but it'd take some work.
52646
52647 2004-08-08  Simon Josefsson  <jas@extundo.com>
52648
52649         * modules/xgethostname (Depends-on): Remove exit and error (not
52650         used).
52651
52652         * modules/getpass-gnu: Add getpass.h.
52653         (Depends-on): Add stdbool.
52654         * modules/getpass: Add getpass.h.
52655
52656 2004-08-08  Simon Josefsson  <jas@extundo.com>
52657
52658         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
52659         Check getpass declaration.
52660
52661 2004-08-08  Simon Josefsson  <jas@extundo.com>
52662
52663         * lib/xgethostname.c: Don't include error.h (not used).
52664
52665         * lib/getpass.h: Add.
52666         * lib/getpass.c: Include getpass.h first.
52667
52668 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
52669
52670         * lib/xalloc-die.c: New file.
52671         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
52672         All uses removed.
52673         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
52674         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
52675         xalloc-die.c.
52676         (_, N_, xalloc_die): Move to xalloc-die.c.
52677         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
52678         so that we needn't mess with xalloc_msg_memory_exhausted.
52679
52680         * lib/sha1.h: Renamed from sha.h.
52681         (SHA1_H): Renamed from _SHA_H.
52682         (sha1_ctx): Renamed from sha_ctx.
52683         (sha1_init_ctx): Renamed from sha_init_ctx.
52684         (sha1_process_block): Renamed from sha_process_block.
52685         (sha1_process_bytes): Renamed from sha_process_bytes.
52686         (sha1_finish_ctx): Renamed from sha_finish_ctx.
52687         (sha1_read_ctx): Renamed from sha_read_ctx.
52688         (sha1_stream): Renamed from sha_stream.
52689         (sha1_buffer): Renamed from sha_buffer.
52690         * lib/sha1.c: Likewise; renamed from sha.c.
52691         Do not include <sys/types.h>.
52692         Include <stddef.h> rather than <stdlib.h>.
52693
52694 2004-08-08  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
52697         FILESYSTEM_PREFIX_LEN.
52698         * lib/progreloc.c: Likewise.
52699         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
52700
52701 2004-08-06  Simon Josefsson  <jas@extundo.com>
52702
52703         * modules/progname (Depends-on): Don't depend on stdbool.
52704
52705 2004-08-06  Simon Josefsson  <jas@extundo.com>
52706
52707         * modules/getsubopt: New file.
52708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52709         getsubopt.
52710
52711 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52712
52713         More merge from coreutils.
52714
52715         * m4/utimens.m4, m4/utimecmp.m4: New files.
52716         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
52717         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
52718         prereq.m4, sha.m4: Import changes from coreutils.
52719
52720 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         More merge from coreutils.
52723         * modules/raise, modules/readtokens0, modules/utimens:
52724         * modules/utimecmp, module/xnanosleep: New files.
52725         * modules/strftime: Add lib/strftime.h.
52726         Change include from <time.h> to "strftime.h".
52727         * modules/yesno: Add lib/yesno.h.
52728         * modules/backupfile: Remove lib/addext.c.
52729         * modules/euidaccess: Add stat-macros.h.
52730         * modules/canonicalize, modules/euidaccess,
52731         modules/filemode, modules/lchown, modules/makepath,
52732         modules/rmdir, modules/stat: Likewise.
52733
52734 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
52735
52736         Merge from tar.
52737         * lib/argp-help.c (make_hol, hol_append): Don't assume that
52738         SIZE_MAX is a valid preprocessor constant.
52739         (__argp_basename): Change from "#ifndef _LIBC"
52740         to "#ifndef __argp_short_program_name", so that
52741         we don't compile these functions for tar.
52742
52743         More merges from coreutils.
52744         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
52745         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
52746         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
52747         * lib/addext.c: Remove; no longer needed.
52748         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
52749         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
52750         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
52751         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
52752         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
52753         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
52754         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
52755         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
52756         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
52757         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52758         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
52759         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
52760         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
52761         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
52762         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
52763         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
52764         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
52765         Import changes from coreutils.
52766
52767 2004-08-05  Simon Josefsson  <jas@extundo.com>
52768
52769         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
52770
52771 2004-08-05  Simon Josefsson  <jas@extundo.com>
52772
52773         * m4/getsubopt.m4: New file.
52774
52775 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52776
52777         Merge from coreutils.
52778
52779         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
52780         * m4/getcwd-path-max.m4: New files.
52781
52782         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
52783         FILESYSTEM_PREFIX_LEN ->
52784         FILE_SYSTEM_PREFIX_LEN.
52785         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
52786         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
52787         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
52788         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
52789
52790         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
52791         prerequisite modules now handle the DOS stuff.
52792         Don't check for unistd.h.
52793
52794 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         Merge from coreutils.
52797
52798         * lib/.gdb-history: Remove; this doesn't belong here.
52799
52800         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
52801         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
52802         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
52803         * lib/getcwd.c: New files.
52804
52805         * lib/dirname.h: Include <stdbool.h>.
52806         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
52807         for consistency with POSIX terminology.  All uses changed.
52808         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
52809         (strip_trailing_slashes): Use bool for booleans.
52810         * lib/stripslash.c (strip_trailing_slashes): Likewise.
52811
52812         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
52813         sometimes returns a positive errno value even when it succeeds.
52814         (print_errno_message) [!LIBC]: Fall back on strerror if
52815         __strerror_r fails.
52816
52817         * lib/path-concat.c (mempcpy): Don't define if a system header defines
52818         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
52819         (longest_relative_suffix): New function.
52820         (path_concat): Use it.  Assume first argument is not NULL.
52821         Port to DOS.  Omit redundant separators.
52822         Report an error instead of returning NULL.
52823         Use mempcpy instead of memcpy.
52824         (xpath_concat): Remove: not declared or used.
52825
52826         * lib/same.h: Include <stdbool.h>
52827         (same_name): Return bool, not int.
52828         * lib/same.c (same_name): Likewise.
52829         (errno): Don't declare; we assume C89 or better now.
52830
52831         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
52832         if not already defined.
52833
52834         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
52835         * lib/dup-safer.c (errno): Likewise.
52836
52837 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
52838
52839         Merge from coreutils.
52840         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
52841         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
52842         * modules/path-concat: Don't depend on strdup.
52843
52844 2004-08-03  Simon Josefsson  <jas@extundo.com>
52845
52846         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
52847         * lib/progname.h: Don't include stdbool.h.
52848
52849 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52850
52851         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
52852         * MODULES.html.sh (func_all_modules): Remove fatal.
52853
52854 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52855
52856         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
52857
52858 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
52859
52860         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
52861         working.
52862
52863 2004-08-02  Simon Josefsson  <jas@extundo.com>
52864
52865         * lib/getsubopt.h: New file, with comments from Bruno Haible.
52866         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
52867         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
52868
52869 2004-08-01  Simon Josefsson  <jas@extundo.com>
52870
52871         * lib/xgetdomainname.c: Include stdlib.h, for free().
52872
52873 2004-07-19  Bruno Haible  <bruno@clisp.org>
52874
52875         * MODULES.html.sh (func_all_modules): Add dummy.
52876
52877 2004-07-16  Simon Josefsson  <jas@extundo.com>
52878
52879         * modules/dummy: New file.
52880
52881 2004-07-16  Simon Josefsson  <jas@extundo.com>
52882
52883         * lib/dummy.c: New file.
52884
52885 2004-07-16  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/backupfile.h: Add extern "C" for C++.
52888         * lib/closeout.h: Likewise.
52889         * lib/copy-file.h: Likewise.
52890         * lib/findprog.h: Likewise.
52891         * lib/full-write.h: Likewise.
52892         * lib/pathname.h: Likewise.
52893         * lib/progname.h: Likewise.
52894         * lib/stpcpy.h: Likewise.
52895         * lib/stpncpy.h: Likewise.
52896         * lib/strcase.h: Likewise.
52897         * lib/strstr.h: Likewise.
52898         * lib/xalloc.h: Likewise.
52899
52900         * lib/mbswidth.h: Add extern "C" for C++.
52901         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
52902
52903 2004-07-13  Robert Millan  <robertmh@gnu.org>
52904
52905         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
52906
52907 2004-07-09  Simon Josefsson  <jas@extundo.com>
52908
52909         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
52910         failed without this.)
52911
52912 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         * modules/chown (Files): Add lib/fchown-stub.c, since
52915         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
52916
52917 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52918
52919         * lib/fchown-stub.c: New file.
52920
52921 2004-06-24  Jim Meyering  <jim@meyering.net>
52922
52923         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
52924
52925 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52926
52927         * modules/argz: Omit "#include".
52928
52929         * MODULES.html.sh (func_all_modules): Add calloc, to match
52930         2004-06-01 addition of calloc module.
52931
52932 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52933
52934         * m4/argz.m4: New file, which is autoupdated from libtool.
52935
52936 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52937
52938         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
52939         libtool.
52940
52941 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52942
52943         * config/srclist-update: Don't insist on "USA." before the
52944         close-comment, as libtool omits the period and puts the */ on a
52945         separate line.
52946         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
52947         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
52948
52949 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
52950
52951         * modules/argz: New file.
52952         * MODULES.html.sh (func_all_modules): Add argz.
52953
52954 2004-06-12  Jim Meyering  <jim@meyering.net>
52955         and  Paul Eggert  <eggert@cs.ucla.edu>
52956
52957         * modules/hash (Files): Add lib/xalloc.h.
52958         * modules/pipe (Depends-on): Add wait-process.
52959         * modules/stat (Depends-on): Add xalloc.
52960         * modules/userspec (Files): Add lib/userspec.h.
52961         * modules/xstrto
52962
52963         Upgrade from gettext-0.13.
52964         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
52965         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
52966         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
52967
52968 2004-06-10  Jim Meyering  <jim@meyering.net>
52969
52970         * lib/calloc.c: New file.
52971
52972 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52973
52974         * lib/getdate.y (yylex): Allow space between sign and number.
52975         Problem reported by Dan Jacobson.
52976
52977 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
52978
52979         Merge from coreutils CVS.
52980
52981         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
52982         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
52983         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
52984         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
52985         xstrtol.m4: Fix copyright date and/or serial number.
52986
52987         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
52988         See if we need an fchown replacement.
52989         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
52990         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
52991         and use the replacement function if we detect either defect.
52992
52993         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
52994         gl_UTIMECMP.
52995
52996 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
52997         and  Jim Meyering  <jim@meyering.net>
52998
52999         Merge from coreutils CVS.
53000
53001         * lib/stat-macros.h: New file, with contents from file-type.h
53002         and coreutils' system.h.
53003         * lib/file-type.c: Include "stat-macros.h".
53004         * lib/file-type.h (file_type): Move all macro definitions to new file,
53005         stat-macros.h.
53006
53007         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53008         Wrap old code with this conditional.
53009         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53010         function that does not dereference symlinks.
53011         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53012
53013         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53014         dependency problems.
53015         (xreadlink): Accept new arg SIZE, for efficiency.
53016         All decls and uses changed.
53017         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53018
53019         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53020         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53021
53022         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53023         sysexits.h.
53024
53025 2004-06-01  Jim Meyering  <jim@meyering.net>
53026
53027         * m4/calloc.m4: New file.
53028
53029 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53030
53031         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53032         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53033         Also, fix a typo in a diagnostic.
53034
53035 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53036
53037         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53038         or AC_FUNC_REALLOC.
53039
53040 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53041
53042         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53043         macros to be defined.
53044         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53045         the allocator returns NULL because the requested size is zero.
53046
53047 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53048
53049         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53050         var.  Add comment explaining why libc still defines it.  This
53051         merges the following patch from glibc:
53052         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53053
53054 2004-05-20  Andreas Schwab  <schwab@suse.de>
53055
53056         * m4/free.m4: Replace free if it not known to work, not the other
53057         way round.
53058
53059 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53060
53061         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53062         present in glibc since revision 1.1 of this file.
53063         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53064         obstack_alignment_mask, obstack_alloc, obstack_base,
53065         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53066         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53067         obstack_grow0, obstack_init, obstack_int_grow,
53068         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53069         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53070         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53071         nonexistent functions.
53072
53073 2004-05-18  Karl Berry  <karl@gnu.org>
53074
53075         * config/srclist.txt: break link for vasnprintf.c.
53076
53077 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53078
53079         Port obstack to the AS/400, where pointers are 16 bytes wide and
53080         you cannot cast an integer to a valid pointer.  This patch is
53081         currently waiting to be integrated into glibc; see
53082         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53083
53084         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53085         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53086         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53087         (struct obstack): temp member is now a union of a pointer and
53088         an integer, instead of an integer.  All integer uses changed.
53089         This does not affect the physical layout of struct obstack,
53090         except on hosts (like the AS/400) where the size or alignment of
53091         void * is greater than that of ptrdiff_t.
53092         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53093         __STDC__)]: Store temporary in pointer member of union, not
53094         integer member.
53095         * lib/obstack.c: Include <stddef.h>, for offsetof.
53096         (struct fooalign): Remove; it doesn't need a name.
53097         (union fooround): Change double to long double, and add void *.
53098         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53099         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53100         not a macro.  Hence the values are always int; so remove all
53101         casts-to-int in uses.
53102
53103 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53104
53105         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53106         we can get this patch merged into glibc.
53107
53108 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53109             Paul Eggert  <eggert@cs.ucla.edu>
53110
53111         * m4/argp: Depend on alloca.
53112
53113 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53114             Paul Eggert  <eggert@cs.ucla.edu>
53115
53116         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53117         freecoding.
53118
53119 2004-05-17  Bruno Haible  <bruno@clisp.org>
53120
53121         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53122         precision that consists of a '.' followed by an empty digit string.
53123         Patch by Tor Lillqvist <tml@iki.fi>.
53124
53125 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53128         for backward compatibility with older code.  We need our own
53129         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53130         it under some other name, and our alloca.h will define it.
53131
53132 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53133             Derek Price  <derek@ximbiot.com>
53134
53135         * lib/alloca.c: Include <alloca.h>, to get our interface.
53136         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53137         include <alloca.h> first.  Use C89 prototype for alloca; this
53138         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53139         Use #elif for simplicity, since we can assume C89 now.
53140         Don't try to source the system alloca.h since it will not be found
53141         and to prevent recursively including its replacement.
53142         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53143         * lib/regex.c: Likewise.
53144
53145 2004-05-16  Derek Price  <derek@ximbiot.com>
53146             Paul Eggert  <eggert@cs.ucla.edu>
53147
53148         getline cleanup.  This changes the getndelim2 API: both order of
53149         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53150         no delimiter).
53151
53152         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53153         interface does that.
53154         (getline): Always use getdelim, so that we don't have two
53155         copies of this code.
53156         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53157         if available.
53158         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53159         (GETNDELIM2_MAXIMUM): New macro.
53160         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53161         instead of the old practice of delim2==0.  All callers changed.
53162         Return -1 on overflow, instead of returning junk.
53163         Do not set *linesize unless allocation succeeds.
53164         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53165         that we include sys/types.h.
53166         * lib/getnline.h: Likewise.
53167         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53168         (getndelim2): Reorder arguments.
53169         * lib/getnline.c (getnline, getndelim):
53170         Don't discard the NMAX argument.
53171         (getnline): Invoke getndelim, to avoid code duplication.
53172         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53173         of (size_t) -1 by callers of the getnline family.
53174
53175 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53176
53177         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53178         Check for gettimeofday.
53179         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53180         Check for settimeofday, stime.
53181
53182 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53183
53184         * lib/nanosleep.c (suspended): Change its type from int to
53185         sig_atomic_t volatile.
53186         (first_call): Make it private to rpl_nanosleep, and have it
53187         be zero initially as that's a bit faster.
53188         (my_usleep): Round up fractional times instead of truncating them,
53189         as this is the usual meaning for 'sleep'.
53190
53191         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53192         doesn't work.
53193         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53194         (ENOSYS): Define if not defined.
53195         (settime): Fall back on stime if it exists and settimeofday fails.
53196         But don't bother with fallbacks if a method fails with errno == EPERM.
53197
53198 2004-05-11  Jim Meyering  <jim@meyering.net>
53199
53200         Prior to this change, the save_cwd caller required read access to the
53201         current directory on most systems (ones with the fchdir function).
53202
53203         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53204         fails, try write-only, and finally, resort to using xgetcwd.
53205
53206 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53207
53208         * lib/obstack.c, obstack.h: Import changes from libc.
53209
53210 2004-04-28  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53213         also implicitly appends .exe to executables.
53214         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53215         accepts Windows pathnames.
53216         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53217         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53218         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53219         Treat Cygwin like Windows, since it now accepts Windows pathnames.
53220         Reported by Derek Robert Price <derek@ximbiot.com>.
53221
53222 2004-04-21  Karl Berry  <karl@gnu.org>
53223
53224         * config/srclist.txt (localcharset.c): break sync.
53225
53226 2004-04-20  Paul Eggert  <eggert@twinsun.com>
53227
53228         * m4/host-os.m4: Add a copyright notice.
53229
53230 2004-04-20  Jim Meyering  <jim@meyering.net>
53231
53232         Change UTILS_ to gl_ in AC_DEFINE'd names.
53233         Change utils_- and jm_-prefixed variables, too.
53234         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53235         UTILS_FUNC_MKDIR_TRAILING_SLASH.
53236         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53237
53238         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53239         Don't emit trailing blanks.
53240         Also rename jm_-prefixed variables to have gl_ prefix.
53241
53242         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53243         Also rename jm_-prefixed variables to have gl_ prefix.
53244
53245         * m4/jm-macros.m4: Reflect the renamings.
53246         * m4/prereq.m4: Likewise.
53247
53248 2004-04-20  Jim Meyering  <jim@meyering.net>
53249
53250         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53251         memory.
53252
53253 2004-04-20  Jim Meyering  <jim@meyering.net>
53254             Bruno Haible  <bruno@clisp.org>
53255
53256         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53257         memory when realloc fails.
53258
53259 2004-04-19  Jim Meyering  <jim@meyering.net>
53260
53261         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53262         now that readutmp.c may call `free (0)'.
53263
53264 2004-04-19  Bruno Haible  <bruno@clisp.org>
53265
53266         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53267         * m4/inttypes_h.m4: Likewise.
53268         * m4/stdint_h.m4: Likewise.
53269         * m4/intmax_t.m4: Likewise.
53270         * m4/uintmax_t.m4: Likewise.
53271
53272 2004-04-18  Jim Meyering  <jim@meyering.net>
53273
53274         * m4/prereq.m4: Don't forbid jm_ prefix.
53275
53276         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53277         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53278         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53279         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53280         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53281         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53282         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53283         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53284         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53285         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53286         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53287         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53288         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53289         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53290         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53291         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53292         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53293         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53294         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53295
53296 2004-04-18  Jim Meyering  <jim@meyering.net>
53297
53298         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53299         failure, don't leak memory and do call END_UTMP_ENT.
53300
53301 2004-04-16  Jim Meyering  <jim@meyering.net>
53302
53303         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
53304         coreutils' stat program.
53305         (gl_PREREQ): Don't require jm_PREREQ_STAT.
53306
53307 2004-04-11  Paul Eggert  <eggert@twinsun.com>
53308
53309         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53310         C89.
53311         (CHAR_BIT): Remove, since we assume C89.
53312         Include <stdint.h> if available, as per current Autoconf CVS advice.
53313
53314 2004-03-31  Jim Meyering  <jim@meyering.net>
53315
53316         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53317         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53318         * m4/xalloc.m4: Likewise.
53319
53320 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53321
53322         Merge from coreutils.
53323
53324         * m4/inttostr.m4: New file.
53325         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53326         Require AM_STDBOOL_H and gl_TIMESPEC instead.
53327         Require gl_CLOCK_TIME.
53328         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53329
53330 2004-03-30  Paul Eggert  <eggert@twinsun.com>
53331
53332         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53333         not bool, to be more consistent with Unix conventions.
53334         Suggested by Bruno Haible.
53335
53336         Merge from coreutils.
53337
53338         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53339         * lib/umaxtostr.c: New files.
53340
53341         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53342         the usual <time.h> dance.
53343         (get_date): Change signature to support fractional time stamps.
53344         All callers changed.
53345         * lib/getdate.y: Include "getdate.h" first, as we can now
53346         assume C89 and don't need to worry about 'const'.
53347         Similarly, include "unlocked-io.h" near start, not in middle.
53348         Include <limits.h>.
53349         (textint.value): Use long int rather than int.
53350         (textint.digits): Use size_t rather than int.
53351         (BILLION, LOG10_BILLION): New constants.
53352         (parser_control): New member rel_ns.  Members day_ordinal,
53353         time_zone, month, day, hour, minutes, rel_year, rel_month,
53354         rel_day, rel_hour, rel_minutes, rel_seconds
53355         are now long int, not int.  Member seconds is now struct timespec,
53356         not int.  New member timespec_seen.  Members dates_seen, days_seen,
53357         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53358         not int.
53359         (%union.intval): Now long int, not int.
53360         New member timespec.
53361         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53362         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53363         (spec): Now is a timespec or an item list.
53364         (timespec, items): New nonterminals.
53365         (time, rel, relunit, number, get_date):
53366         Add support for fractional seconds.
53367         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53368         (gmtime, localtime, mktime): Remove decls; not needed with C89.
53369         (to_hour): First arg is now long int, not int.
53370         (to_year): Returns long int, not int.
53371         Don't treat year -70 like 70.
53372         (tm_diff): Returns long int, not int.
53373         (lookup_word): Use bool instead of int when appropriate.
53374         (yylex): Use size_t for count, not int.
53375         Detect overflow when parsing large integer constants.
53376         Add support for fractions.
53377         (get_date): Make pointers 'const' if possible.
53378         Use more-portable code to detect integer overflow.
53379         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
53380         Don't use ctime; it's not reliable if the year has >4 digits.
53381
53382         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53383         This is for compatibility with BSD.
53384
53385         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53386         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53387         From coreutils' system.h.
53388
53389         * lib/userspec.c: Don't include "posixver.h".
53390         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53391         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53392         compatible extension.  Simplify code by removing a boolean int
53393         that was always nonzero if a string was nonnull.
53394
53395 2004-03-30  Jim Meyering  <jim@meyering.net>
53396
53397         Merge from coreutils.
53398
53399         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53400         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53401         on some systems one must include <grp.h> before it.
53402         Reported by Christian Krackowizer.
53403
53404 2004-03-30  Jim Meyering  <jim@meyering.net>
53405
53406         Merge from coreutils.
53407
53408         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53409
53410         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53411         an empty input stream.
53412
53413         * lib/readtokens.c: Include <stdbool.h>.
53414         (readtoken): Use `size_t' rather than int/long.
53415         All callers adjusted.
53416         Use `bool' rather than `int' where appropriate.
53417         Use memset rather than an explicit loop.
53418         Use x2nrealloc rather than xrealloc.
53419         Allow the use of `\0' as a delimiter.
53420         (readtokens): Likewise.
53421         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53422
53423 2004-03-30  Jim Meyering  <jim@meyering.net>
53424
53425         * m4/realloc.m4: Remove file, since now it does no more than
53426         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53427         the `configure.ac' section of module/realloc.
53428         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53429
53430 2004-03-30  Bruno Haible  <bruno@clisp.org>
53431
53432         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53433         nonnull.
53434
53435 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53436
53437         Merge changes to getloadavg.c from coreutils and Emacs.
53438
53439         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53440         Define to an expression, not to the empty string.
53441         Include cloexec.h and xalloc.h.
53442         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53443         Use set_cloexec_flag rather than rolling our own.
53444         * lib/cloexec.c, lib/cloexec.h: New files.
53445
53446 2004-03-29  Paul Eggert  <eggert@twinsun.com>
53447
53448         * m4/cloexec.m4: New file.
53449
53450 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53451
53452         * lib/getopt.h: Sync with libc CVS.
53453
53454 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53455             Bruno Haible  <bruno@clisp.org>
53456
53457         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53458         mbswidth.
53459
53460 2004-03-18  Paul Eggert  <eggert@twinsun.com>
53461             Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/mbswidth.h: Include <wchar.h> only if
53464         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53465         <wchar.h>.
53466         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53467
53468 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53469
53470         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53471         Sync with libc CVS.
53472         * lib/getopt_int.h: New file, also synced from libc.
53473
53474 2004-03-09  Paul Eggert  <eggert@twinsun.com>
53475
53476         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53477         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
53478         Bring back getopt.c, getopt.h, getopt1.c.
53479
53480 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53481
53482         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53483         All uses changed.  Check for sa_sigaction member; this fixes
53484         a bug first reported by Jason Andrade in
53485         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53486
53487 2004-03-07  Paul Eggert  <eggert@twinsun.com>
53488
53489         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
53490         '#if' expressions.  Unlike the code it replaces, it does not
53491         depend on (defined _SC_PAGESIZE).  However, it does depend on
53492         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53493         first reported by Jason Andrade in
53494         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53495
53496 2004-02-25  Simon Josefsson  <jas@extundo.com>
53497
53498         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53499
53500 2004-02-25  Simon Josefsson  <jas@extundo.com>
53501
53502         * lib/strdup.h: New file.
53503         * lib/strdup.c: Include it.
53504         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53505         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53506
53507 2004-02-23  Karl Berry  <karl@gnu.org>
53508
53509         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53510         (from fencepost.gnu.org:/gd/gnuorg).
53511
53512 2004-02-23  Karl Berry  <karl@gnu.org>
53513
53514         * config/srclistvars.sh (GNUORG) [karl]: redefine.
53515         * config/srclist.txt: add maintain/standards documents.
53516
53517 2004-02-18  Bruno Haible  <bruno@clisp.org>
53518
53519         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
53520         Reported by Derek Robert Price <derek@ximbiot.com>.
53521
53522 2004-02-16  Karl Berry  <karl@gnu.org>
53523
53524         * config/mkinstalldirs, install-sh: update from automake.
53525
53526 2004-02-06  Karl Berry  <karl@gnu.org>
53527
53528         * m4/po.m4: update from gettext 0.14.1.
53529
53530 2004-02-06  Karl Berry  <karl@gnu.org>
53531
53532         * lib/config.charset: update from gettext 0.14.1.
53533
53534 2004-02-05  Paul Eggert  <eggert@twinsun.com>
53535
53536         Add comments and code, prompted by suggestions from Bruno Haible
53537         for sh-quote.
53538         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
53539         describing the enum quoting_style values.
53540         * lib/quotearg.c (quotearg_alloc): New function.
53541         (quotearg_buffer_restyled): Treat lone { and } as special.
53542         Treat = as special.  Work around bug with older shells
53543         that "see" a '\' that is really the 2nd byte of a multibyte char.
53544         Quote empty string with shell_quoting_style.
53545
53546 2004-02-03  Bruno Haible  <bruno@clisp.org>
53547
53548         * m4/pipe.m4: New file, from GNU gettext.
53549
53550 2004-02-03  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/pipe.h: New file, from GNU gettext.
53553         * lib/pipe.c: New file, from GNU gettext.
53554
53555 2004-01-27  Bruno Haible  <bruno@clisp.org>
53556
53557         * m4/execute.m4: New file, from GNU gettext.
53558
53559 2004-01-27  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/execute.h: New file, from GNU gettext.
53562         * lib/execute.c: New file, from GNU gettext.
53563         * lib/w32spawn.h: New file, from GNU gettext.
53564
53565 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53566
53567         Merge from diffutils.
53568
53569         * lib/file-type.c (file_type): Add typed memory objects.
53570         * lib/file-type.h (S_TYPEISTMO): New macro.
53571
53572         * lib/c-stack.h (c_stack_action): Remove argv argument.
53573         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
53574         (die): Don't calculate message unless segv_action returns.
53575         (get_stack_location, min_address_from_argv, max_address_from_argv,
53576         volatile stack_base, volatile_stack_size): Remove.
53577         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
53578         that every segmentation violation is a stack overflow.  (Ouch!)
53579         See Debian bug 136249 (still outstanding) for more info about why
53580         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
53581
53582 2004-01-24  Paul Eggert  <eggert@twinsun.com>
53583
53584         Exit-status fix from coreutils.
53585
53586         Use exit_failure consistently in place of EXIT_FAILURE,
53587         so that program exit statuses are consistent on failure.
53588
53589         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
53590         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
53591         * lib/argmatch.h: Comment fix to match the above.
53592         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
53593         Now a macro referring to exit_failure, instead of a separate
53594         variable.  Include "exitfail.h" to get it.
53595         * lib/xstrtol.h: Include "exitfail.h".
53596         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
53597
53598         * lib/long-options.c (parse_long_options): Use prototype
53599         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
53600         for clarity.
53601
53602 2004-01-21  Jim Meyering  <jim@meyering.net>
53603
53604         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
53605         so as not to conflict with a different-sized __mktime_internal
53606         function in GNU libc.
53607         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
53608         Problem building statically-linked `ls' reported by Michael Brunnbauer.
53609
53610 2004-01-20  Karl Berry  <karl@gnu.org>
53611
53612         * config/config.guess: update from config.
53613
53614         * config/srclistvars.sh: GNUWWWLICENSES for karl.
53615
53616 2004-01-20  Bruno Haible  <bruno@clisp.org>
53617
53618         Safer stack allocation.
53619         * lib/setenv.c: Include allocsa.h.
53620         (alloca): Remove fallback definition.
53621         (freea): Remove macro.
53622         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
53623         instead of freea.
53624
53625 2004-01-20  Bruno Haible  <bruno@clisp.org>
53626
53627         * m4/eealloc.m4: New file, from GNU gettext.
53628
53629 2004-01-20  Bruno Haible  <bruno@clisp.org>
53630
53631         * m4/allocsa.m4: New file, from GNU gettext.
53632
53633 2004-01-20  Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/xallocsa.h: New file, from GNU gettext.
53636         * lib/xallocsa.c: New file, from GNU gettext.
53637
53638 2004-01-20  Bruno Haible  <bruno@clisp.org>
53639
53640         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
53641
53642 2004-01-20  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
53645         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
53646         specially.
53647
53648 2004-01-20  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
53651         patch.
53652
53653 2004-01-20  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
53656
53657 2004-01-20  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/eealloc.h: New file.
53660
53661 2004-01-20  Bruno Haible  <bruno@clisp.org>
53662
53663         * lib/binary-io.h: Avoid warnings on Cygwin.
53664
53665 2004-01-20  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/allocsa.h: New file, from GNU gettext.
53668         * lib/allocsa.c: New file, from GNU gettext.
53669
53670 2004-01-18  Karl Berry  <karl@gnu.org>
53671
53672         * doc/gpl.texi, doc/lgpl.texi: new files.
53673
53674 2004-01-18  Karl Berry  <karl@gnu.org>
53675
53676         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
53677         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
53678
53679 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53680
53681         Merge from coreutils.
53682
53683         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
53684         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
53685         (gl_DEFAULT_POSIX2_VERSION): Move
53686         the documentation from 'configure' into 'config.hin',
53687         so that 'configure --help' isn't burdened by it and
53688         we don't have to worry about its formatting there.
53689         Reword the documentation so that it's more succinct
53690         and can be run together into a single paragraph.
53691         * m4/same.m4 (gl_SAME): Check for pathconf.
53692
53693 2004-01-15  Paul Eggert  <eggert@twinsun.com>
53694
53695         Merge from coreutils.
53696
53697         * lib/posixver.c: Include posixver.h.
53698
53699         * lib/same.c: Include <stdbool.h>, <limits.h>.
53700         (_POSIX_NAME_MAX): Define if not defined.
53701         (MIN): New macro.
53702         (same_name): If file names are silently truncated, report
53703         that the file names are the same if they are the same after
53704         the silent truncation.
53705
53706         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
53707         conversion function.
53708         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
53709         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
53710         longer needed.
53711
53712 2004-01-15  Jim Meyering  <jim@meyering.net>
53713
53714         Merge from coreutils.
53715
53716         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
53717         if no library is required.
53718         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
53719         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
53720         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
53721         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
53722         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
53723         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
53724         value, $ac_cv_search_crypt, if it's "none required".
53725         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
53726         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
53727         not gl_FUNC_GETLOADAVG.
53728         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
53729         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
53730
53731 2004-01-15  Jim Meyering  <jim@meyering.net>
53732
53733         Merge from coreutils.
53734
53735         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
53736         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
53737         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
53738
53739         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
53740         optional configure-time default.
53741
53742         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53743
53744         * lib/xreadlink.c (xreadlink): Correct outdated comment.
53745
53746 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
53747
53748         Merge from coreutils.
53749
53750         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
53751         value, $ac_cv_search_nanosleep, if it's "none required".
53752
53753 2004-01-14  Paul Eggert  <eggert@twinsun.com>
53754
53755         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
53756         with like-named macro in fnmatch.c.
53757         (EXT): Use an internal constant instead.
53758
53759         Merge fnmatch patches from glibc.
53760         * lib/fnmatch.c (mbsinit): Remove define.
53761         Add libc_hidden_ver (__fnmatch, fnmatch).
53762         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
53763         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
53764
53765 2004-01-14  Karl Berry  <karl@gnu.org>
53766
53767         * config/install-sh: update from automake.
53768
53769 2004-01-13  Karl Berry  <karl@gnu.org>
53770
53771         * config/install-sh: update from automake.
53772
53773 2004-01-09  Karl Berry  <karl@gnu.org>
53774
53775         * config/install-sh: update from automake.
53776
53777 2004-01-05  Karl Berry  <karl@gnu.org>
53778
53779         * config/config.{sub,guess}: update from config.
53780
53781 2003-12-31  Karl Berry  <karl@gnu.org>
53782
53783         * config/depcomp: update from automake.
53784
53785 2003-12-14  Karl Berry  <karl@gnu.org>
53786
53787         * lib/config.charset: update from gettext-runtime.
53788
53789 2003-12-03  Paul Eggert  <eggert@twinsun.com>
53790
53791         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
53792         Bug reported by Alfred M. Szmidt.
53793
53794 2003-12-03  Bruno Haible  <bruno@clisp.org>
53795
53796         * m4/gettext.m4: Upgrade from gettext-0.13.
53797         * m4/po.m4: Upgrade from gettext-0.13.
53798         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
53799         * m4/intmax.m4: New file, from gettext-0.13.
53800         * m4/printf-posix.m4: New file, from gettext-0.13.
53801
53802 2003-11-29  Karl Berry  <karl@gnu.org>
53803
53804         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
53805
53806 2003-11-25  Paul Eggert  <eggert@twinsun.com>
53807             Bruno Haible  <bruno@clisp.org>
53808
53809         * lib/printf-parse.h: Don't include sys/types.h.
53810         (ARG_NONE): New macro.
53811         (char_directive): Change type of *arg_index fields to size_t.
53812         * lib/printf-parse.c: Don't include sys/types.h.
53813         (SSIZE_MAX): Remove macro.
53814         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
53815         Remove unnecessary overflow check.
53816         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
53817         fields.
53818
53819 2003-11-25  Bruno Haible  <bruno@clisp.org>
53820
53821         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
53822
53823 2003-11-25  Bruno Haible  <bruno@clisp.org>
53824
53825         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
53826         gt_TYPE_SSIZE_T.
53827
53828 2003-11-24  Paul Eggert  <eggert@twinsun.com>
53829
53830         * modules/alloca: Remove dependency on xalloc.
53831
53832 2003-11-24  Paul Eggert  <eggert@twinsun.com>
53833
53834         * lib/alloca.c: Remove dependency on xalloc module.
53835         (xalloc_die): Remove.
53836         (memory_full) [!defined emacs]: New macro.
53837         [!defined emacs]: Don't include xalloc.h.
53838         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
53839         address arithmetic overflows.  Change datatypes a bit to avoid
53840         unnecessary casts.
53841
53842 2003-11-22  Jim Meyering  <jim@meyering.net>
53843
53844         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
53845         s/size/size_t/.
53846
53847 2003-11-21  Karl Berry  <karl@gnu.org>
53848
53849         * config/config.{sub,guess}: update from config.
53850
53851 2003-11-18  Karl Berry  <karl@gnu.org>
53852
53853         * config/config.{sub,guess}: update from config.
53854
53855         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
53856
53857 2003-11-17  Paul Eggert  <eggert@twinsun.com>
53858
53859         * README: Mention that S+T cannot overflow if S is the size of
53860         an existing object and T is sufficiently small.
53861
53862 2003-11-17  Jim Meyering  <jim@meyering.net>
53863
53864         On systems without utime and without a utimes function capable of
53865         dealing with a NULL struct utimbuf* argument, this utime replacement
53866         could -- in unusual circumstances -- leak a file descriptor.
53867         * lib/utime.c: Include <unistd.h> and <errno.h>.
53868         (utime_null): Be sure to close `fd' and to preserve errno.
53869         Reported by Geoff Collyer via Arnold Robbins.
53870
53871 2003-11-17  Bruno Haible  <bruno@clisp.org>
53872
53873         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
53874         (Depends-on): Add xsize.
53875
53876 2003-11-17  Bruno Haible  <bruno@clisp.org>
53877
53878         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
53879
53880 2003-11-17  Bruno Haible  <bruno@clisp.org>
53881
53882         * lib/vasnprintf.c (alloca): Remove fallback definition.
53883         (freea): Remove definition.
53884         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
53885         Reported by Paul Eggert.
53886
53887 2003-11-16  Paul Eggert  <eggert@twinsun.com>
53888             Bruno Haible  <bruno@clisp.org>
53889
53890         Protect against address arithmetic overflow.
53891         * lib/printf-args.h: Include stddef.h.
53892         (arguments): Change type of field 'count' to size_t.
53893         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
53894         'unsigned int' where appropriate.
53895         * lib/printf-parse.h: Include sys/types.h.
53896         (char_directive): Change type of *arg_index fields to ssize_t.
53897         (char_directives): Change type of fields 'count', max_*_length to
53898         size_t.
53899         * lib/printf-parse.c: Include sys/types.h and xsize.h.
53900         (SSIZE_MAX): Define fallback value.
53901         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
53902         instead of 'int' where appropriate. Check a_allocated, d_allocated
53903         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
53904         * lib/vasnprintf.c: Include xsize.h.
53905         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
53906         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
53907         overflow. Avoid wraparound when converting a width or precision from
53908         decimal to binary.
53909
53910 2003-11-16  Bruno Haible  <bruno@clisp.org>
53911
53912         Update from GNU gettext.
53913         * lib/printf-parse.c: Generalize to it can be compiled for wide
53914         strings.
53915         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
53916         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
53917         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
53918         SNPRINTF): New macros.
53919         Don't include <alloca.h> if the file is used inside libintl.
53920         (local_wcslen): New function, for Solaris 2.5.1.
53921         (VASNPRINTF): Use it instead of wcslen.
53922
53923 2003-11-16  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/xsize.h (xmax): New function.
53926         (xsum, xsum3, xsum4): Declare as "pure" functions.
53927
53928 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53929
53930         * modules/xalloc (Files): Undo latest change, since xalloc.h
53931         no longer needs SIZE_MAX or PTRDIFF_MAX.
53932
53933 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53934
53935         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
53936         gl_PTRDIFF_MAX.
53937
53938 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53939
53940         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
53941         "return", to pacify some unknown compiler.  Problem reported
53942         by Joerg Schilling.
53943
53944 2003-11-12  Paul Eggert  <eggert@twinsun.com>
53945
53946         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
53947         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
53948         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
53949         heuristic is just as accurate as far as we know, and it removes a
53950         dependency on size_max.m4 and ptrdiff_max.m4.
53951
53952 2003-11-11  Bruno Haible  <bruno@clisp.org>
53953
53954         * modules/xsize (Files): Add m4/size_max.m4.
53955         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
53956
53957 2003-11-11  Bruno Haible  <bruno@clisp.org>
53958
53959         * m4/size_max.m4: New file.
53960         * m4/ptrdiff_max.m4: New file.
53961         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
53962         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
53963         (gl_XALLOC): Invoke it.
53964
53965 2003-11-11  Bruno Haible  <bruno@clisp.org>
53966
53967         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
53968         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
53969         defined.
53970
53971 2003-11-10  Paul Eggert  <eggert@twinsun.com>
53972
53973         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
53974         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
53975         rejected some allocations of exactly SIZE_MAX - 2 bytes.
53976         From Bruno Haible.
53977         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
53978         not (size_t) -1, since it's defined here.
53979
53980 2003-11-09  Karl Berry  <karl@gnu.org>
53981
53982         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
53983
53984 2003-11-06  Paul Eggert  <eggert@twinsun.com>
53985
53986         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
53987         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
53988         Reject sizes of exactly SIZE_MAX bytes.
53989         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
53990         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
53991
53992 2003-11-05  Bruno Haible  <bruno@clisp.org>
53993
53994         * lib/xsize.h: Include limits.h, to avoid a possible collision with
53995         SIZE_MAX defined in <limits.h> on Solaris.
53996
53997 2003-11-04  Jim Meyering  <jim@meyering.net>
53998
53999         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54000         variable names, rather than @VAR@.
54001         * modules/poll: Likewise.
54002
54003 2003-11-04  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/xsize: New file.
54006         * modules/linebreak: Depend on xsize.
54007         * MODULES.html.sh (func_all_modules): Add xsize.
54008
54009 2003-11-04  Bruno Haible  <bruno@clisp.org>
54010
54011         * m4/xsize.m4: New file.
54012
54013 2003-11-04  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/xsize.h: New file.
54016         * lib/linebreak.c: Include xsize.h.
54017         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54018         argument for overflow.
54019         Suggested by Paul Eggert.
54020
54021 2003-11-03  Karl Berry  <karl@gnu.org>
54022
54023         * config/config.{guess,sub}: update from config.
54024
54025 2003-11-03  Jim Meyering  <jim@meyering.net>
54026
54027         * modules/userspec (lib_SOURCES): Add userspec.h.
54028         (Include): Add "userspec.h".
54029         Improve description.
54030
54031 2003-11-03  Jim Meyering  <jim@meyering.net>
54032
54033         * lib/userspec.c: Include "userspec.h".
54034         * lib/userspec.h: New file.
54035
54036 2003-11-03  Bruno Haible  <bruno@clisp.org>
54037
54038         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54039
54040 2003-11-03  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54043         available, to avoid (extremely rare) race condition.
54044         Suggested by Paul Eggert.
54045
54046 2003-11-02  Karl Berry  <karl@gnu.org>
54047
54048         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54049
54050 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54051
54052         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54053         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54054         (read_filesystem_list): Set and use me_type_malloced.
54055         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54056         whatever the type happens to be), for brevity and consistency.
54057         Check for size calculation overflow on Alphas running OSF/1.
54058
54059 2003-10-31  Jim Meyering  <jim@meyering.net>
54060
54061         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54062
54063         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54064
54065 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54066             Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54069         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54070
54071 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54072
54073         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54074         netbsd*-gnu*.  Suggested by Robert Millan.
54075
54076 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54077
54078         * modules/group-member: Depend on stdbool.
54079
54080 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54081
54082         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54083
54084 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54085
54086         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54087         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54088         after the 'gnu' in these cases.  This fixes some bugs in the
54089         previous change, and is based on suggestions by Robert Millan.
54090
54091 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54092
54093         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54094         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54095         no longer needed.
54096         * lib/quotearg.c (quotearg_n_options): Use it.
54097         * lib/group-member.c: Include <stdbool.h>.
54098         (free_group_info): Arg is now const *; don't free arg.
54099         (get_group_info): Now returns bool and accepts struct group_info *,
54100         rather than returning a malloc'ed struct group_info *.
54101         All uses changed.  Check for overflow in internal size calculation.
54102
54103         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54104         rather than xmalloc/xrealloc.
54105         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54106         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54107         conformance bug: the old code used a pointer after freeing the
54108         storage that it addressed.
54109         * lib/hash.c (hash_initialize): Simplify the code by using
54110         xalloc_oversized rather than doing it by hand.
54111         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54112         the buffer preserved.  Use free and xmalloc instead.
54113         * lib/quotearg.c (quotearg_n_options): Likewise.
54114         Use a simpler test for size overflow.  Don't use xalloc_oversized
54115         because unsigned int might be wider than size_t (!); this suggests
54116         that we should switch from unsigned int to size_t for slot numbers.
54117
54118 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54119
54120         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54121         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54122         NetBSD kernels.  Requested by Richard Stallman.
54123
54124 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54125
54126         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54127         to allocate the returned structure.  Do not allocate a subarray,
54128         as x2nrealloc will do that.
54129         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54130         instead of xnrealloc.
54131         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54132
54133 2003-10-27  Bruno Haible  <bruno@clisp.org>
54134
54135         * lib/stdbool_.h: Better support for BeOS.
54136
54137 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54138
54139         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54140         now uses inline.
54141
54142 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54143
54144         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54145         callers that want to do their own size-overflow checking.  Include
54146         <stdbool.h>, since xalloc_oversized returns bool.
54147         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54148         to use xalloc_oversized.
54149
54150         Add two functions x2realloc, x2nrealloc, for programs that grow
54151         arrays dynamically by doubling their sizes.
54152         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54153         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54154         New functions.
54155
54156         Port to C99 semantics for 'inline' of external functions.
54157         Bug reported by Bruno Haible.
54158         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54159         with the old contents of xnmalloc.
54160         (xnmalloc, xmalloc): Use it.
54161         (xnrealloc_inline): New static inline function,
54162         with the old contents of xnrealloc.
54163         (xnrealloc, xrealloc): Use it.
54164
54165         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54166         that.
54167
54168 2003-10-26  Karl Berry  <karl@gnu.org>
54169
54170         * config/srclist.txt (COPYING.DOC): no longer available from
54171         /gd/gnuorg; don't know where the ultimate source is.
54172
54173 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54174
54175         Fix several address-calculation bugs in the hash modules,
54176         plus some minor code cleanup.
54177
54178         * lib/hash.h: Include <stdbool.h>, for bool.
54179         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54180         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54181         hash_get_n_entries, hash_get_max_bucket_length,
54182         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54183         hash_rehash): Use size_t rather than unsigned.
54184         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54185         hash_get_n_buckets_used, hash_get_n_entries,
54186         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54187         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54188         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54189         Likewise.
54190         (SIZE_MAX): Define if not defined.
54191         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54192         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54193         hash_print):
54194         Use const * when possible.
54195         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54196         (check_tuning): Fix bug: if tuning parameters were very close to
54197         0 or 1, rounding errors could have caused subscript violations.
54198         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54199         (hash_initialize): Add 'fail:' label
54200         to free table and return NULL, and use it to simplify code.
54201         Use calloc rather than clearing the storage ourself.
54202         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54203         buffer size calculations.
54204         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54205         Include <stddef.h>, for size_t.
54206         * lib/hash-pjw.c (hash_pjw): Likewise.
54207         Switch to method described by Bruno Haible.
54208         Include <limits.h>, for CHAR_BIT.
54209         (SIZE_BITS): New macro.
54210
54211 2003-10-23  Paul Eggert  <eggert@twinsun.com>
54212
54213         * m4/getline.m4 (AM_FUNC_GETLINE):
54214         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54215         hosts.  Problem reported by Derek Robert Price in
54216         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54217         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54218         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54219
54220 2003-10-21  Paul Eggert  <eggert@twinsun.com>
54221
54222         * lib/getndelim2.c (getndelim2): When size calculation overflows,
54223         ceiling the allocation at NMAX bytes rather than silently
54224         discarding input bytes before NMAX is reached.  This makes
54225         a difference only if NMAX exceeds SIZE_MAX / 2.
54226
54227         * lib/obstack.c: Merge from glibc.
54228         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54229         Add libc_hidden_def (_obstack_newchunk).
54230         (_obstack_free) [! defined _LIBC]: Remove.
54231         [defined _LIBC]: Make a strong alias from obstack_free, rather than
54232         a clone of the function body.
54233         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54234         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54235
54236         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54237         glibc.
54238         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54239         arg to memcpy.
54240
54241         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54242         (obstack_ptr_grow_fast, obstack_int_grow_fast):
54243         Don't use lvalue casts, as GCC plans to remove support for them
54244         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
54245         was also present in the non-GCC version, indicating that this
54246         code had always been buggy and had never been widely used.
54247         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54248         Use the fast variant of each macro, rather than copying the
54249         definiens of the fast variant; that way, we'll be more likely to
54250         catch future bugs in the fast variants.
54251
54252 2003-10-20  Bruno Haible  <bruno@clisp.org>
54253
54254         * modules/wait-process: New file.
54255         * MODULES.html.sh (func_all_modules): Add wait-process.
54256
54257 2003-10-20  Bruno Haible  <bruno@clisp.org>
54258
54259         * m4/wait-process.m4: New file.
54260
54261 2003-10-20  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/wait-process.h: New file, from GNU gettext.
54264         * lib/wait-process.c: New file, from GNU gettext.
54265
54266 2003-10-19  Jim Meyering  <jim@meyering.net>
54267
54268         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54269         HPUX 10.20.
54270
54271 2003-10-18  Karl Berry  <karl@gnu.org>
54272
54273         * config/config.guess: update from config.
54274
54275 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54276
54277         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54278         (getgroups): First arg is int, not size_t.
54279         Don't let 'free' mangle errno.
54280
54281 2003-10-16  Paul Eggert  <eggert@twinsun.com>
54282
54283         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54284
54285 2003-10-16  Karl Berry  <karl@gnu.org>
54286
54287         * config/config.{guess,sub}: update from config.
54288
54289 2003-10-16  Jim Meyering  <jim@meyering.net>
54290
54291         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54292         memcpy.
54293
54294 2003-10-15  Paul Eggert  <eggert@twinsun.com>
54295
54296         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54297         (SIZE_MAX): Remove.
54298         (new_exclude, add_exclude_file): Initial size no longer needs to
54299         be a power of 2.
54300         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54301         our own address arithmetic overflow checking.
54302
54303         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54304         (fnmatch): Do not alloca more than 2000 wide characters;
54305         instead, use malloc for large buffers.
54306         Check for address arithmetic overflow, and return -1
54307         with errno set to ENOMEM in that case.
54308         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54309         (NEW_PATTERN): Do not alloca more than 8000 bytes;
54310         instead, return -1.  Check for address arithmetic overflow.
54311
54312 2003-10-14  Paul Eggert  <eggert@twinsun.com>
54313
54314         Handle invalid suffixes and overflow independently, so that
54315         callers can treat them independently as needed.  Fix some bugs in
54316         suffix handling, e.g., "100k@" was not diagnosed as an invalid
54317         suffix for a human-readable blocksize.  The major caller-visible
54318         change is the addition of a new
54319         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54320         that both overflow and suffix chars were found.
54321
54322         * lib/human.c (humblock): Don't check separately for invalid suffix
54323         char; that is xstrtoumax's job (now that its bug is fixed).
54324         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54325         INTMAX_MAX]: New macros.
54326         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54327         TYPE_MAXIMUM): New macros.
54328         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54329         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54330         if overflow occurs, as it's what __strtol does and it's more useful
54331         in practice.
54332         (__xstrtol): If __strtol reports some error other than ERANGE,
54333         reflect it to the caller as LONGINT_INVALID.  If it reports
54334         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54335         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54336         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54337         value.
54338         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
54339         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54340         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54341         [defined UINTMAX_MAX]: New macros.
54342
54343 2003-10-14  Bruno Haible  <bruno@clisp.org>
54344
54345         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54346
54347 2003-10-14  Bruno Haible  <bruno@clisp.org>
54348
54349         * m4/sig_atomic_t: New file, from GNU gettext.
54350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54351
54352 2003-10-14  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54355         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54356         Also use volatile where needed.
54357
54358 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54359
54360         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
54361         Change maintainer from Bruno Haible to 'all'.
54362
54363 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54364
54365         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54366
54367 2003-10-12  Paul Eggert  <eggert@twinsun.com>
54368
54369         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54370         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54371         and define in terms of the other primitives.
54372         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54373         (SIZE_MAX): Define if not already defined.
54374         (array_size_overflow): New function.
54375         (xalloc_die): Abort instead of exiting if 'error' returns.
54376         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54377         (xmalloc, xrealloc): Use them.
54378         (xcalloc): Check for address arithmetic overflow.
54379         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54380         a bit faster than strcpy.
54381
54382 2003-10-10  Simon Josefsson  <jas@extundo.com>
54383
54384         * modules/argp (Depends-on): Add restrict and strcase.
54385
54386 2003-10-10  Simon Josefsson  <jas@extundo.com>
54387
54388         * m4/argp.m4: Add AC_C_INLINE.
54389
54390 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54391
54392         Merge getpass from libc, plus a few fixes.
54393
54394         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54395         Include <stdbool.h>.
54396         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54397         __fsetlocking to empty.
54398         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54399         do include <bits/libc-lock.h>.
54400         Do not include <fcntl.h>; not needed.
54401         [_LIBC]: Include <wchar.h>.
54402         (NOTCANCEL_MODE): New macro.
54403         (flockfile, funlockfile) [_LIBC]: New macros.
54404         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54405         [!_LIBC]: New macros.
54406         (call_fclose): New function.
54407         (getpass): Use it.  Save tty stream separately; this simplifies the
54408         code and makes it more reliable if stdin happens to equal stdout.
54409         Invoke __fsetlocking on tty.
54410         Handle thread cancellation if needed.
54411         Namespace cleanup (use __tcgetattr, __getline).
54412         Use bool for Booleans.
54413         [USE_IN_LIBIO]: Handle wide streams.
54414         [!_LIBC]: Unconditionally do the fseek, since we don't know what
54415         stream might go where.
54416
54417         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54418         doesn't have to include <stdio.h> before us.
54419         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54420         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54421         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54422         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54423         if not declared, so that we can use getpass.c code from libc without
54424         rewriting it.
54425         (flockfile, ftrylockfile, funlockfile): New macros.
54426
54427 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54428
54429         * modules/getpass: Depend on stdbool.
54430
54431 2003-10-08  Paul Eggert  <eggert@twinsun.com>
54432
54433         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54434
54435 2003-10-07  Karl Berry  <karl@gnu.org>
54436
54437         * config/config.{guess,sub}: update from config.
54438
54439 2003-10-06  Jim Meyering  <jim@meyering.net>
54440             Bruno Haible  <bruno@clisp.org>
54441
54442         This lets translators provide better translations for the
54443         "Written by ..." part of --version output.
54444         * lib/version-etc.h: Include stdarg.h.
54445         (version_etc_copyright): Declare as readonly.
54446         (version_etc): Make this function variadic with a NULL-terminated list
54447         of author name strings.
54448         (version_etc_va): New declaration.
54449         * lib/version-etc.c: Include stdarg.h, stdlib.h.
54450         (version_etc_copyright): Declare as readonly.
54451         (version_etc_va): New function. Provide a different translatable string
54452         for each possible number of authors < 10. Abbreviate when there are 10
54453         authors or more.
54454         (version_etc): Make this function variadic. Call version_etc_va.
54455         Suggestion from Gary V. Vaughan.
54456
54457         * lib/long-options.h (parse_long_options): Change prototype: the
54458         authors string is moved to the end and becomes variadic.
54459         * lib/long-options.c: Include stdarg.h.
54460         (parse_long_options): Make this function variadic, too.
54461         Call version_etc_va, not version_etc.
54462
54463 2003-10-06  Bruno Haible  <bruno@clisp.org>
54464
54465         * modules/version-etc-2: Remove file.
54466         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54467
54468 2003-10-06  Bruno Haible  <bruno@clisp.org>
54469
54470         * modules/fatal-signal: New file.
54471         * MODULES.html.sh (func_all_modules): Add fatal-signal.
54472
54473 2003-10-06  Bruno Haible  <bruno@clisp.org>
54474
54475         * m4/fatal-signal.m4: New file.
54476         * m4/signalblocking.m4: New file, from GNU gettext.
54477
54478 2003-10-06  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/version-etc-2.h: Remove file.
54481         * lib/version-etc-2.c: Remove file.
54482
54483 2003-10-06  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/fatal-signal.h: New file, from GNU gettext.
54486         * lib/fatal-signal.c: New file, from GNU gettext.
54487
54488 2003-10-05  Paul Eggert  <eggert@twinsun.com>
54489
54490         * README: Rework advice for preventing empty .o files.
54491         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
54492         not <sys/types.h>.
54493
54494 2003-10-04  Karl Berry  <karl@gnu.org>
54495
54496         * lib/argp*: update from libc.
54497
54498 2003-10-04  Karl Berry  <karl@gnu.org>
54499
54500         * config/config.{guess,sub}: update from config.
54501
54502 2003-10-02  Bruno Haible  <bruno@clisp.org>
54503
54504         * modules/lchown (Include): Add lchown.h.
54505         * modules/time_r (Include): Use "..." syntax.
54506         * modules/xgetdomainname (Include): Add xgetdomainname.h.
54507
54508 2003-10-01  Simon Josefsson  <jas@extundo.com>
54509
54510         * MODULES.html.sh (func_all_modules): Move gethostname from section
54511         'based on' to section 'lacking' POSIX:2001.
54512
54513 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
54514
54515         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54516         to output mode on the same stream.
54517
54518 2003-09-29  Paul Eggert  <eggert@twinsun.com>
54519
54520         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
54521         Fix arg typo in previous patch.
54522
54523 2003-09-28  Jim Meyering  <jim@meyering.net>
54524
54525         * lib/error.c: Correct cpp indentation.
54526
54527 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54528
54529         * modules/free: New file.
54530
54531 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54532
54533         * m4/free.m4: New file.
54534
54535 2003-09-27  Paul Eggert  <eggert@twinsun.com>
54536
54537         * lib/minmax.h (MIN, MAX)
54538         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
54539         Omit the special code that used __typeof__, since we worry that
54540         it could be more trouble than it's worth.  See:
54541         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
54542         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
54543
54544         * lib/free.c: New file.
54545
54546 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
54547
54548         Trivial fixes to Makefile.am parts of module listings.
54549         * modules/strstr: Append strstr.h to lib_SOURCES.
54550         * modules/strcase: Likewise, for strcase.h.
54551
54552 2003-09-27  Karl Berry  <karl@gnu.org>
54553
54554         * config/mkinstalldirs: update from automake.
54555
54556 2003-09-26  Paul Eggert  <eggert@twinsun.com>
54557
54558         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
54559         (error_tail): Do not loop, reallocating temporary buffer, since
54560         the output cannot contain more wide characters than the input
54561         contains bytes, the size must be big enough already.  This avoids
54562         one potential size overflow calculation.  Check for size overflow
54563         when calculating temporary buffer size.  Free temporary buffer
54564         when done, if it was allocated with malloc; this plugs a memory
54565         leak.  Remove casts from void * to pointers, that are no longer
54566         needed now that we're assuming C89 or better.
54567
54568         Merge error changes from glibc.
54569
54570         * lib/error.c, error.h: Update copyright notice header to match glibc.
54571         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
54572         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
54573         Disable cancellation while printing error.
54574         * lib/error.h: Prepend __ to parameter names.
54575
54576 2003-09-26  Jim Meyering  <jim@meyering.net>
54577
54578         * lib/error.c (error_tail): Move some declarations
54579         into inner scope where the local variables are used.
54580
54581 2003-09-26  Bruno Haible  <bruno@clisp.org>
54582
54583         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
54584         stpncpy().
54585         Don't define stpncpy through config.h; it's now done through stpncpy.h.
54586
54587 2003-09-26  Bruno Haible  <bruno@clisp.org>
54588
54589         * lib/stpncpy.h (gnu_stpncpy): New declaration.
54590         (stpncpy): Define as alias for gnu_stpncpy.
54591         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
54592
54593 2003-09-25  Simon Josefsson  <jas@extundo.com>
54594
54595         * lib/xgetdomainname.h: New file.
54596         * lib/xgetdomainname.c: New file.
54597
54598 2003-09-25  Simon Josefsson  <jas@extundo.com>
54599             Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/getdomainname: New file.
54602         * modules/xgetdomainname: New file.
54603         * MODULES.html.sh (func_all_modules): Add getdomainname,
54604         xgetdomainname.
54605
54606 2003-09-25  Simon Josefsson  <jas@extundo.com>
54607             Bruno Haible  <bruno@clisp.org>
54608
54609         * m4/getdomainname.m4: New file.
54610
54611 2003-09-25  Simon Josefsson  <jas@extundo.com>
54612             Bruno Haible  <bruno@clisp.org>
54613
54614         * lib/getdomainname.h: New file.
54615         * lib/getdomainname.c: New file.
54616
54617 2003-09-25  Karl Berry  <karl@gnu.org>
54618
54619         * lib/argp-fmtstream.c, argp-help.c: update from libc.
54620
54621 2003-09-25  Karl Berry  <karl@gnu.org>
54622
54623         * config/install-sh: update from automake.
54624
54625 2003-09-25  Bruno Haible  <bruno@clisp.org>
54626
54627         * modules/version-etc-2: New file, from modules/version-etc with
54628         modifications.
54629         * MODULES.html.sh (func_all_modules): Add version-etc-2.
54630
54631 2003-09-25  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
54634         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
54635
54636 2003-09-24  Simon Josefsson  <jas@extundo.com>
54637
54638         * modules/xgethostname: Add xgethostname.h.
54639
54640 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54641
54642         * lib/linebuffer.c (freebuffer): Don't free the argument, just
54643         the buffer associated with the argument.  Bug reported by
54644         Simon Josefsson.
54645
54646 2003-09-24  Paul Eggert  <eggert@twinsun.com>
54647
54648         * README: Document assumptions that 'int' is at least 32 bits
54649         wide, that integer arithmetic is 2's complement without overflow,
54650         that there are no holes in integer values, that adding sizes of
54651         two nonoverlapping objects can't overflow, and that all-bits-zero
54652         yields scalar zero.  Fix spelling and capitalization typos.
54653
54654 2003-09-19  Karl Berry  <karl@gnu.org>
54655
54656         * lib/argp.h: update from libc.
54657
54658 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54659
54660         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
54661         to avoid spurious warnings like "AC_RUN_IFELSE was called before
54662         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
54663
54664 2003-09-17  Paul Eggert  <eggert@twinsun.com>
54665
54666         * gnulib-tool: Use "test -h", not "test -L", for portability
54667         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
54668         (tags_regexp): Remove, since \| doesn't conform to POSIX.
54669         (sed_extract_prog): Issue s commands one-by-one, rather than
54670         using \| in one s command.
54671
54672 2003-09-16  Paul Eggert  <eggert@twinsun.com>
54673
54674         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
54675         input error, instead of returning NULL the next time we are called
54676         (and therefore losing track of errno).
54677
54678 2003-09-16  Bruno Haible  <bruno@clisp.org>
54679
54680         * gnulib-tool (func_create_testdir): Warn about duplicated
54681         dependencies.
54682
54683 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54684
54685         * modules/argmatch, modules/fatal, modules/obstack,
54686         modules/xalloc, modules/xgethostname: Sort dependencies by
54687         importance, not alphabetically.
54688
54689 2003-09-15  Paul Eggert  <eggert@twinsun.com>
54690
54691         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
54692         fails, so that the caller gets the proper errno.
54693
54694         * lib/readutmp.c (read_utmp): Likewise.
54695         Check for fstat error.  Close stream and free storage
54696         when failing.
54697
54698 2003-09-14  Karl Berry  <karl@gnu.org>
54699
54700         * config/srclist.txt (strdup.c): disable for c89 changes.
54701
54702 2003-09-14  Jim Meyering  <jim@meyering.net>
54703
54704         * lib/getloadavg.c: Correct cpp indentation.
54705         * lib/strdup.c: Likewise.
54706         * lib/vasnprintf.c: Likewise.
54707
54708 2003-09-14  Bruno Haible  <bruno@clisp.org>
54709
54710         * modules/fwriteerror: New file.
54711         * MODULES.html.sh (func_all_modules): Add fwriteerror.
54712
54713 2003-09-14  Bruno Haible  <bruno@clisp.org>
54714
54715         * lib/fwriteerror.h: New file.
54716         * lib/fwriteerror.c: New file.
54717
54718 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54719
54720         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
54721         modules/xgethostname, modules/xalloc: Depend on exit.
54722
54723 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54724
54725         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
54726
54727         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
54728         and AC_MINIX, too, so that their extensions are available.
54729
54730         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
54731         This macro has been superseded by gl_BACKUPFILE.
54732
54733         More patches to assume C89 or better.
54734
54735         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
54736
54737         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
54738         unconditionally.
54739         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
54740         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
54741         Include <string.h>, <stdlib.h> unconditionally.
54742         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
54743         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
54744         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
54745         headers or for string.h.
54746         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
54747         or strtoul.
54748
54749         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
54750         headers.
54751         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
54752         * m4/userspec.m4 (gl_USERSPEC): Likewise.
54753         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
54754         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
54755         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
54757         memcpy, memset.
54758         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
54759         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
54760         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
54761         strtol.
54762         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
54763         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
54764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
54765         strtoul.
54766
54767 2003-09-12  Paul Eggert  <eggert@twinsun.com>
54768
54769         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
54770         * lib/obstack.c [!defined _LIBC]: Likewise.
54771         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
54772         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
54773         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
54774
54775         More changes to assume C89 or better.
54776
54777         * lib/error.c (error_tail): Assume vprintf.
54778
54779         * lib/argmatch.c (getenv): Remove decl.
54780         * lib/progreloc.c (get_full_program_name): Define via prototype.
54781         * lib/setenv.c (clearenv): Likewise.
54782         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
54783         needed.
54784         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
54785         (malloc, memcpy): Remove decls.
54786         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
54787         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
54788         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54789         (memcpy): Remove macro.
54790         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
54791         (__P): Remove.  All uses removed.
54792         (PTR): Remove.  All uses changed to void *.
54793         (CHAR_BIT, NULL): Remove.
54794         (spaces, zeros, memset_space, memset_zero)
54795         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
54796         Remove.
54797         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
54798         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
54799         Define with prototype.
54800         Remove now-unnecessary prototype decl.
54801         (extra_args_spec): Assume ANSI C.  All uses changed.
54802         (extra_args_spec_iso): Remove.
54803         (my_strftime, emacs_strftimeu): Define via prototype.
54804         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
54805         unconditionally.
54806         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
54807         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
54808         (strtoul, strtol): Remove decls.
54809         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
54810         LONG_MAX): Remove.
54811         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
54812         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
54813         (LOCALE_PARAM_PROTO): New macro.
54814         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
54815         (INTERNAL (strtol), strtol): Define with a prototype.
54816         (PARAMS): Remove.  All uses removed.
54817         * lib/tempname.c: Include <string.h> unconditionally.
54818         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
54819         * lib/xgethostname.c (main): Define with a prototype.
54820         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
54821         Include <stdlib.h> unconditionally.
54822         (calloc, malloc, realloc, free): Remove decls.
54823         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
54824         Include <stdlib.h> unconditionally.  Sort include file names.
54825         (strtod): Remove.
54826         (xstrtod): Define with a prototype.
54827         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
54828         (strtol, strtoul): Remove decls.
54829
54830 2003-09-11  Paul Eggert  <eggert@twinsun.com>
54831
54832         More patches to assume C89 or better.
54833         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
54834         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
54835         string.h, memchr, STDC_HEADERS.
54836
54837 2003-09-11  Paul Eggert  <eggert@twinsun.com>
54838
54839         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
54840         Include <stdlib.h>, <string.h> unconditionally.
54841         Remove now-unnecessary cast to char *.
54842         * lib/strnlen.c: Include <string.h> unconditionally.
54843         * lib/yesno.c (yesno): Define with a prototype.
54844
54845 2003-09-11  Bruno Haible  <bruno@clisp.org>
54846
54847         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
54848
54849 2003-09-10  Jim Meyering  <jim@meyering.net>
54850
54851         * lib/error.c: Correct indentation of cpp directives.
54852
54853 2003-09-10  Bruno Haible  <bruno@clisp.org>
54854
54855         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
54856         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
54857         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
54858         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
54859         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
54860         <stdlib.h> and <string.h> checks.
54861         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
54862         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
54863
54864 2003-09-10  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/strcspn.c: Include <string.h> unconditionally.
54867         * lib/strpbrk.c: Include <string.h> unconditionally.
54868         * lib/strstr.c: Include <string.h> unconditionally.
54869         * lib/unicodeio.c: Include <string.h> unconditionally.
54870         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
54871         * lib/unsetenv.c: Likewise.
54872         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
54873         * lib/yesno.c: Include <stdlib.h> unconditionally.
54874         (rpmatch): Add prototype.
54875
54876 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54877
54878         More patches to assume C89 or better.
54879         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
54880         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
54881         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
54882         or for string.h.
54883         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
54884         stdlib.h.
54885         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
54886         C headers.
54887         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
54888         string.h.
54889         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
54890         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
54891         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
54892         or for string.h.
54893         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
54894         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
54895         C headers.
54896         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
54897         memcpy.
54898         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
54899         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
54900         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
54901         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
54902         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
54903         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
54904         string.h, free.
54905         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
54906         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
54907         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
54908         C headers, or for string.h.
54909         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
54910         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
54911         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
54912         headers, memory.h, stdlib.h, string.h, strings.h.
54913         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
54914         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
54915         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
54916         strchr.
54917         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
54918         headers, memory.h, string.h.
54919         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
54920         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
54921         free.
54922         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
54923         headers.
54924         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
54925         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
54926         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
54927         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
54928         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
54929
54930 2003-09-09  Paul Eggert  <eggert@twinsun.com>
54931
54932         More K&R removal.
54933
54934         * lib/acosl.c (main): Use a prototype.
54935         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
54936         tanl.c: Likewise.
54937
54938         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
54939
54940         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
54941         (getopt, etopt_long, getopt_long_only, _getopt_internal)
54942         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
54943         with a prototype.
54944         * lib/getopt.c (const): Remove macro.
54945         Include <string.h> unconditionally.
54946         (my_index): Remove; all uses changed to strchr.
54947         (strlen): Remove decl.
54948         (exchange): Remove forward decl; no longer needed.
54949         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
54950         Define with prototype.
54951         * lib/getopt1.c (const): Remove macro.
54952         (getopt_long, getopt_long_only, main): Define with prototype.
54953
54954         * lib/getugroups.c: Include <string.h> unconditionally.
54955
54956         * lib/getusershell.c: Include <stdlib.h> unconditionally.
54957         (getusershell, setusershell, endusershell, readname, main):
54958         Define with prototypes.
54959
54960         * lib/group-member.c: Include group-member.h first.
54961         Include <stdlib.h> unconditionally.
54962
54963         * lib/hard-locale.c: Include hard-locale.h first.
54964         Include <stdlib.h>, <string.h> unconditionally.
54965
54966         * lib/hash.c (free, malloc): Remove decls.
54967         Include <stdlib.h> unconditionally.
54968
54969         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
54970         (getenv): Do not declare.
54971
54972         * lib/idcache.c: Include <string.h> unconditionally.
54973
54974         * lib/long-options.c: Include long-options.h first, to test interface.
54975         Include <stdlib.h> unconditionally.
54976
54977         * lib/makepath.c: Include makepath.h first, to test interface.
54978         Include <stdlib.h> and <string.h> unconditionally.
54979
54980         * lib/linebuffer.c: Include <stdlib.h>.
54981         (free): Remove decl.
54982
54983         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
54984         stddef.h. rpl_malloc returns void *, not char *.
54985         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
54986         prototype.
54987
54988         * lib/md5.h: Include <limits.h> unconditionally.
54989         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
54990         (__P): Remove; all uses removed.
54991         * lib/md5.c: Include "md5.h" first.
54992         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
54993         md5_buffer, md5_process_bytes, md5_process_block):
54994         Define with prototypes.
54995         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
54996         * lib/sha.c: Include "sha.h" first.
54997         Include <stdlib.h>, <string.h> unconditionally.
54998
54999         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55000         * lib/memcmp.c (__ptr_t): Likewise.
55001         * lib/memrchr.c (__ptr_t): Likewise.
55002         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55003         Include <string.h> unconditionally.
55004         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55005         * lib/memchr.c: Include <stdlib.h> unconditionally.
55006         * lib/memchr.c (LONG_MAX): Remove.
55007         * lib/memrchr.c (LONG_MAX): Likewise.
55008         * lib/memchr.c (__memchr): Define via a prototype.
55009         * lib/memrchr.c (__memrchr): Likewise.
55010         * lib/memcmp.c (__P): Remove, and remove all uses.
55011         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55012         Remove forward decls; no longer needed.
55013         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55014         Use types required by C89 in prototype.
55015
55016         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55017         * lib/savedir.c: Likewise.
55018         * lib/mkdir.c (free): Remove decl.
55019         * lib/rmdir.c (rmdir): Define with a prototype.
55020         * lib/savedir.c: Include savedir.h first, to test interface.
55021
55022         * lib/mktime.c (STDC_HEADERS): Remove.
55023         Include <stdlib.h>, <string.h> unconditionally.
55024
55025         * lib/modechange.c: Include <stdlib.h> unconditionally.
55026         (malloc): Remove decl.
55027
55028         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55029         (free): Remove decl.
55030
55031         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55032         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55033         (This type really should be intptr_t, but that's a C99ism.)
55034         (_obstack_memcpy): Remove: all uses changed to memcpy.
55035         Include <string.h> unconditionally.
55036         (struct obstack): Assume __STDC__ for types of members
55037         chunkfun, freefun, extra_arg.
55038         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55039         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55040         obstack_begin, obstack_specify_allocation,
55041         obstack_specify_allocation_with_arg, obstack_chunkfun,
55042         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55043         Remove unprototyped decls and the macros that use them.
55044         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55045         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55046         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55047         (defined __STDC__ && __STDC__)]:
55048         Remove nonprototyped code.
55049         Include <stdlib.h> unconditionally.
55050         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55051         _obstack_allocated_p, _obstack_free, obstack_free,
55052         _obstack_memory_used, print_and_abort):
55053         Define using prototypes.
55054         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55055         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55056         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55057         obstack_next_free, obstack_object_size, obstack_room) [0]:
55058         Remove unused, unprototyped code.
55059
55060         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55061
55062         * lib/physmem.c (physmem_total, physmem_available, main): Define
55063         with prototypes.
55064
55065         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55066         (main): Define with a prototype.
55067
55068         * lib/posixver.c (getenv): Remove decl.
55069
55070         * lib/putenv.c (malloc): Returns void *, not char *.
55071         Include <string.h> unconditionally.
55072         (strchr, memcpy, NULL): Do not define.
55073
55074         * lib/readtokens.c: Include readtokens.h first, to test interface.
55075         Include <stdlib.h>, <string.h> unconditionally.
55076         (init_tokenbuffer): Define with a prototype.
55077
55078         * lib/regex.c (PARAMS): Remove.  All uses removed.
55079         All uses of _RE_ARGS removed, too.
55080         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55081         unconditionally.
55082         (bzero): Assume memset exists.
55083         (memcmp, memcpy, NULL): Remove.
55084         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55085         char, or assignments to local vars of type signed char.
55086         (init_syntax_once, PREFIX(extract_number_and_incr),
55087         PREFIX(print_partial_compiled_pattern),
55088         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55089         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55090         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55091         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55092         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55093         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55094         wcs_compile_range, byte_compile_range, truncate_wchar,
55095         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55096         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55097         count_mbs_length, wcs_re_match_2_internal,
55098         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55099         PREFIX(alt_match_null_string_p),
55100         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55101         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55102         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55103         now-unnecessary declaration, if any.
55104         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55105         regcomp, regexec):
55106         Remove now-unnecessary casts among pointer types.
55107         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55108
55109         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55110         (free): Remove decl.
55111
55112         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55113
55114         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55115         (free): Remove decl.
55116
55117         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55118         * lib/xgetcwd.c: Likewise.
55119
55120         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55121         (free): Remove decl.
55122
55123         * lib/strchrnul.c (strchrnul): Define with a prototype.
55124         Fix bug: c_in was not converted to char before searching.
55125
55126         The following changes are not K&R related:
55127
55128         * lib/group-member.h: Include <sys/types.h>, so that this file is
55129         self-contained.
55130         * lib/makepath.h: Likewise.
55131
55132         * lib/getusershell.c (readname, default_index, line_size, readname):
55133         Use size_t, not int, for sizes.
55134         (readname): If the size overflows, report an error instead of
55135         looping forever.
55136
55137 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55138
55139         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55140         libc.
55141
55142 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55143
55144         * README: New section: portability guidelines.
55145
55146 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55147
55148         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55149         C89 spec.
55150
55151 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55152
55153         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55154
55155 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55156
55157         Assume C89 or better; remove K&R cruft.
55158         A few of these changes were first proposed by Derek Robert Price
55159         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55160
55161         * lib/addext.c: Include <string.h> unconditionally.
55162         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55163         Don't declare getenv or malloc.
55164
55165         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55166         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55167         (NULL): Remove.
55168         (find_stack_direction, alloca): Use prototypes.
55169
55170         * lib/atexit.c (atexit): Define using a prototype.
55171
55172         * lib/basename.c, dirname.c, stripslash.c:
55173         Include <string.h> unconditionally.
55174
55175         * lib/bcopy.c: Include <stddef.h>.
55176         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55177
55178         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55179
55180         * lib/error.h (error, error_at_line, error_print_progname)
55181         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55182         * lib/error.c: Include error.h first, to check interface.
55183         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55184         (VA_START): Remove; all uses changeed to va_start.
55185         (exit, strerror): Remove decls.
55186         (error_print_progname): Prototype uncondionally.
55187         Don't include <errno.h>; no longer needed.
55188         (private_strerror): Remove.
55189         (error_tail): Always define.
55190         (error, error_at_line): Assume C89 or better; always use prototypes.
55191         * lib/fatal.c: Include "fatal.h" first, to test interface.
55192         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55193         (VA_START): Remove; all uses changed to va_start.
55194         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55195         this case.
55196         (exit): Remove decl.
55197         (fatal): Prototype unconditionally.  Assume va_start works.
55198         Abort at end, to pacify gcc.
55199
55200         * lib/euidaccess.c (main): Define with a prototype.
55201
55202         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55203
55204         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55205
55206         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55207         prototypes.
55208         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55209         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55210         (getenv): Remove decl.
55211         (fnmatch): Define using a prototype.
55212         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55213         (FCT): Define using a prototype.
55214
55215         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55216
55217         * lib/gethostname.c: Include <stddef.h>.
55218         (gethostname): Define with prototype.  Length is size_t, not int.
55219
55220 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55221
55222         Assume C89 or better; remove K&R cruft.
55223         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55224         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55225         string.h, getenv, malloc.
55226         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55227         headers.
55228         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55229         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55230         do not check for strerror.
55231         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55232         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55233         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55234         do not check for doprnt or vprintf.
55235         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
55236         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55237
55238 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55239
55240         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55241         getversion.c should have been removed then, but was accidentally
55242         preserved.
55243
55244         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55245         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55246
55247 2003-09-08  Karl Berry  <karl@gnu.org>
55248
55249         * config/config.sub, config.guess, srclistvars.sh: update from savannah
55250                 config, forget about prep.
55251
55252         * config/depcomp, missing: update from automake.
55253
55254 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55255
55256         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
55257         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55258
55259 2003-09-07  Paul Eggert  <eggert@twinsun.com>
55260
55261         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55262         copy_tm_result.  Bug reported by Simon Josefsson in
55263         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55264
55265 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55266
55267         * m4/time_r.m4: New file.
55268         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55269         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55270         is. Check for timegm declaration.
55271         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55272         Do not check for gmtime_r.
55273         Replace mktime if __mktime_internal does not exist and if mktime
55274         hasn't been replaced already.
55275
55276 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55277
55278         * lib/time_r.c, lib/time_r.h: New files.
55279
55280         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55281         __localtime_r.
55282         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
55283         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55284
55285         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55286         __gmtime_r.
55287         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55288         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55289         Include <time_r.h>.
55290
55291         * lib/timegm.c: Switch to glibc implementation, with the following
55292         changes:
55293         [defined HAVE_CONFIG_H]: Include <config.h>.
55294         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55295         (__mktime_internal) [!defined _LIBC]: New decl.
55296         (__gmtime_r) [!defined _LIBC]: New macro and function.
55297         (timegm): Use a prototype, since gnulib assumes C89.
55298         Do not bother declaring tmp to be const, as it's not really usefu.
55299         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55300         (timegm): Declare only if HAVE_DECL_TIMEGM.
55301
55302 2003-09-06  Paul Eggert  <eggert@twinsun.com>
55303
55304         * MODULES.html.sh (func_all_modules): Add time_r.
55305         * modules/time_r: New file.
55306         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55307         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
55308
55309 2003-09-03  Paul Eggert  <eggert@twinsun.com>
55310
55311         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55312         Bug reported by Lute Kamstra in
55313         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55314
55315         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55316         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
55317         course with correspondingly smaller numbers for tomorrow and
55318         yesterday.  From Tadayoshi Funaba.  Originally installed into
55319         sh-utils on 1999-08-07, but the patch got lost (I guess during the
55320         coreutils merge?).
55321
55322 2003-08-31  Simon Josefsson  <jas@extundo.com>
55323
55324         * modules/timegm: New file.
55325         * MODULES.html.sh (func_all_modules): Add timegm.
55326
55327 2003-08-31  Simon Josefsson  <jas@extundo.com>
55328
55329         * m4/timegm.m4: New file.
55330
55331 2003-08-31  Simon Josefsson  <jas@extundo.com>
55332
55333         * lib/timegm.h: New file.
55334         * lib/timegm.c: New file.  Based on
55335         wget-1.8.2/src/http.c:mktime_from_utc.
55336
55337 2003-08-31  Karl Berry  <karl@gnu.org>
55338
55339         * lib/argp.h: update from libc.
55340
55341 2003-08-28  Bruno Haible  <bruno@clisp.org>
55342
55343         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55344         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55345         followed by '#define fnmatch fnmatch_posix' gives an error.
55346
55347 2003-08-28  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55350         warning on QNX, which defines O_BINARY to 000000.
55351
55352 2003-08-27  Jim Meyering  <jim@meyering.net>
55353
55354         * m4/mkstemp.m4: Require that the system mkstemp be able to create
55355         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
55356         would fail after 32.  Reported by Danny Levinson.  Details here:
55357         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55358
55359 2003-08-24  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55362         MSVC7 <stdio.h> is included later.
55363
55364 2003-08-22  Simon Josefsson  <jas@extundo.com>
55365
55366         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55367
55368 2003-08-20  Karl Berry  <karl@gnu.org>
55369
55370         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55371
55372 2003-08-20  Bruno Haible  <bruno@clisp.org>
55373
55374         * modules/progname: New file.
55375         * MODULES.html.sh (func_all_modules): Add progname.
55376
55377 2003-08-20  Bruno Haible  <bruno@clisp.org>
55378
55379         * lib/progname.h: New file, from GNU gettext.
55380         * lib/progname.c: New file, from GNU gettext.
55381         * lib/progreloc.c: New file, from GNU gettext.
55382
55383 2003-08-19  Jim Meyering  <jim@meyering.net>
55384
55385         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55386         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55387
55388 2003-08-19  Bruno Haible  <bruno@clisp.org>
55389
55390         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55391         more.
55392
55393 2003-08-19  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/xstrdup.c: Assume <string.h> exists.
55396
55397 2003-08-18  Paul Eggert  <eggert@twinsun.com>
55398
55399         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
55400         in makefile rules.
55401
55402 2003-08-18  Jim Meyering  <jim@meyering.net>
55403
55404         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55405         * m4/lib-ld.m4: Likewise.
55406
55407 2003-08-18  Jim Meyering  <jim@meyering.net>
55408
55409         * lib/setenv.h: Indent nested cpp directive.
55410         * lib/vasnprintf.c: Remove trailing blanks.
55411
55412 2003-08-17  Simon Josefsson  <jas@extundo.com>
55413
55414         * modules/xstrndup: New file.
55415         * MODULES.html.sh (func_all_modules): Add xstrndup.
55416
55417 2003-08-17  Simon Josefsson  <jas@extundo.com>
55418
55419         * modules/argp: Fix autoconf macro name. Add more dependencies.
55420
55421 2003-08-17  Simon Josefsson  <jas@extundo.com>
55422
55423         * m4/xstrndup.m4: New file.
55424
55425 2003-08-17  Simon Josefsson  <jas@extundo.com>
55426
55427         * m4/argp.m4: New file.
55428
55429 2003-08-17  Simon Josefsson  <jas@extundo.com>
55430             Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/xstrndup.h: New file.
55433         * lib/xstrndup.c: New file.
55434
55435 2003-08-17  Bruno Haible  <bruno@clisp.org>
55436
55437         * modules/strndup (Files, Include): Add lib/strndup.h.
55438
55439 2003-08-17  Bruno Haible  <bruno@clisp.org>
55440
55441         * modules/euidaccess (Files): Add lib/euidaccess.h.
55442
55443 2003-08-17  Bruno Haible  <bruno@clisp.org>
55444
55445         * lib/strndup.h: New file.
55446
55447 2003-08-17  Bruno Haible  <bruno@clisp.org>
55448
55449         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55450         like AC_GNU_SOURCE.
55451         * modules/extensions (configure.ac): Comment out the invocation of
55452         gl_USE_SYSTEM_EXTENSIONS.
55453
55454 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55455
55456         Merges from coreutils, etc.
55457         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55458         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
55459         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55460         fixing a typo.
55461         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55462         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55463
55464 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55465
55466         Document merge from coreutils.
55467         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55468         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55469         * modules/utime: Add m4/utimes-null.m4.
55470
55471 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55472
55473         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55474         space, undoing this 2003-08-12 change:
55475         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55476
55477 2003-08-16  Paul Eggert  <eggert@twinsun.com>
55478
55479         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55480         strtoul.c from libc, undoing this 2003-08-12 change:
55481         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55482
55483 2003-08-16  Jim Meyering  <jim@meyering.net>
55484
55485         Merges from coreutils.
55486         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55487         prefix.  Adjust cache variables similarly.  Create 500 rather than
55488         just 300 files, to exercise bug on Darwin6.5, too.
55489         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55490         $missing_dir.
55491         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55492         AM_SYS_POSIX_TERMIOS.
55493         Reported by mkc@mathdogs.com.
55494         Also change use of $am_cv_sys_posix_termios
55495         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
55496         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55497         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55498         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55499         in /proc/mounts until it finds one with matching device number.  This
55500         is unnecessary when the FILE argument *is* a mount point.  No stat call
55501         is necessary in that case.  So, disable the statvfs-testing code on
55502         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
55503         as RedHat bug# 84846.
55504         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55505         to 1MB, so as not to render systems with no stack size limit (e.g.,
55506         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55507         Include <unistd.h>.  On some systems,
55508         it is required for the definition of _SC_PAGESIZE.
55509
55510 2003-08-16  Jim Meyering  <jim@meyering.net>
55511
55512         Merge from coreutils.
55513         * lib/xstrtoimax.c: #else #if -> #elif.
55514         * lib/xstrtoumax.c: Likewise.
55515
55516 2003-08-16  Jim Meyering  <jim@meyering.net>
55517
55518         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
55519         * m4/utimes.m4: Removed.
55520         * m4/utimes-null.m4: Renamed from utimes.m4.
55521
55522         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55523         to 1MB, so as not to render systems with no stack size limit (e.g.,
55524         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
55525         Include <unistd.h>.  On some systems,
55526         it is required for the definition of _SC_PAGESIZE.
55527
55528 2003-08-16  Jim Meyering  <jim@meyering.net>
55529         and Paul Eggert  <eggert@cs.ucla.edu>
55530
55531         Merges from coreutils, etc.
55532
55533         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
55534         using the latest version from cvs.  This avoids problems with #line
55535         directives using a vendor (Sun) compiler.
55536         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
55537         Don't set GETGROUPS_LIB here; now it's
55538         done via getgroups.m4's wrapper function.
55539         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
55540         rather than just in sh-util/configure.in, so that the
55541         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
55542         same.
55543         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
55544         AC_FUNC_GETLOADAVG where to find getloadavg.c.
55545         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
55546         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
55547         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
55548         Remove code that is now done by the newly-required macros.
55549         Append $(EXEEXT) to DF_PROG.
55550         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
55551         Do not invoke or require the following here,
55552         since prereq.m4 or some gnulib .m4 now does this for us:
55553         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
55554         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
55555         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
55556         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
55557         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
55558         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
55559         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
55560         AC_FUNC_OBSTACK.
55561         Do not replace the following functions, as this is now the job
55562         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
55563         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
55564         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
55565         atexit getpass, strdup, getpagesize.
55566         Replace 'raise'.
55567         Do not check for the following functions, as this is now the job
55568         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
55569         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
55570         setregid.
55571         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
55572         Check for sys/sysctl.h.
55573         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
55574         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
55575         of checking for ssize_t ourselves.
55576
55577         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
55578         Require every macro that gnulib/modules/* suggests for us.
55579         (jm_PREREQ_ADDEXT): New macro.
55580         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
55581         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
55582
55583         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
55584         (gl_PHYSMEM): Use it.
55585         Also check for `table' function.
55586         Check for new headers and functions.
55587         Add check for sys/sysmp.h.
55588         With suggestions from Kaveh Ghazi.
55589         Ignore headers that are present but cannot be compiled.  This
55590         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
55591         C 5.4.
55592
55593 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55594
55595         Document merge from coreutils.
55596         * modules/userspec: Depend on posixver.
55597         * modules/strftime: Depend on tzset.
55598
55599 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55600
55601         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
55602         rather than tab, after '#' in shell-script copyright notices.
55603         Suggested by Bruno Haible.
55604
55605 2003-08-15  Paul Eggert  <eggert@twinsun.com>
55606
55607         * config/srclist-update: Use three spaces, rather than tab, after '#'
55608         in shell-script copyright notices.  Suggested by Bruno Haible.
55609         Remove unnecessary parenthesization in regular expression.
55610
55611 2003-08-15  Jim Meyering  <jim@meyering.net>
55612
55613         Merge from coreutils.
55614         * lib/xgethostname.c: Include <stdlib.h>.
55615         (xghostname): Don't exit for anything other than memory-related
55616         failure; just return NULL.
55617         * lib/userspec.c: Include "posixver.h".
55618         (parse_user_spec): Accept `.' as a separator only
55619         in pre-POSIX-200112 mode.
55620         * lib/strtoimax.c: Use #elif rather than #else #if.
55621         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
55622         Remove function, now that we can rely on a working tzset function.
55623         [!_LIBC]: Ensure that the required autoconf test has been run.
55624         [!defined _NL_CURRENT && HAVE_STRFTIME]:
55625         Use underlying_strftime for %r.
55626         * lib/sha.c: Merge in some clean-up and optimization changes from
55627         glibc.
55628         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
55629         Ensure that it is a multiple of 64.
55630         Rearrange loop exit tests so as to avoid performing an
55631         additional fread after encountering an error or EOF.
55632         * lib/realloc.c: Update copyright date.
55633
55634 2003-08-15  Jim Meyering  <jim@meyering.net>
55635         and Paul Eggert  <eggert@twinsun.com>
55636
55637         Merge from coreutils.
55638         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
55639         member but strut utmpx does not.  Needed for AIX 4.3.3.
55640         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
55641
55642 2003-08-15  Jim Meyering  <jim@meyering.net>
55643         and Paul Eggert  <eggert@cs.ucla.edu>
55644
55645         Merges from coreutils, etc.
55646         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
55647         Require gl_FUNC_TZSET_CLOBBER.
55648         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
55649         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
55650         members.
55651
55652 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55653
55654         Help the merge from coreutils.
55655         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
55656         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
55657         * m4/tzset.m4: Use it too.
55658
55659 2003-08-14  Paul Eggert  <eggert@twinsun.com>
55660
55661         * modules/tzset: New file.
55662
55663 2003-08-14  Jim Meyering  <jim@meyering.net>
55664
55665         Merges from coreutils.
55666         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
55667         variable names, rather than @FNMATCH_H@.
55668         * modules/alloca: Likewise for $(ALLOCA_H).
55669
55670         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
55671         the three copies of the literal target, `fnmatch.h'.
55672         * modules/alloca (alloca.h): Likewise.
55673
55674 2003-08-14  Jim Meyering  <jim@meyering.net>
55675
55676         Merge from coreutils.
55677         * m4/tzset.m4: New file.
55678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
55679         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
55680         otherwise, AIX 5.1 systems would end up using the latter.
55681         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
55682         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
55683         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
55684         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
55685
55686 2003-08-14  Jim Meyering  <jim@meyering.net>
55687
55688         Merge from coreutils.
55689         * lib/obstack.h: Whitespace changes.
55690         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
55691         and xcalloc return values.
55692         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
55693         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
55694         hang on OSF/1 5.1 for DIR on both local and remote file systems.
55695         Reported by (and fix confirmed by) Nelson H. F. Beebe.
55696         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55697         error from mntctl.
55698         Use mntctl's return value to drive the entry-processing loop, since
55699         we can't rely on the value of the vmt_length member in the last
55700         entry.  On some systems doing so could result in exhausting
55701         virtual memory.  Based in part on a patch from Mike Jetzer.
55702
55703 2003-08-14  Jim Meyering  <jim@meyering.net>
55704         and Paul Eggert  <eggert@twinsun.com>
55705
55706         Merges from coreutils, plus other fixes.
55707         * lib/physmem.c: Merge in portability changes from gcc/libiberty
55708         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
55709         for credits and details.  Thanks to Kaveh Ghazi for helping
55710         to keep these files in sync.
55711         (ARRAY_SIZE): Define it.
55712         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
55713         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
55714         (memcasecmp): Don't assume size_t fits in unsigned int.
55715         Remove casts and duplicate code.
55716         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
55717         (memcpy): Remove definition.
55718         Merge in some clean-up and optimization changes from glibc.
55719         [BLOCKSIZE]: Move definition to top of file.
55720         Ensure that it is a multiple of 64.
55721         Rearrange loop exit tests so as to avoid performing an
55722         additional fread after encountering an error or EOF.
55723         * lib/md5.h (md5_uintptr): Define.
55724         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
55725         return to the initial working directory.  Preserve errno
55726         for caller.
55727         * lib/idcache.c: Include "xalloc.h".
55728         (xmalloc, xrealloc): Remove decls.
55729         (getuser): Remove casts no longer required in C89.
55730         * lib/human.c: Include stdio.h, for sprintf.
55731         * lib/group-member.c: Include "xalloc.h".
55732         (xmalloc, xrealloc): Remove decls.
55733         (get_group_info): Remove casts no longer required in C89.
55734         * lib/getusershell.c (readname): Remove casts no longer required in
55735         C89.
55736         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
55737         * lib/getline.c: Whitespace fix, from coreutils.
55738
55739 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55740
55741         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
55742         Check for isascii.
55743
55744         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55745         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55746         Undo previous (whitespace-only) change.
55747
55748 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55749
55750         * lib/exclude.c: Include <ctype.h>
55751         (IN_CTYPE_DOMAIN): New macro.
55752         (is_space): New fn.
55753         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
55754         and empty lines.
55755
55756         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55757         Undo previous (whitespace-only) change.
55758
55759 2003-08-13  Paul Eggert  <eggert@twinsun.com>
55760
55761         * config/srclist-update: Change update back to the old behavior,
55762         leaving whitespace alone.  Use one 'sed' command rather than a
55763         pipeline.
55764         (fixlicense): Now a variable, not a function.
55765         (remove_trailing_blanks): Remove.
55766         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
55767         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55768         Undo previous (whitespace-only) change.
55769
55770 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55771
55772         Merge from coreutils.
55773         * modules/euidaccess: Add lib_SOURCES, include for new
55774         file euidaccess.h
55775
55776 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55777
55778         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
55779         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
55780         Normalize leading white space and remove trailing white space.
55781
55782         Merge from coreutils
55783         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
55784
55785         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
55786         0.12.1.  These files are now being upgraded automatically by
55787         ../config/srclist-update.
55788
55789 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55790
55791         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
55792         Normalize leading white space and remove trailing white space.
55793         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
55794         notice, as per ../config/srclist-update.
55795
55796         Merge from coreutils.
55797         * lib/euidaccess.h: New file.
55798         * lib/euidaccess.c: Include it.
55799         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
55800         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
55801         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
55802
55803 2003-08-12  Paul Eggert  <eggert@twinsun.com>
55804
55805         * config/srclist-update: Add copyright notice.
55806         (remove_id_lines, remove_trailing_blanks): New constants.
55807         (fixfile): Use them to normalize spacing a bit in copied files.
55808         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
55809         Normalize leading white space and remove trailing white space.
55810
55811         * config/texinfo.tex: Sync with texinfo.
55812
55813         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
55814         strtoul.c from libc, to merge coreutils whitespace changes.
55815
55816         * config/srclist.txt: Get the following m4 files from gettext:
55817         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
55818         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
55819         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
55820         wint_t.m4.
55821
55822 2003-08-12  Karl Berry  <karl@gnu.org>
55823
55824         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
55825         been made.
55826
55827 2003-08-11  Paul Eggert  <eggert@twinsun.com>
55828
55829         * modules/gnu-source, m4/gnu-source.m4:
55830         Remove; we're assuming Autoconf 2.54 or later now.
55831         Suggested by Bruno Haible.
55832         * MODULES.html.sh (func_all_modules): Remove gnu-source.
55833
55834 2003-08-11  Bruno Haible  <bruno@clisp.org>
55835
55836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
55837
55838 2003-08-11  Bruno Haible  <bruno@clisp.org>
55839
55840         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
55841         (vasnprintf): Use it instead of wcslen.
55842
55843 2003-08-11  Bruno Haible  <bruno@clisp.org>
55844
55845         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
55846         value to ensure that _Bool promotes to int. Use #define for _Bool when
55847         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
55848
55849 2003-08-10  Karl Berry  <karl@gnu.org>
55850
55851         * lib/regex.h: update from libc (whitespace fix).
55852
55853 2003-08-09  Paul Eggert  <eggert@twinsun.com>
55854
55855         Merge some files from coreutils.  These changes were
55856         originally made by Jim Meyering.
55857         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
55858         many older Unixes require this.
55859         * lib/alloca.c (alloca): Remove cast to argument of free;
55860         no longer needed in C89.
55861         * lib/alloca_.h, regex.h: Fix white space to match
55862         what GNU indent does.
55863
55864 2003-08-09  Paul Eggert  <eggert@twinsun.com>
55865
55866         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
55867         apparently Emacs's Unicode mode got confused before my 2003-08-05
55868         checkin.
55869
55870 2003-08-08  Paul Eggert  <eggert@twinsun.com>
55871
55872         * m4/extensions.m4: New file.
55873         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
55874         Require gl_USE_SYSTEM_EXTENSIONS.
55875         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
55876         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
55877
55878 2003-08-08  Paul Eggert  <eggert@twinsun.com>
55879
55880         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
55881         * modules/extensions, modules/gnu-source: New files.
55882         * modules/timespec, modules/unlocked-io: Depend on extensions.
55883
55884 2003-08-07  Paul Eggert  <eggert@twinsun.com>
55885
55886         * modules/restrict: New file.
55887         * MODULES.html.sh (func_all_modules): Add restrict.
55888         * modules/regex: Depend on restrict.
55889
55890 2003-08-07  Paul Eggert  <eggert@twinsun.com>
55891
55892         * m4/restrict.m4: New file.
55893         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
55894
55895 2003-08-07  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
55898         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
55899
55900 2003-08-07  Bruno Haible  <bruno@clisp.org>
55901
55902         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
55903         makes the module 'getndelim2' compatible with the module 'getline'.
55904
55905 2003-08-05  Paul Eggert  <eggert@twinsun.com>
55906
55907         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
55908         byte with "\201" to avoid glitches when editing that source file
55909         with multi-gnome-terminal.
55910
55911 2003-08-05  Paul Eggert  <eggert@twinsun.com>
55912
55913         * lib/bumpalloc.h: Remove.
55914
55915 2003-08-05  Paul Eggert  <eggert@twinsun.com>
55916
55917         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
55918         * modules/bumpalloc: Remove.
55919
55920 2003-08-04  Paul Eggert  <eggert@twinsun.com>
55921
55922         * lib/getloadavg.c: Change copyright notice and spacing to conform to
55923         GNU coding style.
55924
55925         Merge from coreutils.
55926         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
55927         1. From glibc.
55928         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
55929         from Karl Berry, implemented by Jim Meyering.
55930         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
55931         from Dmitry V. Levin.
55932         Remove anachronistic cast of xrealloc.
55933         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
55934         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
55935         type. Otherwise, it wouldn't compile with at least /bin/cc on
55936         ymp-cray-unicos9.0.2.X.
55937         Combine two mostly-identical uses of alloca into one.
55938         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
55939
55940 2003-08-04  Dave Love  <d.love@dl.ac.uk>
55941
55942         [From Emacs.]
55943
55944         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
55945         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
55946         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
55947         obsolete NLIST_NAME_UNION.
55948         [__GNU__]: Undef BSD and FSCALE.
55949         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
55950
55951 2003-08-03  Paul Eggert  <eggert@twinsun.com>
55952
55953         * lib/stdbool_.h (_Bool): Make it signed char, instead of
55954         an enum type, so that it's guaranteed to promote to int.  See:
55955         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
55956
55957 2003-08-03  Karl Berry  <karl@gnu.org>
55958
55959         * config/depcomp: update from automake.
55960
55961 2003-07-31  Paul Eggert  <eggert@twinsun.com>
55962
55963         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
55964         (strerror): Don't assume that a printable int fits in 14 bytes.
55965
55966 2003-07-31  Bruno Haible  <bruno@clisp.org>
55967
55968         * modules/getpass-gnu: New file.
55969         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
55970
55971 2003-07-31  Bruno Haible  <bruno@clisp.org>
55972
55973         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
55974
55975 2003-07-24  Karl Berry  <karl@gnu.org>
55976
55977         * config/missing: update from automake.
55978
55979 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
55980             Bruno Haible  <bruno@clisp.org>
55981
55982         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
55983         * lib/getline.c (getline, getdelim): Likewise.
55984         Remove _GNU_SOURCE define; now it's defined in config.h through
55985         m4/getline.m4.
55986
55987 2003-07-23  Karl Berry  <karl@gnu.org>
55988
55989         * config/config.sub: update from prep.
55990
55991 2003-07-22  Paul Eggert  <eggert@twinsun.com>
55992
55993         * modules/xalloc (Depends-on): Add exitfail.
55994         * modules/xmemcoll: Likewise.
55995
55996 2003-07-22  Paul Eggert  <eggert@twinsun.com>
55997
55998         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
55999         over-parenthesization in macros.
56000
56001         Sync with coreutils.
56002
56003         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56004         required by C99.
56005
56006         Use `exit_failure' for xalloc and xmemcoll instead of their own
56007         private exit-failure variables.
56008         * lib/xalloc.h (xalloc_exit_failure): Remove.
56009         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56010         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56011         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56012         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56013         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56014
56015 2003-07-20  Jim Meyering  <jim@meyering.net>
56016
56017         * modules/closeout (Depends-on): Add exitfail.
56018         Suggestion from Bruno Haible.
56019
56020 2003-07-19  Karl Berry  <karl@gnu.org>
56021
56022         * config/config.sub: update from prep.
56023
56024 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56025
56026         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56027         Remove.
56028         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56029         to test that it can stand by itself.  Include "exitfail.h".
56030         Clients should set exit_failure instead.
56031         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56032
56033 2003-07-18  Bruno Haible  <bruno@clisp.org>
56034
56035         * modules/getndelim2: New file.
56036         * modules/getline: Share files with module getndelim2.
56037         * modules/getnline: Depend on getndelim2 instead of sharing files with
56038         it. Add getnline.c to lib_SOURCES.
56039         * MODULES.html.sh (func_all_modules): Add getndelim2.
56040
56041 2003-07-18  Bruno Haible  <bruno@clisp.org>
56042
56043         * m4/getndelim2.m4: New file.
56044         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56045         invoke gl_PREREQ_GETNDELIM2.
56046         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56047         gl_PREREQ_GETNDELIM2.
56048         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56049         gl_GETNDELIM2.
56050
56051 2003-07-18  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/getndelim2.h: New file.
56054         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56055         getndelim2.h.
56056         (getndelim2): Make non-static. Change return type to ssize_t.
56057         * lib/getline.h: Change argument names.
56058         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56059         * lib/getnline.c: Include getndelim2.h.
56060
56061 2003-07-18  Andreas Schwab  <schwab@suse.de>
56062
56063         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56064
56065 2003-07-17  Karl Berry  <karl@gnu.org>
56066
56067         * config/config.sub: update from prep.
56068
56069 2003-07-17  Bruno Haible  <bruno@clisp.org>
56070
56071         * modules/getnline: New file.
56072         * modules/getline: Add lib/getndelim2.c to source file list.
56073         * MODULES.html.sh (func_all_modules): Add getnline.
56074
56075 2003-07-17  Bruno Haible  <bruno@clisp.org>
56076
56077         * m4/getnline.m4: New file.
56078
56079 2003-07-17  Bruno Haible  <bruno@clisp.org>
56080
56081         * m4/Makefile.am.in: Remove file.
56082         * m4/Makefile.am: Remove file.
56083         * m4/Makefile.in: Remove file.
56084
56085 2003-07-17  Bruno Haible  <bruno@clisp.org>
56086
56087         * lib/getnline.h: New file.
56088         * lib/getnline.c: New file.
56089         * lib/getndelim2.c: New file, extracted from getline.c.
56090         (getndelim2): Renamed from getdelim2, with added nmax argument.
56091         * lib/getline.c: Include getndelim2.c.
56092         (getdelim2): Moved out to getndelim2.c.
56093         (getline, getdelim): Update.
56094
56095 2003-07-17  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/Makefile.am: Remove file.
56098         * lib/Makefile.in: Remove file.
56099
56100 2003-07-17  Bruno Haible  <bruno@clisp.org>
56101
56102         * configure.in: Remove file.
56103         * Makefile.in: Remove file.
56104
56105 2003-07-17  Bruno Haible  <bruno@clisp.org>
56106
56107         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56108
56109 2003-07-16  Karl Berry  <karl@gnu.org>
56110
56111         * config/srclist-update: was running fixlicense twice, which caused
56112                 texinfo.tex to be nullified for some reason.  Simplify,
56113                 $gplsrc is no longer needed as far as I can see?
56114
56115 2003-07-16  Jim Meyering  <jim@meyering.net>
56116
56117         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56118
56119 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56120
56121         * config/srclist.txt: Get the following files from gettext-runtime/intl
56122         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56123         ref-del.sin.  From Bruno Haible.
56124         * config/srclist-update (fixfile): Change grep pattern again, since the
56125         previous fix didn't work (there was another trailing $).  Use
56126         '[$]' to escape the $s.
56127
56128 2003-07-15  Karl Berry  <karl@gnu.org>
56129
56130         * lib/vasnprintf.c: update from gettext.
56131
56132 2003-07-15  Karl Berry  <karl@gnu.org>
56133
56134         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56135         gets expanded when surrounded by '$'.
56136
56137 2003-07-15  Jim Meyering  <jim@meyering.net>
56138
56139         * modules/save-cwd: Don't depend on error.  From Derek Price.
56140
56141 2003-07-15  Jim Meyering  <jim@meyering.net>
56142
56143         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56144
56145 2003-07-14  Simon Josefsson  <jas@extundo.com>
56146
56147         * modules/mempcpy: New file.
56148         * MODULES.html.sh (func_all_modules): Add mempcpy.
56149
56150 2003-07-14  Simon Josefsson  <jas@extundo.com>
56151
56152         * m4/mempcpy.m4: New file.
56153
56154 2003-07-14  Simon Josefsson  <jas@extundo.com>
56155
56156         * lib/mempcpy.h: New file.
56157         * lib/mempcpy.c: New file.
56158
56159 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56160
56161         * modules/getdate, modules/posixtm: Depend on mktime.
56162
56163 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56164
56165         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56166         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56167         unicodeio.c, unicodeio.h, unlocked-io.h:
56168         Switch from LGPL to GPL.
56169
56170 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56171
56172         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56173         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56174         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56175         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56176         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56177         updated automatically by ../config/srclist-update.  This changes
56178         their license from LPGL to GPL.
56179
56180 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56181
56182         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56183         assumed to refer to the root of the most recent stable gettext version.
56184         * config/srclistvars.sh: Add defaults for eggert.
56185         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56186         Match "This program" as well as "The program".  This is needed
56187         for gettext.
56188
56189 2003-07-14  Jim Meyering  <jim@meyering.net>
56190
56191         Don't emit diagnostics.  Let callers do that.
56192         * lib/save-cwd.c: Don't include "error.h".
56193         (save_cwd): Don't call error.  Ensure that errno is valid
56194         when returning nonzero.
56195
56196         * lib/save-cwd.h (restore_cwd): Update prototype.
56197         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56198         Simplify.  Don't call error upon failure.  Let callers do that.
56199         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56200         when auditing is enabled.  But don't bother updating the #if.
56201
56202 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56203
56204         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56205         it breaks C++ compilation.
56206         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56207
56208 2003-07-10  Simon Josefsson  <jas@extundo.com>
56209
56210         * modules/strchrnul (Makefile.am): Add strchrnul.h.
56211
56212 2003-07-10  Jim Meyering  <jim@meyering.net>
56213
56214         * m4/clock_time.m4: Remove trailing blank.
56215         * m4/intmax_t.m4: Likewise.
56216
56217 2003-07-10  Jim Meyering  <jim@meyering.net>
56218
56219         * lib/vasnprintf.c: Remove trailing blanks.
56220         Make cpp indentation consistent.
56221
56222 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56223
56224         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56225         posixver.c, strftime.c, strnlen.c, strverscmp.c:
56226         Switch from LGPL to GPL.
56227
56228 2003-07-09  Paul Eggert  <eggert@twinsun.com>
56229
56230         * config/srclist.txt: Sort sublists.  Add
56231         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56232         that differ from gnulib for one reason or another; we'd like this list
56233         to be smaller but for now let's document what we have.
56234
56235 2003-07-08  Paul Eggert  <eggert@twinsun.com>
56236
56237         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56238         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
56239         and sweeter "eval x=$x".
56240         * config/srclist.txt: Get lib/argp* from glibc.
56241
56242 2003-07-07  Paul Eggert  <eggert@twinsun.com>
56243
56244         * lib/mktime.c: Fix some boundary cases and remove need for floating
56245         point.
56246
56247         Issue a compile-time diagnostic if time_t is floating point, or if
56248         two's complement arithmetic is not in effect, or if arithmetic
56249         right shift does not propagate the sign.  These assumptions were
56250         all in the original code but they weren't checked.
56251
56252         (TIME_T_MIDPOINT, verify): New macros.
56253         (__isleap): Remove; it has integer overflow problems.
56254         (leapyear): New function, without those problems.
56255         (ydhms_tm_diff): Remove; splitting into two parts.
56256         (ydhms_diff): New function, containing the arithmetic part of
56257         the old ydhms_tm_diff function.  Issue a compile-time
56258         diagnostic if we are not using C99 integer division.
56259         Avoid casts when possible.
56260         (guess_time_tm): New function, containing the checking part of
56261         the old ydhms_tm_diff function.  Return the new value, rather than
56262         the difference between it and the old.  Accept a new argument T
56263         so that *T specifies the old value.  Check for overflow in the result.
56264
56265         (__mktime_internal): Use a time_t offset, not a long int offset.
56266         This undoes the 2003-06-04 change, which is no longer needed now
56267         that we have better overflow checking.
56268         (localtime_offset): Likewise.
56269
56270         (__mktime_internal): Avoid harmful overflow on hosts where time_t
56271         and long are 64-bit but int is only 32-bit.
56272         (ydhms_diff): Use long int to store year1 and yday1.
56273         Issue a compile-time diagnostic if long int is not wide enough.
56274
56275         (__mktime_internal): Use long int to store adjusted year and yday.
56276         Use plain C rather than preprocessor commands, if that doesn't
56277         affect efficiency.
56278         Check for overflow (and try to repair) after each probe
56279         rather than checking only at the very end.  This avoids some bugs
56280         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56281         does not equal GMT offset at maximum time).
56282         Use integer to check for overflow rather than floating point; this
56283         is more portable to non-IEEE hosts, and is a tad faster.
56284         When we detect that we are oscillating between two values,
56285         don't check whether tm_isdst has the requested value, since
56286         we already know the answer.  When tm_isdst has the wrong value,
56287         use a different heuristic to find the right one, based on the
56288         extreme values actually observed in practice in tz2003a,
56289         rather than the (overly optimistic) "previous 3 calendar quarters".
56290
56291         (not_equal_tm, print_tm, check_result): Use "const T" rather than
56292         "T const" to accommodate glibc style.
56293         (check_result): Use less-confusing report format.  "long" -> "long int.
56294         (main): Likewise.
56295         Don't loop if the iteration overflows time_t.
56296         Allow a negative step in the iteration.
56297
56298 2003-07-06  Karl Berry  <karl@gnu.org>
56299
56300         * config/depcomp: update from automake.
56301         * config/config.sub: update from prep.
56302
56303 2003-07-03  Karl Berry  <karl@gnu.org>
56304
56305         * config/config.guess: update from prep.
56306
56307 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56308
56309         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56310         xreadlink.c now includes it unconditionally.
56311
56312 2003-07-01  Paul Eggert  <eggert@twinsun.com>
56313
56314         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56315         having it depend on HAVE_SYS_TYPES_H.
56316
56317 2003-07-01  Bruno Haible  <bruno@clisp.org>
56318
56319         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56320         <sys/types.h> should be sufficient.
56321         Reported by Paul Eggert.
56322
56323 2003-06-26  Karl Berry  <karl@gnu.org>
56324
56325         * config/depcomp: update from automake.
56326
56327 2003-06-26  Bruno Haible  <bruno@clisp.org>
56328
56329         * modules/human: Depend on module stdbool.
56330
56331 2003-06-25  Bruno Haible  <bruno@clisp.org>
56332
56333         * modules/readlink: New file.
56334         * modules/xreadlink: Depend on it.
56335         * MODULES.html.sh (func_all_modules): Add readlink.
56336
56337 2003-06-25  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/readlink.m4: New file.
56340
56341 2003-06-25  Bruno Haible  <bruno@clisp.org>
56342
56343         * lib/readlink.c: New file.
56344
56345 2003-06-22  Karl Berry  <karl@gnu.org>
56346
56347         * config/srclist.txt: update mkinstalldirs from automake.
56348         * config/mkinstalldirs: update.
56349
56350 2003-06-22  Bruno Haible  <bruno@clisp.org>
56351
56352         Portability to mingw32.
56353         * m4/ssize_t.m4: New file, from GNU gettext.
56354         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56355         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56356
56357 2003-06-22  Bruno Haible  <bruno@clisp.org>
56358
56359         * modules/safe-read: Add m4/ssize_t.m4.
56360         * modules/xreadlink: Add m4/ssize_t.m4.
56361
56362 2003-06-20  Bruno Haible  <bruno@clisp.org>
56363
56364         Assume C89, so PARAMS isn't needed.
56365         * lib/unicodeio.h (PARAMS): Remove.
56366         * lib/unicodeio.c: Don't use PARAMS.
56367
56368 2003-06-18  Karl Berry  <karl@gnu.org>
56369
56370         * config/config.{guess,sub}: update from prep.
56371
56372 2003-06-18  Jim Meyering  <jim@meyering.net>
56373
56374         Merge changes from coreutils.
56375         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56376         Remove explicit declarations of xmalloc and realloc.
56377         Include xalloc.h.
56378         (read_utmp): Remove anachronistic cast of xmalloc.
56379
56380 2003-06-17  Paul Eggert  <eggert@twinsun.com>
56381
56382         Assume C89, so PARAMS isn't needed.
56383         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
56384         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56385         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56386         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56387         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56388         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56389         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56390         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56391         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56392         lib/xstrtod.h, lib/xstrtol.h: Likewise.
56393         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56394         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56395         no longer needed. Anyway, config.h should always be included before any
56396         other file.
56397
56398 2003-06-11  Simon Josefsson  <jas@extundo.com>
56399
56400         * modules/sysexits: New file.
56401         * MODULES.html.sh (func_all_modules): Add sysexits.
56402
56403 2003-06-11  Simon Josefsson  <jas@extundo.com>
56404
56405         * lib/sysexit_.h: New file.
56406
56407 2003-06-11  Derek Price  <derek@ximbiot.com>
56408
56409         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56410         necessary.
56411
56412 2003-06-11  Bruno Haible  <bruno@clisp.org>
56413
56414         * m4/sysexits.m4: New file.
56415
56416 2003-06-10  Simon Josefsson  <jas@extundo.com>
56417
56418         * lib/argp.h: New file, from glibc.
56419         * lib/argp-ba.c: New file, from glibc.
56420         * lib/argp-eexst.c: New file, from glibc.
56421         * lib/argp-fmtstream.c: New file, from glibc.
56422         * lib/argp-fmtstream.h: New file, from glibc.
56423         * lib/argp-fs-xinl.c: New file, from glibc.
56424         * lib/argp-help.c: New file, from glibc.
56425         * lib/argp-namefrob.h: New file, from glibc.
56426         * lib/argp-parse.c: New file, from glibc.
56427         * lib/argp-pv.c: New file, from glibc.
56428         * lib/argp-pvh.c: New file, from glibc.
56429         * lib/argp-xinl.c: New file, from glibc.
56430
56431 2003-06-10  Simon Josefsson  <jas@extundo.com>
56432
56433         * modules/strchrnul: New file.
56434
56435 2003-06-10  Simon Josefsson  <jas@extundo.com>
56436
56437         * modules/argp: New file.
56438
56439 2003-06-10  Simon Josefsson  <jas@extundo.com>
56440
56441         * m4/strchrnul.m4: New file.
56442
56443 2003-06-10  Simon Josefsson  <jas@extundo.com>
56444
56445         * lib/strchrnul.h: New file.
56446         * lib/strchrnul.c: New file.
56447
56448 2003-06-10  Bruno Haible  <bruno@clisp.org>
56449
56450         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56451
56452 2003-06-07  Karl Berry  <karl@gnu.org>
56453
56454         * config/config.{guess,sub}: update from prep.
56455
56456 2003-06-07  Jim Meyering  <jim@meyering.net>
56457
56458         * modules/strtod: Use $(...) notation, not @...@ for
56459         AC_REPLACE'd variables.
56460         * modules/localcharset: Likewise.
56461
56462 2003-06-07  Jim Meyering  <jim@meyering.net>
56463
56464         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56465         in place of my name in the copyright comment.
56466         Remove definition and uses of __P.
56467
56468         From coreutils.
56469         * lib/stat.c: Don't declare xmalloc explicitly.
56470         Instead, include "xalloc.h".
56471         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56472         xrealloc, and xcalloc return values.
56473         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56474         Improve comment.
56475         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56476
56477 2003-06-07  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56480         avoid AC_CONFIG_LINKS.
56481         * modules/fnmatch (Makefile.am): Use explicit creation rule for
56482         fnmatch.h, to avoid AC_CONFIG_LINKS.
56483         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56484
56485 2003-06-07  Bruno Haible  <bruno@clisp.org>
56486
56487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56488         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56489         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56490         directory.
56491         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56492         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56493         directory.
56494
56495 2003-06-06  Jim Meyering  <jim@meyering.net>
56496
56497         Merge from coreutils.
56498         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56499         Consolidate declarations and initializations of *_base* locals.
56500
56501         Merge from coreutils.
56502         This avoids a core dump on systems without GNU putenv,
56503         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56504         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56505         (unsetenv): New static function, from GNU libc.
56506         (rpl_putenv): Use it.
56507
56508         * lib/modechange.c: Remove trailing blanks.
56509
56510         Merge from coreutils.
56511         * lib/fsusage.c: Remove declaration of statfs.
56512         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56513
56514         * lib/posixtm.c: Include <stdbool.h> unconditionally.
56515
56516 2003-06-06  Jim Meyering  <jim@meyering.net>
56517
56518         * lib/stdbool_.h: Renamed from stdbool.h.in.
56519
56520 2003-06-06  Jim Meyering  <jim@meyering.net>
56521             Bruno Haible  <bruno@clisp.org>
56522
56523         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
56524         Adjust Makefile.am snippet not to redirect directly to target.
56525         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
56526
56527 2003-06-05  Paul Eggert  <eggert@twinsun.com>
56528
56529         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
56530         mismatch, look in future quarters as well as past.  This fixes a
56531         bug when processing fall-backwards gaps immediately after a long
56532         period of daylight-saving time.
56533
56534         * lib/mktime.c: Assume freestanding C89 or better.
56535         (HAVE_LIMITS_H): Remove.  Assume it's 1.
56536         (__P): Remove; not used.
56537         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
56538         (mktime, not_equal_tm, print_tm, check_result,
56539         main): Use prototypes.  Use const * where appropriate.
56540         (main): Fix typo in testing code that uncovered by above changes.
56541         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
56542
56543 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56544
56545         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
56546         locale.h, localeconv.  This merges changes from coreutils.
56547
56548         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
56549         It can be removed after the next Autoconf is released.
56550         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
56551         needed.
56552
56553 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56554
56555         * lib/mktime.c: Fix Debian bug 177940
56556         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
56557         (localtime_offset): Now long int, not time_t, because we want it
56558         to be guaranteed to be signed.  All uses changed.
56559         (__mktime_internal): If overflow would occur when adding offset,
56560         don't add it.
56561
56562         Merge 'human' changes from coreutils.  Rewrite to support
56563         locale-specific notations like thousands separators.
56564         * lib/human.c: Simplify authorship notice.
56565         Include human.h immediately after config.h.
56566         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
56567         <limits.h>: Do not include, since human.h does.
56568         (SIZE_MAX, UINTMAX_MAX): New macros.
56569         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
56570         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
56571         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
56572         (power_letter): Renamed from suffixes.
56573         (generate_suffix_backwards): Remove.
56574         (adjust_value): Now takes int style (because of human.h changes)
56575         and long double value (for greater precision on some platforms).
56576         (group_number): New function.
56577         (human_readable): Use it.  Use integer options, not enum.
56578         Put the options before the sizes in the arg list.
56579         Support all the new options.
56580         The old human_readable function has been removed;
56581         use inttostr.h instead.
56582         (human_readable, default_block_size, humblock):
56583         Use uintmax_t, not int, for block sizes.
56584         (human_readable_inexact, block_size_types): Remove.
56585         (block_size_opts): New constant.
56586         (human_options): Renamed from human_block_size, with new signature
56587         that allows block sizes up to UINTMAX_MAX.  All callers changed.
56588         * lib/human.h: Add copyright and authorship notice.
56589         Include <limits.h> and <stdbool.h> unconditionally.
56590         (PARAMS): Remove.  All uses removed.
56591         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
56592         (enum human_inexact_style): Remove tag; now a nameless enum.
56593         (human_floor, human_ceiling, human_round_to_even): Now have
56594         values 2, 0, 1 rather than -1, 1, 0.
56595         (human_group_digits, human_suppress_point_zero, human_autoscale,
56596         human_base_1024, human_SI, human_B): New constants.
56597         (human_readable_inexact, human_block_size): Remove.
56598         (human_readable): Size args are now uintmax_t, not int.
56599         (human_options): New decl.
56600
56601         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
56602         unnecessary now that we assume C89 or better.  This change
56603         imported from coreutils.
56604
56605         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56606         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
56607         in the 2003-05-30 sync from glibc.
56608
56609         .h files should stand alone, but we shouldn't include <sys/types.h>
56610         if we can get away with just <stddef.h>.
56611
56612         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
56613         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
56614         rather than <sys/types.h>, as we merely need size_t.
56615         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
56616         to get size_t.
56617         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
56618         Include <stdio.h>, to get FILE.
56619         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
56620         memcasecmp.h has included <stddef.h> and all we need is size_t.
56621         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
56622         our interface, instead of including <sys/types.h>
56623
56624 2003-06-04  Paul Eggert  <eggert@twinsun.com>
56625
56626         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
56627         now, as glibc mktime is buggy on non-glibc systems.
56628
56629 2003-06-03  Karl Berry  <karl@gnu.org>
56630
56631         * config/config.sub: update from prep.
56632
56633 2003-06-02  Paul Eggert  <eggert@twinsun.com>
56634
56635         [from coreutils]
56636         Fix some minor time-related bugs with POSIX time arguments.
56637         Some valid time stamps were being rejected (notably -1, and
56638         time stamps before 1900 on 64-bit hosts).  And some invalid
56639         time stamps were being accepted, e.g. September 31.
56640
56641         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
56642         that we can return (time_t) -1 successfully.
56643         * lib/posixtm.c: Likewise.
56644         [HAVE_STDBOOL_H]: Include <stdbool.h>.
56645         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
56646         (t): Remove static var.
56647         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
56648         of static var.  All uses changed.
56649         (year): Do not reject years before 1900; they can occur with
56650         64-bit time_t.
56651         (posix_time_parse): Do not check for out-of-range components;
56652         that is now the caller's responsibility, since our checks were
56653         only approximations.
56654         (posixtime): Use mktime to check for out-of-range components,
56655         since it knows them exactly.
56656         If mktime returns (time_t) -1, check whether an error actually occurred
56657         by invoking localtime on -1.
56658         (main) [TEST_POSIXTIME]: Check for input data errors, and report
56659         posixtime failures better.
56660         Improve the test data (in comments only).
56661
56662 2003-06-02  Karl Berry  <karl@gnu.org>
56663
56664         * config/mkinstalldirs (version): new variable.
56665         (--version): new option.
56666         (usage): improve message.
56667
56668 2003-05-30  Karl Berry  <karl@gnu.org>
56669
56670         * lib/mktime.c: update from libc.
56671
56672 2003-05-30  Bruno Haible  <bruno@clisp.org>
56673
56674         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
56675         * config/config.rpath: Upgrade to gettext-0.12.1.
56676
56677 2003-05-30  Bruno Haible  <bruno@clisp.org>
56678
56679         * m4/gettext.m4: Upgrade to gettext-0.12.1.
56680         * m4/nls.m4: New file, from gettext-0.12.1.
56681         * m4/po.m4: New file, from gettext-0.12.1.
56682         * m4/progtest.m4: Upgrade to gettext-0.12.1.
56683
56684 2003-05-30  Bruno Haible  <bruno@clisp.org>
56685
56686         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
56687         * lib/localcharset.h: Likewise.
56688         * lib/localcharset.c: Likewise.
56689
56690 2003-05-29  Karl Berry  <karl@gnu.org>
56691
56692         * config/config.rpath: update from gettext.
56693
56694 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56695
56696         Assume the headers required for C89 freestanding compilers.
56697         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
56698         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
56699         * m4/human.m4 (gl_HUMAN): Likewise.
56700         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
56701         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
56702         * m4/userspec.m4 (gl_USERSPEC): Likewise.
56703         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
56704         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
56705         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
56706
56707 2003-05-28  Paul Eggert  <eggert@twinsun.com>
56708
56709         Assume the headers required for C89 freestanding compilers.
56710         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
56711         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
56712         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
56713         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
56714         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
56715         define, since <limits.h> is guaranteed to do that.
56716         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
56717         * lib/exclude.c: Include <stdbool.h> unconditionally.
56718         * lib/tempname.c: Include <stddef.h> unconditionally.
56719         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
56720         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
56721         <stddef.h> does that.
56722         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
56723         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
56724         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
56725         needed.
56726         * lib/xstrtol.c: Likewise.
56727         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
56728         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
56729
56730         * lib/addext.c (addext): Use assignment rather than cast, to avoid
56731         warnings on some platforms.
56732
56733         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
56734         arbitrarily.
56735
56736 2003-05-26  Jim Meyering  <jim@meyering.net>
56737
56738         Merge in a change from coreutils:
56739         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
56740         that is guaranteed to be `no'.  Use `no_such_member' to indicate
56741         that condition, rather than `-1' which is slightly misleading.
56742         Change the name of the cache variable to have the gl_ prefix.
56743         Prompted by a patch from Richard Dawe for DJGPP.
56744
56745 2003-05-24  Karl Berry  <karl@gnu.org>
56746
56747         * config/config.guess: update from prep.
56748
56749 2003-05-22  Karl Berry  <karl@gnu.org>
56750
56751         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
56752
56753 2003-05-20  Karl Berry  <karl@gnu.org>
56754
56755         * config/config.guess: update from prep.
56756
56757 2003-05-18  Karl Berry  <karl@gnu.org>
56758
56759         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
56760         might actually be set by the user.
56761
56762         * config/depcomp, install-sh, mdate-sh: update from automake.
56763
56764 2003-05-17  Bruno Haible  <bruno@clisp.org>
56765
56766         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
56767         invalid expansion for AC_EGREP_CPP.
56768         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
56769         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56770         Suggested by Akim Demaille <akim@epita.fr> in
56771         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
56772
56773 2003-05-12  Jim Meyering  <jim@meyering.net>
56774
56775         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
56776         the space-padded-by-default conversion specifiers, %e, %k, %l.
56777
56778 2003-05-12  Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
56781         the string is longer than 4 KB.
56782
56783 2003-05-11  Karl Berry  <karl@gnu.org>
56784
56785         * config/config.{guess,sub}: update from prep.
56786
56787 2003-05-09  Bruno Haible  <bruno@clisp.org>
56788
56789         * modules/error: Add m4/strerror_r.m4 to file list.
56790
56791 2003-05-03  Bruno Haible  <bruno@clisp.org>
56792
56793         Upgrade to Unicode-4.0.
56794         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
56795         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
56796         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
56797         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
56798         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
56799         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
56800         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
56801         Change width of U+E0100..U+E01EF from 1 to 0.
56802
56803 2003-04-25  Jim Meyering  <jim@meyering.net>
56804
56805         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
56806         of type size_t, not int.
56807
56808 2003-04-25  Bruno Haible  <bruno@clisp.org>
56809
56810         * lib/copy-file.c: Include <stddef.h>, for size_t.
56811
56812 2003-04-21  Paul Eggert  <eggert@twinsun.com>
56813
56814         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
56815         code which expansion is under static control.  Patch imported from
56816         Akim Demaille's patch to Bison; see
56817         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
56818
56819 2003-04-14  Bruno Haible  <bruno@clisp.org>
56820
56821         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
56822
56823 2003-04-11  Jim Meyering  <jim@meyering.net>
56824
56825         Merge changes from Coreutils.
56826
56827         2003-03-22  Jim Meyering  <jim@meyering.net>
56828
56829         * lib/strftime.c (widen): Cast alloca return value to proper type.
56830
56831         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
56832
56833         From GNU libc.
56834         * lib/strftime.c (my_strftime): Handle very large width
56835         specifications for numeric values correctly.  Improve checks for
56836         overflow.
56837
56838         2003-01-19  Jim Meyering  <jim@meyering.net>
56839
56840         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
56841         definitions.
56842         (nl_get_alt_digit) [! defined my_strftime]: Define.
56843         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
56844         _nl_get_alt_digit and _nl_get_walt_digit.
56845
56846         * lib/strftime.c (my_strftime): Merge in locale-related changes from
56847         libc. These changes have no effect outside of _LIBC.
56848
56849 2003-04-10  Bruno Haible  <bruno@clisp.org>
56850
56851         * modules/findprog: New file.
56852         * MODULES.html.sh (func_all_modules): Add it.
56853
56854 2003-04-10  Bruno Haible  <bruno@clisp.org>
56855
56856         * m4/findprog.m4: New file.
56857         * m4/eaccess.m4: New file.
56858
56859 2003-04-10  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/findprog.h: New file, from GNU gettext.
56862         * lib/findprog.c: New file, from GNU gettext.
56863
56864 2003-04-05  Jim Meyering  <jim@meyering.net>
56865
56866         Merge changes from Coreutils.
56867
56868         * lib/exclude.h (PARAMS): Remove definition and uses.
56869         * lib/exclude.c: Remove uses of `PARAMS'.
56870
56871         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
56872         Add test-cases for DOS filenames. Declare program_name.
56873         (main): Set up program_name.  Patch by Rich Dawe.
56874
56875         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56876         error from mntctl.
56877         Use mntctl's return value to drive the entry-processing loop, since
56878         we can't rely on the value of the vmt_length member in the last
56879         entry.  On some systems doing so could result in exhausting
56880         virtual memory.  Based in part on a patch from Mike Jetzer.
56881
56882 2003-04-04  Bruno Haible  <bruno@clisp.org>
56883
56884         * modules/linebreak: New file.
56885         * MODULES.html.sh (func_all_modules): Add it.
56886
56887 2003-04-04  Bruno Haible  <bruno@clisp.org>
56888
56889         * m4/linebreak.m4: New file.
56890
56891 2003-04-04  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/linebreak.h: New file, from GNU gettext.
56894         * lib/linebreak.c: New file, from GNU gettext with slight
56895         modifications.
56896         * lib/lbrkprop.h: New file, from GNU gettext.
56897
56898 2003-04-03  Bruno Haible  <bruno@clisp.org>
56899
56900         * modules/utf8-ucs4: New file.
56901         * modules/utf16-ucs4: New file.
56902         * modules/ucs4-utf8: New file.
56903         * modules/ucs4-utf16: New file.
56904         * MODULES.html.sh (func_all_modules): Add them.
56905
56906 2003-04-03  Bruno Haible  <bruno@clisp.org>
56907
56908         * m4/utf-ucs4.m4: New file.
56909         * m4/ucs4-utf.m4: New file.
56910
56911 2003-04-03  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/utf8-ucs4.h: New file, from GNU gettext.
56914         * lib/utf16-ucs4.h: New file, from GNU gettext.
56915         * lib/ucs4-utf8.h: New file, from GNU gettext.
56916         * lib/ucs4-utf16.h: New file, from GNU gettext.
56917
56918 2003-04-02  Bruno Haible  <bruno@clisp.org>
56919
56920         * modules/binary-io: New file.
56921         * MODULES.html.sh (func_all_modules): Add it.
56922
56923 2003-04-02  Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/binary-io.h: New file, from GNU gettext.
56926
56927 2003-04-01  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/pathname: New file.
56930         * MODULES.html.sh (func_all_modules): Add it.
56931
56932 2003-04-01  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/pathname.h: New file, from GNU gettext.
56935         * lib/concatpath.c: New file, from GNU gettext.
56936
56937 2003-03-30  Bruno Haible  <bruno@clisp.org>
56938
56939         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
56940
56941 2003-03-30  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
56944         function chown() doesn't exist.
56945
56946 2003-03-28  Bruno Haible  <bruno@clisp.org>
56947
56948         * modules/copy-file: New file.
56949         * MODULES.html.sh (func_all_modules): Add it.
56950
56951 2003-03-28  Bruno Haible  <bruno@clisp.org>
56952
56953         * m4/copy-file.m4: New file.
56954
56955 2003-03-28  Bruno Haible  <bruno@clisp.org>
56956
56957         * lib/copy-file.h: New file, from GNU gettext.
56958         * lib/copy-file.c: New file, from GNU gettext.
56959
56960 2003-03-18  Jim Meyering  <jim@meyering.net>
56961
56962         * lib/quote.c (quote_n): Fix typo in comment.
56963
56964 2003-03-18  Bruno Haible  <bruno@clisp.org>
56965
56966         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
56967         checking.
56968         * m4/onceonly_2_57.m4: Likewise.
56969
56970 2003-03-17  Bruno Haible  <bruno@clisp.org>
56971
56972         * m4/onceonly.m4: Require autoconf 2.54 or newer.
56973         (m4_quote): Remove macro.
56974         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
56975
56976 2003-03-14  Jim Meyering  <jim@meyering.net>
56977
56978         Merge changes from Coreutils.
56979         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
56980         to be const, in order to avoid warnings.
56981         (obstack_room): Likewise.
56982         (obstack_empty_p): Likewise.
56983
56984 2003-03-14  Bruno Haible  <bruno@clisp.org>
56985
56986         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
56987         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
56988
56989 2003-03-13  Paul Eggert  <eggert@twinsun.com>
56990
56991         Merge changes from Bison.
56992         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
56993         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
56994         when compiling Bison 1.875's `bitset bset = obstack_alloc
56995         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
56996         * lib/hash.c: Include <stdbool.h> unconditionally.
56997
56998 2003-03-13  Paul Eggert  <eggert@twinsun.com>
56999
57000         * m4/onceonly.m4 (m4_quote): New macro.
57001         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57002         Quote AC_FOREACH variable-expansions properly.
57003
57004 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57005
57006         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57007
57008 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57009
57010         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57011         Reported by Bruce Becker; see:
57012         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57013
57014 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57015             Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57018         Reported by John Hughes, see
57019         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57020
57021 2003-02-20  Bruno Haible  <bruno@clisp.org>
57022
57023         * MODULES.html.sh (func_all_modules): Add poll.
57024
57025 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57026
57027         * modules/poll: New file.
57028
57029 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57030
57031         * lib/poll_.h: New file.
57032         * lib/poll.c: New file.
57033
57034 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57035
57036         * m4/poll.m4: New file.
57037
57038 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57039
57040         * modules/mathl: New file.
57041
57042 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57043
57044         * lib/mathl.h: New file.
57045         * lib/acosl.c: New file.
57046         * lib/asinl.c: New file.
57047         * lib/atanl.c: New file.
57048         * lib/ceill.c: New file.
57049         * lib/cosl.c: New file.
57050         * lib/expl.c: New file.
57051         * lib/floorl.c: New file.
57052         * lib/frexpl.c: New file.
57053         * lib/ldexpl.c: New file.
57054         * lib/logl.c: New file.
57055         * lib/sincosl.c: New file.
57056         * lib/sinl.c: New file.
57057         * lib/sqrtl.c: New file.
57058         * lib/tanl.c: New file.
57059         * lib/trigl.c: New file.
57060         * lib/trigl.h: New file.
57061
57062 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57063
57064         * m4/mathl.m4: New file.
57065
57066 2003-02-18  Bruno Haible  <bruno@clisp.org>
57067
57068         * MODULES.html.sh (func_all_modules): Add mathl.
57069
57070 2003-02-17  Bruno Haible  <bruno@clisp.org>
57071
57072         * modules/mkdtemp: New module.
57073         * MODULES.html.sh (func_all_modules): Add it.
57074
57075 2003-02-17  Bruno Haible  <bruno@clisp.org>
57076
57077         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57078
57079 2003-02-17  Bruno Haible  <bruno@clisp.org>
57080
57081         * lib/mkdtemp.h: New file, from GNU gettext.
57082         * lib/mkdtemp.c: New file, from GNU gettext.
57083
57084 2003-02-02  Jim Meyering  <jim@meyering.net>
57085
57086         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57087         e.g. glibc-2.2.93.
57088
57089 2003-01-31  Bruno Haible  <bruno@clisp.org>
57090
57091         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57092         'rpl_rename'.
57093         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57094         'rpl_strnlen'.
57095         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57096         'rpl_strtod'.
57097         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57098         'rpl_utime'.
57099
57100 2003-01-31  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/rename.c: #undef rename before defining rpl_rename.
57103         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57104
57105 2003-01-30  Bruno Haible  <bruno@clisp.org>
57106
57107         * modules/vasnprintf, modules/vasprintf: New modules.
57108         * MODULES.html.sh (func_all_modules): Add them.
57109
57110 2003-01-30  Bruno Haible  <bruno@clisp.org>
57111
57112         * m4/signed.m4: New file, from GNU gettext.
57113         * m4/longdouble.m4: New file, from GNU gettext.
57114         * m4/wchar_t.m4: New file, from GNU gettext.
57115         * m4/wint_t.m4: New file, from GNU gettext.
57116         * m4/vasnprintf.m4: New file.
57117         * m4/vasprintf.m4: New file.
57118
57119 2003-01-30  Bruno Haible  <bruno@clisp.org>
57120
57121         * lib/printf-args.h: New file, from GNU gettext.
57122         * lib/printf-args.c: New file, from GNU gettext.
57123         * lib/printf-parse.h: New file, from GNU gettext.
57124         * lib/printf-parse.c: New file, from GNU gettext.
57125         * lib/vasnprintf.h: New file, from GNU gettext.
57126         * lib/vasnprintf.c: New file, from GNU gettext.
57127         * lib/asnprintf.c: New file, from GNU gettext.
57128         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57129         * lib/vasprintf.c: New file, from GNU gettext.
57130         * lib/asprintf.c: New file, from GNU gettext.
57131
57132 2003-01-29  Bruno Haible  <bruno@clisp.org>
57133
57134         * modules/stpncpy: New module.
57135         * MODULES.html.sh (func_all_modules): Add it.
57136
57137 2003-01-29  Bruno Haible  <bruno@clisp.org>
57138
57139         * m4/stpncpy.m4: New file.
57140
57141 2003-01-29  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57144         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57145
57146 2003-01-28  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/c-ctype: New module.
57149         * MODULES.html.sh (func_all_modules): Add it.
57150
57151 2003-01-28  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57154         Paul Eggert.
57155         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57156         Paul Eggert.
57157
57158 2003-01-27  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/xsetenv: New module.
57161         * MODULES.html.sh (func_all_modules): Add it.
57162
57163 2003-01-27  Bruno Haible  <bruno@clisp.org>
57164
57165         * lib/xsetenv.h: New file, from GNU gettext.
57166         * lib/xsetenv.c: New file, from GNU gettext.
57167
57168 2003-01-23  Jim Meyering  <jim@meyering.net>
57169
57170         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57171         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57172
57173 2003-01-23  Bruno Haible  <bruno@clisp.org>
57174
57175         * modules/minmax: New module.
57176         * MODULES.html.sh (func_all_modules): Add it.
57177
57178 2003-01-23  Bruno Haible  <bruno@clisp.org>
57179
57180         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57181         Eggert.
57182
57183 2003-01-22  Bruno Haible  <bruno@clisp.org>
57184
57185         * modules/exit: New module.
57186         * MODULES.html.sh (func_all_modules): Add it.
57187
57188 2003-01-22  Bruno Haible  <bruno@clisp.org>
57189
57190         * lib/exit.h: New file, from GNU gettext.
57191
57192 2003-01-19  Bruno Haible  <bruno@clisp.org>
57193
57194         * gnulib-tool: Recognize option --extract-maintainer.
57195         (func_get_maintainer): New function.
57196         * modules/*: Add Maintainer entry.
57197
57198 2003-01-16  Jim Meyering  <jim@meyering.net>
57199
57200         * m4/regex.m4: The `regex' struct is both input and output.
57201         Initialize it before each use.  Patch by Tim Waugh.
57202
57203 2003-01-16  Bruno Haible  <bruno@clisp.org>
57204
57205         * MODULES.html.sh: Add a table of contents. Add the module name as
57206         leftmost column. Add hyperlinks.
57207
57208 2003-01-15  Bruno Haible  <bruno@clisp.org>
57209
57210         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57211
57212 2003-01-15  Bruno Haible  <bruno@clisp.org>
57213
57214         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57215         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57216         suffix.
57217
57218 2003-01-15  Bruno Haible  <bruno@clisp.org>
57219
57220         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57221
57222 2003-01-15  Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57225         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57226
57227 2003-01-14  Jim Meyering  <jim@meyering.net>
57228
57229         * lib/same.c (same_name): Tweak a comment.
57230
57231 2003-01-14  Bruno Haible  <bruno@clisp.org>
57232
57233         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57234         when a string comparison is sufficient.
57235
57236 2003-01-14  Bruno Haible  <bruno@clisp.org>
57237
57238         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57239         'unsigned int'.
57240
57241 2003-01-14  Bruno Haible  <bruno@clisp.org>
57242
57243         * lib/hash-pjw.c: Add comment about low quality of this function.
57244
57245 2003-01-13  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/stpcpy: Distribute lib/stpcpy.h.
57248         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57249
57250 2003-01-13  Bruno Haible  <bruno@clisp.org>
57251
57252         * modules/*: Add a description.
57253         * modules/strpbrk: Fix Makefile.am snippet.
57254         * modules/strtoimax: Fix dependencies.
57255         * modules/strtoumax: Likewise.
57256
57257 2003-01-13  Bruno Haible  <bruno@clisp.org>
57258
57259         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57260         * modules/alloca (Makefile.am): All object files depend on alloca.h.
57261         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57262
57263 2003-01-13  Bruno Haible  <bruno@clisp.org>
57264
57265         * gnulib-tool (func_create_testdir): Store config/* files in the main
57266         directory.
57267         * config.rpath: Move to ...
57268         * config/config.rpath: ... here.
57269         * modules/gettext: Contains config/config.rpath, not config.rpath.
57270         * modules/iconv: Likewise.
57271
57272 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57273
57274         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57275         to avoid collisions with libcurses and libreadline.
57276
57277         * m4/getstr.m4: Remove.
57278         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57279
57280 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57281
57282         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57283         to avoid collisions with libcurses and libreadline.
57284
57285         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57286         * lib/getstr.h, getstr.c: Remove.
57287         * lib/getline.c: Include "getline.h", to check interface.
57288         Move body of old getstr.c here: this defines MIN_CHUNK and
57289         declares getdelim2, which is renamed from getstr.
57290         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57291
57292         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57293         All uses changed.
57294         * lib/linebuffer.h: Likewise.
57295         (readline): Remove backward-compatibility macro.
57296
57297 2003-01-12  Paul Eggert  <eggert@twinsun.com>
57298
57299         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57300         to avoid collisions with libcurses and libreadline.
57301         * getstr: Remove.
57302         * MODULES.html.sh: Remove getstr.
57303         * modules/getline: Depend on unlocked-io, not getstr.
57304
57305 2003-01-12  Jim Meyering  <jim@meyering.net>
57306
57307         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
57308
57309 2003-01-10  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/alloca: Change Makefile.am requirements. Simplify Include
57312         requirements. Add lib/alloca_.h to file list.
57313
57314 2003-01-10  Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57317
57318 2003-01-10  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/alloca_.h: New file.
57321         * lib/getdate.y: Unconditionally include alloca.h.
57322         * lib/makepath.c: Likewise.
57323         * lib/setenv.c: Likewise.
57324         * lib/userspec.c: Likewise.
57325
57326 2003-01-09  Karl Berry  <karl@gnu.org>
57327
57328         * MODULES.html.sh: include `dirname $0` in PATH, to find
57329         gnulib-tool.
57330
57331 2003-01-09  Bruno Haible  <bruno@clisp.org>
57332
57333         * modules/stdbool: Change configure.ac, Makefile.am requirements.
57334         Simplify Include requirements. Add lib/stdbool.h.in to file list.
57335
57336 2003-01-09  Bruno Haible  <bruno@clisp.org>
57337
57338         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57339
57340 2003-01-09  Bruno Haible  <bruno@clisp.org>
57341
57342         * lib/stdbool.h.in: New file.
57343
57344 2003-01-09  Bruno Haible  <bruno@clisp.org>
57345
57346         * gnulib-tool (func_all_modules): Ignore files ending in ~.
57347         * MODULES.html.sh: Likewise.
57348
57349 2003-01-08  Jim Meyering  <jim@meyering.net>
57350
57351         * lib/full-write.c: Undefine and define-away `const' after inclusion
57352         of errno.h, not before.  Suggestion from Bruno Haible.
57353
57354 2003-01-08  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/full-read: Depend on full-write.
57357
57358 2003-01-08  Bruno Haible  <bruno@clisp.org>
57359
57360         * lib/safe-read.c: Include specification header first, to ensure its
57361         selfcontainedness.
57362         * lib/full-write.c: Likewise.
57363
57364 2003-01-07  Jim Meyering  <jim@meyering.net>
57365
57366         * lib/full-write.c: Rework so that it may serve to define full_read,
57367         too.
57368         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57369
57370 2003-01-07  Bruno Haible  <bruno@clisp.org>
57371
57372         * lib/strtoimax.c: Include <stdint.h> as an alternative to
57373         <inttypes.h>.
57374         * lib/xstrtol.h: Likewise.
57375         * lib/xstrtoimax.c: Likewise.
57376         * lib/xstrtoumax.c: Likewise.
57377         * lib/human.h: Likewise.
57378
57379         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57380         on systems that have <inttypes.h> but not <stdint.h>.
57381
57382 2003-01-07  Bruno Haible  <bruno@clisp.org>
57383
57384         * MODULES.html.sh: Add copyright notice.
57385         (missed_files): Omit CVS directory entries.
57386         (func_module): Make it work with sed-3.02.
57387         * MODULES.txt: Remove file.
57388
57389 2003-01-06  Jim Meyering  <jim@meyering.net>
57390
57391         * lib/version-etc.c: Update year in translatable copyright string.
57392
57393 2003-01-03  Karl Berry  <karl@gnu.org>
57394
57395         * config/config.{guess,sub}: update from prep.
57396
57397 2003-01-02  Karl Berry  <karl@gnu.org>
57398
57399         * doc/COPYING.DOC: belatedly updated to 1.2.
57400
57401 2003-01-01  Karl Berry  <karl@gnu.org>
57402
57403         * gnulib-tool (func_verify_module): report module name $module in
57404         error message, not $1.
57405         * gnulib-tool (create-testdir): don't complain if destdir couldn't
57406         be created, only if it doesn't exist.
57407         * gnulib-tool (last_checkin_date): don't expand the $Date here.
57408
57409 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57410
57411         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57412
57413 2002-12-31  Paul Eggert  <eggert@twinsun.com>
57414
57415         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57416         memcmp if strcoll doesn't work.
57417
57418 2002-12-31  Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/utime.c (utime_null): No need to call ftruncate if the file was
57421         nonempty.
57422
57423 2002-12-31  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/memcoll.c (STRCOLL): New macro.
57426         (memcoll): Use it.
57427
57428 2002-12-31  Bruno Haible  <bruno@clisp.org>
57429
57430         * lib/localcharset.h: New file.
57431         * lib/localcharset.c: Include it.
57432         * lib/unicodeio.c: Likewise.
57433
57434 2002-12-31  Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57437         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57438
57439 2002-12-31  Bruno Haible  <bruno@clisp.org>
57440
57441         * lib/getline.h: Include <stddef.h>, for size_t.
57442
57443         * lib/unicodeio.h: Include <stddef.h>, for size_t.
57444         * lib/unicodeio.c: Don't include <stddef.h>.
57445
57446 2002-12-31  Bruno Haible  <bruno@clisp.org>
57447
57448         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57449         HAVE_TM_ZONE.
57450
57451 2002-12-24  Karl Berry  <karl@gnu.org>
57452
57453         * config/config.guess: update from prep.
57454
57455 2002-12-24  Bruno Haible  <bruno@clisp.org>
57456
57457         General infrasructure.
57458         * m4/README: Rewritten.
57459         * m4/onceonly.m4: New file.
57460         * m4/onceonly_2_57.m4: New file.
57461
57462         Module atexit.
57463         * m4/atexit.m4: New file.
57464
57465         Module strtod.
57466         * m4/strtod.m4: New file.
57467
57468         Module strtol.
57469         * m4/strtol.m4: New file.
57470
57471         Module strtoul.
57472         * m4/strtoul.m4: New file.
57473
57474         Module memchr.
57475         * m4/memchr.m4: New file.
57476
57477         Module memcmp.
57478         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57479         (jm_FUNC_MEMCMP): Invoke it.
57480
57481         Module memcpy.
57482         * m4/memcpy.m4: New file.
57483
57484         Module memmove.
57485         * m4/memmove.m4: New file.
57486
57487         Module memset.
57488         * m4/memset.m4: New file.
57489
57490         Module strcspn.
57491         * m4/strcspn.m4: New file.
57492
57493         Module strpbrk.
57494         * m4/strpbrk.m4: New file.
57495
57496         Module strstr.
57497         * m4/strstr.m4: New file.
57498
57499         Module strerror.
57500         * m4/strerror.m4: New file.
57501
57502         Module mktime.
57503         * m4/mktime.m4: Renamed from jm-mktime.m4.
57504         (gl_PREREQ_MKTIME): New macro.
57505         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57506
57507         Module malloc.
57508         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57509         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57510         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57511
57512         Module realloc.
57513         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57514         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57515         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57516
57517         Module strftime.
57518         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
57519         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
57520         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
57521         gl_TM_GMTOFF.
57522         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
57523
57524         Module xalloc.
57525         * m4/xalloc.m4: New file.
57526
57527         Module alloca.
57528         * m4/alloca.m4: New file.
57529
57530         Module putenv.
57531         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
57532         (jm_FUNC_PUTENV): Invoke it.
57533
57534         Module setenv.
57535         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
57536         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
57537         when invoked twice.
57538         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
57539         gt_FUNC_SETENV.
57540
57541         Module memrchr.
57542         * m4/memrchr.m4: New file.
57543
57544         Module stpcpy.
57545         * m4/stpcpy.m4: New file.
57546
57547         Module strcase.
57548         * m4/strcase.m4: New file.
57549
57550         Module strdup.
57551         * m4/strdup.m4: New file.
57552
57553         Module strnlen.
57554         * m4/strnlen.m4: New file.
57555
57556         Module strndup.
57557         * m4/strndup.m4: New file.
57558
57559         Module xstrtod.
57560         * m4/xstrtod.m4: New file.
57561
57562         Module xstrtol.
57563         * m4/xstrtol.m4: New file.
57564
57565         Module getdate.
57566         * m4/getdate.m4: New file.
57567
57568         Module unlocked-io.
57569         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
57570         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
57571         * m4/jm-glibc-io.m4n: Remove file.
57572
57573         Module long-options.
57574         * m4/long-options.m4: New file.
57575
57576         Module md5.
57577         * m4/md5.m4: New file.
57578
57579         Module sha.
57580         * m4/sha.m4: New file.
57581
57582         Module getstr.
57583         * m4/getstr.m4: New file.
57584
57585         Module getline.
57586         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
57587         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
57588         <sys/types.h>, for size_t. Use the function name gnu_getline, not
57589         simply getline. Infoke gl_PREREQ_GETLINE.
57590
57591         Module obstack.
57592         * m4/obstack.m4: New file.
57593
57594         Module hash.
57595         * m4/hash.m4: New file.
57596
57597         Module readtokens.
57598         * m4/readtokens.m4: New file.
57599
57600         Module strverscmp.
57601         * m4/strverscmp.m4: New file.
57602
57603         Module stdbool.
57604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
57605         OSF/1.
57606
57607         Module strtoll.
57608         * m4/strtoll.m4: New file.
57609
57610         Module strtoull.
57611         * m4/strtoull.m4: New file.
57612
57613         Module strtoimax.
57614         * m4/strtoimax.m4: New file.
57615
57616         Module strtoumax.
57617         * m4/strtoumax.m4: New file.
57618
57619         Module xstrtoimax.
57620         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
57621         jm_AC_PREREQ_XSTRTOIMAX.
57622         Moved the strtol prerequisites to strtol.m4.
57623         Moved the strtoll prerequisites to strtoll.m4.
57624         Moved the strtoimax prerequisites to strtoimax.m4.
57625
57626         Module xstrtoumax.
57627         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
57628         jm_AC_PREREQ_XSTRTOUMAX.
57629         Moved the strtoul prerequisites to strtoul.m4.
57630         Moved the strtoull prerequisites to strtoull.m4.
57631         Moved the strtoumax prerequisites to strtoumax.m4.
57632
57633         Module chown.
57634         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
57635         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
57636
57637         Module dup2.
57638         * m4/dup2.m4: New file.
57639
57640         Module ftruncate.
57641         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
57642         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
57643
57644         Module getgroups.
57645         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
57646         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
57647
57648         Module gettimeofday.
57649         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
57650         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
57651         gl_PREREQ_GETTIMEOFDAY.
57652
57653         Module mkdir.
57654         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
57655         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
57656
57657         Module mkstemp.
57658         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
57659         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
57660         jm_AC_TYPE_UINTMAX_T.
57661         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
57662
57663         Module stat.
57664         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
57665         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
57666
57667         Module lstat.
57668         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
57669         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
57670
57671         Module timespec.
57672         * m4/timespec.m4 (gl_TIMESPEC): New macro.
57673         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
57674         * m4/st_mtim.m4: Indentation.
57675
57676         Module nanosleep.
57677         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
57678         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
57679         gl_PREREQ_NANOSLEEP.
57680
57681         Module regex.
57682         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
57683         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
57684         (gl_REGEX): New macro.
57685
57686         Module rename.
57687         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
57688         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
57689
57690         Module rmdir.
57691         * m4/rmdir.m4: New file.
57692
57693         Module utime.
57694         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
57695         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
57696         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
57697
57698         Module dirname.
57699         * m4/dirname.m4: New file.
57700
57701         Module getopt.
57702         * m4/getopt.m4: New file.
57703
57704         Module unistd-safer.
57705         * m4/unistd-safer.m4: New file.
57706
57707         Module fnmatch.
57708         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
57709         declaration.
57710         (gl_PREREQ_FNMATCH_EXTRA): New macro.
57711         (gl_FUNC_FNMATCH_POSIX): New macro.
57712         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
57713         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
57714         simply fnmatch.
57715
57716         Module exclude.
57717         * m4/exclude.m4: New file.
57718
57719         Module human.
57720         * m4/human.m4: New file.
57721
57722         Module acl.
57723         * m4/acl.m4: Nop.
57724
57725         Module backupfile.
57726         * m4/backupfile.m4: New file.
57727         * m4/d-ino.m4: Indentation.
57728
57729         Module fsusage.
57730         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
57731         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
57732         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
57733
57734         Module dirfd.
57735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
57736         requirements.
57737
57738         Module euidaccess.
57739         * m4/euidaccess.m4: New file.
57740
57741         Module file-type.
57742         * m4/file-type.m4: New file.
57743
57744         Module fileblocks.
57745         * m4/fileblocks.m4: New file.
57746
57747         Module filemode.
57748         * m4/filemode.m4: New file.
57749
57750         Module isdir.
57751         * m4/isdir.m4: New file.
57752
57753         Module lchown.
57754         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
57755         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
57756
57757         Module makepath.
57758         * m4/makepath.m4: New file.
57759
57760         Module modechange.
57761         * m4/modechange.m4: New file.
57762
57763         Module mountlist.
57764         * m4/mountlist.m4: New file.
57765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
57766         Indentation.
57767
57768         Module path-concat.
57769         * m4/path-concat.m4: New file.
57770
57771         Module pathmax.
57772         * m4/pathmax.m4: New file.
57773
57774         Module same.
57775         * m4/same.m4: New file.
57776
57777         Module save-cwd.
57778         * m4/save-cwd.m4: New file.
57779
57780         Module savedir.
57781         * m4/savedir.m4: New file.
57782
57783         Module xgetcwd.
57784         * m4/xgetcwd.m4: New file.
57785         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
57786
57787         Module xreadlink.
57788         * m4/xreadlink.m4: New file.
57789
57790         Module safe-read.
57791         * m4/safe-read.m4: New file.
57792
57793         Module safe-write.
57794         * m4/safe-write.m4: New file.
57795
57796         Module closeout.
57797         * m4/closeout.m4: New file.
57798
57799         Module stdio-safer.
57800         * m4/stdio-safer.m4: New file.
57801
57802         Module getpass.
57803         * m4/getpass.m4: New file.
57804
57805         Module getugroups.
57806         * m4/getugroups.m4: New file.
57807
57808         Module group-member.
57809         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
57810         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
57811
57812         Module idcache.
57813         * m4/idcache.m4: New file.
57814
57815         Module userspec.
57816         * m4/userspec.m4: New file.
57817
57818         Module gettime.
57819         * m4/clock_time.m4: New file.
57820         * m4/gettime.m4: New file.
57821
57822         Module settime.
57823         * m4/settime.m4: New file.
57824
57825         Module posixtm.
57826         * m4/posixtm.m4: New file.
57827
57828         Module gethostname.
57829         * m4/gethostname.m4: New file.
57830
57831         Module canon-host.
57832         * m4/canon-host.m4: New file.
57833
57834         Module gettext.
57835         * m4/codeset.m4: New file, from gettext-0.11.5.
57836         * m4/gettext.m4: New file, from gettext-0.11.5.
57837         * m4/glibc21.m4: New file, from gettext-0.11.5.
57838         * m4/iconv.m4: New file, from gettext-0.11.5.
57839         * m4/intdiv0.m4: New file, from gettext-0.11.5.
57840         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
57841         * m4/inttypes.m4: New file, from gettext-0.11.5.
57842         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
57843         * m4/isc-posix.m4: New file, from gettext-0.11.5.
57844         * m4/lcmessage.m4: New file, from gettext-0.11.5.
57845         * m4/lib-ld.m4: New file, from gettext-0.11.5.
57846         * m4/lib-link.m4: New file, from gettext-0.11.5.
57847         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
57848         * m4/progtest.m4: New file, from gettext-0.11.5.
57849         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
57850         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
57851         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
57852
57853         Module localcharset.
57854         * m4/localcharset.m4: New file.
57855
57856         Module hard-locale.
57857         * m4/hard-locale.m4: New file.
57858
57859         Module mbswidth.
57860         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
57861         onceonly macros.
57862         * m4/mbrtowc.m4: Add comment.
57863
57864         Module memcasecmp.
57865         * m4/memcasecmp.m4: New file.
57866
57867         Module memcoll.
57868         * m4/memcoll.m4: New file.
57869
57870         Module unicodeio.
57871         * m4/unicodeio.m4: New file.
57872
57873         Module rpmatch.
57874         * m4/rpmatch.m4: New file.
57875
57876         Module yesno.
57877         * m4/yesno.m4: New file.
57878
57879         Module exitfail.
57880         * m4/exitfail.m4: New file.
57881
57882         Module c-stack.
57883         * m4/c-stack.m4 (gl_C_STACK): New macro.
57884         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
57885
57886         Module error.
57887         * m4/error.m4 (gl_ERROR): New macro.
57888         (jm_PREREQ_ERROR): Use onceonly macros.
57889
57890         Module fatal.
57891         * m4/fatal.m4: New file.
57892
57893         Module getloadavg.
57894         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
57895         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
57896
57897         Module getpagesize.
57898         * m4/getpagesize.m4: New file.
57899
57900         Module getusershell.
57901         * m4/getusershell.m4: New file.
57902
57903         Module physmem.
57904         * m4/physmem.m4: New file.
57905
57906         Module posixver.
57907         * m4/posixver.m4: New file.
57908
57909         Module quotearg.
57910         * m4/quotearg.m4: New file.
57911
57912         Module quote.
57913         * m4/quote.m4: New file.
57914
57915         Module readutmp.
57916         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
57917
57918         Module sig2str.
57919         * m4/sig2str.m4: New file.
57920
57921         Other.
57922         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
57923         ulonglong.m4.
57924         * m4/intmax_t.m4: New file.
57925         * m4/d-type.m4: Indentation.
57926         * m4/jm-macros.m4: Update.
57927         * m4/prereq.m4 (jm_PREREQ): Update.
57928         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
57929         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
57930         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
57931         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
57932         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
57933         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
57934         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
57935         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
57936         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
57937         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
57938         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
57939         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
57940         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
57941         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
57942         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
57943         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
57944         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
57945         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
57946         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
57947
57948 2002-12-24  Bruno Haible  <bruno@clisp.org>
57949
57950         * MODULES.txt: Update according to m4/ changes.
57951
57952         Module gettext.
57953         * config.rpath: New file, from gettext-0.11.5.
57954
57955         * modules/*: New module descriptions.
57956         * gnulib-tool: New file.
57957         * MODULES.html.sh: New file.
57958
57959 2002-12-21  Karl Berry  <karl@gnu.org>
57960
57961         * doc/fdl.texi: update to version 1.2.
57962
57963 2002-12-19  Karl Berry  <karl@gnu.org>
57964
57965         * config/config.guess: update from prep.
57966
57967 2002-12-18  Bruno Haible  <bruno@clisp.org>
57968
57969         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
57970         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
57971
57972 2002-12-17  Bruno Haible  <bruno@clisp.org>
57973
57974         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
57975         stdlib.h, string.h.
57976
57977 2002-12-17  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/canon-host.c (strdup): Remove unused declaration.
57980
57981         * lib/fsusage.c: Include full_read.h.
57982         (get_fs_usage): Use full_read instead of safe_read.
57983
57984         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
57985
57986 2002-12-12  Karl Berry  <karl@gnu.org>
57987
57988         * config/config.guess: update from prep.
57989
57990 2002-12-11  Bruno Haible  <bruno@clisp.org>
57991
57992         * m4/setenv.m4: New file, from gettext-0.11.5.
57993
57994 2002-12-11  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
57997         not unsetenv().
57998         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
57999         modifications:
58000
58001         2002-12-11  Bruno Haible  <bruno@clisp.org>
58002
58003                 * setenv.c (alloca): Fall back to malloc.
58004                 (freea): New macro.
58005                 (setenv): Use freea() to free memory allocated with alloca().
58006
58007         2002-11-13  Bruno Haible  <bruno@clisp.org>
58008
58009                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58010                 function declarations.
58011                 * unsetenv.c (unsetenv): Likewise.
58012
58013         2002-03-04  Bruno Haible  <bruno@clisp.org>
58014
58015                 Portability to AIX 4.3.3.
58016                 * unsetenv.c: New file, extracted from setenv.c.
58017                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58018
58019         2001-12-20  Bruno Haible  <bruno@clisp.org>
58020
58021                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58022                 use malloc instead. For SunOS 4.
58023
58024         2001-12-11  Bruno Haible  <bruno@clisp.org>
58025
58026                 * setenv.c: Declare alloca.
58027                 (compar_fn_t): New typedef.
58028                 (KNOWN_VALUE, STORE_VALUE): Use it.
58029
58030         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58031         setenv.h.
58032
58033 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58034
58035         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58036         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58037         Choose values that are less likely to collide with system fnmatch
58038         options.
58039         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58040         defined (e.g., a pure POSIX system).
58041         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58042         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58043
58044 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58045
58046         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58047         a pain in practice to deal with generated m4 files.  This change
58048         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58049
58050         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58051         and jm-glibc-io.m4, as they are no longer a special case.
58052         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58053         kludge and the auto-generation stuff.  Check only whether the
58054         functions are declared, not whether they exist, since older hosts
58055         that don't declare the functions can't use the optimization anyway.
58056
58057 2002-12-06  Jim Meyering  <jim@meyering.net>
58058
58059         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58060
58061         Merge in changes from libc's misc/error.c, in preparation
58062         for the merge of gnulib's changes back into libc.
58063
58064         * lib/error.c (_): Define only if not already defined.
58065         Move definition to follow all #include directives.
58066         Include unlocked-io.h only if !_LIBC.
58067         [_LIBC]: Include <libio/libioP.h>.
58068         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58069         (fflush): Tweak definition to use INTUSE.
58070         (putc): Define.
58071
58072 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58073
58074         * lib/alloca.c [defined emacs]: Include "lisp.h".
58075         (xalloc_die) [defined emacs]: New macro.
58076         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58077         [! defined emacs]: Include <xalloc.h>.
58078         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58079         (pointer): Typedef to POINTER_TYPE *.
58080         (malloc): Remove decl; we now always use xmalloc.
58081         (alloca): Use old-style definition, since Emacs needs this.
58082         Check for arithmetic overflow when computing combined size.
58083
58084 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58085
58086         Do not generate unlocked-io.h automatically, since it's easier to
58087         maintain it by hand.
58088
58089         * lib/unlocked-io.h: New file, from GNU diffutils,
58090         but with proper copyright notice and attribution.
58091         * lib/gen-uio: Remove.
58092         * lib/Makefile.am: Add copyright notice.
58093         (libfetish_a_SOURCES): Add unlocked-io.h.
58094         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58095         (DISTCLEANFILES, io_functions): Remove macros.
58096         (EXTRA_DIST): Remove gen_uio.
58097         (unlocked-io.h): Remove rule.
58098
58099 2002-12-04  Jim Meyering  <jim@meyering.net>
58100
58101         Reflect the fact that stat.c and lstat.c are no longer generated.
58102         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58103         (DISTCLEANFILES): Likewise.
58104         (EXTRA_DIST): Likewise.
58105         (all_local): Don't depend on stat.c or lstat.c.
58106         (stat.c, lstat.c): Remove rules.
58107         (EXTRA_DIST): Remove xstat.in.
58108
58109         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58110         * lib/stat.c: New file.  Contents mostly from xstat.in.
58111         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58112         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58113
58114         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58115         too.
58116         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58117
58118 2002-12-03  Jim Meyering  <jim@meyering.net>
58119
58120         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58121         but not semantics, to minimize the differences between these two files.
58122         (safe_read): Change comment to mention SAFE_READ_ERROR.
58123
58124         * lib/safe-read.c (IS_EINTR): Define.
58125         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58126
58127 2002-12-02  Jim Meyering  <jim@meyering.net>
58128
58129         * lib/safe-read.c (EINTR): Define.
58130         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58131         (INT_MAX): Provide fallback.
58132         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58133
58134         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58135
58136 2002-12-02  Bruno Haible  <bruno@clisp.org>
58137
58138         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58139         Define, taken from safe-read.c.
58140         (INT_MAX): Provide fallback.
58141         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58142         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58143
58144         * lib/safe-read.c (EINTR): Remove definition.
58145         (safe_read): Don't use EINTR if it is absent.
58146
58147 2002-12-01  Jim Meyering  <jim@meyering.net>
58148
58149         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58150         zero.
58151         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58152
58153 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58154
58155         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58156         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58157         with `if (! (value < limit)) abort ();', for readability.
58158
58159 2002-11-26  Karl Berry  <karl@gnu.org>
58160
58161         * lib/strdup.c: copy from libc again, with jim's ok.
58162         * lib/.cppi-disable: re-add strdup.c
58163
58164 2002-11-25  Karl Berry  <karl@gnu.org>
58165
58166         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58167         instead of "strtol.c".
58168
58169 2002-11-25  Karl Berry  <karl@gnu.org>
58170
58171         * config/install-sh: update from automake for variable quoting, $0 in
58172         error msgs, etc.
58173
58174         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58175         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58176         entry.
58177
58178 2002-11-25  Jim Meyering  <jim@meyering.net>
58179
58180         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58181
58182 2002-11-24  Karl Berry  <karl@gnu.org>
58183
58184         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58185         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58186
58187 2002-11-24  Jim Meyering  <jim@meyering.net>
58188
58189         Update from coreutils:
58190
58191         * lib/mktime.c: Merge in changes from libc.
58192
58193         Avoid a link-time failure on some Linux systems.
58194         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58195         (otherwise).
58196         (__mon_yday): Declare with the STATIC attribute.
58197         (__mktime_internal): Likewise.
58198         Based on a report from Greg Schafer.
58199
58200 2002-11-23  Jim Meyering  <jim@meyering.net>
58201
58202         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58203         Use `unsigned', not `int', as type of index.
58204
58205         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58206
58207         * lib/fsusage.c: Remove unneeded parentheses around operands of
58208         `defined'.
58209
58210 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58211
58212         * lib/quotearg.h: Allow multiple inclusion by surrounding with
58213         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
58214         so that we can be included first.
58215         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
58216         * lib/quotearg.c: Include quotearg.h immediately after config.h.
58217         No need to include stddef.h or sys/types.h any more.
58218         Surround local include files with "", not "<>".
58219         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58220         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58221         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58222         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58223         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58224         (ISPRINT): Remove; no longer needed now that we assume C89.
58225
58226         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58227         Preserve errno.
58228
58229         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58230         quotearg_char): Use SIZE_MAX rather than
58231         (size_t) -1 when we are talking about "infinity".
58232
58233         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58234
58235 2002-11-22  Paul Eggert  <eggert@twinsun.com>
58236
58237         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58238         hint that one should use `if (! x) abort ();' rather than `assert
58239         (x);', and anyway it's one less thing to worry about configuring.
58240         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58241         hash_rehash, hash_insert): Use abort rather than assert.
58242
58243 2002-11-22  Bruno Haible  <bruno@clisp.org>
58244
58245         * lib/safe-read.h: Assume C89. Add comments.
58246         (safe_read): Change return type to size_t.
58247         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58248         byte counts > SSIZE_MAX correctly.
58249         * lib/safe-write.h: New file.
58250         * lib/safe-write.c: New file.
58251         * lib/full-read.h: New file.
58252         * lib/full-read.c: New file.
58253         * lib/full-write.h: Assume C89. Add comments.
58254         * lib/full-write.c: Include safe-write.h.
58255         (full_write): Rewritten to use safe_write.
58256         Suggested by Jim Meyering and Paul Eggert.
58257
58258 2002-11-21  Jim Meyering  <jim@meyering.net>
58259
58260         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58261
58262         Merge in changes from the coreutils.
58263
58264         2002-09-25  Paul Eggert  <eggert@twinsun.com>
58265         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58266         <stdint.h>.
58267         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58268         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58269         int.  Work more efficiently if X is the same width as uintmax_t.
58270         Do not compare X to -1, to avoid bogus compiler warning.
58271         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58272         Don't assume that f_frsize and f_bsize are the same type.
58273
58274         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58275         warning on FreeBSD.
58276
58277         * lib/makepath.c (make_path): Restore umask *before* creating the final
58278         component.
58279         (make_path): Minor reformatting.
58280
58281         * lib/xmalloc.c: Adjust to work with new autoconf macros,
58282         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58283         HAVE_MALLOC/HAVE_REALLOC.
58284
58285         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58286         dummy ones.  At least on GNU/Linux systems, `auto' means something
58287         else.
58288         From Michael Stone.
58289
58290 2002-11-21  Bruno Haible  <bruno@clisp.org>
58291
58292         Remove case insensitive option matching.
58293         * lib/argmatch.h (argcasematch): Remove declaration.
58294         (ARGCASEMATCH): Remove macro.
58295         (__xargmatch_internal): Remove case_sensitive argument.
58296         (XARGMATCH): Update.
58297         (XARGCASEMATCH): Remove macro.
58298         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58299         case_sensitive argument.
58300         (argcasematch): Remove function.
58301         (__xargmatch_internal): Remove case_sensitive argument.
58302         (main): Use XARGMATCH instead of XARGCASEMATCH.
58303
58304         * lib/xmalloc.c: Change compile-time error message. Add comment about
58305         required autoconf version.
58306
58307 2002-11-20  Paul Eggert  <eggert@twinsun.com>
58308
58309         Merge argmatch cleanups from Bison.  Assume C89.
58310
58311         * lib/argmatch.c: Include config.h here, not in argmatch.h.
58312         Include stdlib.h, for EXIT_FAILURE.
58313         Always include <string.h>, since we assume C89.
58314         (EXIT_FAILURE): Remove pre-C89 bug workaround.
58315         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58316         Include <stddef.h> instead, since it's all we need for size_t.
58317         (PARAMS): Remove.  All uses removed.
58318         (ARRAY_CARDINALITY): Do not bother to #undef.
58319         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58320         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58321         Remove unnecessary parentheses.
58322         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58323         Insert necessary parentheses.
58324         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58325         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58326
58327 2002-11-19  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58330         * lib/mbswidth.h: Include <stddef.h>, for size_t.
58331
58332         * lib/mbswidth.h (PARAMS): Remove macro.
58333         (mbswidth, mbsnwidth): Use ANSI C function declarations.
58334         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58335
58336         * lib/gcd.h (PARAMS): Remove macro.
58337         (gcd): Use ANSI C function declarations.
58338         * lib/gcd.c (gcd): Likewise.
58339
58340 2002-11-15  Bruno Haible  <bruno@clisp.org>
58341
58342         * lib/strcspn.c: Include <stddef.h>.
58343         (strcspn): Use ANSI C function declaration. Change return type to
58344         size_t. Use NULL.
58345         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58346         (strpbrk): Use NULL.
58347         * lib/strpbrk.h (PARAMS): Remove macro.
58348         (strpbrk): Use ANSI C function declaration.
58349         * lib/strstr.c: Don't include <sys/types.h>.
58350         * lib/strstr.h (PARAMS): Remove macro.
58351         (strstr): Use ANSI C function declarations.
58352
58353 2002-11-14  Karl Berry  <karl@gnu.org>
58354
58355         * config/mkinstalldirs: `do' on separate line, instead of
58356         `for var; do'.
58357
58358 2002-11-06  Bruno Haible  <bruno@clisp.org>
58359
58360         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58361         * lib/gcd.c (gcd): Likewise.
58362
58363 2002-11-05  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/gcd.h: New file, from gettext-0.11.5.
58366         * lib/gcd.c: New file, from gettext-0.11.5.
58367
58368 2002-11-05  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58371         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58372         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58373         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58374
58375         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58376         <libintl.h>.
58377         * lib/makepath.c: Include gettext.h instead of <locale.h> and
58378         <libintl.h>.
58379
58380         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58381         * lib/human.c: Include gettext.h instead of <libintl.h>.
58382         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58383         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58384         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58385         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58386         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58387         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58388         (textdomain): Remove definition.
58389         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58390
58391         * lib/long-options.c: Remove include of <libintl.h> and definition of
58392         _.
58393         * lib/same.c: Remove include of <libintl.h> and definition of _.
58394
58395 2002-11-04  Owen Taylor  <otaylor@redhat.com>
58396
58397         * lib/config.charset: A few additions for Solaris.
58398
58399 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58400
58401         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58402         * lib/localcharset.c (locale_charset): Declare as extern "C".
58403
58404 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
58405
58406         * lib/config.charset: msdos in uk_UA uses CP1125.
58407
58408 2002-11-04  Bruno Haible  <bruno@clisp.org>
58409
58410         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58411         * lib/strcase.h: New file, from GNU gettext-0.11.5.
58412         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58413         * lib/strstr.h: New file, from GNU gettext-0.11.5.
58414         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58415
58416 2002-11-04  Bruno Haible  <bruno@clisp.org>
58417
58418         * lib/localcharset.c (locale_charset): Don't return an empty string.
58419
58420 2002-11-04  Bruno Haible  <bruno@clisp.org>
58421
58422         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58423         aliases.
58424
58425 2002-11-04  Bruno Haible  <bruno@clisp.org>
58426
58427         * lib/config.charset: Update for newest glibc. Add canonical names
58428         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58429
58430 2002-11-04  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/config.charset: Add support for NetBSD.
58433
58434 2002-11-04  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58437
58438 2002-11-01  Bruno Haible  <bruno@clisp.org>
58439
58440         * configure.in: Add AC_CONFIG_AUX_DIR call.
58441         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58442         test/Makefile.
58443         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58444
58445 2002-09-28  Karl Berry  <karl@gnu.org>
58446
58447         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58448         installed automake until the next release, since changes have been
58449         made.
58450
58451 2002-09-25  Karl Berry  <karl@gnu.org>
58452
58453         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58454         * lib/getopt*: copy from libc/posix.
58455         * lib/gettext.h: copy from gettext.
58456         * lib/.cppi-disable: add strdup.c, gettext.h.
58457
58458 2002-09-25  Karl Berry  <karl@gnu.org>
58459
58460         * config/srclist.txt: enable gettext.h check.
58461         * config/config.{guess,sub}: update from prep.
58462         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58463                 from automake 1.6.3.
58464         See srclist*.
58465
58466 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
58467
58468         * regex.c (PATFETCH): Remove the translating fetch.
58469         (PATFETCH_RAW): Rename to PATFETCH.
58470         (set_image_of_range): New fun.
58471         (SET_RANGE_TABLE_WORK_AREA): Use it.
58472         (regex_compile): Don't translate the pattern chars so eagerly.
58473         Only do it when inserting an `exactn' bytecode or when handling
58474         a char-range.
58475         (mutually_exclusive_p): Avoid empty statement.
58476
58477 2002-07-06  Jim Meyering  <meyering@lucent.com>
58478
58479         * m4/README: Don't mention Makefile.am.in.
58480         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
58481
58482 2002-07-01  Jim Meyering  <meyering@lucent.com>
58483
58484         * lib/c-stack.c: Include sys/time.h.
58485         From Volker Borchert.
58486
58487 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58488
58489         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58490
58491 2002-06-26  Paul Eggert  <eggert@twinsun.com>
58492
58493         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58494         New macro.  Use it uniformly instead of
58495         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58496         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58497         reported by Vin Shelton.
58498
58499 2002-06-22  Paul Eggert  <eggert@twinsun.com>
58500
58501         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58502         Do not assume SA_SIGINFO behavior.
58503         Bug reported by Jim Meyering on NetBSD 1.5.2.
58504
58505 2002-06-22  Jim Meyering  <meyering@lucent.com>
58506
58507         * m4/c-stack.m4: New file, from diffutils-2.8.2.
58508         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58509
58510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58511         now that configure.ac uses AC_GNU_SOURCE.
58512         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58513         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58514
58515         Update to latest tools.  Suggestions from Paul Eggert.
58516         * m4/stdbool.m4: New file, from diffutils-2.8.2.
58517         * m4/gnu-source.m4: Update from diffutils-2.8.2.
58518         * m4/fnmatch.m4: Likewise.
58519         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
58520         to AC_HEADER_STDBOOL
58521
58522 2002-06-22  Jim Meyering  <meyering@lucent.com>
58523
58524         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
58525         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
58526
58527 2002-06-22  Jim Meyering  <meyering@lucent.com>
58528
58529         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
58530
58531         * lib/exitfail.c, exitfail.h: Likewise.
58532         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
58533
58534         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
58535         of fnmatch.h.
58536         (EXTRA_DIST): Add fnmatch_loop.c.
58537         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
58538
58539         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
58540         * lib/fnmatch.c: Update from diffutils-2.8.2.
58541         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
58542         * lib/fnmatch.h: Remove file.
58543
58544 2002-06-21  Jim Meyering  <meyering@lucent.com>
58545
58546         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
58547         * m4/mbrtowc.m4: Likewise.
58548
58549         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
58550         * m4/mbswidth.m4: Reflect name change:
58551         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
58552         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58553
58554         * m4/lib-link.m4: Update from gettext-0.11.2.
58555         * m4/gettext.m4: Likewise.
58556
58557         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
58558         From Alfred M. Szmidt.
58559
58560 2002-06-18  Paul Eggert  <eggert@twinsun.com>
58561
58562         * lib/file-type.h: Report an error if neither S_ISREG nor
58563         S_IFREG is defined, instead of using a test specific to glibc
58564         2.2.  This should be safe, since POSIX requires S_ISREG and
58565         Unix Version 7 had S_IFREG.  We don't need to check for
58566         <sys/types.h> since we don't use any symbols that it defines.
58567
58568 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
58569
58570         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
58571         $@-t, so that each temporary file name is unique and valid in the first
58572         8 characters, for operation under DOS.
58573
58574 2002-06-15  Paul Eggert  <eggert@twinsun.com>
58575
58576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
58577
58578 2002-06-15  Jim Meyering  <meyering@lucent.com>
58579
58580         Work even with DJGPP 2.03, which lacks support for symlinks.
58581         From Richard Dawe.
58582         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
58583         is defined.
58584         * lib/lchown.c (S_ISLNK): Likewise.
58585
58586 2002-06-15  Jim Meyering  <meyering@lucent.com>
58587
58588         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
58589         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
58590         have been included before this file.
58591
58592 2002-06-14  Jim Meyering  <meyering@lucent.com>
58593
58594         * lib/file-type.h: Use the version from diffutils-2.8.2.
58595         * lib/file-type.c: Likewise.
58596
58597 2002-06-07  Jim Meyering  <meyering@lucent.com>
58598
58599         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
58600         They're needed at least for NetBSD 1.5.2.
58601         ($statxfs_includes): Include those same headers.
58602         ($statxfs_includes): Include sys/vfs.h if available.
58603         ($statxfs_includes): Likewise for sys/statvfs.h.
58604         Check for the following members in both structs statfs and statvfs:
58605         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
58606
58607 2002-06-01  Jim Meyering  <meyering@lucent.com>
58608
58609         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
58610         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
58611
58612 2002-05-28  Jim Meyering  <meyering@lucent.com>
58613
58614         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
58615         Reported by Volker Borchert.
58616
58617 2002-05-27  Jim Meyering  <meyering@lucent.com>
58618
58619         Fix a problem seen only on nonconforming systems whereby ls.c's
58620         use of localtime, and then of gettimeofday would cause trouble:
58621         the localtime call used to initialize rpl_gettimeofday's save
58622         mechanism would clobber ls's current local time information so
58623         that in any long listing the first file would always be listed
58624         with date 1970-01-01.  Analysis by Volker Borchert.
58625
58626         * lib/gettimeofday.c (localtime): Undefine.
58627         (rpl_localtime): New function.
58628
58629 2002-05-27  Jim Meyering  <meyering@lucent.com>
58630
58631         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
58632         localtime.
58633
58634         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
58635         use the replacement function; it wouldn't resolve at link time.
58636         Reported by Volker Borchert.
58637
58638 2002-05-22  Jim Meyering  <meyering@lucent.com>
58639
58640         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
58641         file-type.h.
58642         * lib/file-type.h: New file.
58643         * lib/file-type.c (file_type): New file/function.  Extracted from
58644         diffutils.
58645
58646 2002-04-30  Jim Meyering  <meyering@lucent.com>
58647
58648         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
58649
58650 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58651
58652         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
58653
58654 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58655
58656         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
58657         Do not check for alloca.h (no longer used) or stdbool.h (was never
58658         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
58659
58660 2002-04-29  Paul Eggert  <eggert@twinsun.com>
58661
58662         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
58663
58664 2002-04-29  Jim Meyering  <meyering@lucent.com>
58665
58666         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
58667         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
58668         Use AC_FUNC_STRNLEN here instead.
58669
58670         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
58671         With autoconf-2.53a, it's part of AC_PROG_CC.
58672
58673 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58674
58675         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
58676         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
58677
58678 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58679
58680         * lib/sig2str.h, lib/sig2str.c: New files.
58681         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
58682
58683 2002-04-28  Paul Eggert  <eggert@twinsun.com>
58684
58685         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
58686         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
58687         of 127, since 64 is the largest conceivable number for ancient
58688         nonstandard hosts.
58689         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
58690
58691 2002-04-28  Jim Meyering  <meyering@lucent.com>
58692
58693         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
58694
58695 2002-04-24  Jim Meyering  <meyering@lucent.com>
58696
58697         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
58698         (jm_PREREQ): Use it.
58699
58700         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
58701         mach/mach.h fcntl.h.
58702         Check for this function: setlocale.
58703
58704 2002-04-24  Jim Meyering  <meyering@lucent.com>
58705
58706         * lib/gettext.h: New file, from Gettext.
58707         * lib/Makefile.am (INCLUDES): Remove -I../intl.
58708         (libfetish_a_SOURCES): Add gettext.h.
58709
58710 2002-04-16  Jim Meyering  <meyering@lucent.com>
58711
58712         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
58713         ut_pid, ut_id, ut_exit.
58714
58715 2002-04-16  Jim Meyering  <meyering@lucent.com>
58716
58717         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
58718         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
58719         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
58720
58721 2002-04-12  Jim Meyering  <meyering@lucent.com>
58722
58723         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
58724         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
58725         existence of the getmntinfo function.  Needed for Darwin 5.3.
58726
58727         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
58728         This is necessary at least on Darwin 5.3.
58729
58730         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
58731         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
58732         strnlen.o in the library, and that makes some versions of ranlib
58733         object.
58734
58735 2002-04-12  Jim Meyering  <meyering@lucent.com>
58736
58737         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
58738
58739 2002-04-09  Jim Meyering  <meyering@lucent.com>
58740
58741         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
58742         to be more precise.  Rather than saying we're checking whether the
58743         function `works', say what we're testing.
58744         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
58745         Reported by Bruno Haible.
58746
58747 2002-03-10  Jim Meyering  <meyering@lucent.com>
58748
58749         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
58750         Suggestion from Santiago Vila.
58751
58752 2002-03-08  Jim Meyering  <meyering@lucent.com>
58753
58754         * lib/rename.c: Mention that this wrapper is needed also on
58755         mips-dec-ultrix4.4 systems.
58756
58757 2002-03-02  Jim Meyering  <meyering@lucent.com>
58758
58759         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
58760         not HAVE_CLOCK_SETTIME.
58761
58762 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58763
58764         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
58765         Check for clock_settime.
58766
58767 2002-02-27  Paul Eggert  <eggert@twinsun.com>
58768
58769         * lib/nanosleep.h: Rename to....
58770         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
58771
58772         * lib/gettime.c: New file.
58773         * lib/settime.c: New file.
58774         * lib/stime.c: Remove.
58775
58776         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
58777         timespec.h.  Remove nanosleep.h.
58778
58779 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58780
58781         * m4/acl.m4: New file.
58782         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
58783         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
58784
58785 2002-02-25  Paul Eggert  <eggert@twinsun.com>
58786
58787         * lib/acl.c, lib/acl.h: New files.
58788         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
58789
58790 2002-02-24  Jim Meyering  <meyering@lucent.com>
58791
58792         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
58793         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
58794         cause trouble.  Reported by Nelson Beebe.
58795
58796 2002-02-23  Paul Eggert  <eggert@twinsun.com>
58797
58798         * lib/path-concat.c (xpath_concat): Reorder code to pacify
58799         compilers that don't know that xalloc_die never returns.
58800
58801 2002-02-20  Jim Meyering  <meyering@lucent.com>
58802
58803         * lib/getdate.c: Regenerate using bison-1.33.
58804
58805 2002-02-17  Jim Meyering  <meyering@lucent.com>
58806
58807         * config/config.guess (main): Don't use `head -1'; it's no longer
58808         portable. Use `sed 1q' instead.
58809
58810 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
58811
58812         * m4/codeset.m4: Upgrade to gettext-0.11.
58813         * m4/gettext.m4: Upgrade to gettext-0.11.
58814         * m4/glibc21.m4: Upgrade to gettext-0.11.
58815         * m4/iconv.m4: Upgrade to gettext-0.11.
58816         * m4/isc-posix.m4: Upgrade to gettext-0.11.
58817         * m4/lcmessage.m4: Upgrade to gettext-0.11.
58818         * m4/lib-ld.m4: New file, from gettext-0.11.
58819         * m4/lib-link.m4: New file, from gettext-0.11.
58820         * m4/lib-prefix.m4: New file, from gettext-0.11.
58821         * m4/progtest.m4: Upgrade to gettext-0.11.
58822
58823 2002-02-15  Paul Eggert  <eggert@twinsun.com>
58824
58825         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
58826         (jm_PREREQ): Use it.
58827
58828 2002-02-15  Paul Eggert  <eggert@twinsun.com>
58829
58830         * lib/posixver.c, lib/posixver.h: New files.
58831         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58832
58833 2002-02-02  Paul Eggert  <eggert@twinsun.com>
58834             Bruno Haible  <bruno@clisp.org>
58835
58836         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
58837         (fwrite_success_callback): New declaration.
58838         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
58839         print_unicode_char. Call failure callback instead of error.
58840         (fwrite_success_callback): New function.
58841         (exit_failure_callback): New function.
58842         (fallback_failure_callback): New function.
58843         (print_unicode_char): Call unicode_to_mb.
58844
58845 2002-01-26  Jim Meyering  <meyering@lucent.com>
58846
58847         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
58848         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
58849
58850 2002-01-26  Jim Meyering  <meyering@lucent.com>
58851
58852         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
58853
58854 2002-01-22  Paul Eggert  <eggert@twinsun.com>
58855
58856         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
58857
58858 2002-01-22  Jim Meyering  <meyering@lucent.com>
58859
58860         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
58861         Otherwise, some versions of automake would omit the rule that makes
58862         Makefile from Makefile.in.
58863
58864 2002-01-21  Paul Eggert  <eggert@twinsun.com>
58865
58866         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
58867         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
58868         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
58869         (memcoll): Set errno to zero if there is no error.
58870
58871         * lib/quotearg.c (quotearg_buffer_restyled):
58872         Fix bug with quoting buffers containing NUL when backslashing escapes.
58873         This bug was exposed by the other changes in this patch.
58874         (quotearg_n_options): New arg ARGSIZE.
58875         All callers changed.
58876         (quoting_options_from_style): New function.
58877         (quotearg_n_style): Use it.
58878         (quotearg_n_style_mem): New function.
58879
58880         * lib/quotearg.h (quotearg_n_style_mem): New function.
58881
58882 2002-01-19  Jim Meyering  <meyering@lucent.com>
58883
58884         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
58885         Remove useless quotes: DF_PROG="df".
58886         * m4/strnlen.m4: New file.
58887
58888 2002-01-16  Paul Eggert  <eggert@twinsun.com>
58889
58890         * lib/backupfile.c (ISDIGIT): Comment fix.
58891         * lib/getdate.y (ISDIGIT): Likewise.
58892         * lib/posixtm.c (ISDIGIT, year): Likewise.
58893         * lib/strverscmp.c (ISDIGIT): Likewise.
58894         * lib/userspec.c (ISDIGIT): Likewise.
58895
58896 2002-01-16  Jim Meyering  <meyering@lucent.com>
58897
58898         * lib/getdate.y: Add three semicolons, each just before a closing
58899         brace. Bison (as of version 1.31) no longer papers over that mistake.
58900
58901 2002-01-05  Jim Meyering  <meyering@lucent.com>
58902
58903         * lib/version-etc.c (version_etc_copyright): Update copyright year.
58904
58905 2001-12-19  Paul Eggert  <eggert@twinsun.com>
58906
58907         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
58908         not silently exit merely because the output buffer happens to
58909         have nothing pending.
58910
58911 2001-12-18  Paul Eggert  <eggert@twinsun.com>
58912
58913         See the big note in ../ChangeLog.
58914         * lib/human.c (suffixes): Prefer K to k for 1024.
58915         (generate_suffix_backwards): New function.
58916         (human_readable_inexact): Use it.
58917         * lib/xstrtol.c (__xstrtol): If there is no number but there
58918         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
58919         Accept 'K' as well as 'k'.
58920
58921 2001-12-15  Jim Meyering  <meyering@lucent.com>
58922
58923         * lib/regex.h (__restrict_arr): Update from libc.
58924
58925         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
58926         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
58927         (STREQ): Define.
58928
58929 2001-12-14  Jim Meyering  <meyering@lucent.com>
58930
58931         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
58932         Suggestion from Bruno Haible.
58933
58934 2001-12-10  Jim Meyering  <meyering@lucent.com>
58935
58936         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
58937         xrealloc, Instead, include "xalloc.h".
58938         (initbuffer): Don't cast xmalloc return value to char*.
58939         (readline): Reword comment.
58940         Don't cast xrealloc return value to char*
58941         Return NULL, not 0.
58942
58943 2001-12-09  Jim Meyering  <meyering@lucent.com>
58944
58945         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
58946         about `signed and unsigned type in conditional expression'.
58947         * lib/posixtm.c (posix_time_parse): Likewise.
58948
58949         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
58950
58951         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
58952         to avoid a pedantic warning.
58953
58954         * lib/getstr.c: Don't include assert.h.
58955         (getstr): Remove warning-evoking assertions.
58956         Return -1 if offset parameter is out of bounds.
58957         Change the type of a local from int to size_t.
58958
58959         * lib/strftime.c (my_strftime_localtime_r): Include this function
58960         definition in the `#if ! HAVE_TM_GMTOFF' block.
58961
58962         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
58963         Include xalloc.h instead.
58964
58965 2001-12-02  Jim Meyering  <meyering@lucent.com>
58966
58967         * lib/tempname.c: Don't declare getenv, thus reverting the change of
58968         2001-11-18.  It's no longer necessary, now that stdlib.h is always
58969         included.
58970
58971         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
58972         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
58973
58974 2001-11-30  Akim Demaille  <akim@epita.fr>
58975
58976         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
58977         before being defined.
58978
58979 2001-11-27  Paul Eggert  <eggert@twinsun.com>
58980
58981         * lib/quotearg.h (quotearg_n, quotearg_n_style):
58982         First arg is int, not unsigned.
58983         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
58984         (SIZE_MAX, UINT_MAX): New macros.
58985         (quotearg_n_options): Abort if N is negative.
58986         Avoid overflow check on hosts where size_t is 64 bits and int
58987         is 32 bits, as overflow is impossible there.
58988         Fix off-by-one typo that caused unnecessary reallocation.
58989
58990 2001-11-27  Jim Meyering  <meyering@lucent.com>
58991
58992         * lib/tempname.c: Merge with version from libc.
58993         * lib/regex.c: Likewise.
58994
58995         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
58996         systems for which STDC_HEADERS is 0, it was not included, resulting in
58997         a warning about an integer-to-pointer conversion problem with getenv.
58998         Reported by Volker Borchert.
58999
59000 2001-11-26  Jim Meyering  <meyering@lucent.com>
59001
59002         * lib/gtod.h: Remove file.
59003         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59004         * lib/gettimeofday.c: Don't include gtod.h.
59005         (GTOD_init): Remove function.
59006         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59007         Suggestion from Volker Borchert.
59008
59009 2001-11-23  Jim Meyering  <meyering@lucent.com>
59010
59011         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59012         it.
59013         * lib/hash.c (struct hash_table): Define it here instead.
59014
59015 2001-11-22  Jim Meyering  <meyering@lucent.com>
59016
59017         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59018
59019 2001-11-20  Jim Meyering  <meyering@lucent.com>
59020
59021         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59022         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59023
59024 2001-11-19  Jim Meyering  <meyering@lucent.com>
59025
59026         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59027         directory.  Use "conftestXXXXXX" as the template.
59028         Suggestion from Paul Eggert.
59029
59030         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59031         immediately, so the test doesn't mistakenly hit the max-open-files
59032         limit.
59033
59034 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59035
59036         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59037         (TEMPORARIES): New macro.
59038         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59039         removes an artificial limitation (e.g. HP-UX 10.20, where
59040         TMP_MAX is 17576).
59041
59042 2001-11-18  Jim Meyering  <meyering@lucent.com>
59043
59044         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59045
59046 2001-11-18  Jim Meyering  <meyering@lucent.com>
59047
59048         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59049         on SunOS 4.
59050
59051         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59052         files will be created before anything else.
59053
59054 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59055
59056         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59057         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59058
59059 2001-11-17  Jim Meyering  <meyering@lucent.com>
59060
59061         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59062         Prompted by a report from Bob Proulx.
59063
59064         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59065         Instead, require UTILS_FUNC_MKSTEMP.
59066
59067 2001-11-17  Jim Meyering  <meyering@lucent.com>
59068
59069         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59070         Now, that's done as part of AC_FUNC_STRTOD.
59071
59072 2001-11-17  Jim Meyering  <meyering@lucent.com>
59073
59074         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59075         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59076         rather than group writable.  Patch by Juan F. Codagnone.
59077
59078         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59079         xrealloc, Instead, include "xalloc.h".
59080
59081         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59082         Remove explicit declarations of xmalloc, xrealloc,
59083         and xstrdup.  Instead, include "xalloc.h".
59084
59085         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59086         unlocked-io.h.
59087         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59088         Likewise.
59089         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59090
59091         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59092         Reported by Padraig Brady.
59093
59094         * lib/mkstemp.c: #undef mkstemp.
59095         Include config.h.
59096         (rpl_mkstemp): Rename from mkstemp.
59097         Protoize.
59098
59099 2001-11-16  Jim Meyering  <meyering@lucent.com>
59100
59101         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59102         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59103         determine the amount of total physical memory, use pstat_getstatic.
59104         HPUX-11 doesn't define _SC_PHYS_PAGES.
59105         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59106         If sysconf couldn't be used to determine the amount of available
59107         physical memory, use both pstat_getstatic and pstat_getdynamic.
59108         Based on a patch from Bob Proulx.
59109
59110 2001-11-10  Jim Meyering  <meyering@lucent.com>
59111
59112         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59113         (jm_PREREQ): Use it.
59114
59115 2001-11-09  Jim Meyering  <meyering@lucent.com>
59116
59117         * m4/jm-macros.m4: Require autoconf-2.52f.
59118         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59119         Use these AC_-prefixed names, not the AM_-prefixed ones.
59120
59121         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59122
59123 2001-11-05  Jim Meyering  <meyering@lucent.com>
59124
59125         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59126
59127 2001-11-04  Jim Meyering  <meyering@lucent.com>
59128
59129         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59130         $DEFS.
59131
59132 2001-11-03  Jim Meyering  <meyering@lucent.com>
59133
59134         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59135         of AC_DEFUN.
59136
59137         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59138         know the name of the variable in the macro definition.
59139
59140 2001-11-03  Jim Meyering  <meyering@lucent.com>
59141
59142         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59143         in argmatch_to_argument call.
59144
59145         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59146         argument.
59147
59148         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59149         e.g., a fault due to an attempt to free a NULL pointer.
59150
59151 2001-11-01  Jim Meyering  <meyering@lucent.com>
59152
59153         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59154         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59155
59156 2001-11-01  Jim Meyering  <meyering@lucent.com>
59157
59158         * lib/dirfd.c, lib/dirfd.h: New files.
59159         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59160
59161         * lib/hash.c (hash_print) [TESTING]: Clean up.
59162
59163 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59164
59165         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59166         to avoid a warning if -Wall.
59167
59168 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59169
59170         * README: New file
59171         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59172         (per RMS's instructions, this is now the canonical source)
59173         * lgpl/, gpl/: New directories.
59174
59175 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59176
59177         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59178
59179 2001-10-21  Jim Meyering  <meyering@lucent.com>
59180
59181         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59182         this code would end up calling gettext even in packages built
59183         with --disable-nls.
59184         * lib/getopt.c (_): Likewise.
59185         * lib/regex.c (_): Likewise.
59186
59187 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59188
59189         * m4/error.m4 (jm_PREREQ_ERROR):
59190         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59191         AC_FUNC_STRERROR_R does that.
59192         Check for strerror declaration.
59193
59194         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59195         are supposed to have them these days.
59196         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59197         Merge changes from latest Autoconf CVS.
59198         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59199         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59200         POSIX decided to standardize on the int flavor of strerror_r.
59201
59202 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59203
59204         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59205         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59206         Use strerror_r that is only a macro, even if it is not a function.
59207         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59208         (private_strerror): Use prototypes, not old-style function definition.
59209         (print_errno_message): New function.
59210         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59211         char*-flavored one.
59212         (error_tail, error, error_at_line): Use it.
59213
59214 2001-10-11  Jim Meyering  <meyering@lucent.com>
59215
59216         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59217         and quote_n (1, ... to avoid clobbering a buffer.
59218
59219 2001-10-05  Jim Meyering  <meyering@lucent.com>
59220
59221         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59222         hash-pjw.h.
59223         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59224         * lib/hash-pjw.h: New file.
59225
59226 2001-09-30  Jim Meyering  <meyering@lucent.com>
59227
59228         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59229         `struct fsstat' has the `f_fstypename' member.
59230         Use that to define FS_TYPE, which is now used to make
59231         the getfsstat link test tighter.
59232
59233 2001-09-30  Jim Meyering  <meyering@lucent.com>
59234
59235         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59236         Include <sys/ucred.h>, for Apple Darwin.
59237         Include sys/mount.h and sys/fs_types.h only if available.
59238         (FS_TYPE): Define.
59239         (read_filesystem_list): Use FS_TYPE.
59240
59241 2001-09-29  Paul Eggert  <eggert@twinsun.com>
59242
59243         * lib/exclude.c (excluded_filename): 0 -> false, since it's
59244         a boolean context.
59245
59246 2001-09-29  Jim Meyering  <meyering@lucent.com>
59247
59248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59249         [one-argument getmntent function]): Include stdio.h before mntent.h.
59250         SunOS 4.1.x needs it for the declaration of `FILE'.
59251         Patch by Volker Borchert.
59252
59253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59254         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59255         sys/fs_types.h, and make the link-test for getfsstat guard #include
59256         directives with appropriate #if HAVE_*_H tests so that we can
59257         detect getfsstat on Apple Darwin1.3.7 systems.
59258         Reported by Nelson Beebe.
59259         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59260
59261 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59262
59263         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59264         #defines strtoimax.  Also treat the other strto* functions
59265         like strtoimax.
59266
59267         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59268         Check for strtoul and strtoumax,
59269         as those declarations are made even in the signed case.
59270         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59271         Likewise, for strtol and strtoimax.
59272
59273 2001-09-28  Paul Eggert  <eggert@twinsun.com>
59274
59275         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59276         #defines strtoimax.  Also treat the other strto* functions
59277         like strtoimax.
59278
59279         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59280         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59281         (strtoimax, strtoumax): Do not declare if already defined as a macro.
59282
59283 2001-09-26  Jim Meyering  <meyering@lucent.com>
59284
59285         Most macros in unlocked-io.h had the wrong number of arguments.
59286         * lib/gen-uio: New script.
59287         (USE_UNLOCKED_IO): Define to 1 if not already defined.
59288         * lib/unlocked-io.hin: Remove file.
59289         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59290         rather than trying to embed it here.
59291         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
59292         Reported by Padraig Brady.
59293
59294 2001-09-25  Volker Borchert  <bt@teknon.de>
59295
59296         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59297         `result'.
59298
59299 2001-09-24  Jim Meyering  <meyering@lucent.com>
59300
59301         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59302
59303 2001-09-23  Jim Meyering  <meyering@lucent.com>
59304
59305         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59306         instead of the mere test for existence of mntent.h.  The latter
59307         would get a false-positive on AIX 3.4 systems.
59308         In the outer getmntent if-block, don't die if neither of the getmntent
59309         tests succeeds.  Instead, just fall through and continue with the
59310         remaining tests.
59311
59312 2001-09-23  Jim Meyering  <meyering@lucent.com>
59313
59314         * lib/mountlist.c: Remove useless parentheses in #if directives.
59315         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59316         the deprecated MOUNTED symbol is no longer defined in mntent.h.
59317
59318 2001-09-22  Jim Meyering  <meyering@lucent.com>
59319
59320         * m4/gettext.m4: New file.  From gettext.
59321         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59322         * m4/progtest.m4: Likewise
59323         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59324         * m4/glibc21.m4: Likewise.
59325
59326         * m4/libintl.m4: Remove.  No longer used.
59327
59328 2001-09-22  Jim Meyering  <meyering@lucent.com>
59329
59330         * lib/localcharset.c: Update from latest gettext.
59331         * lib/config.charset: Likewise.
59332
59333 2001-09-20  Jim Meyering  <meyering@lucent.com>
59334
59335         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59336         strtoimax.
59337         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59338         strtoumax.
59339
59340 2001-09-20  Jim Meyering  <meyering@lucent.com>
59341
59342         * lib/xstrtol.c (strtoimax): Guard declaration with
59343         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59344         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59345         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59346         (strtoumax): Likewise, for completeness (it wasn't necessary).
59347
59348 2001-09-17  Paul Eggert  <eggert@twinsun.com>
59349
59350         * lib/strtoimax.c (HAVE_LONG_LONG):
59351         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59352         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59353         to work around bug in IBM C compiler.
59354
59355 2001-09-17  Jim Meyering  <meyering@lucent.com>
59356
59357         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59358         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59359         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59360         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59361         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59362         whenever the right hand side need not be expanded by the shell.
59363
59364 2001-09-16  Paul Eggert  <eggert@twinsun.com>
59365
59366         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59367         library.  It's not correct, as some older glibcs are buggy.
59368         fnmatch wasn't fixed until glibc 2.2.
59369
59370         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59371         special shell magic here.
59372
59373 2001-09-16  Jim Meyering  <meyering@lucent.com>
59374
59375         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59376         * m4/jm-macros.m4: Require it.
59377
59378 2001-09-16  Jim Meyering  <meyering@lucent.com>
59379
59380         * lib/mkdir.c: New file.
59381
59382 2001-09-15  Jim Meyering  <meyering@lucent.com>
59383
59384         * m4/jm-macros.m4: Check for help2man.
59385
59386 2001-09-11  Jim Meyering  <meyering@lucent.com>
59387
59388         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59389         The body, by Paul Eggert, was moved here from configure.in.
59390         * m4/jm-macros.m4: Require UTILS_HOST_OS.
59391
59392 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59393
59394         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59395         (jm_PREREQ): Use it.
59396
59397 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59398
59399         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
59400         Use ssize_t, not int, to store result of readlink.
59401         Check for ssize_t overflow as well as size_t overflow,
59402         as POSIX says the result of readlink is implementation-defined
59403         when ssize_t overflows.
59404         Remove unnecessary cast to char*.
59405         Use free+malloc instead of realloc, as the storage doesn't need
59406         to be preserved and it's clearer and can be more efficient that way.
59407         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59408         * lib/xreadlink.h (xreadlink): Update prototype.
59409
59410 2001-09-04  Paul Eggert  <eggert@twinsun.com>
59411
59412         * lib/xgetcwd.c: Revert some of the previous change; intead,
59413         fix the HAVE_GETCWD_NULL code to behave more like the
59414         !HAVE_GETCWD_NULL code used to.
59415
59416         Include "xalloc.h".
59417         (xgetcwd): Do not return NULL when memory is exhausted; instead,
59418         invoke xalloc_die.
59419
59420 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59421
59422         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59423         sys/param.h, as pathmax.h includes them.
59424
59425 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59426
59427         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59428         (jm_PREREQ_XGETCWD): New macro.
59429
59430         * m4/getcwd.m4: New file.
59431
59432 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59433
59434         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59435         like the HAVE_GETCWD_NULL code.
59436         Include pathmax.h if not HAVE_GETCWD.
59437         Do not include xalloc.h.
59438         (INITIAL_BUFFER_SIZE): New symbol.
59439         Do not use xmalloc / xrealloc, since the caller is responsible for
59440         handling errors.  Preserve errno around `free' during failure.
59441         Do not overrun buffer when using getwd.
59442
59443 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59444
59445         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59446         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59447         getcwd (NULL, 0).
59448
59449 2001-09-03  Paul Eggert  <eggert@twinsun.com>
59450
59451         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59452         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
59453         spotted by Jim Meyering.
59454
59455 2001-09-03  Jim Meyering  <meyering@lucent.com>
59456
59457         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59458         failure.
59459
59460 2001-09-02  Jim Meyering  <meyering@lucent.com>
59461
59462         * lib/error.c: Update from GNU libc.
59463
59464 2001-09-01  Jim Meyering  <meyering@lucent.com>
59465
59466         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59467         Used by df.
59468
59469 2001-09-01  Jim Meyering  <meyering@lucent.com>
59470
59471         * lib/xreadlink.c: New file.
59472         * lib/xreadlink.h: New file.
59473         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59474         xreadlink.h.
59475
59476         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59477         doesn't conflict with sparc Solaris 7's definition in
59478         /usr/include/sys/int_types.h.
59479
59480         * lib/exclude.c: Use `""', not `<>' to #include non-system header
59481         files.
59482         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59483         and strncasecmp as r-values.  Unixware didn't have declarations.
59484
59485 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59486
59487         * lib/xstrtol.h: Add copyright notice.
59488         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59489         LONGINT_INVALID_SUFFIX_CHAR.
59490
59491 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59492
59493         * lib/xstrtol.c (strtoimax): New decl.
59494
59495 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59496
59497         * lib/xgetcwd.c: Don't include pathmax.h.
59498         Include stdlib.h and unistd.h if available.
59499         Include xalloc.h.
59500         (xmalloc, xstrdup, free): Remove decls.
59501         (xgetcwd): Don't assume sizes fit in unsigned.
59502         Check for overflow when computing sizes.
59503         Simplify reallocation code.
59504
59505 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59506
59507         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59508         a directory's st_size can have an arbitrary value, so the old
59509         usage could waste an arbitrary amount of memory.  All uses
59510         changed.
59511         * lib/savedir.h: Update prototype.
59512
59513 2001-08-31  Paul Eggert  <eggert@twinsun.com>
59514
59515         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59516
59517         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
59518         old strtoimax.c.
59519
59520         Also, make the following further changes to make this file's
59521         configuration more similar to that of strtol.c:
59522         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
59523         (strtoumax, uintmax_t, strtoull, strtol): Remove.
59524         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
59525         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
59526         changed to signed values.
59527
59528         And make the following changes as well:
59529         Fix copyright notice, as 1999 was missing.
59530         (verify): New macro.
59531         (strtoimax): Check sizes at compile-time, not run-time.
59532         Prefer strtol to strtoll if both work.
59533         (main): Remove; it was not that useful and was a pain to maintain.
59534
59535         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
59536
59537 2001-08-31  Jim Meyering  <meyering@lucent.com>
59538
59539         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
59540         Use an initial, malloc'd, buffer of length 128 rather than
59541         a statically allocated one of length 1024.
59542
59543 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59544
59545         Simplify code, partly by assuming autoconf 2.52 semantics.
59546
59547         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
59548
59549         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
59550         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
59551         All uses removed.
59552         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
59553         Move AC_REQUIRE to next-to-top level, to avoid confusion.
59554         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
59555         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
59556         jm_AC_HEADER_INTTYPES_H.
59557         * m4/jm-macros.m4 (jm_MACROS): Likewise.
59558
59559         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
59560
59561         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59562         Quote first arg of AC_DEFUN.
59563         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
59564         since they are needed to parse the include file even if we need
59565         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
59566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
59567         but with opposite signedness.
59568
59569 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59570
59571         Merge 'exclude' changes from tar 1.13.22.
59572         This fixes one or two unlikely storage allocation overflow bugs,
59573         but doesn't change user-visible behavior otherwise.
59574
59575 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59576
59577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
59578         (jm_PREREQ_EXCLUDE): New macro.
59579
59580 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59581
59582         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
59583         tm to be declared.
59584
59585 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59586
59587         * lib/hash.c: Remove '2001' from copyright notice.
59588
59589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59590
59591         * lib/full-write.h: New file.
59592         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
59593         * lib/full-write.c: Correct credits, as cccp.c no longer
59594         exists and anyway it was so heavily changed from the old cccp
59595         code as to be unrecognizable.  Include full-write.h.
59596         (full_write) Return size_t, with short writes meaning failure.
59597         All callers changed.  This fixes a bug with large buffers
59598         on 64-bit hosts.
59599         * lib/utime.c: Include full-write.h.
59600
59601 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59602
59603         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
59604         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
59605         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
59606         Include if available.
59607         (<xalloc.h>): Include
59608         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
59609         (verify): New macro.  Use it to verify that EXCLUDE macros do not
59610         collide with FNM macros.
59611         (struct patopts): New struct.
59612         (struct exclude): Use it, as exclude patterns now come with options.
59613         (new_exclude): Support above changes.
59614         (new_exclude, add_exclude_file):
59615         Initial size must now be a power of two to simplify overflow checking.
59616         (free_exclude, fnmatch_no_wildcards): New function.
59617         (excluded_filename): No longer requires options arg, as the options
59618         are determined by add_exclude.  Now returns bool, not int.
59619         (excluded_filename, add_exclude):
59620         Add support for the fancy new exclusion options.
59621         (add_exclude, add_exclude_file): Now takes int options arg.
59622         Check for arithmetic overflow when computing sizes.
59623         (add_exclude_file): xrealloc might modify errno, so don't
59624         realloc until after errno might be used.
59625
59626         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
59627         New macros.
59628         (free_exclude): New decl.
59629         (add_exclude, add_exclude_file): Now takes int options arg.
59630         (excluded_filename): No longer requires options arg, as the options
59631         are determined by add_exclude.  Now returns bool, not int.
59632
59633 2001-08-30  Paul Eggert  <eggert@twinsun.com>
59634
59635         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
59636
59637 2001-08-27  Jim Meyering  <meyering@lucent.com>
59638
59639         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
59640
59641         * lib/version-etc.c (N_): Remove definition.
59642         Revert most of last change.
59643         Instead, simply don't mark the `Copyright...' string for translation.
59644         Based on advice from Paul Eggert.
59645
59646         * lib/strtoxmax.c: Tweak comment.
59647
59648 2001-08-26  Jim Meyering  <meyering@lucent.com>
59649
59650         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
59651
59652         * m4/xstrtoimax.m4: New file.
59653         * m4/xstrtoumax.m4: Add comments explaining why we
59654         AC_REPLACE_FUNCS(strtol).
59655
59656 2001-08-26  Jim Meyering  <meyering@lucent.com>
59657
59658         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
59659         of copyright with `%s' so translators don't get an untranslated
59660         message in 2002.
59661         (COPYRIGHT_YEAR): Define.
59662         (version_etc): Use fprintf rather than fputs.
59663         Suggestion from Ulrich Drepper.
59664
59665         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
59666
59667         * lib/strtoll.c: New file, from GNU libc.
59668         * lib/xstrtoimax.c: New file.
59669
59670         * lib/xstrtol.h: Add xstrtoimax.
59671         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
59672         * lib/strtoimax.c: New file.  Likewise, but first define
59673         STRTOUXMAX_SIGNED.
59674
59675         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
59676         ...
59677         * lib/strtoxmax.c: ... then renamed to this.
59678
59679 2001-08-18  Paul Eggert  <eggert@twinsun.com>
59680
59681         * m4/inttypes.m4: Add AC_PREREQ(2.13).
59682         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
59683         (jm_AC_TYPE_INTMAX_T): New macro.
59684         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
59685
59686         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
59687
59688         * m4/longlong.m4: Renamed from ulonglong.m4.
59689         * m4/inttypes.m4: Renamed from inttypes_h.m4.
59690         * m4/uintmax_t.m4: Removed.
59691
59692 2001-08-13  Paul Eggert  <eggert@twinsun.com>
59693
59694         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
59695         Port to Solaris 8, where 'sed' requires a space after the 'r'
59696         command, and where sh dislikes "$/".  Clean up the spacing a bit.
59697         Redirect output to $tmp just once.
59698
59699 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
59700
59701         * lib/addext.c (<errno.h>): Include.
59702         (errno): Declare if not defined.
59703         (addext): Work correctly when pathconf returns -1 and leaves
59704         errno alone because there is no limit.  Also, work even if
59705         pathconf returns a value greater than SIZE_MAX.
59706
59707 2001-08-12  Jim Meyering  <meyering@lucent.com>
59708
59709         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
59710         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
59711         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
59712         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
59713         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
59714         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
59715         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
59716         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
59717         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
59718         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
59719         utime.m4, utimes.m4, xstrtoumax.m4:
59720         Quote the first argument in each use of AC_DEFUN.
59721
59722 2001-08-12  Jim Meyering  <meyering@lucent.com>
59723
59724         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
59725         Simply `return getcwd (NULL, 0);'.
59726         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
59727         Use 1300 as initial value for length, not PATH_MAX.
59728
59729         * lib/pathmax.h: Clean up cpp syntax.
59730
59731 2001-08-12  Jim Meyering  <meyering@lucent.com>
59732
59733         * lib/gettimeofday.c: New file.
59734         * lib/gtod.h: New file.
59735         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
59736
59737 2001-08-05  Jim Meyering  <meyering@lucent.com>
59738
59739         * m4/jm-macros.m4: Require autoconf-2.52.
59740
59741 2001-08-04  Jim Meyering  <meyering@lucent.com>
59742
59743         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
59744         stmt, to get in sync with glibc.
59745
59746 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59747
59748         The following changes are from gettext 0.10.39 as maintained by
59749         Bruno Haible.
59750
59751         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
59752         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
59753         with inverted sense.  All uses changed.
59754
59755         * lib/mbswidth.c: Don't include <limits.h>.
59756         Include <stdlib.h> and <string.h> unconditionally.
59757         (iswcntrl, mbsinit, ISCNTRL): New macros.
59758         (mbsnwidth): Use K&R style function declarations.
59759         Don't bother checking for MB_LEN_MAX == 1, since the compiler
59760         can optimize it when MB_CUR_MAX == 1.
59761         The width of control characters is zero, not 1.
59762
59763 2001-08-03  Paul Eggert  <eggert@twinsun.com>
59764
59765         The following changes are from gettext 0.10.39 as maintained by
59766         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
59767
59768         * m4/codeset.m4: Upgrade to serial AM1.
59769         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
59770         all uses changed.  Quote first arg of AC_DEFUN.
59771         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
59772
59773         * m4/iconv.m4: Upgrade to serial AM2.
59774         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
59775         Add --with-libconv-prefix.
59776         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
59777         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
59778         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
59779         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
59780         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
59781
59782         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
59783         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
59784         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
59785         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
59786         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
59787         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
59788         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
59789         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
59790         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
59791
59792         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
59793         string.h any more.
59794
59795         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
59796         not the default value.
59797
59798         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
59799         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
59800         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
59801         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
59802         Also check for iswcntrl, used for wcwidth fallback.
59803         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
59804         to Autoconf 2.13.
59805
59806 2001-08-03  Jim Meyering  <meyering@lucent.com>
59807
59808         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
59809         as it was in the original.  Reported by Paul Eggert.
59810
59811 2001-07-16  Jim Meyering  <meyering@lucent.com>
59812
59813         * m4/gettimeofday.m4: New file.
59814         Prompted by a report from Bernhard Baehr.
59815
59816 2001-07-15  Jim Meyering  <meyering@lucent.com>
59817
59818         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
59819         stuff. Now it's in ../Makefile.cfg.
59820
59821 2001-07-15  Jim Meyering  <meyering@lucent.com>
59822
59823         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
59824         (BUILT_SOURCES): Add unlocked-io.h.
59825         (io_functions): Define.
59826         (unlocked-io.h): New rule.
59827         (DISTCLEANFILES): Add unlocked-io.h.
59828         (all-local): Depend on unlocked-io.h, to ensure it is created.
59829
59830         * lib/unlocked-io.hin: New file
59831
59832         * lib/regex.c: Update from glibc.
59833
59834 2001-07-05  Jim Meyering  <meyering@lucent.com>
59835
59836         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
59837         recommendation.
59838         (libfetish_a_SOURCES): Put all .h files here instead.
59839         Remove a thus-exposed (better checks in automake) duplicate and
59840         two unnecessary .h files.
59841
59842 2001-07-04  Jim Meyering  <meyering@lucent.com>
59843
59844         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
59845         that generates jm-glibc-io.m4 so that it doesn't trigger any make
59846         distcheck failure.
59847
59848 2001-07-02  Jim Meyering  <meyering@lucent.com>
59849
59850         The following changes were prompted by suggestions from Bruno Haible.
59851
59852         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
59853         is now generated.
59854         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
59855         definition of EXTRA_DIST.
59856         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
59857         ensure that the generated file is created/updated whenever the list
59858         of $(unlocked_functions) is changed.
59859         (jm-glibc-io.m4): New rule.
59860         (unlocked-io.h): New rule -- currently unused.
59861
59862 2001-06-24  Jim Meyering  <meyering@lucent.com>
59863
59864         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
59865         unmatched right bracket, rather than kludging it with an extra,
59866         falsely-matching quote in a comment.  Patch by Akim Demaille.
59867
59868 2001-06-11  Jim Meyering  <meyering@lucent.com>
59869
59870         * lib/regex.c: Update from GNU libc.
59871
59872 2001-05-27  Jim Meyering  <meyering@lucent.com>
59873
59874         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
59875         Check for ut_type in struct utmp.
59876
59877 2001-05-27  Jim Meyering  <meyering@lucent.com>
59878
59879         * lib/readutmp.h (UT_TYPE): Define.
59880
59881 2001-05-24  Jim Meyering  <meyering@lucent.com>
59882
59883         * lib/argmatch.c: Include "quote.h".
59884         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
59885         quote function.  Reported by Göran Uddeborg.
59886
59887 2001-05-22  Jim Meyering  <meyering@lucent.com>
59888
59889         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
59890         now that we use the package-supplied version unconditionally.
59891         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
59892
59893 2001-05-21  Jim Meyering  <meyering@lucent.com>
59894
59895         * m4/regex.m4: Change a couple backticks to single quotes to avoid
59896         shell syntax errors.
59897
59898 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
59899
59900         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
59901
59902 2001-05-20  Paul Eggert  <eggert@twinsun.com>
59903
59904         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
59905         Don't bother to check library strftime, since
59906         we'll be using our own my_strftime function anyway.
59907         Define my_strftime instead of strftime.
59908
59909 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
59910
59911         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
59912         which is not yet declared.
59913
59914 2001-05-15  Jim Meyering  <meyering@lucent.com>
59915
59916         * m4/regex.m4: Use proper quoting so brackets appear in the test
59917         program.
59918         Reported by, and with help from, Bruno Haible.
59919
59920 2001-05-13  Jim Meyering  <meyering@lucent.com>
59921
59922         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
59923         undefined.
59924
59925 2001-05-11  Paul Eggert  <eggert@twinsun.com>
59926
59927         dirname code cleanup.  base_name now behaves more compatibly
59928         with POSIX basename when given file names that have trailing
59929         slashes, and similarly for dir_name.  Add new primitives
59930         base_len and dir_len.  Put the directory-name-related decls
59931         into dirname.h.
59932
59933         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
59934         * lib/backupfile.c (base_name): Likewise.
59935         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
59936         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
59937         * lib/makepath.c (strip_trailing_slashes): Likewise.
59938         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
59939         ISSLASH): Likewise.
59940         * lib/rename.c (strip_trailing_slashes): Likewise.
59941         * lib/same.c (base_name): Likewise.
59942         * lib/stripslash.c (ISSLASH): Likewise.
59943
59944         * lib/addext.c: Include <dirname.h> after size_t is defined.
59945         * lib/backupfile.c: Likewise.
59946
59947         * lib/addext.c (addext): Use base_len to trim redundant
59948         trailing slashes instead of doing it ourselves.
59949         But do not trim the last slash if it is not redundant.
59950
59951         * lib/backupfile.c (find_backup_file_name,
59952         max_backup_version): Use base_len instead of rolling it ourselves.
59953         Handle the case of "" and (on DOS) "C:" correctly.
59954
59955         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
59956         needed. Include <string.h>, <dirname.h>.
59957         (base_name): Allow file names ending in slashes, other than names
59958         that are all slashes.  In this case, return the basename followed
59959         by the slashes.  This is more general, and can be used in places
59960         where the original base_name purposely had an assertion failure.
59961         (base_len): New function.
59962
59963         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
59964         Do not include <assert.h>; no longer needed.
59965         Include xalloc.h.
59966         (memrchr): Remove decl.
59967         (dir_name_r): Remove.
59968         (dir_len): Renamed from dirlen.  All callers changed.
59969         Rewrite in terms of base_name, for simplicity and consistency.
59970         (dir_name): Never return NULL.  All callers changed.
59971         Do not include <stdlib.h> in test program; no longer needed.
59972         return 0; is fine for test program.
59973
59974         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
59975         New macros.
59976         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
59977
59978         * lib/path-concat.c (path_concat): Use base_len to compute
59979         base length, not strlen; this means we cannot rely on memcpy
59980         to null-terminate.
59981
59982         * lib/same.c (STREQ): Remove.
59983         (same_name): Handle the case where the basename ends in trailing '/'.
59984
59985         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
59986         a slash was stripped.  Do not strip the last slash after a
59987         file system prefix.
59988
59989 2001-05-11  Paul Eggert  <eggert@twinsun.com>
59990
59991         * lib/Makefile.am (libfetish_a_SOURCES):
59992         Add strftime.c, since we now compile it on all hosts.
59993
59994         * lib/strftime.c (my_strftime):
59995         Define to nstrftime if emacs, but only if my_strftime is not defined.
59996         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
59997         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
59998         Add one more extra argument: a nanoseconds value.
59999         All uses changed.
60000         (ns): New macro.
60001         (my_strftime function): Add %N format.
60002         (emacs_strftimeu): Renamed from emacs_strftime,
60003         with extra ut argument.
60004
60005 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60006
60007         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60008
60009 2001-04-21  Jim Meyering  <meyering@lucent.com>
60010
60011         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60012         doesn't interfere.
60013
60014 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60015
60016         * m4/ftruncate.m4: Check for chsize.
60017         Link with ftruncate.o unconditionally if ftruncate is missing.
60018         This was required when cross-compiling to i586-mingw32msvc.
60019
60020 2001-04-08  Jim Meyering  <meyering@lucent.com>
60021
60022         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60023         recomputed; that's necessary when the offset spans a DST transition.
60024         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60025
60026 2001-04-02  Jim Meyering  <meyering@lucent.com>
60027
60028         * lib/regex.h, regex.c: Update from GNU libc.
60029
60030 2001-03-24  Jim Meyering  <meyering@lucent.com>
60031
60032         * m4/jm-macros.m4: Require autoconf-2.49d.
60033
60034 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60035
60036         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60037
60038 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60039
60040         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60041
60042 2001-03-17  Jim Meyering  <meyering@lucent.com>
60043
60044         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60045         now that the version in autoconf is equivalent.
60046         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60047
60048         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60049         Suggestion from Akim Demaille.
60050
60051         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60052         (jm_PREREQ_TEMPNAME): New function.
60053
60054 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60055
60056         * lib/tempname.c (uint64_t): Define to uintmax_t if
60057         not defined, and if UINT64_MAX is not defined.
60058         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60059         Reported by John David Anglin.
60060
60061 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60062
60063         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60064         resolve alias if codeset is empty.
60065         * lib/config.charset (BeOS): Use wildcard syntax.
60066
60067 2001-03-13  Jim Meyering  <meyering@lucent.com>
60068
60069         * lib/path-concat.c (path_concat)
60070         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60071         concatenating e.g., `C:' and `foo'.
60072         From Bruno Haible.
60073
60074 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60075
60076         * lib/localcharset.c (locale_charset): Don't use
60077         setlocale(LC_CTYPE,NULL). Don't return NULL.
60078         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60079
60080 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60081
60082         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60083         support for DOS/DJGPP.
60084
60085 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60086
60087         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60088         lacks mkstemp.  Compile our own tempname.c if we compile our own
60089         mkstemp.c, as mkstemp relies on tempname.
60090
60091 2001-03-01  Jim Meyering  <meyering@lucent.com>
60092
60093         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60094         AH_VERBATIM really does output its argument verbatim.
60095
60096 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60097
60098         * lib/Makefile.am (libfetish_a_SOURCES):
60099         Add dup-safer.c, fopen-safer.c.
60100         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60101
60102         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60103         * lib/unistd-safer.h: New files.
60104
60105 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60106
60107         The mkstemp replacement is taken from glibc 2.2.2, with some
60108         portability fixes for use outside glibc, as follows:
60109
60110         * lib/tempname.c (struct_stat64): New macro.
60111         (direxists, __gen_tempname): Use it.
60112         This avoids a portability problem with Solaris 8.
60113
60114         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60115         (<stddef.h>, <stdint.h>, <string.h>):
60116         Include only if STDC_HEADERS || _LIBC.
60117         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60118         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60119         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60120         (__set_errno): Define this macro if <errno.h> doesn't.
60121         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60122         Define these macros if <stdio.h> doesn't.
60123         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60124         Define these macros if <sys/stat.h>
60125         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60126         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60127         __xstat64): Define if not _LIBC.
60128         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60129         (__gen_tempname): Invoke gettimeofday only if
60130         HAVE_GETTIMEOFDAY || _LIBC;
60131         otherwise, fall back on plain "time".
60132         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60133
60134         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60135
60136         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60137
60138 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60139
60140         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60141
60142 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60143
60144         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60145         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60146         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60147         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60148
60149 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60150
60151         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60152         Remove workaround macros for hosts that have mbrtowc but not
60153         mbstate_t, as we now insist on proper declarations for both
60154         before using mbrtowc.
60155
60156 2001-02-17  Jim Meyering  <meyering@lucent.com>
60157
60158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60159         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60160         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60161         UnixWare 7.1.1.
60162
60163         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60164         rather than AC_CACHE_VAL.
60165
60166 2001-02-17  Jim Meyering  <meyering@lucent.com>
60167
60168         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60169         around included file name.
60170
60171         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60172
60173         * lib/strftime.c: Update from GNU libc (the only changes were to
60174         comments).
60175
60176 2001-02-17  Jim Meyering  <meyering@lucent.com>
60177
60178         * lib/regex.c: Update from libc.
60179
60180 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60181
60182         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60183         clash.
60184
60185 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60186
60187         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60188         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60189         Reported by Mark Hounschell via Paul Eggert.
60190
60191 2001-02-07  Jim Meyering  <meyering@lucent.com>
60192
60193         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60194
60195 2001-02-05  Jim Meyering  <meyering@lucent.com>
60196
60197         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60198         it includes the patch required for `large file' support with at least
60199         HP-UX's 10.20 /bin/cc.
60200
60201 2001-02-03  Jim Meyering  <meyering@lucent.com>
60202
60203         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60204         AS_IF, now that it works once again (mysteriously).
60205         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60206
60207 2001-01-30  Jim Meyering  <meyering@lucent.com>
60208
60209         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60210         * m4/chown.m4: Rename conftestchown to conftest.chown.
60211         * m4/rename.m4: s/conftestdir/conftest.d1/ and
60212         s/conftestdir2/conftest.d2/.
60213         * m4/utimes.m4: s/conftestdata/conftest.data/
60214         Inspired by Pavel Roskin's change in autoconf.
60215
60216 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
60217
60218         * lib/config.charset: Update for FreeBSD 4.2.
60219
60220 2001-01-27  Jim Meyering  <meyering@lucent.com>
60221
60222         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60223         a use of AS_IF.
60224         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60225
60226 2001-01-26  Jim Meyering  <meyering@lucent.com>
60227
60228         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60229         quotearg.c includes it.
60230
60231 2001-01-26  Jim Meyering  <meyering@lucent.com>
60232
60233         * lib/quotearg.c: Include stddef.h.
60234         * lib/quote.c: Include stddef.h.
60235         Reported by Axel Kittenberger.
60236
60237         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60238         line in double quotes so that it evokes a better diagnostic.
60239         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60240         Reported by Axel Kittenberger.
60241
60242 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
60243
60244         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60245         as if it was a `charset'.
60246
60247 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60248
60249         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60250         has const.
60251
60252 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
60253
60254         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60255         to avoid a warning.  Add back 'const' to inptr.
60256
60257 2001-01-20  Jim Meyering  <meyering@lucent.com>
60258
60259         Be sure that headers are checked before used in code compiled
60260         for the type checks.
60261         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60262         In place of that, invoke jm_CHECK_ALL_TYPES.
60263         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60264         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60265         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60266         The check for ssize_t was mistakenly run before the test for unistd.h.
60267
60268         The configure-time check for stdbool.h was missing.
60269         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60270         (jm_PREREQ_HASH): New function.
60271
60272 2001-01-17  Jim Meyering  <meyering@lucent.com>
60273
60274         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60275         for autoconf-2.49c.
60276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60277
60278 2001-01-16  Jim Meyering  <meyering@lucent.com>
60279
60280         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60281         From Bruno Haible.
60282
60283 2001-01-14  Jim Meyering  <meyering@lucent.com>
60284
60285         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60286         foo and bar.  Create conftestdir/ in the script, not in the C code.
60287         Remove directories in the script, not in the C code.
60288         Remove conftestdir{,2} before trying to create the directory.
60289         Make the entire configure script fail if the mkdir fails.
60290
60291 2001-01-14  Jim Meyering  <meyering@lucent.com>
60292
60293         * lib/rename.c: New file.  From Volker Borchert.
60294         Include stdlib.h, string.h or strings.h, and xalloc.h.
60295         Use strip_trailing_slashes rather than open-coding it.
60296
60297 2001-01-03  Paul Eggert  <eggert@twinsun.com>
60298
60299         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60300
60301 2001-01-03  Jim Meyering  <meyering@lucent.com>
60302
60303         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60304         of local `inptr' to avoid warning with some system declarations of
60305         iconv.
60306
60307 2001-01-02  Volker Borchert  <bt@teknon.de>
60308
60309         * m4/rename.m4: New file.
60310         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60311
60312 2001-01-01  Jim Meyering  <meyering@lucent.com>
60313
60314         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60315         even on systems with utmpx.h.  It's necessary for the declaration of
60316         utmp's ut_user member.  Reported by Andreas Jaeger.
60317
60318         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60319         available. They are required for the declarations of getgrgid and
60320         getpwuid resp.
60321         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60322         Reported by Andreas Jaeger.
60323
60324 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
60325
60326         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60327         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60328         so `make install' also works in VPATH builds.
60329
60330 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
60331
60332         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60333         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60334         can be used in subdirectories.
60335
60336 2000-12-29  Paul Eggert  <eggert@twinsun.com>
60337
60338         * lib/modechange.c: Do not assume that mode_t uses the
60339         traditional octal encoding.  E.g. "chmod 1 FOO" should set
60340         the other-execute bit of FOO even if S_IXOTH != 1.
60341
60342         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60343         WOTH, XOTH, ALLM): New macros.
60344         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60345          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60346         Use them.
60347         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60348         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60349         (mode_compile):
60350         No need to use uintmax_t; unsigned long is long enough.
60351         Don't bother to get suffix since we don't use it.
60352
60353 2000-12-26  Jim Meyering  <meyering@lucent.com>
60354
60355         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60356         better with autoheader.
60357
60358 2000-12-24  Jim Meyering  <meyering@lucent.com>
60359
60360         * lib/hash.c (is_prime): Return explicit boolean values.
60361         (hash_get_first): Return NULL to appease Irix5.6's 89.
60362         Reported by Nelson Beebe.
60363
60364 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
60365
60366         * lib/localcharset.c (locale_charset): Add support for Win32.
60367
60368 2000-12-18  Paul Eggert  <eggert@twinsun.com>
60369
60370         * lib/physmem.h, lib/physmem.c: New files.
60371
60372         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60373         (noinst_HEADERS): Add physmem.h.
60374
60375         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60376         't' for compatibility with Solaris 8 sort.
60377
60378 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
60379
60380         * lib/config.charset: Add support for BeOS.
60381
60382 2000-12-17  Jim Meyering  <meyering@lucent.com>
60383
60384         * m4/dos.m4 (jm_AC_DOS): New file and macro.
60385         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60386
60387 2000-12-16  Jim Meyering  <meyering@lucent.com>
60388
60389         This bug had a serious impact on chown: `chown N:M FILE' (for integer
60390         N and M) would have treated it like `chown N:N FILE'.
60391
60392         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60393
60394 2000-12-16  Jim Meyering  <meyering@lucent.com>
60395
60396         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60397         SHELLS_FILE to a file name that's useful on djgpp systems.
60398         Include stdlib.h.
60399         (ADDITIONAL_DEFAULT_SHELLS): Define.
60400         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60401         Based mostly on a patch from Prashant TR.
60402
60403 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
60404
60405         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60406         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60407         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60408
60409 2000-12-08  Andreas Schwab  <schwab@suse.de>
60410
60411         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60412         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60413
60414 2000-12-07  Jim Meyering  <meyering@lucent.com>
60415
60416         * lib/stripslash.c (ISSLASH): Define.
60417         (strip_trailing_slashes): Use ISSLASH rather than comparing against
60418         `/'.
60419         From Prashant TR.
60420
60421         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60422         (dir_name_r): Declare this function as static.
60423         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60424         manifest itself on a name containing a mix of slashes and
60425         backslashes.
60426         Make this function work with names starting with a DOS-style
60427         drive letter and colon prefix.
60428         (dir_name): Append `.' if necessary.
60429         Based mostly on patches from Prashant TR and Eli Zaretskii.
60430
60431         * lib/dirname.h (dir_name_r): Remove prototype.
60432
60433 2000-12-06  Paul Eggert  <eggert@twinsun.com>
60434
60435         * m4/off_t-format.m4: Remove this file.
60436         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60437
60438 2000-12-06  Jim Meyering  <meyering@lucent.com>
60439
60440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60441         replacement strtoull, we may well need the replacement strtoul, too.
60442         Check for declarations of strtoul and strtoull.
60443         Check for strtol.  Mainly as a cue to cause automake to include
60444         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60445         Check for limits.h -- strtol.c needs it.
60446
60447 2000-12-05  Jim Meyering  <meyering@lucent.com>
60448
60449         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60450
60451 2000-12-04  Jim Meyering  <meyering@lucent.com>
60452
60453         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60454         Also include memory.h, stdlib.h, unistd.h if appropriate.
60455         Reported by Andreas Jaeger (conflicting declaration of malloc).
60456
60457 2000-12-02  Jim Meyering  <meyering@lucent.com>
60458
60459         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60460         * m4/jm-macros.m4 (jm_MACROS): require it.
60461
60462 2000-12-02  Jim Meyering  <meyering@lucent.com>
60463
60464         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60465
60466 2000-12-01  Paul Eggert  <eggert@twinsun.com>
60467
60468         * lib/memrchr.c: Include <config.h> before any system include file.
60469
60470 2000-11-30  Jim Meyering  <meyering@lucent.com>
60471
60472         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60473
60474 2000-11-30  Jim Meyering  <meyering@lucent.com>
60475
60476         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60477
60478 2000-11-29  Paul Eggert  <eggert@twinsun.com>
60479
60480         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60481
60482 2000-11-26  Jim Meyering  <meyering@lucent.com>
60483
60484         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
60485
60486 2000-11-22  Paul Eggert  <eggert@twinsun.com>
60487
60488         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60489         size of (size_t) -1; it's not portable.
60490
60491 2000-11-17  Jim Meyering  <meyering@lucent.com>
60492
60493         * lib/strstr.c: Update from GNU libc.
60494
60495 2000-11-17  Akim Demaille  <akim@epita.fr>
60496
60497         * lib/obstack.h: Formatting changes.
60498         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60499         prevent type checking.
60500         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60501         cast the value to (void *): assigning a `foo *' to a `void *'
60502         variable is valid.
60503         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60504
60505 2000-11-16  Jim Meyering  <meyering@lucent.com>
60506
60507         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60508
60509 2000-11-11  Jim Meyering  <meyering@lucent.com>
60510
60511         * lib/error.c: Add a couple #includes, merging from GNU libc version.
60512
60513 2000-11-10  Jim Meyering  <meyering@lucent.com>
60514
60515         * lib/obstack.h: Update from GNU libc.
60516         * lib/obstack.c: Likewise.
60517
60518 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
60519
60520         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
60521
60522 2000-11-06  Paul Eggert  <eggert@twinsun.com>
60523
60524         * lib/getusershell.c (setusershell): Use rewind rather than
60525         fseek/fseeko, to avoid configuration hassles with fseeko.
60526         Don't bother opening SHELLS_FILE if shellstream is NULL;
60527         it's not necessary.
60528
60529 2000-11-05  Jim Meyering  <meyering@lucent.com>
60530
60531         * lib/makepath.h (make_dir): Declare.
60532         * lib/makepath.c (make_dir): Remove `static' attribute.
60533         Tweak a comment.
60534
60535 2000-11-04  Jim Meyering  <meyering@lucent.com>
60536
60537         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
60538
60539 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
60540
60541         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
60542         last one in a bucket, advance to the next bucket.
60543
60544 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
60545
60546         * lib/fnmatch.c: Do not comment out all the code if we are using
60547         the GNU C library, because in some cases we are replacing buggy
60548         code in the GNU C library itself.
60549
60550 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
60551
60552         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
60553         (regex_compile): Catch bogus \(\1\).
60554
60555 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60556
60557         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
60558         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
60559         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
60560
60561 2000-10-30  Paul Eggert  <eggert@twinsun.com>
60562
60563         * lib/error.h, getline.h, modechange.h:
60564         Remove "2000" from Copyright line, as the file hasn't been
60565         changed this year other than in the copyright notice.
60566
60567         * lib/xalloc.h: Add "2000" to Copyright line, as this file
60568         was changed this year.
60569
60570 2000-10-29  Jim Meyering  <meyering@lucent.com>
60571
60572         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
60573         renaming.
60574         * m4/ls-mntd-fs.m4: Likewise
60575
60576 2000-10-29  Jim Meyering  <meyering@lucent.com>
60577
60578         * lib/xstat.in: Fix grammar in comment.
60579
60580 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
60581
60582         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
60583         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
60584         doesn't define __restrict_arr.
60585
60586 2000-10-28  Jim Meyering  <meyering@lucent.com>
60587
60588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
60589         (jm_PREREQ_MEMCHR): New function.
60590
60591 2000-10-28  Jim Meyering  <meyering@lucent.com>
60592
60593         * lib/memchr.c: Update from libc.
60594         Adjust for portability:
60595         [HAVE_STDLIB_H]: Include stdlib.h.
60596         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
60597         Undef __memchr, too.
60598         [!weak_alias]: Define __memchr to memchr.
60599
60600         * lib/regex.c: Update from libc.
60601         * lib/regex.h: Likewise.
60602         * lib/getopt1.c: Likewise.
60603         * lib/memcmp.c: Likewise.
60604
60605         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
60606         Avoid using fseek, when possible -- it's broken by design.
60607         Patch by Ulrich Drepper.
60608
60609 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
60610
60611         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
60612         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
60613         Giving in to popular pressure to shut up the compiler with casts.
60614
60615 2000-10-26  Jim Meyering  <meyering@lucent.com>
60616
60617         * lib/strftime.c: Update from libc.
60618
60619 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
60620
60621         * regex.c: More `unsigned char' -> `re_char' changes.
60622         Also change several `int' into `re_wchar_t'.
60623         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
60624         (PUSH_FAILURE_POINTER): Don't cast any more.
60625         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
60626         We want GCC to complain, since this piece of code makes
60627         re_match non-reentrant, which *should* be fixed.
60628         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
60629         (EXTEND_BUFFER): Use RETALLOC.
60630         (SET_LIST_BIT): Don't cast.
60631         (re_wchar_t): New type.
60632         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
60633         that those two functions will always properly return.
60634         (IMMEDIATE_QUIT_CHECK): Cast to void.
60635         (analyse_first): Use recursion rather than an explicit stack.
60636         (re_compile_fastmap): Can't fail anymore.
60637         (re_search_2): Don't check re_compile_fastmap for failure.
60638         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
60639         Now also sets the new value (passed in a new argument).
60640         (re_match_2_internal): Use it.
60641         Also, use a new var `reg' of type size_t when looping through regs
60642         rather than reuse the inappropriate `mcnt'.
60643
60644 2000-10-25  Jim Meyering  <meyering@lucent.com>
60645
60646         * lib/obstack.c: Update from libc.
60647
60648 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
60649
60650         * regex.c (regex_compile): Change the way of handling a range from
60651         a char less than 256 to a char not less than 256.
60652
60653 2000-10-24  Andrew Innes  <andrewi@gnu.org>
60654
60655         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
60656         NT-Emacs only.
60657         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
60658         so that re_search functions only quit when callers expect them to.
60659
60660 2000-10-23  Jim Meyering  <meyering@lucent.com>
60661
60662         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
60663         wrong.  That set_locale call must not have any side effects.
60664         From Paul Eggert.
60665
60666 2000-10-22  Jim Meyering  <meyering@lucent.com>
60667
60668         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
60669         [CYCLIC]: Remove now-unused definition.
60670
60671         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
60672         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
60673         Suggestion from Ulrich Drepper.
60674
60675 2000-10-21  Jim Meyering  <meyering@lucent.com>
60676
60677         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
60678         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
60679         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
60680
60681 2000-10-21  Jim Meyering  <meyering@lucent.com>
60682
60683         * lib/dirname.c (memrchr): Declare if necessary.
60684         (dir_name): Remove the restriction that there be no
60685         trailing slashes.  Now, this code skips past them, effectively
60686         ignoring them.
60687         [TEST_DIRNAME] (main): New unit tests.
60688
60689         * lib/memrchr.c: New file from GNU libc.
60690         Undef __memrchr, too.
60691         [!weak_alias]: Define __memrchr to memrchr.
60692         Guard weak_alias use with `#ifdef weak_alias'.
60693
60694 2000-10-21  Jim Meyering  <meyering@lucent.com>
60695
60696         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
60697         (dir_name): Use dir_name_r.
60698         * lib/dirname.h (dir_name_r): Declare it.
60699
60700 2000-10-17  Jim Meyering  <meyering@lucent.com>
60701
60702         * lib/quote.h (PARAMS): Define and use.
60703         Reported by Akim Demaille.
60704
60705         * lib/getopt.c: Update from libc.
60706
60707 2000-10-16  Jim Meyering  <meyering@lucent.com>
60708
60709         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
60710         setlocale.
60711         From Jan Fedak.
60712
60713 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
60714
60715         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
60716
60717 2000-09-25  Jim Meyering  <meyering@lucent.com>
60718
60719         * lib/md5.h (rol): Define (from GnuPG).
60720
60721         * lib/sha.c: Give credit (GnuPG) where due.
60722         (M): Use rol rather than open-coding it.
60723         Add a FIXME comment.
60724
60725 2000-09-21  Jim Meyering  <meyering@lucent.com>
60726
60727         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
60728         Reported by Michael Stone.
60729
60730 2000-09-20  Jim Meyering  <meyering@lucent.com>
60731
60732         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
60733         (noinst_HEADERS): Add sha.h.
60734         Based on code from Scott G. Miller and from GnuPG.
60735
60736 2000-09-18  Jim Meyering  <meyering@lucent.com>
60737
60738         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
60739         LIBS. Otherwise, everyone ends up linking with -lelf for some
60740         configurations.
60741         Reported by Mike Stone.
60742
60743 2000-09-15  Jim Meyering  <meyering@lucent.com>
60744
60745         * lib/regex.c: Update from libc.
60746
60747 2000-09-10  Jim Meyering  <meyering@lucent.com>
60748
60749         * lib/getopt.c (_getopt_internal): Update from glibc.
60750
60751 2000-09-09  Jim Meyering  <meyering@lucent.com>
60752
60753         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
60754         think it should be used as a general replacement for isascii.
60755         * lib/fnmatch.c: Likewise.
60756         * lib/mbswidth.c: Likewise
60757         * lib/regex.c: Likewise.
60758
60759         Don't use atoi.
60760         * lib/userspec.c: Include sys/param.h and limits.h.
60761         Include xstrtol.h.
60762         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60763         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
60764         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
60765         UID, GID.  Check range.
60766
60767 2000-09-06  Jim Meyering  <meyering@lucent.com>
60768
60769         * lib/getopt.c (_getopt_internal): Update from glibc.
60770
60771 2000-08-30  Jim Meyering  <meyering@lucent.com>
60772
60773         * lib/strftime.c: Merge in changes from GNU libc.
60774
60775 2000-08-26  Jim Meyering  <meyering@lucent.com>
60776
60777         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
60778         * m4/fpending.m4: New file.
60779
60780 2000-08-26  Jim Meyering  <meyering@lucent.com>
60781
60782         * lib/closeout.c: Include "__fpending.h".
60783         (close_stdout_status): Return right away if there's nothing to flush.
60784
60785         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
60786         * lib/__fpending.c: New file.
60787         * lib/__fpending.h: New file.
60788
60789 2000-08-20  Jim Meyering  <meyering@lucent.com>
60790
60791         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
60792         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
60793         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
60794
60795 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
60796
60797         Improve fileutils installation on systems where running
60798         programs (like install) can't be unlinked.
60799         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
60800         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
60801
60802 2000-08-07  Paul Eggert  <eggert@twinsun.com>
60803
60804         Standardize on "memory exhausted" instead of "Memory exhausted"
60805         or "virtual memory exhausted".
60806         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
60807         "virtual memory exhausted".
60808         * lib/same.c (same_name): Invoke xalloc_die instead of printing
60809         our own message.
60810         * lib/userspec.c (parse_user_spec): Likewise.
60811         * lib/bumpalloc.h: comment fix
60812         * lib/same.c, userspec.c: Include xalloc.h.
60813
60814         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
60815         not char *const and pointing to a constant array.
60816         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
60817         (xrealloc): Comment fix.
60818
60819         * lib/userspec.c (parse_user_spec):
60820         Don't translate a message until just before returning,
60821         to avoid unnecessary translation.
60822
60823 2000-08-07  Jim Meyering  <meyering@lucent.com>
60824
60825         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
60826         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
60827         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
60828         getgroups.c, gethostname.c, getopt.h, group-member.c,
60829         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
60830         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
60831         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
60832         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
60833         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
60834         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
60835         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
60836         yesno.c: Back out Copyright date changes for each file with no change
60837         this year.  This eases coordination with other programs using the same
60838         source code modules.  From Paul Eggert.
60839
60840 2000-08-06  Paul Eggert  <eggert@twinsun.com>
60841
60842         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
60843         not char, for compatibility with glibc 2.1.3 strftime.c.
60844
60845 2000-08-03  Greg McGary  <greg@mcgary.org>
60846
60847         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
60848         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
60849         (EXTEND_BUFFER): Use them.
60850
60851 2000-08-01  Jim Meyering  <meyering@lucent.com>
60852
60853         * lib/dirname.c (ISSLASH): Define.
60854         (BACKSLASH_IS_PATH_SEPARATOR): Define.
60855         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
60856         both `\' and `/' may be use as path separators.
60857         Based on a patch from Prashant TR.
60858
60859 2000-07-31  Paul Eggert  <eggert@twinsun.com>
60860
60861         * lib/quotearg.c (quotearg_n_options): Don't make the initial
60862         slot vector a constant, since it might get modified.
60863
60864 2000-07-31  Jim Meyering  <meyering@lucent.com>
60865
60866         * lib/xmalloc.c: Use `virtual memory exhausted', not
60867         `Memory exhausted'.
60868         * lib/obstack.c (print_and_abort): Likewise.
60869
60870 2000-07-30  Paul Eggert  <eggert@twinsun.com>
60871
60872         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
60873         buffer, so that the caller can always quote one small
60874         component of a "memory exhausted" message in slot 0.
60875         From a suggestion by Jim Meyering.
60876
60877 2000-07-30  Jim Meyering  <meyering@lucent.com>
60878
60879         * lib/makepath.c (make_path): Quote the other instance, too.
60880
60881         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
60882         (STATIC_BUF_SIZE): Define.
60883         (quotearg_n_options): Use only statically allocated storage when
60884         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
60885         than STATIC_BUF_SIZE.
60886
60887 2000-07-29  Jim Meyering  <meyering@lucent.com>
60888
60889         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
60890         * lib/dirname.c (dir_name): Likewise.
60891
60892         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
60893         `/'.
60894
60895         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
60896         (dir_name): Assert that there are no trailing slashes.
60897
60898 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
60899
60900         * lib/mbswidth.h (mbswidth): Add a flags argument.
60901         (mbswidth): New declaration.
60902         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
60903         * lib/mbswidth.c (mbswidth): Add a flags argument.
60904         (mbsnwidth): New function.
60905
60906 2000-07-24  Jim Meyering  <meyering@lucent.com>
60907
60908         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
60909
60910 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60911
60912         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
60913
60914 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60915
60916         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
60917         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
60918         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
60919         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
60920         invoke multibyte primitives.
60921
60922 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60923
60924         * lib/quotearg.c:
60925         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
60926         so that mbstate_t is always defined.
60927
60928         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
60929         be 1 in at least one GCC installation, and this configuration
60930         error is likely to be common.  Ignoring MB_LEN_MAX hurts
60931         performance on hosts that have mbrtowc but have only unibyte
60932         locales, but I assume these hosts are rare.
60933
60934 2000-07-23  Paul Eggert  <eggert@twinsun.com>
60935
60936         * lib/mbswidth.c (_XOPEN_SOURCE):
60937         Don't define; this causes problems on Solaris 7.
60938         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
60939
60940 2000-07-23  Jim Meyering  <meyering@lucent.com>
60941
60942         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
60943         too: getgrgid, getpwuid, getuid.
60944
60945 2000-07-23  Jim Meyering  <meyering@lucent.com>
60946
60947         * lib/basename.c (base_name): Add an assertion.
60948
60949 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
60950
60951         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
60952         shadow its mbsinit function.
60953
60954 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
60955
60956         * lib/mbswidth.h: New file.
60957         * lib/mbswidth.c: New file.
60958         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
60959         (noinst_HEADERS): Add mbswidth.h.
60960
60961 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
60962
60963         * lib/config.charset: Add support for FreeBSD. Improve support for
60964         HP-UX and IRIX 6.
60965
60966 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
60967
60968         * m4/mbswidth.m4: New file.
60969         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
60970
60971 2000-07-15  Jim Meyering  <meyering@lucent.com>
60972
60973         * lib/makepath.c: Include quote.h.
60974         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
60975         corresponding argument in a `quote (...)' call.
60976         Give better diagnostics.
60977
60978         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
60979         (noinst_HEADERS): Add quote.h.
60980
60981         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
60982         from tar's src/misc.c.
60983         * lib/quote.h: New file.  Prototypes for same.
60984
60985 2000-07-14  Paul Eggert  <eggert@twinsun.com>
60986
60987         From a suggestion by Bruno Haible.
60988         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
60989         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
60990         to decide whether to define the BeOS workaround macro;
60991         this adjusts to the change to AC_MBSTATE_T.
60992
60993 2000-07-14  Jim Meyering  <meyering@lucent.com>
60994
60995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
60996         jm_AC_TYPE_UINTMAX_T.
60997
60998 2000-07-13  Paul Eggert  <eggert@twinsun.com>
60999
61000         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61001
61002         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61003         quotearg_buffer_restyled): Add support for
61004         clocale_quoting_style.  Undo previous change to
61005         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61006         and "{RIGHT QUOTATION MARK}" msgids.
61007
61008 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61009
61010         From a suggestion by Bruno Haible.
61011         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61012         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61013         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61014         and mbstate_t, to a single-part test that simply defines mbstate_t.
61015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61016         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61017
61018 2000-07-10  Jim Meyering  <meyering@lucent.com>
61019
61020         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61021
61022         * m4/gnu-source.m4: Output to confdefs.h directly.
61023         Suggestion from Akim Demaille.
61024
61025 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61026
61027         The old behavior of quoting `like this' doesn't look good with
61028         newer, ISO-style fonts.  See:
61029         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61030
61031         Instead, quote "like this" by default.  Let the translator
61032         tailor the locale-specific quoting behavior by providing
61033         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61034
61035         * lib/quotearg.c (N_): New macro.
61036         (gettext_default): New function.
61037         (quotearg_buffer_restyled): Use
61038         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61039         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61040
61041 2000-07-09  Jim Meyering  <meyering@lucent.com>
61042
61043         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61044         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61045
61046         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61048
61049 2000-07-09  Jim Meyering  <meyering@lucent.com>
61050
61051         * lib/Most files: Update copyright dates to include 2000.
61052
61053 2000-07-08  Jim Meyering  <meyering@lucent.com>
61054
61055         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61056         if not defined.
61057         (xgethostname): Remove now-unnecessary #ifdef.
61058         Move declaration of `err' into loop where it's used.
61059
61060 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61061         and Bruno Haible  <haible@clisp.cons.org>
61062
61063         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61064         only if the test for an object-type mbstate_t fails.  This
61065         prevents us from mistakenly reporting that mbstate_t is a
61066         system object type after we "#define mbstate_t int" to work
61067         around its lack.
61068
61069 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61070         and Bruno Haible  <haible@clisp.cons.org>
61071
61072         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61073
61074 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61075
61076         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61077         to strerror_r.
61078         Include <ctype.h> for use of isalpha.
61079
61080 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61081
61082         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61083         by allocating a larger buffer. Test the gethostname return value for
61084         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61085         returns an error and ENAMETOOLONG isn't defined.
61086
61087 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61088
61089         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61090         dimension.
61091
61092 2000-07-04  Jim Meyering  <meyering@lucent.com>
61093
61094         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61095         of the deprecated AC_CHECKING.
61096
61097 2000-07-04  Jim Meyering  <meyering@lucent.com>
61098
61099         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61100         Reported by Bruno Haible.
61101
61102 2000-07-04  Jim Meyering  <meyering@lucent.com>
61103
61104         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61105         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61106         lacks mbrtowc.
61107
61108 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61109
61110         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61111         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61112
61113 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61114         and Bruno Haible  <haible@clisp.cons.org>
61115
61116         * lib/quotearg.c (mbrtowc):
61117         Assign to *pwc, and return 1 only if result is nonzero.
61118         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61119
61120 2000-07-03  Jim Meyering  <meyering@lucent.com>
61121
61122         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61123
61124 2000-07-03  Jim Meyering  <meyering@lucent.com>
61125
61126         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61127         This is necessary to get a definition of e.g., UTMP_FILE on
61128         HP-UX 10.20.
61129         From Bob Proulx.
61130
61131 2000-07-02  Jim Meyering  <meyering@lucent.com>
61132
61133         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61134
61135         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61136         AC_LIBOBJ(function_name).
61137         * m4/chown.m4: Likewise.
61138         * m4/fnmatch.m4: Likewise.
61139         * m4/ftruncate.m4: Likewise.
61140         * m4/getgroups.m4: Likewise.
61141         * m4/getline.m4: Likewise.
61142         * m4/group-member.m4: Likewise.
61143         * m4/jm-macros.m4: Likewise.
61144         * m4/lstat.m4: Likewise.
61145         * m4/malloc.m4: Likewise.
61146         * m4/memcmp.m4: Likewise.
61147         * m4/nanosleep.m4: Likewise.
61148         * m4/putenv.m4: Likewise.
61149         * m4/realloc.m4: Likewise.
61150         * m4/regex.m4: Likewise.
61151         * m4/stat.m4: Likewise.
61152         * m4/strftime.m4: Likewise.
61153
61154 2000-07-02  Jim Meyering  <meyering@lucent.com>
61155
61156         * lib/quotearg.c (mbstate_t): Don't define here.
61157
61158 2000-07-02  Jim Meyering  <meyering@lucent.com>
61159
61160         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61161
61162 2000-07-01  Jim Meyering  <meyering@lucent.com>
61163
61164         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61165
61166 2000-07-01  Jim Meyering  <meyering@lucent.com>
61167
61168         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61169         problem.
61170
61171 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61172
61173         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61174         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61175
61176 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61177
61178         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61179         per change in ../m4/ls-mntd-fs.m4.
61180         (read_filesystem_list): Ignore symbolic links.
61181
61182 2000-06-29  Jim Meyering  <meyering@lucent.com>
61183
61184         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61185         for declaration of strcmp.
61186
61187         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61188
61189         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61190         Avoid warning by casting result to `char *' to remove `const'.
61191
61192 2000-06-28  Jim Meyering  <meyering@lucent.com>
61193
61194         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61195         included by quotearg.c, for which we perform this test.  From
61196         Bruno Haible.
61197
61198 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61199
61200         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61201         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61202         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61203
61204 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61205
61206         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61207
61208 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61209
61210         savedir now sets errno on failure and invokes xmalloc to get memory.
61211         Fix a couple of other minor bugs while we're at it.
61212
61213         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61214         (NAMLEN): Remove macro.
61215         (malloc, realloc): Remove decls.
61216         (stpcpy): Likewise.
61217         ("xalloc.h"): Include.
61218         (NAME_SIZE_DEFAULT): New macro.
61219         (savedir): Use xmalloc / xrealloc to allocate memory.
61220         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61221         Skip "" directory entries.
61222         Use strlen to calculate directory entry length, since the old method
61223         is rarely used these days and isn't worth supporting.
61224         Don't use a pointer after freeing it.
61225         Check for integer overflow when calculating allocation size.
61226         Use memcpy to copy entries, instead of stpcpy.
61227         Set errno properly when returning NULL.
61228         Check for readdir error.
61229
61230 2000-06-26  Jim Meyering  <meyering@lucent.com>
61231
61232         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61233
61234 2000-06-25  Jim Meyering  <meyering@lucent.com>
61235
61236         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61237         Linux header bug when _XOPEN_SOURCE is defined to 500.
61238
61239 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61240
61241         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61242         deficiency.
61243
61244 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
61245
61246         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61247         Include xalloc.h.
61248         Don't include <stdlib.h>.  Don't declare malloc, realloc.
61249
61250 2000-06-24  Jim Meyering  <meyering@lucent.com>
61251
61252         * m4/strerror_r.m4: Revive this file -- to try out an experimental
61253         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61254         for which strerror does return char*, but which lacks a conveniently
61255         accessible declaration of the function.  If the compile-test says
61256         strerror_r doesn't work, then resort to a `run'-test that works on
61257         BeOS and segfaults on DEC Unix.
61258
61259 2000-06-24  Jim Meyering  <meyering@lucent.com>
61260
61261         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61262
61263 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61264
61265         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
61267
61268 2000-06-23  Paul Eggert  <eggert@twinsun.com>
61269
61270         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61271         (mbrtowc, mbstate_t): Define substitutes if
61272         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61273         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61274         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61275
61276 2000-06-23  Jim Meyering  <meyering@lucent.com>
61277
61278         * m4/afs.m4: Add missing AC_MSG_RESULT.
61279         Reported by Bruno Haible.
61280
61281         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61282         Suggestion from Bruno Haible.
61283
61284 2000-06-23  Jim Meyering  <meyering@lucent.com>
61285
61286         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
61287
61288 2000-06-21  Jim Meyering  <meyering@lucent.com>
61289
61290         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61291
61292 2000-06-21  Jim Meyering  <meyering@lucent.com>
61293
61294         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61295         (noinst_HEADERS): Add getstr.h.
61296
61297         * lib/getline.c (getstr): Move into a separate file.
61298         * lib/getstr.c (getstr): New file, extracted from getline.c, with
61299         the following changes: new parameter, delim2; both delim[12]
61300         parameters have type `int', not `char'.  The latter would lose
61301         with 8-bit delimiters.
61302         * lib/getstr.h: New file.
61303
61304 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61305
61306         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61307         than 1024, return a memory chunk of least possible size, instead
61308         of size PATH_MAX + 2. In the loop, increment the size proportionally.
61309         Use free/xmalloc instead of xrealloc to avoid copying for very long
61310         paths.
61311
61312 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61313
61314         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61315         the empty string.
61316
61317 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
61318
61319         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61320         address, not strdup.  Include <stdlib.h> and don't declare free().
61321
61322 2000-06-19  Jim Meyering  <meyering@lucent.com>
61323
61324         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61325
61326 2000-06-18  Jim Meyering  <meyering@lucent.com>
61327
61328         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61329
61330         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61331         `checking whether...' message to be consistent with that of the
61332         lstat test.
61333
61334 2000-06-18  Jim Meyering  <meyering@lucent.com>
61335
61336         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61337         Besides, these days every porting target provides a mkdir function.
61338
61339         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61340         needed. (this snippet comes from src/system.h).
61341
61342 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
61343
61344         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61345
61346 2000-06-15  Paul Eggert  <eggert@twinsun.com>
61347
61348         * lib/human.c (adjust_value): New function.
61349         (human_readable_inexact): Apply rounding style even when
61350         printing approximate values.
61351
61352 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61353
61354         * lib/human.c (human_readable_inexact): Allow an input block
61355         size that is not a multiple of the output block size, and vice versa.
61356         Reported by Piergiorgio Sartor.
61357
61358 2000-06-14  Paul Eggert  <eggert@twinsun.com>
61359
61360         * lib/getdate.y (get_date): Apply relative times after time
61361         zone indicator, not before.  Reported by Todd A. Jacobs.
61362
61363 2000-06-13  Jim Meyering  <meyering@lucent.com>
61364
61365         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61366
61367         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61368
61369 2000-06-12  Paul Eggert  <eggert@twinsun.com>
61370
61371         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61372
61373 2000-06-12  Jim Meyering  <meyering@lucent.com>
61374
61375         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61376         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61377         optional argument.
61378         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61379         the optional argument, `lib'.
61380
61381 2000-06-08  Jim Meyering  <meyering@lucent.com>
61382
61383         * m4/largefile.m4: Remove file (now that it's part of autoconf).
61384
61385 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61386
61387         Rewrite largefile configuration so that we don't need to run
61388         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
61389         AC_CANONICAL_HOST in configure.in -- jmm]
61390
61391         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61392         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61393         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61394         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61395         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61396         All uses changed.
61397         Instead of inspecting the output of getconf, try to compile the
61398         test program without and with the macro definition.
61399         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61400         for getconf.  Instead, check for the needed flags by compiling
61401         test programs.
61402
61403 2000-06-04  Paul Eggert  <eggert@twinsun.com>
61404
61405         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61406
61407 2000-06-04  Jim Meyering  <meyering@lucent.com>
61408
61409         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61410         SunOS 4.1.4 for which gid_t is an unsigned type.
61411
61412 2000-06-03  Jim Meyering  <meyering@lucent.com>
61413
61414         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61415         now that autoconf requires that.
61416
61417         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61418         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61419         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61420
61421 2000-06-03  Jim Meyering  <meyering@lucent.com>
61422
61423         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61424
61425 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61426
61427         * m4/glibc21.m4: New file.
61428         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61429
61430 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
61431
61432         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61433         newer, don't install charset.alias.
61434         * lib/config.charset: Change the Linux/glibc rules so they become empty
61435         on glibc-2.1 or newer.
61436
61437 2000-06-02  Jim Meyering  <meyering@lucent.com>
61438
61439         * lib/mountlist.c: Back out last change.  Instead, do this...
61440         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61441         me_dummy member using the same `ignore'-testing code.
61442         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61443         fs_type strings.
61444         From Mark D. Roth.
61445
61446 2000-05-29  Jim Meyering  <meyering@lucent.com>
61447
61448         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61449         mounts with the `ignore' attribute.  Based on a patch from
61450         Mark D. Roth.
61451
61452 2000-05-28  Jim Meyering  <meyering@lucent.com>
61453
61454         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61455         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61456         * m4/stat.m4: Likewise.
61457         * m4/lstat.m4: Likewise.
61458         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61459
61460         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61461         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61462
61463 2000-05-26  Jim Meyering  <meyering@lucent.com>
61464
61465         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61466
61467 2000-05-24  Jim Meyering  <meyering@lucent.com>
61468
61469         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61470         autoconf requires that.
61471         * m4/lib-check.m4: Likewise.
61472         * m4/jm-macros.m4: Likewise.
61473         * m4/strftime.m4: Likewise.
61474
61475         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61476         AC_CHECK_DECLS, now that autoconf requires that.
61477
61478 2000-05-22  Jim Meyering  <meyering@lucent.com>
61479
61480         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61481         * m4/lstat.m4: Likewise.
61482
61483 2000-05-22  Jim Meyering  <meyering@lucent.com>
61484
61485         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61486
61487 2000-05-20  Jim Meyering  <meyering@lucent.com>
61488
61489         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61490         (jm_PREREQ): Use it.
61491
61492 2000-05-18  Jim Meyering  <meyering@lucent.com>
61493
61494         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61495         back, too, since it may have been modified by allocate_entry.
61496         (hash_delete): Rewrite to use neither the assignment operator
61497         nor the comma operator in an if-expression.
61498
61499 2000-05-15  Paul Eggert  <eggert@twinsun.com>
61500
61501         * lib/closeout.c:
61502         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61503         Remove; no longer needed.
61504         "quotearg.h": Add include.
61505         (file_name): Do not bother to explicitly initialize to NULL; it's less
61506         efficient on some hosts.
61507         (close_stdout_status): Remove test as to whether stdout was already
61508         closed; it breaks for the case "echo x | sort >&-".
61509         Quote file name colons.
61510         Do not assume that _("write error") lacks format strings.
61511
61512 2000-05-15  Jim Meyering  <meyering@lucent.com>
61513
61514         * lib/version-etc.c (version_etc_copyright): Update the copyright
61515         string used in all --version output.
61516
61517 2000-05-14  Jim Meyering  <meyering@lucent.com>
61518
61519         * lib/closeout.c (close_stdout_set_file_name): New function.
61520         (close_stdout_status): Use new file-scoped global.
61521         Return right away if fstat says the stdout file descriptor is invalid.
61522         * lib/closeout.h (close_stdout_set_file_name): Declare.
61523
61524 2000-05-10  Jim Meyering  <meyering@lucent.com>
61525
61526         * lib/closeout.c [default_exit_status]: New file-scoped variable.
61527         (close_stdout_set_status): New function.
61528         * lib/closeout.h (close_stdout_set_status): Declare.
61529
61530 2000-05-09  Jim Meyering  <meyering@lucent.com>
61531
61532         * m4/gettext.m4: Rename this...
61533         * m4/libintl.m4: ...to this.
61534
61535 2000-05-08  Jim Meyering  <meyering@lucent.com>
61536
61537         * lib/long-options.c: Don't include closeout.h.
61538         (parse_long_options): Don't call close_stdout for --version.
61539
61540 2000-05-06  Paul Eggert  <eggert@twinsun.com>
61541
61542         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
61543         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
61544         2.1.3 bug.  This avoids a clash when files like regex.c define
61545         _GNU_SOURCE.
61546
61547 2000-05-06  Jim Meyering  <meyering@lucent.com>
61548
61549         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
61550         (AC_REPLACE_FUNCS): Add strnlen.
61551
61552         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
61553         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
61554
61555         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
61556         AC_SEARCH_LIBS call for nanosleep.
61557         (LIB_NANOSLEEP): Set and AC_SUBST.
61558
61559 2000-05-06  Jim Meyering  <meyering@lucent.com>
61560
61561         * lib/strnlen.c: Undefine __strnlen and strnlen.
61562         [!weak_alias]: Define __strnlen to strnlen.
61563
61564         * lib/atexit.c: New file, from libiberty.
61565
61566 2000-05-06  Jim Meyering  <meyering@lucent.com>
61567
61568         * lib/closeout.c (close_stdout_status): Also check for errors on the
61569         stderr stream.
61570
61571 2000-05-05  Jim Meyering  <meyering@lucent.com>
61572
61573         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
61574         AC_SEARCH_LIBS call for clock_gettime.
61575         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
61576
61577         * m4/search-libs.m4: Update from autoconf.
61578
61579         su doesn't work on Solaris 2.6.
61580         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
61581         <shadow.h>.  Reported by Dragos Harabor.
61582
61583 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
61584
61585         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
61586         memcpy instead of xmalloc, xrealloc, path_concat.
61587         (locale_charset): Treat empty environment variables as absent.
61588         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
61589
61590 2000-05-04  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/getopt.c: Update from glibc.
61593         * lib/obstack.c: Likewise.
61594         * lib/obstack.h: Likewise.
61595         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
61596         file
61597
61598         * lib/regex.h: Likewise.
61599         * lib/strndup.c: Likewise.
61600         * lib/strnlen.c: New file, from glibc.
61601
61602 2000-05-03  Jim Meyering  <meyering@lucent.com>
61603
61604         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
61605
61606 2000-05-02  Paul Eggert  <eggert@twinsun.com>
61607
61608         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
61609         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
61610         compile-time test, rather than inspecting host and OS, to
61611         decide whether to define _LARGEFILE_SOURCE.
61612
61613 2000-05-01  Jim Meyering  <meyering@lucent.com>
61614
61615         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
61616
61617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
61618         Based on a patch from Bruno Haible.
61619
61620 2000-05-01  Jim Meyering  <meyering@lucent.com>
61621
61622         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
61623
61624 2000-04-29  Jim Meyering  <meyering@lucent.com>
61625
61626         * lib/path-concat.c: Declare strdup only if it's not defined.
61627         * lib/canon-host.c: Likewise.
61628
61629 2000-04-28  Jim Meyering  <meyering@lucent.com>
61630
61631         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
61632         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
61633         is included first, then limits.h is included by locale.h by libintl.h.
61634         From John David Anglin.
61635
61636 2000-04-25  Jim Meyering  <meyering@lucent.com>
61637
61638         * lib/makepath.c (S_IRWXUGO): Define.
61639         (make_path): Always perform explicit chmod if MODE specifies any
61640         of the `special' permission bits.  Prompted by a bug report against
61641         install from Mate Wierdl and Joost van Baal.
61642
61643 2000-04-18  Jim Meyering  <meyering@lucent.com>
61644
61645         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
61646         (jm_PREREQ): Use it.
61647
61648 2000-04-18  Jim Meyering  <meyering@lucent.com>
61649
61650         * lib/README: New file.
61651
61652         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
61653         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
61654
61655 2000-04-17  Jim Meyering  <meyering@lucent.com>
61656
61657         Get it right :-)
61658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
61659         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
61660         Suggestion from Akim Demaille.
61661
61662 2000-04-17  Jim Meyering  <meyering@lucent.com>
61663
61664         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
61665         the definition of it to rpl_strftime also defined-away the system's
61666         declaration.
61667
61668 2000-04-15  Jim Meyering  <meyering@lucent.com>
61669
61670         Use `C' to denote so-called `contiguous' files, the same way
61671         that tar does.
61672         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
61673         (ftypelet): Use S_ISCTG.
61674         From Michael Deutschmann.
61675
61676 2000-04-14  Jim Meyering  <meyering@lucent.com>
61677
61678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
61679         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
61680         clobbered.
61681
61682 2000-04-14  Jim Meyering  <meyering@lucent.com>
61683
61684         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
61685
61686 2000-04-13  Jim Meyering  <meyering@lucent.com>
61687
61688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
61689         AH_VERBATIM to insert required #ifndef into config.h.in.
61690         Suggestion from Akim Demaille.
61691
61692 2000-04-12  Jim Meyering  <meyering@lucent.com>
61693
61694         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
61695         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
61696         Christian Krackowizer.
61697
61698         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
61699         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
61700         (AC_SYS_LARGEFILE): Require.
61701         (AM_C_PROTOTYPES): Require.
61702
61703 2000-04-08  Jim Meyering  <meyering@lucent.com>
61704
61705         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
61706         names don't conflict.  Reported by Eli Zaretskii.
61707
61708 2000-04-07  Jim Meyering  <meyering@lucent.com>
61709
61710         * lib/putenv.c: Move inclusion of errno.h so it follows that of
61711         sys/types.h, to work around system header problems on AIX 3.2.5.
61712         From Bruno Haible.
61713
61714 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
61715
61716         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
61717         bug.  Deal with the different error behavior of Irix iconv.
61718
61719 2000-04-05  Paul Eggert  <eggert@twinsun.com>
61720
61721         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
61722         IRIX if the installer said otherwise.
61723
61724 2000-04-05  Jim Meyering  <meyering@lucent.com>
61725
61726         Portability tweaks required for ultrix4.3.
61727         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
61728         (jm_CHECK_DECLS): Add getutent to the list of functions.
61729         (_jm_DECL_HEADERS): Add utmpx.h.
61730         From John David Anglin.
61731
61732         * m4/strftime.m4: Back out the 2000-04-02 change.
61733         Instead of that change, simply undefine putenv in the test program.
61734
61735 2000-04-05  Jim Meyering  <meyering@lucent.com>
61736
61737         Portability tweaks required for ultrix4.3.
61738         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
61739         getutent.
61740         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
61741         * lib/canon-host.c: Declare strdup.
61742         * lib/path-concat.c: Likewise.
61743         From John David Anglin.
61744
61745 2000-04-04  Jim Meyering  <meyering@lucent.com>
61746
61747         Be more DOS 8.3-friendly.
61748         * lib/ref-add.sin: Renamed from ref-add.sed.in.
61749         * lib/ref-del.sin: Renamed from ref-del.sed.in.
61750         * lib/Makefile.am: Reflect renaming.
61751         Reported by Eli Zaretskii.
61752
61753         Use a temporary file name that won't clash with `charset.alias'
61754         in the DOS 8.3 name space.
61755         * lib/Makefile.am (charset_tmp): Define.
61756         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
61757         (uninstall-local): Likewise.
61758         Reported by Eli Zaretskii.
61759
61760 2000-04-03  Jim Meyering  <meyering@lucent.com>
61761
61762         * m4/gettext.m4: Fix typo in comment.
61763
61764         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
61765         textutils/configure.in).  Suggestion from Paul Eggert.
61766         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
61767
61768 2000-04-02  Paul Eggert  <eggert@twinsun.com>
61769
61770         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
61771         variable in the shell rather than using putenv, which isn't
61772         portable.  This avoids the configure-time inter-test dependency
61773         on the potentially-renamed putenv function.
61774
61775 2000-03-30  Paul Eggert  <eggert@twinsun.com>
61776
61777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
61778         before checking struct stat.st_blksize, so that
61779         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
61780
61781 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61782
61783         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
61784         since strftime.c uses HAVE_STRFTIME to decide whether to use
61785         the underlying strftime.
61786
61787 2000-03-29  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/time/strftime.c (my_strftime): Make sure we call the system
61790         strftime, not ourselves, when invoking the underlying strftime.
61791
61792 2000-03-24  Jim Meyering  <meyering@lucent.com>
61793
61794         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
61795         (charset_alias): Define.
61796         (install-exec-local): Factor out common code.
61797         (uninstall-local): Split lines longer than 80.
61798         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
61799         (SUFFIXES): Define.
61800         (.sed.in.sed): New rule.  Don't redirect directly to $@.
61801         (CLEANFILES): Add ref-add.sed and ref-del.sed.
61802
61803 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
61804
61805         * lib/config.charset: Output a line containing "Packages using this
61806         file".
61807         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
61808         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
61809         ref-del.sed): New rules.
61810
61811 2000-03-17  Jim Meyering  <meyering@lucent.com>
61812
61813         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
61814         Otherwise, include <strings.h>
61815
61816 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
61817
61818         * lib/unicodeio.c (utf8_wctomb): New function.
61819         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
61820         format instead of in UCS-4 with platform dependent endianness.
61821
61822 2000-03-10  Jim Meyering  <meyering@lucent.com>
61823
61824         * m4/lib-check.m4: Look for getspnam in -lgen, too.
61825         From Marco Franzen.
61826
61827 2000-03-07  Paul Eggert  <eggert@twinsun.com>
61828
61829         * lib/savedir.c (savedir): Work even if directory size is
61830         negative; this can happen with some screwy NFS configurations.
61831
61832 2000-03-06  Jim Meyering  <meyering@lucent.com>
61833
61834         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
61835         if it's NULL (because we ran out of memory).  From Bruno Haible.
61836
61837 2000-03-05  Jim Meyering  <meyering@lucent.com>
61838
61839         * lib/localcharset.c ("path-concat.h"): Include.
61840         (get_charset_aliases): Use path_concat instead of ANSI string
61841         concatenation.
61842
61843         * lib/unicodeio.h (PARAMS): Define.
61844         Use it to guard prototype.
61845
61846 2000-03-04  Jim Meyering  <meyering@lucent.com>
61847
61848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
61849         for lib/localcharset.c.
61850
61851 2000-03-04  Jim Meyering  <meyering@lucent.com>
61852
61853         * lib/Makefile.am (install-exec-local): Create $(libdir) before
61854         installing into it.
61855         (uninstall-local): Uncomment this rule so `make distcheck' works
61856         once again.
61857
61858         * lib/unicodeio.c (<errno.h>): Include it.
61859         (errno): Declare if not defined.
61860
61861         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
61862
61863         * lib/config.charset: New version, incorporating remarks from a linux
61864         i18n mailing list.  From Bruno Haible.
61865
61866 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
61867
61868         * m4/codeset.m4: New file.
61869         * m4/iconv.m4: New file.
61870         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
61871
61872 2000-03-03  Jim Meyering  <meyering@lucent.com>
61873
61874         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
61875
61876 2000-03-02  Jim Meyering  <meyering@lucent.com>
61877
61878         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
61879         the messages come out on separate lines.
61880
61881         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
61882         rather than jm_CHECK_DECLARATIONS.
61883         * m4/decl.m4: Remove now-unused file.
61884
61885         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
61886         geteuid.
61887
61888 2000-03-02  Jim Meyering  <meyering@lucent.com>
61889
61890         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
61891
61892 2000-03-01  Jim Meyering  <meyering@lucent.com>
61893
61894         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
61895         * lib/unicodeio.c: Likewise.
61896
61897 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
61898
61899         * lib/config.charset: New file.
61900         * lib/localcharset.c: New file.
61901         * lib/unicodeio.h, lib/unicodeio.c: New files.
61902         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
61903         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
61904         (noinst_HEADERS): Add unicodeio.h.
61905         (all-local, install-exec-local, charset.alias): New targets.
61906
61907 2000-02-28  Paul Eggert  <eggert@twinsun.com>
61908
61909         * lib/quotearg.c (ALERT_CHAR): New macro.
61910         (quotearg_buffer_restyled): Use it.
61911
61912 2000-02-27  Jim Meyering  <meyering@lucent.com>
61913
61914         * m4/check-decl.m4: Add getenv to the list.
61915
61916 2000-02-27  Jim Meyering  <meyering@lucent.com>
61917
61918         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
61919         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
61920
61921         * lib/backupfile.c: Guard inclusion of stdlib.h with
61922         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
61923         Declare malloc if needed.
61924
61925         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
61926         `#ifndef HAVE_DECL..'
61927         now that autoconf always defines the HAVE_DECL_ symbols.
61928         * lib/human.c: Likewise.
61929         * lib/same.c: Likewise.
61930         * lib/strtoumax.c: Likewise.
61931
61932         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
61933         declaration check was not run.
61934         * lib/hash.c: Likewise.
61935         * lib/human.c: Likewise.
61936         * lib/same.c: Likewise.
61937         * lib/strtoumax.c: Likewise.
61938
61939         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
61940         `.', then first look up the entire `.'-containing string as a login
61941         name.
61942
61943 2000-02-23  Jim Meyering  <meyering@lucent.com>
61944
61945         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
61946         in place of my hack.
61947
61948 2000-02-18  Paul Eggert  <eggert@twinsun.com>
61949
61950         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
61951         (textint): New typedef.
61952         (parser_control): Member year changed from int to textint.
61953         All uses changed.
61954         (YYSTYPE): Removed; replaced by %union with int and textint members.
61955         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
61956         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
61957         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
61958         (tSNUMBER, tUNUMBER): Now of type <textintval>.
61959         (date, number, to_year): Use width of number in digits, not its value,
61960         to determine whether it's a 2-digit year, or a 2-digit time.
61961         (yylex): Store number of digits of numeric tokens.
61962         Reported by John Kendall.
61963
61964         (parser_control): Changed from struct parser_control to typedef (for
61965         consistency).  All uses changed.
61966
61967         (tID): Removed; not used.
61968         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
61969
61970 2000-02-14  Paul Eggert  <eggert@twinsun.com>
61971
61972         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
61973         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
61974
61975 2000-02-12  Jim Meyering  <meyering@lucent.com>
61976
61977         * lib/userspec.c (ISDIGIT): Define it.
61978         (isdigit): Remove definition.
61979         (is_number): Use ISDIGIT, not isdigit.
61980         <libintl.h>: Include.
61981         (_ and N_): Define.
61982         (parse_user_spec): Mark translatable strings.
61983
61984 2000-02-10  Jim Meyering  <meyering@lucent.com>
61985
61986         With these changes, nanosleep.[ch] are finally enough like the other
61987         lib/* replacement files to compile on a few more losing systems.
61988
61989         * lib/nanosleep.h: Don't include config.h.
61990         Remove prototype from declaration of nanosleep.
61991         (PARAMS): Remove now-unneeded definition.
61992         * lib/nanosleep.c: #undef nanosleep.
61993         (rpl_nanosleep): Rename from nanosleep.
61994
61995 2000-02-10  Jim Meyering  <meyering@lucent.com>
61996
61997         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
61998         gnu_nanosleep to rpl_nanosleep.
61999
62000 2000-02-09  Jim Meyering  <meyering@lucent.com>
62001
62002         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62003         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62004
62005 2000-02-08  Akim Demaille  <akim@epita.fr>
62006
62007         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62008         `[' and `]' and remove uses of `changequote'.
62009         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62010         (AC_SYS_LARGEFILE): Likewise.
62011         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62012         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62013         of changequote.
62014         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62015         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62016         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62017         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62018
62019 2000-02-05  Jim Meyering  <meyering@lucent.com>
62020
62021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62022         Remove explicit use of AC_HEADER_TIME.  It is required by
62023         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62024         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62025         in autoconf whereby the expansion of the latter ended up preceding
62026         the expansion of its prerequisite, AC_HEADER_TIME.
62027         Reported by Volker Borchert.
62028
62029 2000-02-03  Jim Meyering  <meyering@lucent.com>
62030
62031         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62032
62033 2000-02-03  Jim Meyering  <meyering@lucent.com>
62034
62035         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62036         rather than with `#if HAVE_UTMPNAME'.
62037
62038 2000-02-02  Jim Meyering  <meyering@lucent.com>
62039
62040         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62041         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62042         Reported by Eli Zaretskii.
62043
62044 2000-02-01  Jim Meyering  <meyering@lucent.com>
62045
62046         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62047
62048 2000-01-31  Jim Meyering  <meyering@lucent.com>
62049
62050         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62051         functions.  Add the time.h and sys/time.h headers along with the
62052         AC_REQUIRE'ment of AC_HEADER_TIME.
62053
62054 2000-01-31  Jim Meyering  <meyering@lucent.com>
62055
62056         * lib/nanosleep.h (nanosleep): Guard declaration with
62057         `#if ! HAVE_DECL_NANOSLEEP'.
62058         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62059         the declaration in that vendor's sys/timers.h.
62060         Reported by Christian Krackowizer.
62061
62062         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62063         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62064         (ISPRINT): Likewise.
62065         Reported by Tom Tromey.
62066
62067 2000-01-30  Jim Meyering  <meyering@lucent.com>
62068
62069         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62070
62071         * m4/prereq.m4 (utmp_includes): Define.
62072         Check for ut_user and ut_name members in both struct utmpx
62073         and struct utmp.
62074
62075 2000-01-30  Jim Meyering  <meyering@lucent.com>
62076
62077         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62078         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62079         header files where only utmpx.ut_user is declared.
62080
62081         * lib/readutmp.h (UT_USER): Define.
62082
62083 2000-01-29  Jim Meyering  <meyering@lucent.com>
62084
62085         * m4/lib-check.m4: New file containing library-related checks from
62086         fileutils and sh-utils (textutils had none).
62087
62088 2000-01-28  Jim Meyering  <meyering@lucent.com>
62089
62090         * m4/perl.m4: Change format of warning message to look more like that
62091         from the missing script.  Suggestion from François Pinard.
62092
62093 2000-01-25  Jim Meyering  <meyering@lucent.com>
62094
62095         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62096         well as time.h in the compile check.
62097         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62098         Fix typo in cross-compiling case: s/yes/no/.
62099
62100 2000-01-23  Jim Meyering  <meyering@lucent.com>
62101
62102         * m4/jm-macros.m4: Move df-related tests here from
62103         fileutils/configure.in
62104
62105         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62106         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62107
62108         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62109         s/space/ac_fsusage_space/.
62110         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62111
62112         * m4/ftruncate.m4: New file (derived from part of
62113         fileutils/configure.in).
62114         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62115         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62116
62117         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62118         AC_SUBST these here, rather than just in sh-util/configure.in, so
62119         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62120         all the same.
62121         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62122         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62123         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62124         (AC_SUBST(POW_LIBM)): Likewise.
62125         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62126
62127 2000-01-23  Jim Meyering  <meyering@lucent.com>
62128
62129         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62130         obstack.c.
62131
62132 2000-01-22  Jim Meyering  <meyering@lucent.com>
62133
62134         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62135
62136         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62137
62138         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62139         configure.in
62140         (AC_CHECK_HEADERS): Likewise for sh-utils.
62141         (AC_CHECK_HEADERS): Likewise for textutils.
62142         Merge the three lists of headers.
62143
62144         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62145         from fileutils' configure.in.
62146
62147         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62148         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62149         check-decl.m4.
62150
62151         * m4/check-decl.m4: Use #if rather than #ifdef.
62152         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62153         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62154         (_jm_DECL_HEADERS): Define new function.
62155         (jm_CHECK_DECLARATIONS): Require it.
62156
62157 2000-01-22  Jim Meyering  <meyering@lucent.com>
62158
62159         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62160         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62161         Required for some AIX systems.  Reported by Christian Krackowizer.
62162         [TESTING] (main): New function.
62163
62164         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62165         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62166         letters.
62167
62168         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62169         iswprint.
62170
62171         * lib/strverscmp.c (ISDIGIT): Define.
62172         (strverscmp): Use ISDIGIT, not isdigit.
62173
62174 2000-01-19  Jim Meyering  <meyering@lucent.com>
62175
62176         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62177         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62178         defines `struct timespec' in <sys/time.h>
62179
62180         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62181         Thanks to Akim for explaining.
62182
62183 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62184
62185         * lib/nanosleep.c (nanosleep):
62186         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62187         POSIX.1 doesn't require SA_INTERRUPT and some systems
62188         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62189         it's been part of POSIX.1 since day 1 (in 1988).
62190
62191 2000-01-17  Jim Meyering  <meyering@lucent.com>
62192
62193         * lib/interlock: Remove unused file.  Reported by François Pinard.
62194
62195 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62196
62197         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62198         alert, backslash, formfeed, and vertical tab unnecessarily in
62199         shell quoting style.
62200
62201 2000-01-16  Jim Meyering  <meyering@lucent.com>
62202
62203         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62204         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62205         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62206         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62207
62208 2000-01-16  Jim Meyering  <meyering@lucent.com>
62209
62210         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62211         because the latter didn't work.
62212
62213 2000-01-15  Jim Meyering  <meyering@lucent.com>
62214
62215         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62216         (AC_REPLACE_FUNCS): Add memcpy and memset.
62217         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62218         Add strpbrk.
62219         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62220
62221 2000-01-12  Jim Meyering  <meyering@lucent.com>
62222
62223         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62224         (jm_PREREQ): Use it.
62225         (jm_PREREQ_READUTMP): New macro.
62226         (jm_PREREQ): Use it.
62227
62228 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62229
62230         Quote multibyte characters correctly.
62231         * m4/c-bs-a.m4: New file.
62232         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62233         (jm_PREREQ): Use it.
62234
62235 2000-01-11  Paul Eggert  <eggert@twinsun.com>
62236
62237         * m4/uintmax_t.m4: Port to autoconf 2.13.
62238
62239 2000-01-08  Jim Meyering  <meyering@ascend.com>
62240
62241         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62242         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62243
62244 2000-01-04  Jim Meyering  <meyering@ascend.com>
62245
62246         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62247         jm_STRUCT_DIRENT_D_TYPE.
62248         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62249         jm_STRUCT_DIRENT_D_INO.
62250         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62251         jm_STRUCT_UTIMBUF.
62252         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62253         renamings.
62254         * m4/utime.m4: Likewise.
62255
62256         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62257         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62258
62259 2000-01-03  Paul Eggert  <eggert@twinsun.com>
62260
62261         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62262         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62263
62264 2000-01-02  Jim Meyering  <meyering@ascend.com>
62265
62266         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
62267         remember if this is necessary.
62268
62269 1999-12-26  Jim Meyering  <meyering@ascend.com>
62270
62271         * m4/jm-macros.m4: Use it here.
62272         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62273
62274 1999-12-23  Jim Meyering  <meyering@ascend.com>
62275
62276         * m4/jm-macros.m4: Check for clock_gettime (moved from
62277         fileutils/configure.in)
62278         Check for gettimeofday.
62279
62280 1999-12-20  Jim Meyering  <meyering@ascend.com>
62281
62282         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62283         autoconf-2.14a-1999-12-20.
62284
62285 1999-12-19  Jim Meyering  <meyering@ascend.com>
62286
62287         * m4/lstat-slash.m4: New file.
62288         * m4/jm-macros.m4: Use the new macro:
62289         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62290
62291 1999-12-07  Jim Meyering  <meyering@ascend.com>
62292
62293         * m4/perl.m4: Require that File::Compare be available, too.
62294         Too many systems seem to lack it.
62295
62296         * m4/strftime.m4: Add checks for most of the cpp macros tested in
62297         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
62298
62299 1999-11-18  Paul Eggert  <eggert@twinsun.com>
62300
62301         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62302         problem with the QNX 4.25 shell, which doesn't propagate exit
62303         status of failed commands inside shell assignments.
62304
62305 1999-11-17  Jim Meyering  <meyering@ascend.com>
62306
62307         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62308
62309 1999-11-07  Jim Meyering  <meyering@ascend.com>
62310
62311         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62312
62313 1999-11-06  Jim Meyering  <meyering@ascend.com>
62314
62315         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62316         * m4/jm-macros.m4 (jm_MACROS): Use it here.
62317
62318 1999-11-05  Jim Meyering  <meyering@ascend.com>
62319
62320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62321         configure.in of textutils, fileutils, and sh-utils into this one
62322         (shared between those packages) file.
62323         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62324         AC_STRUCT_ST_BLKSIZE.
62325
62326 1999-11-03  Jim Meyering  <meyering@ascend.com>
62327
62328         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
62329         of AC_CHECK_TYPE checks includes unistd.h.
62330         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62331         Suggestion from Akim Demaille.
62332
62333 1999-10-30  Jim Meyering  <meyering@ascend.com>
62334
62335         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
62336         m4-quoted string.
62337         * m4/ls-mntd-fs.m4: Likewise.
62338         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
62339         * m4/jm-winsz1.m4: Likewise.
62340
62341         * m4/const.m4: Remove file, since the fix made it into the experimental
62342         version of autoconf.
62343         * m4/mktime.m4: Likewise.
62344
62345         * m4/check-type.m4: Remove file, now that the latest version of
62346         AC_CHECK_TYPE takes a third arg to specify additional #includes.
62347
62348         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62349         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62350         AC_CHECK_TYPE.
62351
62352 1999-10-04  Jim Meyering  <meyering@ascend.com>
62353
62354         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62355
62356 1999-09-22  Paul Eggert  <eggert@twinsun.com>
62357
62358         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62359         2.95.1 bug with HP-UX 10.20.
62360
62361 1999-09-17  Jim Meyering  <meyering@ascend.com>
62362
62363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62364         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62365         due to missing strdup (against sh-utils-2.0).
62366
62367 1999-08-29  Jim Meyering  <meyering@ascend.com>
62368
62369         * m4/jm-macros.m4: Require jm_BISON.
62370         * m4/bison.m4: New file.
62371
62372 1999-08-17  Paul Eggert  <eggert@twinsun.com>
62373
62374         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62375         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62376
62377 1999-08-05  Jim Meyering  <meyering@ascend.com>
62378
62379         * m4/getline.m4: Rename test file from conftestdata to conftest.data
62380         to avoid conflicts with `conftest' on 8+3 filesystems.
62381         Suggestion from Eli Zaretskii.
62382
62383 1999-08-04  Jim Meyering  <meyering@ascend.com>
62384
62385         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62386         fileutils and sh-utils (textutils's getline test was inadequate).
62387         (AM_FUNC_GETLINE): Run this test.
62388         (AC_CHECK_FUNCS): Check for getdelim.
62389         Reported by Bob Proulx.
62390
62391 1999-08-02  Jim Meyering  <meyering@ascend.com>
62392
62393         * m4/jm-macros.m4: Add a comment.
62394
62395 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62396
62397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62398         <inttypes.h> defines strtoumax as a macro (and not as a
62399         function).
62400
62401 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62402
62403         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62404         that we can shift, multiply and divide unsigned long long
62405         values; Ultrix cc can't do it.
62406
62407 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62408
62409         * m4/mktime.m4: New file, which is a preview of what should appear
62410         in the next public autoconf release.
62411
62412 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62413
62414         * m4/lfs.m4: Remove this file.
62415         * m4/largefile.m4: New file.  It contains the old contents of
62416         lfs.m4, except that all names with prefix AC_LFS have been
62417         changed to use the prefix AC_SYS_LARGEFILE instead, to be
62418         compatible with future autoconf versions.  Also, some minor m4
62419         quoting problems have been fixed.
62420
62421 1999-08-01  Paul Eggert  <eggert@twinsun.com>
62422
62423         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62424         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62425         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62426         and simplify the shell code.
62427
62428 1999-08-01  Jim Meyering  <meyering@ascend.com>
62429
62430         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62431         m4.
62432
62433 1999-07-20  Jim Meyering  <meyering@ascend.com>
62434
62435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62436
62437 1999-07-15  Jim Meyering  <meyering@ascend.com>
62438
62439         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62440
62441 1999-05-22  Jim Meyering  <meyering@ascend.com>
62442
62443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62444
62445 1999-05-20  Jim Meyering  <meyering@ascend.com>
62446
62447         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62448         Add a colon after each `then' in case $4 is empty.
62449
62450 1999-05-16  Jim Meyering  <meyering@ascend.com>
62451
62452         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62453
62454 1999-05-10  Jim Meyering  <meyering@ascend.com>
62455
62456         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62457
62458         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62459         AC_FUNC_MKTIME.
62460
62461 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
62462
62463         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62464
62465 1999-05-04  Paul Eggert  <eggert@twinsun.com>
62466
62467         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62468         not CPPFLAGS, so that linking works correctly in IRIX.
62469
62470 1999-04-30  Paul Eggert  <eggert@twinsun.com>
62471
62472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62473
62474 1999-04-20  Paul Eggert  <eggert@twinsun.com>
62475
62476         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62477         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62479         jm_AC_TYPE_UNSIGNED_LONG_LONG.
62480         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62481
62482         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
62483
62484 1999-04-20  Jim Meyering  <meyering@ascend.com>
62485
62486         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62487         AC_REPLACE xstroull if necessary.  From Paul Eggert.
62488         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62489
62490 1999-04-18  Jim Meyering  <meyering@ascend.com>
62491
62492         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62493         * m4/jm-macros.m4: Use it.
62494
62495 1999-04-06  Jim Meyering  <meyering@ascend.com>
62496
62497         * m4/strftime.m4: Remove test for %f.
62498
62499 1999-03-29  Jim Meyering  <meyering@ascend.com>
62500
62501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62502         superset of the AC_TYPE_* checks in the textutils, fileutils,
62503         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
62504         AC_TYPE_PID_T.
62505
62506 1999-03-28  Jim Meyering  <meyering@ascend.com>
62507
62508         * m4/jm-macros.m4: Define GNU_PACKAGE here.
62509         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62510         replaced e.g., in the *.sh files of the sh-utils.
62511
62512 1999-03-20  Jim Meyering  <meyering@ascend.com>
62513
62514         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62515         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62516         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
62517
62518 1999-03-19  Jim Meyering  <meyering@ascend.com>
62519
62520         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
62521
62522 1999-03-12  Jim Meyering  <meyering@ascend.com>
62523
62524         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
62525
62526 1999-03-07  Jim Meyering  <meyering@ascend.com>
62527
62528         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
62529         declared.
62530
62531 1999-02-17  Jim Meyering  <meyering@ascend.com>
62532
62533         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
62534         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
62535
62536 1999-02-07  Jim Meyering  <meyering@ascend.com>
62537
62538         * m4/group-member.m4: New file -- extracted from sh-utils'
62539         configure.in.
62540
62541         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
62542         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
62543
62544 1999-02-06  Jim Meyering  <meyering@ascend.com>
62545
62546         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
62547         * m4/fnmatch.m4: Likewise.
62548         * m4/getgroups.m4: Likewise.
62549         * m4/lstat.m4: Likewise.
62550         * m4/malloc.m4: Likewise.
62551         * m4/putenv.m4: Likewise.
62552         * m4/realloc.m4: Likewise.
62553         * m4/regex.m4: Likewise.
62554         * m4/stat.m4: Likewise.
62555         * m4/strftime.m4: Likewise.
62556         Suggestion from Alain Magloire.
62557
62558         * m4/chown.m4: Use `.$ac_objext', not `.o'.
62559         * m4/fnmatch.m4: Likewise.
62560         * m4/getgroups.m4: Likewise.
62561         * m4/getline.m4: Likewise.
62562         * m4/lstat.m4: Likewise.
62563         * m4/malloc.m4: Likewise.
62564         * m4/memcmp.m4: Likewise.
62565         * m4/putenv.m4: Likewise.
62566         * m4/realloc.m4: Likewise.
62567         * m4/regex.m4: Likewise.
62568         * m4/stat.m4: Likewise.
62569         * m4/strftime.m4: Likewise.
62570         Suggestion from Alain Magloire.
62571
62572         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
62573         an argument.
62574
62575         * m4/regex.m4: Add a run-time Test for proper operation of
62576         re_compile_pattern.
62577
62578 1999-01-31  Jim Meyering  <meyering@ascend.com>
62579
62580         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
62581
62582 1999-01-30  Jim Meyering  <meyering@ascend.com>
62583
62584         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
62585
62586         * m4/jm-mktime.m4: Make this a wrapper around the official
62587         AM_FUNC_MKTIME rather than my private copy, now that the official one
62588         is up to date.
62589         * m4/mktime.m4: Remove file.
62590
62591         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
62592         * m4/uptime.m4: Likewise.
62593         * m4/uintmax_t.m4: Likewise.
62594
62595 1999-01-28  Jim Meyering  <meyering@ascend.com>
62596
62597         * m4/jm-macros.m4: Use jm_AFS.
62598         * m4/afs.m4: New file (from fileutils' configure.in).
62599
62600         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
62601         * m4/chown.m4: Likewise.
62602         * m4/d-ino.m4: Likewise.
62603         * m4/d-type.m4: Likewise.
62604         * m4/fnmatch.m4: Likewise.
62605         * m4/getgroups.m4: Likewise.
62606         * m4/gettext.m4: Likewise.
62607         * m4/jm-mktime.m4: Likewise.
62608         * m4/jm-winsz2.m4: Likewise.
62609         * m4/lcmessage.m4: Likewise.
62610         * m4/ls-mntd-fs.m4: Likewise.
62611         * m4/malloc.m4: Likewise.
62612         * m4/memcmp.m4: Likewise.
62613         * m4/putenv.m4: Likewise.
62614         * m4/realloc.m4: Likewise.
62615         * m4/st_mtim.m4: Likewise.
62616         * m4/strftime.m4: Likewise.
62617
62618 1999-01-16  Jim Meyering  <meyering@ascend.com>
62619
62620         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
62621         (ARGMATCH_DIE_DECL): Define.
62622
62623 1999-01-12  Jim Meyering  <meyering@ascend.com>
62624
62625         * m4/Makefile.am.in: Rewrite to avoid using fmt.
62626         Reported by Lars Hecking.
62627
62628 1999-01-10  Jim Meyering  <meyering@ascend.com>
62629
62630         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
62631         gross kludge.
62632         * m4/inttypes_h.m4: Likewise.
62633         * m4/lstat.m4: Likewise.
62634         * m4/malloc.m4: Likewise.
62635         * m4/readdir.m4: Likewise.
62636         * m4/realloc.m4: Likewise.
62637         * m4/st_dm_mode.m4: Likewise.
62638         * m4/stat.m4: Likewise.
62639         * m4/utimbuf.m4: Likewise.
62640         * m4/utimes.m4: Likewise.
62641
62642         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
62643         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
62644         comments in config.h.in are meaningful.
62645
62646         * m4/jm-macros.m4: Require autoconf-2.13 here.
62647
62648         * m4/regex.m4: By default, don't use the included regex.c on systems
62649         with glibc 2.  Suggestion from Uli Drepper.
62650
62651 1999-01-02  Jim Meyering  <meyering@ascend.com>
62652
62653         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
62654
62655 1998-12-18  Jim Meyering  <meyering@ascend.com>
62656
62657         * m4/Makefile.am.in (Makefile.am): Simplify rule.
62658         Based on a suggestion from Lars Hecking.
62659
62660 1998-11-16  Paul Eggert  <eggert@twinsun.com>
62661
62662         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
62663
62664 1998-11-16  Jim Meyering  <meyering@ascend.com>
62665
62666         * m4/lfs.m4: Double-quote the `uname...` expression.
62667
62668 1998-11-14  Jim Meyering  <meyering@ascend.com>
62669
62670         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
62671         * m4/stat.m4: Likewise.
62672
62673 1998-11-03  Jim Meyering  <meyering@ascend.com>
62674
62675         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
62676         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
62677
62678 1998-10-18  Jim Meyering  <meyering@ascend.com>
62679
62680         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
62681
62682 1998-10-17  Jim Meyering  <meyering@ascend.com>
62683
62684         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
62685         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
62686         calls for those previously hard-coded headers.  Instead, take a new
62687         parameter.
62688         (jm_CHECK_DECLARATIONS): Reflect interface change.
62689         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
62690         (jm_CHECK_DECL_LOCALTIME_R): New macro.
62691
62692         * m4/mktime.m4: Test for spring-forward gap before long-running test.
62693
62694 1998-10-14  Jim Meyering  <meyering@ascend.com>
62695
62696         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
62697         instead of "TZ=America/Vancouver".  From Paul Eggert.
62698
62699 1998-10-11  Jim Meyering  <meyering@ascend.com>
62700
62701         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
62702         This adds a test for a recently added compatibility fix for mktime.c.
62703         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
62704
62705 1998-09-27  Jim Meyering  <meyering@ascend.com>
62706
62707         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
62708
62709         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
62710         ../configure.in, including a change from Gordon Matzigkeit to allow
62711         cross-compiling for the Hurd.
62712
62713         * m4/glibc.m4: New file/macro to test for the GNU C Library
62714         versions 1 and 2.  From Gordon Matzigkeit.
62715         Indent.
62716
62717 1998-09-21  Jim Meyering  <meyering@ascend.com>
62718
62719         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
62720
62721 1998-08-18  Paul Eggert  <eggert@twinsun.com>
62722
62723         Port nanosecond-resolution times to UnixWare 2.1.2 and
62724         pedantic Solaris 2.6.
62725
62726         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
62727         AC_STRUCT_ST_MTIM.
62728         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
62729         Generate name of ns member, instead of just 1 or undef.
62730         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
62731
62732 1998-08-15  Jim Meyering  <meyering@ascend.com>
62733
62734         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
62735         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
62736         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
62737         instead of jm_TYPE_SSIZE_T.
62738
62739 1998-08-12  Jim Meyering  <meyering@ascend.com>
62740
62741         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
62742
62743 1998-08-02  Jim Meyering  <meyering@ascend.com>
62744
62745         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
62746         in acconfig.h manually.
62747
62748 1998-07-31  Paul Eggert  <eggert@twinsun.com>
62749
62750         * m4/st_mtim.m4: New file.
62751
62752 1998-07-28  Jim Meyering  <meyering@ascend.com>
62753
62754         * m4/utimes.m4: Undef stat.
62755
62756 1998-07-25  Jim Meyering  <meyering@ascend.com>
62757
62758         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
62759         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
62760
62761 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
62762
62763         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
62764         uid and gid actually remain unchanged.
62765
62766 1998-07-07  Jim Meyering  <meyering@ascend.com>
62767
62768         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
62769
62770 1998-07-04  Jim Meyering  <meyering@ascend.com>
62771
62772         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
62773         to prove that this macro can be used in packages without regex.c.
62774
62775 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
62776
62777         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
62778         is to be used.
62779
62780 1998-07-03  Jim Meyering  <meyering@ascend.com>
62781
62782         * m4/gettext.m4: Add -lintl if it's found to be necessary.
62783
62784         * m4/gettext.m4: New file -- from gettext-0.10.35.
62785         * m4/lcmessage.m4: Likewise.
62786         * m4/progtest.m4: Likewise.
62787
62788         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
62789         * m4/jm-macros.m4: Require the new macro.
62790
62791 1998-06-29  Jim Meyering  <meyering@ascend.com>
62792
62793         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
62794         for the definition of NGROUPS (used in a system header included
62795         by sys/mount.h).
62796
62797 1998-06-28  Jim Meyering  <meyering@ascend.com>
62798
62799         * m4/ls-mntd-fs.m4: New file.
62800         * m4/fstypename.m4: New file.
62801
62802         * m4/jm-macros.m4: Require the new macro.
62803         * m4/jm-glibc-io.m4: New file.
62804
62805 1998-05-19  Jim Meyering  <meyering@ascend.com>
62806
62807         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
62808         * m4/lchown.m4: New file.
62809
62810         * m4/Makefile.am.in: New file.
62811         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
62812
62813 1998-05-14  Jim Meyering  <meyering@ascend.com>
62814
62815         * m4/Makefile.am (EXTRA_DIST): Add them.
62816         * m4/jm-macros.m4: New file.
62817         * m4/utimbuf.m4: New file.
62818
62819 1998-05-12  Jim Meyering  <meyering@ascend.com>
62820
62821         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
62822
62823 1998-05-11  Jim Meyering  <meyering@ascend.com>
62824
62825         * m4/isc-posix.m4: New file.
62826
62827 1998-05-10  Jim Meyering  <meyering@ascend.com>
62828
62829         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
62830
62831 1998-05-09  Jim Meyering  <meyering@ascend.com>
62832
62833         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
62834         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
62835         with automake.
62836
62837         * m4/ssize_t.m4: New file.
62838         * m4/mktime.m4: Remove file -- the new automake has this now.
62839
62840 1998-04-26  Jim Meyering  <meyering@ascend.com>
62841
62842         * m4/assert.m4: New file.
62843         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
62844
62845 1998-04-05  Jim Meyering  <meyering@ascend.com>
62846
62847         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
62848         (jm_PREREQ): Use it here.
62849
62850 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
62851
62852         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
62853         in acconfig.h.
62854
62855 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
62856
62857         * m4/prereq.m4: New file.
62858         * m4/error.m4: New file.
62859         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
62860
62861 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
62862
62863         * m4/getline.m4: Don't set am_cv_func_working_getline before the
62864         cache-check for the same variable -- that defeated the purpose of
62865         the test; the test program was never run.  This was a problem only
62866         on systems with losing getline functions -- HP-UX 10.20 is one.
62867         Reported by Bjorn Helgaas.
62868
62869 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
62870
62871         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
62872
62873 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
62874
62875         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
62876
62877         * m4/const.m4: New file.  Use an initializer in this declaration
62878         typedef int charset[2]; const charset x;
62879         Reported by Bob Glickstein.
62880
62881 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
62882
62883         * m4/chown.m4: Fix reversed types on -1 args to chown.
62884         From Kaveh Ghazi.
62885
62886 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
62887
62888         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
62889         Add lseek and memchr.
62890
62891         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
62892         T.E.Dickey <dickey@clark.net> said that some older preprocessors
62893         have a 20-character limit on names.
62894
62895 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
62896
62897         * m4/inttypes_h.m4: New file.
62898         * m4/uintmax_t.m4: New file.
62899         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
62900
62901
62902         -----
62903
62904         Local Variables:
62905         coding: utf-8
62906         End:
62907
62908         Copyright (C) 1997-2010 Free Software Foundation, Inc.
62909
62910         Copying and distribution of this file, with or without
62911         modification, are permitted provided the copyright notice
62912         and this notice are preserved.