958cab432ef0cee6ceadb2f5d5331eafaa9acdb2
[gnulib.git] / ChangeLog
1 2009-08-22  Jim Meyering  <meyering@redhat.com>
2
3         announce-gen: detect write failure
4         * build-aux/announce-gen: Add Coda.
5
6 2009-08-19  Akim Demaille  <demaille@gostai.com>
7
8         bootstrap: --help to stdout.
9         * bootstrap (usage): Don't send --help to stderr.
10         Use a here doc instead of a long string.
11
12 2009-08-21  Eric Blake  <ebb9@byu.net>
13
14         test-popen-safer: split from test-popen
15         * tests/test-popen.c (main): Move...
16         * tests/test-popen.h: ...into new file.
17         * tests/test-popen-safer2.c: New file.
18         * modules/popen-tests (Files): Add test-popen.h.
19         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
20         Suggested by Bruno Haible.
21
22         test-fcntl-safer: split from test-open
23         * tests/test-open.c (main): Move...
24         * tests/test-open.h: ...into new file.
25         * tests/test-fcntl-safer.c: New file.
26         * modules/open-tests (Files): Add test-open.h.
27         * modules/fcntl-safer-tests: New file.
28         Suggested by Bruno Haible.
29
30         test-fopen-safer: split from test-fopen
31         * tests/test-fopen.c (main): Move...
32         * tests/test-fopen.h: ...into new file.
33         * tests/test-fopen-safer.c: New file.
34         * modules/fopen-tests (Files): Add test-fopen.h.
35         * modules/fopen-safer-tests: New file.
36         Suggested by Bruno Haible.
37
38 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39
40         popen-safer: test O_CLOEXEC at run-time.
41         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42
43 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44
45         fcntl: move more flags to the header
46         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
48         * lib/fcntl.in.h: Do both things here.
49
50 2009-08-21  Jim Meyering  <meyering@redhat.com>
51
52         consistently remove $@-t before redirecting to it
53         * modules/argz: Remove $@-t and $@ before redirecting to the former.
54         * modules/alloca-opt: Likewise.
55         * modules/byteswap: Likewise.
56         * modules/fnmatch: Likewise.
57         * modules/getopt-posix: Likewise.
58         * modules/glob: Likewise.
59         * modules/poll: Likewise.
60         * modules/posix_spawnp-tests: Likewise.
61         * modules/sys_socket: Likewise.
62         * modules/sysexits: Likewise.
63
64 2009-08-21  Eric Blake  <ebb9@byu.net>
65
66         popen: simplify access to original popen
67         * lib/popen.c (rpl_popen): No need to worry about popen being a
68         macro.
69         Reported by Bruno Haible.
70
71 2009-08-20  Eric Blake  <ebb9@byu.net>
72
73         build: avoid some compiler warnings
74         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
75         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
76         type.
77         (new_exclude_segment, excluded_file_pattern_p)
78         (excluded_file_name_p): Reduce scope.
79         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80         old-style declaration.
81
82 2009-08-20  Simon Josefsson  <simon@josefsson.org>
83
84         * tests/test-exclude1.sh: Handle Windows EOL.
85         * tests/test-exclude2.sh: Likewise.
86         * tests/test-exclude3.sh: Likewise.
87         * tests/test-exclude4.sh: Likewise.
88         * tests/test-exclude5.sh: Likewise.
89         * tests/test-exclude6.sh: Likewise.
90         * tests/test-exclude7.sh: Likewise.
91
92 2009-08-19  Akim Demaille  <demaille@gostai.com>
93
94         bootstrap: find sha1sum when named gsha1sum.
95         * bootstrap (find_tool): New.
96         ($SHA1SUM): New.
97         Use it.
98
99 2009-08-20  Jim Meyering  <meyering@redhat.com>
100
101         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
102         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
103         expression that converts "." in a file name to "\." in the resulting
104         regexp.  Start with a dummy statement, so that prior shell variable
105         definitions are expanded portably.  Reported by Simon Josefsson.
106
107 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
108
109         Fix polling for writeability of a screen buffer.
110         * lib/poll.c: Distinguish input and screen buffers for the
111         Win32 implementation.
112         * lib/select.c: Likewise.
113
114 2009-08-19  Eric Blake  <ebb9@byu.net>
115
116         popen-safer: prevent popen from clobbering std descriptors
117         * modules/popen-safer: New file.
118         * lib/popen-safer.c: Likewise.
119         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
120         * lib/stdio--.h (popen): Provide override.
121         * lib/stdio-safer.h (popen_safer): Provide declaration.
122         * tests/test-popen.c (includes): Partially test this.
123         * modules/popen-safer-tests: New file, for more tests.
124         * tests/test-popen-safer.c: Likewise.
125         * MODULES.html.sh (file stream based Input/Output): Mention it.
126
127         tests: test some of the *-safer modules
128         * modules/fopen-safer (Depends-on): Add fopen.
129         * modules/fcntl-safer (Depends-on): Add fcntl.
130         * modules/stdlib-safer (Depends-on): Add stdlib.
131         (configure.ac): Set indicator.
132         * modules/unistd-safer (configure.ac): Likewise.
133         * modules/tmpfile-safer (configure.ac): Likewise.
134         (Depends-on): Add tmpfile.
135         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
136         active.
137         * tests/test-fopen.c (includes): Test safer versions when they are
138         in use.
139         * tests/test-open.c (includes): Likewise.
140
141         popen: fix cygwin 1.5 bug when stdin closed
142         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
143         * modules/popen: New file.
144         * modules/popen-tests: Likewise.
145         * tests/test-popen.c: Likewise.
146         * m4/popen.m4: Likewise.
147         * lib/popen.c: Likewise.
148         * lib/stdio.in.h (popen): New declaration.
149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
150         * modules/stdio (Makefile.am): Likewise.
151         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
152
153 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
154
155         maint.mk: give full control over update-copyright exclusions
156         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
157         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
158         (update-copyright): Don't force inclusion of top-level
159         ChangeLog.  Don't force exclusion of all COPYING files, but make
160         them the default exclusion instead.
161
162 2009-08-16  Bruno Haible  <bruno@clisp.org>
163
164         Fix test failures on Solaris 10.
165         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
166         tests when Solaris iconv() is used.
167         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
168         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
169         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
170         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
171         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
172
173 2009-08-16  Bruno Haible  <bruno@clisp.org>
174
175         Fix test failures on Solaris 10.
176         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
177         'tr' program and pass it as first argument.
178         * tests/test-pipe-filter-gi1.sh: Likewise.
179         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
180         program as first argument.
181         * tests/test-pipe-filter-gi1.c (main): Likewise.
182
183 2009-08-16  Eric Blake  <ebb9@byu.net>
184
185         fpurge: fix previous commits
186         * modules/fpurge (Makefile.am): Make replacement conditional,
187         partially reverting 2007-04-29 change; missed in previous
188         attempt.
189         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
190         is missing.
191
192 2009-08-16  Bruno Haible  <bruno@clisp.org>
193
194         Clarify fpurge's effect on the file position.
195         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
196         * tests/test-fpurge.c (main): Make a second pass for checking the file
197         position.
198
199 2009-08-16  Bruno Haible  <bruno@clisp.org>
200
201         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
202         declaration of fpurge is missing.
203         * tests/test-fpurge.c (main): Check that the file has not more contents
204         than expected. Close the file before removing it.
205
206 2009-08-15  Eric Blake  <ebb9@byu.net>
207
208         fpurge: don't wrap working cygwin implementation
209         * lib/fpurge.c (fpurge): Fix comment typo.
210         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
211         1.7 to avoid replacement.
212         * tests/test-fpurge.c (main): Enhance test.
213
214 2009-08-15  Eric Blake  <ebb9@byu.net>
215         and Jim Meyering  <meyering@redhat.com>
216
217         test-update-copyright: skip if perl is insufficient
218         * tests/test-update-copyright.sh: Failure to run maintainer tool
219         should not cause testsuite failure on cygwin 1.5.
220
221 2009-08-14  Eric Blake  <ebb9@byu.net>
222
223         doc: mention more functions added in cygwin 1.7.0
224         * doc/posix-headers/limits.texi (limits.h): Update for recent
225         cygwin additions.
226         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
227         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
228         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
229         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
230         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
231
232 2009-08-14  Eric Blake  <ebb9@byu.net>
233
234         maint.mk: simplify update-copyright rule
235         * top/maint.mk (update-copyright-local): Delete, and document how
236         to do it in cfg.mk instead.
237         (update-copyright-exclude-regexp): Delete, and document how to do
238         it in .x-update-copyright instead.
239         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
240         exclude ChangeLog.
241
242 2009-08-14  Bruno Haible  <bruno@clisp.org>
243
244         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
245
246 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
247
248         maint.mk: support update-copyright-env
249         * top/maint.mk (update-copyright-env): Define place-holder.
250         (update-copyright): Expand $(update-copyright-env) before
251         invoking update-copyright.
252
253 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
254
255         update-copyright: implement forced reformatting
256         * build-aux/update-copyright: Implement and document
257         UPDATE_COPYRIGHT_FORCE.
258         * tests/test-update-copyright.sh: Test it.
259
260 2009-08-14  Eric Blake  <ebb9@byu.net>
261         and Bruno Haible  <bruno@clisp.org>
262
263         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
264         * tests/test-locale.c: Revert previous patch related to NULL.
265         * tests/test-stdio.c: Likewise.
266         * tests/test-stdlib.c: Likewise.
267         * tests/test-string.c: Likewise.
268         * tests/test-unistd.c: Likewise.
269         * modules/time-tests (Depends-on): Add verify.
270         * modules/wchar-tests (Depends-on): Likewise.
271         * tests/test-time.c: Test for NULL compliance.
272         * tests/test-wchar.c: Likewise.
273         * modules/locale (Depends-on): Add stddef.
274         * modules/stdio (Depends-on): Likewise.
275         * modules/stdlib (Depends-on): Likewise.
276         * modules/string (Depends-on): Likewise.
277         * modules/time (Depends-on): Likewise.
278         * modules/unistd (Depends-on): Likewise.
279         * modules/wchar (Depends-on): Likewise.
280         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
281         * lib/stdlib.in.h (includes): Likewise.
282         * lib/string.in.h (includes): Likewise.
283         * lib/time.in.h (includes): Likewise.
284         * lib/unistd.in.h (includes): Likewise.
285         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
286         replaced.
287         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
288         * m4/stddef_h.m4: New file.
289         * modules/stddef: Likewise.
290         * lib/stddef.in.h: Likewise.
291         * modules/stddef-tests: Likewise.
292         * tests/test-stddef.c: Likewise.
293         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
294         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
295         * doc/posix-headers/locale.texi (locale.h): Likewise.
296         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
297         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
298         * doc/posix-headers/string.texi (string.h): Likewise.
299         * doc/posix-headers/time.texi (time.h): Likewise.
300         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
301         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
302
303 2009-08-14  Eric Blake  <ebb9@byu.net>
304
305         doc: improve git diff of texinfo files
306         * .gitattributes: Add rule for *.texi files, with hint on how to
307         use it.
308         Copied from m4, and based on a report by Bruno Haible.
309
310 2009-08-14  Bruno Haible  <bruno@clisp.org>
311
312         Disable multithread support by default on Cygwin 1.5.x for real.
313         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
314
315 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
316
317         update-copyright: much ado about intervals
318         * build-aux/update-copyright: Implement and document
319         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
320         of copyright year intervals.
321         Also, document UPDATE_COPYRIGHT_YEAR.
322         * tests/test-update-copyright.sh: Test it.
323
324         update-copyright: convert 2-digit to 4-digit years
325         * build-aux/update-copyright: Implement and document.
326         * tests/test-update-copyright.sh: Update.
327
328 2009-08-14  Jim Meyering  <meyering@redhat.com>
329
330         test-exclude: avoid coreutils "make check" failure
331         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
332         just as in test-argmatch.c.
333
334 2009-08-13  Eric Blake  <ebb9@byu.net>
335
336         test-dup2: fix bad assumption
337         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
338         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
339
340         test-version-etc: fix CRLF portability issue
341         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
342         recognize \r.
343         * tests/test-argp-version-etc-1.sh: Likewise.
344
345         getopt: update client modules
346         * modules/argp (Depends-on): Use getopt-gnu.
347         * modules/git-merge-changelog (Depends-on): Likewise.
348         * modules/long-options (Depends-on): Likewise.
349         * modules/xstrtol (Depends-on): Likewise.
350
351 2009-08-13  Simon Josefsson  <simon@josefsson.org>
352
353         * tests/test-version-etc.sh: Don't fail on different
354         project/version.  Don't fail on CRLF differences.  Rewrite to use
355         multiple -e instead of multiple sed forks, suggested by Eric Blake
356         <ebb9@byu.net>.
357         * tests/test-argp-version-etc-1.sh: Likewise.
358
359 2009-08-13  Simon Josefsson  <simon@josefsson.org>
360
361         * tests/test-version-etc.sh: Don't fail on different
362         project/version.
363
364 2009-08-12  Bruno Haible  <bruno@clisp.org>
365
366         Tests for modules 'getopt-posix', 'getopt-gnu'.
367         * modules/getopt-posix-tests: New file.
368         * tests/test-getopt.c: New file.
369         * tests/test-getopt.h: New file.
370         * tests/test-getopt_long.h: New file.
371
372         New modules 'getopt-posix', 'getopt-gnu'.
373         * modules/getopt-gnu: New file, renamed from modules/getopt.
374         * modules/getopt-posix: New file.
375         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
376         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
377         (gl_GETOPT): Remove macro.
378         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
379         Disable the test against BSD systems that declare optreset. Test
380         against mingw bug. Test against lack of support of optional arguments
381         on many platforms.
382         * doc/glibc-headers/getopt.texi: Update module name and list of
383         relevant platforms.
384         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
385         'getopt-gnu' and more portability problems.
386         * NEWS: Mention the changes.
387
388 2009-08-12  Bruno Haible  <bruno@clisp.org>
389
390         Ensure that optarg etc. get declared by <unistd.h>.
391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
392         AC_USE_SYSTEM_EXTENSIONS.
393         * modules/getopt (Depends-on): Add 'extensions'.
394
395 2009-08-12  Bruno Haible  <bruno@clisp.org>
396
397         Avoid test link errors.
398         * modules/pipe-filter-ii-tests (Makefile.am): Define
399         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
400         * modules/pipe-filter-gi-tests (Makefile.am): Define
401         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
402         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
403
404 2009-08-12  Bruno Haible  <bruno@clisp.org>
405
406         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
407         gl_GETOPT_SUBSTITUTE before.
408         (gl_GETOPT): Use it.
409         * m4/argp.m4 (gl_ARGP): Update.
410         Reported by Sergey Poznyakoff.
411
412         * m4/getopt.m4: Reorder macros.
413         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
414         (gl_GETOPT_SUBSTITUTE): Remove macro.
415
416 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
417
418         Minor improvement in gitlog-to-changelog
419
420         * build-aux/gitlog-to-changelog: New option `--format' makes
421         output format string configurable.
422
423 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
424
425         Optimize exclude: use hash tables for non-wildcard patterns.
426
427         * lib/exclude.c: Include hash.h and mbuiter.h
428         (struct exclude_pattern, exclude_segment): New data types.
429         (struct exclude): Rewrite.
430         (fnmatch_pattern_has_wildcards): New function.
431         (new_exclude_segment, free_exclude_segment): New functions.
432         (excluded_file_pattern_p, excluded_file_name_p): New functions.
433         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
434         * lib/exclude.h (is_fnmatch_pattern): New prototype.
435         * modules/exclude: Depend on hash and mbuiter.
436
437         * modules/exclude-tests: New file.
438         * tests/test-exclude.c: New file.
439         * tests/test-exclude1.sh: New file.
440         * tests/test-exclude2.sh: New file.
441         * tests/test-exclude3.sh: New file.
442         * tests/test-exclude4.sh: New file.
443         * tests/test-exclude5.sh: New file.
444         * tests/test-exclude6.sh: New file.
445         * tests/test-exclude7.sh: New file.
446
447 2009-08-12  Bruno Haible  <bruno@clisp.org>
448
449         Ensure that getopt() gets declared by <unistd.h>.
450         * lib/unistd.in.h: Conditionally include getopt.h.
451         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
452         Set GNULIB_UNISTD_H_GETOPT.
453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
454         GNULIB_UNISTD_H_GETOPT.
455         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
456
457 2009-08-12  Bruno Haible  <bruno@clisp.org>
458
459         Clarify logic.
460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
461         gl_replace_getopt instead of GETOPT_H.
462
463 2009-08-12  Bruno Haible  <bruno@clisp.org>
464
465         * m4/getopt.m4: Add comments.
466
467 2009-08-12  Bruno Haible  <bruno@clisp.org>
468
469         Disable multithread support by default on Cygwin 1.5.x.
470         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
471         set gl_use_threads=no if not specified otherwise.
472
473 2009-08-11  Bruno Haible  <bruno@clisp.org>
474
475         Avoid compilation error on NetBSD 5.0.
476         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
477         * tests/test-stdio.c: Likewise.
478         * tests/test-stdlib.c: Likewise.
479         * tests/test-string.c: Likewise.
480         * tests/test-unistd.c: Likewise.
481         Reported by Greg Troxel <gdt@ir.bbn.com>
482         at <https://savannah.gnu.org/support/?106973>.
483
484 2009-08-11  Bruno Haible  <bruno@clisp.org>
485
486         * modules/dup2-tests (Depends-on): Remove close.
487
488         Undo 2009-07-19 commit.
489         * modules/acl-tests (Depends-on): Remove close.
490         * modules/binary-io-tests (Depends-on): Likewise.
491         * modules/closein-tests (Depends-on): Likewise.
492         * modules/flock-tests (Depends-on): Likewise.
493         * modules/fsync-tests (Depends-on): Likewise.
494         * modules/lseek-tests (Depends-on): Likewise.
495         * modules/pipe-tests (Depends-on): Likewise.
496         * modules/posix_spawn-tests (Depends-on): Likewise.
497         * modules/posix_spawnp-tests (Depends-on): Likewise.
498         * modules/stat-time-tests (Depends-on): Likewise.
499         * modules/yesno-tests (Depends-on): Likewise.
500
501 2009-08-10  Bruno Haible  <bruno@clisp.org>
502
503         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
504
505 2009-08-10  Bruno Haible  <bruno@clisp.org>
506
507         Fix a gcc warning.
508         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
509
510 2009-08-10  Bruno Haible  <bruno@clisp.org>
511
512         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
513         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
514         not only the first time.
515         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
516         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
517         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
518         is 1, not only the the first time.
519
520 2009-08-10  Bruno Haible  <bruno@clisp.org>
521
522         Make it possible to use module 'gethostname' without module 'close'.
523         * lib/unistd.in.h (close): Evoke a link error only if
524         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
526         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
527         * modules/unistd (Makefile.am): Substitute
528         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
529         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
530         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
532         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
533         * modules/sys_ioctl (Makefile.am): Substitute
534         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
535         * modules/socket (configure.ac): On native Windows, set
536         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
537         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
538         Reported by Sam Steingold <sds@gnu.org>.
539
540 2009-08-10  Bruno Haible  <bruno@clisp.org>
541
542         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
543         * modules/ioctl (configure.ac): Likewise.
544
545 2009-08-10  Bruno Haible  <bruno@clisp.org>
546
547         Avoid collision between gnulib wrapper and libintl wrapper.
548         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
549         already defined in intl/printf.c.
550         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
551         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
552
553 2009-08-09  Bruno Haible  <bruno@clisp.org>
554
555         Make <sys/select.h> really self-contained, also on Solaris 10.
556         * lib/sys_select.in.h: Include <string.h>.
557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
558         Solaris 10 problem.
559         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
560         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
561         Reported by Jim Meyering.
562
563 2009-08-09  Bruno Haible  <bruno@clisp.org>
564
565         Avoid warnings from 'aclocal' that are due to a use of macro name
566         AM_XGETTEXT_OPTION that is not defined in automake.
567         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
568         automake.
569         * modules/error (configure.ac): Likewise.
570         * modules/propername (configure.ac): Likewise.
571         * modules/vasprintf (configure.ac): Likewise.
572         * modules/verror (configure.ac): Likewise.
573         * modules/xprintf (configure.ac): Likewise.
574         * modules/xvasprintf (configure.ac): Likewise.
575
576 2009-08-08  Bruno Haible  <bruno@clisp.org>
577
578         Avoid compilation error in C++ mode.
579         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
580         Reported by Sam Steingold <sds@gnu.org>.
581
582 2009-08-08  Bruno Haible  <bruno@clisp.org>
583
584         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
585         for the various Unix platforms.
586         * doc/posix-headers/limits.texi: Update platforms list regarding
587         HOST_NAME_MAX.
588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
589
590 2009-08-07  Jim Meyering  <meyering@redhat.com>
591
592         selinux-at: fix typo in a comment
593         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
594         Spotted by Paolo Bonzini.
595
596         selinux-at: remove redundant m4 code, add documentation
597         * modules/selinux-at (configure.ac): Remove redundant code.
598         LIB_SELINUX is already set via the dependent module, selinux-h.
599         (Include): Add quotes around selinux-at.h.
600         * lib/selinux-at.h: Add documentation.
601         Reported by Bruno Haible in
602         http://marc.info/?l=gnulib-bug&m=124958988300749
603
604 2009-08-07  Bruno Haible  <bruno@clisp.org>
605
606         Avoid link error on MacOS X 10.3 and 10.4.
607         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
608         on non-ELF systems.
609         * lib/argp-pv.c (argp_program_version): Likewise.
610         Reported by Simon Josefsson.
611
612 2009-08-07  Simon Josefsson  <simon@josefsson.org>
613
614         * tests/test-version-etc.sh: Use $EXEEXT.
615
616 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
617
618         update-copyright: update documentation to point to maint.mk
619         * build-aux/update-copyright: Here.
620
621 2009-08-06  Jim Meyering  <meyering@redhat.com>
622
623         maint.mk: support update-copyright-local
624         * top/maint.mk (update-copyright-local): Define place-holder.
625         (update-copyright): Depend on $(update-copyright-local).
626
627 2009-08-06  Jim Meyering  <meyering@redhat.com>
628
629         selinux-at: new module
630         Initially written for coreutils, this module will soon be
631         used by findutils, too.
632         * MODULES.html.sh [Misc]: Add selinux-at.
633         * lib/selinux-at.h: New file, from coreutils.
634         * lib/selinux-at.c: Likewise.
635         * modules/selinux-at: Likewise.
636         (License): Change from LGPL to GPL, since it depends
637         on the GPL'd openat module.
638
639         doc: update README
640         * README: Remove references to cogito.
641         Remove cvs-repo-updating instructions from 2007.
642         Don't imply that CVS is better if you have limited disk space.
643
644 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
645
646         update-copyright: support C-style comments
647         * build-aux/update-copyright: Implement and document.
648         * tests/test-update-copyright.sh: Test.
649
650 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
651
652         update-copyright: support omitted "(C)"
653         * build-aux/update-copyright: Implement and document.  Also,
654         allow variable whitespace before "(C)".
655         * tests/test-update-copyright.sh: Test.
656
657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
658
659         update-copyright: don't trip on non-FSF copyright statements
660         * build-aux/update-copyright: Fix so that the first correctly
661         formatted FSF copyright statement is recognized no matter what
662         appears before it.  Update documentation.
663         * tests/test-update-copyright.sh: Test that.
664
665 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
666
667         update-copyright: clean up code a little
668         * build-aux/update-copyright: Append "_re" to the name of any
669         variable holding a regular expression.
670         Replace "old" and "new" with "stmt" in variable names.
671         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
672         handled correctly.
673         Format code more consistently.
674
675 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
676
677         update-copyright-tests: improve portability
678         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
679         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
680
681 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
682
683         update-copyright: support @copyright{} and &copy;
684         * build-aux/update-copyright: Implement and document.
685         * tests/test-update-copyright.sh: Test.
686
687 2009-08-04  Jim Meyering  <meyering@redhat.com>
688
689         update-copyright-tests: correctly test EOL=\r\n handling
690         * tests/test-update-copyright.sh: Put \r at the end of some lines
691         for the dos-eol tests.  Based on a patch by Joel E. Denny.
692
693         maint.mk: make update-copyright exclusion list more configurable
694         * top/maint.mk (update-copyright): Default to excluding COPYING,
695         but allow an override, in case someone does want to update that file.
696
697         maint.mk: don't update copyright date in COPYING
698         * top/maint.mk (update-copyright): Exclude COPYING.
699
700         maint.mk: add a copyright-updating rule
701         * top/maint.mk (update-copyright): New rule.
702         Derived from coreutils/Makefile.am.
703
704         update-copyright: rename some variables
705         * build-aux/update-copyright: Rename a few variables for clarity.
706         Tweak syntax.  List Joel E. Denny as coauthor.
707
708 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
709
710         update-copyright: fix bug for 2-digit last year and add tests
711         * build-aux/update-copyright: Fix bug.
712         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
713         specified.
714         * modules/update-copyright-tests: New
715         * tests/test-update-copyright.sh: New.
716
717 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
718
719         update-copyright: handle leading tabs in line prefix
720         * build-aux/update-copyright: Count leading tabs as 8 spaces
721         when computing margin.  This helps with the formatting of
722         ChangeLogs, for example.
723         Fix documentation a little.
724
725 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
726
727         update-copyright: support EOL=\r\n
728         * build-aux/update-copyright: Implement that.
729
730 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
731
732         update-copyright: automatically format copyright statements
733         * build-aux/update-copyright: Implement that.
734         Also, be a little more predictable and safer by always failing
735         when the full copyright format is not perfectly recognized as an
736         unbroken whole.  Discussed at
737         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
738         Rewrite documentation.
739
740 2009-08-03  Bruno Haible  <bruno@clisp.org>
741
742         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
743
744 2009-08-02  Bruno Haible  <bruno@clisp.org>
745
746         Tests for module 'uname'.
747         * modules/uname-tests: New file.
748         * tests/test-uname.c: New file.
749
750         New module 'uname'.
751         * lib/uname.c: New file.
752         * m4/uname.m4: New file.
753         * modules/uname: New file.
754         * doc/posix-functions/uname.texi: Mention the new module.
755
756 2009-08-02  Bruno Haible  <bruno@clisp.org>
757
758         Tests for module 'sys_utsname'.
759         * modules/sys_utsname-tests: New file.
760         * tests/test-sys_utsname.c: New file.
761
762         New module 'sys_utsname'.
763         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
764         * m4/sys_utsname_h.m4: New file.
765         * modules/sys_utsname: New file.
766         * doc/posix-headers/sys_utsname.texi: Mention the new module.
767
768 2009-08-02  Bruno Haible  <bruno@clisp.org>
769
770         Implicitly initialize the sockets library.
771         * lib/gethostname.c: Include sockets.h.
772         (rpl_gethostname): Invoke gl_sockets_startup.
773         * lib/socket.c: Include sockets.h.
774         (rpl_socket): Invoke gl_sockets_startup.
775         * modules/gethostname (Depends-on): Add sockets.
776         * modules/socket (Depends-on): Likewise.
777         * tests/test-poll.c: Don't include sockets.h.
778         (main): Don't invoke gl_sockets_startup.
779         * tests/test-select.c: Don't include sockets.h.
780         (main): Don't invoke gl_sockets_startup.
781
782 2009-08-02  Bruno Haible  <bruno@clisp.org>
783
784         Allow multiple calls to gl_sockets_startup.
785         * lib/sockets.c (initialized_sockets_version): New variable.
786         (gl_sockets_startup): Do nothing if already called for this or a higher
787         version.
788         (gl_sockets_cleanup): Reset initialized_sockets_version.
789
790 2009-08-03  Simon Josefsson  <simon@josefsson.org>
791
792         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
793         different project/version.
794
795 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
796             Bruno Haible  <bruno@clisp.org>
797
798         Tests for module 'pipe-filter-gi'.
799         * modules/pipe-filter-gi-tests: New file.
800         * tests/test-pipe-filter-gi1.sh: New file.
801         * tests/test-pipe-filter-gi1.c: New file.
802         * tests/test-pipe-filter-gi2.sh: New file.
803         * tests/test-pipe-filter-gi2-main.c: New file.
804         * tests/test-pipe-filter-gi2-child.c: New file.
805
806         New module 'pipe-filter-gi'.
807         * lib/pipe-filter-gi.c: New file.
808         * modules/pipe-filter-gi: New file.
809
810 2009-08-02  Bruno Haible  <bruno@clisp.org>
811             Paolo Bonzini  <bonzini@gnu.org>
812
813         Tests for module 'pipe-filter-ii'.
814         * modules/pipe-filter-ii-tests: New file.
815         * tests/test-pipe-filter-ii1.sh: New file.
816         * tests/test-pipe-filter-ii1.c: New file.
817         * tests/test-pipe-filter-ii2.sh: New file.
818         * tests/test-pipe-filter-ii2-main.c: New file.
819         * tests/test-pipe-filter-ii2-child.c: New file.
820
821         New module 'pipe-filter-ii'.
822         * lib/pipe-filter.h: New file.
823         * lib/pipe-filter-ii.c: New file.
824         * lib/pipe-filter-aux.h: New file.
825         * modules/pipe-filter-ii: New file.
826
827 2009-08-02  Simon Josefsson  <simon@josefsson.org>
828
829         * lib/gc-libgcrypt.c: Change copyright to FSF.
830         * lib/gc-gnulib.c: Likewise.
831
832 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
833
834         * lib/gethostname.c: Include limits.h.
835
836 2009-08-02  Simon Josefsson  <simon@josefsson.org>
837             Bruno Haible  <bruno@clisp.org>
838
839         Ensure HOST_NAME_MAX as part of the gethostname module.
840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
841         define also HOST_NAME_MAX.
842         * tests/test-gethostname.c: Include <limits.h>.
843         (main): Check also HOST_NAME_MAX.
844         * doc/posix-headers/limits.texi: Document the mingw problem.
845
846 2009-08-02  Bruno Haible  <bruno@clisp.org>
847
848         * lib/gethostname.c (gethostname): Fix handling of large len argument.
849         Add comments.
850
851 2009-03-31  Simon Josefsson  <simon@josefsson.org>
852
853         * lib/gethostname.c: Add Windows wrapper.
854         * m4/gethostname.m4: Look for gethostname in -lws2_32.
855         * modules/gethostname: Depend on sys_socket & errno, for also
856         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
857         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
858
859 2009-07-31  Jim Meyering  <meyering@redhat.com>
860
861         getloadavg: fix symbol name in comment
862         * lib/getloadavg.c: Correct a typo I introduced when adding
863         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
864         Matt Kraai spotted the problem.
865
866 2009-07-29  Matt Kraai  <mkraai@beckman.com>
867
868         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
869         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
870         code also if ! defined N_NAME_POINTER.
871         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
872         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
873         but the n_name member is a 12-byte array.
874
875 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
876
877         update-copyright: generalize comment handling
878         * build-aux/update-copyright: Handle copyright statements
879         within more comment styles.
880         Document usage.
881         Report any file with an external copyright holder or parse failure.
882
883 2009-07-29  Jim Meyering  <meyering@redhat.com>
884
885         mktime: correct setting of REPLACE_MKTIME
886         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
887
888         update-copyright: new module
889         * modules/update-copyright: New file.
890         * build-aux/update-copyright: New file.
891         * MODULES.html.sh (maint+release support): Add update-copyright.
892
893 2009-07-27  Bruno Haible  <bruno@clisp.org>
894
895         Fix compilation error when <ctime> is used and mktime is replaced.
896         * lib/time.in.h (mktime): New declaration.
897         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
898         REPLACE_MKTIME instead of defining mktime in config.h.
899         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
900         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
901         Reported by Ross McFarland <rwmcfa1@neces.com>.
902
903 2009-07-27  Bruno Haible  <bruno@clisp.org>
904
905         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
906         Reported by Matt Kraai <mkraai@beckman.com>.
907
908 2009-07-25  Jim Meyering  <meyering@redhat.com>
909
910         maint.mk: avoid warnings about missing files
911         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
912         diagnostic when .prev-version does not exist.
913         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
914         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
915         nonexistent cfg.mk.
916         Suggestions from Simon Josefsson.
917
918 2009-07-25  Bruno Haible  <bruno@clisp.org>
919
920         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
921         defined as macros. Needed on QNX 6.4.1.
922         Reported by Matt Kraai <mkraai@beckman.com>.
923
924 2009-07-23  Jim Meyering  <meyering@redhat.com>
925
926         maint.mk: invoke "make dist" with a working value of XZ_OPT
927         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
928
929 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
930
931         Make fseeko.c compile on QNX.
932         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
933
934 2009-07-22  Peter Simons  <simons@cryp.to>
935
936         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
937         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
938         * lib/md4.h: Likewise.
939         * lib/md5.h: Likewise.
940         * lib/sha1.h: Likewise.
941         * lib/sha256.h: Likewise.
942         * lib/sha512.h: Likewise.
943
944         tests-sha1: don't assign literal string to 'char *' variable
945         * tests/test-sha1.c (main): Declare locals with "const" to match
946         attributes of the right hand side.
947
948 2009-07-21  Eric Blake  <ebb9@byu.net>
949
950         dup2: fix more mingw problems
951         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
952         fd to itself.
953         * doc/posix-functions/dup2.texi (dup2): Document the bug.
954         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
955         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
956         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
957         care of mingw bugs.
958
959 2009-07-21  Jim Meyering  <meyering@redhat.com>
960
961         vc-list-files: avoid failure when /bin/sh is dash
962         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
963         On some Debian based systems, /bin/sh is a symlink to dash, and running
964         this command would omit the "/" following each 'tests' prefix:
965           dash -x build-aux/vc-list-files -C . tests
966         That is because bash and dash work differently:
967           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
968           bash ok
969           dash odd
970
971 2009-07-21  Eric Blake  <ebb9@byu.net>
972
973         dup2-tests: test previous patch
974         * modules/dup2-tests: New file.
975         * tests/test-dup2.c: Likewise.
976         * tests/test-open.c (main): Avoid unspecified behavior.
977         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
978         test.
979
980         dup2: work around mingw and cygwin 1.5 bug
981         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
983         * modules/unistd (Makefile.am): Substitute it.
984         * lib/unistd.in.h (dup2): Declare the replacement.
985         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
986         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
987         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
988         * modules/execute (Depends-on): Add dup2.
989         * modules/fseterr (Depends-on): Likewise.
990         * modules/pipe (Depends-on): Likewise.
991         * modules/posix_spawn-internal (Depends-on): Likewise.
992
993 2009-07-21  Bruno Haible  <bruno@clisp.org>
994
995         * modules/.gitattributes: New file.
996
997 2009-07-20  Bruno Haible  <bruno@clisp.org>
998
999         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
1000         (main): Use it.
1001
1002 2009-07-20  Eric Blake  <ebb9@byu.net>
1003
1004         test-pipe: make a bit more robust.
1005         * tests/test-pipe.c (myerr): Allow error messages regardless of
1006         what we do to stderr.
1007         (test_pipe): Rearrange to avoid deadlock.
1008         (child_main): Try a larger read, to ensure we avoided deadlock.
1009         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
1010         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
1011         if misused.
1012
1013 2009-07-19  Jim Meyering  <meyering@redhat.com>
1014
1015         fts: avoid false-positive cycle-detection
1016         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
1017         for each new command line argument.
1018
1019 2009-07-19  Bruno Haible  <bruno@clisp.org>
1020
1021         Fix build error on mingw with the modules sys_select and unistd.
1022         * modules/acl-tests (Depends-on): Add close.
1023         * modules/binary-io-tests (Depends-on): Likewise.
1024         * modules/closein-tests (Depends-on): Likewise.
1025         * modules/flock-tests (Depends-on): Likewise.
1026         * modules/fsync-tests (Depends-on): Likewise.
1027         * modules/lseek-tests (Depends-on): Likewise.
1028         * modules/pipe-tests (Depends-on): Likewise.
1029         * modules/posix_spawn-tests (Depends-on): Likewise.
1030         * modules/posix_spawnp-tests (Depends-on): Likewise.
1031         * modules/stat-time-tests (Depends-on): Likewise.
1032         * modules/yesno-tests (Depends-on): Likewise.
1033
1034 2009-07-19  Bruno Haible  <bruno@clisp.org>
1035
1036         Unify conditionals.
1037         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
1038         macros, not at the compiler macros.
1039         * lib/pipe.c: Likewise.
1040         * lib/execute.c: Likewise.
1041         * lib/spawni.c: Likewise.
1042
1043 2009-07-19  Bruno Haible  <bruno@clisp.org>
1044
1045         Fix handling of closed stdin/stdout/stderr on mingw.
1046         * lib/w32spawn.h: Include unistd.h.
1047         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
1048         file descriptor with O_NOINHERIT flag.
1049         (fd_safer_noinherit): New function, based on fd-safer.c.
1050         (dup_safer_noinherit): New function, based on dup-safer.c.
1051         (undup_safer_noinherit): New function.
1052         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
1053         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
1054         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
1055         instead of fd_safer.
1056         * tests/test-pipe.c: Include <windows.h>.
1057         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
1058
1059         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
1060         from main.
1061         (test_pipe): Pass an extra argument for disambiguation.
1062         (main): Invoke parent_main or child_main.
1063
1064         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
1065         consistently.
1066
1067 2009-07-18  Eric Blake  <ebb9@byu.net>
1068
1069         test-pipe: fix mingw build
1070         * tests/test-pipe.c (main): Avoid fcntl on mingw.
1071
1072 2009-07-18  Bruno Haible  <bruno@clisp.org>
1073
1074         * modules/pipe-tests (Makefile.am): Fix typo.
1075
1076 2009-07-18  Eric Blake  <ebb9@byu.net>
1077
1078         error: fix mingw build
1079         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
1080         Reported by Bruno Haible.
1081
1082         error: avoid undefined use of stdout
1083         * lib/error.c (error, error_at_line): Check that fd 1 is open
1084         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
1085         is handling faults and the close_stdout module wants to report the
1086         detection of closed stdout as an error.
1087
1088 2009-07-17  Eric Blake  <ebb9@byu.net>
1089
1090         pipe: be robust in face of closed fds
1091         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
1092         should cause child to misbehave.
1093         * modules/pipe-tests: New module.
1094         * tests/test-pipe.c: New file.
1095         * tests/test-pipe.sh: New file.
1096         Reported by Akim Demaille.
1097
1098 2009-07-14  Bruno Haible  <bruno@clisp.org>
1099
1100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
1101         Reported by anonymous kc.
1102
1103 2009-07-07  Jim Meyering  <meyering@redhat.com>
1104
1105         maint.mk: don't look for translatable strings in *.m4 or *.mk
1106         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
1107         when searching for translatable strings.
1108
1109 2009-07-05  Jim Meyering  <meyering@redhat.com>
1110
1111         remove superfluous parentheses in STREQ definition
1112         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
1113         * lib/getugroups.c (STREQ): Likewise.
1114         * lib/fnmatch.c (STREQ): Likewise.
1115         Spotted by Bruno Haible.
1116
1117 2009-07-04  Jim Meyering  <meyering@redhat.com>
1118
1119         argv-iter: new module
1120         * MODULES.html.sh: Add argv-iter.
1121         * lib/argv-iter.c, lib/argv-iter.h: New files.
1122         * modules/argv-iter: New file.
1123         * modules/argv-iter-tests: New file.
1124         * tests/test-argv-iter.c: Test it.
1125
1126 2009-07-04  Bruno Haible  <bruno@clisp.org>
1127
1128         Fix assertion.
1129         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
1130         contains more exact copies of a given entry than file2, leave the extra
1131         copies unpaired rather than aborting.
1132         Reported by Eric Blake.
1133
1134 2009-07-02  Bruno Haible  <bruno@clisp.org>
1135
1136         Speedup git-merge-changelog for git cherry-pick.
1137         * lib/git-merge-changelog.c (struct entries_mapping): New type.
1138         (entries_mapping_get): New function, extracted from compute_mapping.
1139         (entries_mapping_reverse_get): New function.
1140         (compute_mapping): Add a 'full' argument. Return the result in a
1141         'struct entries_mapping'.
1142         (main): Update. Access the mappings through entries_mapping_get.
1143         Reported by Eric Blake.
1144
1145 2009-07-02  Bruno Haible  <bruno@clisp.org>
1146
1147         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
1148         best_i.
1149
1150 2009-07-02  Bruno Haible  <bruno@clisp.org>
1151
1152         Speed up approximate search for matching ChangeLog entries.
1153         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
1154         argument. Call fstrcmp_bounded instead of fstrcmp.
1155         (compute_mapping, try_split_merged_entry, main): Update callers.
1156
1157 2009-07-02  Bruno Haible  <bruno@clisp.org>
1158
1159         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
1160
1161 2009-06-30  Bruno Haible  <bruno@clisp.org>
1162
1163         Reduce the number of uc_is_cased calls.
1164         * lib/unicase.h (casing_suffix_context_t): Add
1165         'first_char_except_ignorable' field.
1166         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
1167         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
1168         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
1169         Update initializer.
1170         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
1171         case-ignorable characters.
1172         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
1173         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
1174         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
1175         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
1176         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
1177
1178 2009-06-30  Bruno Haible  <bruno@clisp.org>
1179
1180         Tests for module 'unicase/ignorable'.
1181         * modules/unicase/ignorable-tests: New file.
1182         * tests/unicase/test-ignorable.c: New file, generated by
1183         gen-uni-tables.
1184
1185         Tests for module 'unicase/cased'.
1186         * modules/unicase/cased-tests: New file.
1187         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
1188         * tests/unicase/test-predicate-part1.h: New file, derived from
1189         tests/unictype/test-predicate-part1.h.
1190         * tests/unicase/test-predicate-part2.h: New file, same as
1191         tests/unictype/test-predicate-part2.h.
1192
1193         Fix evaluation of "Before C" condition of FINAL_SIGMA.
1194         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
1195         (output_casing_properties): New function.
1196         (main): Call it.
1197         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
1198         * lib/unicase/cased.c: Include unictype/bitmap.h.
1199         (uc_is_cased): Define through a bitmap lookup.
1200         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
1201         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
1202         (uc_is_case_ignorable): Define through a bitmap lookup.
1203         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
1204         lib/unictype/bitmap.h.
1205         (Depends-on): Add inline. Clean up.
1206         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
1207         lib/unictype/bitmap.h.
1208         (Depends-on): Add inline. Clean up.
1209         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
1210         recognition.
1211         * tests/unicase/test-u16-tolower.c (main): Likewise.
1212         * tests/unicase/test-u32-tolower.c (main): Likewise.
1213
1214 2009-06-30  Bruno Haible  <bruno@clisp.org>
1215
1216         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
1217         * lib/unicase/u16-casemap.c: Likewise.
1218         * lib/unicase/u32-casemap.c: Likewise.
1219
1220 2009-06-29  Bruno Haible  <bruno@clisp.org>
1221
1222         Define u32_casefold as a wrapper around u32_ct_casefold.
1223         * lib/unicase/u32-casefold.c: Update.
1224         * modules/unicase/u32-casefold (Depends-on): Add
1225         unicase/u32-ct-casefold, unicase/empty-prefix-context,
1226         unicase/empty-suffix-context. Clean up.
1227
1228         Define u16_casefold as a wrapper around u16_ct_casefold.
1229         * lib/unicase/u16-casefold.c: Update.
1230         * modules/unicase/u16-casefold (Depends-on): Add
1231         unicase/u16-ct-casefold, unicase/empty-prefix-context,
1232         unicase/empty-suffix-context. Clean up.
1233
1234         Define u8_casefold as a wrapper around u8_ct_casefold.
1235         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
1236         * lib/unicase/u8-casefold.c: Update.
1237         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
1238         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1239
1240         Define u32_totitle as a wrapper around u32_ct_totitle.
1241         * lib/unicase/u32-totitle.c: Update.
1242         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
1243         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1244
1245         Define u16_totitle as a wrapper around u16_ct_totitle.
1246         * lib/unicase/u16-totitle.c: Update.
1247         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
1248         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1249
1250         Define u8_totitle as a wrapper around u8_ct_totitle.
1251         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
1252         functions.
1253         (FUNC): Delegate to U_CT_TOTITLE.
1254         * lib/unicase/u8-totitle.c: Update.
1255         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
1256         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1257
1258         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
1259         invocation.
1260         * modules/unicase/u32-tolower (Depends-on): Add
1261         unicase/empty-prefix-context, unicase/empty-suffix-context.
1262
1263         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
1264         invocation.
1265         * modules/unicase/u16-tolower (Depends-on): Add
1266         unicase/empty-prefix-context, unicase/empty-suffix-context.
1267
1268         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
1269         * modules/unicase/u8-tolower (Depends-on): Add
1270         unicase/empty-prefix-context, unicase/empty-suffix-context.
1271
1272         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
1273         invocation.
1274         * modules/unicase/u32-toupper (Depends-on): Add
1275         unicase/empty-prefix-context, unicase/empty-suffix-context.
1276
1277         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
1278         invocation.
1279         * modules/unicase/u16-toupper (Depends-on): Add
1280         unicase/empty-prefix-context, unicase/empty-suffix-context.
1281
1282         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
1283         * modules/unicase/u8-toupper (Depends-on): Add
1284         unicase/empty-prefix-context, unicase/empty-suffix-context.
1285
1286         New module 'unicase/u32-ct-casefold'.
1287         * lib/unicase/u32-ct-casefold.c: New file.
1288         * modules/unicase/u32-ct-casefold: New file.
1289
1290         New module 'unicase/u16-ct-casefold'.
1291         * lib/unicase/u16-ct-casefold.c: New file.
1292         * modules/unicase/u16-ct-casefold: New file.
1293
1294         New module 'unicase/u8-ct-casefold'.
1295         * lib/unicase/u8-ct-casefold.c: New file.
1296         * lib/unicase/u-ct-casefold.h: New file, derived from
1297         lib/unicase/u-casefold.h.
1298         * modules/unicase/u8-ct-casefold: New file.
1299
1300         New module 'unicase/u32-ct-totitle'.
1301         * lib/unicase/u32-ct-totitle.c: New file.
1302         * modules/unicase/u32-ct-totitle: New file.
1303
1304         New module 'unicase/u16-ct-totitle'.
1305         * lib/unicase/u16-ct-totitle.c: New file.
1306         * modules/unicase/u16-ct-totitle: New file.
1307
1308         New module 'unicase/u8-ct-totitle'.
1309         * lib/unicase/u8-ct-totitle.c: New file.
1310         * lib/unicase/u-ct-totitle.h: New file, derived from
1311         lib/unicase/u-totitle.h.
1312         * modules/unicase/u8-ct-totitle: New file.
1313
1314         New module 'unicase/u32-ct-tolower'.
1315         * lib/unicase/u32-ct-tolower.c: New file.
1316         * modules/unicase/u32-ct-tolower: New file.
1317
1318         New module 'unicase/u16-ct-tolower'.
1319         * lib/unicase/u16-ct-tolower.c: New file.
1320         * modules/unicase/u16-ct-tolower: New file.
1321
1322         New module 'unicase/u8-ct-tolower'.
1323         * lib/unicase/u8-ct-tolower.c: New file.
1324         * modules/unicase/u8-ct-tolower: New file.
1325
1326         New module 'unicase/u32-ct-toupper'.
1327         * lib/unicase/u32-ct-toupper.c: New file.
1328         * modules/unicase/u32-ct-toupper: New file.
1329
1330         New module 'unicase/u16-ct-toupper'.
1331         * lib/unicase/u16-ct-toupper.c: New file.
1332         * modules/unicase/u16-ct-toupper: New file.
1333
1334         New module 'unicase/u8-ct-toupper'.
1335         * lib/unicase/u8-ct-toupper.c: New file.
1336         * modules/unicase/u8-ct-toupper: New file.
1337
1338         Add context arguments to u*_casemap functions.
1339         * lib/unicase/unicasemap.h: Include unicase.h.
1340         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
1341         suffix_context arguments.
1342         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
1343         functions.
1344         (FUNC): Add prefix_context and suffix_context arguments. Use
1345         uc_is_cased and uc_is_case_ignorable.
1346         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
1347         * lib/unicase/u16-casemap.c: Likewise.
1348         * lib/unicase/u32-casemap.c: Likewise.
1349         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
1350         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1351         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
1352         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1353         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
1354         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1355
1356         New module 'unicase/u32-suffix-context'.
1357         * lib/unicase/u32-suffix-context.c: New file.
1358         * modules/unicase/u32-suffix-context: New file.
1359
1360         New module 'unicase/u16-suffix-context'.
1361         * lib/unicase/u16-suffix-context.c: New file.
1362         * modules/unicase/u16-suffix-context: New file.
1363
1364         New module 'unicase/u8-suffix-context'.
1365         * lib/unicase/u8-suffix-context.c: New file.
1366         * lib/unicase/u-suffix-context.h: New file.
1367         * modules/unicase/u8-suffix-context: New file.
1368
1369         New module 'unicase/empty-suffix-context'.
1370         * lib/unicase/empty-suffix-context.c: New file.
1371         * modules/unicase/empty-suffix-context: New file.
1372
1373         New module 'unicase/u32-prefix-context'.
1374         * lib/unicase/u32-prefix-context.c: New file.
1375         * modules/unicase/u32-prefix-context: New file.
1376
1377         New module 'unicase/u16-prefix-context'.
1378         * lib/unicase/u16-prefix-context.c: New file.
1379         * modules/unicase/u16-prefix-context: New file.
1380
1381         New module 'unicase/u8-prefix-context'.
1382         * lib/unicase/u8-prefix-context.c: New file.
1383         * lib/unicase/u-prefix-context.h: New file.
1384         * lib/unicase/context.h: New file.
1385         * modules/unicase/u8-prefix-context: New file.
1386
1387         New module 'unicase/empty-prefix-context'.
1388         * lib/unicase/empty-prefix-context.c: New file.
1389         * modules/unicase/empty-prefix-context: New file.
1390
1391         New module 'unicase/ignorable'.
1392         * lib/unicase/ignorable.c: New file.
1393         * modules/unicase/ignorable: New file.
1394
1395         New module 'unicase/cased'.
1396         * lib/unicase/caseprop.h: New file.
1397         * lib/unicase/cased.c: New file.
1398         * modules/unicase/cased: New file.
1399
1400         New functions for case mapping of substrings.
1401         * lib/unicase.h (casing_prefix_context_t): New type.
1402         (unicase_empty_prefix_context): New variable.
1403         (u8_casing_prefix_context, u16_casing_prefix_context,
1404         u32_casing_prefix_context, u8_casing_prefixes_context,
1405         u16_casing_prefixes_context, u32_casing_prefixes_context): New
1406         declarations.
1407         (casing_suffix_context_t): New type.
1408         (unicase_empty_suffix_context): New variable.
1409         (u8_casing_suffix_context, u16_casing_suffix_context,
1410         u32_casing_suffix_context, u8_casing_suffixes_context,
1411         u16_casing_suffixes_context, u32_casing_suffixes_context,
1412         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
1413         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
1414         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
1415         declarations.
1416
1417 2009-06-28  Jim Meyering  <meyering@redhat.com>
1418
1419         boostrap: indent only with spaces
1420         * build-aux/bootstrap: Indent only with spaces, never TABs.
1421
1422         bootstrap: split long lines
1423         * build-aux/bootstrap: Keep line length < 80.
1424
1425         bootstrap: sync from coreutils
1426         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
1427         just as autoreconf does.  Verify a list of prerequisite
1428         package-name,version-number pairs if defined in bootstrap.conf.
1429         Refer to README-prereq, if prerequisites are not satisfied.
1430
1431 2009-06-27  Eric Blake  <ebb9@byu.net>
1432
1433         tests: add test for bogus NULL definition
1434         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
1435         * tests/test-stdlib.c: Likewise.
1436         * tests/test-string.c: Likewise.
1437         * tests/test-locale.c: Likewise.
1438         * tests/test-unistd.c: Likewise.
1439         * modules/stdio-tests (Depends-on): Add verify.
1440         * modules/stdlib-tests (Depends-on): Likewise.
1441         * modules/string-tests (Depends-on): Likewise.
1442         * modules/locale-tests (Depends-on): Likewise.
1443         * modules/unistd-tests (Depends-on): Likewise.
1444
1445 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1446
1447         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
1448         self-explaining comment.
1449         * m4/selinux-selinux-h: Update serial.
1450         (gl_LIBSELINUX): New macro, adding a warning for missing development
1451         packages to code extracted from...
1452         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
1453         Add warning for missing development packages here, too.
1454
1455 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
1456
1457         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
1458
1459 2009-06-25  Eric Blake  <ebb9@byu.net>
1460
1461         version-etc: fix regression
1462         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
1463         gcc.
1464         (version_etc): Use it, to catch bugs with trailing NULL.
1465         * lib/version-etc.c (version_etc_arn): Delete unused argument.
1466         (version_etc_va): Fix logic bug.
1467         * modules/version-etc-tests: Add test.
1468         * tests/test-version-etc.c: New file.
1469         * tests/test-version-etc.sh: Likewise.
1470
1471 2009-06-25  Sam Steingold  <sds@gnu.org>
1472
1473         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
1474         mbtowc declaration.
1475
1476 2009-06-25  Eric Blake  <ebb9@byu.net>
1477
1478         fpurge: migrate into <stdio.h>
1479         * lib/fpurge.h: Delete...
1480         * lib/stdio.in.h (fpurge): ...and declare here, instead.
1481         * lib/fpurge.c (fpurge): Change declaring header.
1482         * modules/fpurge (Files): Drop deleted file.
1483         (Depends-on): Add stdio.
1484         (configure.ac): Set witness.
1485         * modules/stdio (Makefile.am): Support fpurge macros.
1486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1487         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
1488         * lib/fflush.c: Update client.
1489         * tests/test-fpurge.c: Likewise.
1490         * NEWS: Mention the change.
1491
1492 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1493
1494        * lib/argp-version-etc.c (program_authors): Add const
1495        qualifier.
1496        * lib/version-etc.c: Fix typos in the comments.
1497        * modules/argp-version-etc: Depends on version-etc.
1498
1499 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1500
1501         argp-version-etc: new module.
1502
1503         * lib/argp-version-etc.c: New file.
1504         * lib/argp-version-etc.h: New file.
1505         * modules/argp-version-etc: New file.
1506         * modules/argp-version-etc-tests: New file.
1507         * tests/test-argp-version-etc.c: New test.
1508         * tests/test-argp-version-etc-1.sh: New test.
1509
1510 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1511
1512         Provide additional interfaces and documentation for version-etc
1513         module.
1514
1515         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
1516         interfaces.
1517         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
1518         prototypes.
1519
1520 2009-06-24  Bruno Haible  <bruno@clisp.org>
1521
1522         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
1523         HAVE_LIB${NAME} macro.
1524         Reported by Sam Steingold <sds@gnu.org>.
1525
1526 2009-06-23  Simon Josefsson  <simon@josefsson.org>
1527
1528         * modules/hash-tests (test_hash_LDADD): Link to libintl when
1529         needed.
1530
1531 2009-06-21  Bruno Haible  <bruno@clisp.org>
1532
1533         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
1534         work.
1535         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
1536         together with LIB${NAME}, LTLIB${NAME}.
1537         Reported by Sam Steingold <sds@gnu.org>.
1538
1539 2009-06-20  Jim Meyering  <meyering@redhat.com>
1540
1541         tests: make sc_require_test_exit_idiom more generic
1542         * top/maint.mk (Exit_witness_file): New overridable variable.
1543         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
1544         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
1545
1546 2009-06-19  Jim Meyering  <meyering@redhat.com>
1547
1548         hash: reverse order of src/dst parameters in an internal interface
1549         * lib/hash.c (transfer_entries): Reverse order of parameters to
1550         put DST before SRC.  Adjust callers.
1551
1552         tests: test-hash: avoid wholesale duplication
1553         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
1554         Instead, use a loop and add a single conditional.
1555
1556         tests: test-hash: allow seed selection via a command line argument
1557         * tests/test-hash.c (get_seed): New function.
1558         (main): Use it.
1559
1560 2009-06-19  Eric Blake  <ebb9@byu.net>
1561
1562         hash: avoid memory leak on allocation failure
1563         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
1564         failure.  Factor repeated algorithm...
1565         (transfer_entries): ...into new helper routine.
1566         (hash_delete): React to hash_rehash return value.
1567
1568         hash: reduce memory pressure in hash_rehash no-op case
1569         * lib/hash.c (next_prime): Avoid overflow.
1570         (hash_initialize): Factor bucket size computation...
1571         (compute_bucket_size): ...into new helper function.
1572         (hash_rehash): Use new function and open coding to reduce memory
1573         pressure, and avoid a memory leak in USE_OBSTACK code.
1574         Reported by Jim Meyering.
1575
1576 2009-06-18  Eric Blake  <ebb9@byu.net>
1577
1578         hash: make rotation more obvious
1579         * modules/hash (Depends-on): Add bitrotate and stdint.
1580         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
1581         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
1582         (SIZE_MAX): Rely on headers for definition.
1583         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
1584         (raw_hasher): Use rotr_sz.
1585         Suggested by Jim Meyering.
1586
1587         hash: fix memory leak in last patch
1588         * lib/hash.c (hash_rehash): Avoid memory leak.
1589
1590         hash: avoid no-op rehashing
1591         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
1592
1593         hash: provide default callback functions
1594         * lib/hash.c (raw_hasher, raw_comparator): New functions.
1595         (hash_initialize): Use them as defaults.
1596         * tests/test-hash.c (main): Test this.
1597
1598         hash: minor optimization
1599         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
1600         when possible.
1601         (hash_initialize): Document this promise.
1602         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
1603         * tests/test-hash.c (hash_compare_strings): Test this.
1604
1605 2009-06-18  Bruno Haible  <bruno@clisp.org>
1606
1607         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
1608         going to be replaced anyway.
1609
1610 2009-06-18  Bruno Haible  <bruno@clisp.org>
1611
1612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
1613         in one place.
1614         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
1615         be replaced anyway.
1616
1617 2009-06-18  Eric Blake  <ebb9@byu.net>
1618
1619         hash: check for resize before insertion
1620         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
1621         threshold before insertion, so that a pathological hash_rehash
1622         that fills every bucket can still trigger another rehash.
1623
1624 2009-06-18  Jim Meyering  <meyering@redhat.com>
1625
1626         hash-tests: add a loop around the small tests
1627         * tests/test-hash.c (main): Repeat small tests with selected
1628         small initial table sizes.
1629
1630 2009-06-17  Eric Blake  <ebb9@byu.net>
1631
1632         hash: minor cleanups
1633         * lib/hash.h (hash_entry): Make opaque, by moving...
1634         * lib/hash.c (hash_entry): ...here.
1635         (hash_insert): Clarify restrictions on what can be inserted.
1636         (hash_get_next): Clarify when it is safe to remove an element
1637         during traversal.
1638         (check_tuning): Skip verification when tuning is known safe.
1639         (hash_initialize): Clarify restrictions on tuning.
1640
1641 2009-06-17  Jim Meyering  <jim@meyering.net>
1642         and Eric Blake  <ebb9@byu.net>
1643
1644         hash-tests: new module
1645         * modules/hash-tests: New file.
1646         * tests/test-hash.c: New file.
1647
1648 2009-06-17  Eric Blake  <ebb9@byu.net>
1649
1650         strstr-simple: document new module
1651         * MODULES.html.sh: Document new module.
1652
1653         strstr, strcasestr: replace on platforms with broken memchr
1654         * modules/strstr: Split into...
1655         * modules/strstr-simple: ...new module that does not care about
1656         performance, but does care about glibc bug.
1657         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
1658         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
1659         if platform memchr is broken, per Debian bug 521737.
1660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
1661         memchr.
1662         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
1663         * doc/posix-functions/strstr.texi (strstr): Document the fix.
1664         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1665         * modules/mountlist (Depends-on): Add strstr-simple.
1666         * modules/gen-uni-tables (Depends-on): Likewise.
1667         * modules/argz (Depends-on): Add strstr.
1668
1669 2009-06-17  Bruno Haible  <bruno@clisp.org>
1670
1671         * modules/posix_spawn-internal (Depends-on): Add errno.
1672
1673 2009-06-17  Bruno Haible  <bruno@clisp.org>
1674
1675         Define missing ESTALE on Interix 3.5.
1676         * lib/errno.in.h (ESTALE): Assign a value if missing.
1677         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
1678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
1679         missing.
1680         * doc/posix-headers/errno.texi: Mention the Interix bug.
1681         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
1682
1683 2009-06-15  Eric Blake  <ebb9@byu.net>
1684
1685         memchr, memchr2: add valgrind exception
1686         * lib/memchr.valgrind: New file.
1687         * lib/memchr2.valgrind: New file.
1688         * modules/memchr (Files): Distribute valgrind file.
1689         * modules/memchr2 (Files): Likewise.
1690
1691         docs: memchr is no longer obsolete
1692         * MODULES.html.sh: Move memchr from obsolete to string.h section.
1693         * lib/string.in.h (memchr): Simplify logic.
1694
1695 2009-06-14  Jim Meyering  <meyering@redhat.com>
1696
1697         link-follow: fix the "checking..." message to not mention trailing slash
1698         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
1699         never considered trailing slashes.
1700
1701 2009-06-14  Bruno Haible  <bruno@clisp.org>
1702
1703         * m4/memchr.m4: Mention also the bug on IA-64.
1704         * doc/posix-functions/memchr.texi: Likewise.
1705
1706 2009-06-12  Eric Blake  <ebb9@byu.net>
1707
1708         memchr: detect broken x86_64 and alpha implementations
1709         * modules/memchr-tests (Depends-on): Move mmap detection...
1710         * modules/memchr (Depends-on): ...here.
1711         (configure.ac): Set indicator.
1712         * lib/string.in.h (memchr): Declare replacement.
1713         * modules/string (Makefile.am): Trigger replacement.
1714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1715         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
1716         bugs.
1717         * doc/posix-functions/memchr.texi (memchr): Document the bug.
1718         * modules/getpagesize (License): Relax license.
1719
1720 2009-06-11  Bruno Haible  <bruno@clisp.org>
1721
1722         * lib/idpriv.h: Add more references.
1723
1724 2009-06-08  Bruno Haible  <bruno@clisp.org>
1725
1726         Tests for module 'idpriv-droptemp'.
1727         * modules/idpriv-droptemp-tests: New file.
1728         * tests/test-idpriv-droptemp.sh: New file.
1729         * tests/test-idpriv-droptemp.su.sh: New file.
1730         * tests/test-idpriv-droptemp.c: New file.
1731
1732         New module 'idpriv-droptemp'.
1733         * lib/idpriv-droptemp.c: New file.
1734         * modules/idpriv-droptemp: New file.
1735
1736 2009-06-08  Bruno Haible  <bruno@clisp.org>
1737
1738         Tests for module 'idpriv-drop'.
1739         * modules/idpriv-drop-tests: New file.
1740         * tests/test-idpriv-drop.sh: New file.
1741         * tests/test-idpriv-drop.su.sh: New file.
1742         * tests/test-idpriv-drop.c: New file.
1743
1744         New module 'idpriv-drop'.
1745         * lib/idpriv.h: New file.
1746         * lib-idpriv-drop.c: New file.
1747         * m4/idpriv.m4: New file.
1748         * modules/idpriv-drop: New file.
1749
1750 2009-06-08  Bruno Haible  <bruno@clisp.org>
1751
1752         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
1753         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1754         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1755         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1757         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1758         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1759
1760 2009-06-08  Eric Blake  <ebb9@byu.net>
1761
1762         test-strstr: use memory fence, when possible
1763         * tests/test-strstr.c (main): Use memory fence, in order to be
1764         more likely to trigger Debian bug 521737.
1765         * modules/strstr-tests (Files): Pull in additional files.
1766
1767         memchr: no longer obsolete, for wider field testing
1768         * modules/memchr (Status, Notice): Delete, this module is no
1769         longer obsolete.
1770         * modules/vasnprintf (Depends-on): Add memchr.
1771
1772 2009-06-07  Jim Meyering  <meyering@redhat.com>
1773
1774         hash: declare some functions with the warn_unused_result attribute
1775         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
1776
1777 2009-06-07  Bruno Haible  <bruno@clisp.org>
1778
1779         * tests/test-alignof.c: Don't test int64_t if it does not exist.
1780         Reported by Eric Blake.
1781
1782 2009-06-06  Eric Blake  <ebb9@byu.net>
1783
1784         test-alignof: fix typo with long double
1785         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
1786         compiler error.
1787
1788 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
1789
1790         Escape non-texinfo { and }s.
1791         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
1792         markup error.
1793
1794 2009-06-04  Jim Meyering  <meyering@redhat.com>
1795
1796         gitlog-to-changelog: don't infloop on an empty commit log
1797         * build-aux/gitlog-to-changelog: Warn about an empty log message.
1798         Reported by Boris Petersen <transacid@centerim.org>.
1799
1800 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
1801
1802         version-etc: extend for packagers
1803         Add three new configure options, intended for packagers:
1804           --with-packager="packager name"
1805           --with-packager-version="packager-specific version"
1806           --with-packager-bug-reports="packager bug reporting"
1807         An example with coreutils:
1808           $ ./configure \
1809             --with-packager=Gentoo \
1810             --with-packager-bug-report=http://bugs.gentoo.org/ \
1811             --with-packager-version="patchset 1.6"
1812           $ ./src/ls --version | head -n3
1813           ls (GNU coreutils) 7.1-dirty
1814           Packaged by Gentoo (patchset 1.6)
1815           Copyright (C) 2009 Free Software Foundation, Inc.
1816         Note that the bug reporting info via --help doesn't show up because
1817         coreutils uses its own custom emit_bug_reporting_address() implementation
1818         in src/system.h.  If it didn't, it'd look like:
1819           $ ./src/ls --help | tail -n4
1820           Report bugs to <bug-coreutils@gnu.org>.
1821           Report Gentoo bugs to <http://bugs.gentoo.org/>.
1822           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
1823           General help using GNU software: <http://www.gnu.org/gethelp/>.
1824         * lib/version-etc.c: Print new information, if provided.
1825         * m4/version-etc.m4: New file.
1826         * modules/version-etc (Files): Add m4/version-etc.m4.
1827         (configure.ac): Add gl_VERSION_ETC.
1828
1829 2009-05-31  Bruno Haible  <bruno@clisp.org>
1830
1831         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
1832         and 'int64_t'.
1833         * modules/alignof-tests (Dependencies): Add stdint.
1834         Reported by Eric Blake.
1835
1836 2009-05-31  Bruno Haible  <bruno@clisp.org>
1837
1838         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
1839         restriction due to compiler bugs.
1840         Reported by Eric Blake.
1841
1842 2009-05-31  Simon Josefsson  <simon@josefsson.org>
1843             Bruno Haible  <bruno@clisp.org>
1844
1845         Fix test-alignof failure.
1846         * lib/alignof.h (alignof_slot): New macro.
1847         (alignof_type): New macro, with the same semantics as the previous
1848         'alignof'.
1849         (alignof): Alias to alignof_slot.
1850         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
1851         check that the results are usable as constant expressions.
1852
1853 2009-05-31  Bruno Haible  <bruno@clisp.org>
1854
1855         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
1856         * tests/test-memchr.c (main): Check that memchr does not read past the
1857         first occurrence of the byte.
1858         * tests/test-strstr.c (main): Update comment.
1859         Suggested by Eric Blake.
1860
1861 2009-05-30  Bruno Haible  <bruno@clisp.org>
1862
1863         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
1864         detail how to use dumpbin.
1865         Reported by David Byron <dbyron@dbyron.com>.
1866
1867 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1868
1869         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
1870
1871 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1872
1873         * m4/manywarnings.m4: Add GCC 4.4 warnings.
1874
1875 2009-05-28  Bruno Haible  <bruno@clisp.org>
1876
1877         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
1878         build-aux/ files.
1879
1880 2009-05-28  Simon Josefsson  <simon@josefsson.org>
1881
1882         * gnulib-tool (func_import): Transform license on build-aux/ files too.
1883
1884 2009-05-27  Simon Josefsson  <simon@josefsson.org>
1885
1886         * gnulib-tool (sed_transform_main_lib_file)
1887         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
1888         regexps.
1889
1890 2009-05-26  Simon Josefsson  <simon@josefsson.org>
1891
1892         * tests/test-strstr.c: Add another self-test.
1893         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
1894         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
1895
1896 2009-05-23  Bruno Haible  <bruno@clisp.org>
1897
1898         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
1899         change.
1900
1901 2009-05-21  Bruno Haible  <bruno@clisp.org>
1902
1903         Simplify use of mode_t varargs.
1904         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
1905         uses 'mode_t' or 'int'.
1906         * lib/openat.c (openat): Likewise.
1907         * lib/open-safer.c (open_safer): Likewise.
1908         * m4/mode_t.m4: New file.
1909         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
1910         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
1911         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
1912         * modules/open (Files): Add m4/mode_t.m4.
1913         * modules/openat (Files): Likewise.
1914         * modules/fcntl-safer (Files): Likewise.
1915         Suggested by Eric Blake.
1916
1917 2009-05-21  Pádraig Brady  <P@draigbrady.com>
1918
1919         * doc/glibc-functions/fallocate.texi: New file.
1920         * doc/gnulib.texi: Include it.
1921
1922 2009-05-21  Eric Blake  <ebb9@byu.net>
1923             Bruno Haible  <bruno@clisp.org>
1924
1925         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
1926         invocations.
1927         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1928
1929 2009-05-21  Eric Blake  <ebb9@byu.net>
1930             Bruno Haible  <bruno@clisp.org>
1931
1932         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
1933         include_next. Fix of 2008-11-20 commit.
1934         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
1935         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
1936         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
1937         NEXT_MATH_H.
1938         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
1939         instead of NEXT_MATH_H.
1940
1941 2009-05-21  Bruno Haible  <bruno@clisp.org>
1942
1943         Avoid redefinition warnings for SIZE_MAX.
1944         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
1945         Reported by Simon Josefsson.
1946
1947 2009-05-21  Bruno Haible  <bruno@clisp.org>
1948
1949         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
1950         AC_CACHE_VAL.
1951
1952 2009-05-20  Bruno Haible  <bruno@clisp.org>
1953
1954         Make zeroptr.h work on mingw.
1955         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
1956         mprotect.
1957         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
1958         * modules/memchr2-tests (configure.ac): Likewise.
1959         * modules/memcmp-tests (configure.ac): Likewise.
1960         * modules/memmem-tests (configure.ac): Likewise.
1961         * modules/memrchr-tests (configure.ac): Likewise.
1962         Reported by Simon Josefsson.
1963
1964 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1965
1966         * tests/test-glob.c: Include string.h for strcmp prototype.
1967
1968 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1969
1970         * modules/getdelim (Depends-on): Add explicit stdint, although it
1971         was implicitly already pulled in via realloc-posix.
1972         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
1973
1974 2009-05-20  Simon Josefsson  <simon@josefsson.org>
1975
1976         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
1977         G. Christensen" <tgc@jupiterrise.com>.
1978         * m4/sys_socket_h.m4: Check for sa_family_t.
1979         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
1980         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
1981         * tests/test-sys_socket.c: Check that sa_family_t works.
1982
1983 2009-05-18  Eric Blake  <ebb9@byu.net>
1984
1985         maint.mk: allow gnulib_dir in VPATH build
1986         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
1987
1988 2009-05-15  Jim Meyering  <meyering@redhat.com>
1989
1990         maint.mk: Give gnulib_dir a default definition.
1991         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
1992         Thus, most packages no longer need to specify this variable in cfg.mk
1993
1994 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
1995
1996         rename.m4: fix typos that would make non-mingw cross-configure fail
1997         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
1998
1999 2009-05-13  Eric Blake  <ebb9@byu.net>
2000
2001         mmap-anon: avoid out-of-order autoconf expansion
2002         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
2003         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
2004         * modules/memchr-tests (Depends-on): Add extensions.
2005         * modules/memchr2-tests (Depends-on): Add extensions.
2006         * modules/memcmp-tests (Depends-on): Add extensions.
2007         * modules/memmem-tests (Depends-on): Add extensions.
2008         * modules/memrchr-tests (Depends-on): Add extensions.
2009
2010 2009-05-13  Bruno Haible  <bruno@clisp.org>
2011
2012         Make some tests ISO C 99 compliant.
2013         * tests/zerosize-ptr.h: New file.
2014         * tests/test-memchr.c: Include zerosize-ptr.h.
2015         (main): Use a zero-size object pointer instead of NULL.
2016         * tests/test-memchr2.c: Include zerosize-ptr.h.
2017         (main): Use a zero-size object pointer instead of NULL.
2018         * tests/test-memcmp.c: Include zerosize-ptr.h.
2019         (main): Use a zero-size object pointer instead of NULL.
2020         * tests/test-memmem.c: Include zerosize-ptr.h.
2021         (main): Use a zero-size object pointer instead of NULL.
2022         * tests/test-memrchr.c: Include zerosize-ptr.h.
2023         (main): Use a zero-size object pointer instead of NULL.
2024         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
2025         m4/mmap-anon.m4.
2026         (Depends-on): Add getpagesize.
2027         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2028         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
2029         m4/mmap-anon.m4.
2030         (Depends-on): Add getpagesize.
2031         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2032         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
2033         m4/mmap-anon.m4.
2034         (Depends-on): Add getpagesize.
2035         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2036         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
2037         m4/mmap-anon.m4.
2038         (Depends-on): Add getpagesize.
2039         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2040         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
2041         m4/mmap-anon.m4.
2042         (Depends-on): Add getpagesize.
2043         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2044
2045 2009-05-12  Bruno Haible  <bruno@clisp.org>
2046
2047         Tests for module 'alignof'.
2048         * modules/alignof-tests: New file.
2049         * tests/test-alignof.c: New file.
2050
2051 2009-05-12  Bruno Haible  <bruno@clisp.org>
2052
2053         Fix alignof macro.
2054         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
2055         vendor compilers that are always correct.
2056
2057 2009-05-12  Bruno Haible  <bruno@clisp.org>
2058
2059         Make the MAP_ANONYMOUS detection work on HP-UX 11.
2060         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
2061         not whether its fully works.
2062
2063 2009-05-12  Bruno Haible  <bruno@clisp.org>
2064
2065         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
2066
2067 2009-05-12  Jim Meyering  <meyering@redhat.com>
2068
2069         * top/maint.mk: Adjust backslash alignment.
2070
2071 2009-05-11  Simon Josefsson  <simon@josefsson.org>
2072
2073         * top/maint.mk: Make $(srcdir)/build-aux configurable.
2074
2075 2009-05-11  Eric Blake  <ebb9@byu.net>
2076
2077         argp: avoid undefined behavior
2078         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
2079         macros.
2080
2081 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2082
2083         * tests/test-vc-list-files-git.sh: Do git config of user.email and
2084         user.name to prevent git commit from complaining.
2085
2086 2009-05-10  Bruno Haible  <bruno@clisp.org>
2087
2088         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
2089         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
2090         it rewrites every file name only once.
2091         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
2092
2093 2009-05-08  Bruno Haible  <bruno@clisp.org>
2094
2095         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
2096         instead of 'max'.
2097
2098 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2099
2100         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
2101         sockaddr_storage test.
2102
2103 2009-05-07  Simon Josefsson  <simon@josefsson.org>
2104
2105         * modules/sys_socket (Makefile.am): Substitute
2106         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
2107         * m4/sys_socket_h.m4: Check for sockaddr_storage.
2108         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
2109         * tests/test-sys_socket.c: Check sockaddr_storage.
2110
2111 2009-05-08  Bruno Haible  <bruno@clisp.org>
2112
2113         New module 'alignof'.
2114         * lib/alignof.h: New file.
2115         * modules/alignof: New file.
2116
2117 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2118             Bruno Haible  <bruno@clisp.org>
2119
2120         Fix test-file-has-acl on FreeBSD.
2121         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
2122         mask is implicitly added.
2123         * tests/test-file-has-acl.c: Include <signal.h>.
2124         (main): Terminate the test after 5 seconds.
2125         * modules/acl-tests (configure.ac): Check for alarm function.
2126
2127 2009-05-04  Bruno Haible  <bruno@clisp.org>
2128
2129         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
2130         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
2131         * modules/errno (configure.ac): Drop AC_REQUIRE.
2132         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
2133         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
2134
2135 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2136
2137         * modules/glob-tests: New module.
2138         * tests/test-glob.c: Add.
2139
2140 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2141
2142         * modules/fnmatch-tests: New module.
2143         * tests/test-fnmatch.c: Add.
2144
2145 2009-05-04  Eric Blake  <ebb9@byu.net>
2146
2147         maint: make the new no-submodule-changes rule VPATH-safe
2148         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
2149
2150 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2151             Bruno Haible  <bruno@clisp.org>
2152
2153         acl: Fix infinite loop on FreeBSD.
2154         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
2155         of return value from acl_get_entry.
2156         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
2157         Likewise.
2158
2159 2009-05-03  Bruno Haible  <bruno@clisp.org>
2160
2161         * lib/acl-internal.h (acl_entries): Clarify return value.
2162         * lib/acl_entries.c (acl_entries): Likewise.
2163
2164 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2165
2166         Bug fix in acl module.
2167         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
2168
2169 2009-05-03  Bruno Haible  <bruno@clisp.org>
2170
2171         Create gperf-generated file in the source dir, not in the build dir.
2172         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
2173         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
2174         * modules/unicase/locale-language (unicase/locale-languages.h):
2175         Likewise.
2176         * modules/unicase/special-casing (unicase/special-casing-table.h):
2177         Likewise.
2178         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
2179         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
2180         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
2181         Reported by Ralf Wildenhues.
2182
2183 2009-05-03  Bruno Haible  <bruno@clisp.org>
2184
2185         * modules/fnmatch (Description, configure.ac): Taken from
2186         fnmatch-posix.
2187         * modules/fnmatch-posix: Turn into a symbolic reference to the
2188         'fnmatch' module, and deprecate.
2189         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
2190
2191 2009-05-03  Bruno Haible  <bruno@clisp.org>
2192
2193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
2194         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
2195         Reported by Ralf Wildenhues.
2196
2197 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2198
2199         * m4/fnmatch.m4: Fix fnmatch re-define.
2200
2201 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2202
2203         priv-set: new module and tests; adapt write-any-file
2204         * lib/priv-set.c: New file.
2205         * lib/priv-set.h: New file.
2206         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
2207         * lib/write-any-file.c: Simplify by using priv-set module.
2208         * m4/priv-set.m4: New file.
2209         * modules/priv-set: New file.
2210         * modules/unlinkdir: Add dependency on priv-set module.
2211         * modules/write-any-file: Likewise.
2212
2213         Tests for module 'priv-set'.
2214         * modules/priv-set-tests: New file.
2215         * tests/test-priv-set.c: New file.
2216
2217 2009-05-03  Jim Meyering  <meyering@redhat.com>
2218             Bruno Haible  <bruno@clisp.org>
2219
2220         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
2221         use the converted UTF-8 variant of the name instead.
2222
2223 2009-05-03  Jim Meyering  <meyering@redhat.com>
2224
2225         tests: tighten some getdate tests
2226         * tests/test-getdate.c (main): Tighten tests: require equality,
2227         not just greater than.  Set TZ envvar to UTC0.
2228
2229 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2230
2231         getdate: correctly interpret "next monday" when run on a Monday
2232         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
2233         that e.g., "next tues" (when run on a tuesday) results in a date
2234         that is one week in the future, and not today's date.
2235         I.e., add a week when the wday is the same as the current one.
2236         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
2237         and earlier by Martin Bernreuther and Jan Minář.
2238         * tests/test-getdate.c (main): Check that "next DAY" is always in
2239         the future and that "last DAY" is always in the past.
2240
2241 2009-05-02  Jim Meyering  <meyering@redhat.com>
2242
2243         build: ensure that a release build fails when a submodule is unclean
2244         * top/maint.mk (no-submodule-changes): New rule.
2245         (alpha beta major): Depend on it.
2246
2247 2009-05-02  Bruno Haible  <bruno@clisp.org>
2248
2249         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
2250         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
2251         shell variable gl_fnmatch_required to detect which variant is
2252         requested.
2253         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
2254         gl_FUNC_FNMATCH_POSIX.
2255         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
2256         exclude fnmatch-posix.
2257
2258 2009-05-02  Bruno Haible  <bruno@clisp.org>
2259
2260         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
2261         * modules/mbsrtowcs (License): Change to LGPLv2+.
2262         * modules/strnlen1 (License): Likewise.
2263         Reported by Simon Josefsson.
2264
2265 2009-05-02  Bruno Haible  <bruno@clisp.org>
2266
2267         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
2268         "cross".
2269         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
2270         gnulib-tool was called with option --source-base=lib.
2271
2272 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2273
2274         Use automake *-local hooks without commands, for extensibility.
2275         * modules/localcharset (Makefile.am): Rename install-exec-local
2276         rule to install-exec-localcharset, and make it a prerequisite of
2277         install-exec-local.  Likewise, rename the uninstall-local rule to
2278         uninstall-localcharset, and make it a prerequisite of the former.
2279
2280 2009-05-01  Bruno Haible  <bruno@clisp.org>
2281
2282         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
2283         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2284         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
2285         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
2286         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
2287         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2288         m4/locale-zh.m4, m4/codeset.m4.
2289
2290         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2291         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
2292         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2293         m4/locale-zh.m4.
2294
2295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
2296         REPLACE_WCRTOMB if mbstate_t must be replaced.
2297         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
2298         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
2299
2300 2009-05-01  Bruno Haible  <bruno@clisp.org>
2301
2302         Avoid compiler warnings when redefining macros defined by <libintl.h>.
2303         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
2304         dngettext, dcngettext, textdomain, bindtextdomain,
2305         bind_textdomain_codeset): Undefine before redefining.
2306
2307 2009-04-30  Bruno Haible  <bruno@clisp.org>
2308
2309         Fix bug introduced on 2009-04-25.
2310         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
2311         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
2312         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
2313         is defined.
2314         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
2315         is defined.
2316         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
2317         is defined.
2318         Reported by Elbert_Pol <elbert.pol@gmail.com>.
2319
2320 2009-04-28  Bruno Haible  <bruno@clisp.org>
2321
2322         Comment tweaks.
2323         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
2324         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
2325         * lib/unicase.h (u*_casexfrm): Likewise.
2326         Reported by Paolo Bonzini.
2327
2328 2009-04-28  Bruno Haible  <bruno@clisp.org>
2329
2330         Fix a compilation error.
2331         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
2332         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2333         Reported by Jim Meyering.
2334
2335 2009-04-27  Bruno Haible  <bruno@clisp.org>
2336
2337         New module 'libunistring'.
2338         * modules/libunistring: New file.
2339         * m4/libunistring.m4: New file.
2340         * MODULES.html.sh (Unicode string functions): Add it.
2341
2342 2009-04-27  Eric Blake  <ebb9@byu.net>
2343
2344         maint.mk: allow package-specific header to provide <config.h>
2345         * top/maint.mk (sc_require_config_h): New variable.
2346         (sc_require_config_h, sc_require_config_h_first): Use it.
2347
2348 2009-04-27  Simon Josefsson  <simon@josefsson.org>
2349
2350         * top/maint.mk (sc_avoid_if_before_free): Except
2351         useless-if-before-free script.
2352
2353 2009-04-27  Eric Blake  <ebb9@byu.net>
2354
2355         maintainer-makefile: depend on all required helper scripts
2356         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
2357         useless-if-before-free.
2358         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
2359         version, rather than assuming gnulib checkout is available.
2360         Reported by Simen Josefsson.
2361
2362 2009-04-26  Bruno Haible  <bruno@clisp.org>
2363
2364         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
2365         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
2366         "../" or "..".
2367
2368 2009-04-26  Bruno Haible  <bruno@clisp.org>
2369
2370         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
2371         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
2372         AC_LIB_HAVE_LINKFLAGS.
2373
2374 2009-04-26  Bruno Haible  <bruno@clisp.org>
2375
2376         Simplify calling convention of u*_conv_from_encoding.
2377         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
2378         u32_conv_from_encoding): Expect a resultbuf argument and return the
2379         result directly as a pointer.
2380         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
2381         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
2382         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
2383         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
2384         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
2385         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2386         Update.
2387         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
2388         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
2389         * lib/vasnprintf.c (VASNPRINTF): Update.
2390         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
2391         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
2392         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
2393         * NEWS: Mention the change.
2394
2395 2009-04-26  Bruno Haible  <bruno@clisp.org>
2396
2397         Simplify calling convention of u*_conv_to_encoding.
2398         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
2399         u32_conv_to_encoding): Expect a resultbuf argument and return the
2400         result directly as a pointer.
2401         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2402         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
2403         freeing scaled_offsets if mem_iconveha failed.
2404         * lib/unicase/u-casexfrm.h (FUNC): Update.
2405         * lib/uninorm/u-normxfrm.h (FUNC): Update.
2406         * lib/vasnprintf.c (VASNPRINTF): Update.
2407         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
2408         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
2409         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
2410         * NEWS: Mention the change.
2411
2412 2009-04-26  Bruno Haible  <bruno@clisp.org>
2413
2414         Avoid test failures on AIX and OSF/1.
2415         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
2416         malloc(0).
2417         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2418         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2419         Likewise.
2420         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
2421         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
2422         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
2423         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
2424         * doc/posix-functions/malloc.texi: Document the portability problem
2425         related to malloc(0).
2426
2427 2009-04-26  Bruno Haible  <bruno@clisp.org>
2428
2429         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
2430         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
2431         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
2432
2433 2009-04-25  Bruno Haible  <bruno@clisp.org>
2434
2435         Avoid link error when creating a namespace clean library.
2436         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
2437         as macro with arguments if already defined as an alias.
2438         * lib/signbitf.c (gl_signbitf): Don't undefine.
2439         * lib/signbitd.c (gl_signbitd): Don't undefine.
2440         * lib/signbitl.c (gl_signbitl): Don't undefine.
2441
2442 2009-04-25  Jim Meyering  <meyering@redhat.com>
2443
2444         vc-list-files: fix another quoting bug
2445         * build-aux/vc-list-files: Avoid sed backslash expansion
2446         of pathological directory names.
2447
2448 2009-04-25  Eric Blake  <ebb9@byu.net>
2449
2450         vc-list-files: fix shell quoting error
2451         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
2452         timestamp.
2453
2454 2009-04-25  Jim Meyering  <meyering@redhat.com>
2455
2456         vc-list-files: restore lost functionality with subdir argument
2457         * build-aux/vc-list-files: When given a non-"." sub-directory
2458         argument, substitute the $dir/ prefix back onto each resulting name.
2459         Otherwise, coreutils' root_tests check would fail.
2460
2461 2009-04-24  Eric Blake  <ebb9@byu.net>
2462
2463         vc-list-files: ignore git symlinks
2464         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
2465         than ls-files, to ignore git symlinks.
2466
2467         maint.mk: import improvements from m4
2468         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
2469         (move_if_change): Delete unused macro.
2470         (news-date-check, vc-diff-check): Support VPATH builds.
2471         (announcement): Likewise.  Split --bootstrap-tools list...
2472         (boostrap-tools): ...into separate list, which can be overridden
2473         in cfg.mk.
2474         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
2475         requiring dependency on useless-if-before-free module.
2476         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
2477         Support VPATH builds.
2478
2479 2009-04-24  Jim Meyering  <meyering@redhat.com>
2480
2481         maint.mk: remove coreutils-specific rules and variables
2482         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
2483         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
2484         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
2485
2486         maint.mk: remove obsolete rule
2487         * top/maint.mk (rel-check): Remove rule.
2488         (WGET, WGETFLAGS): Remove now-unused variables.
2489
2490 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2491
2492         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
2493         consistency.
2494
2495         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
2496         '$(PATH_SEPARATOR)' instead of ':'.
2497
2498 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2499
2500         * lib/getopt1.c (main): Use 'const' for static array.
2501
2502 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2503
2504         * top/maint.mk: Sync with coreutils.
2505         * NEWS: Explain incompatibilities.
2506
2507 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2508             Bruno Haible  <bruno@clisp.org>
2509
2510         Fix cross-compilation results.
2511         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
2512         statement, as third argument of AC_TRY_RUN.
2513         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2514         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2515         Likewise.
2516         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2517         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2518         Likewise.
2519         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2520         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
2521         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
2522
2523 2009-04-20  Bruno Haible  <bruno@clisp.org>
2524
2525         Avoid test failure on mingw.
2526         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
2527
2528 2009-04-20  Bruno Haible  <bruno@clisp.org>
2529
2530         Avoid compilation error on mingw.
2531         * modules/localename-tests (Depends-on): Add locale.
2532
2533 2009-04-19  Bruno Haible  <bruno@clisp.org>
2534
2535         Support for building a shared library on Windows platforms.
2536         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
2537         (main): Test the presence of UNINORM_NFC here.
2538         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
2539         (main): Test the presence of UNINORM_NFD here.
2540         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
2541         (main): Test the presence of UNINORM_NFKC here.
2542         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
2543         (main): Test the presence of UNINORM_NFKD here.
2544
2545 2009-04-19  Bruno Haible  <bruno@clisp.org>
2546
2547         Avoid a compiler warning.
2548         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
2549         Change type of variable 'sequence'.
2550
2551 2009-04-19  Bruno Haible  <bruno@clisp.org>
2552
2553         * modules/configmake (Makefile.am): When the contents of configmake.h
2554         does not change, arrange to preserve its modification time.
2555
2556 2009-04-17  Simon Josefsson  <simon@josefsson.org>
2557
2558         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
2559         gettext domain.
2560
2561 2009-04-16  Jim Meyering  <meyering@redhat.com>
2562
2563         useless-if-before-free: improve conversion code
2564         * build-aux/useless-if-before-free: Adjust code-in-comment to match
2565         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
2566
2567 2009-04-14  Bruno Haible  <bruno@clisp.org>
2568
2569         * modules/fcntl (Depends-on): Add extensions.
2570         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
2571
2572 2009-04-12  Ben Pfaff  <blp@gnu.org>
2573
2574         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
2575         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
2576
2577 2009-03-20  Ben Pfaff  <blp@gnu.org>
2578
2579         Make rename replace existing destinations on Windows.
2580         * m4/rename.m4: Add test for Mingw.
2581         * lib/rename.c: Add rename replacement that uses MoveFileEx with
2582         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
2583         * doc/posix-functions/rename.texi: Document.
2584
2585 2009-04-10  Bruno Haible  <bruno@clisp.org>
2586
2587         New include file "iconveh.h".
2588         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
2589         * lib/striconveh.h: Include it.
2590         (enum iconv_ilseq_handler): Remove definition.
2591         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
2592         striconveh.h.
2593         * lib/striconveha.c: Include striconveh.h.
2594         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
2595         * modules/striconveh (Files): Add lib/iconveh.h.
2596         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
2597         lib/striconveh.h.
2598
2599 2009-04-10  Bruno Haible  <bruno@clisp.org>
2600
2601         * lib/uniconv.h: Update comment.
2602
2603 2009-04-10  Bruno Haible  <bruno@clisp.org>
2604
2605         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
2606         always.
2607         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
2608         * lib/unistr/u16-mbtouc-aux.c: Likewise.
2609         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
2610         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
2611         "unistring-notinline.h", so that the function gets defined always.
2612         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
2613         * lib/unistr/u8-uctomb.c: Likewise.
2614         * lib/unistr/u16-mbtouc.c: Likewise.
2615         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
2616         * lib/unistr/u16-uctomb.c: Likewise.
2617         * lib/unistr/u32-mbtouc.c: Likewise.
2618         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
2619         * lib/unistr/u32-uctomb.c: Likewise.
2620
2621 2009-04-10  Bruno Haible  <bruno@clisp.org>
2622
2623         Mark 'utime' obsolete.
2624         * modules/utime (Status, Notice): New sections.
2625         Suggested by Jim Meyering.
2626
2627         Fix cross-compile guess for utime test.
2628         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
2629         autoconf.
2630         * doc/posix-functions/utime.texi: Give more precisions.
2631         Reported by Jan <ipif@ymail.com>.
2632
2633 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
2634
2635         filevercmp: correct today's change
2636         * lib/filevercmp.c: Also handle coreutils' test inputs.
2637         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
2638
2639         Fix regression in 'filevercmp' module. Thanks Sven Joachim
2640         for reporting it.
2641         * lib/filevercmp.c: Special handle for "", "." and "..".
2642         * tests/test-filevercmp.c: Enlarge the set suite.
2643
2644 2009-04-07  Jim Meyering  <meyering@redhat.com>
2645
2646         useless-if-before-free: show how to remove braced useless free, too
2647         * build-aux/useless-if-before-free: still only in a comment, though.
2648
2649 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
2650
2651         maint.mk: import changes to syntax-check macros from coreutils
2652         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
2653         Use them in the relevant macros.
2654
2655 2009-04-06  Bruno Haible  <bruno@clisp.org>
2656
2657         Fix unportable use of bit-fields.
2658         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
2659         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
2660         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
2661
2662 2009-04-06  Bruno Haible  <bruno@clisp.org>
2663
2664         Avoid test failures on AIX and OSF/1.
2665         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
2666         that malloc(0) = NULL.
2667         * tests/unicase/test-u8-tolower.c (check): Likewise.
2668         * tests/unicase/test-u8-totitle.c (check): Likewise.
2669         * tests/unicase/test-u8-toupper.c (check): Likewise.
2670         * tests/unicase/test-u16-casefold.c (check): Likewise.
2671         * tests/unicase/test-u16-tolower.c (check): Likewise.
2672         * tests/unicase/test-u16-totitle.c (check): Likewise.
2673         * tests/unicase/test-u16-toupper.c (check): Likewise.
2674         * tests/unicase/test-u32-casefold.c (check): Likewise.
2675         * tests/unicase/test-u32-tolower.c (check): Likewise.
2676         * tests/unicase/test-u32-totitle.c (check): Likewise.
2677         * tests/unicase/test-u32-toupper.c (check): Likewise.
2678         * tests/uninorm/test-u8-nfc.c (check): Likewise.
2679         * tests/uninorm/test-u8-nfd.c (check): Likewise.
2680         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
2681         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
2682         * tests/uninorm/test-u16-nfc.c (check): Likewise.
2683         * tests/uninorm/test-u16-nfd.c (check): Likewise.
2684         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
2685         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
2686         * tests/uninorm/test-u32-nfc.c (check): Likewise.
2687         * tests/uninorm/test-u32-nfd.c (check): Likewise.
2688         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
2689         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
2690
2691 2009-04-05  Bruno Haible  <bruno@clisp.org>
2692
2693         Work around an autoconf limitation.
2694         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
2695         comment line if it would be longer than 3 KB.
2696
2697 2009-04-05  Bruno Haible  <bruno@clisp.org>
2698
2699         Avoid test failure with libiconv-1.13.
2700         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
2701         of the expected test results.
2702
2703 2009-04-05  Bruno Haible  <bruno@clisp.org>
2704
2705         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
2706         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
2707         that it should be installed.
2708
2709 2009-04-05  Bruno Haible  <bruno@clisp.org>
2710
2711         * gnulib-tool: New option --copy-file.
2712         (func_usage): Document it.
2713         (func_dest_tmpfilename): Moved out of func_import.
2714         (func_add_file, func_update_file): New functions, extracted from
2715         func_import.
2716         (func_import): Update.
2717
2718 2009-04-05  Karl Berry  <karl@gnu.org>
2719
2720         * README: prominently mention gnulib-tool.
2721         Rearrange sections so getting the code is near the top.
2722
2723 2009-04-05  Bruno Haible  <bruno@clisp.org>
2724
2725         * lib/unicase.h: Mention u*_cmp2.
2726         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2727         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
2728         * lib/unicase/ulc-casecmp.c: Likewise.
2729         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
2730         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
2731         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
2732         unistr/u8-cmp.
2733         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
2734         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
2735         unistr/u16-cmp.
2736         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
2737         unistr/u32-cmp.
2738
2739         * lib/uninorm.h: Mention u*_cmp2.
2740         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2741         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
2742         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
2743         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
2744         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
2745         unistr/u8-cmp.
2746         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
2747         unistr/u16-cmp.
2748         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
2749         unistr/u32-cmp.
2750
2751         New module 'unistr/u32-cmp2'.
2752         * lib/unistr/u32-cmp2.c: New file.
2753         * modules/unistr/u32-cmp2: New file.
2754
2755         New module 'unistr/u16-cmp2'.
2756         * lib/unistr/u16-cmp2.c: New file.
2757         * modules/unistr/u16-cmp2: New file.
2758
2759         New module 'unistr/u8-cmp2'.
2760         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
2761         * lib/unistr/u8-cmp2.c: New file.
2762         * lib/unistr/u-cmp2.h: New file.
2763         * modules/unistr/u8-cmp2: New file.
2764
2765 2009-04-05  Bruno Haible  <bruno@clisp.org>
2766
2767         * lib/unictype.h (uc_property_is_valid): New macro.
2768         * tests/unictype/test-pr_byname.c (main): Use it.
2769
2770         * lib/unistr.h: Doc fixes.
2771         * lib/uniconv.h: Doc fixes.
2772         * lib/unictype.h: Doc fixes.
2773
2774 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
2775
2776         Port coreutils 7.2 to Solaris 8.
2777
2778         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
2779         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
2780         for Solaris 8.  This is a bit of a hack, as it means it's the
2781         caller's responsibility to add -lnsl if needed, but most likely it
2782         won't be needed since only getaddrinfo uses this and getaddrinfo
2783         isn't needed on Solaris 8.
2784
2785         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
2786         problem to Solaris 8 encountered with coreutils 7.2, which
2787         resulted in a message "fnmatch.c:292: warning: passing argument 4
2788         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
2789         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
2790
2791 2009-04-03  Simon Josefsson  <simon@josefsson.org>
2792
2793         * m4/ld-version-script.m4: Add FIXME comment.
2794
2795 2009-04-02  Simon Josefsson  <simon@josefsson.org>
2796
2797         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
2798         SOVERSION variable.
2799
2800 2009-04-02  Bruno Haible  <bruno@clisp.org>
2801
2802         * Makefile (info, html, dvi, pdf): Combine the rules.
2803         Suggested by Jim Meyering.
2804
2805 2009-04-01  Bruno Haible  <bruno@clisp.org>
2806
2807         * Makefile (info, html, dvi, pdf): New targets.
2808         Reported by Reuben Thomas <rrt@sc3d.org>.
2809
2810 2009-04-01  Bruno Haible  <bruno@clisp.org>
2811
2812         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
2813         can be put into PATH.
2814         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
2815
2816 2009-04-01  Bruno Haible  <bruno@clisp.org>
2817
2818         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
2819
2820 2009-04-01  Bruno Haible  <bruno@clisp.org>
2821
2822         Rename module 'visibility'.
2823         * modules/lib-symbol-visibility: Renamed from modules/visibility.
2824         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
2825         * doc/gnulib.texi: Update.
2826         * MODULES.html.sh (Misc): Update.
2827         * NEWS: Mention the change.
2828
2829 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2830
2831         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
2832         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
2833         Eric Blake <ebb9@byu.net> for review.
2834         * MODULES.html.sh: Add lib-msvc-compat.
2835         * doc/gnulib.texi: Link to new section.
2836         * m4/ld-output-def.m4: New file.
2837         * doc/ld-output-def.texi: New file.
2838
2839 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2840
2841         Rename ld-version-script to lib-symbol-versions.  Suggested by
2842         Bruno Haible <bruno@clisp.org>.
2843         * modules/ld-version-script: Renamed to lib-symbol-versions.
2844         * doc/ld-version-script.texi: Fix module name.
2845         * MODULES.html.sh: Add lib-symbol-versions.
2846
2847 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2848
2849         * modules/u64-tests: New file.
2850         * tests/test-u64.c: New file.
2851
2852 2009-03-04  Simon Josefsson  <simon@josefsson.org>
2853
2854         * MODULES.html.sh: Mention u64.
2855         * modules/u64: New module.
2856         * modules/crypto/sha512: Depend on u64 module instead of providing
2857         u64.h.
2858
2859 2009-03-27  Eric Blake  <ebb9@byu.net>
2860
2861         test-strerror: make debugging EAI_SYSTEM easier
2862         * modules/getaddrinfo-tests (Depends-on): Add strerror.
2863         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
2864         failure was EAI_SYSTEM.
2865
2866 2009-03-25  Bruno Haible  <bruno@clisp.org>
2867
2868         Fix a problem with --enable-relocatable on Solaris 7.
2869         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
2870         since 2008-02-24.
2871
2872 2009-03-25  Eric Blake  <ebb9@byu.net>
2873
2874         test-sockets: avoid gcc warning
2875         * tests/test-sockets.c (main): Silence compiler warning.
2876
2877 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
2878
2879         New modules nproc, pthread, contributed by Glen Lenker.
2880
2881         * MODULES.html.sh: Add pthread, nproc.
2882         * lib/nproc.c: New file.
2883         * lib/nproc.h: New file.
2884         * lib/pthread.in.h: New file.
2885         * m4/pthread.m4: New file.
2886         * modules/nproc: New file.
2887         * modules/pthread: New file.
2888
2889 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2890
2891         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
2892         New variable.
2893
2894 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
2895
2896         filevercmp: handle simple~ and numbered.~3~ backup suffixes
2897         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
2898         * tests/test-filevercmp.c: Add tests for backup suffixes.
2899
2900 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2901
2902         * modules/stdlib (Depends-on): Add stdint, needed when defining
2903         struct random_data on, for example, HP-UX 10.20.  Reported by
2904         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2905
2906 2009-03-24  Simon Josefsson  <simon@josefsson.org>
2907
2908         * lib/readline.c (readline): Call fflush on stdout after printing
2909         prompt.
2910
2911 2009-03-20  Bruno Haible  <bruno@clisp.org>
2912
2913         Remove dependency from 'close' module to -lws2_32 on native Windows.
2914         * lib/close-hook.h: New file.
2915         * lib/close-hook.c: New file.
2916         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
2917         w32sock.h.
2918         (_gl_close_fd_maybe_socket): Remove function.
2919         (rpl_close): Invoke execute_all_close_hooks instead of
2920         _gl_close_fd_maybe_socket.
2921         * lib/sockets.c: Include close-hook.h, w32sock.h.
2922         (close_fd_maybe_socket): New function, essentially from lib/close.c.
2923         (close_sockets_hook): New variable.
2924         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
2925         (gl_sockets_cleanup): Unregister it.
2926         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
2927         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
2928         * modules/close-hook: New file.
2929         * modules/close (Files): Remove lib/w32sock.h.
2930         (Depends-on): Add close-hook.
2931         (Link): Remove section.
2932         * modules/sockets (Files): Add lib/w32sock.h.
2933         (Depends-on): Add close-hook.
2934         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
2935         invocation.
2936         * NEWS: Mention that LIB_CLOSE is gone.
2937
2938 2009-03-23  Eric Blake  <ebb9@byu.net>
2939
2940         signal-tests: test previous patch
2941         * tests/test-signal.c: New file.
2942         * modules/signal-tests: Likewise.
2943
2944         signal.h: always support 'volatile sig_atomic_t'
2945         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
2946         (gl_SIGNAL_H_DEFAULTS): Add a default.
2947         * modules/signal (Makefile.am): Substitute if needed.
2948         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
2949         users can blindly add volatile.
2950         * doc/posix-headers/signal.texi (signal.h): Document it.
2951         Reported by Matthew Woehlke.
2952
2953 2009-03-23  Jim Meyering  <meyering@redhat.com>
2954
2955         pathmax: PATH_MAX: use pathconf only when available
2956         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
2957         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
2958         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
2959         This avoids a link failure in a PSP cross-compilation environment
2960         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
2961
2962         * lib/vasnprintf.c (divide): Fix typo in comment.
2963
2964 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2965
2966         * gnulib-tool (func_filter_filelist): Fix comment.
2967
2968 2009-03-20  Bruno Haible  <bruno@clisp.org>
2969
2970         Make sockets.h self-contained.
2971         * lib/sockets.c: Include sockets.h first.
2972         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
2973
2974 2009-03-19  Eric Blake  <ebb9@byu.net>
2975
2976         doc: mention more functions added in cygwin 1.7.0
2977         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
2978         addition.
2979         * doc/posix-functions/log2f.texi: Likewise.
2980
2981 2009-03-19  Jim Meyering  <meyering@redhat.com>
2982
2983         fsusage: avoid syntax error due to statement-before-declaration
2984         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
2985         after all declarations.  Reported by Matthew Woehlke in
2986         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
2987
2988 2009-03-18  Eric Blake  <ebb9@byu.net>
2989
2990         build-aux/compile: sync from automake
2991         * build-aux/compile: New file, from automake.
2992         * config/srclist.txt: Mention build-aux/compile.
2993
2994 2009-03-17  Bruno Haible  <bruno@clisp.org>
2995
2996         * lib/git-merge-changelog.c: Fix typo in comment.
2997         Reported by Reuben Thomas <rrt@sc3d.org>.
2998
2999 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
3000
3001         * m4/regex.m4: update and improve help for
3002         --without-included-regex.
3003
3004 2009-03-17  Simon Josefsson  <simon@josefsson.org>
3005
3006         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
3007         failure on missing include files.
3008
3009 2009-03-17  Eric Blake  <ebb9@byu.net>
3010
3011         doc: mention more functions added in cygwin 1.7.0
3012         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
3013         addition.
3014         * doc/posix-functions/fwscanf.texi: Likewise.
3015         * doc/posix-functions/swprintf.texi: Likewise.
3016         * doc/posix-functions/swscanf.texi: Likewise.
3017         * doc/posix-functions/vfwprintf.texi: Likewise.
3018         * doc/posix-functions/vfwscanf.texi: Likewise.
3019         * doc/posix-functions/vswprintf.texi: Likewise.
3020         * doc/posix-functions/vswscanf.texi: Likewise.
3021         * doc/posix-functions/vwprintf.texi: Likewise.
3022         * doc/posix-functions/vwscanf.texi: Likewise.
3023         * doc/posix-functions/wcscasecmp.texi: Likewise.
3024         * doc/posix-functions/wcsdup.texi: Likewise.
3025         * doc/posix-functions/wcsftime.texi: Likewise.
3026         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3027         * doc/posix-functions/wprintf.texi: Likewise.
3028         * doc/posix-functions/wscanf.texi: Likewise.
3029         * doc/glibc-functions/gethostbyname2.texi: Likewise.
3030
3031 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3032
3033         maint.mk: really add $(AM_MAKEFLAGS)
3034         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
3035         was inadvertently omitted in the last commit.
3036         Spotted by Bruno Haible.
3037
3038         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
3039         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
3040         $(AM_MAKEFLAGS)' rather than plain `make'.
3041
3042         gnulib-tool: execute $MAKE not make
3043         * gnulib-tool: Default $MAKE to 'make'.
3044         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
3045         than make.  Initialize $MAKE in the do-autobuild script.
3046
3047         gnulib-tool: use $MAKE not make in generated files
3048         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
3049         make, in generated files.  Initialize $MAKE in the do-autobuild
3050         script.
3051
3052         * top/GNUmakefile (_have-git-version-gen): Fix typo.
3053
3054         GNUmakefile: disable parallelism only for multiple, recursive targets
3055         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
3056         additions in the Makefile.
3057         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
3058         by Automake.
3059         (.NOTPARALLEL): Only disable parallel builds if multiple targets
3060         are listed on the command line and at least one of them is
3061         listed in $(ALL_RECURSIVE_TARGETS).
3062
3063 2009-03-14  Bruno Haible  <bruno@clisp.org>
3064
3065         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
3066         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
3067         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
3068         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
3069         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
3070         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
3071         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
3072         unistr/u8-uctomb.
3073         * modules/unistr/u8-strchr (Depends-on): Likewise.
3074         * modules/unistr/u8-strrchr (Depends-on): Likewise.
3075         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
3076         unistr/u16-uctomb.
3077         * modules/unistr/u16-strchr (Depends-on): Likewise.
3078         * modules/unistr/u16-strrchr (Depends-on): Likewise.
3079
3080 2009-03-12  Bruno Haible  <bruno@clisp.org>
3081
3082         Work around select() bug on Interix 3.5.
3083         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
3084         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
3085         * m4/select.m4: New file.
3086         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
3087         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
3088         * modules/select (Files): Add m4/select.m4.
3089         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
3090         * modules/nanosleep (Depends-on): Add select.
3091         * modules/poll (Depends-on): Likewise.
3092         * doc/posix-functions/select.texi: Mention the Interix bug.
3093         Reported by Markus Duft <mduft@gentoo.org>.
3094
3095         * lib/select.c: Renamed from lib/winsock-select.c.
3096         * modules/select (Files): Add lib/select.c, remove
3097         lib/winsock-select.c.
3098         (configure.ac): Update.
3099
3100 2009-03-12  Jim Meyering  <meyering@redhat.com>
3101
3102         avoid gcc warnings about unused macro definitions
3103         * lib/readtokens.c (STREQ): Remove unused definition.
3104         * lib/xmalloc.c (SIZE_MAX): Likewise.
3105         * lib/openat-die.c (N_): Likewise.
3106         * lib/mountlist.c (SIZE_MAX): Remove definition.
3107         Instead, include <stdint.h>.
3108         * lib/readutmp.c: Likewise.
3109         * modules/readutmp (Depends-on): Add stdint.
3110         * modules/mountlist (Depends-on): Add stdint.
3111         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
3112
3113 2009-03-10  Bruno Haible  <bruno@clisp.org>
3114
3115         Tests for module 'mbmemcasecoll'.
3116         * modules/mbmemcasecoll-tests: New file.
3117         * tests/test-mbmemcasecoll1.sh: New file.
3118         * tests/test-mbmemcasecoll2.sh: New file.
3119         * tests/test-mbmemcasecoll3.sh: New file.
3120         * tests/test-mbmemcasecoll.c: New file.
3121
3122         New module 'mbmemcasecoll'.
3123         * lib/mbmemcasecoll.h: New file.
3124         * lib/mbmemcasecoll.c: New file.
3125         * modules/mbmemcasecoll: New file.
3126
3127         * tests/test-mbmemcasecmp.h: New file, extracted from
3128         tests/test-mbmemcasecmp.c.
3129         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
3130         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
3131         (main): Update.
3132         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
3133
3134 2009-03-09  Bruno Haible  <bruno@clisp.org>
3135
3136         Tests for module 'mbmemcasecmp'.
3137         * modules/mbmemcasecmp-tests: New file.
3138         * tests/test-mbmemcasecmp1.sh: New file.
3139         * tests/test-mbmemcasecmp2.sh: New file.
3140         * tests/test-mbmemcasecmp3.sh: New file.
3141         * tests/test-mbmemcasecmp.c: New file.
3142
3143         New module 'mbmemcasecmp'.
3144         * lib/mbmemcasecmp.h: New file.
3145         * lib/mbmemcasecmp.c: New file.
3146         * modules/mbmemcasecmp: New file.
3147
3148 2009-03-09  Bruno Haible  <bruno@clisp.org>
3149
3150         Tests for module 'unicase/ulc-casecoll'.
3151         * modules/unicase/ulc-casecoll-tests: New file.
3152         * tests/unicase/test-ulc-casecoll1.sh: New file.
3153         * tests/unicase/test-ulc-casecoll2.sh: New file.
3154         * tests/unicase/test-ulc-casecoll.c: New file.
3155
3156         New module 'unicase/ulc-casecoll'.
3157         * lib/unicase.h (ulc_casecoll): New declaration.
3158         * lib/unicase/ulc-casecoll.c: New file.
3159         * modules/unicase/ulc-casecoll: New file.
3160
3161         New module 'unicase/ulc-casexfrm'.
3162         * lib/unicase.h (ulc_casexfrm): New declaration.
3163         * lib/unicase/ulc-casexfrm.c: New file.
3164         * modules/unicase/ulc-casexfrm: New file.
3165
3166 2009-03-09  Bruno Haible  <bruno@clisp.org>
3167
3168         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
3169         invocations.
3170
3171         * m4/mbscasecmp.m4: Remove file.
3172         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
3173         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
3174
3175         * m4/mbscasestr.m4: Remove file.
3176         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
3177         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
3178
3179         * m4/mbschr.m4: Remove file.
3180         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
3181         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
3182
3183         * m4/mbscspn.m4: Remove file.
3184         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
3185         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
3186
3187         * m4/mbslen.m4: Remove file.
3188         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
3189         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
3190
3191         * m4/mbsncasecmp.m4: Remove file.
3192         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
3193         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
3194
3195         * m4/mbsnlen.m4: Remove file.
3196         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
3197         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
3198
3199         * m4/mbspbrk.m4: Remove file.
3200         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
3201         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
3202
3203         * m4/mbspcasecmp.m4: Remove file.
3204         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
3205         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
3206
3207         * m4/mbsrchr.m4: Remove file.
3208         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
3209         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
3210
3211         * m4/mbssep.m4: Remove file.
3212         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
3213         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
3214
3215         * m4/mbsspn.m4: Remove file.
3216         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
3217         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
3218
3219         * m4/mbsstr.m4: Remove file.
3220         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
3221         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
3222
3223         * m4/mbstok_r.m4: Remove file.
3224         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
3225         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
3226
3227         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
3228
3229         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
3230         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
3231
3232         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
3233
3234 2009-03-08  Bruno Haible  <bruno@clisp.org>
3235
3236         Tests for module 'unicase/ulc-casecmp'.
3237         * modules/unicase/ulc-casecmp-tests: New file.
3238         * tests/unicase/test-ulc-casecmp1.sh: New file.
3239         * tests/unicase/test-ulc-casecmp2.sh: New file.
3240         * tests/unicase/test-ulc-casecmp.c: New file.
3241
3242         New module 'unicase/ulc-casecmp'.
3243         * lib/unicase.h (ulc_casecmp): New declaration.
3244         * lib/unicase/ulc-casecmp.c: New file.
3245         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
3246         'const SRC_UNIT *'.
3247         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
3248         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
3249         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
3250         * modules/unicase/ulc-casecmp: New file.
3251
3252         Tests for module 'unicase/u32-is-cased'.
3253         * modules/unicase/u32-is-cased-tests: New file.
3254         * tests/unicase/test-u32-is-cased.c: New file.
3255
3256         Tests for module 'unicase/u16-is-cased'.
3257         * modules/unicase/u16-is-cased-tests: New file.
3258         * tests/unicase/test-u16-is-cased.c: New file.
3259
3260         Tests for module 'unicase/u8-is-cased'.
3261         * modules/unicase/u8-is-cased-tests: New file.
3262         * tests/unicase/test-u8-is-cased.c: New file.
3263         * tests/unicase/test-is-cased.h: New file.
3264
3265         New module 'unicase/u32-is-cased'.
3266         * lib/unicase/u32-is-cased.c: New file.
3267         * modules/unicase/u32-is-cased: New file.
3268
3269         New module 'unicase/u16-is-cased'.
3270         * lib/unicase/u16-is-cased.c: New file.
3271         * modules/unicase/u16-is-cased: New file.
3272
3273         New module 'unicase/u8-is-cased'.
3274         * lib/unicase/u8-is-cased.c: New file.
3275         * lib/unicase/u-is-cased.h: New file.
3276         * modules/unicase/u8-is-cased: New file.
3277
3278         Tests for module 'unicase/u32-is-casefolded'.
3279         * modules/unicase/u32-is-casefolded-tests: New file.
3280         * tests/unicase/test-u32-is-casefolded.c: New file.
3281
3282         Tests for module 'unicase/u16-is-casefolded'.
3283         * modules/unicase/u16-is-casefolded-tests: New file.
3284         * tests/unicase/test-u16-is-casefolded.c: New file.
3285
3286         Tests for module 'unicase/u8-is-casefolded'.
3287         * modules/unicase/u8-is-casefolded-tests: New file.
3288         * tests/unicase/test-u8-is-casefolded.c: New file.
3289         * tests/unicase/test-is-casefolded.h: New file.
3290
3291         New module 'unicase/u32-is-casefolded'.
3292         * lib/unicase/u32-is-casefolded.c: New file.
3293         * modules/unicase/u32-is-casefolded: New file.
3294
3295         New module 'unicase/u16-is-casefolded'.
3296         * lib/unicase/u16-is-casefolded.c: New file.
3297         * modules/unicase/u16-is-casefolded: New file.
3298
3299         New module 'unicase/u8-is-casefolded'.
3300         * lib/unicase/u8-is-casefolded.c: New file.
3301         * modules/unicase/u8-is-casefolded: New file.
3302
3303         Tests for module 'unicase/u32-is-titlecase'.
3304         * modules/unicase/u32-is-titlecase-tests: New file.
3305         * tests/unicase/test-u32-is-titlecase.c: New file.
3306
3307         Tests for module 'unicase/u16-is-titlecase'.
3308         * modules/unicase/u16-is-titlecase-tests: New file.
3309         * tests/unicase/test-u16-is-titlecase.c: New file.
3310
3311         Tests for module 'unicase/u8-is-titlecase'.
3312         * modules/unicase/u8-is-titlecase-tests: New file.
3313         * tests/unicase/test-u8-is-titlecase.c: New file.
3314         * tests/unicase/test-is-titlecase.h: New file.
3315
3316         New module 'unicase/u32-is-titlecase'.
3317         * lib/unicase/u32-is-titlecase.c: New file.
3318         * modules/unicase/u32-is-titlecase: New file.
3319
3320         New module 'unicase/u16-is-titlecase'.
3321         * lib/unicase/u16-is-titlecase.c: New file.
3322         * modules/unicase/u16-is-titlecase: New file.
3323
3324         New module 'unicase/u8-is-titlecase'.
3325         * lib/unicase/u8-is-titlecase.c: New file.
3326         * modules/unicase/u8-is-titlecase: New file.
3327
3328         Tests for module 'unicase/u32-is-lowercase'.
3329         * modules/unicase/u32-is-lowercase-tests: New file.
3330         * tests/unicase/test-u32-is-lowercase.c: New file.
3331
3332         Tests for module 'unicase/u16-is-lowercase'.
3333         * modules/unicase/u16-is-lowercase-tests: New file.
3334         * tests/unicase/test-u16-is-lowercase.c: New file.
3335
3336         Tests for module 'unicase/u8-is-lowercase'.
3337         * modules/unicase/u8-is-lowercase-tests: New file.
3338         * tests/unicase/test-u8-is-lowercase.c: New file.
3339         * tests/unicase/test-is-lowercase.h: New file.
3340
3341         New module 'unicase/u32-is-lowercase'.
3342         * lib/unicase/u32-is-lowercase.c: New file.
3343         * modules/unicase/u32-is-lowercase: New file.
3344
3345         New module 'unicase/u16-is-lowercase'.
3346         * lib/unicase/u16-is-lowercase.c: New file.
3347         * modules/unicase/u16-is-lowercase: New file.
3348
3349         New module 'unicase/u8-is-lowercase'.
3350         * lib/unicase/u8-is-lowercase.c: New file.
3351         * modules/unicase/u8-is-lowercase: New file.
3352
3353         Tests for module 'unicase/u32-is-uppercase'.
3354         * modules/unicase/u32-is-uppercase-tests: New file.
3355         * tests/unicase/test-u32-is-uppercase.c: New file.
3356
3357         Tests for module 'unicase/u16-is-uppercase'.
3358         * modules/unicase/u16-is-uppercase-tests: New file.
3359         * tests/unicase/test-u16-is-uppercase.c: New file.
3360
3361         Tests for module 'unicase/u8-is-uppercase'.
3362         * modules/unicase/u8-is-uppercase-tests: New file.
3363         * tests/unicase/test-u8-is-uppercase.c: New file.
3364         * tests/unicase/test-is-uppercase.h: New file.
3365
3366         New module 'unicase/u32-is-uppercase'.
3367         * lib/unicase/u32-is-uppercase.c: New file.
3368         * modules/unicase/u32-is-uppercase: New file.
3369
3370         New module 'unicase/u16-is-uppercase'.
3371         * lib/unicase/u16-is-uppercase.c: New file.
3372         * modules/unicase/u16-is-uppercase: New file.
3373
3374         New module 'unicase/u8-is-uppercase'.
3375         * lib/unicase/u8-is-uppercase.c: New file.
3376         * modules/unicase/u8-is-uppercase: New file.
3377
3378         New module 'unicase/u32-is-invariant'.
3379         * lib/unicase/u32-is-invariant.c: New file.
3380         * modules/unicase/u32-is-invariant: New file.
3381
3382         New module 'unicase/u16-is-invariant'.
3383         * lib/unicase/u16-is-invariant.c: New file.
3384         * modules/unicase/u16-is-invariant: New file.
3385
3386         New module 'unicase/u8-is-invariant'.
3387         * lib/unicase/u8-is-invariant.c: New file.
3388         * lib/unicase/invariant.h: New file.
3389         * lib/unicase/u-is-invariant.h: New file.
3390         * modules/unicase/u8-is-invariant: New file.
3391
3392         Tests for module 'unicase/u32-casecoll'.
3393         * modules/unicase/u32-casecoll-tests: New file.
3394         * tests/unicase/test-u32-casecoll.c: New file.
3395
3396         Tests for module 'unicase/u16-casecoll'.
3397         * modules/unicase/u16-casecoll-tests: New file.
3398         * tests/unicase/test-u16-casecoll.c: New file.
3399
3400         Tests for module 'unicase/u8-casecoll'.
3401         * modules/unicase/u8-casecoll-tests: New file.
3402         * tests/unicase/test-u8-casecoll.c: New file.
3403
3404         New module 'unicase/u32-casecoll'.
3405         * lib/unicase/u32-casecoll.c: New file.
3406         * modules/unicase/u32-casecoll: New file.
3407
3408         New module 'unicase/u16-casecoll'.
3409         * lib/unicase/u16-casecoll.c: New file.
3410         * modules/unicase/u16-casecoll: New file.
3411
3412         New module 'unicase/u8-casecoll'.
3413         * lib/unicase/u8-casecoll.c: New file.
3414         * lib/unicase/u-casecoll.h: New file.
3415         * modules/unicase/u8-casecoll: New file.
3416
3417         New module 'unicase/u32-casexfrm'.
3418         * lib/unicase/u32-casexfrm.c: New file.
3419         * modules/unicase/u32-casexfrm: New file.
3420
3421         New module 'unicase/u16-casexfrm'.
3422         * lib/unicase/u16-casexfrm.c: New file.
3423         * modules/unicase/u16-casexfrm: New file.
3424
3425         New module 'unicase/u8-casexfrm'.
3426         * lib/unicase/u8-casexfrm.c: New file.
3427         * lib/unicase/u-casexfrm.h: New file.
3428         * modules/unicase/u8-casexfrm: New file.
3429
3430         Tests for module 'unicase/u32-casecmp'.
3431         * modules/unicase/u32-casecmp-tests: New file.
3432         * tests/unicase/test-u32-casecmp.c: New file.
3433
3434         Tests for module 'unicase/u16-casecmp'.
3435         * modules/unicase/u16-casecmp-tests: New file.
3436         * tests/unicase/test-u16-casecmp.c: New file.
3437
3438         Tests for module 'unicase/u8-casecmp'.
3439         * modules/unicase/u8-casecmp-tests: New file.
3440         * tests/unicase/test-u8-casecmp.c: New file.
3441         * tests/unicase/test-casecmp.h: New file.
3442
3443         New module 'unicase/u32-casecmp'.
3444         * lib/unicase/u32-casecmp.c: New file.
3445         * modules/unicase/u32-casecmp: New file.
3446
3447         New module 'unicase/u16-casecmp'.
3448         * lib/unicase/u16-casecmp.c: New file.
3449         * modules/unicase/u16-casecmp: New file.
3450
3451         New module 'unicase/u8-casecmp'.
3452         * lib/unicase/u8-casecmp.c: New file.
3453         * lib/unicase/u-casecmp.h: New file.
3454         * modules/unicase/u8-casecmp: New file.
3455
3456         Tests for module 'unicase/u32-casefold'.
3457         * modules/unicase/u32-casefold-tests: New file.
3458         * tests/unicase/test-u32-casefold.c: New file.
3459
3460         Tests for module 'unicase/u16-casefold'.
3461         * modules/unicase/u16-casefold-tests: New file.
3462         * tests/unicase/test-u16-casefold.c: New file.
3463
3464         Tests for module 'unicase/u8-casefold'.
3465         * modules/unicase/u8-casefold-tests: New file.
3466         * tests/unicase/test-u8-casefold.c: New file.
3467
3468         New module 'unicase/u32-casefold'.
3469         * lib/unicase/u32-casefold.c: New file.
3470         * modules/unicase/u32-casefold: New file.
3471
3472         New module 'unicase/u16-casefold'.
3473         * lib/unicase/u16-casefold.c: New file.
3474         * modules/unicase/u16-casefold: New file.
3475
3476         New module 'unicase/u8-casefold'.
3477         * lib/unicase/u8-casefold.c: New file.
3478         * lib/unicase/u-casefold.h: New file.
3479         * modules/unicase/u8-casefold: New file.
3480
3481         New module 'unicase/tocasefold'.
3482         * lib/unicase/casefold.h: New file.
3483         * lib/unicase/tocasefold.c: New file.
3484         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
3485         * modules/unicase/tocasefold: New file.
3486
3487         Tests for module 'unicase/u32-totitle'.
3488         * modules/unicase/u32-totitle-tests: New file.
3489         * tests/unicase/test-u32-totitle.c: New file.
3490
3491         Tests for module 'unicase/u16-totitle'.
3492         * modules/unicase/u16-totitle-tests: New file.
3493         * tests/unicase/test-u16-totitle.c: New file.
3494
3495         Tests for module 'unicase/u8-totitle'.
3496         * modules/unicase/u8-totitle-tests: New file.
3497         * tests/unicase/test-u8-totitle.c: New file.
3498
3499         New module 'unicase/u32-totitle'.
3500         * lib/unicase/u32-totitle.c: New file.
3501         * modules/unicase/u32-totitle: New file.
3502
3503         New module 'unicase/u16-totitle'.
3504         * lib/unicase/u16-totitle.c: New file.
3505         * modules/unicase/u16-totitle: New file.
3506
3507         New module 'unicase/u8-totitle'.
3508         * lib/unicase/u8-totitle.c: New file.
3509         * lib/unicase/u-totitle.h: New file.
3510         * modules/unicase/u8-totitle: New file.
3511
3512         Tests for module 'unicase/u32-tolower'.
3513         * modules/unicase/u32-tolower-tests: New file.
3514         * tests/unicase/test-u32-tolower.c: New file.
3515
3516         Tests for module 'unicase/u16-tolower'.
3517         * modules/unicase/u16-tolower-tests: New file.
3518         * tests/unicase/test-u16-tolower.c: New file.
3519
3520         Tests for module 'unicase/u8-tolower'.
3521         * modules/unicase/u8-tolower-tests: New file.
3522         * tests/unicase/test-u8-tolower.c: New file.
3523
3524         New module 'unicase/u32-tolower'.
3525         * lib/unicase/u32-tolower.c: New file.
3526         * modules/unicase/u32-tolower: New file.
3527
3528         New module 'unicase/u16-tolower'.
3529         * lib/unicase/u16-tolower.c: New file.
3530         * modules/unicase/u16-tolower: New file.
3531
3532         New module 'unicase/u8-tolower'.
3533         * lib/unicase/u8-tolower.c: New file.
3534         * modules/unicase/u8-tolower: New file.
3535
3536         Tests for module 'unicase/u32-toupper'.
3537         * modules/unicase/u32-toupper-tests: New file.
3538         * tests/unicase/test-u32-toupper.c: New file.
3539
3540         Tests for module 'unicase/u16-toupper'.
3541         * modules/unicase/u16-toupper-tests: New file.
3542         * tests/unicase/test-u16-toupper.c: New file.
3543
3544         Tests for module 'unicase/u8-toupper'.
3545         * modules/unicase/u8-toupper-tests: New file.
3546         * tests/unicase/test-u8-toupper.c: New file.
3547
3548         New module 'unicase/u32-toupper'.
3549         * lib/unicase/u32-toupper.c: New file.
3550         * modules/unicase/u32-toupper: New file.
3551
3552         New module 'unicase/u16-toupper'.
3553         * lib/unicase/u16-toupper.c: New file.
3554         * modules/unicase/u16-toupper: New file.
3555
3556         New module 'unicase/u8-toupper'.
3557         * lib/unicase/u8-toupper.c: New file.
3558         * modules/unicase/u8-toupper: New file.
3559
3560         New module 'unicase/u32-casemap'.
3561         * lib/unicase/u32-casemap.c: New file.
3562         * modules/unicase/u32-casemap: New file.
3563
3564         New module 'unicase/u16-casemap'.
3565         * lib/unicase/u16-casemap.c: New file.
3566         * modules/unicase/u16-casemap: New file.
3567
3568         New module 'unicase/u8-casemap'.
3569         * lib/unicase/unicasemap.h: New file.
3570         * lib/unicase/u8-casemap.c: New file.
3571         * lib/unicase/u-casemap.h: New file.
3572         * modules/unicase/u8-casemap: New file.
3573
3574         New module 'unicase/special-casing'.
3575         * lib/unicase/special-casing.h: New file.
3576         * lib/unicase/special-casing.c: New file.
3577         * lib/unicase/special-casing-table.gperf: New file, generated by
3578         gen-uni-tables.c.
3579         * modules/unicase/special-casing: New file.
3580
3581         Tests for module 'unicase/locale-language'.
3582         * modules/unicase/locale-language-tests: New file.
3583         * tests/unicase/test-locale-language.sh: New file.
3584         * tests/unicase/test-locale-language.c: New file.
3585
3586         New module 'unicase/locale-language'.
3587         * lib/unicase/locale-language.c: New file.
3588         * lib/unicase/locale-languages.gperf: New file.
3589         * modules/unicase/locale-language: New file.
3590
3591         Generate more tables for case conversion and case folding.
3592         * lib/gen-uni-tables.c (SCC_*): New enum items.
3593         (struct special_casing_rule): New type.
3594         (casing_rules, num_casing_rules, allocated_casing_rules): New
3595         variables.
3596         (add_casing_rule, fill_casing_rules): New functions.
3597         (struct casefold_rule): New type.
3598         (casefolding_rules, num_casefolding_rules,
3599         allocated_casefolding_rules): New variables.
3600         (fill_casefolding_rules): New function.
3601         (unicode_casefold): New variable.
3602         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
3603         sort_casing_rules, output_casing_rules): New functions.
3604         (main): Accept to more arguments: SpecialCasing.txt and
3605         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
3606         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
3607         Output mapping for casefolding.
3608
3609         * lib/unicase.h: Include stdbool.h, uninorm.h.
3610         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
3611         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
3612         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
3613         arguments.
3614         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
3615         resultp arguments.
3616         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
3617         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
3618         resultp arguments.
3619         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
3620         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
3621         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
3622         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
3623         declarations.
3624         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
3625
3626 2009-03-08  Bruno Haible  <bruno@clisp.org>
3627
3628         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3629         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
3630         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
3631         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3632
3633 2009-03-07  Bruno Haible  <bruno@clisp.org>
3634
3635         Adjust u*_normcmp, u*_normcoll API.
3636         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3637         u16_normcoll, u32_normcoll): Change failure conventions.
3638         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
3639         errno and return -1.
3640         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3641
3642 2009-03-07  Bruno Haible  <bruno@clisp.org>
3643
3644         Tests for module 'uninorm/u32-normcoll'.
3645         * modules/uninorm/u32-normcoll-tests: New file.
3646         * tests/uninorm/test-u32-normcoll.c: New file.
3647
3648         Tests for module 'uninorm/u16-normcoll'.
3649         * modules/uninorm/u16-normcoll-tests: New file.
3650         * tests/uninorm/test-u16-normcoll.c: New file.
3651
3652         Tests for module 'uninorm/u8-normcoll'.
3653         * modules/uninorm/u8-normcoll-tests: New file.
3654         * tests/uninorm/test-u8-normcoll.c: New file.
3655
3656 2009-03-07  Bruno Haible  <bruno@clisp.org>
3657
3658         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
3659         tests/uninorm/test-u32-normcmp.c.
3660         * tests/uninorm/test-u32-normcmp.c: Include it.
3661         (test_nonascii): New function, extracted from main. Add some more
3662         tests.
3663         (main): Invoke test_ascii and test_nonascii.
3664         * modules/uninorm/u32-normcmp-tests (Files): Add
3665         tests/uninorm/test-u32-normcmp.h.
3666         (Depends-on): Remove uninorm/u32-normcmp.
3667
3668         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
3669         tests/uninorm/test-u16-normcmp.c.
3670         * tests/uninorm/test-u16-normcmp.c: Include it.
3671         (test_nonascii): New function, extracted from main. Add some more
3672         tests.
3673         (main): Invoke test_ascii and test_nonascii.
3674         * modules/uninorm/u16-normcmp-tests (Files): Add
3675         tests/uninorm/test-u16-normcmp.h.
3676         (Depends-on): Remove uninorm/u16-normcmp.
3677
3678         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
3679         tests/uninorm/test-u8-normcmp.c.
3680         * tests/uninorm/test-u8-normcmp.c: Include it.
3681         (test_nonascii): New function, extracted from main. Add some more
3682         tests.
3683         (main): Invoke test_ascii and test_nonascii.
3684         * modules/uninorm/u8-normcmp-tests (Files): Add
3685         tests/uninorm/test-u8-normcmp.h.
3686         (Depends-on): Remove uninorm/u8-normcmp.
3687
3688 2009-03-07  Bruno Haible  <bruno@clisp.org>
3689
3690         New module 'uninorm/u32-normcoll'.
3691         * lib/uninorm/u32-normcoll.c: New file.
3692         * modules/uninorm/u32-normcoll: New file.
3693
3694         New module 'uninorm/u16-normcoll'.
3695         * lib/uninorm/u16-normcoll.c: New file.
3696         * modules/uninorm/u16-normcoll: New file.
3697
3698         New module 'uninorm/u8-normcoll'.
3699         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
3700         declarations.
3701         * lib/uninorm/u8-normcoll.c: New file.
3702         * lib/uninorm/u-normcoll.h: New file.
3703         * modules/uninorm/u8-normcoll: New file.
3704
3705         New module 'uninorm/u32-normxfrm'.
3706         * lib/uninorm/u32-normxfrm.c: New file.
3707         * modules/uninorm/u32-normxfrm: New file.
3708
3709         New module 'uninorm/u16-normxfrm'.
3710         * lib/uninorm/u16-normxfrm.c: New file.
3711         * modules/uninorm/u16-normxfrm: New file.
3712
3713         New module 'uninorm/u8-normxfrm'.
3714         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
3715         declarations.
3716         * lib/uninorm/u8-normxfrm.c: New file.
3717         * lib/uninorm/u-normxfrm.h: New file.
3718         * modules/uninorm/u8-normxfrm: New file.
3719
3720 2009-03-07  Bruno Haible  <bruno@clisp.org>
3721
3722         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
3723         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
3724         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
3725
3726 2009-03-07  Bruno Haible  <bruno@clisp.org>
3727
3728         New module 'memxfrm'.
3729         * lib/memxfrm.h: New file.
3730         * lib/memxfrm.c: New file.
3731         * modules/memxfrm: New file.
3732
3733 2009-03-07  Bruno Haible  <bruno@clisp.org>
3734
3735         New module 'memcmp2'.
3736         * lib/memcmp2.h: New file.
3737         * lib/memcmp2.c: New file.
3738         * modules/memcmp2: New file.
3739
3740 2009-03-07  Bruno Haible  <bruno@clisp.org>
3741
3742         Tests for module 'uninorm/decomposing-form'.
3743         * modules/uninorm/decomposing-form-tests: New file.
3744         * tests/uninorm/test-decomposing-form.c: New file.
3745
3746         New module 'uninorm/decomposing-form'.
3747         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
3748         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
3749         Add 'decomposing_variant' field.
3750         * lib/uninorm/decomposing-form.c: New file.
3751         * lib/uninorm/nfc.c (uninorm_nfc): Update.
3752         * lib/uninorm/nfd.c (uninorm_nfd): Update.
3753         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
3754         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
3755         * modules/uninorm/decomposing-form: New file.
3756         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
3757         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
3758
3759 2009-03-07  Bruno Haible  <bruno@clisp.org>
3760
3761         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
3762         strings.
3763
3764 2009-03-06  Bruno Haible  <bruno@clisp.org>
3765
3766         Tests for module 'uninorm/u32-normcmp'.
3767         * tests/uninorm/test-u32-normcmp.c: New file.
3768         * modules/uninorm/u32-normcmp-tests: New file.
3769
3770         Tests for module 'uninorm/u16-normcmp'.
3771         * tests/uninorm/test-u16-normcmp.c: New file.
3772         * modules/uninorm/u16-normcmp-tests: New file.
3773
3774         Tests for module 'uninorm/u8-normcmp'.
3775         * tests/uninorm/test-u8-normcmp.c: New file.
3776         * modules/uninorm/u8-normcmp-tests: New file.
3777
3778         New module 'uninorm/u32-normcmp'.
3779         * lib/uninorm/u32-normcmp.c: New file.
3780         * modules/uninorm/u32-normcmp: New file.
3781
3782         New module 'uninorm/u16-normcmp'.
3783         * lib/uninorm/u16-normcmp.c: New file.
3784         * modules/uninorm/u16-normcmp: New file.
3785
3786         New module 'uninorm/u8-normcmp'.
3787         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
3788         declarations.
3789         * lib/uninorm/u8-normcmp.c: New file.
3790         * lib/uninorm/u-normcmp.h: New file.
3791         * modules/uninorm/u8-normcmp: New file.
3792
3793 2009-03-06  Bruno Haible  <bruno@clisp.org>
3794
3795         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
3796         Reported by Eric Blake.
3797
3798 2009-03-06  Eric Blake  <ebb9@byu.net>
3799             Bruno Haible  <bruno@clisp.org>
3800
3801         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
3802         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
3803         condition.
3804         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3805         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
3806         condition.
3807         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3808
3809 2009-03-06  Eric Blake  <ebb9@byu.net>
3810
3811         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
3812         to avoid compiler warnings.
3813         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
3814
3815 2009-03-05  Bruno Haible  <bruno@clisp.org>
3816
3817         * tests/test-ftell.c (main): Disable test beyond end of file on
3818         FreeMiNT.
3819         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3820
3821 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
3822
3823         * lib/filevercmp.c: Move hidden files up in ordering.
3824         * tests/test-filevercmp.c: Add tests for hidden files.
3825
3826 2009-03-04  Bruno Haible  <bruno@clisp.org>
3827
3828         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
3829         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
3830         AM_CFLAGS.
3831         Reported by Simon Josefsson.
3832
3833 2009-03-03  Bruno Haible  <bruno@clisp.org>
3834
3835         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
3836         Reported by Simon Josefsson.
3837
3838         * doc/ld-version-script.texi: Update node reference.
3839
3840 2009-03-03  Bruno Haible  <bruno@clisp.org>
3841
3842         * modules/visibility (License): Change to 'unlimited'.
3843         Suggested by Simon Josefsson.
3844
3845 2009-03-03  Jim Meyering  <meyering@redhat.com>
3846
3847         unlinkdir: cannot_unlink_dir may modify process state
3848         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
3849         it's neither thread-safe nor appropriate for use in a library.
3850
3851 2009-03-03  Eric Blake  <ebb9@byu.net>
3852
3853         test-closein: silence test under Darwin
3854         * tests/test-closein.sh: Ignore stderr from cat, since we don't
3855         care if it dies from EPIPE or EBADF.
3856
3857 2009-03-03  Bruno Haible  <bruno@clisp.org>
3858
3859         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
3860         earlier.
3861         * doc/visibility.texi: Fix @node and @section.
3862
3863 2009-03-03  Simon Josefsson  <simon@josefsson.org>
3864
3865         * doc/gnulib.texi: Link to sections for ld version script and
3866         visibility.
3867         * doc/visibility.texi: Add @node and @section.
3868         * modules/ld-version-script: New module.
3869         * m4/ld-version-script.m4: New file.
3870         * doc/ld-version-script.texi: New file.
3871
3872 2009-03-02  David Lutterkort  <lutter@redhat.com>
3873
3874         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
3875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3876
3877 2009-03-02  Bruno Haible  <bruno@clisp.org>
3878
3879         * doc/visibility.texi: Mention libtool's -export-symbols option.
3880
3881 2009-03-02  Jim Meyering  <meyering@redhat.com>
3882
3883         announce-gen: new option: --no-print-checksums
3884         * build-aux/announce-gen (usage): Describe it.
3885         (print_checksums): Print a newline here, not in the [*] footnote.
3886         (main): Honor it.
3887
3888 2009-03-01  Bruno Haible  <bruno@clisp.org>
3889
3890         Use socklen_t in the native Windows replacements prototypes.
3891         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
3892         instead of 'int'.
3893         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3894         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3895         * modules/getsockopt (Depends-on): Add socklen.
3896         * modules/setsockopt (Depends-on): Add socklen.
3897
3898 2009-03-01  Bruno Haible  <bruno@clisp.org>
3899
3900         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
3901         least 4.2.
3902
3903 2009-03-01  Eric Blake  <ebb9@byu.net>
3904             Bruno Haible  <bruno@clisp.org>
3905
3906         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
3907         error messages.
3908         * lib/wait-process.c (wait_subprocess): Omit error message about
3909         deadly signal sent to the child of termsigp != NULL.
3910
3911 2009-03-01  Eric Blake  <ebb9@byu.net>
3912
3913         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
3914
3915 2009-03-01  Bruno Haible  <bruno@clisp.org>
3916
3917         Avoid a gcc warning.
3918         * tests/test-sched.c (b): Make global.
3919         Reported by Eric Blake.
3920
3921 2009-01-19  Martin Lambers  <marlam@marlam.de>
3922
3923         Provide POSIX semantics for socket timeout options on W32.
3924         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
3925         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
3926         * modules/setsockopt: Depend on sys_time module for struct timeval.
3927         * modules/getsockopt: Depend on sys_time module for struct timeval.
3928
3929 2009-03-01  Simon Josefsson  <simon@josefsson.org>
3930
3931         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
3932         __USE_GNU, for consistency with netdb.in.h.
3933         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3934
3935 2009-03-01  Bruno Haible  <bruno@clisp.org>
3936
3937         More support for FreeMiNT.
3938         * lib/fseeko.c (rpl_fseeko): Complete last commit.
3939         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3940
3941 2009-03-01  Bruno Haible  <bruno@clisp.org>
3942
3943         More support for FreeMiNT.
3944         * lib/fpurge.c (fpurge): Correct last commit.
3945         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3946
3947 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3948
3949         Fix unportable awk script in vc-list-files.
3950         * build-aux/vc-list-files: In the replacement awk script, use
3951         substr with a second argument of 1, not zero.
3952         Report by Simon Josefsson.
3953
3954 2009-02-28  Bruno Haible  <bruno@clisp.org>
3955
3956         More support for FreeMiNT.
3957         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
3958         to FreeMiNT today.
3959         * lib/fwriting.c (fwriting): Likewise.
3960         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
3961
3962 2009-02-28  Bruno Haible  <bruno@clisp.org>
3963
3964         * tests/test-freadseek.c (main): Disable test beyond end of file on
3965         FreeMiNT.
3966         * tests/test-ftello.c (main): Likewise.
3967         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3968
3969 2009-02-28  Bruno Haible  <bruno@clisp.org>
3970
3971         Add tentative support for FreeMiNT.
3972         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
3973         * lib/fpurge.c (fpurge): Likewise.
3974         * lib/freadable.c (freadable): Likewise.
3975         * lib/freading.c (freading): Likewise.
3976         * lib/freadptr.c (freadptr): Likewise.
3977         * lib/freadseek.c (freadptrinc): Likewise.
3978         * lib/fseeko.c (rpl_fseeko): Likewise.
3979         * lib/fseterr.c (fseterr): Likewise.
3980         * lib/fwritable.c (fwritable): Likewise.
3981         * lib/fwriting.c (fwriting): Likewise.
3982         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
3983         Hourihane.
3984         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
3985
3986 2009-02-28  Bruno Haible  <bruno@clisp.org>
3987
3988         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
3989         SIGCHLD.
3990         Reported by Jim Meyering.
3991
3992 2009-02-28  Bruno Haible  <bruno@clisp.org>
3993
3994         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
3995         Mention the results of these tests on various platforms.
3996         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
3997         order.
3998         * doc/posix-functions/printf.texi: Likewise.
3999         * doc/posix-functions/snprintf.texi: Likewise.
4000         * doc/posix-functions/sprintf.texi: Likewise.
4001         * doc/posix-functions/vfprintf.texi: Likewise.
4002         * doc/posix-functions/vprintf.texi: Likewise.
4003         * doc/posix-functions/vsnprintf.texi: Likewise.
4004         * doc/posix-functions/vsprintf.texi: Likewise.
4005         * doc/glibc-functions/obstack_printf.texi: Likewise.
4006         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4007
4008 2009-02-28  Bruno Haible  <bruno@clisp.org>
4009
4010         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
4011         Reported by Loïc Minier <lool@dooz.org>.
4012
4013 2009-02-27  Bruno Haible  <bruno@clisp.org>
4014
4015         * gnulib-tool (func_import): Make the sed expression used to create the
4016         sed script for updating the .gitignore file POSIX compliant.
4017         Reported by Eric Blake.
4018
4019 2009-02-27  Bruno Haible  <bruno@clisp.org>
4020
4021         * gnulib-tool (sed): Don't alias as "sed --posix".
4022         Reported by Eric Blake.
4023
4024 2009-02-27  Bruno Haible  <bruno@clisp.org>
4025
4026         Avoid test link errors.
4027         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
4028         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
4029         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
4030         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
4031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4032
4033 2009-02-27  Bruno Haible  <bruno@clisp.org>
4034
4035         Avoid spurious "(cached)" in configure output.
4036         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
4037         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
4038         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4039         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4040         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4041         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4042         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4043         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4044         Reported by Eric Blake.
4045
4046 2009-02-27  Eric Blake  <ebb9@byu.net>
4047
4048         printf: fix regression in previous patch
4049         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
4050
4051 2009-02-27  Bruno Haible  <bruno@clisp.org>
4052
4053         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
4054         value.
4055         * lib/stdint.in.h: Likewise.
4056         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
4057
4058 2009-02-27  Eric Blake  <ebb9@byu.net>
4059
4060         doc: mention more functions added in cygwin 1.7.0
4061         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
4062         addition.
4063         * doc/posix-functions/open_wmemstream.texi: Likewise.
4064         * doc/posix-functions/wcsnlen.texi: Likewise.
4065         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4066         * doc/posix-functions/wcstod.texi: Likewise.
4067         * doc/posix-functions/wcstof.texi: Likewise.
4068         * doc/posix-functions/wcstoimax.texi: Likewise.
4069         * doc/posix-functions/wcstok.texi: Likewise.
4070         * doc/posix-functions/wcstoumax.texi: Likewise.
4071
4072         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
4073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
4074         * doc/posix-functions/fprintf.texi: Update.
4075         * doc/posix-functions/printf.texi: Update.
4076         * doc/posix-functions/snprintf.texi: Update.
4077         * doc/posix-functions/sprintf.texi: Update.
4078         * doc/posix-functions/vfprintf.texi: Update.
4079         * doc/posix-functions/vprintf.texi: Update.
4080         * doc/posix-functions/vsnprintf.texi: Update.
4081         * doc/posix-functions/vsprintf.texi: Update.
4082         * doc/glibc-functions/obstack_printf.texi: Update.
4083         * doc/glibc-functions/obstack_vprintf.texi: Update.
4084
4085 2009-02-26  Eric Blake  <ebb9@byu.net>
4086
4087         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
4088         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
4089         compilation bug by using runtime conversion.
4090         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4091         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
4092         * modules/ceill-tests (Files): Use nan.h.
4093         * modules/floorl-tests (Files): Likewise.
4094         * modules/frexpl-tests (Files): Likewise.
4095         * modules/isnanl-tests (Files): Likewise.
4096         * modules/ldexpl-tests (Files): Likewise.
4097         * modules/roundl-tests (Files): Likewise.
4098         * modules/truncl-tests (Files): Likewise.
4099         * tests/test-ceill.c (main): Use a working NaN.
4100         * tests/test-floorl.c (main): Likewise.
4101         * tests/test-frexpl.c (main): Likewise.
4102         * tests/test-isnan.c (test_long_double): Likewise.
4103         * tests/test-isnanl.h (main): Likewise.
4104         * tests/test-ldexpl.h (main): Likewise.
4105         * tests/test-roundl.h (main): Likewise.
4106         * tests/test-truncl.h (main): Likewise.
4107         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
4108
4109 2009-02-26  Eric Blake  <ebb9@byu.net>
4110             Bruno Haible  <bruno@clisp.org>
4111
4112         Work around a *printf bug with %ls on Solaris.
4113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
4114         precision is specified, sprintf stops converting the wide string
4115         argument when the number of bytes that have been produced by this
4116         conversion equals or exceeds the precision.
4117         * doc/posix-functions/fprintf.texi: Update.
4118         * doc/posix-functions/printf.texi: Update.
4119         * doc/posix-functions/snprintf.texi: Update.
4120         * doc/posix-functions/sprintf.texi: Update.
4121         * doc/posix-functions/vfprintf.texi: Update.
4122         * doc/posix-functions/vprintf.texi: Update.
4123         * doc/posix-functions/vsnprintf.texi: Update.
4124         * doc/posix-functions/vsprintf.texi: Update.
4125         * doc/glibc-functions/obstack_printf.texi: Update.
4126         * doc/glibc-functions/obstack_vprintf.texi: Update.
4127
4128 2009-02-26  Eric Blake  <ebb9@byu.net>
4129
4130         stdlib: favor compiler check of random.h
4131         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
4132         to avoid an ObjC random.h installed by Swarm.
4133
4134 2009-02-26  Bruno Haible  <bruno@clisp.org>
4135
4136         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
4137         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
4138         Reported by Gary V. Vaughan <gary@gnu.org>.
4139
4140 2009-02-26  Bruno Haible  <bruno@clisp.org>
4141
4142         Fix *printf behaviour regarding the %ls directive.
4143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
4144         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
4145         NEED_PRINTF_DIRECTIVE_LS.
4146         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
4147         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4149         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
4150         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
4151         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
4152         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4157         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
4158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4161         * doc/posix-functions/fprintf.texi: Update.
4162         * doc/posix-functions/printf.texi: Update.
4163         * doc/posix-functions/snprintf.texi: Update.
4164         * doc/posix-functions/sprintf.texi: Update.
4165         * doc/posix-functions/vfprintf.texi: Update.
4166         * doc/posix-functions/vprintf.texi: Update.
4167         * doc/posix-functions/vsnprintf.texi: Update.
4168         * doc/posix-functions/vsprintf.texi: Update.
4169         * doc/glibc-functions/obstack_printf.texi: Update.
4170         * doc/glibc-functions/obstack_vprintf.texi: Update.
4171         Reported by Eric Blake.
4172
4173 2009-02-25  Bruno Haible  <bruno@clisp.org>
4174
4175         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
4176         with known value.
4177         Reported by Gary V. Vaughan <gary@gnu.org>.
4178
4179 2009-02-25  Bruno Haible  <bruno@clisp.org>
4180
4181         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
4182         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
4183         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
4184         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
4185         Reported by Gary V. Vaughan <gary@gnu.org>.
4186
4187 2009-02-25  Bruno Haible  <bruno@clisp.org>
4188
4189         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
4190         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
4191         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
4192         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
4193         Reported by Gary V. Vaughan <gary@gnu.org>.
4194
4195 2009-02-25  Eric Blake  <ebb9@byu.net>
4196
4197         tests: skip fseek/ftell tests if ungetc is broken
4198         * m4/ungetc.m4: New file.
4199         * modules/fseek-tests: Split test, so ungetc dependency is
4200         separate from rest of test.
4201         * modules/fseeko-tests: Likewise.
4202         * modules/ftell-tests: Likewise.
4203         * modules/ftello-tests: Likewise.
4204         * tests/test-fseek.c (main): Isolate ungetc dependency.
4205         * tests/test-fseeko.c (main): Likewise.
4206         * tests/test-ftell.c (main): Likewise.
4207         * tests/test-ftello.c (main): Likewise.
4208         * tests/test-fseek2.sh: New file.
4209         * tests/test-fseeko2.sh: Likewise.
4210         * tests/test-ftell2.sh: Likewise.
4211         * tests/test-ftello2.sh: Likewise.
4212
4213 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
4214
4215         test-getaddrinfo: fix usage of skip return code 77
4216         * tests/test-gettaddrinfo.c: Return skip code 77 only
4217         for first occurance of skip (4x77 is not 77)
4218
4219 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
4220
4221         strtod: avoid C99 decl-after-statement
4222         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
4223
4224 2009-02-24  Eric Blake  <ebb9@byu.net>
4225
4226         strtod: detect HP-UX 11.31 bug
4227         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
4228         Reported by Gary V. Vaughan.
4229
4230 2009-02-23  Bruno Haible  <bruno@clisp.org>
4231
4232         Fix invalid read past end of memory block.
4233         * lib/vasnprintf.c (DCHAR_SET): Define.
4234         (local_wcslen): Define only when needed.
4235         (local_strnlen, local_wcsnlen): New functions.
4236         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
4237         directives that involve a conversion ourselves.
4238         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
4239         wcsnlen, mbrtowc, wcrtomb.
4240         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
4241         * tests/test-vasprintf-posix.c (test_function): Likewise.
4242         * tests/test-snprintf-posix.h (test_function): Likewise.
4243         * tests/test-sprintf-posix.h (test_function): Likewise.
4244         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4245
4246 2009-02-22  Bruno Haible  <bruno@clisp.org>
4247
4248         Implement new clarified decomposition of Hangul syllables.
4249         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
4250         of type LTV, return only a pairwise decomposition.
4251         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
4252         Likewise.
4253         * tests/uninorm/test-decomposition.c (main): Updated expected result.
4254         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
4255         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
4256
4257 2009-02-22  Bruno Haible  <bruno@clisp.org>
4258
4259         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
4260         zero-length results and shrink excess allocated memory.
4261         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
4262         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
4263         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
4264         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
4265         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
4266         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
4267         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
4268         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
4269         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
4270         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
4271         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
4272         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
4273
4274 2009-02-21  Bruno Haible  <bruno@clisp.org>
4275
4276         * doc/gnulib.texi: Include safe-alloc.texi earlier.
4277         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
4278         spaces after a period. Put a space between a macro name and its
4279         argument list. Trivial rewordings.
4280         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
4281         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
4282         (main): Return 0 explicitly.
4283
4284 2009-02-21  Bruno Haible  <bruno@clisp.org>
4285
4286         Tests for module 'uninorm/filter'.
4287         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
4288         * modules/uninorm/filter-tests: New file.
4289
4290         New module 'uninorm/filter'.
4291         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
4292         uninorm_filter_flush, uninorm_filter_free): New declarations.
4293         * lib/uninorm/uninorm-filter.c: New file.
4294         * modules/uninorm/filter: New file.
4295
4296 2009-02-21  Bruno Haible  <bruno@clisp.org>
4297
4298         Tests for module 'uninorm/nfkc'.
4299         * tests/uninorm/test-nfkc.c: New file.
4300         * tests/uninorm/test-u8-nfkc.c: New file.
4301         * tests/uninorm/test-u16-nfkc.c: New file.
4302         * tests/uninorm/test-u32-nfkc.c: New file.
4303         * tests/uninorm/test-u32-nfkc-big.sh: New file.
4304         * tests/uninorm/test-u32-nfkc-big.c: New file.
4305         * modules/uninorm/nfkc-tests: New file.
4306
4307         New module 'uninorm/nfkc'.
4308         * lib/uninorm/nfkc.c: New file.
4309         * modules/uninorm/nfkc: New file.
4310
4311         Tests for module 'uninorm/nfkd'.
4312         * tests/uninorm/test-nfkd.c: New file.
4313         * tests/uninorm/test-u8-nfkd.c: New file.
4314         * tests/uninorm/test-u16-nfkd.c: New file.
4315         * tests/uninorm/test-u32-nfkd.c: New file.
4316         * tests/uninorm/test-u32-nfkd-big.sh: New file.
4317         * tests/uninorm/test-u32-nfkd-big.c: New file.
4318         * modules/uninorm/nfkd-tests: New file.
4319
4320         New module 'uninorm/nfkd'.
4321         * lib/uninorm/nfkd.c: New file.
4322         * modules/uninorm/nfkd: New file.
4323
4324         Tests for module 'uninorm/nfc'.
4325         * tests/uninorm/test-nfc.c: New file.
4326         * tests/uninorm/test-u8-nfc.c: New file.
4327         * tests/uninorm/test-u16-nfc.c: New file.
4328         * tests/uninorm/test-u32-nfc.c: New file.
4329         * tests/uninorm/test-u32-nfc-big.sh: New file.
4330         * tests/uninorm/test-u32-nfc-big.c: New file.
4331         * modules/uninorm/nfc-tests: New file.
4332
4333         New module 'uninorm/nfc'.
4334         * lib/uninorm/nfc.c: New file.
4335         * modules/uninorm/nfc: New file.
4336
4337         Tests for module 'uninorm/nfd'.
4338         * tests/uninorm/test-nfd.c: New file.
4339         * tests/uninorm/test-u8-nfd.c: New file.
4340         * tests/uninorm/test-u16-nfd.c: New file.
4341         * tests/uninorm/test-u32-nfd.c: New file.
4342         * tests/uninorm/test-u32-nfd-big.sh: New file.
4343         * tests/uninorm/test-u32-nfd-big.c: New file.
4344         * tests/uninorm/test-u32-normalize-big.h: New file.
4345         * tests/uninorm/test-u32-normalize-big.c: New file.
4346         * tests/uninorm/NormalizationTest.txt: New file, created from
4347         Unicode 5.1.0 NormalizationTest.txt.
4348         * modules/uninorm/nfd-tests: New file.
4349
4350         New module 'uninorm/nfd'.
4351         * lib/uninorm/nfd.c: New file.
4352         * modules/uninorm/nfd: New file.
4353
4354         New module 'uninorm/u32-normalize'.
4355         * lib/uninorm/u32-normalize.c: New file.
4356         * modules/uninorm/u32-normalize: New file.
4357
4358         New module 'uninorm/u16-normalize'.
4359         * lib/uninorm/u16-normalize.c: New file.
4360         * modules/uninorm/u16-normalize: New file.
4361
4362         New module 'uninorm/u8-normalize'.
4363         * lib/uninorm/u8-normalize.c: New file.
4364         * lib/uninorm/normalize-internal.h: New file.
4365         * lib/uninorm/u-normalize-internal.h: New file.
4366         * modules/uninorm/u8-normalize: New file.
4367
4368         New module 'uninorm/decompose-internal'.
4369         * lib/uninorm/decompose-internal.c: New file.
4370         * modules/uninorm/decompose-internal: New file.
4371
4372         Tests for module 'uninorm/composition'.
4373         * tests/uninorm/test-composition.c: New file.
4374         * modules/uninorm/composition-tests: New file.
4375
4376         New module 'uninorm/composition'.
4377         * lib/uninorm/composition.c: New file.
4378         * lib/uninorm/composition-table.gperf: New file, generated by
4379         gen-uni-tables.
4380         * modules/uninorm/composition: New file.
4381
4382         Tests for module 'uninorm/compat-decomposition'.
4383         * tests/uninorm/test-compat-decomposition.c: New file.
4384         * modules/uninorm/compat-decomposition-tests: New file.
4385
4386         New module 'uninorm/compat-decomposition'.
4387         * lib/uninorm/decompose-internal.h: New file.
4388         * lib/uninorm/compat-decomposition.c: New file.
4389         * modules/uninorm/compat-decomposition: New file.
4390
4391         Tests for module 'uninorm/canonical-decomposition'.
4392         * tests/uninorm/test-canonical-decomposition.c: New file.
4393         * modules/uninorm/canonical-decomposition-tests: New file.
4394
4395         New module 'uninorm/canonical-decomposition'.
4396         * lib/uninorm/canonical-decomposition.c: New file.
4397         * modules/uninorm/canonical-decomposition: New file.
4398
4399         Tests for module 'uninorm/decomposition'.
4400         * tests/uninorm/test-decomposition.c: New file.
4401         * modules/uninorm/decomposition-tests: New file.
4402
4403         New module 'uninorm/decomposition'.
4404         * lib/uninorm/decomposition.c: New file.
4405         * modules/uninorm/decomposition: New file.
4406
4407         New module 'uninorm/decomposition-table'.
4408         * lib/uninorm/decomposition-table.h: New file.
4409         * lib/uninorm/decomposition-table.c: New file.
4410         * lib/uninorm/decomposition-table1.h: New file, generated by
4411         gen-uni-tables.
4412         * lib/uninorm/decomposition-table2.h: New file, generated by
4413         gen-uni-tables.
4414         * modules/uninorm/decomposition-table: New file.
4415
4416         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
4417         (UC_DECOMP_*): New enumeration items.
4418         (get_decomposition): New function.
4419         (struct decomp_table): New type.
4420         (output_decomposition, output_decomposition_tables): New functions.
4421         (unicode_composition_exclusions): New variable.
4422         (fill_composition_exclusions, debug_output_composition_tables): New
4423         functions.
4424         (main): Accept one more argument. Invoke fill_composition_exclusions.
4425         Output decomposition and composition tables.
4426
4427         New module 'uninorm/base'.
4428         * lib/uninorm.h: New file.
4429         * lib/unictype.h: Update comment.
4430         * modules/uninorm/base: New file.
4431
4432 2009-02-21  David Lutterkort  <lutter@redhat.com>
4433
4434         Tests for module 'safe-alloc'.
4435         * tests/test-safe-alloc.c: New file.
4436         * modules/safe-alloc-tests: New file.
4437
4438         New module 'safe-alloc'.
4439         * lib/safe-alloc.h: New file.
4440         * lib/safe-alloc.c: New file.
4441         * m4/safe-alloc.m4: New file.
4442         * modules/safe-alloc: New file.
4443         * doc/safe-alloc.texi: New file.
4444         * doc/gnulib.texi: Include it.
4445         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4446         safe-alloc.
4447
4448 2009-02-18  Bruno Haible  <bruno@clisp.org>
4449
4450         Fix link error on non-glibc systems.
4451         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
4452         variable.
4453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4454
4455 2009-02-18  Jim Meyering  <meyering@redhat.com>
4456
4457         fts: avoid used-uninitialized error due to recent change
4458         * lib/fts.c (fts_read): Guard uses of the new member,
4459         parent->fts_n_dirs_remaining, since it's not relevant for
4460         the parent of a directory specified on the command-line.
4461
4462 2009-02-17  James Youngman  <jay@gnu.org>
4463             Bruno Haible  <bruno@clisp.org>
4464
4465         * m4/include_next.m4: Reformulate comment.
4466
4467 2009-02-16  Jim Meyering  <meyering@redhat.com>
4468
4469         fts: add #if guards so that the fts_lgpl module still builds
4470         * lib/fts.c: Guard just-added hash-table-using parts with
4471         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
4472         Reported by Simon Josefsson.
4473
4474 2009-02-15  Bruno Haible  <bruno@clisp.org>
4475
4476         * modules/array-mergesort-tests: New file.
4477         * tests/test-array-mergesort.c: New file.
4478
4479         New module 'array-mergesort'.
4480         * modules/array-mergesort: New file.
4481         * lib/array-mergesort.h: New file.
4482
4483 2009-02-15  Bruno Haible  <bruno@clisp.org>
4484
4485         Fix 2009-02-07 commit.
4486         * lib/gen-uni-tables.c (output_predicate, output_category,
4487         output_combclass, output_bidi_category, output_decimal_digit,
4488         output_digit, output_numeric, output_mirror, output_scripts,
4489         output_ident_category, output_simple_mapping): Fix format directives.
4490         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
4491
4492 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
4493
4494         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
4495         fixes are available from IBM.
4496
4497 2009-02-13  Jim Meyering  <meyering@redhat.com>
4498
4499         fts: arrange not to stat non-directories in more cases
4500         This makes GNU find (when it doesn't need to stat each file)
4501         *much* more efficient at traversing reiserfs file systems.
4502         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
4503         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
4504         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
4505         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
4506         (leaf_optimization_applies): New function.
4507         (LCO_hash, LCO_compare): New helper functions.
4508         (link_count_optimize_ok): New function.
4509         (fts_stat): Initialize new member (if dir).
4510         (fts_read): Decrement parent's fts_n_dirs_remaining count if
4511         we've just stat'ed a directory.  Skip the stat call when possible.
4512         ---
4513         Note this AFS-related exchange:
4514         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
4515         and note find's pioctl call in find/fstype.c.
4516         But that is necessary only if you want to enable the
4517         optimization for AFS, and for now, I don't.
4518
4519         fts: move a function definition "up" (no semantic change)
4520         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
4521         "up" to precede upcoming use of a related function.
4522
4523 2009-02-11  Jim Meyering  <meyering@redhat.com>
4524
4525         fts: correct internal computation of nlinks (optimization-related)
4526         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
4527         whether the current entry is a directory, so don't test it.
4528
4529 2009-02-10  Bruno Haible  <bruno@clisp.org>
4530
4531         Tests for module 'uniwbrk/ulc-wordbreaks'.
4532         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
4533         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
4534         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
4535
4536         Tests for module 'uniwbrk/u32-wordbreaks'.
4537         * modules/uniwbrk/u32-wordbreaks-tests: New file.
4538         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
4539
4540         Tests for module 'uniwbrk/u16-wordbreaks'.
4541         * modules/uniwbrk/u16-wordbreaks-tests: New file.
4542         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
4543
4544         Tests for module 'uniwbrk/u8-wordbreaks'.
4545         * modules/uniwbrk/u8-wordbreaks-tests: New file.
4546         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
4547
4548 2009-02-10  Bruno Haible  <bruno@clisp.org>
4549
4550         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
4551         property.
4552         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
4553         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
4554         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
4555
4556 2009-02-10  Simon Josefsson  <simon@josefsson.org>
4557
4558         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
4559         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
4560
4561 2009-02-10  Bruno Haible  <bruno@clisp.org>
4562
4563         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
4564         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
4565         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
4566         * lib/unilbrk/u8-possible-linebreaks.c: Update.
4567         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
4568         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
4569
4570 2009-02-09  Simon Josefsson  <simon@josefsson.org>
4571
4572         * lib/sockets.h (gl_fd_to_handle): New function.
4573
4574         * tests/test-sockets.c: Call gl_fd_to_handle.
4575
4576 2009-02-09  Bruno Haible  <bruno@clisp.org>
4577
4578         * doc/havelib.texi: Document the conventions on bi-arch systems.
4579
4580 2009-02-08  Bruno Haible  <bruno@clisp.org>
4581
4582         Document the AC_LIB_LINKFLAGS macro.
4583         * doc/havelib.texi: New file, mostly written on 2005-05-24.
4584         * doc/gnulib.texi: Include it.
4585
4586 2009-02-08  Bruno Haible  <bruno@clisp.org>
4587
4588         Fix wrong order of sections, compared to TOC.
4589         * doc/gnulib.texi: Include relocatable-maint.texi after the
4590         "Regular expressions" node, not before.
4591
4592 2009-02-08  Bruno Haible  <bruno@clisp.org>
4593
4594         Tests for module 'unicase/totitle'.
4595         * modules/unicase/totitle-tests: New file.
4596
4597         Tests for module 'unicase/tolower'.
4598         * modules/unicase/tolower-tests: New file.
4599
4600         Tests for module 'unicase/toupper'.
4601         * modules/unicase/toupper-tests: New file.
4602         * tests/unicase/test-mapping-part1.h: New file.
4603         * tests/unicase/test-mapping-part2.h: New file.
4604
4605         New module 'unicase/totitle'.
4606         * modules/unicase/totitle: New file.
4607         * lib/unicase/totitle.c: New file.
4608
4609         New module 'unicase/tolower'.
4610         * modules/unicase/tolower: New file.
4611         * lib/unicase/tolower.c: New file.
4612
4613         New module 'unicase/toupper'.
4614         * modules/unicase/toupper: New file.
4615         * lib/unicase/toupper.c: New file.
4616         * lib/unicase/simple-mapping.h: New file.
4617
4618         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
4619         (mapping_table): New structure.
4620         (output_simple_mapping): New function.
4621         (main): Invoke output_simple_mapping_test and output_simple_mapping.
4622         * modules/gen-uni-tables (Description): Update.
4623         * lib/unicase/toupper.h: New file, automatically generated by
4624         gen-uni-tables.
4625         * lib/unicase/tolower.h: New file, automatically generated by
4626         gen-uni-tables.
4627         * lib/unicase/totitle.h: New file, automatically generated by
4628         gen-uni-tables.
4629         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
4630         gen-uni-tables.
4631         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
4632         gen-uni-tables.
4633         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
4634         gen-uni-tables.
4635
4636         New module 'unicase/base'.
4637         * modules/unicase/base: New file.
4638         * lib/unicase.h: New file.
4639
4640 2009-02-08  Bruno Haible  <bruno@clisp.org>
4641
4642         New module 'uniwbrk/ulc-wordbreaks'.
4643         * modules/uniwbrk/ulc-wordbreaks: New file.
4644         * lib/uniwbrk/ulc-wordbreaks.c: New file.
4645
4646         New module 'uniwbrk/u32-wordbreaks'.
4647         * modules/uniwbrk/u32-wordbreaks: New file.
4648         * lib/uniwbrk/u32-wordbreaks.c: New file.
4649
4650         New module 'uniwbrk/u16-wordbreaks'.
4651         * modules/uniwbrk/u16-wordbreaks: New file.
4652         * lib/uniwbrk/u16-wordbreaks.c: New file.
4653
4654         New module 'uniwbrk/u8-wordbreaks'.
4655         * modules/uniwbrk/u8-wordbreaks: New file.
4656         * lib/uniwbrk/u8-wordbreaks.c: New file.
4657         * lib/uniwbrk/u-wordbreaks.h: New file.
4658
4659         New module 'uniwbrk/table'.
4660         * modules/uniwbrk/table: New file.
4661         * lib/uniwbrk/wbrktable.h: New file.
4662         * lib/uniwbrk/wbrktable.c: New file.
4663
4664         New module 'uniwbrk/wordbreak-property'.
4665         * modules/uniwbrk/wordbreak-property: New file.
4666         * lib/uniwbrk/wordbreak-property.c: New file.
4667
4668         * lib/gen-uni-tables.c (WBP_*): New enum items.
4669         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
4670         (unicode_org_wbp): New variable.
4671         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
4672         New functions.
4673         (wbp_table): New structure.
4674         (output_wbp, output_wbrk_tables): New functions.
4675         (main): Accept additional argument. Invoke fill_org_wbp,
4676         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
4677         output_wbrk_tables.
4678         * modules/gen-uni-tables (Description): Update.
4679         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
4680         gen-uni-tables.
4681
4682         New module 'uniwbrk/base'.
4683         * modules/uniwbrk/base: New file.
4684         * lib/uniwbrk.h: New file.
4685
4686 2009-02-08  Bruno Haible  <bruno@clisp.org>
4687
4688         Update to Unicode 5.1.0.
4689         * lib/gen-uni-tables.c (is_property_alphabetic): Include
4690         U+2185..U+2188.
4691         (is_property_default_ignorable_code_point): Don't include characters
4692         of category Cc or Cs and not-a-characters.
4693         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
4694         U+0D79, U+109E, U+109F, U+A60C.
4695         * lib/unictype/bidi_of.h: Regenerated.
4696         * lib/unictype/blocks.h: Regenerated.
4697         * lib/unictype/categ_C.h: Regenerated.
4698         * lib/unictype/categ_Cf.h: Regenerated.
4699         * lib/unictype/categ_Cn.h: Regenerated.
4700         * lib/unictype/categ_L.h: Regenerated.
4701         * lib/unictype/categ_Ll.h: Regenerated.
4702         * lib/unictype/categ_Lm.h: Regenerated.
4703         * lib/unictype/categ_Lo.h: Regenerated.
4704         * lib/unictype/categ_Lu.h: Regenerated.
4705         * lib/unictype/categ_M.h: Regenerated.
4706         * lib/unictype/categ_Mc.h: Regenerated.
4707         * lib/unictype/categ_Me.h: Regenerated.
4708         * lib/unictype/categ_Mn.h: Regenerated.
4709         * lib/unictype/categ_N.h: Regenerated.
4710         * lib/unictype/categ_Nd.h: Regenerated.
4711         * lib/unictype/categ_Nl.h: Regenerated.
4712         * lib/unictype/categ_No.h: Regenerated.
4713         * lib/unictype/categ_P.h: Regenerated.
4714         * lib/unictype/categ_Pd.h: Regenerated.
4715         * lib/unictype/categ_Pe.h: Regenerated.
4716         * lib/unictype/categ_Pf.h: Regenerated.
4717         * lib/unictype/categ_Pi.h: Regenerated.
4718         * lib/unictype/categ_Po.h: Regenerated.
4719         * lib/unictype/categ_Ps.h: Regenerated.
4720         * lib/unictype/categ_S.h: Regenerated.
4721         * lib/unictype/categ_Sk.h: Regenerated.
4722         * lib/unictype/categ_Sm.h: Regenerated.
4723         * lib/unictype/categ_So.h: Regenerated.
4724         * lib/unictype/categ_of.h: Regenerated.
4725         * lib/unictype/combining.h: Regenerated.
4726         * lib/unictype/ctype_alnum.h: Regenerated.
4727         * lib/unictype/ctype_alpha.h: Regenerated.
4728         * lib/unictype/ctype_graph.h: Regenerated.
4729         * lib/unictype/ctype_lower.h: Regenerated.
4730         * lib/unictype/ctype_print.h: Regenerated.
4731         * lib/unictype/ctype_punct.h: Regenerated.
4732         * lib/unictype/ctype_upper.h: Regenerated.
4733         * lib/unictype/decdigit.h: Regenerated.
4734         * lib/unictype/digit.h: Regenerated.
4735         * lib/unictype/mirror.h: Regenerated.
4736         * lib/unictype/numeric.h: Regenerated.
4737         * lib/unictype/pr_alphabetic.h: Regenerated.
4738         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
4739         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
4740         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
4741         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
4742         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
4743         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
4744         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
4745         * lib/unictype/pr_combining.h: Regenerated.
4746         * lib/unictype/pr_dash.h: Regenerated.
4747         * lib/unictype/pr_decimal_digit.h: Regenerated.
4748         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
4749         * lib/unictype/pr_deprecated.h: Regenerated.
4750         * lib/unictype/pr_diacritic.h: Regenerated.
4751         * lib/unictype/pr_extender.h: Regenerated.
4752         * lib/unictype/pr_format_control.h: Regenerated.
4753         * lib/unictype/pr_grapheme_base.h: Regenerated.
4754         * lib/unictype/pr_grapheme_extend.h: Regenerated.
4755         * lib/unictype/pr_grapheme_link.h: Regenerated.
4756         * lib/unictype/pr_id_continue.h: Regenerated.
4757         * lib/unictype/pr_id_start.h: Regenerated.
4758         * lib/unictype/pr_ideographic.h: Regenerated.
4759         * lib/unictype/pr_ignorable_control.h: Regenerated.
4760         * lib/unictype/pr_lowercase.h: Regenerated.
4761         * lib/unictype/pr_math.h: Regenerated.
4762         * lib/unictype/pr_numeric.h: Regenerated.
4763         * lib/unictype/pr_other_alphabetic.h: Regenerated.
4764         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
4765         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
4766         * lib/unictype/pr_other_id_continue.h: Regenerated.
4767         * lib/unictype/pr_other_lowercase.h: Regenerated.
4768         * lib/unictype/pr_other_math.h: Regenerated.
4769         * lib/unictype/pr_punctuation.h: Regenerated.
4770         * lib/unictype/pr_sentence_terminal.h: Regenerated.
4771         * lib/unictype/pr_soft_dotted.h: Regenerated.
4772         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
4773         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
4774         * lib/unictype/pr_unified_ideograph.h: Regenerated.
4775         * lib/unictype/pr_uppercase.h: Regenerated.
4776         * lib/unictype/pr_xid_continue.h: Regenerated.
4777         * lib/unictype/pr_xid_start.h: Regenerated.
4778         * lib/unictype/pr_zero_width.h: Regenerated.
4779         * lib/unictype/scripts.h: Regenerated.
4780         * lib/unictype/scripts_byname.gperf: Regenerated.
4781         * lib/unictype/sy_java_ident.h: Regenerated.
4782         * lib/unilbrk/lbrkprop1.h: Regenerated.
4783         * lib/unilbrk/lbrkprop2.h: Regenerated.
4784         * tests/unictype/test-categ_C.c: Regenerated.
4785         * tests/unictype/test-categ_Cf.c: Regenerated.
4786         * tests/unictype/test-categ_Cn.c: Regenerated.
4787         * tests/unictype/test-categ_L.c: Regenerated.
4788         * tests/unictype/test-categ_Ll.c: Regenerated.
4789         * tests/unictype/test-categ_Lm.c: Regenerated.
4790         * tests/unictype/test-categ_Lo.c: Regenerated.
4791         * tests/unictype/test-categ_Lu.c: Regenerated.
4792         * tests/unictype/test-categ_M.c: Regenerated.
4793         * tests/unictype/test-categ_Mc.c: Regenerated.
4794         * tests/unictype/test-categ_Me.c: Regenerated.
4795         * tests/unictype/test-categ_Mn.c: Regenerated.
4796         * tests/unictype/test-categ_N.c: Regenerated.
4797         * tests/unictype/test-categ_Nd.c: Regenerated.
4798         * tests/unictype/test-categ_Nl.c: Regenerated.
4799         * tests/unictype/test-categ_No.c: Regenerated.
4800         * tests/unictype/test-categ_P.c: Regenerated.
4801         * tests/unictype/test-categ_Pd.c: Regenerated.
4802         * tests/unictype/test-categ_Pe.c: Regenerated.
4803         * tests/unictype/test-categ_Pf.c: Regenerated.
4804         * tests/unictype/test-categ_Pi.c: Regenerated.
4805         * tests/unictype/test-categ_Po.c: Regenerated.
4806         * tests/unictype/test-categ_Ps.c: Regenerated.
4807         * tests/unictype/test-categ_S.c: Regenerated.
4808         * tests/unictype/test-categ_Sk.c: Regenerated.
4809         * tests/unictype/test-categ_Sm.c: Regenerated.
4810         * tests/unictype/test-categ_So.c: Regenerated.
4811         * tests/unictype/test-ctype_alnum.c: Regenerated.
4812         * tests/unictype/test-ctype_alpha.c: Regenerated.
4813         * tests/unictype/test-ctype_graph.c: Regenerated.
4814         * tests/unictype/test-ctype_lower.c: Regenerated.
4815         * tests/unictype/test-ctype_print.c: Regenerated.
4816         * tests/unictype/test-ctype_punct.c: Regenerated.
4817         * tests/unictype/test-ctype_upper.c: Regenerated.
4818         * tests/unictype/test-decdigit.h: Regenerated.
4819         * tests/unictype/test-digit.h: Regenerated.
4820         * tests/unictype/test-numeric.h: Regenerated.
4821         * tests/unictype/test-pr_alphabetic.c: Regenerated.
4822         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
4823         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
4824         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
4825         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
4826         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
4827         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
4828         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
4829         * tests/unictype/test-pr_combining.c: Regenerated.
4830         * tests/unictype/test-pr_dash.c: Regenerated.
4831         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
4832         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
4833         * tests/unictype/test-pr_deprecated.c: Regenerated.
4834         * tests/unictype/test-pr_diacritic.c: Regenerated.
4835         * tests/unictype/test-pr_extender.c: Regenerated.
4836         * tests/unictype/test-pr_format_control.c: Regenerated.
4837         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
4838         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
4839         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
4840         * tests/unictype/test-pr_id_continue.c: Regenerated.
4841         * tests/unictype/test-pr_id_start.c: Regenerated.
4842         * tests/unictype/test-pr_ideographic.c: Regenerated.
4843         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
4844         * tests/unictype/test-pr_lowercase.c: Regenerated.
4845         * tests/unictype/test-pr_math.c: Regenerated.
4846         * tests/unictype/test-pr_numeric.c: Regenerated.
4847         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
4848         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
4849         Regenerated.
4850         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
4851         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
4852         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
4853         * tests/unictype/test-pr_other_math.c: Regenerated.
4854         * tests/unictype/test-pr_punctuation.c: Regenerated.
4855         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
4856         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
4857         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
4858         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
4859         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
4860         * tests/unictype/test-pr_uppercase.c: Regenerated.
4861         * tests/unictype/test-pr_xid_continue.c: Regenerated.
4862         * tests/unictype/test-pr_xid_start.c: Regenerated.
4863         * tests/unictype/test-pr_zero_width.c: Regenerated.
4864
4865         Update to Unicode 5.1.0.
4866         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
4867         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
4868         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
4869         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
4870         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
4871         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
4872         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
4873         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
4874         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
4875         (nonspacing_table_ind): Update.
4876         * tests/uniwidth/test-uc_width2.sh: Update expected result.
4877
4878         Update to Unicode 5.1.0.
4879         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
4880         code transform.
4881         * lib/uniname/uniname.c (unicode_character_name,
4882         unicode_name_character): Add the range 0x1Fxxx to the code transform.
4883         * lib/uniname/uninames.h: Regenerated.
4884         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
4885
4886 2009-02-07  Bruno Haible  <bruno@clisp.org>
4887
4888         Merge gen-ctype and gen-lbrk into a single program.
4889         * lib/gen-uni-tables.c: New file, incorporating
4890         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
4891         Add directory prefixes to the names of the generated files.
4892         * lib/unictype/gen-ctype.c: Remove file.
4893         * lib/unilbrk/gen-lbrk.c: Remove file.
4894         * modules/gen-uni-tables: New file.
4895         * modules/unictype/gen-ctype: Remove file.
4896         * modules/unilbrk/gen-lbrk: Remove file.
4897
4898 2009-02-07  Bruno Haible  <bruno@clisp.org>
4899
4900         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
4901
4902         New module 'unistr/u32-strcoll'.
4903         * modules/unistr/u32-strcoll: New file.
4904         * lib/unistr/u32-strcoll.c: New file.
4905
4906         New module 'unistr/u16-strcoll'.
4907         * modules/unistr/u16-strcoll: New file.
4908         * lib/unistr/u16-strcoll.c: New file.
4909
4910         New module 'unistr/u8-strcoll'.
4911         * modules/unistr/u8-strcoll: New file.
4912         * lib/unistr/u8-strcoll.c: New file.
4913         * lib/unistr/u-strcoll.h: New file.
4914
4915 2009-02-07  Bruno Haible  <bruno@clisp.org>
4916
4917         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
4918         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4919         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
4920         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
4921         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
4922         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
4923
4924 2009-02-07  Bruno Haible  <bruno@clisp.org>
4925
4926         Make 64-bit clean.
4927         * lib/unictype/gen-ctype.c (output_predicate, output_category,
4928         output_combclass, output_bidi_category, output_decimal_digit,
4929         output_digit, output_numeric, output_mirror, output_scripts,
4930         output_ident_category): Use proper width specifier in format strings.
4931
4932 2009-02-07  Bruno Haible  <bruno@clisp.org>
4933
4934         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
4935         failure behaviour.
4936
4937 2009-02-07  Jim Meyering  <meyering@redhat.com>
4938
4939         regex: avoid compilation failure with upcoming gcc-4.4
4940         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
4941         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
4942         "... error: integer overflow in preprocessor expression".
4943
4944 2009-02-05  Ben Pfaff  <blp@gnu.org>
4945
4946         Fix link errors on Windows when close module is used.
4947         * modules/close: Add $(LIB_CLOSE) to Link section.
4948         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
4949         $(LIB_CLOSE) on Windows.
4950
4951 2009-02-05  Jim Meyering  <meyering@redhat.com>
4952
4953         still avoid unused-parameter warnings, but do it cleanly
4954         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
4955         (get_fs_usage): Cast to void instead.
4956         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
4957         (dev_from_mount_options, read_file_system_list): Cast to void.
4958         Prompted by Bruno Haible.
4959
4960 2009-02-04  Jim Meyering  <meyering@redhat.com>
4961
4962         fsusage.c: correct copyright year
4963         * lib/fsusage.c: Reflect year in which the change is pushed into
4964
4965         avoid misc. warnings
4966         * lib/fsusage.c (UNUSED_PARAM): Define.
4967         (get_fs_usage): Mark parameter "disk" as unused.
4968         * lib/getugroups.c (getgrent): Use "void" in prototype.
4969         * lib/mountlist.c: Mark unused parameters.
4970         (read_file_system_list): Declare a local with "const".
4971         * lib/nanosleep.c (getnow): Declare static.
4972         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
4973
4974         dirfd: set errno upon failure
4975         * lib/dirfd.c: Include <errno.h>.
4976         Set errno to ENOTSUP when returning -1.
4977         * modules/dirfd (Depends-on): Add errno.
4978         Suggested by John Kodis <kodis@comcast.net>.
4979
4980 2009-02-01  Bruno Haible  <bruno@clisp.org>
4981
4982         Don't assume sizeof (long) >= sizeof (void *).
4983         * lib/memcmp.c: Include stdint.h.
4984         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
4985         srcp2 to 'const byte *'.
4986         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
4987         types to uintptr_t.
4988         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
4989         * modules/memcmp (Depends-on): Add stdint.
4990         Reported by Ozkan Sezer <sezeroz@gmail.com>.
4991
4992 2009-01-30  Eric Blake  <ebb9@byu.net>
4993
4994         fix more require-before-expand issues
4995         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
4996         expand, AC_PROG_AWK.
4997         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
4998
4999 2009-01-28  Eric Blake  <ebb9@byu.net>
5000
5001         version-etc: use consistent URL formatting
5002         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
5003         Improve formatting.  Use fputs for string without %.
5004
5005 2009-01-28  Jim Meyering  <meyering@redhat.com>
5006
5007         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
5008         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
5009         "underquoted definition of NAME" from autoconf-2.59.
5010
5011 2009-01-28  Bruno Haible  <bruno@clisp.org>
5012
5013         * doc/gnulib.texi: Add "Obsolete modules" to index.
5014
5015 2009-01-28  Jim Meyering  <meyering@redhat.com>
5016
5017         useless-if-before-free: recognize more variants
5018         * build-aux/useless-if-before-free: Also recognize e.g.,
5019         if (NULL != p) free (p);
5020
5021 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
5022
5023         test-getaddrinfo: skip (don't fail) this test when there's no network
5024         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
5025         on the presumption that it means you lack network access.
5026
5027 2009-01-26  Jim Meyering  <meyering@redhat.com>
5028
5029         fflush: avoid warnings on modern systems
5030         * lib/fflush.c (rpl_fflush): Move declarations of locals,
5031         pos and result, into scopes where they're used.
5032
5033 2009-01-26  Eric Blake  <ebb9@byu.net>
5034
5035         Silence warning reintroduced by recent extensions patch.
5036         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
5037         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
5038         autoconf.
5039
5040         Backport improved autoconf semantics of AC_DEFUN_ONCE.
5041         * m4/00gnulib.m4: New file.
5042         * gnulib-tool (func_get_filelist): Always use it.
5043         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
5044         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
5045
5046 2009-01-25  Bruno Haible  <bruno@clisp.org>
5047
5048         Make test-quotearg work on MacOS X and AIX.
5049         * tests/test-quotearg.sh: New file.
5050         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
5051         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
5052         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
5053         include <libintl.h>.
5054         (fake_locale): Remove variable.
5055         (gettext, dgettext, dcgettext): Remove functions.
5056         (main): Instead of setting a fake locale, set a real locale. Call
5057         textdomain and bindtextdomain.
5058         * modules/quotearg-tests (Files): Add the new files.
5059         (Depends-on): Add gettext, setenv, unsetenv.
5060         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5061         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
5062         Augment TESTS_ENVIRONMENT.
5063
5064 2009-01-25  Bruno Haible  <bruno@clisp.org>
5065
5066         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
5067         fr_FR.ISO8859-1 locale on MacOS X.
5068         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
5069         ja_JP.eucJP locale on MacOS X.
5070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
5071         zh_CN.GB18030 locale on MacOS X.
5072
5073 2009-01-25  Bruno Haible  <bruno@clisp.org>
5074
5075         Avoid link errors on MacOS X 10.3.
5076         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
5077         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
5078
5079 2009-01-25  Bruno Haible  <bruno@clisp.org>
5080
5081         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5082         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
5083         * modules/pipe (Files): Remove m4/posix_spawn.m4.
5084         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5085         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
5086         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5087         posix_spawnattr_init, posix_spawnattr_setsigmask,
5088         posix_spawnattr_setflags, posix_spawnattr_destroy.
5089
5090         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5091         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
5092         * modules/execute (Files): Remove m4/posix_spawn.m4.
5093         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5094         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5095         posix_spawnattr_init, posix_spawnattr_setsigmask,
5096         posix_spawnattr_setflags, posix_spawnattr_destroy.
5097
5098 2009-01-25  Bruno Haible  <bruno@clisp.org>
5099
5100         * lib/glthread/threadlib.c: Include <stdlib.h>.
5101
5102 2009-01-25  Bruno Haible  <bruno@clisp.org>
5103
5104         * lib/glthread/threadlib.c (dummy): New declaration.
5105
5106 2009-01-25  Bruno Haible  <bruno@clisp.org>
5107
5108         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
5109         multibyte characters also for the GB18030 encoding. Don't crash when
5110         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
5111
5112 2009-01-25  Bruno Haible  <bruno@clisp.org>
5113
5114         Avoid redefining 'struct random_data' on OSF/1 5.1.
5115         * lib/stdlib.in.h: Include <random.h> if it exists.
5116         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
5117         HAVE_RANDOM_H. Include <random.h> when testing whether
5118         'struct random_data' exists.
5119         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
5120
5121 2009-01-25  Bruno Haible  <bruno@clisp.org>
5122
5123         Don't install charset.alias on MacOS X >= 10.3.
5124         * lib/localcharset.c (DARWIN7): New macro.
5125         (get_charset_aliases): Hardcode the result for Darwin7.
5126         * modules/localcharset (install-exec-local): Don't install
5127         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
5128
5129 2009-01-25  Bruno Haible  <bruno@clisp.org>
5130
5131         Don't install charset.alias on mingw and Cygwin.
5132         * modules/localcharset (install-exec-local): Don't install
5133         charset.alias on mingw and Cygwin, if the file does not yet exist.
5134         The result for these platforms is hardcoded in localcharset.c.
5135
5136 2009-01-25  Bruno Haible  <bruno@clisp.org>
5137
5138         Make it possible again to use AC_GNU_SOURCE together with gnulib.
5139         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
5140         before requiring AC_USE_SYSTEM_EXTENSIONS.
5141
5142 2009-01-25  Jim Meyering  <meyering@redhat.com>
5143
5144         c-strtod: avoid warnings
5145         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
5146         "assignment discards qualifiers from pointer target type" warnings.
5147
5148 2009-01-24  Bruno Haible  <bruno@clisp.org>
5149
5150         Add support for non-UTF-8 locales on MacOS X.
5151         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
5152         canonical encodings. For Darwin 7 and newer, don't map traditional
5153         encodings to UTF-8.
5154         Reported by Vincent Lefevre <vincent@vinc17.org>
5155         at <http://savannah.gnu.org/bugs/?25235>.
5156
5157 2009-01-24  Bruno Haible  <bruno@clisp.org>
5158
5159         * doc/gnulib.texi (Obsolete modules): New section.
5160         Reported by Mike Frysinger <vapier@gentoo.org>.
5161
5162 2009-01-24  Bruno Haible  <bruno@clisp.org>
5163
5164         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
5165         (%.dvi): New rule.
5166
5167 2009-01-24  Bruno Haible  <bruno@clisp.org>
5168
5169         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
5170         Reported by Eric Blake.
5171
5172 2009-01-24  Bruno Haible  <bruno@clisp.org>
5173
5174         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
5175         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
5176         Reported by Gary V. Vaughan <gary@gnu.org>.
5177
5178 2009-01-24  Bruno Haible  <bruno@clisp.org>
5179
5180         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
5181
5182 2009-01-23  Bruno Haible  <bruno@clisp.org>
5183
5184         Make c-strtod, c-strtold usable in libraries.
5185         * lib/c-strtod.c: Include string.h instead of xalloc.h.
5186         (C_STRTOD): Call strdup instead of xstrdup.
5187         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
5188         * modules/c-strtold (Depends-on): Likewise.
5189         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
5190         * NEWS: Mention the change.
5191         Reported by Michael Gold <mgold@ncf.ca>.
5192
5193 2009-01-23  Jim Meyering  <meyering@redhat.com>
5194
5195         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
5196         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
5197         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
5198
5199 2009-01-23  Simon Josefsson  <simon@josefsson.org>
5200
5201         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
5202         GNU CoreUtils.
5203         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
5204         * modules/version-etc (Description): Update.
5205
5206 2009-01-22  Bruno Haible  <bruno@clisp.org>
5207
5208         Cache the C locale object.
5209         * lib/c-strtod.c (c_locale_cache): New variable.
5210         (c_locale): New function.
5211         (C_STRTOD): Use it, and don't call freelocale.
5212         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
5213         Suggested by Paolo Bonzini.
5214
5215 2009-01-21  Bruno Haible  <bruno@clisp.org>
5216
5217         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
5218         conditions other than overflow.
5219
5220 2009-01-21  Bruno Haible  <bruno@clisp.org>
5221
5222         * lib/c-strtod.c: Include errno.h.
5223         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
5224         value from STRTOD_L and STRTOD.
5225
5226 2009-01-21  Bruno Haible  <bruno@clisp.org>
5227         and Jim Meyering  <meyering@redhat.com>
5228
5229         nanosleep: skip configure test (fail it) for apple universal builds
5230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
5231         universal builds, assume that nanosleep does not work.
5232         * modules/nanosleep (Depends-on): Add multiarch.
5233
5234         mktime: skip configure test (fail it) for apple universal builds
5235         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
5236         universal builds, assume that mktime does not work.
5237         * modules/mktime (Depends-on): Add multiarch.
5238
5239 2009-01-21  Eric Blake  <ebb9@byu.net>
5240
5241         multiarch: avoid expand-before-require warning
5242         * modules/multiarch (configure.ac): Require, rather than expand,
5243         gl_MULTIARCH.
5244         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
5245         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
5246         enforce that all clients require it.  Partial reversion of
5247         2008-12-29 patch.
5248
5249         error: avoid expand-before-require warning
5250         * modules/errno (configure.ac): Require, rather than expand,
5251         gl_HEADER_ERRNO_H.
5252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
5253         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
5254         enforce that all clients require it.
5255
5256         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
5257         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
5258         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
5259         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
5260
5261 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
5262
5263         Revert:
5264         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5265
5266         regex: do not depend on obsolete modules.
5267         * modules/regex: Remove memcmp and memmove.
5268
5269 2009-01-20  Bruno Haible  <bruno@clisp.org>
5270
5271         Make the 'link' module link on Windows NT 4.
5272         * lib/link.c (_WIN32_WINNT): Don't define.
5273         (CreateHardLinkFuncType): New type.
5274         (CreateHardLinkFunc, initialized): New variables.
5275         (initialize): New function.
5276         (link): Invoke CreateHardLink indirectly through the function pointer.
5277
5278 2009-01-20  Bruno Haible  <bruno@clisp.org>
5279
5280         Fix compilation failure on mingw.
5281         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
5282
5283 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
5284
5285         * doc/c-strtod.texi: Mention a couple of restrictions.
5286
5287 2009-01-20  Jim Meyering  <meyering@redhat.com>
5288
5289         gettimeofday: move more declarations out of functions
5290         * lib/gettimeofday.c: Move extern declarations of tzset and
5291         gmtime out of containing functions.  Prompted by Bruno Haible.
5292
5293 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5294
5295         regex: do not depend on obsolete modules.
5296         * modules/regex: Remove memcmp and memmove.
5297
5298 2009-01-19  Bruno Haible  <bruno@clisp.org>
5299
5300         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5301         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
5302         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5303         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
5304         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
5305
5306 2009-01-19  Bruno Haible  <bruno@clisp.org>
5307
5308         * tests/test-link.c: Include <errno.h>.
5309         (main): Exit with code 77 when a hard link cannot be created due to
5310         the file system.
5311         * tests/test-link.sh: Skip test when a hard link cannot be created due
5312         to the file system.
5313         Suggested by Eric Blake.
5314
5315 2009-01-19  Martin Lambers  <marlam@marlam.de>
5316
5317         * modules/link-tests: New file.
5318         * tests/test-link.sh: New file.
5319         * tests/test-link.c: New file.
5320
5321 2009-01-19  Eric Blake  <ebb9@byu.net>
5322
5323         doc: mention another function added in cygwin 1.7.0
5324         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
5325         Another new function in cygwin 1.7.
5326
5327 2009-01-19  Bruno Haible  <bruno@clisp.org>
5328
5329         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5330         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
5331         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
5332         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5333         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5334         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
5335         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5336         * m4/md4.m4 (gl_MD4): Likewise.
5337         * m4/md5.m4 (gl_MD5): Likewise.
5338         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
5339         * m4/sha1.m4 (gl_SHA1): Likewise.
5340         * m4/sha256.m4 (gl_SHA256): Likewise.
5341         * m4/sha512.m4 (gl_SHA512): Likewise.
5342
5343 2009-01-19  Bruno Haible  <bruno@clisp.org>
5344
5345         * modules/uniname/uniname-tests (Depends-on): Add progname.
5346         * tests/uniname/test-uninames.c: Include progname.h.
5347         (main): Call set_program_name.
5348
5349         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
5350         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
5351         (main): Call set_program_name.
5352
5353         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
5354         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
5355         (main): Call set_program_name.
5356
5357         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
5358         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
5359         (main): Call set_program_name.
5360
5361         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
5362         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
5363         (main): Call set_program_name.
5364
5365         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
5366         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
5367         (main): Call set_program_name.
5368
5369         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
5370         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
5371         (main): Call set_program_name.
5372
5373         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
5374         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
5375         (main): Call set_program_name.
5376
5377         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
5378         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
5379         (main): Call set_program_name.
5380
5381 2009-01-19  Eric Blake  <ebb9@byu.net>
5382
5383         test-unistd: test previous patch
5384         * tests/test-unistd.c: Test *_FILENO macros.
5385
5386         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
5387         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5388         Guarantee a definition.
5389         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
5390         * modules/unistd-safer (Depends-on): Add dependency on unistd.
5391         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
5392         * lib/dup-safer.c (STDERR_FILENO): Likewise.
5393         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5394         Likewise.
5395         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
5396         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
5397         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5398         Likewise.
5399         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
5400         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
5401         (STDERR_FILENO): Likewise.
5402         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
5403         (STDERR_FILENO): Likewise.
5404         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
5405         (STDERR_FILENO): Likewise.
5406         Reported by Elbert Pol.
5407
5408 2009-01-19  Eric Blake  <ebb9@byu.net>
5409
5410         doc: mention more functions added in cygwin 1.7.0
5411         * doc/posix-functions/abort.texi (abort): Update wording related
5412         to cygwin.
5413         * doc/posix-functions/daylight.texi (daylight): Likewise.
5414         * doc/posix-functions/optarg.texi (optarg): Likewise.
5415         * doc/posix-functions/optarg.texi (opterr): Likewise.
5416         * doc/posix-functions/optarg.texi (optind): Likewise.
5417         * doc/posix-functions/optarg.texi (optopt): Likewise.
5418         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
5419         worked in 1.5.x, and was withdrawn in 1.7.
5420         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5421         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
5422         cygwin versions.
5423         * doc/posix-functions/perror.texi (perror): Likewise.
5424         * doc/posix-functions/printf.texi (printf): Likewise.
5425         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
5426         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
5427         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5428         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5429         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5430         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
5431         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
5432         Likewise.
5433         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
5434         Likewise.
5435         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
5436         this function.
5437         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
5438         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
5439         Likewise.
5440         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
5441         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
5442         * doc/posix-functions/confstr.texi (confstr): Likewise.
5443         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
5444         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
5445         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
5446         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
5447         * doc/posix-functions/fputws.texi (fputws): Likewise.
5448         * doc/posix-functions/fwide.texi (fwide): Likewise.
5449         * doc/posix-functions/getwc.texi (getwc): Likewise.
5450         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
5451         * doc/posix-functions/putwc.texi (putwc): Likewise.
5452         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5453         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
5454         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
5455         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5456         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
5457         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
5458         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
5459         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
5460         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
5461         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
5462         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
5463
5464 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
5465
5466         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
5467         * lib/ioctl.c: Include <sys/ioctl.h>.
5468
5469 2009-01-19  Simon Josefsson  <simon@josefsson.org>
5470
5471         * modules/getdate-tests (Depends-on): Add progname.
5472         * tests/test-getdate.c: Use progname module, to avoid link errors
5473         on non-glibc systems.
5474
5475 2009-01-18  Simon Josefsson  <simon@josefsson.org>
5476
5477         * modules/filenamecat-tests (Depends-on): Add progname.
5478         * modules/fstrcmp-tests (Depends-on): Likewise.
5479
5480         * tests/test-filenamecat.c: Use progname module, to avoid link
5481         errors on non-glibc systems.
5482         * tests/test-fstrcmp.c: Likewise.
5483
5484 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
5485
5486         gettimeofday: avoid warning: nested extern declaration of 'localtime'
5487         * lib/gettimeofday.c: Move extern declaration out of function.
5488
5489 2009-01-18  Bruno Haible  <bruno@clisp.org>
5490
5491         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
5492         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
5493         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
5494
5495 2009-01-18  Bruno Haible  <bruno@clisp.org>
5496
5497         * lib/strftime.c (MEMPCPY): Remove unused macro.
5498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
5499
5500 2009-01-18  Martin Lambers  <marlam@marlam.de>
5501
5502         New module 'link'.
5503         * lib/unistd.in.h (link): New declaration.
5504         * lib/link.c: New file.
5505         * m4/link.m4: New file.
5506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
5507         HAVE_LINK.
5508         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
5509         * modules/link: New file.
5510         * doc/posix-functions/link.texi: Mention the new module.
5511
5512 2009-01-18  Bruno Haible  <bruno@clisp.org>
5513
5514         * tests/test-avltree_list.c (main): Call set_program_name.
5515         * tests/test-avltree_oset.c (main): Likewise.
5516         * tests/test-obstack-printf.c: Include progname.h.
5517         (main): Call set_program_name.
5518         * tests/test-quotearg.c: Include progname.h.
5519         (main): Call set_program_name.
5520         * tests/test-xmemdup0.c: Include progname.h.
5521         (main): Call set_program_name.
5522
5523 2009-01-18  Bruno Haible  <bruno@clisp.org>
5524
5525         New module 'alphasort'.
5526         * lib/dirent.in.h (alphasort): New declaration.
5527         * lib/alphasort.c: New file, from glibc with modifications.
5528         * m4/alphasort.m4: New file.
5529         * modules/alphasort: New file.
5530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
5531         HAVE_ALPHASORT.
5532         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
5533         HAVE_ALPHASORT.
5534         * doc/posix-functions/alphasort.texi: Mention the new module and the
5535         portability problems.
5536
5537 2009-01-18  Bruno Haible  <bruno@clisp.org>
5538
5539         New module 'scandir'.
5540         * lib/dirent.in.h (scandir): New declaration.
5541         * lib/scandir.c: New file, from glibc with modifications.
5542         * m4/scandir.m4: New file.
5543         * modules/scandir: New file.
5544         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
5545         HAVE_SCANDIR.
5546         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
5547         HAVE_SCANDIR.
5548         * doc/posix-functions/scandir.texi: Mention the new module and the
5549         portability problems.
5550
5551 2009-01-17  Bruno Haible  <bruno@clisp.org>
5552
5553         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
5554         Update documentation.
5555         (func_remove_suffix): Escape all dots in the suffix. Update
5556         documentation.
5557         (func_filter_filelist): Update documentation.
5558         Reported by Ralf Wildenhues.
5559
5560 2009-01-17  Bruno Haible  <bruno@clisp.org>
5561
5562         * modules/dprintf-posix-tests: New file.
5563         * tests/test-dprintf-posix.sh: New file.
5564         * tests/test-dprintf-posix.c: New file.
5565
5566         New modules 'dprintf', 'dprintf-posix'.
5567         * lib/stdio.in.h (dprintf): New declaration.
5568         * lib/dprintf.c: New file.
5569         * m4/dprintf.m4: New file.
5570         * m4/dprintf-posix.m4: New file.
5571         * modules/dprintf: New file.
5572         * modules/dprintf-posix: New file.
5573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
5574         HAVE_DPRINTF, REPLACE_DPRINTF.
5575         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
5576         HAVE_DPRINTF, REPLACE_DPRINTF.
5577         * doc/posix-functions/dprintf.texi: Mention the new modules.
5578
5579 2009-01-17  Bruno Haible  <bruno@clisp.org>
5580
5581         * modules/vdprintf-posix-tests: New file.
5582         * tests/test-vdprintf-posix.sh: New file.
5583         * tests/test-vdprintf-posix.c: New file.
5584
5585         New modules 'vdprintf', 'vdprintf-posix'.
5586         * lib/stdio.in.h (vdprintf): New declaration.
5587         * lib/vdprintf.c: New file.
5588         * m4/vdprintf.m4: New file.
5589         * m4/vdprintf-posix.m4: New file.
5590         * modules/vdprintf: New file.
5591         * modules/vdprintf-posix: New file.
5592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
5593         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5594         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
5595         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5596         * doc/posix-functions/vdprintf.texi: Mention the new modules.
5597
5598 2009-01-17  Bruno Haible  <bruno@clisp.org>
5599
5600         Fix replacement of fopen on mingw.
5601         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
5602         mingw.
5603
5604 2009-01-17  Bruno Haible  <bruno@clisp.org>
5605
5606         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
5607         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
5608
5609 2009-01-17  Bruno Haible  <bruno@clisp.org>
5610
5611         Avoid test-fflush2.sh failure on mingw.
5612         * tests/test-fflush2.c: Include binary-io.h.
5613         (main): Put standard input into binary mode.
5614         * modules/fflush-tests (Depends-on): Add binary-io.
5615
5616 2009-01-17  Bruno Haible  <bruno@clisp.org>
5617
5618         * lib/wchar.in.h: In another particular situation, include only the
5619         system's <wchar.h> file.
5620         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
5621         Reported by Albert Chin-A-Young <china@thewrittenword.com>
5622         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
5623
5624 2009-01-17  Bruno Haible  <bruno@clisp.org>
5625
5626         Support for stripping executables in --enable-relocatable.
5627         * build-aux/install-reloc: Expect one more argument, or an environment
5628         variable RELOC_STRIP_PROG. If set, strip the destination program and
5629         its wrapper.
5630         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
5631         RELOC_STRIP_PROG.
5632         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
5633         to set RELOCATABLE_STRIP.
5634         * NEWS: Mention the new Makefile requirement.
5635
5636 2009-01-17  Bruno Haible  <bruno@clisp.org>
5637
5638         * build-aux/install-reloc: Remove debugging information left over by
5639         C compiler on MacOS X.
5640
5641 2009-01-17  Bruno Haible  <bruno@clisp.org>
5642
5643         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
5644         * lib/progreloc.c (find_executable): Fix type of pointer passed to
5645         _NSGetExecutablePath.
5646
5647 2009-01-16  Jim Meyering  <meyering@redhat.com>
5648
5649         strerror: avoid warnings about discarding "const"
5650         * lib/strerror.c (rpl_strerror): Instead of returning a const
5651         string from each and every "case", use a variable, and add a single
5652         cast after the switch.
5653
5654 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
5655
5656         * lib/arpa_inet.in.h: Add extern "C" block for C++.
5657
5658 2009-01-16  Bruno Haible  <bruno@clisp.org>
5659
5660         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
5661         array initializer syntax that also works in C++ mode.
5662         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5663
5664 2009-01-16  Jim Meyering  <meyering@redhat.com>
5665
5666         poll: suppress a warning
5667         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
5668         to ignore "...unsigned expression < 0 is always false" warnings.
5669
5670 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
5671
5672         poll: remove declarations of unused variables
5673         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
5674         sockbuf and optlen.
5675
5676 2009-01-15  Bruno Haible  <bruno@clisp.org>
5677
5678         Make fflush-after-ungetc POSIX compliant on BSD systems.
5679         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
5680         (clear_ungetc_buffer): Implement also for other systems.
5681         (rpl_fflush): On glibc systems, invoke
5682         clear_ungetc_buffer_preserving_position. Otherwise, invoke
5683         clear_ungetc_buffer after fetching the stream's position, not before.
5684
5685 2009-01-15  Bruno Haible  <bruno@clisp.org>
5686
5687         Make fflush-after-ungetc POSIX compliant on glibc systems.
5688         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
5689         after ungetc.
5690         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
5691         (rpl_fflush): On glibc systems, simply call the system's fflush
5692         function after clearing the ungetc buffer.
5693         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
5694         Instead, lseek only to the end of file, then use the system's fseeko
5695         for the rest. On glibc systems, reset the EOF indicator bit.
5696
5697 2009-01-15  Jim Meyering  <meyering@redhat.com>
5698
5699         openmp.m4: revert quote-adding change, for portability to older autoconf
5700         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
5701         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
5702         Simon Josefsson noticed the problem when using autoconf-2.61.
5703
5704 2009-01-15  Bruno Haible  <bruno@clisp.org>
5705
5706         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
5707         * tests/test-fflush2.c (ASSERT): Always fail.
5708         (main): Add two tests for fflush() after ungetc(), taking into account
5709         the Austin Group's clarification.
5710         Suggested by Eric Blake.
5711
5712 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
5713
5714         mktime.m4: remove K&R-style function prototypes
5715         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
5716         for the Sun C++ compiler.
5717
5718 2009-01-14  Bruno Haible  <bruno@clisp.org>
5719
5720         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
5721         while including <wchar.h>.
5722         * lib/wchar.in.h: In two particular situations on HP-UX, include only
5723         the system's <wchar.h> file.
5724         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5725
5726 2009-01-14  Bruno Haible  <bruno@clisp.org>
5727
5728         * m4/csharp.m4: Don't mention gettext on the serial number line.
5729         * m4/csharpexec.m4: Likewise.
5730         * m4/eaccess.m4: Likewise.
5731         * m4/javaexec.m4: Likewise.
5732         * m4/sig_atomic_t.m4: Likewise.
5733         * m4/tmpdir.m4: Likewise.
5734         * m4/intldir.m4: Bump gettext version.
5735         * m4/lib-ld.m4: Likewise.
5736
5737 2009-01-14  Bruno Haible  <bruno@clisp.org>
5738
5739         * lib/progname.c (set_program_name): Add more comments.
5740         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5741
5742 2009-01-14  Simon Josefsson  <simon@josefsson.org>
5743
5744         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
5745         were sys/stat.h does not define it.
5746
5747 2009-01-14  Jim Meyering  <meyering@redhat.com>
5748
5749         many *.m4 files: improve m4 quoting
5750         99% of this change was performed by running the following commands:
5751         git ls-files | grep '\.m4$' | xargs perl -pi \
5752           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
5753           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5754           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5755           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
5756         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
5757         The remainder were to add Copyright dates, increment serial numbers,
5758         undo some changes in comments, exclude m4/intl.m4, and add quotes
5759         around the "1" in ",1" where the unusual spacing prohibited the
5760         above regexps from doing the job.  For more details, see
5761         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
5762         * m4/acl.m4: Modified.
5763         * m4/afs.m4: Likewise.
5764         * m4/alloca.m4: Likewise.
5765         * m4/argp.m4: Likewise.
5766         * m4/argz.m4: Likewise.
5767         * m4/atexit.m4: Likewise.
5768         * m4/bison-i18n.m4: Likewise.
5769         * m4/bison.m4: Likewise.
5770         * m4/byteswap.m4: Likewise.
5771         * m4/c-stack.m4: Likewise.
5772         * m4/c-strtod.m4: Likewise.
5773         * m4/calloc.m4: Likewise.
5774         * m4/canonicalize-lgpl.m4: Likewise.
5775         * m4/chown.m4: Likewise.
5776         * m4/clock_time.m4: Likewise.
5777         * m4/codeset.m4: Likewise.
5778         * m4/copy-file.m4: Likewise.
5779         * m4/csharp.m4: Likewise.
5780         * m4/csharpcomp.m4: Likewise.
5781         * m4/csharpexec.m4: Likewise.
5782         * m4/d-ino.m4: Likewise.
5783         * m4/d-type.m4: Likewise.
5784         * m4/dirfd.m4: Likewise.
5785         * m4/double-slash-root.m4: Likewise.
5786         * m4/eaccess.m4: Likewise.
5787         * m4/eealloc.m4: Likewise.
5788         * m4/environ.m4: Likewise.
5789         * m4/errno_h.m4: Likewise.
5790         * m4/euidaccess.m4: Likewise.
5791         * m4/execute.m4: Likewise.
5792         * m4/fatal-signal.m4: Likewise.
5793         * m4/fchdir.m4: Likewise.
5794         * m4/fcntl_h.m4: Likewise.
5795         * m4/fileblocks.m4: Likewise.
5796         * m4/filenamecat.m4: Likewise.
5797         * m4/findprog.m4: Likewise.
5798         * m4/flexmember.m4: Likewise.
5799         * m4/fnmatch.m4: Likewise.
5800         * m4/fopen.m4: Likewise.
5801         * m4/fpending.m4: Likewise.
5802         * m4/fprintf-posix.m4: Likewise.
5803         * m4/free.m4: Likewise.
5804         * m4/frexp.m4: Likewise.
5805         * m4/frexpl.m4: Likewise.
5806         * m4/fsusage.m4: Likewise.
5807         * m4/ftruncate.m4: Likewise.
5808         * m4/gc-camellia.m4: Likewise.
5809         * m4/gc-random.m4: Likewise.
5810         * m4/gc.m4: Likewise.
5811         * m4/getaddrinfo.m4: Likewise.
5812         * m4/getcwd-abort-bug.m4: Likewise.
5813         * m4/getcwd-path-max.m4: Likewise.
5814         * m4/getdate.m4: Likewise.
5815         * m4/getdomainname.m4: Likewise.
5816         * m4/getgroups.m4: Likewise.
5817         * m4/gethostname.m4: Likewise.
5818         * m4/gethrxtime.m4: Likewise.
5819         * m4/getline.m4: Likewise.
5820         * m4/getloadavg.m4: Likewise.
5821         * m4/getndelim2.m4: Likewise.
5822         * m4/getpass.m4: Likewise.
5823         * m4/gettext.m4: Likewise.
5824         * m4/gettime.m4: Likewise.
5825         * m4/gettimeofday.m4: Likewise.
5826         * m4/gnulib-common.m4: Likewise.
5827         * m4/group-member.m4: Likewise.
5828         * m4/host-os.m4: Likewise.
5829         * m4/iconv.m4: Likewise.
5830         * m4/iconv_open.m4: Likewise.
5831         * m4/inet_ntop.m4: Likewise.
5832         * m4/inet_pton.m4: Likewise.
5833         * m4/inline.m4: Likewise.
5834         * m4/intldir.m4: Likewise.
5835         * m4/intlmacosx.m4: Likewise.
5836         * m4/intmax.m4: Likewise.
5837         * m4/intmax_t.m4: Likewise.
5838         * m4/inttypes.m4: Likewise.
5839         * m4/inttypes_h.m4: Likewise.
5840         * m4/inttypes-pri.m4: Likewise.
5841         * m4/isapipe.m4: Likewise.
5842         * m4/isnand.m4: Likewise.
5843         * m4/isnanf.m4: Likewise.
5844         * m4/isnanl.m4: Likewise.
5845         * m4/javacomp.m4: Likewise.
5846         * m4/javaexec.m4: Likewise.
5847         * m4/jm-winsz1.m4: Likewise.
5848         * m4/jm-winsz2.m4: Likewise.
5849         * m4/lchown.m4: Likewise.
5850         * m4/lcmessage.m4: Likewise.
5851         * m4/ldexpl.m4: Likewise.
5852         * m4/lib-ld.m4: Likewise.
5853         * m4/lib-link.m4: Likewise.
5854         * m4/libsigsegv.m4: Likewise.
5855         * m4/link-follow.m4: Likewise.
5856         * m4/localcharset.m4: Likewise.
5857         * m4/locale-fr.m4: Likewise.
5858         * m4/locale-ja.m4: Likewise.
5859         * m4/locale-tr.m4: Likewise.
5860         * m4/locale-zh.m4: Likewise.
5861         * m4/lock.m4: Likewise.
5862         * m4/longlong.m4: Likewise.
5863         * m4/ls-mntd-fs.m4: Likewise.
5864         * m4/lstat.m4: Likewise.
5865         * m4/malloc.m4: Likewise.
5866         * m4/mathl.m4: Likewise.
5867         * m4/mbrtowc.m4: Likewise.
5868         * m4/mbstate_t.m4: Likewise.
5869         * m4/mbswidth.m4: Likewise.
5870         * m4/memchr.m4: Likewise.
5871         * m4/memcmp.m4: Likewise.
5872         * m4/memcpy.m4: Likewise.
5873         * m4/memmem.m4: Likewise.
5874         * m4/memmove.m4: Likewise.
5875         * m4/mempcpy.m4: Likewise.
5876         * m4/memrchr.m4: Likewise.
5877         * m4/memset.m4: Likewise.
5878         * m4/minmax.m4: Likewise.
5879         * m4/mkdir-slash.m4: Likewise.
5880         * m4/mkdtemp.m4: Likewise.
5881         * m4/mktime.m4: Likewise.
5882         * m4/mmap-anon.m4: Likewise.
5883         * m4/mountlist.m4: Likewise.
5884         * m4/nanosleep.m4: Likewise.
5885         * m4/nls.m4: Likewise.
5886         * m4/nocrash.m4: Likewise.
5887         * m4/open.m4: Likewise.
5888         * m4/openat.m4: Likewise.
5889         * m4/openmp.m4: Likewise.
5890         * m4/pathmax.m4: Likewise.
5891         * m4/perl.m4: Likewise.
5892         * m4/physmem.m4: Likewise.
5893         * m4/pipe.m4: Likewise.
5894         * m4/po.m4: Likewise.
5895         * m4/poll.m4: Likewise.
5896         * m4/posixtm.m4: Likewise.
5897         * m4/posixver.m4: Likewise.
5898         * m4/printf-frexp.m4: Likewise.
5899         * m4/printf-frexpl.m4: Likewise.
5900         * m4/printf-posix.m4: Likewise.
5901         * m4/printf-posix-rpl.m4: Likewise.
5902         * m4/printf.m4: Likewise.
5903         * m4/progtest.m4: Likewise.
5904         * m4/putenv.m4: Likewise.
5905         * m4/readline.m4: Likewise.
5906         * m4/readlink.m4: Likewise.
5907         * m4/readutmp.m4: Likewise.
5908         * m4/realloc.m4: Likewise.
5909         * m4/regex.m4: Likewise.
5910         * m4/relocatable.m4: Likewise.
5911         * m4/relocatable-lib.m4: Likewise.
5912         * m4/rename-dest-slash.m4: Likewise.
5913         * m4/rename.m4: Likewise.
5914         * m4/rmdir-errno.m4: Likewise.
5915         * m4/rmdir.m4: Likewise.
5916         * m4/roundf.m4: Likewise.
5917         * m4/roundl.m4: Likewise.
5918         * m4/rpmatch.m4: Likewise.
5919         * m4/save-cwd.m4: Likewise.
5920         * m4/selinux-selinux-h.m4: Likewise.
5921         * m4/setenv.m4: Likewise.
5922         * m4/settime.m4: Likewise.
5923         * m4/sig2str.m4: Likewise.
5924         * m4/sig_atomic_t.m4: Likewise.
5925         * m4/signalblocking.m4: Likewise.
5926         * m4/signbit.m4: Likewise.
5927         * m4/sigpipe.m4: Likewise.
5928         * m4/sockets.m4: Likewise.
5929         * m4/sockpfaf.m4: Likewise.
5930         * m4/st_dm_mode.m4: Likewise.
5931         * m4/stat-time.m4: Likewise.
5932         * m4/stdbool.m4: Likewise.
5933         * m4/stdint.m4: Likewise.
5934         * m4/stdint_h.m4: Likewise.
5935         * m4/stpcpy.m4: Likewise.
5936         * m4/stpncpy.m4: Likewise.
5937         * m4/strcase.m4: Likewise.
5938         * m4/strchrnul.m4: Likewise.
5939         * m4/strcspn.m4: Likewise.
5940         * m4/strdup.m4: Likewise.
5941         * m4/strftime.m4: Likewise.
5942         * m4/strndup.m4: Likewise.
5943         * m4/strnlen.m4: Likewise.
5944         * m4/strpbrk.m4: Likewise.
5945         * m4/strptime.m4: Likewise.
5946         * m4/strsep.m4: Likewise.
5947         * m4/strtod.m4: Likewise.
5948         * m4/strtoimax.m4: Likewise.
5949         * m4/strtok_r.m4: Likewise.
5950         * m4/strtol.m4: Likewise.
5951         * m4/strtoll.m4: Likewise.
5952         * m4/strtoul.m4: Likewise.
5953         * m4/strtoull.m4: Likewise.
5954         * m4/strtoumax.m4: Likewise.
5955         * m4/strverscmp.m4: Likewise.
5956         * m4/threadlib.m4: Likewise.
5957         * m4/timegm.m4: Likewise.
5958         * m4/tm_gmtoff.m4: Likewise.
5959         * m4/tmpdir.m4: Likewise.
5960         * m4/tmpfile.m4: Likewise.
5961         * m4/tzset.m4: Likewise.
5962         * m4/uintmax_t.m4: Likewise.
5963         * m4/unlinkdir.m4: Likewise.
5964         * m4/unlocked-io.m4: Likewise.
5965         * m4/uptime.m4: Likewise.
5966         * m4/userspec.m4: Likewise.
5967         * m4/utimbuf.m4: Likewise.
5968         * m4/utime.m4: Likewise.
5969         * m4/utimes-null.m4: Likewise.
5970         * m4/utimes.m4: Likewise.
5971         * m4/vararrays.m4: Likewise.
5972         * m4/vasnprintf.m4: Likewise.
5973         * m4/vfprintf-posix.m4: Likewise.
5974         * m4/vprintf-posix.m4: Likewise.
5975         * m4/wait-process.m4: Likewise.
5976         * m4/wchar_t.m4: Likewise.
5977         * m4/wint_t.m4: Likewise.
5978         * m4/write-any-file.m4: Likewise.
5979         * m4/yield.m4: Likewise.
5980
5981 2009-01-13  Bruno Haible  <bruno@clisp.org>
5982
5983         Avoid test-copy-file.sh failures when ACL support insufficient.
5984         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
5985         TESTS_ENVIRONMENT.
5986         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
5987         Reported by Jim Meyering.
5988
5989 2009-01-13  Bruno Haible  <bruno@clisp.org>
5990
5991         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
5992         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
5993         * modules/unistdio/u8-printf-parse (Files): Likewise.
5994         * modules/unistdio/u32-printf-parse (Files): Likewise.
5995         * modules/unistdio/ulc-printf-parse (Files): Likewise.
5996
5997 2009-01-13  Simon Josefsson  <simon@josefsson.org>
5998
5999         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
6000         and m4/inttypes_h.m4 too.
6001
6002 2009-01-12  Eric Blake  <ebb9@byu.net>
6003
6004         tests: IRIX 6.2 cc can't compile -0.0 into .data
6005         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
6006         rather than at compile-time.
6007         * tests/test-floorl.c (minus_zero): Likewise.
6008         * tests/test-frexpl.c (minus_zero): Likewise.
6009         * tests/test-isnan.c (minus_zerol): Likewise.
6010         * tests/test-isnanl.h (minus_zero): Likewise.
6011         * tests/test-ldexpl.c (minus_zero): Likewise.
6012         * tests/test-roundl.c (minus_zero): Likewise.
6013         * tests/test-signbit.c (minus_zerol): Likewise.
6014         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6015         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6016         * tests/test-truncl.c (minus_zero): Likewise.
6017         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6018         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6019         Reported by Tom G. Christensen and Nelson H. F. Beebe.
6020
6021 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6022
6023         regex: fix glibc bug 9697
6024         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
6025         handling.
6026
6027 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6028
6029         regex: fix glibc bug 697
6030         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
6031         being NULL also if there are no backreferences.
6032
6033 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6034
6035         regex: merge glibc changes
6036         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
6037         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
6038         re_string_skip_chars, re_string_reconstruct): Likewise.
6039         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
6040
6041 2009-01-07  Jim Meyering  <meyering@redhat.com>
6042
6043         poll: filter through cppi
6044         * lib/poll.c: Indent cpp directives to reflect nesting.
6045
6046 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
6047
6048         poll: don't return uninitialized
6049         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
6050
6051 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
6052
6053         avoid compile failure on AIX 6.1
6054         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
6055         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
6056
6057 2009-01-04  Jim Meyering  <meyering@redhat.com>
6058
6059         remove duplicate inclusion of <stdio.h>
6060         * tests/test-fprintf-posix.c: Likewise.
6061         * tests/test-printf-posix.c: Likewise.
6062         * tests/test-snprintf-posix.c: Likewise.
6063         * tests/test-sprintf-posix.c: Likewise.
6064         * tests/test-vasprintf-posix.c: Likewise.
6065         * tests/test-vfprintf-posix.c: Likewise.
6066         * tests/test-vprintf-posix.c: Likewise.
6067         * tests/test-vsnprintf-posix.c: Likewise.
6068         * tests/test-vsprintf-posix.c: Likewise.
6069
6070 2009-01-03  Jim Meyering  <meyering@redhat.com>
6071
6072         gnulib-tool: fix sed-based filtering
6073         * gnulib-tool (func_filter_filelist): Remove extra backslash
6074         in sed_fff_filter definition.
6075
6076 2009-01-02  Jim Meyering  <meyering@redhat.com>
6077
6078         strftime: avoid compilation failure on Solaris 2.6
6079         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
6080         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
6081         Don't #define mbrlen or mbsinit, since now they're guaranteed to
6082         be available.  Reported by Tom G. Christensen.  Details in
6083         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
6084
6085 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6086             Bruno Haible  <bruno@clisp.org>
6087
6088         Speed up gnulib-tool by doing more string processing through shell
6089         built-ins.
6090         * gnulib-tool (fast_func_append): New variable.
6091         (func_remove_prefix, func_remove_suffix): New functions.
6092         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
6093         (func_filter_filelist): New function.
6094         (func_get_dependencies): Use func_remove_suffix instead of sed.
6095         (func_get_automake_snippet): Use func_filter_filelist instead of a
6096         subshell and sed invocation.
6097
6098 2009-01-01  Bruno Haible  <bruno@clisp.org>
6099
6100         Fix a security bug.
6101         * gnulib-tool (func_import, import, update): Don't allow the characters
6102         '"', '$', '`', '\' in macro arguments that become part of commands that
6103         are evaluated.
6104
6105 2009-01-01  Bruno Haible  <bruno@clisp.org>
6106
6107         * gnulib-tool (func_reset_sigpipe): Add more comments.
6108
6109 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6110
6111         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
6112         func_emit_tests_Makefile_am, func_import): Abort loops early if we
6113         already know the answer.
6114
6115 2009-01-01  Jim Meyering  <meyering@redhat.com>
6116
6117         * lib/version-etc.c (version_etc_va): Update copyright year.
6118
6119 2008-12-30  Bruno Haible  <bruno@clisp.org>
6120
6121         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
6122         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
6123         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
6124
6125 2008-12-29  Eric Blake  <ebb9@byu.net>
6126
6127         multiarch: avoid autoconf AC_REQUIRE bug
6128         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
6129         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
6130         2.63 and older.
6131         Reported by Bruno Haible, and analyzed in
6132         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
6133
6134 2008-12-29  Bruno Haible  <bruno@clisp.org>
6135
6136         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
6137         files in subdirectories correctly.
6138         Reported by Ralf Wildenhues.
6139
6140 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6141
6142         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
6143         rather than 'join FILE -', for Solaris join.
6144
6145 2008-12-29  Bruno Haible  <bruno@clisp.org>
6146
6147         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
6148         quoting.
6149         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6150         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6151         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6152         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
6153         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6154         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6155         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6156         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6157         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6158         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6159         * m4/nls.m4 (AM_NLS): Likewise.
6160         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
6161         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6162         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6163         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6164         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6165         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6166         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
6167         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6168         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6169         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6170         * m4/xsize.m4 (gl_XSIZE): Likewise.
6171         Suggested by Jim Meyering.
6172
6173 2008-11-17  Bruce Korb  <bkorb@gnu.org>
6174
6175         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
6176         * lib/parse-duration.c: use a switch instead of cascading if's.
6177
6178 2008-12-29  Eric Blake  <ebb9@byu.net>
6179
6180         wchar.h: supply WEOF on Irix 5.3
6181         * lib/wchar.in.h (wint_t): Also supply WEOF.
6182         * lib/wctype.in.h (wint_t): Likewise.
6183         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
6184         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
6185         Reported by Tom G. Christensen.
6186
6187 2008-12-26  Bruno Haible  <bruno@clisp.org>
6188
6189         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
6190         i486, i586, i686.
6191
6192 2008-12-26  Bruno Haible  <bruno@clisp.org>
6193
6194         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
6195
6196 2008-12-26  Bruno Haible  <bruno@clisp.org>
6197
6198         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
6199         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
6200         not __STDC_CONSTANT_MACROS.
6201         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6202
6203 2008-12-25  Bruno Haible  <bruno@clisp.org>
6204
6205         Add support for universal builds to vasnprintf.
6206         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
6207         universal builds, guess no.
6208         * modules/vasnprintf-posix (Depends-on): Add multiarch.
6209         * modules/vasprintf-posix (Depends-on): Likewise.
6210         * modules/fprintf-posix (Depends-on): Likewise.
6211         * modules/vfprintf-posix (Depends-on): Likewise.
6212         * modules/snprintf-posix (Depends-on): Likewise.
6213         * modules/vsnprintf-posix (Depends-on): Likewise.
6214         * modules/sprintf-posix (Depends-on): Likewise.
6215         * modules/vsprintf-posix (Depends-on): Likewise.
6216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6223
6224         Add support for universal builds to <inttypes.h>.
6225         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6226         _SCNu64_PREFIX): In Apple
6227         universal builds, define directly, using _LP64.
6228         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
6229         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
6230         * modules/inttypes (Depends-on): Add multiarch.
6231         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6232
6233         Add support for universal builds to <stdint.h>.
6234         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
6235         universal builds, define directly, using _LP64.
6236         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
6237         Apple universal builds, don't test for the size and suffix of ptrdiff_t
6238         and size_t.
6239         * modules/stdint (Depends-on): Add multiarch.
6240         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6241
6242         New module 'multiarch'.
6243         * modules/multiarch: New file.
6244         * m4/multiarch.m4: New file.
6245
6246 2008-12-25  Bruno Haible  <bruno@clisp.org>
6247
6248         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
6249
6250 2008-12-25  Bruno Haible  <bruno@clisp.org>
6251
6252         * modules/btowc (License): Relicense under LGPLv2+.
6253         * modules/mbsinit (License): Likewise.
6254         * modules/mbrtowc (License): Likewise.
6255         * modules/wcrtomb (License): Likewise.
6256         * modules/streq (License): Likewise.
6257         Reported by David Lutterkort <lutter@redhat.com>.
6258
6259 2008-12-23  Bruno Haible  <bruno@clisp.org>
6260
6261         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
6262
6263 2008-12-23  Bruno Haible  <bruno@clisp.org>
6264
6265         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
6266         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
6267         GETADDRINFO_LIB, not in LIBS.
6268         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
6269         * modules/canon-host (Link): Likewise.
6270         * NEWS: Mention the change.
6271         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
6272         GETADDRINFO_LIB.
6273
6274 2008-12-22  Bruno Haible  <bruno@clisp.org>
6275
6276         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
6277         * doc/posix-functions/iswalpha_l.texi: Likewise.
6278         * doc/posix-functions/iswblank_l.texi: Likewise.
6279         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6280         * doc/posix-functions/iswctype_l.texi: Likewise.
6281         * doc/posix-functions/iswdigit_l.texi: Likewise.
6282         * doc/posix-functions/iswgraph_l.texi: Likewise.
6283         * doc/posix-functions/iswlower_l.texi: Likewise.
6284         * doc/posix-functions/iswprint_l.texi: Likewise.
6285         * doc/posix-functions/iswpunct_l.texi: Likewise.
6286         * doc/posix-functions/iswspace_l.texi: Likewise.
6287         * doc/posix-functions/iswupper_l.texi: Likewise.
6288         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6289         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
6290         * doc/posix-functions/open_wmemstream.texi: Likewise.
6291         * doc/posix-functions/swscanf.texi: Likewise.
6292         * doc/posix-functions/towctrans_l.texi: Likewise.
6293         * doc/posix-functions/towlower.texi: Likewise.
6294         * doc/posix-functions/towlower_l.texi: Likewise.
6295         * doc/posix-functions/towupper.texi: Likewise.
6296         * doc/posix-functions/towupper_l.texi: Likewise.
6297         * doc/posix-functions/vfwprintf.texi: Likewise.
6298         * doc/posix-functions/vfwscanf.texi: Likewise.
6299         * doc/posix-functions/vswscanf.texi: Likewise.
6300         * doc/posix-functions/vwprintf.texi: Likewise.
6301         * doc/posix-functions/vwscanf.texi: Likewise.
6302         * doc/posix-functions/wcpcpy.texi: Likewise.
6303         * doc/posix-functions/wcpncpy.texi: Likewise.
6304         * doc/posix-functions/wcscasecmp.texi: Likewise.
6305         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
6306         * doc/posix-functions/wcscoll_l.texi: Likewise.
6307         * doc/posix-functions/wcsdup.texi: Likewise.
6308         * doc/posix-functions/wcsncasecmp.texi: Likewise.
6309         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
6310         * doc/posix-functions/wcsnlen.texi: Likewise.
6311         * doc/posix-functions/wcsnrtombs.texi: Likewise.
6312         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6313         * doc/posix-functions/wctrans_l.texi: Likewise.
6314         * doc/posix-functions/wctype_l.texi: Likewise.
6315         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
6316         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
6317         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
6318         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
6319         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
6320         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
6321         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
6322         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
6323         * doc/glibc-functions/wcschrnul.texi: Likewise.
6324         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6325         * doc/glibc-functions/wcstod_l.texi: Likewise.
6326         * doc/glibc-functions/wcstof_l.texi: Likewise.
6327         * doc/glibc-functions/wcstol_l.texi: Likewise.
6328         * doc/glibc-functions/wcstold_l.texi: Likewise.
6329         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6330         * doc/glibc-functions/wcstoq.texi: Likewise.
6331         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6332         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6333         * doc/glibc-functions/wcstouq.texi: Likewise.
6334         * doc/glibc-functions/wmempcpy.texi: Likewise.
6335
6336 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
6337             Eric Blake  <ebb9@byu.net>
6338             Paolo Bonzini  <bonzini@gnu.org>
6339             Bruno Haible  <bruno@clisp.org>
6340
6341         Make c-stack work on Haiku.
6342         * lib/c-stack.c (SA_ONSTACK): Define fallback.
6343         (c_stack_action): Use SA_ONSTACK flag.
6344
6345 2008-12-22  Bruno Haible  <bruno@clisp.org>
6346
6347         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
6348
6349 2008-12-22  Bruno Haible  <bruno@clisp.org>
6350
6351         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
6352         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
6353         being overridden.
6354         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
6355         New macros.
6356         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
6357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
6358         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
6359         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
6360
6361 2008-12-22  Bruno Haible  <bruno@clisp.org>
6362
6363         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
6364         from test code.
6365
6366 2008-12-22  Eric Blake  <ebb9@byu.net>
6367
6368         Avoid gcc warnings on cygwin.
6369         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
6370         Avoid unused variable.
6371         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
6372         Likewise.
6373
6374 2008-12-22  Bruno Haible  <bruno@clisp.org>
6375
6376         Remove HAVE_MBRTOWC conditionals.
6377         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
6378         (mbscasecmp): Assume mbrtowc function.
6379         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
6380         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
6381         * lib/mbschr.c: Include mbuiter.h unconditionally.
6382         (mbschr): Assume mbrtowc function.
6383         * lib/mbscspn.c: Include mbuiter.h unconditionally.
6384         (mbscspn): Assume mbrtowc function.
6385         * lib/mbslen.c: Include mbuiter.h unconditionally.
6386         (mbslen): Assume mbrtowc function.
6387         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
6388         (mbsncasecmp): Assume mbrtowc function.
6389         * lib/mbsnlen.c: Include mbiter.h unconditionally.
6390         (mbsnlen): Assume mbrtowc function.
6391         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
6392         (mbspbrk): Assume mbrtowc function.
6393         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
6394         (mbspcasecmp): Assume mbrtowc function.
6395         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
6396         (mbsrchr): Assume mbrtowc function.
6397         * lib/mbssep.c: Include mbuiter.h unconditionally.
6398         (mbssep): Assume mbrtowc function.
6399         * lib/mbsspn.c: Include mbuiter.h unconditionally.
6400         (mbsspn): Assume mbrtowc function.
6401         * lib/mbsstr.c: Include mbuiter.h unconditionally.
6402         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
6403         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
6404         (mbstok_r): Assume mbrtowc function.
6405         * lib/propername.c: Include mbuiter.h unconditionally.
6406         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
6407         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
6408         (trim2): Assume mbrtowc function.
6409         * lib/mbswidth.c (mbsinit): Remove fallback definition.
6410         (mbsnwidth): Assume mbrtowc function.
6411         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
6412         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
6413         fallback definitions.
6414         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
6415
6416 2008-12-22  Bruno Haible  <bruno@clisp.org>
6417
6418         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
6419
6420 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
6421
6422         * modules/regex: Request emulations for the mb*/wc* functions we need.
6423         * m4/regex.m4: Don't look for those functions here.
6424         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
6425
6426 2008-12-22  Bruno Haible  <bruno@clisp.org>
6427
6428         * modules/fnmatch (Depends-on): Remove duplicated dependency.
6429
6430 2008-12-21  Bruno Haible  <bruno@clisp.org>
6431
6432         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
6433         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
6434         (Include): Remove conditionalization.
6435         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
6436         (Include): Remove conditionalization.
6437         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
6438         (Include): Remove conditionalization.
6439         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
6440         * m4/mbfile.m4 (gl_MBFILE): Likewise.
6441         * NEWS: Mention the change.
6442         Reported by Alan Hourihane <alanh@fairlite.co.uk>
6443         via Sergey Poznyakoff <gray@gnu.org.ua>.
6444
6445 2008-12-21  Bruno Haible  <bruno@clisp.org>
6446
6447         * MODULES.html.sh (Extended multibyte and wide character utilities
6448         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
6449         wcrtomb, wcsrtombs.
6450         (Support for systems lacking POSIX:2008): Add accept, bind, close,
6451         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
6452         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
6453         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
6454
6455 2008-12-21  Bruno Haible  <bruno@clisp.org>
6456
6457         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
6458
6459 2008-12-21  Bruno Haible  <bruno@clisp.org>
6460
6461         * modules/wcsnrtombs-tests: New file.
6462         * tests/test-wcsnrtombs1.sh: New file.
6463         * tests/test-wcsnrtombs2.sh: New file.
6464         * tests/test-wcsnrtombs3.sh: New file.
6465         * tests/test-wcsnrtombs4.sh: New file.
6466         * tests/test-wcsnrtombs.c: New file.
6467
6468         New module 'wcsnrtombs'.
6469         * lib/wchar.in.h (wcsnrtombs): New declaration.
6470         * lib/wcsnrtombs.c: New file.
6471         * lib/wcsrtombs-state.c: New file.
6472         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
6473         (internal_state): Remove variable.
6474         * m4/wcsnrtombs.m4: New file.
6475         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
6476         compilation units.
6477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
6478         HAVE_WCSNRTOMBS.
6479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
6480         HAVE_WCSNRTOMBS.
6481         * modules/wcsnrtombs: New file.
6482         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
6483         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6484
6485 2008-12-21  Bruno Haible  <bruno@clisp.org>
6486
6487         * modules/wcsrtombs-tests: New file.
6488         * tests/test-wcsrtombs1.sh: New file.
6489         * tests/test-wcsrtombs2.sh: New file.
6490         * tests/test-wcsrtombs3.sh: New file.
6491         * tests/test-wcsrtombs4.sh: New file.
6492         * tests/test-wcsrtombs.c: New file.
6493
6494         New module 'wcsrtombs'.
6495         * lib/wchar.in.h (wcsrtombs): New declaration.
6496         * lib/wcsrtombs.c: New file.
6497         * m4/wcsrtombs.m4: New file.
6498         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
6499         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
6500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
6501         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
6502         * modules/wcsrtombs: New file.
6503         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
6504         bugs.
6505
6506 2008-12-21  Bruno Haible  <bruno@clisp.org>
6507
6508         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
6509         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
6510         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
6511         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
6512         if not correct.
6513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
6514         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
6515         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6516         m4/locale-zh.m4, m4/codeset.m4.
6517         * doc/posix-functions/wcrtomb.texi: Document the bug.
6518
6519 2008-12-21  Bruno Haible  <bruno@clisp.org>
6520
6521         Work around a btowc() bug on IRIX 6.5.
6522         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
6523         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
6524         REPLACE_WTOBC if not.
6525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
6526         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
6527         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
6528
6529 2008-12-21  Bruno Haible  <bruno@clisp.org>
6530
6531         * modules/wcrtomb-tests: New file.
6532         * tests/test-wcrtomb.sh: New file.
6533         * tests/test-wcrtomb.c: New file.
6534
6535         New module 'wcrtomb'.
6536         * lib/wchar.in.h (wcrtomb): New declaration.
6537         * lib/wcrtomb.c: New file.
6538         * m4/wcrtomb.m4: New file.
6539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
6540         HAVE_WCRTOMB.
6541         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
6542         HAVE_WCRTOMB.
6543         * modules/wcrtomb: New file.
6544         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6545
6546 2008-12-21  Bruno Haible  <bruno@clisp.org>
6547
6548         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
6549         * modules/mbsrtowcs (Files): Likewise.
6550         * modules/wctob (Files): Likewise.
6551         * modules/c-strcase-tests (Files): Likewise.
6552         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6553         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6554         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6555         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6556         * modules/vasnprintf-posix-tests (Files): Likewise.
6557
6558 2008-12-21  William Pursell  <bill.pursell@gmail.com>
6559
6560         gitlog-to-changelog: pass all command-line arguments to git-log
6561         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
6562         it is sometimes convenient to filter the commits in various ways.
6563         gitlog-to-changelog only allows --since to specify a start date,
6564         but git-log itself supports many other filtering mechanisms.
6565         At the moment, I want to filter by branch name.  Rather than
6566         adding a --branch option to gitlog-to-changelog, it seems more
6567         flexible to simply pass all options directly to git-log and let
6568         git do the work.  Notice that this effectively makes --since a
6569         redundant option for gitlog-to-changelog, but removing it would
6570         require current usage to change since calls would then require
6571         an additional '--'.
6572
6573 2008-12-21  Bruno Haible  <bruno@clisp.org>
6574
6575         * modules/mbsnrtowcs-tests: New file.
6576         * tests/test-mbsnrtowcs1.sh: New file.
6577         * tests/test-mbsnrtowcs2.sh: New file.
6578         * tests/test-mbsnrtowcs3.sh: New file.
6579         * tests/test-mbsnrtowcs4.sh: New file.
6580         * tests/test-mbsnrtowcs.c: New file.
6581
6582         New module 'mbsnrtowcs'.
6583         * lib/wchar.in.h (mbsnrtowcs): New declaration.
6584         * lib/mbsnrtowcs.c: New file.
6585         * lib/mbsrtowcs-state.c: New file.
6586         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
6587         (internal_state): Remove variable.
6588         * m4/mbsnrtowcs.m4: New file.
6589         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
6590         compilation units.
6591         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
6592         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6593         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
6594         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6595         * modules/mbsnrtowcs: New file.
6596         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
6597         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
6598         portability problem.
6599
6600 2008-12-21  Bruno Haible  <bruno@clisp.org>
6601
6602         Work around mbsrtowcs bug.
6603         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
6604         (gl_FUNC_MBSRTOWCS): Invoke it.
6605         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6606         m4/locale-zh.m4.
6607         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
6608
6609 2008-12-21  Bruno Haible  <bruno@clisp.org>
6610
6611         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
6612
6613 2008-12-21  Bruno Haible  <bruno@clisp.org>
6614
6615         Update doc for AIX.
6616         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
6617         16-bit wchar_t type.
6618         * doc/posix-functions/btowc.texi: Likewise.
6619         * doc/posix-functions/fgetwc.texi: Likewise.
6620         * doc/posix-functions/fgetws.texi: Likewise.
6621         * doc/posix-functions/fputwc.texi: Likewise.
6622         * doc/posix-functions/fputws.texi: Likewise.
6623         * doc/posix-functions/fwide.texi: Likewise.
6624         * doc/posix-functions/fwprintf.texi: Likewise.
6625         * doc/posix-functions/fwscanf.texi: Likewise.
6626         * doc/posix-functions/getwchar.texi: Likewise.
6627         * doc/posix-functions/getwc.texi: Likewise.
6628         * doc/posix-functions/iswalnum.texi: Likewise.
6629         * doc/posix-functions/iswalpha.texi: Likewise.
6630         * doc/posix-functions/iswblank.texi: Likewise.
6631         * doc/posix-functions/iswcntrl.texi: Likewise.
6632         * doc/posix-functions/iswctype.texi: Likewise.
6633         * doc/posix-functions/iswdigit.texi: Likewise.
6634         * doc/posix-functions/iswgraph.texi: Likewise.
6635         * doc/posix-functions/iswlower.texi: Likewise.
6636         * doc/posix-functions/iswprint.texi: Likewise.
6637         * doc/posix-functions/iswpunct.texi: Likewise.
6638         * doc/posix-functions/iswspace.texi: Likewise.
6639         * doc/posix-functions/iswupper.texi: Likewise.
6640         * doc/posix-functions/iswxdigit.texi: Likewise.
6641         * doc/posix-functions/mbrtowc.texi: Likewise.
6642         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6643         * doc/posix-functions/mbstowcs.texi: Likewise.
6644         * doc/posix-functions/mbtowc.texi: Likewise.
6645         * doc/posix-functions/putwchar.texi: Likewise.
6646         * doc/posix-functions/putwc.texi: Likewise.
6647         * doc/posix-functions/swprintf.texi: Likewise.
6648         * doc/posix-functions/tolower.texi: Likewise.
6649         * doc/posix-functions/toupper.texi: Likewise.
6650         * doc/posix-functions/towctrans.texi: Likewise.
6651         * doc/posix-functions/ungetwc.texi: Likewise.
6652         * doc/posix-functions/vswprintf.texi: Likewise.
6653         * doc/posix-functions/wcrtomb.texi: Likewise.
6654         * doc/posix-functions/wcscat.texi: Likewise.
6655         * doc/posix-functions/wcschr.texi: Likewise.
6656         * doc/posix-functions/wcscmp.texi: Likewise.
6657         * doc/posix-functions/wcscoll.texi: Likewise.
6658         * doc/posix-functions/wcscpy.texi: Likewise.
6659         * doc/posix-functions/wcscspn.texi: Likewise.
6660         * doc/posix-functions/wcsftime.texi: Likewise.
6661         * doc/posix-functions/wcslen.texi: Likewise.
6662         * doc/posix-functions/wcsncat.texi: Likewise.
6663         * doc/posix-functions/wcsncmp.texi: Likewise.
6664         * doc/posix-functions/wcsncpy.texi: Likewise.
6665         * doc/posix-functions/wcspbrk.texi: Likewise.
6666         * doc/posix-functions/wcsrchr.texi: Likewise.
6667         * doc/posix-functions/wcsrtombs.texi: Likewise.
6668         * doc/posix-functions/wcsspn.texi: Likewise.
6669         * doc/posix-functions/wcsstr.texi: Likewise.
6670         * doc/posix-functions/wcstod.texi: Likewise.
6671         * doc/posix-functions/wcstof.texi: Likewise.
6672         * doc/posix-functions/wcstoimax.texi: Likewise.
6673         * doc/posix-functions/wcstok.texi: Likewise.
6674         * doc/posix-functions/wcstold.texi: Likewise.
6675         * doc/posix-functions/wcstoll.texi: Likewise.
6676         * doc/posix-functions/wcstol.texi: Likewise.
6677         * doc/posix-functions/wcstombs.texi: Likewise.
6678         * doc/posix-functions/wcstoull.texi: Likewise.
6679         * doc/posix-functions/wcstoul.texi: Likewise.
6680         * doc/posix-functions/wcstoumax.texi: Likewise.
6681         * doc/posix-functions/wcswidth.texi: Likewise.
6682         * doc/posix-functions/wcsxfrm.texi: Likewise.
6683         * doc/posix-functions/wctob.texi: Likewise.
6684         * doc/posix-functions/wctomb.texi: Likewise.
6685         * doc/posix-functions/wctrans.texi: Likewise.
6686         * doc/posix-functions/wctype.texi: Likewise.
6687         * doc/posix-functions/wcwidth.texi: Likewise.
6688         * doc/posix-functions/wmemchr.texi: Likewise.
6689         * doc/posix-functions/wmemcmp.texi: Likewise.
6690         * doc/posix-functions/wmemcpy.texi: Likewise.
6691         * doc/posix-functions/wmemmove.texi: Likewise.
6692         * doc/posix-functions/wmemset.texi: Likewise.
6693         * doc/posix-functions/wprintf.texi: Likewise.
6694         * doc/posix-functions/wscanf.texi: Likewise.
6695
6696 2008-12-21  Bruno Haible  <bruno@clisp.org>
6697
6698         Update doc for HP-UX 11.11.
6699         * doc/posix-functions/btowc.texi: Clarify that the function is missing
6700         in HP-UX version 11.00, not in all versions of HP-UX 11.
6701         * doc/posix-functions/fwide.texi: Likewise.
6702         * doc/posix-functions/fwprintf.texi: Likewise.
6703         * doc/posix-functions/fwscanf.texi: Likewise.
6704         * doc/posix-functions/inet_ntop.texi: Likewise.
6705         * doc/posix-functions/inet_pton.texi: Likewise.
6706         * doc/posix-functions/mbrlen.texi: Likewise.
6707         * doc/posix-functions/mbrtowc.texi: Likewise.
6708         * doc/posix-functions/mbsinit.texi: Likewise.
6709         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6710         * doc/posix-functions/swprintf.texi: Likewise.
6711         * doc/posix-functions/swscanf.texi: Likewise.
6712         * doc/posix-functions/towctrans.texi: Likewise.
6713         * doc/posix-functions/vfwprintf.texi: Likewise.
6714         * doc/posix-functions/vswprintf.texi: Likewise.
6715         * doc/posix-functions/vwprintf.texi: Likewise.
6716         * doc/posix-functions/wcrtomb.texi: Likewise.
6717         * doc/posix-functions/wcsrtombs.texi: Likewise.
6718         * doc/posix-functions/wcsstr.texi: Likewise.
6719         * doc/posix-functions/wctob.texi: Likewise.
6720         * doc/posix-functions/wctrans.texi: Likewise.
6721         * doc/posix-functions/wmemchr.texi: Likewise.
6722         * doc/posix-functions/wmemcmp.texi: Likewise.
6723         * doc/posix-functions/wmemcpy.texi: Likewise.
6724         * doc/posix-functions/wmemmove.texi: Likewise.
6725         * doc/posix-functions/wmemset.texi: Likewise.
6726         * doc/posix-functions/wprintf.texi: Likewise.
6727         * doc/posix-functions/wscanf.texi: Likewise.
6728
6729 2008-12-21  Bruno Haible  <bruno@clisp.org>
6730
6731         Work around a portability problem.
6732         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
6733         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
6734
6735 2008-12-20  Bruno Haible  <bruno@clisp.org>
6736
6737         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
6738         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
6739         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
6740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
6741         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
6742
6743         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
6744         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
6745         set.
6746         (GNULIB_defined_mbstate_t): New macro.
6747         (mbsinit): Redefine if REPLACE_MBSINIT is set.
6748         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
6749         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
6750         reuses the system's mbrtowc function but works around the bugs.
6751         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
6752         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
6753         macros.
6754         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
6755         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
6756         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
6757         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
6758         REPLACE_MBSINIT if mbsinit needs to be overridden.
6759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
6760         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6761         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
6762         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6763         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6764         m4/locale-zh.m4.
6765         (Depends): Add mbsinit.
6766         * modules/mbsinit (Depends): Add mbrtowc.
6767         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
6768
6769 2008-12-20  Bruno Haible  <bruno@clisp.org>
6770
6771         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
6772         so that there are no conversion errors on AIX.
6773         * tests/test-mbsrtowcs.c (main): LIkewise.
6774
6775 2008-12-20  Bruno Haible  <bruno@clisp.org>
6776
6777         Work around wctob bug on Solaris <= 9.
6778         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
6779         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
6780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
6781         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
6782         * modules/wctob (Files): Add m4/locale-fr.m4.
6783         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
6784
6785 2008-12-20  Bruno Haible  <bruno@clisp.org>
6786
6787         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
6788         /dev/null.
6789         * tests/test-select-in.sh: Likewise.
6790         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6791
6792 2008-12-20  Bruno Haible  <bruno@clisp.org>
6793
6794         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
6795         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
6796         Cygwin 1.5.x.
6797
6798 2008-12-20  Bruno Haible  <bruno@clisp.org>
6799
6800         Ensure mbstate_t is defined on HP-UX 11.11.
6801         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
6802         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
6803         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
6804         AC_USE_SYSTEM_EXTENSIONS.
6805         * modules/fnmatch (Depends-on): Add extensions.
6806         * modules/mbrlen (Depends-on): Likewise.
6807         * modules/mbrtowc (Depends-on): Likewise.
6808         * modules/mbsinit (Depends-on): Likewise.
6809         * modules/mbsrtowcs (Depends-on): Likewise.
6810         * modules/mbswidth (Depends-on): Likewise.
6811         * modules/quotearg (Depends-on): Likewise.
6812         * modules/strftime (Depends-on): Likewise.
6813
6814 2008-12-20  Bruno Haible  <bruno@clisp.org>
6815
6816         Ensure wctob is declared on IRIX 6.5.
6817         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
6818         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
6819         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
6820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
6821         of HAVE_WCTOB.
6822         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
6823         HAVE_WCTOB.
6824         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
6825
6826 2008-12-19  Bruno Haible  <bruno@clisp.org>
6827
6828         * modules/mbsrtowcs-tests: New file.
6829         * tests/test-mbsrtowcs1.sh: New file.
6830         * tests/test-mbsrtowcs2.sh: New file.
6831         * tests/test-mbsrtowcs3.sh: New file.
6832         * tests/test-mbsrtowcs4.sh: New file.
6833         * tests/test-mbsrtowcs.c: New file.
6834
6835         New module 'mbsrtowcs'.
6836         * lib/wchar.in.h (mbsrtowcs): New declaration.
6837         * lib/mbsrtowcs.c: New file.
6838         * m4/mbsrtowcs.m4: New file.
6839         * modules/mbsrtowcs: New file.
6840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
6841         HAVE_MBSRTOWCS.
6842         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
6843         HAVE_MBSRTOWCS.
6844         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
6845
6846 2008-12-19  Bruno Haible  <bruno@clisp.org>
6847
6848         New module 'mbrlen'.
6849         * lib/wchar.in.h (mbrlen): New declaration.
6850         * lib/mbrlen.c: New file.
6851         * m4/mbrlen.m4: New file.
6852         * modules/mbrlen: New file.
6853         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
6854         HAVE_MBRLEN.
6855         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
6856         HAVE_MBRLEN.
6857         * doc/posix-functions/mbrlen.texi: Document the new module.
6858
6859 2008-12-19  Bruno Haible  <bruno@clisp.org>
6860
6861         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
6862         * modules/mbrtowc (Depends-on): Add verify.
6863         Suggested by Paul Eggert.
6864
6865 2008-12-18  Bruno Haible  <bruno@clisp.org>
6866
6867         * modules/mbsinit-tests: New file.
6868         * tests/test-mbsinit.sh: New file.
6869         * tests/test-mbsinit.c: New file.
6870
6871 2008-12-18  Bruno Haible  <bruno@clisp.org>
6872
6873         * modules/mbrtowc-tests: New file.
6874         * tests/test-mbrtowc1.sh: New file.
6875         * tests/test-mbrtowc2.sh: New file.
6876         * tests/test-mbrtowc3.sh: New file.
6877         * tests/test-mbrtowc4.sh: New file.
6878         * tests/test-mbrtowc.c: New file.
6879
6880         New module 'mbrtowc'.
6881         * lib/wchar.in.h (mbstate_t): Override when the system does not have
6882         mbsinit and mbrtowc.
6883         (mbrtowc): New declaration.
6884         * lib/mbrtowc.c: New file.
6885         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
6886         * modules/mbrtowc: New file.
6887         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
6888         HAVE_MBRTOWC.
6889         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
6890         HAVE_MBRTOWC.
6891         * doc/posix-functions/mbrtowc.texi: Document the new module.
6892
6893 2008-12-18  Bruno Haible  <bruno@clisp.org>
6894
6895         New module 'wctob'.
6896         * lib/wchar.in.h (wctob): New declaration.
6897         * lib/wctob.c: New file.
6898         * m4/wctob.m4: New file.
6899         * modules/wctob: New file.
6900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
6901         HAVE_WCTOB.
6902         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
6903         * doc/posix-functions/wctob.texi: Document the new module.
6904
6905 2008-12-18  Bruno Haible  <bruno@clisp.org>
6906
6907         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
6908         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
6909
6910 2008-12-18  Simon Josefsson  <simon@josefsson.org>
6911
6912         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
6913         G. Christensen" <tgc@jupiterrise.com>.
6914
6915         * lib/flock.c: Need to include errno.h.  Reported by "Tom
6916         G. Christensen" <tgc@jupiterrise.com>.
6917
6918         * lib/flock.c: Need to include string.h.  Reported by "Tom
6919         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
6920         <ebb9@byu.net>.
6921
6922 2008-12-18  Bruno Haible  <bruno@clisp.org>
6923
6924         * m4/locale-ja.m4: New file, from GNU gettext.
6925
6926 2008-12-17  Bruno Haible  <bruno@clisp.org>
6927
6928         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
6929         Suggested by Eric Blake.
6930
6931 2008-12-17  Bruno Haible  <bruno@clisp.org>
6932
6933         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
6934
6935 2008-12-17  Bruno Haible  <bruno@clisp.org>
6936
6937         * lib/mbsinit.c: Include verify.h. Verify an assumption.
6938         * modules/mbsinit (Depends-on): Add verify.
6939         Suggested by Paul Eggert.
6940
6941 2008-12-17  Bruno Haible  <bruno@clisp.org>
6942
6943         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
6944         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
6945         gl_FUNC_MBRTOWC.
6946         * m4/mbiter.m4 (gl_MBITER): LIkewise.
6947         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
6948         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
6949         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
6950         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
6951         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
6952         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
6953         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
6954         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
6955         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
6956         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
6957         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
6958         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
6959         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
6960         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
6961         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
6962         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
6963         * modules/trim (configure.ac): Likewise.
6964
6965 2008-12-17  Bruno Haible  <bruno@clisp.org>
6966
6967         * modules/btowc-tests: New file.
6968         * tests/test-btowc1.sh: New file.
6969         * tests/test-btowc2.sh: New file.
6970         * tests/test-btowc.c: New file.
6971
6972         New module 'btowc'.
6973         * lib/wchar.in.h (btowc): New declaration.
6974         * lib/btowc.c: New file.
6975         * m4/btowc.m4: New file.
6976         * modules/btowc: New file.
6977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
6978         HAVE_BTOWC.
6979         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
6980         * doc/posix-functions/btowc.texi: Document the new module.
6981
6982 2008-12-17  Bruno Haible  <bruno@clisp.org>
6983
6984         New module 'mbsinit'.
6985         * lib/wchar.in.h (mbsinit): New declaration.
6986         * lib/mbsinit.c: New file.
6987         * m4/mbsinit.m4: New file.
6988         * modules/mbsinit: New file.
6989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
6990         HAVE_MBSINIT.
6991         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
6992         HAVE_MBSINIT.
6993         * doc/posix-functions/mbsinit.texi: Document the new module.
6994
6995 2008-12-16  Bruno Haible  <bruno@clisp.org>
6996
6997         * lib/unistd.in.h: Add comment.
6998         * tests/test-environ.c: Don't include <stdlib.h>.
6999
7000 2008-12-16  Bruno Haible  <bruno@clisp.org>
7001
7002         * lib/parse-duration.h (parse_duration): Document return value
7003         convention.
7004         * lib/parse-duration.c: Include specification header first. Add
7005         comments.
7006         (_): Remove macro.
7007         (parse_year_month_day, parse_hour_minute_second): Move side effects
7008         outside of strchr call.
7009         (parse_non_iso8601): Move side effects outside of isspace call.
7010         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
7011         call.
7012
7013 2008-12-16  Bruno Haible  <bruno@clisp.org>
7014
7015         * tests/test-parse-duration.sh: Produce no output when the test
7016         succeeds.
7017
7018 2008-12-16  Bruno Haible  <bruno@clisp.org>
7019
7020         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
7021         expressions.
7022
7023 2008-12-15  Bruno Haible  <bruno@clisp.org>
7024
7025         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
7026         * doc/glibc-functions/flistxattr.texi: Likewise.
7027         * doc/glibc-functions/fopencookie.texi: Likewise.
7028         * doc/glibc-functions/fremovexattr.texi: Likewise.
7029         * doc/glibc-functions/fsetxattr.texi: Likewise.
7030         * doc/glibc-functions/getxattr.texi: Likewise.
7031         * doc/glibc-functions/lgetxattr.texi: Likewise.
7032         * doc/glibc-functions/listxattr.texi: Likewise.
7033         * doc/glibc-functions/llistxattr.texi: Likewise.
7034         * doc/glibc-functions/lremovexattr.texi: Likewise.
7035         * doc/glibc-functions/lsetxattr.texi: Likewise.
7036         * doc/glibc-functions/removexattr.texi: Likewise.
7037         * doc/glibc-functions/setxattr.texi: Likewise.
7038         * doc/posix-functions/open_memstream.texi: Likewise.
7039
7040 2008-12-15  Eric Blake  <ebb9@byu.net>
7041
7042         Update doc for cygwin 1.7.
7043         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
7044         functions.
7045         * doc/posix-functions/fchmodat.texi: Likewise.
7046         * doc/posix-functions/fchownat.texi: Likewise.
7047         * doc/posix-functions/fdopendir.texi: Likewise.
7048         * doc/posix-functions/fmemopen.texi: Likewise.
7049         * doc/posix-functions/freeaddrinfo.texi: Likewise.
7050         * doc/posix-functions/fstatat.texi: Likewise.
7051         * doc/posix-functions/futimens.texi: Likewise.
7052         * doc/posix-functions/gai_strerror.texi: Likewise.
7053         * doc/posix-functions/getaddrinfo.texi: Likewise.
7054         * doc/posix-functions/getnameinfo.texi: Likewise.
7055         * doc/posix-functions/if_freenameindex.texi: Likewise.
7056         * doc/posix-functions/if_indextoname.texi: Likewise.
7057         * doc/posix-functions/if_nameindex.texi: Likewise.
7058         * doc/posix-functions/if_nametoindex.texi: Likewise.
7059         * doc/posix-functions/insque.texi: Likewise.
7060         * doc/posix-functions/linkat.texi: Likewise.
7061         * doc/posix-functions/llrint.texi: Likewise.
7062         * doc/posix-functions/llrintf.texi: Likewise.
7063         * doc/posix-functions/llrintl.texi: Likewise.
7064         * doc/posix-functions/lockf.texi: Likewise.
7065         * doc/posix-functions/lrintl.texi: Likewise.
7066         * doc/posix-functions/mkdirat.texi: Likewise.
7067         * doc/posix-functions/mkfifoat.texi: Likewise.
7068         * doc/posix-functions/mknodat.texi: Likewise.
7069         * doc/posix-functions/mq_close.texi: Likewise.
7070         * doc/posix-functions/mq_getattr.texi: Likewise.
7071         * doc/posix-functions/mq_notify.texi: Likewise.
7072         * doc/posix-functions/mq_open.texi: Likewise.
7073         * doc/posix-functions/mq_receive.texi: Likewise.
7074         * doc/posix-functions/mq_send.texi: Likewise.
7075         * doc/posix-functions/mq_setattr.texi: Likewise.
7076         * doc/posix-functions/mq_timedreceive.texi: Likewise.
7077         * doc/posix-functions/mq_timedsend.texi: Likewise.
7078         * doc/posix-functions/mq_unlink.texi: Likewise.
7079         * doc/posix-functions/open_memstream.texi: Likewise.
7080         * doc/posix-functions/openat.texi: Likewise.
7081         * doc/posix-functions/posix_fadvise.texi: Likewise.
7082         * doc/posix-functions/posix_fallocate.texi: Likewise.
7083         * doc/posix-functions/posix_madvise.texi: Likewise.
7084         * doc/posix-functions/posix_memalign.texi: Likewise.
7085         * doc/posix-functions/posix_openpt.texi: Likewise.
7086         * doc/posix-functions/readlinkat.texi: Likewise.
7087         * doc/posix-functions/remque.texi: Likewise.
7088         * doc/posix-functions/renameat.texi: Likewise.
7089         * doc/posix-functions/rintl.texi: Likewise.
7090         * doc/posix-functions/sem_unlink.texi: Likewise.
7091         * doc/posix-functions/shm_open.texi: Likewise.
7092         * doc/posix-functions/shm_unlink.texi: Likewise.
7093         * doc/posix-functions/signgam.texi: Likewise.
7094         * doc/posix-functions/sigset.texi: Likewise.
7095         * doc/posix-functions/stpcpy.texi: Likewise.
7096         * doc/posix-functions/stpncpy.texi: Likewise.
7097         * doc/posix-functions/strerror.texi: Likewise.
7098         * doc/posix-functions/strtod.texi: Likewise.
7099         * doc/posix-functions/symlinkat.texi: Likewise.
7100         * doc/posix-functions/unlinkat.texi: Likewise.
7101         * doc/posix-functions/utimensat.texi: Likewise.
7102         * doc/glibc-functions/bindresvport.texi: Likewise.
7103         * doc/glibc-functions/dn_expand.texi: Likewise.
7104         * doc/glibc-functions/exp10.texi: Likewise.
7105         * doc/glibc-functions/exp10f.texi: Likewise.
7106         * doc/glibc-functions/fgetxattr.texi: Likewise.
7107         * doc/glibc-functions/flistxattr.texi: Likewise.
7108         * doc/glibc-functions/fopencookie.texi: Likewise.
7109         * doc/glibc-functions/freeifaddrs.texi: Likewise.
7110         * doc/glibc-functions/fremovexattr.texi: Likewise.
7111         * doc/glibc-functions/fsetxattr.texi: Likewise.
7112         * doc/glibc-functions/getifaddrs.texi: Likewise.
7113         * doc/glibc-functions/getxattr.texi: Likewise.
7114         * doc/glibc-functions/lgetxattr.texi: Likewise.
7115         * doc/glibc-functions/listxattr.texi: Likewise.
7116         * doc/glibc-functions/llistxattr.texi: Likewise.
7117         * doc/glibc-functions/lremovexattr.texi: Likewise.
7118         * doc/glibc-functions/lsetxattr.texi: Likewise.
7119         * doc/glibc-functions/pow10.texi: Likewise.
7120         * doc/glibc-functions/pow10f.texi: Likewise.
7121         * doc/glibc-functions/rcmd_af.texi: Likewise.
7122         * doc/glibc-functions/removexattr.texi: Likewise.
7123         * doc/glibc-functions/res_init.texi: Likewise.
7124         * doc/glibc-functions/res_mkquery.texi: Likewise.
7125         * doc/glibc-functions/res_query.texi: Likewise.
7126         * doc/glibc-functions/res_querydomain.texi: Likewise.
7127         * doc/glibc-functions/res_send.texi: Likewise.
7128         * doc/glibc-functions/rresvport_af.texi: Likewise.
7129         * doc/glibc-functions/setxattr.texi: Likewise.
7130         * doc/glibc-functions/strcasestr.texi: Likewise.
7131
7132 2008-12-15  Bruno Haible  <bruno@clisp.org>
7133
7134         Fix compilation error on OSF/1 4.0.
7135         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
7136         <sys/time.h>, simply delegate to the system header.
7137         Reported by Daniel Richard G. <oss@teragram.com>.
7138
7139 2008-12-15  Bruno Haible  <bruno@clisp.org>
7140
7141         * doc/posix-functions/openat.texi: Mention the 'openat' module.
7142         * doc/posix-functions/fchmodat.texi: Likewise.
7143         * doc/posix-functions/fchownat.texi: Likewise.
7144         * doc/posix-functions/fdopendir.texi: Likewise.
7145         * doc/posix-functions/fstatat.texi: Likewise.
7146         * doc/posix-functions/mkdirat.texi: Likewise.
7147         * doc/posix-functions/unlinkat.texi: Likewise.
7148
7149 2008-12-14  Bruno Haible  <bruno@clisp.org>
7150
7151         Update doc for POSIX:2008.
7152         * doc/posix-functions/faccessat.texi: New file.
7153         * doc/posix-functions/fchmodat.texi: New file.
7154         * doc/posix-functions/fchownat.texi: New file.
7155         * doc/posix-functions/fdopendir.texi: New file.
7156         * doc/posix-functions/fstatat.texi: New file.
7157         * doc/posix-functions/futimens.texi: New file.
7158         * doc/posix-functions/linkat.texi: New file.
7159         * doc/posix-functions/mkdirat.texi: New file.
7160         * doc/posix-functions/mkfifoat.texi: New file.
7161         * doc/posix-functions/mknodat.texi: New file.
7162         * doc/posix-functions/open_wmemstream.texi: New file.
7163         * doc/posix-functions/openat.texi: New file.
7164         * doc/posix-functions/psiginfo.texi: New file.
7165         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
7166         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
7167         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
7168         * doc/posix-functions/readlinkat.texi: New file.
7169         * doc/posix-functions/renameat.texi: New file.
7170         * doc/posix-functions/strerror_l.texi: New file.
7171         * doc/posix-functions/symlinkat.texi: New file.
7172         * doc/posix-functions/unlinkat.texi: New file.
7173         * doc/posix-functions/utimensat.texi: New file.
7174         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7175
7176 2008-12-14  Bruno Haible  <bruno@clisp.org>
7177
7178         Update doc for POSIX:2008.
7179         * doc/posix-functions/alphasort.texi: Renamed from
7180         doc/glibc-functions/alphasort.texi.
7181         * doc/posix-functions/dirfd.texi: Renamed from
7182         doc/glibc-functions/dirfd.texi.
7183         * doc/posix-functions/dprintf.texi: Renamed from
7184         doc/glibc-functions/dprintf.texi.
7185         * doc/posix-functions/duplocale.texi: Renamed from
7186         doc/glibc-functions/duplocale.texi.
7187         * doc/posix-functions/fexecve.texi: Renamed from
7188         doc/glibc-functions/fexecve.texi.
7189         * doc/posix-functions/fmemopen.texi: Renamed from
7190         doc/glibc-functions/fmemopen.texi.
7191         * doc/posix-functions/freelocale.texi: Renamed from
7192         doc/glibc-functions/freelocale.texi.
7193         * doc/posix-functions/getdate_err.texi: Renamed from
7194         doc/glibc-functions/getdate_err.texi.
7195         * doc/posix-functions/isalnum_l.texi: Renamed from
7196         doc/glibc-functions/isalnum_l.texi.
7197         * doc/posix-functions/isalpha_l.texi: Renamed from
7198         doc/glibc-functions/isalpha_l.texi.
7199         * doc/posix-functions/isblank_l.texi: Renamed from
7200         doc/glibc-functions/isblank_l.texi.
7201         * doc/posix-functions/iscntrl_l.texi: Renamed from
7202         doc/glibc-functions/iscntrl_l.texi.
7203         * doc/posix-functions/isdigit_l.texi: Renamed from
7204         doc/glibc-functions/isdigit_l.texi.
7205         * doc/posix-functions/isgraph_l.texi: Renamed from
7206         doc/glibc-functions/isgraph_l.texi.
7207         * doc/posix-functions/islower_l.texi: Renamed from
7208         doc/glibc-functions/islower_l.texi.
7209         * doc/posix-functions/isprint_l.texi: Renamed from
7210         doc/glibc-functions/isprint_l.texi.
7211         * doc/posix-functions/ispunct_l.texi: Renamed from
7212         doc/glibc-functions/ispunct_l.texi.
7213         * doc/posix-functions/isspace_l.texi: Renamed from
7214         doc/glibc-functions/isspace_l.texi.
7215         * doc/posix-functions/isupper_l.texi: Renamed from
7216         doc/glibc-functions/isupper_l.texi.
7217         * doc/posix-functions/iswalnum_l.texi: Renamed from
7218         doc/glibc-functions/iswalnum_l.texi.
7219         * doc/posix-functions/iswalpha_l.texi: Renamed from
7220         doc/glibc-functions/iswalpha_l.texi.
7221         * doc/posix-functions/iswblank_l.texi: Renamed from
7222         doc/glibc-functions/iswblank_l.texi.
7223         * doc/posix-functions/iswcntrl_l.texi: Renamed from
7224         doc/glibc-functions/iswcntrl_l.texi.
7225         * doc/posix-functions/iswctype_l.texi: Renamed from
7226         doc/glibc-functions/iswctype_l.texi.
7227         * doc/posix-functions/iswdigit_l.texi: Renamed from
7228         doc/glibc-functions/iswdigit_l.texi.
7229         * doc/posix-functions/iswgraph_l.texi: Renamed from
7230         doc/glibc-functions/iswgraph_l.texi.
7231         * doc/posix-functions/iswlower_l.texi: Renamed from
7232         doc/glibc-functions/iswlower_l.texi.
7233         * doc/posix-functions/iswprint_l.texi: Renamed from
7234         doc/glibc-functions/iswprint_l.texi.
7235         * doc/posix-functions/iswpunct_l.texi: Renamed from
7236         doc/glibc-functions/iswpunct_l.texi.
7237         * doc/posix-functions/iswspace_l.texi: Renamed from
7238         doc/glibc-functions/iswspace_l.texi.
7239         * doc/posix-functions/iswupper_l.texi: Renamed from
7240         doc/glibc-functions/iswupper_l.texi.
7241         * doc/posix-functions/iswxdigit_l.texi: Renamed from
7242         doc/glibc-functions/iswxdigit_l.texi.
7243         * doc/posix-functions/isxdigit_l.texi: Renamed from
7244         doc/glibc-functions/isxdigit_l.texi.
7245         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
7246         doc/glibc-functions/mbsnrtowcs.texi.
7247         * doc/posix-functions/mkdtemp.texi: Renamed from
7248         doc/glibc-functions/mkdtemp.texi.
7249         * doc/posix-functions/newlocale.texi: Renamed from
7250         doc/glibc-functions/newlocale.texi.
7251         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
7252         doc/glibc-functions/nl_langinfo_l.texi.
7253         * doc/posix-functions/open_memstream.texi: Renamed from
7254         doc/glibc-functions/open_memstream.texi.
7255         * doc/posix-functions/opterr.texi: Renamed from
7256         doc/glibc-functions/opterr.texi.
7257         * doc/posix-functions/optind.texi: Renamed from
7258         doc/glibc-functions/optind.texi.
7259         * doc/posix-functions/optopt.texi: Renamed from
7260         doc/glibc-functions/optopt.texi.
7261         * doc/posix-functions/psignal.texi: Renamed from
7262         doc/glibc-functions/psignal.texi.
7263         * doc/posix-functions/scandir.texi: Renamed from
7264         doc/glibc-functions/scandir.texi.
7265         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
7266         doc/glibc-functions/sched_get_priority_min.texi.
7267         * doc/posix-functions/signgam.texi: Renamed from
7268         doc/glibc-functions/signgam.texi.
7269         * doc/posix-functions/stpcpy.texi: Renamed from
7270         doc/glibc-functions/stpcpy.texi.
7271         * doc/posix-functions/stpncpy.texi: Renamed from
7272         doc/glibc-functions/stpncpy.texi.
7273         * doc/posix-functions/strcasecmp_l.texi: Renamed from
7274         doc/glibc-functions/strcasecmp_l.texi.
7275         * doc/posix-functions/strcoll_l.texi: Renamed from
7276         doc/glibc-functions/strcoll_l.texi.
7277         * doc/posix-functions/strfmon_l.texi: Renamed from
7278         doc/glibc-functions/strfmon_l.texi.
7279         * doc/posix-functions/strftime_l.texi: Renamed from
7280         doc/glibc-functions/strftime_l.texi.
7281         * doc/posix-functions/strncasecmp_l.texi: Renamed from
7282         doc/glibc-functions/strncasecmp_l.texi.
7283         * doc/posix-functions/strndup.texi: Renamed from
7284         doc/glibc-functions/strndup.texi.
7285         * doc/posix-functions/strnlen.texi: Renamed from
7286         doc/glibc-functions/strnlen.texi.
7287         * doc/posix-functions/strsignal.texi: Renamed from
7288         doc/glibc-functions/strsignal.texi.
7289         * doc/posix-functions/strxfrm_l.texi: Renamed from
7290         doc/glibc-functions/strxfrm_l.texi.
7291         * doc/posix-functions/timer_gettime.texi: Renamed from
7292         doc/glibc-functions/timer_gettime.texi.
7293         * doc/posix-functions/tolower_l.texi: Renamed from
7294         doc/glibc-functions/tolower_l.texi.
7295         * doc/posix-functions/toupper_l.texi: Renamed from
7296         doc/glibc-functions/toupper_l.texi.
7297         * doc/posix-functions/towctrans_l.texi: Renamed from
7298         doc/glibc-functions/towctrans_l.texi.
7299         * doc/posix-functions/towlower_l.texi: Renamed from
7300         doc/glibc-functions/towlower_l.texi.
7301         * doc/posix-functions/towupper_l.texi: Renamed from
7302         doc/glibc-functions/towupper_l.texi.
7303         * doc/posix-functions/uselocale.texi: Renamed from
7304         doc/glibc-functions/uselocale.texi.
7305         * doc/posix-functions/vdprintf.texi: Renamed from
7306         doc/glibc-functions/vdprintf.texi.
7307         * doc/posix-functions/wcpcpy.texi:
7308         Renamed from doc/glibc-functions/wcpcpy.texi.
7309         * doc/posix-functions/wcpncpy.texi: Renamed from
7310         doc/glibc-functions/wcpncpy.texi.
7311         * doc/posix-functions/wcscasecmp.texi: Renamed from
7312         doc/glibc-functions/wcscasecmp.texi.
7313         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
7314         doc/glibc-functions/wcscasecmp_l.texi.
7315         * doc/posix-functions/wcscoll_l.texi: Renamed from
7316         doc/glibc-functions/wcscoll_l.texi.
7317         * doc/posix-functions/wcsdup.texi: Renamed from
7318         doc/glibc-functions/wcsdup.texi.
7319         * doc/posix-functions/wcsncasecmp.texi: Renamed from
7320         doc/glibc-functions/wcsncasecmp.texi.
7321         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
7322         doc/glibc-functions/wcsncasecmp_l.texi.
7323         * doc/posix-functions/wcsnlen.texi: Renamed from
7324         doc/glibc-functions/wcsnlen.texi.
7325         * doc/posix-functions/wcsnrtombs.texi: Renamed from
7326         doc/glibc-functions/wcsnrtombs.texi.
7327         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
7328         doc/glibc-functions/wcsxfrm_l.texi.
7329         * doc/posix-functions/wctrans_l.texi: Renamed from
7330         doc/glibc-functions/wctrans_l.texi.
7331         * doc/posix-functions/wctype_l.texi: Renamed from
7332         doc/glibc-functions/wctype_l.texi.
7333         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7334         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
7335         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
7336         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
7337         these subsections.
7338         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
7339         Remove sections.
7340
7341 2008-12-14  Bruno Haible  <bruno@clisp.org>
7342
7343         Update doc for POSIX:2008.
7344         * doc/posix-functions/*.texi: Update URL of POSIX specification.
7345
7346 2008-12-14  Bruno Haible  <bruno@clisp.org>
7347
7348         Update doc for POSIX:2008.
7349         * doc/pastposix-functions/bcmp.texi: Renamed from
7350         doc/posix-functions/bcmp.texi.
7351         * doc/pastposix-functions/bcopy.texi: Renamed from
7352         doc/posix-functions/bcopy.texi.
7353         * doc/pastposix-functions/bsd_signal.texi: Renamed from
7354         doc/posix-functions/bsd_signal.texi.
7355         * doc/pastposix-functions/bzero.texi: Renamed from
7356         doc/posix-functions/bzero.texi.
7357         * doc/pastposix-functions/ecvt.texi: Renamed from
7358         doc/posix-functions/ecvt.texi.
7359         * doc/pastposix-functions/fcvt.texi: Renamed from
7360         doc/posix-functions/fcvt.texi.
7361         * doc/pastposix-functions/ftime.texi: Renamed from
7362         doc/posix-functions/ftime.texi.
7363         * doc/pastposix-functions/gcvt.texi: Renamed from
7364         doc/posix-functions/gcvt.texi.
7365         * doc/pastposix-functions/getcontext.texi: Renamed from
7366         doc/posix-functions/getcontext.texi.
7367         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
7368         doc/posix-functions/gethostbyaddr.texi.
7369         * doc/pastposix-functions/gethostbyname.texi: Renamed from
7370         doc/posix-functions/gethostbyname.texi.
7371         * doc/pastposix-functions/getwd.texi: Renamed from
7372         doc/posix-functions/getwd.texi.
7373         * doc/pastposix-functions/h_errno.texi: Renamed from
7374         doc/posix-functions/h_errno.texi.
7375         * doc/pastposix-functions/index.texi: Renamed from
7376         doc/posix-functions/index.texi.
7377         * doc/pastposix-functions/makecontext.texi: Renamed from
7378         doc/posix-functions/makecontext.texi.
7379         * doc/pastposix-functions/mktemp.texi: Renamed from
7380         doc/posix-functions/mktemp.texi.
7381         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
7382         doc/posix-functions/pthread_attr_getstackaddr.texi.
7383         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
7384         doc/posix-functions/pthread_attr_setstackaddr.texi.
7385         * doc/pastposix-functions/rindex.texi: Renamed from
7386         doc/posix-functions/rindex.texi.
7387         * doc/pastposix-functions/scalb.texi: Renamed from
7388         doc/posix-functions/scalb.texi.
7389         * doc/pastposix-functions/setcontext.texi: Renamed from
7390         doc/posix-functions/setcontext.texi.
7391         * doc/pastposix-functions/swapcontext.texi: Renamed from
7392         doc/posix-functions/swapcontext.texi.
7393         * doc/pastposix-functions/ualarm.texi: Renamed from
7394         doc/posix-functions/ualarm.texi.
7395         * doc/pastposix-functions/usleep.texi: Renamed from
7396         doc/posix-functions/usleep.texi.
7397         * doc/pastposix-functions/vfork.texi: Renamed from
7398         doc/posix-functions/vfork.texi.
7399         * doc/pastposix-functions/wcswcs.texi: Renamed from
7400         doc/posix-functions/wcswcs.texi.
7401         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
7402         (Function Substitutes): Update.
7403
7404 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7405
7406         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
7407         m4/strerror.m4.
7408
7409 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7410             Bruno Haible  <bruno@clisp.org>
7411
7412         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
7413
7414 2008-12-13  Bruno Haible  <bruno@clisp.org>
7415
7416         * modules/strtoull (Depends-on): Remove unistd.
7417
7418 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7419
7420         * modules/strtoull (Depends-on): Add stdlib.
7421
7422 2008-12-11  Simon Josefsson  <simon@josefsson.org>
7423
7424         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
7425
7426 2008-12-10  Jim Meyering  <meyering@redhat.com>
7427
7428         gl_ASSERT: don't say assertions are disabled when they're not
7429         * m4/assert.m4 (gl_ASSERT): Do not make configure report
7430         "checking whether to enable assertions... no", when they are in
7431         fact enabled.  This is solely a bug in the output of configure.
7432         In spite of saying "no", NDEBUG was not defined in that case.
7433         Also, as noted by Eric Blake, leave assertions enabled upon
7434         --enable-assert=INVALID.
7435
7436 2008-12-10  Bruno Haible  <bruno@clisp.org>
7437
7438         Change MODULES.html to refer to POSIX:2008 where possible.
7439         * MODULES.html.sh (POSIX2008_URL): New variable.
7440         (posix_headers): Remove sys/timeb, ucontext.
7441         (posix2001_headers): New variable.
7442         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
7443         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
7444         index, makecontext, mktemp, pthread_attr_getstackaddr,
7445         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
7446         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
7447         (posix2001_functions): New variable.
7448         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
7449         otherwise.
7450
7451 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7452
7453         add missing include to parse-duration.c
7454         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
7455         * modules/parse-duration (Depends-on): Add xalloc.
7456
7457         fix sed script reading maint.mk
7458         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
7459         (syntax-check-rules): Use it.
7460
7461 2008-12-09  Bruno Haible  <bruno@clisp.org>
7462
7463         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
7464         MacOS X 10.4/PowerPC.
7465         Reported by Simon Josefsson.
7466
7467 2008-12-08  Jim Meyering  <meyering@redhat.com>
7468
7469         work around mingw's lack of some S_IF definitions
7470         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
7471         Reported by Simon Josefsson.
7472
7473 2008-12-08  Bruno Haible  <bruno@clisp.org>
7474
7475         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
7476         applied to variables. Needed on MacOS X 10.4/PowerPC.
7477         Reported by Simon Josefsson.
7478
7479 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
7480         and Eric Blake  <ebb9@byu.net>
7481
7482         assert: honor --enable-assert
7483         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
7484         order to honor --enable-assert, rather than treating it as a
7485         synonym for --disable-assert.
7486
7487 2008-12-08  Jim Meyering  <meyering@redhat.com>
7488
7489         * lib/posixtm.c: Remove now-useless declaration of mktime.
7490
7491         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
7492
7493 2008-12-07  Bruno Haible  <bruno@clisp.org>
7494
7495         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
7496         test_once): Mark functions as static.
7497         * tests/test-tls.c (test_tls): Likewise.
7498
7499 2008-12-07  Bruno Haible  <bruno@clisp.org>
7500
7501         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
7502         iconv_register_autodetect.
7503
7504 2008-12-07  Jim Meyering  <meyering@redhat.com>
7505
7506         posixtm.c: avoid a warning
7507         * lib/posixtm.c (posixtime): Don't initialize tm0.
7508         It's no longer needed to placate gcc4's -Wuninitialized,
7509         and the attempt to placate would elicit a new warning.
7510
7511         unicodeio.c: mark unused parameters
7512         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
7513         (fallback_failure_callback): Likewise.
7514
7515 2008-12-07  Bruno Haible  <bruno@clisp.org>
7516
7517         * gnulib-tool (func_create_testdir): When building the tests
7518         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
7519         Reported by Simon Josefsson.
7520
7521 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7522
7523         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
7524
7525 2008-12-06  Bruno Haible  <bruno@clisp.org>
7526
7527         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
7528         Suggested by Eric Blake.
7529
7530 2008-12-06  Bruno Haible  <bruno@clisp.org>
7531
7532         Fix a c-stack test failure on MacOS X.
7533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
7534         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
7535         handler for SIGBUS as well.
7536         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
7537         install a signal handler for SIGBUS as well.
7538         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
7539
7540 2008-12-06  Bruno Haible  <bruno@clisp.org>
7541
7542         Advocacy documentation.
7543         * doc/gnulib-intro.texi (Benefits): New section.
7544         * doc/gnulib.texi: Update.
7545
7546 2008-12-06  Bruno Haible  <bruno@clisp.org>
7547
7548         Document the 'manywarnings' module.
7549         * doc/manywarnings.texi: New file.
7550         * doc/gnulib.texi: Include it.
7551
7552 2008-12-05  Eric Blake  <ebb9@byu.net>
7553
7554         tests: silence some gcc warnings
7555         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
7556         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
7557         type mismatches.
7558
7559 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7560             Bruno Haible  <bruno@clisp.org>
7561
7562         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
7563
7564 2008-11-29  Jim Meyering  <meyering@redhat.com>
7565
7566         unicodeio.c: mark unused parameters
7567         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
7568         (fallback_failure_callback): Likewise.
7569
7570         fts: fix a thinko
7571         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
7572         (set_stat_type): Return S_IF*-valued "type" directly.
7573         Prompted by James Youngman's spotting a related bug.
7574         Confirmed by further testing through find.
7575
7576         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
7577         * lib/fts.c (D_TYPE): Define.
7578         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
7579         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
7580         (s_ifmt_shift_bits): New function.
7581         (set_stat_type): New function.
7582         (fts_build): When not calling fts_stat, call set_stat_type
7583         to propagate dirent.d_type info to fts_read caller.
7584         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
7585         fts_statp->st_mode type information may be valid.
7586
7587 2008-11-28  Simon Josefsson  <simon@josefsson.org>
7588
7589         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
7590         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
7591         <sds@gnu.org>.
7592
7593 2008-11-20  Bruno Haible  <bruno@clisp.org>
7594
7595         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
7596         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
7597         INCLUDE_NEXT.
7598         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
7599         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
7600         * modules/math (Makefile.am): Substitute
7601         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
7602         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7603
7604 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
7605             Bruno Haible  <bruno@clisp.org>
7606
7607         * lib/stdint.in.h: Define all type macros so that their expansion is
7608         a single typedef'ed token. Fixes a compilation failure in Boost which
7609         does "using ::int8_t;".
7610
7611 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7612
7613         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
7614         gl_MANYWARN_ALL_GCC.
7615         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
7616         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
7617         * modules/manywarnings: New file.
7618         * MODULES.html.sh: Mention manywarnings module.
7619
7620 2008-11-18  Bruno Haible  <bruno@clisp.org>
7621
7622         * doc/gnulib-tool.texi (Unit tests): New section.
7623
7624 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7625
7626         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
7627         paths like 'lib/po/foo.po'.
7628
7629 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7630
7631         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
7632         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
7633
7634 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7635
7636         * m4/warnings.m4: Use CPPFLAGS to really check whether the
7637         parameter works.
7638
7639 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7640
7641         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
7642
7643 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7644
7645         * modules/parse-duration-tests: New file.
7646         * tests/test-parse-duration.sh: New file.
7647         * tests/test-parse-duration.c: New file.
7648
7649         New module 'parse-duration'.
7650         * lib/parse-duration.h: New file.
7651         * lib/parse-duration.c: New file.
7652         * modules/parse-duration: New file.
7653
7654 2008-11-17  Bruno Haible  <bruno@clisp.org>
7655
7656         * tests/test-select-out.sh: Comment out the first pipe test.
7657         Reported by Simon Josefsson.
7658
7659 2008-11-17  Bruno Haible  <bruno@clisp.org>
7660
7661         * modules/getaddrinfo (Depends-on): Add servent, hostent.
7662         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
7663         gl_HOSTENT.
7664
7665 2008-11-17  Bruno Haible  <bruno@clisp.org>
7666
7667         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
7668         -lnetwork and -lnet. Needed for Haiku and BeOS.
7669
7670 2008-11-16  Bruno Haible  <bruno@clisp.org>
7671
7672         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
7673
7674 2008-11-16  Bruno Haible  <bruno@clisp.org>
7675
7676         Avoid test failure on Haiku.
7677         * tests/test-fsync.c: Include <errno.h>.
7678         (main): Don't require that fsync (0) fails.
7679
7680 2008-11-15  Bruno Haible  <bruno@clisp.org>
7681
7682         New module 'hostent'.
7683         * modules/hostent: New file.
7684         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
7685
7686 2008-11-15  Bruno Haible  <bruno@clisp.org>
7687
7688         New module 'servent'.
7689         * modules/servent: New file.
7690         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
7691
7692 2008-11-15  Bruno Haible  <bruno@clisp.org>
7693
7694         Avoid generating same test program with two different rules.
7695         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
7696         test-frexp to test-frexp-nolibm.
7697         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
7698         test-frexpl to test-frexpl-nolibm.
7699
7700 2008-11-15  Bruno Haible  <bruno@clisp.org>
7701
7702         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
7703         $(FREXPL_LIBM).
7704
7705 2008-11-15  Bruno Haible  <bruno@clisp.org>
7706
7707         * lib/netdb.in.h: Activate the definitions also when the system's
7708         <netdb.h> has 'struct addrinfo'.
7709         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
7710         EAI_OVERFLOW or AI_NUMERICSERV.
7711         * doc/posix-headers/netdb.texi: Document the problem.
7712
7713 2008-11-15  Bruno Haible  <bruno@clisp.org>
7714
7715         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
7716
7717         Make the 'sched' module work on platforms where <sched.h> exists but
7718         is incomplete (such as Haiku).
7719         * lib/sched.in.h; Include the system's <sched.h> if it exists.
7720         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
7721         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
7722         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
7723         HAVE_STRUCT_SCHED_PARAM.
7724         * modules/sched (Depends-on): Add include_next.
7725         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
7726         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
7727         * doc/posix-headers/sched.texi: Document the issue.
7728
7729 2008-11-13  Jim Meyering  <meyering@redhat.com>
7730
7731         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
7732         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
7733         test would fail due to the difference in the Report bugs to ...
7734         line.  The expected address is empty, "<>", while the actual
7735         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
7736
7737 2008-11-12  Bruno Haible  <bruno@clisp.org>
7738
7739         lstat: don't compile lstat.c on systems lacking lstat
7740         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
7741         which don't have lstat; this is handled by lib/sys_stat.in.h already.
7742         Reported by Daniel P. Berrange via Jim Meyering.
7743
7744 2008-11-12  Jim Meyering  <meyering@redhat.com>
7745
7746         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
7747
7748 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7749
7750         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
7751         instead.
7752
7753 2008-11-12  Bruno Haible  <bruno@clisp.org>
7754
7755         * lib/unicodeio.c: Include unistr.h.
7756         (utf8_wctomb): Remove function.
7757         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
7758
7759 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7760
7761         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
7762         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
7763         <bruno@clisp.org>.
7764         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
7765
7766 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7767
7768         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
7769         * doc/gnulib.texi: Add section for warnings.
7770
7771 2008-11-11  Bruno Haible  <bruno@clisp.org>
7772
7773         * lib/sockets.h: Add a comment.
7774
7775 2008-11-11  Karl Berry  <karl@gnu.org>
7776
7777         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
7778
7779 2008-11-11  Eric Blake  <ebb9@byu.net>
7780
7781         fdl.texi: avoid git symlinks
7782         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
7783
7784 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7785
7786         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
7787
7788 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7789
7790         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
7791         (gl_WARN_ADD): Substitute $2 if literal.
7792
7793 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7794
7795         * m4/warning.m4: Remove.
7796
7797 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7798
7799         * m4/warnings.m4: Almost complete rewrite. :-)
7800
7801 2008-11-10  Simon Josefsson  <simon@josefsson.org>
7802
7803         * modules/warnings: New module.
7804         * m4/warnings.m4: New file.
7805         * MODULES.html.sh: Mention warnings module.
7806         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
7807         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7808
7809 2008-11-10  Eric Blake  <ebb9@byu.net>
7810
7811         fdl.texi: make a symlink to the latest version
7812         * doc/standards.texi: Revert today's earlier change.
7813         * doc/fdl-1.2.texi: Rename from old fdl.texi...
7814         * doc/fdl.texi: ...and replace this with a symlink to the newer
7815         fdl-1.3.texi.
7816
7817 2008-11-10  Bruno Haible  <bruno@clisp.org>
7818
7819         * tests/test-select-fd.c (main): Accept the result file name as fourth
7820         argument.
7821         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
7822         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
7823
7824 2008-11-10  Bruno Haible  <bruno@clisp.org>
7825
7826         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
7827         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
7828         as autoconf-substituted macros.
7829         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
7830         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
7831         gl_NETDB_H_DEFAULTS. Set these variables.
7832         * modules/netdb (Makefile.am): Substitute these variables.
7833
7834 2008-11-10  Eric Blake  <ebb9@byu.net>
7835
7836         standards.texi: include correct file for FDL 1.3
7837         * doc/standards.texi (GNU Free Documentation License): Change
7838         include file to pull in FDL 1.3, not 1.2.
7839
7840         fdl.texi: revert accidental change to license
7841         * doc/fdl.texi: This is FDL 1.2, not 1.3.
7842
7843 2008-11-10  Bruno Haible  <bruno@clisp.org>
7844
7845         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
7846         cross-compiling guesses also when the native compile gives no result.
7847
7848 2008-11-10  Bruno Haible  <bruno@clisp.org>
7849
7850         * lib/spawni.c (__spawni): Force variable into the stack.
7851
7852 2008-11-10  Bruno Haible  <bruno@clisp.org>
7853
7854         Add support for Haiku.
7855         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
7856         glibc and BeOS, but also on Haiku.
7857         * lib/fpurge.c (fpurge): Likewise.
7858         * lib/freadable.c (freadable): Likewise.
7859         * lib/freadahead.c (freadahead): Likewise.
7860         * lib/freading.c (freading): Likewise.
7861         * lib/freadptr.c (freadptr): Likewise.
7862         * lib/freadseek.c (freadptrinc): Likewise.
7863         * lib/fseeko.c (rpl_fseeko): Likewise.
7864         * lib/fseterr.c (fseterr): Likewise.
7865         * lib/fwritable.c (fwritable): Likewise.
7866         * lib/fwriting.c (fwriting): Likewise.
7867         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
7868
7869 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7870
7871         * lib/config.charset: Treat Haiku like BeOS.
7872
7873 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
7874
7875         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
7876         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
7877
7878 2008-11-08  Bruno Haible  <bruno@clisp.org>
7879
7880         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
7881         AC_CACHE_CHECK.
7882
7883 2008-11-08  Bruno Haible  <bruno@clisp.org>
7884
7885         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
7886
7887 2008-11-08  Bruno Haible  <bruno@clisp.org>
7888
7889         * tests/test-select-fd.c: New file.
7890         * tests/test-select-in.sh: New file.
7891         * tests/test-select-out.sh: New file.
7892         * tests/test-select-stdin.c: New file.
7893         * modules/select-tests (Files): Add the new files.
7894         (Depends-on): Add gettimeofday.
7895         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
7896         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
7897         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
7898
7899 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
7900             Bruno Haible  <bruno@clisp.org>
7901
7902         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
7903
7904 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
7905
7906         * build-aux/pmccabe2html: Added support for C++ source files.
7907
7908 2008-11-05  Ben Pfaff  <blp@gnu.org>
7909
7910         Fix lib/close.c build on Windows.
7911         * modules/close (Files): Add lib/w32sock.h.
7912
7913 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
7914
7915         Accept Bison's NEWS format.
7916         * build-aux/announce-gen (print_news_deltas): Tweak
7917         $re_prefix.
7918
7919 2008-11-04  Bruno Haible  <bruno@clisp.org>
7920
7921         * modules/random_r (Maintainer): Add glibc.
7922
7923 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7924
7925         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
7926         by karl@freefriends.org (Karl Berry).
7927         * doc/alloca.texi: Likewise.
7928         * doc/c-ctype.texi: Likewise.
7929         * doc/c-strcase.texi: Likewise.
7930         * doc/c-strcaseeq.texi: Likewise.
7931         * doc/c-strcasestr.texi: Likewise.
7932         * doc/c-strstr.texi: Likewise.
7933         * doc/c-strtod.texi: Likewise.
7934         * doc/c-strtold.texi: Likewise.
7935         * doc/ctime.texi: Likewise.
7936         * doc/error.texi: Likewise.
7937         * doc/fdl.texi: Likewise.
7938         * doc/gcd.texi: Likewise.
7939         * doc/getdate.texi: Likewise.
7940         * doc/gnulib-intro.texi: Likewise.
7941         * doc/gnulib-tool.texi: Likewise.
7942         * doc/gnulib.texi: Likewise.
7943         * doc/inet_ntoa.texi: Likewise.
7944         * doc/maintain.texi: Likewise.
7945         * doc/make-stds.texi: Likewise.
7946         * doc/quote.texi: Likewise.
7947         * doc/regexprops-generic.texi: Likewise.
7948         * doc/standards.texi: Likewise.
7949         * doc/verify.texi: Likewise.
7950         * doc/visibility.texi: Likewise.
7951         * doc/gnulib.texi (GNU Free Documentation License): Include
7952         fdl-1.3.texi instead of fdl.texi.
7953
7954 2008-11-04  Simon Josefsson  <simon@josefsson.org>
7955
7956         * doc/fdl-1.3.texi: New file, from
7957         <http://www.gnu.org/licenses/fdl-1.3.texi>.
7958         * modules/fdl-1.3: Add.
7959         * MODULES.html.sh: Add fdl-1.3.
7960
7961 2008-11-03  Bruno Haible  <bruno@clisp.org>
7962
7963         Make determination of absolute name of header file work with AIX xlc.
7964         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
7965         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
7966         preprocessing.
7967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7968         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7969
7970 2008-11-03  Simon Josefsson  <simon@josefsson.org>
7971
7972         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
7973         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
7974         <ludo@gnu.org>.
7975
7976 2008-11-02  Bruno Haible  <bruno@clisp.org>
7977
7978         Mark 'strpbrk' obsolete.
7979         * modules/strpbrk (Status, Notice): New sections.
7980         * modules/strtok_r (Depends-on): Add strpbrk.
7981
7982 2008-11-02  Bruno Haible  <bruno@clisp.org>
7983
7984         Mark 'strdup' obsolete.
7985         * modules/strdup (Status, Notice): New sections.
7986         * modules/findprog (Depends-on): Add strdup.
7987         * modules/getaddrinfo (Depends-on): Likewise.
7988         * modules/localename (Depends-on): Likewise.
7989         * modules/relocatable-lib (Depends-on): Likewise.
7990         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
7991         * modules/relocatable-prog (Depends-on): Likewise.
7992         * modules/trim (Depends-on): Likewise.
7993         * modules/unictype/gen-ctype (Depends-on): Likewise.
7994         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
7995
7996 2008-11-02  Bruno Haible  <bruno@clisp.org>
7997
7998         Mark 'strcspn' obsolete.
7999         * modules/strcspn (Status, Notice): New sections.
8000
8001 2008-11-02  Bruno Haible  <bruno@clisp.org>
8002
8003         Mark 'rmdir' obsolete.
8004         * modules/rmdir (Status, Notice): New sections.
8005         * modules/clean-temp (Depends-on): Add rmdir.
8006         * modules/openat (Depends-on): Likewise.
8007
8008 2008-11-02  Bruno Haible  <bruno@clisp.org>
8009
8010         Mark 'raise' obsolete.
8011         * modules/raise (Status, Notice): New sections.
8012         (Include): Specify <signal.h>.
8013         * modules/stdio (Depends-on): Add raise.
8014         * modules/write (Depends-on): Likewise.
8015
8016 2008-11-02  Bruno Haible  <bruno@clisp.org>
8017
8018         Mark 'memset' obsolete.
8019         * modules/memset (Status, Notice): New sections.
8020
8021 2008-11-02  Bruno Haible  <bruno@clisp.org>
8022
8023         Mark 'memmove' obsolete.
8024         * modules/memmove (Status, Notice): New sections.
8025         * modules/argp (Depends-on): Add memmove.
8026         * modules/argz (Depends-on): Likewise.
8027         * modules/canonicalize (Depends-on): Likewise.
8028         * modules/canonicalize-lgpl (Depends-on): Likewise.
8029         * modules/fts (Depends-on): Likewise.
8030         * modules/getcwd (Depends-on): Likewise.
8031         * modules/human (Depends-on): Likewise.
8032         * modules/regex (Depends-on): Likewise.
8033         * modules/striconveh (Depends-on): Likewise.
8034         * modules/trim (Depends-on): Likewise.
8035         * modules/unistr/u8-move (Depends-on): Likewise.
8036         * modules/unistr/u16-move (Depends-on): Likewise.
8037         * modules/unistr/u32-move (Depends-on): Likewise.
8038
8039 2008-11-02  Bruno Haible  <bruno@clisp.org>
8040
8041         Mark 'memcpy' obsolete.
8042         * modules/memcpy (Status, Notice): New sections.
8043
8044 2008-11-02  Bruno Haible  <bruno@clisp.org>
8045
8046         Mark 'memcmp' obsolete.
8047         * modules/memcmp (Status, Notice): New sections.
8048         * modules/argmatch (Depends-on): Add memchr.
8049         * modules/backupfile (Depends-on): Likewise.
8050         * modules/c-strcasestr (Depends-on): Likewise.
8051         * modules/crypto/des (Depends-on): Likewise.
8052         * modules/csharpcomp (Depends-on): Likewise.
8053         * modules/fnmatch (Depends-on): Likewise.
8054         * modules/git-merge-changelog (Depends-on): Likewise.
8055         * modules/isnand (Depends-on): Likewise.
8056         * modules/isnand-nolibm (Depends-on): Likewise.
8057         * modules/isnanf (Depends-on): Likewise.
8058         * modules/isnanf-nolibm (Depends-on): Likewise.
8059         * modules/isnanl (Depends-on): Likewise.
8060         * modules/isnanl-nolibm (Depends-on): Likewise.
8061         * modules/mbchar (Depends-on): Likewise.
8062         * modules/memcoll (Depends-on): Likewise.
8063         * modules/quotearg (Depends-on): Likewise.
8064         * modules/regex (Depends-on): Likewise.
8065         * modules/relocatable-prog (Depends-on): Likewise.
8066         * modules/same (Depends-on): Likewise.
8067         * modules/signbit (Depends-on): Likewise.
8068         * modules/strcasestr-simple (Depends-on): Likewise.
8069         * modules/unictype/gen-ctype (Depends-on): Likewise.
8070         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8071         * modules/uniname/uniname (Depends-on): Likewise.
8072         * modules/unistr/u8-cmp (Depends-on): Likewise.
8073
8074 2008-11-02  Bruno Haible  <bruno@clisp.org>
8075
8076         Mark 'memchr' obsolete.
8077         * modules/memchr (Status, Notice): New sections.
8078         * modules/argp (Depends-on): Add memchr.
8079         * modules/base64 (Depends-on): Likewise.
8080         * modules/c-strcasestr (Depends-on): Likewise.
8081         * modules/chdir-long (Depends-on): Likewise.
8082         * modules/fnmatch (Depends-on): Likewise.
8083         * modules/getsubopt (Depends-on): Likewise.
8084         * modules/git-merge-changelog (Depends-on): Likewise.
8085         * modules/glob (Depends-on): Likewise.
8086         * modules/strcasestr-simple (Depends-on): Likewise.
8087         * modules/strnlen (Depends-on): Likewise.
8088
8089 2008-11-02  Bruno Haible  <bruno@clisp.org>
8090
8091         Mark 'atexit' obsolete.
8092         * modules/atexit (Status, Notice): New sections.
8093         * modules/chdir-long (Depends-on): Add atexit.
8094         * modules/wait-process (Depends-on): Likewise.
8095
8096 2008-11-02  Bruno Haible  <bruno@clisp.org>
8097
8098         * gnulib-tool: New option --with-obsolete.
8099         (func_usage): Document it.
8100         (func_modules_transitive_closure): Drop obsolete dependencies if
8101         incobsolete is not true.
8102         (func_import): Read and save the incobsolete variable to the cache.
8103
8104 2008-11-02  Bruno Haible  <bruno@clisp.org>
8105
8106         * modules/TEMPLATE-EXTENDED: New field 'Status'.
8107         * gnulib-tool: New option --extract-status.
8108         (func_usage): Document it.
8109         (sed_extract_prog): Recognize it.
8110         (func_get_status): New function.
8111
8112 2008-10-30  Simon Josefsson  <simon@josefsson.org>
8113
8114         * modules/sockets (License): Change from LGPL to LGPLv2+.
8115
8116 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8117
8118         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
8119
8120 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8121
8122         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8123         Mention times and sys_times.
8124         * modules/sys_times, modules/sys_times-tests: New modules.
8125         * modules/times, modules/times-tests: Likewise
8126         * m4/sys_times_h.m4: New file.
8127         * lib/sys_times.in.h: Likewise
8128         * lib/times.c: Likewise.
8129         * tests/test-sys_times.c: Likewise.
8130         * tests/test-times.c: Likewise.
8131         * doc/posix-headers/sys_times.texi: Update.
8132         * doc/posix-functions/times.texi: Update.
8133
8134 2008-10-28  Jim Meyering  <meyering@redhat.com>
8135
8136         * modules/tempname (Depends-on): Add lstat.
8137
8138         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
8139
8140 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8141
8142         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
8143         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
8144         using idiom used elsewhere in gnulib.
8145
8146 2008-10-27  Jim Meyering  <meyering@redhat.com>
8147
8148         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
8149
8150 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8151
8152         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
8153         TESTS_ENVIRONMENT, for shell scripts that needs to call built
8154         programs.
8155         * tests/test-argp-2.sh: Use $EXEEXT when needed.
8156
8157 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8158
8159         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
8160
8161 2008-10-27  Bruno Haible  <bruno@clisp.org>
8162
8163         * tests/test-lstat.c: Include <stdio.h>.
8164
8165 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8166
8167         * modules/lstat-tests: New module.
8168         * tests/test-lstat.c: New file.
8169
8170 2008-10-26  Jim Meyering  <meyering@redhat.com>
8171
8172         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
8173
8174 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8175             Bruno Haible  <bruno@clisp.org>
8176
8177         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
8178         * modules/configmake (Include): Add a note that the include must come
8179         after all system headers.
8180         * lib/javaversion.c: Include configmake.h after all other includes.
8181
8182 2008-10-26  Bruno Haible  <bruno@clisp.org>
8183
8184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
8185         HAVE_STRUCT_RANDOM_DATA to 1.
8186         (gl_STDLIB_H): Simplify.
8187
8188 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8189
8190         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
8191         substitute HAVE_STRUCT_RANDOM_DATA.
8192         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
8193         random_data.
8194         * modules/stdlib (Makefile.am): Substitute
8195         HAVE_STRUCT_RANDOM_DATA.
8196
8197 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8198
8199         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
8200         * doc/gnulib-intro.texi (Copyright): Likewise.
8201
8202 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8203
8204         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
8205         findings.
8206
8207 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
8208             Bruno Haible  <bruno@clisp.org>
8209
8210         * lib/unistd.in.h: Include <winsock2.h>.
8211         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
8212         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
8213         Provide dummy declarations.
8214         (gethostname): Override.
8215         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
8216         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
8217         gl_PREREQ_SYS_H_WINSOCK2.
8218         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
8219         * doc/posix-functions/gethostname.texi: More details.
8220
8221 2008-10-25  Bruno Haible  <bruno@clisp.org>
8222
8223         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8224         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
8225         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
8226
8227         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
8228         here ...
8229         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
8230         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
8231         gl_UNISTD_H_DEFAULTS.
8232
8233 2008-10-25  Eric Blake  <ebb9@byu.net>
8234
8235         signbit: avoid spurious compiler failure
8236         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
8237         declarations inside function.
8238
8239 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8240             Bruno Haible  <bruno@clisp.org>
8241
8242         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
8243         * modules/random_r (Depends-on): Add stdint.
8244
8245 2008-10-24  Bruno Haible  <bruno@clisp.org>
8246
8247         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
8248         Eggert.
8249         * modules/strerror (License): Likewise.
8250
8251 2008-10-24  Jim Meyering  <meyering@redhat.com>
8252
8253         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
8254         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
8255
8256 2008-10-24  Eric Blake  <ebb9@byu.net>
8257
8258         getgroups: fix compilation when getgroups is available
8259         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
8260         but with <config.h> override of getgroups disabled.
8261
8262 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8263
8264         * doc/gnulib.texi (Header files): Add note about C++ problems.
8265         Explained by Bruno Haible <bruno@clisp.org>.
8266
8267 2008-10-23  Bruno Haible  <bruno@clisp.org>
8268
8269         Define a dummy SA_NODEFER macro on Interix.
8270         * lib/signal.in.h (SA_NODEFER): Define fallback.
8271         Reported by Aleksey Cheusov <cheusov@tut.by> via
8272         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
8273
8274 2008-10-23  Bruno Haible  <bruno@clisp.org>
8275
8276         * modules/freadahead (License): Change to LGPLv2+.
8277         Suggested by Simon Josefsson.
8278
8279 2008-10-23  Jim Meyering  <meyering@redhat.com>
8280
8281         random_r: new module
8282         * modules/random_r: New file.
8283         * m4/random_r.m4: New file.
8284         * lib/random_r.c: New file, from glibc.
8285         * modules/random_r-tests: New file.
8286         * tests/test-random_r.c: New file.
8287         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
8288          Declare.
8289         (RAND_MAX): Define.
8290         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
8291         * modules/stdlib: Substitute them, too.
8292         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
8293         * doc/glibc-functions/initstate_r.texi: Mention the new module.
8294         * doc/glibc-functions/random_r.texi: Likewise.
8295         * doc/glibc-functions/setstate_r.texi: Likewise.
8296         * doc/glibc-functions/srandom_r.texi: Likewise.
8297         * config/srclist.txt: Mention it.
8298
8299 2008-10-23  David Lutterkort  <lutter@redhat.com>
8300
8301         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
8302         link requirement
8303
8304 2008-10-23  Jim Meyering  <meyering@redhat.com>
8305
8306         selinux-h: mark parameters of stub functions as intentionally unused
8307         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
8308         * lib/se-context.in.h: Likewise.
8309
8310 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8311
8312         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
8313
8314 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8315
8316         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
8317
8318 2008-10-22  Eric Blake  <ebb9@byu.net>
8319
8320         glthread/thread: avoid compiler warning
8321         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
8322         Add unreachable abort to silence compiler.
8323
8324 2008-10-22  Eric Blake  <ebb9@byu.net>
8325
8326         netdb: also supply struct addrinfo for cygwin 1.5.x
8327         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
8328         older cygwin.
8329         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
8330         cygwin.
8331         * doc/posix-headers/netdb.texi (netdb.h): Document this.
8332
8333 2008-10-22  Bruno Haible  <bruno@clisp.org>
8334
8335         * users.txt: Update entry about pspp.
8336
8337 2008-10-21  Bruno Haible  <bruno@clisp.org>
8338
8339         Simplification.
8340         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
8341         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
8342
8343         Simplification.
8344         * lib/ioctl.c (ioctl): Don't undefine.
8345         * lib/socket.c (socket): Don't undefine.
8346
8347         Remove unused module indicator macros.
8348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
8349         GNULIB_$1 as a C macro.
8350
8351         * doc/posix-functions/close.texi: Undo last change.
8352         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
8353         Windows platforms.
8354
8355 2008-10-21  Bruno Haible  <bruno@clisp.org>
8356
8357         Add gethostname() declaration to <unistd.h>.
8358         * lib/unistd.in.h (gethostname): New declaration.
8359         * lib/gethostname.c: Include <unistd.h>.
8360         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
8361         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
8362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
8363         and HAVE_GETHOSTNAME.
8364         * modules/gethostname (Depends-on): Add unistd.
8365         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8366         (Include): Specify <unistd.h>.
8367         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
8368         HAVE_GETHOSTNAME.
8369         * tests/test-gethostname.c: Include <unistd.h> first.
8370
8371 2008-10-21  Bruno Haible  <bruno@clisp.org>
8372
8373         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
8374         * modules/select-tests (Depends-on): Likewise.
8375         Reported by Simon Josefsson.
8376
8377 2008-10-21  Simon Josefsson  <simon@josefsson.org>
8378
8379         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
8380         * lib/accept.c: New file, based on winsock.c.
8381         * lib/bind.c: New file, based on winsock.c.
8382         * lib/connect.c: New file, based on winsock.c.
8383         * lib/getpeername.c: New file, based on winsock.c.
8384         * lib/getsockname.c: New file, based on winsock.c.
8385         * lib/getsockopt.c: New file, based on winsock.c.
8386         * lib/ioctl.c: New file, based on winsock.c.
8387         * lib/listen.c: New file, based on winsock.c.
8388         * lib/recv.c: New file, based on winsock.c.
8389         * lib/recvfrom.c: New file, based on winsock.c.
8390         * lib/send.c: New file, based on winsock.c.
8391         * lib/sendto.c: New file, based on winsock.c.
8392         * lib/setsockopt.c: New file, based on winsock.c.
8393         * lib/shutdown.c: New file, based on winsock.c.
8394         * lib/socket.c: New file, based on winsock.c.
8395         * lib/w32sock.h: New file, based on winsock.c.
8396         * lib/winsock.c: Remove file.
8397         * modules/accept: Likewise.
8398         * modules/bind: Likewise.
8399         * modules/connect: Likewise.
8400         * modules/getpeername: Likewise.
8401         * modules/getsockname: Likewise.
8402         * modules/getsockopt: Likewise.
8403         * modules/ioctl: Likewise.
8404         * modules/listen: Likewise.
8405         * modules/recv: Likewise.
8406         * modules/recvfrom: Likewise.
8407         * modules/send: Likewise.
8408         * modules/sendto: Likewise.
8409         * modules/setsockopt: Likewise.
8410         * modules/shutdown: Likewise.
8411         * modules/socket: Use socket.c instead of winsock.c.
8412         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
8413         * doc/posix-functions/accept.texi: Doc fix.
8414         * doc/posix-functions/bind.texi: Doc fix.
8415         * doc/posix-functions/close.texi: Doc fix.
8416         * doc/posix-functions/connect.texi: Doc fix.
8417         * doc/posix-functions/getpeername.texi: Doc fix.
8418         * doc/posix-functions/getsockname.texi: Doc fix.
8419         * doc/posix-functions/getsockopt.texi: Doc fix.
8420         * doc/posix-functions/ioctl.texi: Doc fix.
8421         * doc/posix-functions/listen.texi: Doc fix.
8422         * doc/posix-functions/recv.texi: Doc fix.
8423         * doc/posix-functions/recvfrom.texi: Doc fix.
8424         * doc/posix-functions/send.texi: Doc fix.
8425         * doc/posix-functions/sendto.texi: Doc fix.
8426         * doc/posix-functions/setsockopt.texi: Doc fix.
8427         * doc/posix-functions/shutdown.texi: Doc fix.
8428         * doc/posix-functions/socket.texi: Doc fix.
8429
8430 2008-10-20  Bruno Haible  <bruno@clisp.org>
8431
8432         Take into account the role of SIGABRT_COMPAT on Windows 2008.
8433         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
8434         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
8435         as an alias for SIGABRT.
8436         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
8437         (sigaction): Map it to SIGABRT.
8438         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
8439
8440 2008-10-20  Bruno Haible  <bruno@clisp.org>
8441
8442         * lib/fts.c: Don't include lstat.h.
8443         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
8444
8445         Move the lstat() declaration to <sys/stat.h>.
8446         * lib/lstat.h: Remove file.
8447         * lib/sys_stat.in.h: Add special invocation convention.
8448         (lstat): New declaration.
8449         * lib/lstat.c (orig_lstat): New function.
8450         (rpl_lstat): Use orig_lstat instead of lstat.
8451         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
8452         AC_C_INLINE. Set REPLACE_LSTAT.
8453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
8454         and REPLACE_LSTAT.
8455         * modules/lstat (Files): Remove lib/lstat.h.
8456         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8457         (Include): Specify <sys/stat.h> instead of lstat.h.
8458         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
8459         REPLACE_LSTAT.
8460         * NEWS: Mention the change.
8461
8462 2008-10-20  Bruno Haible  <bruno@clisp.org>
8463
8464         * modules/posix_spawn-tests: New file.
8465         * tests/test-posix_spawn3.c: New file.
8466
8467 2008-10-20  Bruno Haible  <bruno@clisp.org>
8468
8469         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
8470         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
8471         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
8472         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
8473         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
8474
8475 2008-10-20  Bruno Haible  <bruno@clisp.org>
8476
8477         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
8478         of posix_spawn on AIX 5.3.
8479
8480 2008-10-20  Bruno Haible  <bruno@clisp.org>
8481
8482         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
8483
8484 2008-10-20  Bruno Haible  <bruno@clisp.org>
8485
8486         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
8487         of AC_LANG_PROGRAM.
8488
8489 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8490
8491         * lib/netdb.in.h: Don't define GNU specific constants until they
8492         are supported or needed.  Reported by Bruno Haible
8493         <bruno@clisp.org>.
8494
8495 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8496
8497         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
8498
8499 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8500
8501         * lib/getaddrinfo.h: Remove file.
8502         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
8503         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
8504         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
8505         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
8506         * modules/netdb: Substitute GNULIB_GETADDRINFO.
8507         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
8508         * tests/test-getaddrinfo.c: Likewise.
8509         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
8510         * NEWS: Mention change.
8511
8512 2008-10-19  Bruno Haible  <bruno@clisp.org>
8513
8514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
8515
8516 2008-10-19  Bruno Haible  <bruno@clisp.org>
8517
8518         * lib/wait-process.c: Include simply <sys/wait.h>.
8519         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
8520         WIFSTOPPED): Remove fallback definitions.
8521         * modules/wait-process (Depends-on): Add sys_wait.
8522
8523         New module 'sys_wait'.
8524         * modules/sys_wait: New file.
8525         * lib/sys_wait.in.h: New file, partially copied from
8526         lib/wait-process.c.
8527         * m4/sys_wait_h.m4: New file.
8528         * doc/posix-headers/sys_wait.texi: Mention the new module.
8529
8530 2008-10-19  Bruno Haible  <bruno@clisp.org>
8531
8532         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
8533
8534 2008-10-19  Bruno Haible  <bruno@clisp.org>
8535
8536         Assume that waitpid() fills an 'int' status, not a 'union wait'.
8537         * lib/wait-process.c (WAIT_T): Remove type.
8538         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
8539         (wait_subprocess): Update.
8540
8541 2008-10-19  Bruno Haible  <bruno@clisp.org>
8542
8543         New module 'atoll'.
8544         * modules/atoll: New file.
8545         * lib/stdlib.in.h (atoll): New declaration.
8546         * lib/atoll.c: New file, from glibc with modifications.
8547         * m4/atoll.m4: New file.
8548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
8549         HAVE_ATOLL.
8550         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
8551         * doc/posix-functions/atoll.texi: Mention the new module.
8552
8553 2008-10-19  Bruno Haible  <bruno@clisp.org>
8554
8555         Add strtoull() declaration to <stdlib.h>.
8556         * lib/stdlib.in.h (strtoull): New declaration.
8557         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
8558         Set HAVE_STRTOULL.
8559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
8560         HAVE_STRTOULL.
8561         * modules/strtoull (Depends-on): Add stdlib.
8562         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8563         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
8564         HAVE_STRTOULL.
8565
8566 2008-10-19  Bruno Haible  <bruno@clisp.org>
8567
8568         Add strtoll() declaration to <stdlib.h>.
8569         * lib/stdlib.in.h (strtoll): New declaration.
8570         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
8571         Set HAVE_STRTOLL.
8572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
8573         HAVE_STRTOLL.
8574         * modules/strtoll (Depends-on): Add stdlib.
8575         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8576         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
8577
8578 2008-10-19  Bruno Haible  <bruno@clisp.org>
8579
8580         * modules/bcopy (Depends-on): Add strings.
8581         (Include): Specify <strings.h>.
8582
8583 2008-10-19  Bruno Haible  <bruno@clisp.org>
8584
8585         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
8586
8587 2008-10-19  Bruno Haible  <bruno@clisp.org>
8588
8589         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
8590         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
8591         mingw.
8592
8593 2008-10-19  Bruno Haible  <bruno@clisp.org>
8594
8595         * lib/atanl.c: Don't include isnanl.h.
8596         * lib/cosl.c: Likewise.
8597         * lib/ldexpl.c: Likewise.
8598         * lib/logl.c: Likewise.
8599         * lib/sinl.c: Likewise.
8600         * lib/sqrtl.c: Likewise.
8601         * lib/tanl.c: Likewise.
8602
8603         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
8604         * lib/isnanf.h: Remove file.
8605         * lib/isnand.h: Remove file.
8606         * lib/isnanl.h: Remove file.
8607         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
8608         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
8609         macros.
8610         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
8611         HAVE_ISNANF, don't define it as a C macro.
8612         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
8613         HAVE_ISNAND, don't define it as a C macro.
8614         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
8615         HAVE_ISNANL, don't define it as a C macro.
8616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
8617         HAVE_ISNAN[FDL].
8618         * modules/isnanf (Files): Remove lib/isnanf.h.
8619         (Depends-on): Add math.
8620         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8621         (Include): Specify <math.h> instead of isnanf.h.
8622         * modules/isnand (Files): Remove lib/isnand.h.
8623         (Depends-on): Add math.
8624         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8625         (Include): Specify <math.h> instead of isnand.h.
8626         * modules/isnanl (Files): Remove lib/isnanl.h.
8627         (Depends-on): Add math.
8628         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8629         (Include): Specify <math.h> instead of isnanl.h.
8630         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
8631         HAVE_ISNAN[FDL].
8632         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
8633         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
8634         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
8635         * NEWS: Mention the change.
8636
8637 2008-10-18  Bruno Haible  <bruno@clisp.org>
8638
8639         Add getusershell(), setusershell(), endusershell() declarations to
8640         <unistd.h>.
8641         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
8642         declarations.
8643         * lib/getusershell.c: Include unistd.h.
8644         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
8645         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8646         HAVE_GETUSERSHELL.
8647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
8648         and HAVE_GETUSERSHELL.
8649         * modules/getusershell (Depends-on): Add unistd, extensions.
8650         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8651         (Include): Specify <unistd.h>.
8652         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
8653         HAVE_GETUSERSHELL.
8654
8655 2008-10-18  Bruno Haible  <bruno@clisp.org>
8656
8657         Add a getloadavg() declaration to <stdlib.h>.
8658         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
8659         getloadavg declaration.
8660         (getloadavg): New declaration.
8661         * lib/getloadavg.c: Include <stdlib.h> first.
8662         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
8663         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
8664         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
8665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
8666         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8667         * modules/getloadavg (Depends-on): Add stdlib, extensions.
8668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8669         (Include): Specify <stdlib.h>.
8670         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
8671         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8672
8673 2008-10-18  Bruno Haible  <bruno@clisp.org>
8674
8675         * lib/dirchownmod.c: Don't include lchmod.h.
8676
8677         Move the lchmod() declaration to <sys/stat.h>.
8678         * lib/lchmod.h: Remove file.
8679         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
8680         (lchmod): New declaration, moved here from lib/lchown.h.
8681         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
8682         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
8683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
8684         and HAVE_LCHMOD.
8685         * modules/lchmod (Files): Remove lib/lchmod.h.
8686         (Depends-on): Add sys_stat, extensions.
8687         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8688         (Include): Specify <sys/stat.h> instead of lchmod.h.
8689         * modules/sys_stat (Depends-on): Add link-warning.
8690         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
8691         definition of GL_LINK_WARNING.
8692         * NEWS: Mention the change.
8693
8694 2008-10-18  Bruno Haible  <bruno@clisp.org>
8695
8696         * lib/fchdir.c: Don't include dirfd.h.
8697         * lib/fts.c: Likewise.
8698         * lib/getcwd.c: Likewise.
8699         * lib/glob.c: Likewise.
8700
8701         Move the dirfd() declaration to <dirent.h>.
8702         * lib/dirfd.h: Remove file.
8703         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
8704         (dirfd): New declaration.
8705         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
8706         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
8707         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
8708         HAVE_DECL_DIRFD.
8709         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
8710         HAVE_DECL_DIRFD.
8711         * modules/dirfd (Files): Remove lib/dirfd.h.
8712         (Depends-on): Add dirent, extensions.
8713         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
8714         (Include): Specify <dirent.h> instead of dirfd.h.
8715         * modules/dirent (Depends-on): Add link-warning.
8716         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
8717         definition of GL_LINK_WARNING.
8718         * NEWS: Mention the change.
8719
8720 2008-10-18  Bruno Haible  <bruno@clisp.org>
8721
8722         Move the euidaccess() declaration to <unistd.h>.
8723         * lib/euidaccess.h: Remove file.
8724         * lib/unistd.in.h (euidaccess): New declaration.
8725         * lib/euidaccess.c: Don't include euidaccess.h.
8726         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
8727         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
8728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
8729         and HAVE_EUIDACCESS.
8730         * modules/euidaccess (Files): Remove lib/euidaccess.h.
8731         (Depends-on): Add unistd.
8732         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8733         (Include): Specify <unistd.h> instead of euidaccess.h.
8734         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
8735         HAVE_EUIDACCESS.
8736         * NEWS: Mention the change.
8737
8738 2008-10-18  Bruno Haible  <bruno@clisp.org>
8739
8740         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
8741
8742         Move the getdomainname() declaration to <unistd.h>.
8743         * lib/getdomainname.h: Remove file.
8744         * lib/unistd.in.h (getdomainname): New declaration.
8745         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
8746         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8747         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8748         HAVE_GETDOMAINNAME.
8749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8750         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
8751         * modules/getdomainname (Files): Remove lib/getdomainname.h.
8752         (Depends-on): Add unistd, extensions.
8753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8754         (Includes): Specify <unistd.h> instead of getdomainname.h.
8755         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
8756         HAVE_GETDOMAINNAME.
8757         * NEWS: Mention the change.
8758
8759 2008-10-18  Bruno Haible  <bruno@clisp.org>
8760
8761         * modules/dirent: New file.
8762         * m4/dirent_h.m4: New file.
8763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
8764         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
8765         * modules/fchdir (Files): Remove lib/dirent.in.h.
8766         (Depends-on): Add dirent.
8767         (Makefile.am): Move rules to modules/dirent.
8768         * doc/posix-headers/dirent.texi: Mention the new module.
8769
8770 2008-10-18  Bruno Haible  <bruno@clisp.org>
8771
8772         Avoid -Wunused-parameter warnings in public gnulib header files.
8773         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
8774         macro.
8775         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
8776
8777 2008-10-18  Bruno Haible  <bruno@clisp.org>
8778
8779         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
8780         * doc/glibc-functions/error.texi: Mention the module 'error'.
8781         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
8782         * doc/glibc-functions/getdomainname.texi: Mention the module
8783         'getdomainname'.
8784         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
8785         * doc/glibc-functions/getpagesize.texi: Mention the module
8786         'getpagesize'.
8787         * doc/glibc-functions/getusershell.texi: Mention the module
8788         'getusershell'.
8789         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
8790         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
8791         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
8792         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
8793         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
8794         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
8795         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
8796         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
8797         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
8798         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
8799         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
8800         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
8801         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
8802         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
8803
8804 2008-10-17  Bruno Haible  <bruno@clisp.org>
8805
8806         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
8807         HP-UX and IRIX, use -0.0L.
8808         * tests/test-ceill.c (minus_zero): Likewise.
8809         * tests/test-floorl.c (minus_zero): Likewise.
8810         * tests/test-frexpl.c (minus_zero): Likewise.
8811         * tests/test-isnan.c (minus_zerol): Likewise.
8812         * tests/test-isnanl.h (minus_zero): Likewise.
8813         * tests/test-ldexpl.c (minus_zero): Likewise.
8814         * tests/test-roundl.c (minus_zero): Likewise.
8815         * tests/test-signbit.c (minus_zerol): Likewise.
8816         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8817         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8818         * tests/test-truncl.c (minus_zero): Likewise.
8819         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8820         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8821         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
8822         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8823
8824 2008-10-17  Bruno Haible  <bruno@clisp.org>
8825
8826         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
8827         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
8828         that it gets activated only for gcc >= 3.0.
8829         * lib/dirent.in.h: Likewise.
8830         * lib/errno.in.h: Likewise.
8831         * lib/fcntl.in.h: Likewise.
8832         * lib/float.in.h: Likewise.
8833         * lib/iconv.in.h: Likewise.
8834         * lib/inttypes.in.h: Likewise.
8835         * lib/locale.in.h: Likewise.
8836         * lib/math.in.h: Likewise.
8837         * lib/netdb.in.h: Likewise.
8838         * lib/netinet_in.in.h: Likewise.
8839         * lib/search.in.h: Likewise.
8840         * lib/signal.in.h: Likewise.
8841         * lib/spawn.in.h: Likewise.
8842         * lib/stdarg.in.h: Likewise.
8843         * lib/stdint.in.h: Likewise.
8844         * lib/stdio.in.h: Likewise.
8845         * lib/stdlib.in.h: Likewise.
8846         * lib/string.in.h: Likewise.
8847         * lib/strings.in.h: Likewise.
8848         * lib/sys_file.in.h: Likewise.
8849         * lib/sys_ioctl.in.h: Likewise.
8850         * lib/sys_select.in.h: Likewise.
8851         * lib/sys_socket.in.h: Likewise.
8852         * lib/sys_stat.in.h: Likewise.
8853         * lib/sys_time.in.h: Likewise.
8854         * lib/sysexits.in.h: Likewise.
8855         * lib/time.in.h: Likewise.
8856         * lib/unistd.in.h: Likewise.
8857         * lib/wchar.in.h: Likewise.
8858         * lib/wctype.in.h: Likewise.
8859         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8860
8861 2008-10-17  Jim Meyering  <meyering@redhat.com>
8862
8863         ignore-value: don't depend on inline module
8864         * modules/ignore-value (Depends-on): Remove 'inline'.
8865         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
8866         Suggestion from Bruno Haible.
8867
8868 2008-10-17  Bruno Haible  <bruno@clisp.org>
8869
8870         New implementation of condition variables for Win32.
8871         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
8872         (gl_linked_waitqueue_t): New type.
8873         (gl_cond_t): Use it.
8874         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
8875         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
8876         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
8877         (glthread_cond_init_func, glthread_cond_wait_func,
8878         glthread_cond_timedwait_func, glthread_cond_signal_func,
8879         glthread_cond_broadcast_func, glthread_cond_destroy_func):
8880         Reimplemented on the basis of gl_linked_waitqueue_t.
8881         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
8882         gl_waitqueue_t.
8883         (gl_rwlock_t): Update.
8884         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
8885
8886 2008-10-17  Simon Josefsson  <simon@josefsson.org>
8887
8888         * modules/recvfrom (Depends-on): Add dependency on getpeername.
8889         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8890
8891 2008-10-17  Jim Meyering  <meyering@redhat.com>
8892
8893         ignore-value: new module
8894         * modules/ignore-value: New file.
8895         * lib/ignore-value.h: New file.
8896         * MODULES.html.sh (Compiler warning management): New section,
8897         just for this module.  More to come.
8898
8899 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
8900
8901         open-safer.c: avoid 'signed and unsigned in conditional...' warning
8902         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
8903         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
8904
8905 2008-10-16  Jim Meyering  <meyering@redhat.com>
8906
8907         openat-die.c: avoid 'no previous prototype' warning
8908         * lib/openat-die.c: Include "openat.h".
8909         Reported by Reuben Thomas <rrt@sc3d.org>.
8910
8911 2008-10-16  Simon Josefsson  <simon@josefsson.org>
8912
8913         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
8914         * lib/netdb.in.h: Fix typo.
8915         Reported by Bruno Haible  <bruno@clisp.org>
8916
8917         * lib/netdb.in.h: Include sys/socket.h for platforms without
8918         netdb.h, to get structures like hostent on MinGW.
8919         * modules/netdb (Depends-on): Add sys_socket.
8920
8921 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8922
8923         * modules/netdb, modules/netdb-tests: New file.
8924         * m4/netdb_h.m4: New file.
8925         * lib/netdb.in.h: Add, currently just an empty file pending
8926         definitions.
8927         * tests/test-netdb.c: New file.
8928         * doc/posix-headers/netdb.texi: Mention that we replace it if
8929         needed.
8930         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8931         netdb.
8932
8933 2008-10-15  Simon Josefsson  <simon@josefsson.org>
8934
8935         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
8936         with code.
8937
8938 2008-10-13  Bruno Haible  <bruno@clisp.org>
8939
8940         * lib/glthread/cond.c (glthread_cond_wait_func,
8941         glthread_cond_timedwait_func): Add a comment.
8942
8943 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8944
8945         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
8946         * tests/test-select.c: Likewise,
8947
8948 2008-10-13  Bruno Haible  <bruno@clisp.org>
8949
8950         * lib/glthread/cond.c (glthread_cond_wait_func,
8951         glthread_cond_timedwait_func): Fix variable name.
8952         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8953
8954 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
8955
8956         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
8957         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
8958         struct sockaddr.sa_len.
8959         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
8960
8961 2008-10-13  Simon Josefsson  <simon@josefsson.org>
8962
8963         * build-aux/pmccabe2html: Add css and css_url parameters.
8964
8965 2008-10-12  Bruno Haible  <bruno@clisp.org>
8966
8967         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
8968         calling aclx_get.
8969         Reported by Rainer Tammer <tammer@tammer.net>.
8970
8971 2008-10-12  Bruno Haible  <bruno@clisp.org>
8972
8973         Use msvcrt aware primitives for creation/termination of Win32 threads.
8974         * lib/glthread/thread.c: Include <process.h>.
8975         (glthread_create_func): Use _beginthreadex instead of CreateThread.
8976         (wrapper_func): Update signature.
8977         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
8978
8979 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
8980             Bruno Haible  <bruno@clisp.org>
8981
8982         Provide a Win32 implementation of the 'cond' module.
8983         * lib/glthread/cond.h [USE_WIN32]: New implementation.
8984         * lib/glthread/cond.c (glthread_cond_init_func,
8985         glthread_cond_wait_func, glthread_cond_timedwait_func,
8986         glthread_cond_signal_func, glthread_cond_broadcast_func,
8987         glthread_cond_destroy_func) [USE_WIN32]: New functions.
8988         * modules/cond (Dependencies): Add gettimeofday.
8989
8990 2008-10-11  Bruno Haible  <bruno@clisp.org>
8991
8992         Make sleep work on older versions of mingw.
8993         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
8994         only whether it exists.
8995         * doc/posix-functions/sleep.texi: Mention the problem with older
8996         versions of mingw.
8997
8998 2008-10-11  Bruno Haible  <bruno@clisp.org>
8999
9000         New module 'shutdown'.
9001         * modules/shutdown: New file.
9002         * lib/sys_socket.in.h (shutdown): New declaration.
9003         * lib/winsock.c (shutdown): New function.
9004         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9005         GNULIB_SHUTDOWN.
9006         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
9007         * doc/posix-functions/shutdown.texi: Document the new module.
9008
9009 2008-10-11  Jim Meyering  <meyering@redhat.com>
9010
9011         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
9012
9013 2008-10-11  Bruno Haible  <bruno@clisp.org>
9014
9015         New module 'fclose'.
9016         * modules/fclose: New file.
9017         * lib/stdio.in.h (fclose): New declaration.
9018         * lib/fclose.c: New file.
9019         * m4/fclose.m4: New file.
9020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
9021         REPLACE_FCLOSE.
9022         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
9023         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
9024         REPLACE_FCLOSE.
9025         * modules/close (Depends-on): fclose.
9026         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
9027
9028 2008-10-11  Bruno Haible  <bruno@clisp.org>
9029
9030         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
9031         set errno and don't call _close.
9032
9033 2008-10-10  Bruno Haible  <bruno@clisp.org>
9034
9035         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
9036         ACL, not afterwards. Fixes test failure on Cygwin.
9037
9038 2008-10-09  Ben Pfaff  <blp@gnu.org>
9039
9040         * build-aux/announce-gen: Fix gnulib version related part of usage
9041         message.  Die with a useful error message if no tarballs are
9042         found.
9043
9044 2008-10-10  Jim Meyering  <meyering@redhat.com>
9045
9046         bootstrap: use git's --depth=N option only if it's supported
9047         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
9048         recognize the --depth option.  Reported by Pádraig Brady.
9049
9050 2008-10-09  Bruno Haible  <bruno@clisp.org>
9051
9052         New module 'ioctl'.
9053         * modules/ioctl: New file.
9054         * lib/sys_socket.in.h (ioctl): Remove declaration.
9055         * lib/winsock.c: Include <sys/ioctl.h>.
9056         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
9057         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9058         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
9059         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
9060         * doc/posix-functions/ioctl.texi: Mention the new module.
9061
9062 2008-10-09  Bruno Haible  <bruno@clisp.org>
9063
9064         New module 'sys_ioctl'.
9065         * lib/sys_ioctl.in.h: New file.
9066         * m4/sys_ioctl_h.m4: New file.
9067         * modules/sys_ioctl: New file.
9068         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
9069
9070 2008-10-09  Bruno Haible  <bruno@clisp.org>
9071
9072         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
9073         * lib/winsock.c: Include <stdarg.h>.
9074         (rpl_ioctl): Change to second argument 'int' and then varargs.
9075
9076 2008-10-09  Bruno Haible  <bruno@clisp.org>
9077
9078         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
9079         when the sys_socket module is present and the system has <winsock2.h>.
9080
9081 2008-10-09  Bruno Haible  <bruno@clisp.org>
9082
9083         * doc/posix-functions/close.texi: Mention module 'close' instead of
9084         module 'sys_socket'.
9085
9086 2008-10-09  Bruno Haible  <bruno@clisp.org>
9087
9088         * doc/glibc-headers/sys_ioctl.texi: New file.
9089         * doc/gnulib.texi: Include it.
9090
9091 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9092             Bruno Haible  <bruno@clisp.org>
9093
9094         Combine the two replacements of 'close'.
9095         * lib/sys_socket.in.h (close): Define to a reminder to include
9096         <unistd.h>.
9097         (_gl_close_fd_maybe_socket): New declaration.
9098         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
9099         * lib/winsock.c (close): Remove undefinition.
9100         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
9101         needed for the gnulib module 'close'.
9102         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
9103         define to an error symbol or to a warning, if suitable.
9104         * lib/close.c: Include <sys/socket.h>.
9105         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
9106         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
9107         UNISTD_H_HAVE_WINSOCK2_H.
9108         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
9109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9110         UNISTD_H_HAVE_WINSOCK2_H.
9111         * modules/sys_socket (Files): Add m4/unistd_h.m4.
9112         (configure.ac): Set a module indicator.
9113         (Makefile.am): Substitute GNULIB_CLOSE.
9114         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
9115         * modules/poll-tests (Depends-on): Add close.
9116         * modules/select-tests (Depends-on): Likewise.
9117
9118 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9119             Bruno Haible  <bruno@clisp.org>
9120
9121         New module 'close'.
9122         * modules/close: New file.
9123         * lib/unistd.in.h (close): Move declaration out of the
9124         FCHDIR_REPLACEMENT scope.
9125         (_gl_unregister_fd): New declaration.
9126         * lib/close.c: New file.
9127         * lib/fchdir.c (rpl_close): Remove function.
9128         * m4/close.m4: New file.
9129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9130         close.
9131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
9132         REPLACE_CLOSE.
9133         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
9134         REPLACE_CLOSE.
9135         * modules/fchdir (Depends-on): Add close.
9136
9137 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9138             Bruno Haible  <bruno@clisp.org>
9139
9140         * lib/fcntl.in.h (open): Simplify conditionals.
9141         (_gl_register_fd): New declaration.
9142         * lib/fchdir.c (rpl_open): Remove function.
9143         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
9144         also.
9145         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
9146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9147         open.
9148
9149 2008-10-09  Jim Meyering  <meyering@redhat.com>
9150
9151         GNUmakefile: use the more name-space-friendly "_version"
9152         * top/GNUmakefile (_dummy): Update.
9153         (_version): Rename from "version".
9154
9155 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9156             Bruno Haible  <bruno@clisp.org>
9157
9158         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
9159         rpl_close.
9160         (_gl_register_fd): New function, extracted from rpl_open.
9161         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
9162         (rpl_open, rpl_opendir): Use _gl_register_fd.
9163
9164 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9165
9166         Fix organization of 'open' replacement.
9167         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
9168         (gl_FUNC_OPEN): Use it.
9169         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
9170
9171 2008-10-08  Bruno Haible  <bruno@clisp.org>
9172
9173         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
9174
9175 2008-10-08  Simon Josefsson  <simon@josefsson.org>
9176
9177         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
9178         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
9179         listen).
9180
9181 2008-10-08  Eric Blake  <ebb9@byu.net>
9182
9183         GNUmakefile: add 'make version' target
9184         * top/GNUmakefile (_curr-ver): Split version update rules...
9185         (version): ...into a target.
9186
9187 2008-10-07  Bruno Haible  <bruno@clisp.org>
9188
9189         Use a more portable replacement expression for -0.0L.
9190         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
9191         instead of -0.0L. Fix m4 quotation.
9192
9193         * tests/test-signbit.c: Include <float.h>.
9194         (minus_zero): New variable.
9195         (test_signbitl): Use minus_zero instead of -zero.
9196         * modules/signbit-tests (Depends-on): Add float.
9197
9198         * tests/test-ceill.c: Include <float.h>.
9199         (zero): Remove variable.
9200         (minus_zero): New variable.
9201         (main): Use minus_zero instead of -zero.
9202         * modules/ceill-tests (Depends-on): Add float.
9203
9204         * tests/test-floorl.c: Include <float.h>.
9205         (zero): Remove variable.
9206         (minus_zero): New variable.
9207         (main): Use minus_zero instead of -zero.
9208         * modules/floorl-tests (Depends-on): Add float.
9209
9210         * tests/test-roundl.c: Include <float.h>.
9211         (zero): Remove variable.
9212         (minus_zero): New variable.
9213         (main): Use minus_zero instead of -zero.
9214         * modules/roundl-tests (Depends-on): Add float.
9215
9216         * tests/test-truncl.c: Include <float.h>.
9217         (zero): Remove variable.
9218         (minus_zero): New variable.
9219         (main): Use minus_zero instead of -zero.
9220         * modules/truncl-tests (Depends-on): Add float.
9221
9222         * tests/test-frexpl.c (zero): Remove variable.
9223         (minus_zero): New variable.
9224         (main): Use minus_zero instead of -zero.
9225         * modules/frexpl-tests (Depends-on): Add float.
9226
9227         * tests/test-isnan.c (zerol): Remove variable.
9228         (minus_zerol): New variable.
9229         (test_long_double): Use minus_zerol instead of -zerol.
9230         * modules/isnan-tests (Depends-on): Add float.
9231
9232         * tests/test-isnanl.h (zero): Remove variable.
9233         (minus_zero): New variable.
9234         (main): Use minus_zero instead of -zero.
9235         * modules/isnanl-nolibm-tests (Depends-on): Add float.
9236         * modules/isnanl-tests (Depends-on): Add float.
9237
9238         * tests/test-ldexpl.c (zero): Remove variable.
9239         (minus_zero): New variable.
9240         (main): Use minus_zero instead of -zero.
9241         * modules/ldexpl-tests (Depends-on): Add float.
9242
9243         * tests/test-snprintf-posix.h (zerol): Remove variable.
9244         (minus_zerol): New variable.
9245         (test_function): Use minus_zerol instead of -zerol.
9246         * modules/snprintf-posix-tests (Depends-on): Add float.
9247         * modules/vsnprintf-posix-tests (Depends-on): Add float.
9248
9249         * tests/test-sprintf-posix.h (zerol): Remove variable.
9250         (minus_zerol): New variable.
9251         (test_function): Use minus_zerol instead of -zerol.
9252         * modules/sprintf-posix-tests (Depends-on): Add float.
9253         * modules/vsprintf-posix-tests (Depends-on): Add float.
9254
9255         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
9256         (minus_zerol): New variable.
9257         (test_function): Use minus_zerol instead of -zerol.
9258         * modules/vasnprintf-posix-tests (Depends-on): Add float.
9259
9260         * tests/test-vasprintf-posix.c (zerol): Remove variable.
9261         (minus_zerol): New variable.
9262         (test_function): Use minus_zerol instead of -zerol.
9263         * modules/vasprintf-posix-tests (Depends-on): Add float.
9264
9265 2008-10-07  Simon Josefsson  <simon@josefsson.org>
9266
9267         * MODULES.html.sh (Support for building documentation): Mention
9268         pmccabe2html.  Sort entries.
9269
9270         Add pmccabe2html module, from gnupdf.
9271         * build-aux/pmccabe.css: New file.
9272         * build-aux/pmccabe2html: New file.
9273         * m4/pmccabe2html.m4: New file.
9274         * modules/pmccabe2html: New file.
9275
9276 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
9277
9278         flock: new module
9279         * MODULES.html.sh: Add to list of modules.
9280         * lib/flock.c: flock implementation for Windows and Unix systems
9281         which have fcntl.
9282         * doc/glibc-functions/flock.texi: Update documentation.
9283         * lib/sys_file.in.h: <sys/file.h> header file.
9284         * m4/flock.m4: M4 macros.
9285         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
9286         * modules/flock: flock module.
9287         * modules/flock-tests: flock tests module.
9288         * modules/sys_file: sys/file.h module.
9289         * tests/test-flock.c: test suite for flock.
9290
9291 2008-10-06  Jim Meyering  <meyering@redhat.com>
9292
9293         bootstrap: check for LT_INIT more portably still ;-)
9294         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
9295         Spotted by Bruno Haible.
9296
9297 2008-10-06  Eric Blake  <ebb9@byu.net>
9298
9299         test-signbit: avoid tripping Irix cc bug on -0.0L
9300         * tests/test-signbit.c (minus_zerol): Delete, and replace with
9301         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
9302         entire testsuite consistent and avoids an Irix 6.2 bug.
9303
9304 2008-10-05  Bruno Haible  <bruno@clisp.org>
9305             Jim Meyering  <jim@meyering.net>
9306
9307         Add an option for ignoring EPIPE during close_stdout.
9308         * lib/closeout.h: Include <stdbool.h>.
9309         (close_stdout_set_ignore_EPIPE): New declaration.
9310         * lib/closeout.c: Include <stdbool.h>.
9311         (ignore_EPIPE): New variable.
9312         (close_stdout_set_ignore_EPIPE): New function.
9313         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
9314         * lib/close-stream.c (close_stream): Mention the possible EPIPE
9315         failure.
9316         * modules/closeout (Depends-on): Add stdbool.
9317
9318 2008-10-05  Bruno Haible  <bruno@clisp.org>
9319
9320         * modules/accept: New file.
9321         * modules/bind: New file.
9322         * modules/connect: New file.
9323         * modules/getpeername: New file.
9324         * modules/getsockname: New file.
9325         * modules/getsockopt: New file.
9326         * modules/listen: New file.
9327         * modules/recv: New file.
9328         * modules/recvfrom: New file.
9329         * modules/send: New file.
9330         * modules/sendto: New file.
9331         * modules/setsockopt: New file.
9332         * modules/socket: New file.
9333         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
9334         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9335         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
9336         the particular module is requested. Add a link warning when the
9337         particular module is not requested.
9338         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
9339         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
9340         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
9341         the particular module is requested.
9342         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
9343         gl_SYS_SOCKET_H_DEFAULTS): New macros.
9344         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
9345         * modules/sys_socket (Depends-on): Add link-warning.
9346         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
9347         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
9348         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
9349         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
9350         GL_LINK_WARNING.
9351         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
9352         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
9353         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
9354         * doc/posix-functions/getpeername.texi: Mention the new module
9355         'getpeername'.
9356         * doc/posix-functions/getsockname.texi: Mention the new module
9357         'getsockname'.
9358         * doc/posix-functions/getsockopt.texi: Mention the new module
9359         'getsockopt'.
9360         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
9361         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
9362         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
9363         * doc/posix-functions/send.texi: Mention the new module 'send'.
9364         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
9365         * doc/posix-functions/setsockopt.texi: Mention the new module
9366         'setsockopt'.
9367         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
9368         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
9369         listen, connect, accept.
9370         * modules/select-tests (Depends-on): Likewise.
9371
9372 2008-10-05  Bruno Haible  <bruno@clisp.org>
9373
9374         * lib/winsock.c (strerror): Remove unused #undef.
9375         (rpl_close): Remove unused local variable.
9376
9377         * modules/sys_socket (Depends-on); Add errno.
9378
9379 2008-10-05  Bruno Haible  <bruno@clisp.org>
9380
9381         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
9382         (select): Add a link warning when the 'select' module is not used.
9383         * modules/sys_select (Depends-on): Add link-warning.
9384         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
9385         Suggested by Paolo Bonzini.
9386
9387 2008-10-05  Jim Meyering  <meyering@redhat.com>
9388
9389         bootstrap: check for LT_INIT more portably
9390         * build-aux/bootstrap: Avoid using grep -E, since it's not
9391         portable enough.  Suggestion from Bruno Haible.
9392
9393 2008-10-05  Bruno Haible  <bruno@clisp.org>
9394
9395         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
9396         as being fixed by gnulib.
9397
9398 2008-10-05  Bruno Haible  <bruno@clisp.org>
9399
9400         * modules/select-tests: New file, mostly copied from
9401         modules/sys_select-tests.
9402         * tests/test-select.c: New file, mostly copied from
9403         tests/test-sys_select.c.
9404         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
9405         * modules/sys_select-tests (Depends-on): Remove all dependencies.
9406         (Makefile.am): Remove test_sys_select_LDADD.
9407
9408         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
9409         to an undefined symbol, for an error message.
9410         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
9411         (gl_SYS_SELECT_H_DEFAULTS): New macro.
9412         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
9413         winsock-select.c here.
9414         * modules/sys_select (Files): Remove lib/winsock-select.c.
9415         (Depends-on): Remove alloca.
9416         (Makefile.am): Substitute GNULIB_SELECT.
9417         * modules/select: New file.
9418         * doc/posix-functions/select.texi: Update.
9419
9420 2008-10-05  Bruno Haible  <bruno@clisp.org>
9421
9422         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
9423         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
9424         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
9425         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
9426         getdtablesize.
9427         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9428         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9429
9430 2008-10-05  Bruno Haible  <bruno@clisp.org>
9431
9432         * modules/getdtablesize-tests: New file.
9433         * tests/test-getdtablesize.c: New file.
9434
9435         New module 'getdtablesize'.
9436         * lib/unistd.in.h (getdtablesize): New declaration.
9437         * lib/getdtablesize.c: New file.
9438         * m4/getdtablesize.m4: New file.
9439         * modules/getdtablesize: New file.
9440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9441         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
9442         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
9443         HAVE_GETDTABLESIZE.
9444         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
9445
9446 2008-10-05  Bruno Haible  <bruno@clisp.org>
9447
9448         * modules/sched (Makefile.am): Fix typo.
9449         Reported by Simon Josefsson.
9450
9451 2008-10-05  Jim Meyering  <meyering@redhat.com>
9452
9453         bootstrap: check for LT_INIT, too
9454         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
9455         are deprecated.  Suggestion from Ralf Wildenhues.
9456
9457 2008-10-05  Bruno Haible  <bruno@clisp.org>
9458
9459         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
9460         overriding them by ours.
9461         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
9462
9463 2008-10-05  Jim Meyering  <meyering@redhat.com>
9464
9465         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
9466         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
9467         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
9468
9469 2008-10-04  Bruno Haible  <bruno@clisp.org>
9470
9471         * modules/dup2 (License): Change to LGPLv2+.
9472         * modules/sleep (License): Likewise.
9473         * modules/perror (License): Likewise.
9474         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
9475         Blake.
9476         * modules/signal (License): Likewise.
9477         * modules/sigprocmask (License): Likewise.
9478         * modules/raise (License): Change to LGPLv2+, with approval by Jim
9479         Meyering.
9480
9481 2008-10-04  Bruno Haible  <bruno@clisp.org>
9482
9483         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
9484         Reported by Rainer Tammer <tammer@tammer.net>.
9485
9486 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
9487             Bruno Haible  <bruno@clisp.org>
9488
9489         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
9490         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
9491         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
9492
9493 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
9494
9495         filevercmp: new module
9496         * lib/filevercmp.h: New function filevercmp comparing version strings.
9497         * lib/filevercmp.c: Implementation of filevercmp function.
9498         * modules/filevercmp: Module metadata.
9499         * tests/test-filevercmp.c: Unit test for new module.
9500         * modules/filevercmp-tests: Unit test metadata.
9501         * MODULES.html.sh: Add filevercmp module.
9502
9503 2008-10-03  Bruno Haible  <bruno@clisp.org>
9504
9505         * lib/c-ctype.h: Add comment.
9506         Reported by Jim Meyering.
9507
9508 2008-10-02  Bruno Haible  <bruno@clisp.org>
9509
9510         * modules/posix_spawn-internal (Depends-on): Add 'open'.
9511
9512 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9513
9514         * build-aux/bootstrap: Allow renaming bootstrap, and change the
9515         name of bootstrap.conf accordingly.
9516
9517 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9518
9519         * build-aux/bootstrap: Install git-merge-changelog configuration
9520         items into .gitconfig if needed.
9521
9522 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9523
9524         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
9525         git repository, and initialize/update it accordingly.
9526
9527 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
9528
9529         * modules/fsync-tests: New file.
9530         * tests/test-fsync.c: New file.
9531
9532         New module 'fsync'.
9533         * lib/fsync.c: New file.
9534         * m4/fsync.m4: New file.
9535         * modules/fsync: New file.
9536         * lib/unistd.in.h (fsync): New declaration.
9537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
9538         GNULIB_FSYNC and HAVE_FSYNC.
9539         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
9540         * MODULES.html.sh (posix_functions): Add fsync.
9541         * doc/posix-functions/fsync.texi: Mention the new module.
9542
9543 2008-10-02  Jim Meyering  <meyering@redhat.com>
9544
9545         fts.c: sync with similar code from coreutils' remove.c
9546         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
9547         Guard also with "#if defined __linux__", since for now at least,
9548         this code is Linux-kernel-specific.
9549
9550 2008-10-02  Jim Meyering  <meyering@redhat.com>
9551
9552         fts: bug fixes
9553         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
9554         Include <sys/vfs.h>, not <sys/statfs.h>.
9555
9556         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
9557         Include <sys/vfs.h>, not <sys/statfs.h>.
9558
9559 2008-10-01  Bruno Haible  <bruno@clisp.org>
9560
9561         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
9562         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
9563         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
9564         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
9565         * doc/posix-functions/posix_spawnp.texi: Likewise.
9566         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
9567         whether posix_spawn actually works.
9568         * m4/pipe.m4 (gl_PIPE): Likewise.
9569         * modules/execute (Files): Add m4/posix_spawn.m4.
9570         * modules/pipe (Files): Add m4/posix_spawn.m4.
9571         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
9572
9573 2008-10-01  Jim Meyering  <meyering@redhat.com>
9574
9575         remove trailing spaces
9576         * NEWS: Likewise.
9577         * lib/poll.c (poll): Likewise.
9578         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
9579         * lib/winsock.c (rpl_close): Likewise.
9580         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
9581         * modules/yield: Likewise.
9582         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
9583         * tests/test-sys_select.c (connect_to_socket): Likewise.
9584
9585         fts.c: adjust a new interface to be more generally useful
9586         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
9587         (fts_build): Adjust caller.
9588
9589 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9590
9591         * modules/cond-tests: New file.
9592         * tests/test-cond.c: New file.
9593
9594 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9595             Bruno Haible  <bruno@clisp.org>
9596
9597         * modules/cond (Dependencies): Add errno, time.
9598         * lib/glthread/cond.h: Include <time.h>.
9599         (gl_cond_define, gl_cond_define_initialized): Use the same definition
9600         across platforms.
9601
9602 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9603             Bruno Haible  <bruno@clisp.org>
9604
9605         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
9606
9607 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9608             Bruno Haible  <bruno@clisp.org>
9609
9610         * modules/tls-tests (Depends-on): Add thread, yield.
9611         (configure.ac): Remove all checks.
9612         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
9613         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9614         gl_thread_self): Remove definitions. Include glthread/thread.h and
9615         glthread/yield.h instead.
9616         (test_tls): Pass an additional NULL argument to gl_thread_join.
9617
9618 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9619             Bruno Haible  <bruno@clisp.org>
9620
9621         * modules/lock-tests (Depends-on): Add thread, yield.
9622         (configure.ac): Remove all checks.
9623         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
9624         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9625         gl_thread_self): Remove definitions. Include glthread/thread.h and
9626         glthread/yield.h instead.
9627         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
9628         additional NULL argument to gl_thread_join.
9629
9630 2008-09-30  Bruno Haible  <bruno@clisp.org>
9631
9632         Fix the Win32 implementation of the 'thread' module.
9633         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
9634         pointer type.
9635         (gl_thread_self): Invoke gl_thread_self_func.
9636         (gl_thread_self_func): New declaration.
9637         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
9638         (do_init_self_key, init_self_key): New functions.
9639         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
9640         Remove some fields.
9641         (running_threads, running_lock): Remove variables.
9642         (get_current_thread_handle): New function.
9643         (gl_thread_self_func, wrapper_func, glthread_create_func,
9644         glthread_join_func, gl_thread_exit_func): Largely rewritten and
9645         simplified.
9646
9647 2008-09-30  Bruno Haible  <bruno@clisp.org>
9648
9649         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
9650         files.
9651
9652 2008-09-30  Jim Meyering  <meyering@redhat.com>
9653
9654         fts.m4: correct the test for statfs.f_type
9655         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
9656         when checking for statfs.f_type.
9657
9658 2008-09-15  Simon Josefsson  <simon@josefsson.org>
9659
9660         tests: avoid some compiler warnings
9661         * tests/test-memchr.c (main): Pass NULL indirectly.
9662         * tests/test-getdate.c (main): Remove unused variable 'ret'.
9663
9664 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
9665
9666         getdate.y: disallow countable dayshifts like "4 yesterday ago"
9667         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
9668         exactly specified dayshifts.
9669         (dayshift): New rule.
9670         (rel): Add dayshift.
9671         (relative_time_table) [tomorrow, yesterday, today, now]:
9672         Use tDAY_SHIFT in place of tDAY_UNIT.
9673         * tests/test-getdate.c: Add tests for now-disallowed countable
9674         dayshifts, e.g., "4 yesterday ago".
9675
9676 2008-09-29  Bruno Haible  <bruno@clisp.org>
9677
9678         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
9679         * tests/test-posix_spawn1.in.sh: Renamed from
9680         tests/test-posix_spawn.in.sh.
9681         * tests/test-posix_spawn2.c: New file.
9682         * tests/test-posix_spawn2.in.sh: New file.
9683         * modules/posix_spawnp-tests (Files): Update.
9684         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
9685
9686 2008-09-29  Bruno Haible  <bruno@clisp.org>
9687
9688         Propagate effects of putenv/setenv/unsetenv to child processes.
9689         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
9690         * lib/pipe.c (create_pipe): Likewise.
9691
9692 2008-09-29  Bruno Haible  <bruno@clisp.org>
9693
9694         Enable use of shell scripts as executables in mingw.
9695         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
9696         run the program as a shell script.
9697         * lib/pipe.c (create_pipe): Likewise.
9698         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
9699         resulting array.
9700
9701 2008-09-29  Eric Blake  <ebb9@byu.net>
9702
9703         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
9704
9705 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
9706
9707         * doc/posix-functions/accept.texi: Update mingw problems.
9708         * doc/posix-functions/bind.texi: Update mingw problems.
9709         * doc/posix-functions/close.texi: Update mingw problems.
9710         * doc/posix-functions/connect.texi: Update mingw problems.
9711         * doc/posix-functions/getpeername.texi: Update mingw problems.
9712         * doc/posix-functions/getsockname.texi: Update mingw problems.
9713         * doc/posix-functions/getsockopt.texi: Update mingw problems.
9714         * doc/posix-functions/ioctl.texi: Update mingw problems.
9715         * doc/posix-functions/listen.texi: Update mingw problems.
9716         * doc/posix-functions/recv.texi: Update mingw problems.
9717         * doc/posix-functions/recvfrom.texi: Update mingw problems.
9718         * doc/posix-functions/select.texi: Update mingw problems.
9719         * doc/posix-functions/send.texi: Update mingw problems.
9720         * doc/posix-functions/sendto.texi: Update mingw problems.
9721         * doc/posix-functions/setsockopt.texi: Update mingw problems.
9722         * doc/posix-functions/socket.texi: Update mingw problems.
9723
9724 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
9725             Bruno Haible  <bruno@clisp.org>
9726
9727         * lib/sys_select.in.h: Include sys/time.h.
9728         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
9729         * modules/sys_select: Depend on sys_time.
9730         * tests/test-sys_select.c: Test that sys/select.h defines struct
9731         timeval fully.
9732
9733 2008-09-29  Bruno Haible  <bruno@clisp.org>
9734
9735         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
9736         * lib/sys_select.in.h: Likewise.
9737
9738 2008-09-29  Bruno Haible  <bruno@clisp.org>
9739
9740         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
9741
9742 2008-09-29  Bruno Haible  <bruno@clisp.org>
9743
9744         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
9745         Set LIBSOCKET instead of augmenting LIBS.
9746         * modules/sockets (Link): New section.
9747         * modules/sockets-tests (test_sockets_LDADD): New variable.
9748         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
9749         * modules/poll-tests (test_poll_LDADD): New variable.
9750         * NEWS: Document the change.
9751
9752 2008-09-29  Bruno Haible  <bruno@clisp.org>
9753
9754         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
9755         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
9756         ARPA_INET_H directly.
9757         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9758
9759 2008-09-28  Bruno Haible  <bruno@clisp.org>
9760
9761         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
9762         from gl_HEADER_SYS_SOCKET.
9763         (gl_HEADER_SYS_SOCKET): Invoke it.
9764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9765
9766 2008-09-28  Bruno Haible  <bruno@clisp.org>
9767
9768         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
9769         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
9770         Needed on OSF/1 4.0.
9771
9772 2008-09-28  Bruno Haible  <bruno@clisp.org>
9773
9774         Override open more carefully.
9775         * lib/open.c (orig_open): New function.
9776         (rpl_open): Use orig_open instead of open.
9777         * lib/fcntl.in.h: Add special invocation convention.
9778         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
9779         (gl_FUNC_OPEN): Invoke it.
9780
9781         Override freopen more carefully.
9782         * lib/freopen.c (orig_freopen): New function.
9783         (rpl_freopen): Use orig_freopen instead of freopen.
9784         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
9785         (gl_FUNC_FREOPEN): Invoke it.
9786
9787         Override fopen more carefully.
9788         * lib/fopen.c (orig_fopen): New function.
9789         (rpl_fopen): Use orig_fopen instead of fopen.
9790         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
9791         (gl_FUNC_FOPEN): Invoke it.
9792         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
9793
9794 2008-09-28  Bruno Haible  <bruno@clisp.org>
9795
9796         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
9797         SIGPIPE.
9798
9799 2008-09-28  Bruno Haible  <bruno@clisp.org>
9800
9801         * tests/test-sigaction.c (handler, main): Disable the check whether
9802         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
9803         glibc systems with LinuxThreads.
9804
9805 2008-09-28  Bruno Haible  <bruno@clisp.org>
9806
9807         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
9808
9809         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
9810         with AIX xlc.
9811         * lib/fcntl.in.h (open): Likewise.
9812         Reported by Rainer Tammer <tammer@tammer.net>.
9813
9814 2008-09-28  Bruno Haible  <bruno@clisp.org>
9815
9816         * modules/posix_spawnp-tests: New file.
9817         * tests/test-posix_spawn.c: New file.
9818         * tests/test-posix_spawn.in.sh: New file.
9819
9820         New module 'posix_spawnp'.
9821         * modules/posix_spawnp: New file.
9822         * lib/spawnp.c: New file, from GNU libc with modifications.
9823         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
9824
9825         New module 'posix_spawn'.
9826         * modules/posix_spawn: New file.
9827         * lib/spawn.c: New file, from GNU libc with modifications.
9828         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9829
9830         New module 'posix_spawnattr_destroy'.
9831         * modules/posix_spawnattr_destroy: New file.
9832         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
9833         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
9834         module.
9835
9836         New module 'posix_spawnattr_setsigmask'.
9837         * modules/posix_spawnattr_setsigmask: New file.
9838         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
9839         modifications.
9840         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
9841         new module.
9842
9843         New module 'posix_spawnattr_getsigmask'.
9844         * modules/posix_spawnattr_getsigmask: New file.
9845         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
9846         modifications.
9847         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
9848         new module.
9849
9850         New module 'posix_spawnattr_setsigdefault'.
9851         * modules/posix_spawnattr_setsigdefault: New file.
9852         * lib/spawnattr_setdefault.c: New file, from GNU libc with
9853         modifications.
9854         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
9855         new module.
9856
9857         New module 'posix_spawnattr_getsigdefault'.
9858         * modules/posix_spawnattr_getsigdefault: New file.
9859         * lib/spawnattr_getdefault.c: New file, from GNU libc with
9860         modifications.
9861         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
9862         new module.
9863
9864         New module 'posix_spawnattr_setschedpolicy'.
9865         * modules/posix_spawnattr_setschedpolicy: New file.
9866         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
9867         modifications.
9868         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
9869         new module.
9870
9871         New module 'posix_spawnattr_getschedpolicy'.
9872         * modules/posix_spawnattr_getschedpolicy: New file.
9873         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
9874         modifications.
9875         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
9876         new module.
9877
9878         New module 'posix_spawnattr_setschedparam'.
9879         * modules/posix_spawnattr_setschedparam: New file.
9880         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
9881         modifications.
9882         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
9883         new module.
9884
9885         New module 'posix_spawnattr_getschedparam'.
9886         * modules/posix_spawnattr_getschedparam: New file.
9887         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
9888         modifications.
9889         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
9890         new module.
9891
9892         New module 'posix_spawnattr_setpgroup'.
9893         * modules/posix_spawnattr_setpgroup: New file.
9894         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
9895         modifications.
9896         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
9897         module.
9898
9899         New module 'posix_spawnattr_getpgroup'.
9900         * modules/posix_spawnattr_getpgroup: New file.
9901         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
9902         modifications.
9903         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
9904         module.
9905
9906         New module 'posix_spawnattr_setflags'.
9907         * modules/posix_spawnattr_setflags: New file.
9908         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
9909         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
9910         module.
9911
9912         New module 'posix_spawnattr_getflags'.
9913         * modules/posix_spawnattr_getflags: New file.
9914         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
9915         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
9916         module.
9917
9918         New module 'posix_spawnattr_init'.
9919         * modules/posix_spawnattr_init: New file.
9920         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
9921         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
9922         module.
9923
9924         New module 'posix_spawn_file_actions_destroy'.
9925         * modules/posix_spawn_file_actions_destroy: New file.
9926         * lib/spawn_faction_destroy.c: New file, from GNU libc with
9927         modifications.
9928         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
9929         the new module.
9930
9931         New module 'posix_spawn_file_actions_addopen'.
9932         * modules/posix_spawn_file_actions_addopen: New file.
9933         * lib/spawn_faction_addopen.c: New file, from GNU libc with
9934         modifications.
9935         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9936         the new module.
9937
9938         New module 'posix_spawn_file_actions_adddup2'.
9939         * modules/posix_spawn_file_actions_adddup2: New file.
9940         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
9941         modifications.
9942         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9943         the new module.
9944
9945         New module 'posix_spawn_file_actions_addclose'.
9946         * modules/posix_spawn_file_actions_addclose: New file.
9947         * lib/spawn_faction_addclose.c: New file, from GNU libc with
9948         modifications.
9949         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9950         the new module.
9951
9952         New module 'posix_spawn_file_actions_init'.
9953         * modules/posix_spawn_file_actions_init: New file.
9954         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
9955         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
9956         new module.
9957
9958         New module 'posix_spawn-internal'.
9959         * modules/posix_spawn-internal: New file.
9960         * lib/spawn_int.h: New file, from GNU libc with modifications.
9961         * lib/spawni.c: New file, from GNU libc with modifications.
9962         * m4/posix_spawn.m4: New file.
9963
9964         New module 'spawn'.
9965         * modules/spawn: New file.
9966         * lib/spawn.in.h: New file, from GNU libc with modifications.
9967         * m4/spawn_h.m4: New file.
9968         * doc/posix-headers/spawn.texi: Mention the new module.
9969
9970 2008-09-28  Bruno Haible  <bruno@clisp.org>
9971
9972         * modules/sched-tests: New file.
9973         * tests/test-sched.c: New file.
9974
9975         New module 'sched'.
9976         * modules/sched: New file.
9977         * lib/sched.in.h: New file.
9978         * m4/sched_h.m4: New file.
9979         * doc/posix-headers/sched.texi: Mention the new module.
9980
9981 2008-09-27  Eric Blake  <ebb9@byu.net>
9982
9983         Fix previous patch, and tweak references to $0.
9984         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
9985         (func_version, func_gnulib_dir): Don't call this program
9986         gnulib-tool.
9987         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
9988         with using $0 in function.
9989         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
9990         (func_fatal_error): Reuse the name the user invoked us with.
9991
9992 2008-09-27  Bruno Haible  <bruno@clisp.org>
9993
9994         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
9995         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
9996         (gl_ICONV_H): Not here.
9997         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9998         instead of assigning ICONV_H directly.
9999
10000         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
10001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
10002         WCHAR_H directly.
10003
10004 2008-09-27  Bruno Haible  <bruno@clisp.org>
10005
10006         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
10007         * modules/arpa_inet (Depends-on): Add link-warning.
10008         (Makefile.am): Insert the definition of GL_LINK-WARNING.
10009         * modules/unistd (Makefile.am): Likewise.
10010
10011 2008-09-26  Bruno Haible  <bruno@clisp.org>
10012
10013         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
10014         variables.
10015         (func_version): Essentially copied from gnulib-tool.
10016         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
10017         func_readlink): Copied from gnulib-tool.
10018
10019 2008-09-26  Bruno Haible  <bruno@clisp.org>
10020
10021         * gnulib-tool (func_version): Change directory to $gnulib_dir before
10022         invoking git-version-gen.
10023
10024 2008-09-26  Bruno Haible  <bruno@clisp.org>
10025
10026         * posix-modules: Update to directory names changed on 2008-01-19.
10027         Remove commas in output before splitting into words. No more need to
10028         avoid 'ftruncate' since 2007-02-19.
10029
10030 2008-09-26  Bruno Haible  <bruno@clisp.org>
10031
10032         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
10033
10034 2008-09-26  Bruno Haible  <bruno@clisp.org>
10035
10036         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
10037         * modules/fwriteerror (Depends-on): Add errno.
10038
10039 2008-09-26  Bruno Haible  <bruno@clisp.org>
10040
10041         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
10042         * tests/test-vc-list-files-cvs.sh: Likewise.
10043
10044 2008-09-26  Bruno Haible  <bruno@clisp.org>
10045
10046         * doc/posix-headers/sys_resource.texi: Reorder items.
10047
10048 2008-09-26  Jim Meyering  <meyering@redhat.com>
10049
10050         fts: tweak inode comparison function
10051         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
10052         inode numbers, as documented.
10053
10054         fts: sort dirent entries on inode number before traversing
10055         This avoids a quadratic, seek-related performance penalty when
10056         operating on a directory containing many entries (measurable at 10k;
10057         3.5 hours at 2 million entries with a cold cache) on certain types
10058         of file systems, including ext3 and ext4, but not tmpfs.
10059         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
10060         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
10061         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
10062         (fs_handles_readdir_ordered_dirents_efficiently): New function.
10063         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
10064         (fts_build): Set the stat.st_ino member from D_INO.
10065         If it is likely to be useful, sort dirent entries on inode number.
10066
10067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
10068         and the struct statfs.f_type member.
10069         * modules/fts (Depends-on): Add d-ino.
10070
10071 2008-09-26  Bruno Haible  <bruno@clisp.org>
10072
10073         * modules/sigpipe-die (Depends-on): Add sigpipe.
10074
10075         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
10076         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
10077         and GNULIB_STDIO_H_SIGPIPE are set.
10078         * lib/stdio-write.c: New file.
10079         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
10080         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10081         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10082         REPLACE_STDIO_WRITE_FUNCS.
10083         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
10084         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10085         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10086         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10087         * modules/stdio (Files): Add lib/stdio-write.c.
10088         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
10089         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10090         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10091         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10092         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
10093         REPLACE_FPRINTF_POSIX.
10094         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
10095         REPLACE_PRINTF_POSIX.
10096         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
10097         REPLACE_VFPRINTF_POSIX.
10098         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
10099         REPLACE_VPRINTF_POSIX.
10100         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
10101         SIGPIPE issue.
10102         * doc/posix-functions/fputc.texi: Likewise.
10103         * doc/posix-functions/fputs.texi: Likewise.
10104         * doc/posix-functions/fwrite.texi: Likewise.
10105         * doc/posix-functions/printf.texi: Likewise.
10106         * doc/posix-functions/putc.texi: Likewise.
10107         * doc/posix-functions/putchar.texi: Likewise.
10108         * doc/posix-functions/puts.texi: Likewise.
10109         * doc/posix-functions/vfprintf.texi: Likewise.
10110         * doc/posix-functions/vprintf.texi: Likewise.
10111
10112         * modules/safe-write (Depends-on): Add write.
10113
10114         * modules/sigpipe-tests: New file.
10115         * tests/test-sigpipe.c: New file.
10116         * tests/test-sigpipe.sh: New file.
10117
10118         * modules/write: New file.
10119         * lib/unistd.in.h: Include <sys/types.h>.
10120         (write): New declaration.
10121         * lib/write.c: New file.
10122         * m4/write.m4: New file.
10123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10124         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
10125         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
10126         GNULIB_WRITE, REPLACE_WRITE.
10127         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
10128         and the SIGPIPE issue.
10129
10130         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
10131         (raise): New declaration.
10132         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
10133         (ext_signal): New function.
10134         (rpl_raise): New function.
10135         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10136         GNULIB_SIGNAL_H_SIGPIPE.
10137         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
10138         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
10139
10140         * modules/sigpipe: New file.
10141         * m4/sigpipe.m4: New file.
10142
10143 2008-09-25  Derek Price  <derek@ximbiot.com>
10144             Bruno Haible  <bruno@clisp.org>
10145
10146         * gnulib-tool (func_import): Report all license incompatibilities, not
10147         just the first one.
10148
10149 2008-09-25  Bruno Haible  <bruno@clisp.org>
10150
10151         * gnulib-tool (func_import): When computing the edits, consider not
10152         only the Makefile.ams that exist but also those that will be generated.
10153
10154 2008-09-25  Simon Josefsson  <simon@josefsson.org>
10155
10156         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
10157         fixes gnulib-tool --test warning about duplicate dependency.
10158
10159 2008-09-25  Bruno Haible  <bruno@clisp.org>
10160
10161         * gnulib-tool: Don't ask the user to perform edits in the generated
10162         Makefile.ams.
10163         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
10164         apply to the Makefile.am being generated.
10165         (func_emit_tests_Makefile_am): Execute edits that apply to the
10166         Makefile.am being generated.
10167         (func_import): Setup list of Makefile.am edits before emitting the
10168         Makefile.ams, not at the end.
10169         (func_create_testdir): Update.
10170         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10171
10172 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10173
10174         * gnulib-tool (func_import): Store the --tests-base option in the
10175         comment in gnulib-cache.m4.
10176
10177 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
10178
10179         * NEWS: Document increased portability that sys_select now provides.
10180
10181         * lib/sys_select.in.h: Install select wrapper.
10182         * lib/sys_socket.in.h: Use more descriptive name when there is no
10183         select wrapper.
10184         * lib/winsock-select.c: New.
10185         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
10186         Require gl_HEADER_SYS_SOCKET.
10187         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
10188         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
10189         * tests/test-sys_select.c: Add functional tests.
10190
10191 2008-09-24  Eric Blake  <ebb9@byu.net>
10192
10193         open, fopen: close fd leak in last patch
10194         * lib/open.c (rpl_open): Close fd before returning error.
10195         * lib/fopen.c (rpl_fopen): Close fd before returning error.
10196         * doc/posix-functions/open.texi (open): Document that Irix also
10197         has the bug.
10198         * doc/posix-functions/fopen.texi (fopen): Likewise.
10199         Reported by Paolo Bonzini.
10200
10201 2008-09-24  Bruno Haible  <bruno@clisp.org>
10202
10203         Ensure that a filename ending in a slash cannot be used to access a
10204         non-directory.
10205         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
10206         to check whether it's really a directory.
10207         * lib/fopen.c: Include fcntl.h, unistd.h.
10208         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
10209         and fdopen().
10210         * modules/fopen (Depends-on): Add unistd.
10211         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
10212         * tests/test-fopen.c (main): Likewise.
10213         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
10214         * doc/posix-functions/fopen.texi: Likewise.
10215         Reported by Eric Blake.
10216
10217 2008-09-23  Eric Blake  <ebb9@byu.net>
10218
10219         c-stack: avoid compiler optimizations when provoking overflow
10220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
10221         recursion harder to optimize, to ensure a stack overflow occurs.
10222         * tests/test-c-stack.c (recurse): Likewise.
10223         Borrowed from libsigsegv.
10224
10225         c-stack: work around Irix sigaltstack bug
10226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
10227         whether sigaltstack uses wrong end of stack_t (copied in part from
10228         libsigsegv).
10229         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
10230         Irix bug, without requiring an over-allocation.
10231         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
10232         bug.
10233
10234         fopen: document mingw bug on directories
10235         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
10236         not allowing a stream visiting a directory, even though reading
10237         from such a stream is not portable.
10238
10239 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10240
10241         * lib/poll.c: Rewrite.
10242         * modules/poll: Depend on alloca.
10243
10244 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10245
10246         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
10247         instead define prototypes for a full set of wrappers.  Ensure
10248         that Cygwin does not use the compatibility code, which is only
10249         for MinGW.
10250         * lib/winsock.c: New.
10251         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
10252         * modules/sys_socket: Add lib/winsock.c.
10253
10254         * modules/poll-tests: Add errno and perror.
10255         * tests/test-poll.c: Use ioctl, not ioctlsocket.
10256
10257 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10258
10259         * tests/test-poll.c: Downgrade minimum needed Winsock version.
10260
10261 2008-09-23  Bruno Haible  <bruno@clisp.org>
10262
10263         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
10264         * doc/glibc-functions/*: Likewise.
10265
10266 2008-09-23  Simon Josefsson  <simon@josefsson.org>
10267
10268         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
10269         success.
10270
10271 2008-09-22  Eric Blake  <ebb9@byu.net>
10272             Bruno Haible  <bruno@clisp.org>
10273
10274         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
10275         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
10276         supply %A but mishandle pseudo-NaN.
10277         Reported by Simon Josefsson.
10278
10279 2008-09-21  Bruno Haible  <bruno@clisp.org>
10280
10281         * tests/test-lock.c (main): Tweak skip message.
10282         * tests/test-tls.c (main): Likewise.
10283
10284 2008-09-21  Bruno Haible  <bruno@clisp.org>
10285
10286         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
10287         whether 'struct sigaction' has sa_sigaction here...
10288         (gl_PREREQ_SIG_HANDLER_H): ... not here.
10289         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
10290
10291 2008-09-21  Bruno Haible  <bruno@clisp.org>
10292
10293         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
10294         section.
10295         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
10296         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
10297         the new section.
10298         (Support for obsolete systems lacking POSIX:2001): New section.
10299         (String handling <string.h>): Move strdup to the new section.
10300         Suggested by Simon Josefsson and Paolo Bonzini.
10301
10302 2008-09-21  Bruno Haible  <bruno@clisp.org>
10303
10304         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
10305         exponents in %e and %g results on 'long double'. Needed for mingw's
10306         improved *printf functions.
10307         * tests/test-vasprintf-posix.c (test_function): Likewise.
10308         * tests/test-snprintf-posix.h (test_function): Likewise.
10309         * tests/test-sprintf-posix.h (test_function): Likewise.
10310         Reported by Eric Blake.
10311
10312 2008-09-21  Bruno Haible  <bruno@clisp.org>
10313
10314         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
10315         * tests/test-sprintf-posix.h (test_function): Likewise.
10316
10317 2008-09-21  Bruno Haible  <bruno@clisp.org>
10318
10319         * modules/getpass (Depends-on): Add strdup-posix.
10320
10321         New module 'strdup-posix'.
10322         * modules/strdup-posix: New file.
10323         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
10324         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
10325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10326         REPLACE_STRDUP.
10327         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
10328         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
10329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10330         strdup-posix.
10331
10332         * modules/strdup (Depends-on): Remove malloc-posix.
10333
10334 2008-09-20  Bruno Haible  <bruno@clisp.org>
10335
10336         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
10337         Wildenhues.
10338
10339 2008-09-20  Bruno Haible  <bruno@clisp.org>
10340
10341         Ensure that wint_t gets defined on IRIX 5.3.
10342         * lib/wchar.in.h (wint_t): Define if not defined by the system.
10343         * lib/wctype.in.h (wint_t): Likewise.
10344         (__wctype_wint_t): Remove type.
10345         (isw*): Use wint_t instead of __wctype_wint_t.
10346         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
10347         * modules/wchar (Files): Add m4/wint_t.m4.
10348         (Makefile.am): Substitute HAVE_WINT_T.
10349         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
10350         * tests/test-wctype.c: Check that wint_t is defined.
10351         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
10352         * doc/posix-headers/wctype.texi: Likewise.
10353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10354
10355 2008-09-18  Bruno Haible  <bruno@clisp.org>
10356
10357         * gnulib-tool (func_exit): Update comment.
10358
10359 2008-09-18  Simon Josefsson  <simon@josefsson.org>
10360
10361         * modules/getaddrinfo (Depends-on): Remove strdup, this module
10362         assumes strdup exists and does not depend on strdup to return
10363         ENOMEM on out of memory conditions.
10364
10365 2008-09-18  Bruno Haible  <bruno@clisp.org>
10366
10367         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
10368         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
10369         digits for the exponent.
10370
10371 2008-09-18  Jim Meyering  <meyering@redhat.com>
10372             Bruno Haible  <bruno@clisp.org>
10373
10374         * lib/vasnprintf.c (decimal_point_char): Define also if
10375         NEED_PRINTF_INFINITE_LONG_DOUBLE.
10376
10377 2008-09-16  Bruno Haible  <bruno@clisp.org>
10378         and Eric Blake  <ebb9@byu.net>
10379
10380         vasnprintf: support Irix 5.3
10381         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
10382         that mishandle long double infinity.
10383         Reported by Tom G. Christensen.
10384
10385 2008-09-16  Bruno Haible  <bruno@clisp.org>
10386
10387         * doc/glibc-functions/scandir.texi: Mention the function is missing on
10388         Solaris 9.
10389         * doc/glibc-functions/alphasort.texi: Likewise.
10390         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
10391
10392 2008-09-16  Jim Meyering  <meyering@redhat.com>
10393
10394         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
10395         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
10396         a umask modification leak out of a subshell.  Otherwise, the
10397         opensolaris /bin/sh would be accepted and thus cause unwarranted
10398         failures in the coreutils test suite.
10399
10400 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
10401
10402         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
10403         to succeed.
10404
10405 2008-09-16  Jim Meyering  <meyering@redhat.com>
10406
10407         avoid spurious test failure when library is built without ACL support
10408         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
10409         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
10410         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
10411         * tests/test-copy-acl.sh: Likewise.
10412
10413 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10414
10415         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
10416         based on character occurrence counts.
10417
10418 2008-09-15  Eric Blake  <ebb9@byu.net>
10419
10420         tests: avoid some compiler warnings
10421         * tests/test-memchr.c (main): Pass NULL indirectly.
10422         * tests/test-closein.c (main): Avoid unused variable.
10423
10424 2008-09-15  Bruno Haible  <bruno@clisp.org>
10425
10426         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
10427         are missing on OpenBSD 4.0 individually.
10428         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10429
10430 2008-09-15  Bruno Haible  <bruno@clisp.org>
10431
10432         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
10433         * doc/posix-functions/strerror.texi: Mention also Cygwin.
10434         * doc/posix-functions/perror.texi: Likewise.
10435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
10436         is missing.
10437         Reported by Eric Blake.
10438
10439         * lib/errno.in.h: Use replacement values >= 2000.
10440         Reported by Eric Blake.
10441
10442 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10443
10444         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
10445         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
10446         limit.
10447         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
10448         compareseq was aborted.
10449
10450 2008-09-14  Bruno Haible  <bruno@clisp.org>
10451
10452         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
10453         yvec_edit_count.
10454         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
10455         (fstrcmp_bounded): Simplify result computation accordingly.
10456
10457 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10458
10459         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
10460         (fstrcmp): Define in terms of fstrcmp_bounded.
10461         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
10462         lower_bound argument.
10463         Return quickly if the result is certainly < lower_bound.
10464         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
10465
10466 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10467
10468         * lib/diffseq.h (EARLY_ABORT): New macro.
10469         (compareseq): Change return type to bool. Return true when EARLY_ABORT
10470         evaluates to true.
10471
10472 2008-09-14  Bruno Haible  <bruno@clisp.org>
10473
10474         * modules/perror-tests: New file.
10475         * tests/test-perror.sh: New file.
10476         * tests/test-perror.c: New file.
10477
10478         New module 'perror'.
10479         * lib/stdio.in.h (perror): New declaration.
10480         * lib/perror.c: New file.
10481         * m4/perror.m4: New file.
10482         * modules/perror: New file.
10483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
10484         * doc/posix-functions/perror.texi: Mention the perror module.
10485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
10486         REPLACE_PERROR.
10487         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
10488         REPLACE_PERROR.
10489
10490 2008-09-14  Bruno Haible  <bruno@clisp.org>
10491
10492         * modules/stdio (Makefile.am): Reorder to match the order in
10493         lib/stdio.in.h.
10494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10495
10496 2008-09-13  Bruno Haible  <bruno@clisp.org>
10497
10498         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
10499
10500 2008-09-13  Bruno Haible  <bruno@clisp.org>
10501
10502         Extend strerror to cover the added errno values.
10503         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
10504         (rpl_strerror): Provide error messages for the added errno values and
10505         for the WSA* values.
10506         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
10507         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
10508         strerror.
10509         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
10510         * modules/strerror (Depends-on): Add errno.
10511         * doc/posix-functions/strerror.texi: Document the change.
10512         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
10513         and EOVERFLOW.
10514
10515 2008-09-13  Bruno Haible  <bruno@clisp.org>
10516
10517         * modules/EOVERFLOW: Remove file.
10518         * m4/eoverflow.m4: Remove file.
10519         * modules/EOVERFLOW-tests: Remove file.
10520         * tests/test-EOVERFLOW.c: Remove file.
10521         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
10522         * modules/ftell (Depends-on): Likewise.
10523         * modules/getdelim (Depends-on): Likewise.
10524         * modules/getugroups (Depends-on): Likewise.
10525         * modules/poll (Depends-on): Likewise.
10526         * modules/snprintf (Depends-on): Likewise.
10527         * modules/sprintf-posix (Depends-on): Likewise.
10528         * modules/vasnprintf (Depends-on): Likewise.
10529         * modules/vasprintf (Depends-on): Likewise.
10530         * modules/vfprintf-posix (Depends-on): Likewise.
10531         * modules/vsnprintf (Depends-on): Likewise.
10532         * modules/vsprintf-posix (Depends-on): Likewise.
10533         * modules/xvasprintf (Depends-on): Likewise.
10534         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10535         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
10536         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
10537         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
10538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10539         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
10540         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
10541         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
10542         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10543         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
10544         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
10545         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
10546         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10547         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
10548         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
10549         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
10550         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10551         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
10552         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
10553         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
10554         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10555         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
10556         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
10557         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
10558         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
10559         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10560         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
10561         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
10562         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
10563         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
10564         * MODULES.html.sh: Remove EOVERFLOW.
10565         * NEWS: Mention the change.
10566
10567 2008-09-13  Bruno Haible  <bruno@clisp.org>
10568
10569         * modules/errno-tests: New file.
10570         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
10571
10572         * lib/errno.in.h: New file.
10573         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
10574         * modules/errno: New file.
10575         * doc/posix-headers/errno.texi: Update documentation.
10576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
10577
10578 2008-09-13  Bruno Haible  <bruno@clisp.org>
10579
10580         * tests/test-poll.c: Use #if for native Windows, rather than testing
10581         __MSVCRT__.
10582
10583 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10584             Bruno Haible  <bruno@clisp.org>
10585
10586         * lib/glob.c: Don't include <pwd.h> on native Windows.
10587         (WINDOWS32): New macro.
10588         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
10589
10590 2008-09-13  Bruno Haible  <bruno@clisp.org>
10591
10592         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
10593         (ETIMEDOUT): Remove macro.
10594         (glthread_cond_timedwait_multithreaded): New declaration.
10595         (glthread_cond_timedwait): Use it.
10596         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
10597         (glthread_cond_timedwait_multithreaded): New function.
10598
10599 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10600
10601         * modules/poll-tests: Do not check for io.h.
10602         * tests/test-poll.c: Check for __MSVCRT__ instead.
10603
10604 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10605
10606         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
10607         * modules/poll-tests: Add inet_pton, stdbool, sockets.
10608         * tests/test-poll.c: Use them.  Use _pipe on Windows.
10609
10610 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10611
10612         * modules/poll-tests: New.
10613         * tests/test-poll.c: New.
10614
10615 2008-09-12  Eric Blake  <ebb9@byu.net>
10616
10617         frexp: test for NetBSD failure on -0.0
10618         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
10619         not all, bugs from NetBSD 3.0 have been fixed.
10620         * doc/posix-functions/frexp.texi (frexp): Document bug.
10621         Reported by Thomas Klausner.
10622
10623         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
10624         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
10625         literal -0.0.
10626         Reported by Jonathan C. Patschke <jp@centtech.com>.
10627
10628 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10629
10630         * lib/glthread/cond.h: Use dummy implementation also if
10631         USE_WIN32_THREADS.
10632
10633 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10634
10635         * modules/fnmatch-posix (License): Change to LGPLv2+.
10636         * modules/fnmatch-gnu (License): Likewise.
10637
10638 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10639
10640         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
10641
10642 2008-09-11  Jim Meyering  <meyering@redhat.com>
10643
10644         * users.txt: Add gtk-vnc.
10645
10646 2008-09-08  Simon Josefsson  <simon@josefsson.org>
10647
10648         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
10649         rotate amounts.
10650
10651         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
10652         required for 16-bit and 8-bit rotates.
10653         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
10654         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
10655         UINT8_MAX instead of hard-coded constants.
10656         Suggested by Paul Eggert.
10657
10658 2008-09-07  Bruno Haible  <bruno@clisp.org>
10659
10660         * tests/test-striconveh.c (main): Check behaviour when converting from
10661         UTF-7.
10662
10663         Make striconveh work better with stateful encodings.
10664         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
10665         that iconv does not increment the inptr when returning -1/EINVAL.
10666
10667 2008-09-07  Bruno Haible  <bruno@clisp.org>
10668
10669         * build-aux/config.rpath: Update according to libtool-2.2.6.
10670         * build-aux/config.libpath: Likewise.
10671
10672 2008-09-06  Bruno Haible  <bruno@clisp.org>
10673
10674         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
10675         * lib/freadptr.c (freadptr): Likewise.
10676         * lib/freadseek.c (freadptrinc): Likewise.
10677         Reported by Simon Josefsson.
10678
10679 2008-09-06  Bruno Haible  <bruno@clisp.org>
10680
10681         * modules/freadptr (License): Change to LGPLv2+.
10682         * modules/freadseek (License): Likewise.
10683         Suggested by Eric Blake.
10684
10685         * modules/memchr2 (License): Change to LGPLv2+.
10686         Approved by Eric Blake.
10687
10688 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10689             Bruno Haible  <bruno@clisp.org>
10690
10691         Make gnulib-tool work with native 'sed' on AIX.
10692         * gnulib-tool (sed_noop): New variable.
10693         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
10694         func_add_or_update, func_create_testdir): Use it to initialize sed
10695         script variables.
10696         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10697
10698 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
10699             Bruno Haible  <bruno@clisp.org>
10700
10701         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
10702         also works after #include directives.
10703
10704 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
10705
10706         getdate.y: reject an out-of-range timezone value
10707         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
10708         the range [-24...+24].  When specified with only one or two digits,
10709         * tests/test-getdate.c: Tests for the fix.
10710         * doc/getdate.texi: Document this change.
10711
10712 2008-09-03  Bruno Haible  <bruno@clisp.org>
10713
10714         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
10715
10716 2008-09-02  Simon Josefsson  <simon@josefsson.org>
10717
10718         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
10719         <bruce.korb@gmail.com> with ideas from Ben Pfaff
10720         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
10721         Blake <ebb9@byu.net>.
10722
10723         * tests/test-bitrotate.c: Add more test vectors.
10724
10725 2008-09-02  Eric Blake  <ebb9@byu.net>
10726
10727         vasnprintf-posix: handle large precision via %.*d
10728         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
10729         when handling it ourselves.
10730         * tests/test-vasnprintf-posix.c (test_function): Add test.
10731         * tests/test-snprintf-posix.h (test_function): Likewise.
10732         * tests/test-sprintf-posix.h (test_function): Likewise.
10733         * tests/test-vasprintf-posix.c (test_function): Likewise.
10734         Reported by Alain Guibert.
10735
10736 2008-09-01  Eric Blake  <ebb9@byu.net>
10737
10738         c-stack: make configure-time check more robust
10739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
10740         successful sigaction call.
10741         Reported by Tom G. Christensen.
10742
10743 2008-09-01  Bruno Haible  <bruno@clisp.org>
10744
10745         New module 'findprog-lgpl'.
10746         * modules/findprog-lgpl: New file.
10747         * lib/findprog-lgpl.c: New file.
10748         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
10749         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
10750         to decide whether to use strdup or xstrdup, concatenated_filename or
10751         xconcatenated_filename.
10752
10753 2008-09-01  Bruno Haible  <bruno@clisp.org>
10754
10755         Split module 'concat-filename' into 'concat-filename' (LGPL) and
10756         'xconcat-filename' (GPL).
10757         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
10758         (License): Change to LGPLv2+.
10759         * modules/xconcat-filename: New file.
10760         * lib/concat-filename.h (concatenated_filename): Change specification.
10761         (xconcatenated_filename): New declaration.
10762         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
10763         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
10764         memory situations.
10765         * lib/xconcat-filename.c: New file.
10766         * NEWS: Mention the change.
10767         * lib/findprog.c: Include concat-filename.h, not filename.h.
10768         (find_in_path): Use xconcatenated_filename instead of
10769         concatenated_filename.
10770         * lib/javacomp.c: Include concat-filename.h, not filename.h.
10771         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10772         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10773         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10774         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
10775         instead of concatenated_filename.
10776         * lib/javaexec.c: Include concat-filename.h, not filename.h.
10777         (execute_java_class): Use xconcatenated_filename instead of
10778         concatenated_filename.
10779         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
10780         * modules/javacomp (Depends-on): Likewise.
10781         * modules/javaexec (Depends-on): Likewise.
10782
10783 2008-09-01  Bruno Haible  <bruno@clisp.org>
10784
10785         Split module 'filename' into 'filename' and 'concat-filename'.
10786         * modules/filename: Keep only lib/filename.h.
10787         (License): Change to LGPLv2+.
10788         * modules/concat-filename: New file, extracted from modules/filename.
10789         * lib/filename.h (concatenated_filename): Remove declaration.
10790         * lib/concat-filename.h: New file, extracted from lib/filename.h.
10791         * lib/concat-filename.c: Include concat-filename.h.
10792         * NEWS: Mention the change.
10793
10794 2008-09-01  Simon Josefsson  <simon@josefsson.org>
10795
10796         * lib/bitrotate.h (rotl8, rotr8): Add.
10797
10798         * modules/bitrotate (configure.ac): Need
10799         AC_REQUIRE([AC_C_INLINE]).
10800         (Description): Mention stdint.h.  Reported by Bruno Haible
10801         <bruno@clisp.org>.
10802
10803         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
10804         Paolo Bonzini <bonzini@gnu.org>.
10805
10806 2008-08-31  Bruno Haible  <bruno@clisp.org>
10807
10808         Assume Solaris specific bi-arch conventions on Solaris systems.
10809         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
10810         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
10811         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
10812         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
10813         like acl_libdirstem.
10814         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
10815         acl_libdirstem.
10816         * NEWS: Mention the change.
10817         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
10818
10819 2008-08-31  Jim Meyering  <meyering@redhat.com>
10820
10821         * lib/strftime.h: Add comments describing the two added arguments.
10822
10823         remove duplicate #include directives
10824         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
10825         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
10826
10827 2008-08-31  Bruno Haible  <bruno@clisp.org>
10828
10829         New module 'sigpipe-die'.
10830         * modules/sigpipe-die: New file.
10831         * lib/sigpipe-die.h: New file.
10832         * lib/sigpipe-die.c: New file.
10833         * MODULES.html.sh (Signal handling): Add sigpipe-die.
10834
10835 2008-08-31  Bruno Haible  <bruno@clisp.org>
10836
10837         Don't override previously installed signal handlers.
10838         * lib/fatal-signal.c (saved_sigactions): New variable.
10839         (uninstall_handlers): Reset the signal to the saved handler, not
10840         to SIG_DFL (except when ignored).
10841         (install_handlers): Save the previous handlers.
10842
10843 2008-08-30  Bruno Haible  <bruno@clisp.org>
10844
10845         * gnulib-tool (func_reset_sigpipe): New function.
10846         (func_get_automake_snippet, func_modules_transitive_closure,
10847         func_import): Invoke it before a join command that reads from stdin,
10848         to avoid "echo: write error: Broken pipe" error messages on stderr.
10849         Reported by Sam Steingold <sds@gnu.org>.
10850
10851 2008-08-30  Bruno Haible  <bruno@clisp.org>
10852
10853         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
10854         Code copied from m4/open.m4.
10855         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
10856         access and the filename ends in a slash. Code copied from lib/open.c.
10857         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
10858         * tests/test-fopen.c (main): Check against bug with trailing slash.
10859
10860 2008-08-29  Bruno Haible  <bruno@clisp.org>
10861
10862         Avoid some "gcc -pedantic" warnings.
10863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
10864         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
10865         * lib/dirent.in.h: Likewise.
10866         * lib/fcntl.in.h: Likewise.
10867         * lib/float.in.h: Likewise.
10868         * lib/iconv.in.h: Likewise.
10869         * lib/inttypes.in.h: Likewise.
10870         * lib/locale.in.h: Likewise.
10871         * lib/math.in.h: Likewise.
10872         * lib/netinet_in.in.h: Likewise.
10873         * lib/search.in.h: Likewise.
10874         * lib/signal.in.h: Likewise.
10875         * lib/stdarg.in.h: Likewise.
10876         * lib/stdint.in.h: Likewise.
10877         * lib/stdio.in.h: Likewise.
10878         * lib/stdlib.in.h: Likewise.
10879         * lib/string.in.h: Likewise.
10880         * lib/strings.in.h: Likewise.
10881         * lib/sys_select.in.h: Likewise.
10882         * lib/sys_socket.in.h: Likewise.
10883         * lib/sys_stat.in.h: Likewise.
10884         * lib/sys_time.in.h: Likewise.
10885         * lib/sysexits.in.h: Likewise.
10886         * lib/time.in.h: Likewise.
10887         * lib/unistd.in.h: Likewise.
10888         * lib/wchar.in.h: Likewise.
10889         * lib/wctype.in.h: Likewise.
10890         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
10891         * modules/fchdir (Makefile.am): Likewise.
10892         * modules/fcntl (Makefile.am): Likewise.
10893         * modules/float (Makefile.am): Likewise.
10894         * modules/iconv_open (Makefile.am): Likewise.
10895         * modules/inttypes (Makefile.am): Likewise.
10896         * modules/locale (Makefile.am): Likewise.
10897         * modules/math (Makefile.am): Likewise.
10898         * modules/netinet_in (Makefile.am): Likewise.
10899         * modules/search (Makefile.am): Likewise.
10900         * modules/signal (Makefile.am): Likewise.
10901         * modules/stdarg (Makefile.am): Likewise.
10902         * modules/stdint (Makefile.am): Likewise.
10903         * modules/stdio (Makefile.am): Likewise.
10904         * modules/stdlib (Makefile.am): Likewise.
10905         * modules/string (Makefile.am): Likewise.
10906         * modules/strings (Makefile.am): Likewise.
10907         * modules/sys_select (Makefile.am): Likewise.
10908         * modules/sys_socket (Makefile.am): Likewise.
10909         * modules/sys_stat (Makefile.am): Likewise.
10910         * modules/sys_time (Makefile.am): Likewise.
10911         * modules/sysexits (Makefile.am): Likewise.
10912         * modules/time (Makefile.am): Likewise.
10913         * modules/unistd (Makefile.am): Likewise.
10914         * modules/wchar (Makefile.am): Likewise.
10915         * modules/wctype (Makefile.am): Likewise.
10916         Reported by Reuben Thomas <rrt@sc3d.org>.
10917
10918 2008-08-29  Bruno Haible  <bruno@clisp.org>
10919
10920         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
10921         any more.
10922
10923 2008-08-29  Simon Josefsson  <simon@josefsson.org>
10924
10925         * MODULES.html.sh (Misc): Add bitrotate.
10926
10927         * modules/bitrotate: New file.
10928
10929         * lib/bitrotate.h: New file.
10930
10931         * modules/bitrotate-tests: New file.
10932
10933         * tests/test-bitrotate.c: New file.
10934
10935         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
10936         on the bitrotate module.
10937
10938         * lib/arctwo.c: Use new bitrotate module.
10939
10940 2008-08-29  Jim Meyering  <meyering@redhat.com>
10941
10942         bootstrap: merge changes from coreutils
10943         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
10944         of copied files.  Remove a kludge, now that this is fixed.
10945         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
10946         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
10947         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
10948
10949 2008-08-29  Bruno Haible  <bruno@clisp.org>
10950
10951         * MODULES.html.sh: Remove --cvs-urls option.
10952
10953 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
10954
10955         maint.mk: adjust to file name change
10956         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
10957
10958 2008-08-28  Jim Meyering  <meyering@redhat.com>
10959
10960         * modules/getndelim2 (License): Relicense to LGPLv2+.
10961         Approved by Richard Stallman for the version of 1995, and by
10962         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
10963
10964 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
10965
10966         * lib/getdelim.c (flockfile, funlockfile): Make all of them
10967         dummy if one is not available.  Do not touch them if
10968         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
10969         (getc_maybe_unlocked): New.
10970         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
10971
10972 2008-08-26  Eric Blake  <ebb9@byu.net>
10973
10974         doc/INSTALL: resync from autoconf
10975         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
10976         (INSTALL_PRELUDE): Delete; this is done more efficiently by
10977         moving...
10978         * install.texi [!autoconf]: ...here.  Resync from autoconf.
10979         * INSTALL: Regenerate.
10980         * INSTALL.ISO: New file.
10981         * INSTALL.UTF-8: Likewise.
10982
10983 2008-08-26  Jim Meyering  <meyering@redhat.com>
10984
10985         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
10986         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
10987         these definitions conditional, so that they may be overridden, too.
10988
10989 2008-08-26  Bruno Haible  <bruno@clisp.org>
10990
10991         Generate INSTALL file variants with prettier quotes.
10992         * doc/Makefile (INSTALL_PRELUDE): New macro.
10993         (INSTALL): Use it.
10994         (INSTALL.ISO, INSTALL.UTF-8): New rules.
10995
10996 2008-08-26  Bruno Haible  <bruno@clisp.org>
10997
10998         Run makeinfo in an English locale.
10999         * doc/Makefile (MAKEINFO): New variable.
11000
11001 2008-08-26  Bruno Haible  <bruno@clisp.org>
11002
11003         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
11004         Suggested by Eric Blake.
11005
11006 2008-08-25  Bruno Haible  <bruno@clisp.org>
11007
11008         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
11009
11010 2008-08-25  Eric Blake  <ebb9@byu.net>
11011
11012         c-stack: test that stack overflow can be caught
11013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
11014         that platform allows handling stack overflow; at least OS/2 EMX
11015         has sigaltstack, but crashes before transferring control to
11016         handler on stack overflow.
11017         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
11018         check for HAVE_STACK_OVERFLOW_HANDLING.
11019         Reported by Elbert Pol.
11020
11021 2008-08-25  Bruno Haible  <bruno@clisp.org>
11022
11023         * doc/posix-functions/strftime.texi: Fix description of strftime
11024         module.
11025
11026 2008-08-24  Bruno Haible  <bruno@clisp.org>
11027
11028         * tests/uniwidth/test-uc_width2.c: New file.
11029         * tests/uniwidth/test-uc_width2.sh: New file.
11030         * modules/uniwidth/width-tests (Files): Add the new files.
11031         (TESTS): Add uniwidth/test-uc_width2.sh.
11032         (TESTS_ENVIRONMENT): New variable.
11033         (check_PROGRAMS): Add test-uc_width2.
11034         (test_uc_width2_SOURCES): New variable.
11035
11036         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
11037         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
11038         not 0x00AB.
11039         Reported by Alexander V. Lukyanov <lav@netis.ru>.
11040
11041 2008-08-22  Eric Blake  <ebb9@byu.net>
11042
11043         test-lock, test-tls: mention why a test is skipped
11044         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
11045         skipped.
11046         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
11047
11048         count-one-bits: relax license
11049         * modules/count-one-bits (License): Relicense to LGPLv2+.
11050         Suggested by Ludovic Courtès, approved by Ben Pfaff.
11051
11052 2008-08-22  Andreas Schwab  <schwab@suse.de>
11053
11054         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11055         Remove spurious space in assignment.
11056
11057 2008-08-21  Simon Josefsson  <simon@josefsson.org>
11058
11059         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
11060         Paul Eggert <eggert@CS.UCLA.EDU>.
11061
11062 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
11063
11064         * modules/gettext: Add m4/threadlib.m4.
11065
11066 2008-08-19  Eric Blake  <ebb9@byu.net>
11067
11068         test-c-stack: fix compilation failure on FreeBSD 5.0
11069         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
11070         headers before <sys/resource.h>.
11071         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
11072         the bug.
11073         Reported by Nelson H. F. Beebe.
11074
11075         strverscmp: migrate from "strverscmp.h" to <string.h>
11076         * modules/string (Makefile.am): Add new hooks.
11077         * modules/strverscmp (Files): Remove strverscmp.h.
11078         (Depends-on): Add string.
11079         (configure.ac): Add indicator.
11080         (Include): Mention new header.
11081         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
11082         defaults.
11083         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
11084         results.
11085         * lib/strverscmp.h: Delete.
11086         * lib/string.in.h (strverscmp): Provide declaration, when needed.
11087         * tests/test-strverscmp.c (includes): Adjust client.
11088         * lib/check-version.c (includes): Likewise.
11089         * NEWS: Document the change.
11090
11091         strverscmp: add unit test
11092         * modules/strverscmp-tests: New file.
11093         * tests/test-strverscmp.c: Likewise.
11094
11095 2008-08-19  Simon Josefsson  <simon@josefsson.org>
11096
11097         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
11098         regarding Windows crypto stuff, from Mono.
11099
11100 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
11101
11102         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
11103         if present, for intel RND.  Return error on failures.
11104
11105 2008-08-18  Ben Pfaff  <blp@gnu.org>
11106
11107         gitlog-to-changelog: give better diagnostic for failed pipe-open
11108         * build-aux/gitlog-to-changelog: Improve error message: suggest
11109         that the version of Git may be too old.
11110
11111 2008-08-18  Simon Josefsson  <simon@josefsson.org>
11112
11113         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
11114         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
11115
11116 2008-08-18  Bruno Haible  <bruno@clisp.org>
11117
11118         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
11119         pthread_in_use().
11120
11121 2008-08-18  Bruno Haible  <bruno@clisp.org>
11122
11123         * lib/glthread/threadlib.c: Include <pthread.h>.
11124
11125 2008-08-18  Bruno Haible  <bruno@clisp.org>
11126
11127         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
11128         glthread_recursive_lock_* macros.
11129         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
11130         Fix syntax error.
11131
11132 2008-08-18  Bruno Haible  <bruno@clisp.org>
11133
11134         * lib/glthread/thread.c: Avoid forcing a context switch right after
11135         thread creation.
11136
11137 2008-08-17  Bruno Haible  <bruno@clisp.org>
11138
11139         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
11140         * lib/glthread/thread.h: Provide Win32 specific implementation.
11141         * modules/thread (Files): Add lib/glthread/thread.c.
11142         (Depends-on): Add lock.
11143         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
11144
11145 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11146
11147         New module 'yield'.
11148         * modules/yield: New file.
11149         * lib/glthread/yield.h: New file.
11150         * m4/yield.m4: New file.
11151         * MODULES.html.sh (Multithreading): Add yield.
11152
11153 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11154
11155         New module 'thread'.
11156         * modules/thread: New file.
11157         * lib/glthread/thread.h: New file.
11158         * m4/thread.m4: New file.
11159         * MODULES.html.sh (Multithreading): Add thread.
11160
11161 2008-08-17  Bruno Haible  <bruno@clisp.org>
11162
11163         * lib/glthread/lock.h: Include <stdlib.h> always.
11164         * lib/glthread/tls.h: Likewise.
11165         * lib/glthread/cond.h: Likewise.
11166
11167 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11168
11169         New module 'cond'.
11170         * modules/cond: New file.
11171         * lib/glthread/cond.h: New file.
11172         * lib/glthread/cond.c: New file.
11173         * m4/cond.m4: New file.
11174         * MODULES.html.sh (Multithreading): Add cond.
11175
11176 2008-08-16  Eric Blake  <ebb9@byu.net>
11177
11178         c-stack: fix regression on Irix 5.3 from 2008-06-21
11179         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
11180         sa_sigaction...
11181         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
11182         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
11183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
11184         * modules/signal (Makefile.am): Use the value.
11185         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
11186         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
11187         * doc/posix-headers/signal.texi (signal.h): Document this
11188         portability issue.
11189         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
11190         Reported by Tom G. Christensen.
11191
11192 2008-08-17  Bruno Haible  <bruno@clisp.org>
11193
11194         New module 'threadlib'.
11195         * modules/threadlib: New file.
11196         * lib/glthread/threadlib.c: New file, extracted from
11197         lib/glthread/lock.c.
11198         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
11199         functions.
11200         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
11201         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
11202         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
11203         macros.
11204         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
11205         (gl_DISABLE_THREADS): Remove macro.
11206         * modules/lock (Files): Remove build-aux/config.rpath.
11207         (Depends-on): Remove havelib. Add threadlib.
11208         (configure.ac-early): Remove section.
11209         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
11210         * modules/tls (Depends-on): Remove lock. Add threadlib.
11211         (Link): New section, copied from threadlib.
11212         * MODULES.html.sh (Multithreading): Add threadlib.
11213
11214 2008-08-14  Bruno Haible  <bruno@clisp.org>
11215
11216         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
11217         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
11218         glthread_rwlock_unlock, glthread_rwlock_destroy,
11219         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
11220         glthread_recursive_lock_destroy): Define as macros always.
11221         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
11222         glthread_lock_lock.
11223         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
11224         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
11225         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
11226         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
11227         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
11228         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
11229         (glthread_recursive_lock_lock_func): Renamed from
11230         glthread_recursive_lock_lock.
11231         (glthread_recursive_lock_unlock_func): Renamed from
11232         glthread_recursive_lock_unlock.
11233         (glthread_recursive_lock_destroy_func): Renamed from
11234         glthread_recursive_lock_destroy.
11235
11236 2008-08-14  Bruno Haible  <bruno@clisp.org>
11237
11238         * lib/glthread/lock.h: Renamed from lib/lock.h.
11239         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
11240         * lib/glthread/tls.h: Renamed from lib/tls.h.
11241         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
11242         * lib/fstrcmp.c: Update includes.
11243         * lib/strsignal.c: Update includes.
11244         * modules/lock (Files, Makefile.am): Update.
11245         (Include): Change to "glthread/lock.h".
11246         * modules/tls (Files, Makefile.am): Update.
11247         (Include): Change to "glthread/tls.h".
11248         * tests/test-lock.c: Update includes.
11249         * tests/test-tls.c: Update includes.
11250         * NEWS: Mention the renamed header files.
11251
11252 2008-08-11  Jim Meyering  <meyering@redhat.com>
11253
11254         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
11255
11256 2008-08-11  Eric Blake  <ebb9@byu.net>
11257
11258         test-c-stack: avoid C99-ism
11259         * tests/test-c-stack.c (main): Fix whitespace, move declaration
11260         before statement.
11261         Reported by Alain Guibert.
11262
11263 2008-08-10  Jim Meyering  <meyering@redhat.com>
11264
11265         ensure that return value of uinttostr et al are not ignored
11266         * lib/inttostr.h (__GNUC_PREREQ): Define.
11267         (__attribute_warn_unused_result__): Define.
11268         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
11269
11270 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
11271
11272         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
11273         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
11274
11275 2008-08-07  Jim Meyering  <meyering@redhat.com>
11276
11277         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
11278
11279         * modules/mkstemp (License): Relicense under LGPLv2+.
11280         * modules/tempname (License): Likewise.
11281
11282 2008-08-06  Bruno Haible  <bruno@clisp.org>
11283
11284         * lib/poll.c (poll): Further micro-optimization.
11285
11286 2008-08-06  Jim Meyering  <meyering@redhat.com>
11287
11288         inet_pton.c: use locale-independent tolower
11289         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
11290         (inet_pton6): Use c_tolower rather than tolower.
11291         * modules/inet_pton (Depends-on): Add c-ctype.
11292
11293 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
11294
11295         * lib/poll.c (poll): Avoid division when timeout is 0, cache
11296         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
11297
11298 2008-08-06  Jim Meyering  <meyering@redhat.com>
11299
11300         * modules/inet_pton (License): Relicense under LGPLv2+.
11301
11302 2008-08-03  Bruno Haible  <bruno@clisp.org>
11303
11304         Additional non-aborting API for lock and tls.
11305         * lib/lock.h: Include <errno.h>.
11306         (glthread_lock_init): New macro/function.
11307         (gl_lock_init): Define as wrapper around glthread_lock_init.
11308         (glthread_lock_lock): New macro/function.
11309         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
11310         (glthread_lock_unlock): New macro/function.
11311         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
11312         (glthread_lock_destroy): New macro/function.
11313         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
11314         (glthread_rwlock_init): New macro/function.
11315         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
11316         (glthread_rwlock_rdlock): New macro/function.
11317         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
11318         (glthread_rwlock_wrlock): New macro/function.
11319         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
11320         (glthread_rwlock_unlock): New macro/function.
11321         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
11322         (glthread_rwlock_destroy): New macro/function.
11323         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
11324         (glthread_recursive_lock_init): New macro/function.
11325         (gl_recursive_lock_init): Define as wrapper around
11326         glthread_recursive_lock_init.
11327         (glthread_recursive_lock_lock): New macro/function.
11328         (gl_recursive_lock_lock): Define as wrapper around
11329         glthread_recursive_lock_lock.
11330         (glthread_recursive_lock_unlock): New macro/function.
11331         (gl_recursive_lock_unlock): Define as wrapper around
11332         glthread_recursive_lock_unlock.
11333         (glthread_recursive_lock_destroy): New macro/function.
11334         (gl_recursive_lock_destroy): Define as wrapper around
11335         glthread_recursive_lock_destroy.
11336         (glthread_once): New macro/function.
11337         (gl_once): Define as wrapper around glthread_once.
11338         Update function declarations.
11339         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
11340         glthread_rwlock_init. Return error code.
11341         (glthread_rwlock_rdlock_multithreaded): Renamed from
11342         glthread_rwlock_rdlock. Return error code.
11343         (glthread_rwlock_wrlock_multithreaded): Renamed from
11344         glthread_rwlock_wrlock. Return error code.
11345         (glthread_rwlock_unlock_multithreaded): Renamed from
11346         glthread_rwlock_unlock. Return error code.
11347         (glthread_rwlock_destroy_multithreaded): Renamed from
11348         glthread_rwlock_destroy. Return error code.
11349         (glthread_recursive_lock_init_multithreaded): Renamed from
11350         glthread_recursive_lock_init. Return error code.
11351         (glthread_recursive_lock_lock_multithreaded): Renamed from
11352         glthread_recursive_lock_lock. Return error code.
11353         (glthread_recursive_lock_unlock_multithreaded): Renamed from
11354         glthread_recursive_lock_unlock. Return error code.
11355         (glthread_recursive_lock_destroy_multithreaded): Renamed from
11356         glthread_recursive_lock_destroy. Return error code.
11357         (glthread_once_call): Make static.
11358         (glthread_once_multithreaded): Renamed from glthread_once.
11359         * lib/tls.h: Include <errno.h>.
11360         (glthread_tls_key_init): New macro/function.
11361         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
11362         (glthread_tls_set): New macro/function.
11363         (gl_tls_set): Define as wrapper around glthread_tls_set.
11364         (glthread_tls_key_destroy): New macro/function.
11365         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
11366         Update function declarations.
11367         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
11368         glthread_tls_get.
11369         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11370
11371 2008-08-04  Eric Blake  <ebb9@byu.net>
11372
11373         gnumakefile: use space, not TAB, outside of targets
11374         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
11375
11376 2008-08-02  Jim Meyering  <meyering@redhat.com>
11377
11378         getdate.y: avoid locale-dependent date parsing failure
11379         In Turkish locales, getdate would fail to recognize keywords
11380         containing a lowercase "i".  The solution is not to rely on
11381         locale-sensitive case-conversion.
11382         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
11383         (lookup_word): Use c_toupper in place of toupper.
11384         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
11385         Reported by Vefa Bicakci <bicave@superonline.com> in
11386         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
11387         * modules/getdate (Depends-on): Add c-ctype.
11388
11389 2008-08-02  Bruno Haible  <bruno@clisp.org>
11390
11391         * gnulib-tool (func_import): When updating or creating a .gitignore
11392         file, prepend each added line with a slash, and ignore leading slashes
11393         from the existing lines.
11394         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11395
11396 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11397
11398         Portability fix for GNU make 3.79.1.
11399         * top/GNUmakefile: Avoid 'else COND', which older GNU make
11400         versions do not understand.
11401
11402 2008-08-01  Bruno Haible  <bruno@clisp.org>
11403
11404         Work around bug of HP-UX 10.20 cc with -0.0 literal.
11405         * tests/test-isnanf.h (zero): New variable.
11406         (main): Avoid literal -0.0f.
11407         * tests/test-isnand.h (zero): New variable.
11408         (main): Avoid literal -0.0.
11409         * tests/test-isnanl.h (zero): New variable.
11410         (main): Avoid literal -0.0L.
11411         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
11412         (test_float, test_double, test_long_double): Avoid literals -0.0f,
11413         -0.0, -0.0L.
11414         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
11415         (test_signbitd): Avoid literal -0.0.
11416         (test_signbitl): Avoid literal -0.0L.
11417         * tests/test-ceilf1.c (zero): New variable.
11418         (main): Avoid literal -0.0f.
11419         * tests/test-ceill.c (zero): New variable.
11420         (main): Avoid literal -0.0L.
11421         * tests/test-floorf1.c (zero): New variable.
11422         (main): Avoid literal -0.0f.
11423         * tests/test-floorl.c (zero): New variable.
11424         (main): Avoid literal -0.0L.
11425         * tests/test-roundf1.c (zero): New variable.
11426         (main): Avoid literal -0.0f.
11427         * tests/test-round1.c (zero): New variable.
11428         (main): Avoid literal -0.0.
11429         * tests/test-roundl.c (zero): New variable.
11430         (main): Avoid literal -0.0L.
11431         * tests/test-truncf1.c (zero): New variable.
11432         (main): Avoid literal -0.0f.
11433         * tests/test-trunc1.c (zero): New variable.
11434         (main): Avoid literal -0.0.
11435         * tests/test-truncl.c (zero): New variable.
11436         (main): Avoid literal -0.0L.
11437         * tests/test-frexp.c (zero): New variable.
11438         (main): Avoid literal -0.0.
11439         * tests/test-frexpl.c (zero): New variable.
11440         (main): Avoid literal -0.0L.
11441         * tests/test-ldexpl.c (zero): New variable.
11442         (main): Avoid literal -0.0L.
11443         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
11444         (zerod, zerol): New variables.
11445         (test_function): Avoid literals -0.0, -0.0L.
11446         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
11447         (zerod, zerol): New variables.
11448         (test_function): Avoid literals -0.0, -0.0L.
11449         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
11450         (zerod, zerol): New variables.
11451         (test_function): Avoid literals -0.0, -0.0L.
11452         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
11453         (zerod, zerol): New variables.
11454         (test_function): Avoid literals -0.0, -0.0L.
11455         * tests/test-strtod.c (zero): New variable.
11456         (main): Avoid literal -0.0.
11457         Reported by Jonathan C. Patschke <jp@centtech.com>.
11458
11459 2008-07-31  Jim Meyering  <meyering@redhat.com>
11460
11461         sha256.h: correct definition of SHA224_DIGEST_SIZE
11462         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
11463         Reported by Paulie Pena IV <paulie4@gmail.com>.
11464         Define as 224 / 8, rather than as a literal.
11465         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
11466         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
11467         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
11468
11469 2008-07-31  Bruno Haible  <bruno@clisp.org>
11470
11471         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
11472         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
11473         Reported by Jonathan Patschke <jp@centtech.com>.
11474
11475 2008-07-31  Bruno Haible  <bruno@clisp.org>
11476
11477         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
11478         Reported by Paolo Bonzini <bonzini@gnu.org>.
11479
11480 2008-07-30  Eric Blake  <ebb9@byu.net>
11481
11482         test-strtod: allow compilation without -lm
11483         * tests/test-strtod.c (main): Avoid link dependence on fabs.
11484         Reported by Dennis Clarke <blastwave@gmail.com>.
11485
11486 2008-07-28  Jim Meyering  <meyering@redhat.com>
11487
11488         bootstrap: work also when there are no .po files in po/
11489         * build-aux/bootstrap (update_po_files): Complete the change
11490         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
11491
11492 2008-07-27  Jim Meyering  <meyering@redhat.com>
11493
11494         * users.txt: Add zile.
11495
11496 2008-07-26  Ben Pfaff  <blp@gnu.org>
11497
11498         Add missing dependencies on new m4/exponent[fdl].m4 files.
11499         * modules/isnanf-nolibm: Add m4/exponentf.m4.
11500         * modules/isnand-nolibm: Add m4/exponentd.m4.
11501         * modules/isnanl-nolibm: Add m4/exponentl.m4.
11502         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
11503         m4/isnan[fdl].m4, because the macros actually used moved.
11504         Reported by Jim Meyering.
11505
11506 2008-07-14  Ben Pfaff  <blp@gnu.org>
11507
11508         Add isinf module.
11509         * lib/isinf.c: New file.
11510         * lib/math.in.h: Define isinf macro if we have decided to replace
11511         it.
11512         * m4/isinf.m4: New file.
11513         * m4/math_h.m4: Initialize and substitute variables for isinf
11514         module.
11515         * modules/isinf: New file.
11516         * modules/isinf-tests: New file.
11517         * modules/math: Add substitutions for new module.
11518         * tests/test-isinf.c: New file.
11519         * doc/posix-functions/isinf.texi: Mention new module.
11520         * MODULES.html.sh: Mention new module.
11521
11522 2008-07-14  Ben Pfaff  <blp@gnu.org>
11523
11524         Factor out some macros for use by additional modules.
11525         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
11526         exponentf.m4.
11527         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
11528         exponentd.m4.
11529         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
11530         file exponentl.m4.
11531         * m4/exponentf.m4: New file.
11532         * m4/exponentd.m4: New file.
11533         * m4/exponentl.m4: New file.
11534         * modules/isnanf: Use new file m4/exponentf.m4.
11535         * modules/isnand: Use new file m4/exponentd.m4.
11536         * modules/isnanl: Use new file m4/exponentl.m4.
11537
11538 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
11539
11540         mktime.c: normalize tp->tm_isdst value to -1/0/1.
11541         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
11542         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
11543         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
11544
11545         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
11546         readlink on platforms without PATH_MAX.
11547
11548 2008-07-21  Eric Blake  <ebb9@byu.net>
11549
11550         Warn, not fail, on stale version.
11551         * top/GNUmakefile (_curr-ver): Tone down previous patch.
11552
11553         Don't allow installation with stale devel version number.
11554         * top/GNUmakefile (_is-install-target): New macro.
11555         (_curr-ver): Forbid installation with stale version number.
11556
11557 2008-07-20  Bruno Haible  <bruno@clisp.org>
11558
11559         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
11560         TESTS_ENVIRONMENT.
11561         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
11562
11563 2008-07-20  Bruno Haible  <bruno@clisp.org>
11564
11565         * lib/c-stack.h (c_stack_action): Add documentation.
11566         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
11567
11568 2008-07-20  Bruno Haible  <bruno@clisp.org>
11569
11570         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
11571         * modules/readlink (License): Likewise.
11572
11573 2008-07-17  Eric Blake  <ebb9@byu.net>
11574
11575         * modules/c-stack (Link): Fix typo.
11576
11577         Make c-stack use libsigsegv, when available.
11578         * modules/c-stack (Depends-on): Add libsigsegv.
11579         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
11580         needed.
11581         * lib/c-stack.c (SIGSTKSZ): Define fallback.
11582         (segv_handler, overflow_handler, c_stack_action)
11583         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
11584         implementation when libsigsegv is available, but only when using
11585         the library is necessary.
11586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
11587         comment, explaining why XSI check fails on Linux.
11588         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
11589         * tests/test-c-stack2.sh: Tweak skip message.
11590         * NEWS: Document new link-time requirements.
11591
11592 2008-07-16  Eric Blake  <ebb9@byu.net>
11593
11594         c-stack: Expose false positives when not using libsigsegv.
11595         * modules/c-stack-tests (Files): Expand test.
11596         * tests/test-c-stack.c (main): Add means to conditionally trigger
11597         non-overflow SIGSEGV.
11598         * tests/test-c-stack2.sh: New file.
11599
11600 2008-07-14  Bruno Haible  <bruno@clisp.org>
11601
11602         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
11603         Reported by Eric Blake.
11604
11605 2008-07-14  Sam Steingold  <sds@gnu.org>
11606             Bruno Haible  <bruno@clisp.org>
11607
11608         New module libsigsegv.
11609         * modules/libsigsegv: New file.
11610         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
11611         modifications.
11612         * MODULES.html.sh (Signal handling): New section.
11613
11614 2008-07-14  Bruno Haible  <bruno@clisp.org>
11615
11616         * modules/unictype/ctype-* (Description): Add the word "function".
11617         Improves the resulting doc in MODULES.html.
11618
11619 2008-07-12  Ben Pfaff  <blp@gnu.org>
11620
11621         Add longlong module.
11622         * modules/longlong: New file.
11623
11624 2008-07-12  Bruno Haible  <bruno@clisp.org>
11625
11626         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
11627         to empty.
11628
11629 2008-07-10  Ben Pfaff  <blp@gnu.org>
11630
11631         Add isnan module.
11632         * doc/posix-functions/isnan.texi: Mention new module.
11633         * lib/math.in.h: Define isnan macro if we have decided to replace
11634         it.
11635         * m4/isnan.m4: New file.
11636         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
11637         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
11638         also.
11639         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
11640         redundancy.
11641         * m4/math_h.m4: Initialize and substitute variables for isnan
11642         module.
11643         * modules/isnan: New file.
11644         * modules/isnan-tests: New file.
11645         * modules/math: Add substitutions for new module.
11646         * tests/test-isnan.c: New file.
11647         * MODULES.html.sh: Mention new module.
11648
11649 2008-07-10  Ben Pfaff  <blp@gnu.org>
11650
11651         Add isnanf module.
11652         * lib/isnanf.m4: New file.
11653         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
11654         (gl_HAVE_ISNANF_IN_LIBM): New macro.
11655         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
11656         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
11657         * modules/isnanf: New file.
11658         * modules/isnanf-tests: New file.
11659         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
11660         files.
11661         * tests/test-isnanf-nolibm.c: factored most of its contents into
11662         new file tests/test-isnanf.h.
11663         * tests/test-isnanf.h: New file.
11664         * tests/test-isnanf.c: New file.
11665         * MODULES.html.sh: Mention new module.
11666         * doc/glibc-functions/isnanf.texi: Mention new module.
11667
11668 2008-07-10  Ben Pfaff  <blp@gnu.org>
11669
11670         Add isnand module.
11671         * lib/isnand.h: New file.
11672         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
11673         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
11674         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
11675         functionality also.
11676         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
11677         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
11678         (gl_HAVE_ISNAND_IN_LIBM): New macro.
11679         * modules/isnand: New file.
11680         * modules/isnand-tests: New file.
11681         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
11682         files.
11683         * tests/test-isnand-nolibm.c: factored most of its contents into
11684         new file tests/test-isnand.h.
11685         * tests/test-isnand.h: New file.
11686         * tests/test-isnand.c: New file.
11687         * MODULES.html.sh: Mention new module.
11688
11689 2008-07-10  Ben Pfaff  <blp@gnu.org>
11690
11691         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
11692         * lib/isnand.h: Rename lib/isnand-nolibm.h.
11693         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
11694         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
11695         * modules/isnanf-nolibm: Update references to renamed files.
11696         * modules/isnand-nolibm: Likewise.
11697         * modules/isnanf-nolibm-tests: Likewise.
11698         * modules/isnand-nolibm-tests: Likewise.
11699         * lib/frexp.c: Likewise.
11700         * lib/isfinite.c: Likewise.
11701         * lib/signbitd.c: Likewise.
11702         * lib/signbitf.c: Likewise.
11703         * lib/vasnprintf.c: Likewise.
11704         * tests/test-ceilf1.c: Likewise.
11705         * tests/test-ceilf2.c: Likewise.
11706         * tests/test-floorf1.c: Likewise.
11707         * tests/test-floorf2.c: Likewise.
11708         * tests/test-frexp.c: Likewise.
11709         * tests/test-round1.c: Likewise.
11710         * tests/test-round2.c: Likewise.
11711         * tests/test-roundf1.c: Likewise.
11712         * tests/test-strtod.c: Likewise.
11713         * tests/test-trunc1.c: Likewise.
11714         * tests/test-trunc2.c: Likewise.
11715         * tests/test-truncf1.c: Likewise.
11716         * tests/test-truncf2.c: Likewise.
11717         * NEWS: Mention the renamed header files.
11718
11719 2008-07-11  Jim Meyering  <meyering@redhat.com>
11720
11721         vc-list-files: make the last-resort awk code more portable
11722         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
11723         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
11724         does not support it.
11725
11726 2008-07-10  Eric Blake  <ebb9@byu.net>
11727
11728         Work with tar's bootstrap.
11729         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
11730         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
11731         an m4 comment.
11732
11733 2008-07-09  Jim Meyering  <meyering@redhat.com>
11734
11735         posix-shell.m4: fix typo that made this test malfunction
11736         * m4/posix-shell.m4: Remove capitalization in variable name.
11737
11738 2008-07-08  Bruno Haible  <bruno@clisp.org>
11739
11740         * m4/onceonly.m4: Update comments.
11741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11742
11743 2008-07-04  Jim Meyering  <meyering@redhat.com>
11744
11745         * users.txt: Add vc-dwim.
11746         (bison, coreutils): Use the gitweb URL.
11747
11748 2008-07-03  Jim Meyering  <meyering@redhat.com>
11749
11750         * users.txt: Add libffcall.  From Sam Steingold.
11751
11752 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
11753
11754         getdate.y: do not ignore TZ with relative day, month or year offset
11755         * lib/getdate.y (get_date): Move the tz-handling block to follow the
11756         relative-date-handling, since otherwise, the latter would clobber the
11757         sole output (an updated Start value) of the tz-handling block.
11758         * tests/test-getdate.c: Tests for the fix
11759
11760 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11761
11762         Recognize 'foo_LIBRARIES += libgnu.a'.
11763         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
11764         makefile snippet has already specified an installation location,
11765         also using '+='.
11766
11767 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
11768
11769         getdate.y: factor out common actions
11770         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
11771         Use them in place of open-coded actions.
11772
11773 2008-07-01  Simon Josefsson  <simon@josefsson.org>
11774
11775         Add self-test for getdate module.
11776         * modules/getdate-tests: New file.
11777         * tests/test-getdate.c: New file.
11778
11779 2008-06-29  Bruno Haible  <bruno@clisp.org>
11780
11781         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
11782         .gitignore.
11783         Reported by Sylvain Beucler <beuc@beuc.net>.
11784
11785 2008-06-29  Bruno Haible  <bruno@clisp.org>
11786
11787         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
11788         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
11789
11790 2008-06-29  Bruno Haible  <bruno@clisp.org>
11791
11792         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
11793         EXTRA_DIST.
11794         Reported by Sylvain Beucler <beuc@beuc.net>.
11795
11796 2008-06-26  Jim Meyering  <meyering@redhat.com>
11797
11798         make several modules depend on the "open" module
11799         This provides slightly increased consistency when opening-for-write
11800         the name of a non-directory spelled with a trailing slash.
11801         * modules/chdir-safer: Likewise.
11802         * modules/chown: Likewise.
11803         * modules/clean-temp: Likewise.
11804         * modules/copy-file: Likewise.
11805         * modules/fchdir: Likewise.
11806         * modules/fcntl-safer: Likewise.
11807         * modules/pipe: Likewise.
11808         * modules/utime: Likewise.
11809         Prompted by Eric Blake and Bruno Haible.
11810
11811 2008-06-24  Andreas Schwab  <schwab@suse.de>
11812
11813         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
11814         literals can be used as initializers for global variables.
11815
11816 2008-06-23  Eric Blake  <ebb9@byu.net>
11817
11818         Make gnulib-cache.m4 easier to diff.
11819         * gnulib-tool (func_import): Allow newlines when reading cached
11820         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
11821
11822 2008-06-23  Bruno Haible  <bruno@clisp.org>
11823
11824         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
11825         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
11826         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
11827         m4/signalblocking.m4.
11828         (gl_PREREQ_SIGACTION): Don't invoke it.
11829         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
11830         gl_PREREQ_SIG_HANDLER_H.
11831         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11832         Don't check for sigaction here.
11833
11834 2008-06-23  Bruno Haible  <bruno@clisp.org>
11835
11836         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
11837         (install_handlers): Don't set the SA_RESETHAND flag.
11838
11839 2008-06-23  Bruno Haible  <bruno@clisp.org>
11840
11841         * m4/sigaction.m4: Comment fixes.
11842         * lib/signal.in.h: Likewise.
11843
11844 2008-06-23  Eric Blake  <ebb9@byu.net>
11845
11846         Fix typo.
11847         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
11848
11849         Avoid SA_ namespace.
11850         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
11851         Reported by Ralf Wildenhues.
11852
11853         Avoid test failure due to SA_RESTORER.
11854         * tests/test-sigaction.c (SA_MASK): New macro.
11855         (main): Avoid failing due to extension flags being set.
11856         Reported by Jim Meyering.
11857
11858         Revert use of sig-handler.h in sigprocmask.c.
11859         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
11860         it requires the existence of struct sigaction.
11861         * lib/sigprocmask.c (handler_t): Restore typedef.
11862         (rpl_signal, old_handlers): Use local type.
11863
11864 2008-06-22  Bruno Haible  <bruno@clisp.org>
11865
11866         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
11867         conditionally.
11868         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11869
11870 2008-06-22  Bruno Haible  <bruno@clisp.org>
11871
11872         * doc/posix-functions/siginterrupt.texi: Move note.
11873
11874         * lib/signal.in.h (SA_RESTART): New macro.
11875         * lib/sigaction.c: Update comment.
11876
11877         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
11878
11879         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
11880         (gl_PREREQ_SIGPROCMASK): Invoke it.
11881         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
11882
11883         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
11884
11885         * lib/sigprocmask.c: Update a comment.
11886
11887 2008-06-21  Eric Blake  <ebb9@byu.net>
11888
11889         Use sigaction module rather than signal().
11890         * modules/c-stack (Depends-on): Add sigaction.
11891         * modules/fatal-signal (Depends-on): Likewise.
11892         * modules/nanosleep (Depends-on): Likewise.
11893         * modules/sigprocmask (Files): Add sig-handler.h.
11894         * modules/sigaction (Files): Likewise.
11895         * lib/sig-handler.h (get_handler): New file, suggested by Paul
11896         Eggert.
11897         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
11898         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
11899         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
11900         (init_fatal_signals): Likewise.
11901         * lib/nanosleep.c (rpl_nanosleep): Likewise.
11902         (siginterrupt): Delete fallback.
11903         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
11904         instead.
11905         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
11906         siginterrupt.
11907
11908         New module sigaction, for mingw.
11909         * modules/sigaction: New module...
11910         * modules/sigaction-tests: ...and its test.
11911         * m4/sigaction.m4: New file.
11912         * lib/sigaction.c: Likewise.
11913         * tests/test-sigaction.c: Likewise.
11914         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
11915         * modules/signal (Makefile.am): Likewise.
11916         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
11917         needed.
11918         * doc/posix-headers/signal.texi (signal.h): Mention provided
11919         types.
11920         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
11921         that sigaction is preferable.
11922         * doc/posix-functions/sigaction.texi (sigaction): Mention new
11923         module.
11924         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11925         sigaction.
11926
11927         Improve robustness of sigprocmask by overriding signal.
11928         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
11929         is in use.
11930         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
11931         (SIGKILL, SIGSTOP): Provide fallbacks.
11932         (rpl_signal): Implement.
11933         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
11934         signal can be called inside handlers.
11935
11936         Fix nanosleep module on mingw.
11937         * modules/nanosleep (Depends-on): Add sys_select.
11938         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
11939
11940         Fix licensing of sigprocmask.
11941         * modules/raise (License): Relicense as LGPL.
11942
11943 2008-06-21  Bruno Haible  <bruno@clisp.org>
11944
11945         * lib/propername.c (proper_name_utf8): Don't use the transliterated
11946         result if it contains question marks.
11947         Reported by Michael Geng <linux@michaelgeng.de>.
11948
11949 2008-06-19  Bruno Haible  <bruno@clisp.org>
11950
11951         Fix CVS-ism.
11952         * doc/gnulib.texi: Include updated-stamp.texi.
11953         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
11954         (updated-stamp.texi): New rule.
11955         (gnulib.info): Depend on it.
11956         * doc/.gitignore: Add updated-stamp.texi.
11957         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
11958
11959 2008-06-19  Bruno Haible  <bruno@clisp.org>
11960
11961         * doc/Makefile (gnulib.info): Update and simplify dependencies.
11962         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11963
11964 2008-06-19  Eric Blake  <ebb9@byu.net>
11965
11966         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
11967         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
11968         Reported by Stepan Kasal.
11969
11970 2008-06-18  Bruno Haible  <bruno@clisp.org>
11971
11972         * lib/fatal-signal.c (init_fatal_signals): Add comment.
11973         Reported by Eric Blake.
11974
11975 2008-06-18  Eric Blake  <ebb9@byu.net>
11976
11977         Work around cygwin 1.5.25 strsignal bug.
11978         * tests/test-strsignal.c: Allow for const char *.
11979         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
11980
11981 2008-06-18  Simon Josefsson  <simon@josefsson.org>
11982
11983         * users.txt: Update URL to article and add author/date
11984         information.
11985
11986 2008-06-17  Bruno Haible  <bruno@clisp.org>
11987
11988         New macro gl_DISABLE_THREADS.
11989         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
11990         if the user did not pass --enable-threads or --disable-threads option.
11991         (gl_DISABLE_THREADS): New macro.
11992         Reported by Eric Blake <ebb9@byu.net>.
11993
11994 2008-06-17  Bruno Haible  <bruno@clisp.org>
11995
11996         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
11997         when the macro ignores it.
11998         Based on a patch by Eric Blake <ebb9@byu.net>.
11999
12000 2008-06-17  Bruno Haible  <bruno@clisp.org>
12001
12002         * modules/tls (License): Change to LGPLv2+.
12003         Reported by Eric Blake.
12004
12005 2008-06-17  Eric Blake  <ebb9@byu.net>
12006
12007         Simplify c-stack prerequisites.
12008         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
12009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
12010         no longer requires <ucontext.h> to exist.  Optimize setrlimit
12011         check.
12012         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
12013         <sys/resource.h>.
12014
12015         Move c-stack test into testsuite.
12016         * modules/c-stack-tests: New file.
12017         * lib/c-stack.c [DEBUG]: Move test program...
12018         * tests/test-c-stack.c: ...into this new file.  Skip rather than
12019         fail test if sigaltstack is lacking.
12020         * tests/test-c-stack.sh: New driver file.
12021
12022 2008-06-16  Eric Blake  <ebb9@byu.net>
12023
12024         Use raise module consistently.
12025         * modules/fatal-signal (Depends-on): Add raise.
12026         * modules/sigprocmask (Depends-on): Likewise.
12027         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
12028         * lib/sigprocmask.c (sigprocmask): Likewise.
12029         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12030         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
12031
12032         Fix compliance bug in sigpending.
12033         * lib/sigprocmask.c (sigpending): Return pending array via
12034         parameter, not return value.
12035
12036 2008-06-14  Eric Blake  <ebb9@byu.net>
12037
12038         Improve obstack-printf test code.
12039         * tests/test-obstack-printf.c (test_function): Fix comment, and
12040         simplify usage of obstack_* in macros.  Add a test for coverage.
12041         Reported by Bruno Haible.
12042
12043 2008-06-14  Bruno Haible  <bruno@clisp.org>
12044
12045         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
12046         array size as a constant, not as a const variable.
12047         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
12048         AC_USE_SYSTEM_EXTENSIONS.
12049         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12050         Test whether the obstack_printf function actually exists.
12051         * modules/obstack-printf (Depends-on): Add extensions.
12052         (Include): Remove obstack.h.
12053         * modules/obstack-printf-posix (Depends-on): Add extensions.
12054         (Include): Remove obstack.h.
12055
12056 2008-06-13  Eric Blake  <ebb9@byu.net>
12057
12058         Add obstack-printf and obstack-printf-posix modules.
12059         * modules/obstack-printf: New file.
12060         * modules/obstack-printf-posix: Likewise.
12061         * MODULES.html.sh (Misc): Mention them.
12062         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
12063         Likewise.
12064         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
12065         Likewise.
12066         * modules/stdio (Makefile.am): Accomodate new modules.
12067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12068         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
12069         Declare.
12070         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
12071         functions.
12072         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
12073         (gl_REPLACE_OBSTACK_PRINTF): New macros
12074         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
12075         * tests/test-obstack-printf.c: New file.
12076         * modules/obstack-printf-tests: Likewise.
12077         * modules/obstack-printf-posix-tests: Likewise.
12078
12079 2008-06-11  Bruno Haible  <bruno@clisp.org>
12080
12081         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
12082         * lib/open.c: Include errno.h.
12083         (open): Fail when attempting to write to a file that has a trailing
12084         slash.
12085         * tests/test-open.c (main): Test against trailing slash bug.
12086         * doc/posix-functions/open.texi: Mention the trailing slash bug.
12087
12088 2008-06-10  Bruno Haible  <bruno@clisp.org>
12089
12090         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
12091         for $? to work inside the trap command, with various /bin/sh-s.
12092         * tests/test-vc-list-files-cvs.sh: Likewise.
12093
12094 2008-06-10  Bruno Haible  <bruno@clisp.org>
12095
12096         * lib/acl-internal.h: Don't include gettext.h here.
12097         * lib/set-mode-acl.c: Include gettext.h here.
12098         * lib/copy-acl.c: Likewise.
12099
12100 2008-06-10  Bruno Haible  <bruno@clisp.org>
12101
12102         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
12103         * lib/wait-process.c (wait_subprocess): Likewise.
12104         * lib/execute.h (execute): Add termsigp argument.
12105         * lib/execute.c (execute): Likewise.
12106         * lib/csharpcomp.c (compile_csharp_using_pnet,
12107         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
12108         * lib/csharpexec.c (execute_csharp_using_pnet,
12109         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
12110         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
12111         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
12112         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
12113         is_jikes_present): Update.
12114         * lib/javaexec.c (execute_java_class): Update.
12115         * lib/javaversion.c (execute_and_read_line): Update.
12116         * NEWS: Document the changes.
12117         Reported by Eric Blake.
12118
12119 2008-06-10  Eric Blake  <ebb9@byu.net>
12120
12121         Add missing include.
12122         * tests/test-strstr.c (includes): Add <signal.h>.
12123         * tests/test-strcasestr.c (includes): Likewise.
12124         * tests/test-memmem.c (includes): Likewise.
12125
12126 2008-06-10  Bruno Haible  <bruno@clisp.org>
12127
12128         * lib/wait-process.c (wait_subprocess): Add an assertion.
12129
12130 2008-06-10  Bruno Haible  <bruno@clisp.org>
12131
12132         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
12133
12134 2008-06-10  Bruno Haible  <bruno@clisp.org>
12135
12136         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
12137         using alarm().
12138         * tests/test-strcasestr.c (main): Likewise.
12139         * tests/test-strstr.c (main): Likewise.
12140
12141 2008-06-09  Bruno Haible  <bruno@clisp.org>
12142
12143         Work around the Solaris 10 ACE ACLs ABI change.
12144         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
12145         declare if ACL_NO_TRIVIAL is present.
12146         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
12147         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
12148         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
12149         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
12150         define if ACL_NO_TRIVIAL is present.
12151         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
12152         and use the current ABI.
12153         (file_has_acl): Use same #if condition as elsewhere.
12154         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
12155         in use, and use the current ABI.
12156         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
12157         Reported by Jim Meyering.
12158
12159 2008-06-09  Eric Blake  <ebb9@byu.net>
12160
12161         Work around environments that (stupidly) ignore SIGALRM.
12162         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
12163         before using alarm().
12164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12165         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12166         Reported by Ian Beckwith <ianb@erislabs.net>.
12167
12168         Produce autobuild blurb earlier in log.
12169         * modules/autobuild (configure.ac-early): Move AB_INIT here.
12170
12171 2008-06-09  Jim Meyering  <meyering@redhat.com>
12172         and OndÅ™ej Vašík  <ovasik@redhat.com>
12173
12174         utimens.c: correct kernel bug work-around
12175         OndÅ™ej Vašík found that the invalid return value of 280 indicates
12176         failure, not success, and the kernel bug we're trying to work
12177         around affects not just the utimensat call, but also the fallback
12178         futimens call.
12179         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
12180         not success.
12181         [HAVE_FUTIMENS]: Use the same work-around, here.
12182
12183 2008-06-09  Jim Meyering  <meyering@redhat.com>
12184
12185         add more guards around definition of ACE_-related code
12186         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
12187         ALLOW and ACE_OWNER are also defined.
12188
12189 2008-06-08  Bruno Haible  <bruno@clisp.org>
12190
12191         * lib/acl-internal.h: Add me as co-author.
12192         * lib/file-has-acl.c: Likewise.
12193         * lib/set-mode-acl.c: Likewise.
12194         * lib/copy-acl.c: Likewise.
12195
12196 2008-06-08  Bruno Haible  <bruno@clisp.org>
12197
12198         Add support for AIX ACLs.
12199         * lib/acl-internal.h (acl_nontrivial): New declaration.
12200         * lib/file-has-acl.c (acl_nontrivial): New function.
12201         (file_has_acl): Add implementation using AIX 4 ACL API.
12202         * lib/set-mode-acl.c (qset_acl): Likewise.
12203         * lib/copy-acl.c (qcopy_acl): Likewise.
12204
12205 2008-06-08  Bruno Haible  <bruno@clisp.org>
12206
12207         Add support for HP-UX ACLs.
12208         * lib/acl-internal.h (acl_nontrivial): New declaration.
12209         * lib/file-has-acl.c (acl_nontrivial): New function.
12210         (file_has_acl): Add implementation using HP-UX 11 ACL API.
12211         * lib/set-mode-acl.c (qset_acl): Likewise.
12212         * lib/copy-acl.c (qcopy_acl): Likewise.
12213
12214 2008-06-08  Bruno Haible  <bruno@clisp.org>
12215
12216         Add support for Cygwin ACLs.
12217         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
12218         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
12219         the chmod_or_fchmod call.
12220         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
12221
12222 2008-06-08  Bruno Haible  <bruno@clisp.org>
12223
12224         Fix bug with setuid modes in Solaris 10+ code.
12225         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
12226         succeeded, when the mode contains some special bits.
12227
12228 2008-06-08  Bruno Haible  <bruno@clisp.org>
12229
12230         Add support for Solaris 7..10 ACLs.
12231         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
12232         declarations.
12233         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
12234         functions.
12235         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
12236         * lib/set-mode-acl.c (qset_acl): Likewise.
12237         * lib/copy-acl.c (qcopy_acl): Likewise.
12238
12239 2008-06-08  Bruno Haible  <bruno@clisp.org>
12240
12241         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
12242         declaration.
12243         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
12244         (acl_access_nontrivial): Remove MacOS X case.
12245         (file_has_acl): Use acl_extended_nontrivial.
12246         * lib/copy-acl.c (qcopy_acl): Likewise.
12247
12248 2008-06-08  Bruno Haible  <bruno@clisp.org>
12249
12250         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
12251
12252 2008-06-08  Jim Meyering  <meyering@redhat.com>
12253
12254         * modules/acl (Maintainer): Add Bruno Haible.
12255
12256 2008-06-07  Bruno Haible  <bruno@clisp.org>
12257
12258         Improve support for Tru64 ACLs.
12259         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
12260         ACL on OSF/1.
12261
12262 2008-06-07  Bruno Haible  <bruno@clisp.org>
12263
12264         Add support for MacOS X ACLs.
12265         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
12266         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
12267         * lib/set-mode-acl.c (qset_acl): Likewise.
12268         * lib/copy-acl.c (qcopy_acl): Likewise.
12269
12270 2008-06-07  Bruno Haible  <bruno@clisp.org>
12271
12272         Fix memory leak introduced on 2008-05-22.
12273         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
12274         use.
12275
12276 2008-06-07  Bruno Haible  <bruno@clisp.org>
12277
12278         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
12279         to construct an empty ACL.
12280
12281 2008-06-07  Bruno Haible  <bruno@clisp.org>
12282
12283         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
12284         precisely.
12285         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
12286
12287 2008-06-07  Bruno Haible  <bruno@clisp.org>
12288
12289         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
12290         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
12291
12292 2008-06-07  Bruno Haible  <bruno@clisp.org>
12293
12294         * doc/posix-functions/_setjmp.texi: Explain the use of this function
12295         regardless of POSIX.
12296         * doc/posix-functions/_longjmp.texi: Likewise.
12297         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
12298         SystemV platform in this case.
12299
12300 2008-06-06  Eric Blake  <ebb9@byu.net>
12301
12302         Document abort() bugs.
12303         * doc/posix-functions/abort.texi (abort): Mention anomalies.
12304
12305         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
12306         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
12307         sigsetjmp.
12308         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
12309         siglongjmp, but only as a macro.
12310         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
12311         is obsolete.
12312         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
12313
12314         Tweak documentation to cover cygwin argz bugs.
12315         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
12316         argz bug fix; no code change needed since no cygwin releases
12317         occurred between the last fix and the bug being tested.
12318         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
12319         module and recently fixed cygwin bugs.
12320         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
12321         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
12322         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
12323         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
12324         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
12325         Likewise.
12326         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
12327         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
12328         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
12329         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
12330         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
12331         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
12332         Likewise.
12333
12334         Avoid gcc warning on cygwin.
12335         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
12336         !ACL_NO_TRIVIAL]: Avoid unused variable.
12337
12338 2008-06-05  Eric Blake  <ebb9@byu.net>
12339
12340         Be tolerant of UNKNOWN version in gnulib-tool test dir.
12341         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
12342         git-version-gen fails to come up with a version.
12343         Reported by Simon Josefsson.
12344
12345 2008-06-05  Jim Meyering  <meyering@redhat.com>
12346             Paul Eggert  <eggert@cs.ucla.edu>
12347
12348         utimens.c: work around a probable Linux kernel bug
12349         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
12350         appears to be a kernel bug that causes utimensat to return 280
12351         instead of 0, indicating success.
12352
12353 2008-06-04  Bruno Haible  <bruno@clisp.org>
12354
12355         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
12356         2008-06-01 commit.
12357
12358 2008-06-04  Bruno Haible  <bruno@clisp.org>
12359
12360         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
12361         * lib/file-has-acl.c (acl_access_nontrivial): New function.
12362         (file_has_acl): Use it. Save errno afterwards.
12363         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
12364
12365 2008-06-03  Bruno Haible  <bruno@clisp.org>
12366
12367         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
12368         draft code. Simplify #ifs.
12369         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
12370         Put Solaris code after POSIX-draft code. Fix comments regarding
12371         Solaris 10, HP-UX. Mention Cygwin.
12372         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
12373
12374 2008-06-03  Eric Blake  <ebb9@byu.net>
12375
12376         Provide fallback for older kernels.
12377         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
12378         Provide runtime fallback if kernel lacks support.
12379         Reported by Mike Frysinger.
12380
12381 2008-06-02  Bruno Haible  <bruno@clisp.org>
12382
12383         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
12384         it exists.
12385
12386 2008-06-02  Bruno Haible  <bruno@clisp.org>
12387
12388         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
12389         * lib/copy-acl.c (qcopy_acl): Update comment.
12390
12391 2008-06-02  Bruno Haible  <bruno@clisp.org>
12392
12393         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
12394         like ACL APIs.
12395
12396 2008-06-02  Bruno Haible  <bruno@clisp.org>
12397
12398         * tests/test-file-has-acl.sh: Use different code for Cygwin.
12399         * tests/test-set-mode-acl.sh: Likewise.
12400         * tests/test-copy-acl.sh: Likewise.
12401         * tests/test-copy-file.sh: Likewise.
12402
12403 2008-06-02  Bruno Haible  <bruno@clisp.org>
12404
12405         * tests/test-file-has-acl.sh: Remove unused code.
12406
12407 2008-06-01  Bruno Haible  <bruno@clisp.org>
12408
12409         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
12410         (copy_acl): Just a wrapper around qcopy_acl that emits the error
12411         messages.
12412         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
12413
12414 2008-06-01  Bruno Haible  <bruno@clisp.org>
12415
12416         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
12417         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
12418         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
12419         APIs.
12420         * modules/acl-tests (configure.ac): Remove tests now contained in
12421         m4/acl.m4.
12422
12423 2008-06-02  Jim Meyering  <meyering@redhat.com>
12424
12425         announce-gen: use a better key-server host name
12426         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
12427         it may be more consistently reliable.  Suggested by Werner Koch
12428         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
12429
12430 2008-06-01  Bruno Haible  <bruno@clisp.org>
12431
12432         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
12433         Reported by Voroskoi Andras <voroskoi@gmail.com>.
12434
12435 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
12436
12437         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
12438
12439 2008-06-01  Bruno Haible  <bruno@clisp.org>
12440
12441         New ACL tests.
12442         * tests/test-file-has-acl.sh: New file.
12443         * tests/test-file-has-acl.c: New file.
12444         * tests/test-set-mode-acl.sh: New file.
12445         * tests/test-set-mode-acl.c: New file.
12446         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
12447         * tests/test-copy-acl.c: New file.
12448         * modules/acl-tests: New file, based on modules/copy-file-tests.
12449         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
12450         (Depends-on): Add acl-tests.
12451         (configure.ac): Remove checks.
12452         (Makefile.am): Don't create test-sameacls program here any more.
12453
12454 2008-06-01  Bruno Haible  <bruno@clisp.org>
12455
12456         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
12457         * tests/test-sameacls.c: Include progname.h.
12458         (main): Invoke set_program_name. Portability fixes for MacOS X,
12459         Solaris, HP-UX.
12460
12461 2008-06-01  Bruno Haible  <bruno@clisp.org>
12462
12463         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
12464         function.
12465         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
12466
12467 2008-06-01  Bruno Haible  <bruno@clisp.org>
12468
12469         * modules/rpmatch (Depends-on): Add strdup.
12470
12471 2008-06-01  Bruno Haible  <bruno@clisp.org>
12472
12473         * lib/pipe.c: Include unistd-safer.h.
12474         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
12475         * modules/pipe (Depends-on): Add unistd-safer.
12476
12477 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12478
12479         * modules/autobuild (configure.ac): Call AB_INIT.
12480
12481 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12482
12483         * tests/test-getaddrinfo.c: Don't print debug messages by default.
12484         Suggested by Bruno Haible <bruno@clisp.org>.
12485
12486 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12487
12488         * tests/test-base64.c: Cast size_t to unsigned long when invoking
12489         printf.  Use %lu instead of %d.  Reported by Bruno Haible
12490         <bruno@clisp.org>.
12491
12492 2008-05-29  Eric Blake  <ebb9@byu.net>
12493
12494         Prefer new POSIX 200x interfaces over futimesat.
12495         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
12496         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
12497         when available.
12498         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
12499
12500 2008-05-28  Bruno Haible  <bruno@clisp.org>
12501
12502         * modules/stpcpy (License): Change to LGPLv2+.
12503         Requested by David Lutterkort <dlutter@redhat.com>.
12504
12505 2008-05-27  Bruno Haible  <bruno@clisp.org>
12506
12507         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
12508         current mingw.
12509         Reported by Jose E. Marchesi <jemarch@gnu.org>.
12510
12511 2008-05-27  Bruno Haible  <bruno@clisp.org>
12512
12513         * modules/iconv_open (Link): New section, from module 'iconv'.
12514         * modules/striconv (Link): Likewise.
12515         * modules/striconveh (Link): Likewise.
12516         * modules/xstriconv (Link): Likewise.
12517         * modules/unicodeio (Link): Likewise.
12518         * modules/propername (Link): Likewise.
12519         Reported by Jim Meyering.
12520
12521 2008-05-26  Jim Meyering  <meyering@redhat.com>
12522
12523         sha256: do not artificially restrict buffer length to be < 2^32
12524         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
12525         uint32_t to size_t.
12526         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
12527         to match.
12528
12529         avoid unaligned access errors, e.g., on sparc
12530         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
12531         direct access through a possibly-unaligned uint64* pointer.
12532         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
12533         direct access through a possibly-unaligned uint32* pointer.
12534         Prompted by this patch from Tom "spot" Callaway:
12535         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
12536
12537         sha512.c: fix typo in comment
12538         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
12539
12540 2008-05-25  Bruno Haible  <bruno@clisp.org>
12541
12542         * lib/set-mode-acl.c: Renamed from lib/acl.c.
12543         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
12544         (Makefile.am): Update lib_SOURCES.
12545
12546 2008-05-25  Bruno Haible  <bruno@clisp.org>
12547
12548         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
12549
12550 2008-05-25  Jim Meyering  <meyering@redhat.com>
12551
12552         useless-if-before-free: freed expr may have white-space differences
12553         * build-aux/useless-if-before-free: Recognize cases in which the
12554         freed expression differs from the tested one in embedded white
12555         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
12556         $1 was used, so we can't make any regexp shy.  Improved tests now
12557         detect this.
12558
12559         useless-if-before-free: accept white space in the expression.
12560         * build-aux/useless-if-before-free: For now, any white space
12561         in the expression must be identical in the free argument.
12562
12563         useless-if-before-free: efficiency tweak
12564         * build-aux/useless-if-before-free: Make the expression-matching
12565         regexp "shy".
12566         Make the *outer* regexp shy, not the expr-matching one.
12567
12568         update code-in-comment to accept cast of free arg
12569         * build-aux/useless-if-before-free: Update regexp.
12570
12571 2008-05-25  Bruno Haible  <bruno@clisp.org>
12572
12573         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
12574         * modules/copy-file-tests (Files, Makefile.am): Update.
12575         * tests/test-copy-file.c (func_test_copy): Update.
12576
12577 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
12578
12579         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
12580
12581 2008-05-23  Bruno Haible  <bruno@clisp.org>
12582
12583         Improve support for ACLs on OSF/1.
12584         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
12585         Remove fallback for unknown flavors of ACLs.
12586
12587 2008-05-22  Bruno Haible  <bruno@clisp.org>
12588
12589         Add support for ACLs on OSF/1.
12590         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
12591         replacements.
12592         (acl_free_text): New macro fallback.
12593         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
12594         acl_free.
12595         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
12596         acl_free_text function. Require AC_C_INLINE.
12597
12598 2008-05-22  Bruno Haible  <bruno@clisp.org>
12599
12600         Make copy_acl work on MacOS X 10.5.
12601         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
12602         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
12603         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
12604         If MODE_INSIDE_ACL, don't assume that every system has the same text
12605         representation for ACLs as FreeBSD.
12606         * lib/copy-acl.c (copy_acl): Add support for platforms with
12607         !MODE_INSIDE_ACL.
12608         * lib/file-has-acl.c (file_has_acl): Likewise.
12609         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
12610         FreeBSD, MacOS X, or IRIX, respectively.
12611
12612 2008-05-22  Bruno Haible  <bruno@clisp.org>
12613
12614         * lib/acl.h: Don't include <sys/acl.h>.
12615         (GETACLCNT): Move fallback to lib/acl-internal.h.
12616         * lib/acl-internal.h: Include <sys/acl.h> here.
12617         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
12618
12619 2008-05-22  Bruno Haible  <bruno@clisp.org>
12620
12621         Split off copy_acl function to separate file.
12622         * lib/copy-acl.c: New file, extracted from lib/acl.c.
12623         * lib/acl.c (copy_acl): Moved function to separate file.
12624         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
12625         * modules/acl (Files): Add lib/copy-acl.c.
12626         (Makefiles.am): Augment lib_SOURCES.
12627
12628 2008-05-22  Bruno Haible  <bruno@clisp.org>
12629
12630         * modules/copy-file-tests: New file.
12631         * tests/test-copy-file.sh: New file.
12632         * tests/test-copy-file.c: New file.
12633         * tests/test-copy-file-sameacls.c: New file.
12634
12635 2008-05-22  Eric Blake  <ebb9@byu.net>
12636
12637         Avoid gcc warning.
12638         * tests/test-memcmp.c (main): Pass NULL indirectly.
12639
12640 2008-05-21  Bruno Haible  <bruno@clisp.org>
12641
12642         Add reference doc about ACLs.
12643         * doc/acl-resources.txt: New file.
12644         * doc/acl-cygwin.txt: New file.
12645
12646 2008-05-21  Bruno Haible  <bruno@clisp.org>
12647
12648         Avoid one more warning from gcc.
12649         * lib/vasnprintf.c (IF_LINT): Update comments.
12650         (VASNPRINTF): Use it also for the 'prefix' array initializer.
12651
12652 2008-05-21  Jim Meyering  <meyering@redhat.com>
12653
12654         avoid a warning from gcc
12655         * lib/vasnprintf.c (IF_LINT): Define.
12656         (scale10_round_decimal_long_double):
12657         Use it to avoid a "may be used uninitialized" warning.
12658         (scale10_round_decimal_double): Likewise.
12659
12660 2008-05-21  Simon Josefsson  <simon@josefsson.org>
12661
12662         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
12663         declared.
12664
12665 2008-05-20  Bruno Haible  <bruno@clisp.org>
12666
12667         * tests/test-memcmp.c (main): Test also the sign of the result. Test
12668         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
12669
12670 2008-05-20  Simon Josefsson  <simon@josefsson.org>
12671
12672         * modules/memcmp-tests: New file.
12673         * tests/test-memcmp.c: New file.
12674
12675 2008-05-19  Bruno Haible  <bruno@clisp.org>
12676
12677         * modules/propername (Notice, configure.ac): Put quoted "..." into
12678         --keyword option.
12679         * lib/propername.h: Update comments accordingly.
12680         Reported by Eric Blake.
12681
12682 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
12683
12684         * modules/getpass-gnu (Depends-on): Add fseeko.
12685
12686 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12687
12688         * modules/base64-tests: New file.
12689
12690 2008-05-19  Bo Borgerson <gigabo@gmail.com>
12691
12692         * lib/base64.c (base64_decode_ctx): If a decode context structure
12693         was passed in use it to ignore newlines.  If a context structure
12694         was _not_ passed in, continue to treat newlines as garbage (this
12695         is the historical behavior).  Formerly base64_decode.
12696         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12697         takes a decode context structure.
12698         * lib/base64.h (base64_decode): Macro for four-argument calls.
12699         (base64_decode_alloc): Likewise.
12700         * lib/base64.c (base64_decode_ctx): If a decode context structure
12701         was passed in use it to ignore newlines.  If a context structure
12702         was _not_ passed in, continue to treat newlines as garbage (this
12703         is the historical behavior).  Formerly base64_decode.
12704         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12705         takes a decode context structure.
12706         * lib/base64.h (base64_decode): Macro for four-argument calls.
12707         (base64_decode_alloc): Likewise.
12708
12709 2008-05-19  Jim Meyering  <meyering@redhat.com>
12710
12711         avoid a warning from gcc
12712         * lib/trim.c (IF_LINT): Define.
12713         (trim2): Use it to avoid a "may be used uninitialized" warning.
12714
12715         Fix doc typo.
12716         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
12717
12718 2008-05-19  Bruno Haible  <bruno@clisp.org>
12719
12720         * doc/glibc-functions/getpass.texi: Document limits of other
12721         implementations.
12722
12723 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12724             Bruno Haible <bruno@clisp.org>
12725
12726         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
12727
12728 2008-05-18  Bruno Haible  <bruno@clisp.org>
12729
12730         * modules/propername: New file, from GNU gettext.
12731         * lib/propername.h: New file, from GNU gettext.
12732         * lib/propername.c: New file, from GNU gettext.
12733         * MODULES.html.sh (Internationalization functions): Add propername.
12734
12735 2008-05-16  Jim Meyering  <meyering@redhat.com>
12736             Bruno Haible  <bruno@clisp.org>
12737
12738         Avoid some warnings from "gcc -Wshadow".
12739         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
12740
12741 2008-05-15  Eric Blake  <ebb9@byu.net>
12742
12743         Extend previous patch to cygwin 1.7.0.
12744         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
12745         fast implementation in cygwin >= 1.7.0.
12746         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12748
12749 2008-05-15  Bruno Haible  <bruno@clisp.org>
12750
12751         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
12752         implementation in glibc >= 2.9.
12753         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12755
12756 2008-05-15  Bruno Haible  <bruno@clisp.org>
12757
12758         * MODULES.html.sh (Internationalization functions): Remove linebreak.
12759         (Unicode string functions): Add unilbrk/*.
12760         Reported by Karl Berry.
12761
12762 2008-05-15  Eric Blake  <ebb9@byu.net>
12763
12764         Fix violation of <stdbool.h> replacement in regex.
12765         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
12766         * lib/regexec.c (re_search_internal): Likewise.
12767         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
12768
12769 2008-05-15  Jim Meyering  <meyering@redhat.com>
12770
12771         avoid distracting test output when git or cvs is not found
12772         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
12773         * tests/test-vc-list-files-git.sh: Likewise.
12774
12775 2008-05-15  Eric Blake  <ebb9@byu.net>
12776
12777         Glibc finally accepted the memmem speedup code, bugzilla #5514.
12778         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
12779         glibc version.
12780         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12781         * doc/posix-functions/strstr.texi (strstr): Likewise.
12782         * lib/str-two-way.h (MAX): Sychronize with glibc.
12783
12784 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
12785
12786         * lib/regcomp.c (optimize_utf8): Add a note on why we test
12787         opr.ctx_type.
12788         (calc_first): Initialize constraint field.
12789         (duplicate_node_closure): Use it instead of special casing ANCHORS.
12790         Fix grammar.
12791         (duplicate_node): Merge constraint field for all node types.
12792         (calc_eclosure_iter): Look at constraint field for all node types.
12793         * lib/regex_internal.c (create_cd_newstate): Don't look at
12794         opr.ctx_type.
12795
12796 2008-05-14  Bruno Haible  <bruno@clisp.org>
12797
12798         Help GCC to do better code generation.
12799         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
12800         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12801         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
12802         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
12803         Declare with attribute 'malloc' if supported.
12804
12805 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
12806
12807         use "echo STR|wc -c" rather than unportable "expr length STR"
12808         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
12809         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
12810
12811 2008-05-14  Jim Meyering  <meyering@redhat.com>
12812
12813         use dd ibs=$n count=1 ... rather than less-portable head -c$n
12814         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
12815         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
12816         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
12817         via Collin Lasse.
12818
12819 2008-05-14  Eric Blake  <ebb9@byu.net>
12820
12821         Avoid quadratic growth in gl_LIBSOURCES.
12822         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
12823         Suggested by Bruno Haible.
12824
12825         Test xmemdup0.
12826         * modules/xmemdup0-tests: New file.
12827         * tests/test-xmemdup0.c: Likewise.
12828
12829 2008-05-13  Eric Blake  <ebb9@byu.net>
12830
12831         Split xmemdup0 into its own module.
12832         * modules/xmemdup0: New file.
12833         * lib/xmemdup0.h: Likewise.
12834         * lib/xmemdup0.c: Likewise.
12835         * MODULES.html.sh (Memory management functions): Add xmemdup0.
12836         * lib/xalloc.h (xmemdup0): Remove.
12837         * lib/xmalloc.c (xmemdup0): Likewise.
12838
12839 2008-05-13  Eric Blake  <ebb9@byu.net>
12840             Bruno Haible  <bruno@clisp.org>
12841
12842         Reduce number of forks required during autoconf.
12843         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
12844         and gl_LIBSOURCES_DIR.
12845         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
12846         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
12847         m4_syscmd per file.
12848         <m4_foreach_w>: Move...
12849         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
12850
12851 2008-05-13  Eric Blake  <ebb9@byu.net>
12852
12853         * gnulib-tool: Fix various comment typos.
12854
12855 2008-05-12  Bruno Haible  <bruno@clisp.org>
12856
12857         Tailor the linebreaking algorithm.
12858         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
12859
12860 2008-05-12  Bruno Haible  <bruno@clisp.org>
12861
12862         Update to Unicode 5.0.0.
12863         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12864         LBP_JV, LBP_JT. Redistribute values.
12865         (unilbrk_table): Change size.
12866         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
12867         Unicode TR#14 rev. 22.
12868         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12869         LBP_JV, LBP_JT. Redistribute values.
12870         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
12871         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
12872         Update.
12873         * lib/unilbrk/lbrkprop1.h: Regenerated.
12874         * lib/unilbrk/lbrkprop2.h: Regenerated.
12875         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
12876         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
12877         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12878         Likewise.
12879         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12880         Likewise.
12881         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
12882         result.
12883         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12884         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12885         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12886         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
12887         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
12888         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
12889
12890 2008-05-11  Bruno Haible  <bruno@clisp.org>
12891
12892         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
12893
12894 2008-05-11  Bruno Haible  <bruno@clisp.org>
12895
12896         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
12897         * modules/unilbrk/gen-lbrk: New file.
12898
12899 2008-05-11  Bruno Haible  <bruno@clisp.org>
12900
12901         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
12902         * m4/sha512.m4 (gl_SHA512): Likewise.
12903
12904 2008-05-11  Jim Meyering  <meyering@redhat.com>
12905
12906         New modules: crypto/sha256, crypto/sha512 (from coreutils)
12907         * modules/crypto/sha256: New file.
12908         * modules/crypto/sha512: Likewise.
12909         * lib/sha256.c: Likewise.
12910         * lib/sha256.h: Likewise.
12911         * lib/sha512.c: Likewise.
12912         * lib/sha512.h: Likewise.
12913         * lib/u64.h: Likewise.
12914         * m4/sha256.m4: Likewise.
12915         * m4/sha512.m4: Likewise.
12916         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
12917
12918 2008-05-10  Bruno Haible  <bruno@clisp.org>
12919
12920         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
12921         (Input/Output <stdio.h>): Add xprintf.
12922         (Signal handling <signal.h>): Add strsignal.
12923         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
12924         (Core language properties): Add func.
12925         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
12926         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
12927         strings.
12928         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
12929         (Input/output): New section.
12930         (File system functions): Add openat-die, stat-macros.
12931         (Networking functions): Add sockets.
12932         (Unicode string functions): Add unictype/*.
12933         (Support for building libraries and executables): Add gperf.
12934         (Support for building documentation): Add agpl-3.0.
12935         (Misc): Add nocrash.
12936
12937 2008-05-10  Bruno Haible  <bruno@clisp.org>
12938
12939         * modules/unictype/gen-ctype: New file.
12940
12941 2008-05-10  Jim Meyering  <meyering@redhat.com>
12942
12943         Make chdir-safer.c more efficient on a system with no symlinks.
12944         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
12945         also if ELOOP is zero.  Suggested by Bruno Haible.
12946
12947         Make chdir-safer.c slightly safer.
12948         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
12949         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
12950
12951         Avoid compile failure on systems without ELOOP (like mingw).
12952         * lib/chdir-safer.c (ELOOP): Define if not already defined.
12953         Reported by Bruno Haible.
12954
12955 2008-05-10  Bruno Haible  <bruno@clisp.org>
12956
12957         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
12958         (is_utf8_encoding): Use a case-insensitive comparison.
12959         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
12960         streq.
12961
12962 2008-05-10  Bruno Haible  <bruno@clisp.org>
12963
12964         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
12965         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
12966         * lib/unilbrk/ulc-common.h (iconv_string_length,
12967         iconv_string_keeping_offsets): Remove declarations.
12968         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
12969         Don't include <iconv.h>, streq.h, xsize.h.
12970         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
12971         conversion.
12972         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
12973         <iconv.h>, streq.h, xsize.h.
12974         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
12975         conversion.
12976         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
12977         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
12978         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
12979         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
12980
12981 2008-05-10  Bruno Haible  <bruno@clisp.org>
12982
12983         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
12984         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
12985
12986         * modules/unilbrk/u32-width-linebreaks-tests: New file.
12987         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
12988
12989         * modules/unilbrk/u16-width-linebreaks-tests: New file.
12990         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
12991
12992         * modules/unilbrk/u8-width-linebreaks-tests: New file.
12993         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
12994
12995         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
12996         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
12997
12998         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
12999         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
13000
13001         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
13002         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
13003
13004         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
13005         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
13006
13007 2008-05-10  Bruno Haible  <bruno@clisp.org>
13008
13009         Split up 'linebreak' module.
13010         * lib/unilbrk.h: New file, based on lib/linebreak.h.
13011         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
13012         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
13013         modifications.
13014         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
13015         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
13016         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
13017         lib/linebreak.c.
13018         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
13019         lib/linebreak.c.
13020         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
13021         lib/linebreak.c.
13022         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
13023         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
13024         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
13025         lib/linebreak.c.
13026         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
13027         lib/linebreak.c.
13028         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
13029         lib/linebreak.c.
13030         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
13031         lib/linebreak.c.
13032         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
13033         lib/linebreak.c.
13034         * modules/unilbrk/base: New file.
13035         * modules/unilbrk/tables: New file.
13036         * modules/unilbrk/u8-possible-linebreaks: New file.
13037         * modules/unilbrk/u16-possible-linebreaks: New file.
13038         * modules/unilbrk/u32-possible-linebreaks: New file.
13039         * modules/unilbrk/ulc-common: New file.
13040         * modules/unilbrk/ulc-possible-linebreaks: New file.
13041         * modules/unilbrk/u8-width-linebreaks: New file.
13042         * modules/unilbrk/u16-width-linebreaks: New file.
13043         * modules/unilbrk/u32-width-linebreaks: New file.
13044         * modules/unilbrk/ulc-width-linebreaks: New file.
13045         * lib/linebreak.h: Remove file.
13046         * lib/linebreak.c: Remove file.
13047         * m4/linebreak.m4: Remove file.
13048         * modules/linebreak: Remove file.
13049         * NEWS: Mention the changes.
13050
13051 2008-05-09  Eric Blake  <ebb9@byu.net>
13052
13053         Add xmemdup0.
13054         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
13055         implementation.
13056         * lib/xmalloc.c (xmemdup0): New C implementation.
13057
13058 2008-05-08  Bruno Haible  <bruno@clisp.org>
13059
13060         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
13061
13062 2008-05-07  Eric Blake  <ebb9@byu.net>
13063
13064         Support cross-compilation of <wctype.h>.
13065         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
13066         AC_CACHE_CHECK.
13067
13068 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
13069
13070         * build-aux/vc-list-files: Add support for bzr.
13071
13072 2008-05-03  Jim Meyering  <meyering@redhat.com>
13073
13074         avoid failed assertion with tight malloc
13075         * tests/test-getndelim2.c: Correct an off-by-one assertion.
13076
13077 2008-05-03  Simon Josefsson  <simon@josefsson.org>
13078
13079         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
13080         are needed from arpa/inet.h.
13081         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
13082         Reported by Bruno Haible.
13083
13084 2008-05-02  Jim Meyering  <meyering@redhat.com>
13085
13086         avoid compilation error on FreeBSD 6
13087         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
13088
13089 2008-05-01  Jim Meyering  <meyering@redhat.com>
13090
13091         useless-if-before-free: correct --help's exit status description
13092         * build-aux/useless-if-before-free (usage): Like grep, exit 0
13093         for one or more matches, etc.  Reported by Bruno Haible.
13094
13095         vc-list-files: make the stand-alone gnulib test work
13096         * modules/vc-list-files-tests (configure.ac):
13097         Define and AC_SUBST abs_aux_dir.
13098         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
13099         $(abs_top_srcdir) to each script and having each of them
13100         duplicate the work of setting PATH, set PATH here, using
13101         the new variable, abs_aux_dir instead.
13102         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
13103         * tests/test-vc-list-files-git.sh: Likewise.
13104         Reported by Bruno Haible.
13105
13106 2008-05-01  Bruno Haible  <bruno@clisp.org>
13107
13108         * lib/getndelim2.c (getndelim2): Fix newsize computation during
13109         reallocation. Rename 'done' to 'found_delimiter'.
13110
13111 2008-05-01  Jim Meyering  <meyering@redhat.com>
13112
13113         vc-list-files: accommodate /bin/sh like the one from Solaris 10
13114         * build-aux/vc-list-files: Use `...`, not $(...).
13115
13116 2008-04-30  Jim Meyering  <meyering@redhat.com>
13117
13118         add tests for vc-list-files
13119         * modules/vc-list-files-tests: New module.
13120         * tests/test-vc-list-files-cvs.sh: New file.
13121         * tests/test-vc-list-files-git.sh: New file.
13122
13123         avoid a warning from gcc
13124         * lib/getndelim2.c (IF_LINT): Define.
13125         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
13126
13127         vc-list-files: work properly with build-aux/cvsu, too
13128         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
13129         to all cvs-based clauses.
13130
13131         vc-list-files: work properly in the CVS+awk case, too
13132         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
13133
13134         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
13135         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
13136         take more than one file argument, so .  Add quotes, just in case $dir
13137         ever contains a shell meta-character.  Prompted by Soren Hansen in
13138         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
13139
13140 2008-04-29  Eric Blake  <ebb9@byu.net>
13141
13142         Optimize getndelim2 to use block operations when possible.
13143         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
13144         freadseek, and memchr2.
13145         * lib/getndelim2.c (getndelim2): Use them for block reads.
13146
13147 2008-04-29  Bruno Haible  <bruno@clisp.org>
13148
13149         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
13150         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13151         * modules/inet_ntop (Depends-on): Add extensions.
13152         * modules/inet_pton (Depends-on): Likewise.
13153         Reported by Simon Josefsson.
13154
13155 2008-04-29  Jim Meyering  <meyering@redhat.com>
13156
13157         When the is more than one match in a block, match all of them.
13158         * build-aux/useless-if-before-free: Iterate through each block
13159         until there are no more matches.
13160
13161         Fix broken useless-if-before-free script.
13162         * build-aux/useless-if-before-free: Fix typo: missing "?" after
13163         the expression to match cast of argument to free-like function.
13164
13165 2008-04-29  Eric Blake  <ebb9@byu.net>
13166
13167         Use new header.
13168         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
13169
13170 2008-04-29  Jim Meyering  <meyering@redhat.com>
13171
13172         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
13173         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
13174         by gnulib to exist and to declare e.g., inet_ntop.
13175         Don't include "inet_ntop.h", now removed.
13176
13177         * m4/arpa_inet_h.m4: Remove trailing blanks.
13178
13179 2008-04-29  Eric Blake  <ebb9@byu.net>
13180
13181         Silence valgrind on safe reads beyond potential array bounds.
13182         * lib/rawmemchr.valgrind: New file.
13183         * lib/strchrnul.valgrind: Likewise.
13184         * modules/rawmemchr (Files): Distribute new file.
13185         * modules/strchrnul (Files): Likewise.
13186         Suggested by Bruno Haible.
13187
13188 2008-04-29  Bruno Haible  <bruno@clisp.org>
13189
13190         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
13191         (inet_ntop, inet_pton): Change portability warning's wording.
13192         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
13193         Invoke gl_CHECK_NEXT_HEADERS.
13194         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
13195         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
13196         set ARPA_INET_H.
13197         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13198         * modules/arpa_inet (Description): No longer only for systems that
13199         lack it.
13200         (Depends-on): Add include_next.
13201         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
13202         HAVE_ARPA_INET_H.
13203
13204 2008-04-29  Jim Meyering  <meyering@redhat.com>
13205
13206         * modules/mkdir (License): Re-license as LGPLv2+.
13207
13208 2008-04-29  Bruno Haible  <bruno@clisp.org>
13209
13210         * modules/rawmemchr (Maintainer): Set to Eric.
13211         * modules/strchrnul (Maintainer): Likewise.
13212
13213 2008-04-29  Simon Josefsson  <simon@josefsson.org>
13214
13215         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
13216         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
13217
13218         * modules/arpa_inet (arpa/inet.h): Use them.
13219
13220 2008-04-28  Eric Blake  <ebb9@byu.net>
13221
13222         Test getndelim2.
13223         * modules/getndelim2-tests: New file.
13224         * tests/test-getndelim2.c: Likewise.
13225         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
13226         stream.
13227         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
13228
13229         * MODULES.html.sh: Document new module.
13230
13231 2008-04-20  Bruno Haible  <bruno@clisp.org>
13232
13233         * lib/c-stack.c (die): Use raise.
13234         * modules/c-stack (Depends-on): Add raise.
13235
13236 2008-04-28  Bruno Haible  <bruno@clisp.org>
13237
13238         Expect rpmatch to be declared.
13239         * lib/yesno.c (rpmatch): Remove declaration.
13240
13241         Declare rpmatch.
13242         * lib/stdlib.in.h (rpmatch): New declaration.
13243         * lib/rpmatch.c: Include <stdlib.h> first.
13244         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
13245         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
13246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
13247         HAVE_RPMATCH.
13248         * modules/rpmatch (Depends-on): Add stdlib, extensions.
13249         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13250         (Include): Set to <stdlib.h>.
13251         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
13252         HAVE_RPMATCH.
13253         * NEWS: Document the change.
13254
13255 2008-04-28  Bruno Haible  <bruno@clisp.org>
13256
13257         Change rpmatch to use nl_langinfo when appropriate.
13258         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
13259         (N_): New macro.
13260         (localized_pattern): New function/macro.
13261         (try): Remove match, nomatch arguments. Copy the pattern into safe
13262         memory before caching it.
13263         (rpmatch): Use localized_pattern. Add translator comments.
13264         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
13265         Suggested by Eric Blake.
13266         * modules/rpmatch (Depends-on): Add stdbool.
13267
13268 2008-04-28  Eric Blake  <ebb9@byu.net>
13269
13270         Add rawmemchr module, matching glibc.
13271         * modules/string (Makefile.am): New indicator.
13272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
13273         * lib/string.in.h (rawmemchr): Declare when appropriate.
13274         * modules/rawmemchr: New file.
13275         * m4/rawmemchr.m4: Likewise.
13276         * lib/rawmemchr.c: Likewise.
13277         * modules/rawmemchr-tests: Likewise.
13278         * tests/test-rawmemchr.c: Likewise.
13279         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
13280         module.
13281         * modules/strchrnul (Depends-on): Add rawmemchr.
13282         * lib/strchrnul.c (strchrnul): Optimize a corner case.
13283
13284         Whitespace cleanup.
13285         * tests/test-strchrnul.c: Reindent.
13286         * lib/strchrnul.c: Likewise.
13287
13288         Optimize and test strchrnul.
13289         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
13290         * modules/strchrnul-tests: New file.
13291         * tests/test-strchrnul.c: Likewise.
13292
13293         Remove intprops dependency.
13294         * modules/memchr (Depends-on): Remove intprops.
13295         * modules/memrchr (Depends-on): Likewise.
13296         * modules/memchr2 (Depends-on): Likewise.
13297         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
13298         * lib/memrchr.c (__memrchr): Likewise.
13299         * lib/memrchr2.c (memchr2): Likewise.
13300         Reported by Simon Josefsson.
13301
13302 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13303
13304         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
13305         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13306
13307 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13308
13309         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
13310
13311         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
13312
13313         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
13314
13315         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
13316         declarations.
13317         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
13318
13319         * m4/inet_pton.m4: Don't check for header files.
13320
13321         * m4/inet_ntop.m4: Don't check for header files.
13322
13323 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13324
13325         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
13326         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
13327         trigger for cygwin).
13328         Reported by Bruno Haible  <bruno@clisp.org>.
13329
13330 2008-04-28  Bruno Haible  <bruno@clisp.org>
13331
13332         * doc/posix-functions/strdup.texi: Mention mingw problem.
13333
13334 2008-04-27  Bruno Haible  <bruno@clisp.org>
13335
13336         * modules/stat-time-tests (Depends-on): Add sleep.
13337         * tests/test-stat-time.c (force_unlink): New function.
13338         (cleanup): Use it.
13339         (test_mtime): Remove the ctime related tests.
13340         (test_ctime): New function, containing the ctime related tests.
13341         (main): Call test_ctime, except on native Windows platforms.
13342
13343 2008-04-27  Bruno Haible  <bruno@clisp.org>
13344
13345         * lib/rpmatch.c (rpmatch): Add some comments.
13346         Reported by James Youngman <jay@gnu.org>.
13347
13348 2008-04-27  Bruno Haible  <bruno@clisp.org>
13349
13350         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
13351         quiet NaNs.
13352
13353 2008-04-27  Bruno Haible  <bruno@clisp.org>
13354
13355         Make test-yesno.sh work on mingw.
13356         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
13357         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
13358         (main): Set stdin to binary mode.
13359         * modules/yesno-tests (Depends-on): Add binary-io.
13360
13361 2008-04-27  Bruno Haible  <bruno@clisp.org>
13362
13363         Fix 'isfinite' on x86, x86_64, ia64 platforms.
13364         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
13365         argument that lie outside the IEEE 854 domain.
13366         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
13367         (gl_ISFINITE): Use it.
13368         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
13369
13370 2008-04-27  Bruno Haible  <bruno@clisp.org>
13371
13372         Allow local renaming in config.h.
13373         * lib/memrchr.c (memrchr): Don't undefine outside libc.
13374
13375 2008-04-27  Bruno Haible  <bruno@clisp.org>
13376
13377         * lib/memchr.c (__memchr): Change type of 'i'.
13378         * lib/memchr2.c (memchr2): Likewise.
13379
13380 2008-04-26  Eric Blake  <ebb9@byu.net>
13381         and Bruno Haible  <bruno@clisp.org>
13382
13383         Optimize and test memrchr.
13384         * modules/memrchr (Depends-on): Add intprops.
13385         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
13386         * modules/memrchr-tests: New file.
13387         * tests/test-memrchr.c: New file.
13388
13389 2008-04-26  Bruno Haible  <bruno@clisp.org>
13390
13391         Add tentative support for DragonFly BSD.
13392         * lib/stdio-impl.h: Add macros for DragonFly BSD.
13393         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
13394         fp.
13395         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
13396         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
13397         * lib/fpurge.c (fpurge): Likewise.
13398         * lib/freadable.c (freaadable): Likewise.
13399         * lib/freadahead.c (freadahead): Likewise.
13400         * lib/freading.c (freading): Likewise.
13401         * lib/freadptr.c (freadptr): Likewise.
13402         * lib/freadseek.c (freadptrinc): Likewise.
13403         * lib/fseeko.c (fseeko): Likewise.
13404         * lib/fseterr.c (fseterr): Likewise.
13405         * lib/fwritable.c (fwritable): Likewise.
13406         * lib/fwriting.c (fwriting): Likewise.
13407
13408 2008-04-26  Bruno Haible  <bruno@clisp.org>
13409
13410         * lib/stdio-impl.h: New file.
13411         * lib/fbufmode.c: Include stdio-impl.h.
13412         (fbufmode): Use fp_, remove redundant #defines.
13413         * lib/fflush.c: Include stdio-impl.h.
13414         (clear_ungetc_buffer): Remove redundant #defines.
13415         * lib/fpurge.c: Include stdio-impl.h.
13416         (fpurge): Remove redundant #defines.
13417         * lib/freadable.c: Include stdio-impl.h.
13418         (freadable): Remove redundant #defines.
13419         * lib/freadahead.c: Include stdio-impl.h.
13420         (freadahead): Remove redundant #defines.
13421         * lib/freading.c: Include stdio-impl.h.
13422         (freading): Remove redundant #defines.
13423         * lib/freadptr.c: Include stdio-impl.h.
13424         (freadptr): Remove redundant #defines.
13425         * lib/freadseek.c: Include stdio-impl.h.
13426         (freadptrinc): Remove redundant #defines.
13427         * lib/fseeko.c: Include stdio-impl.h.
13428         (rpl_fseeko): Remove redundant #defines.
13429         * lib/fseterr.c: Include stdio-impl.h.
13430         (fseterr): Remove redundant #defines.
13431         * lib/fwritable.c: Include stdio-impl.h.
13432         (fwritable: Remove redundant #defines.
13433         * lib/fwriting.c: Include stdio-impl.h.
13434         (fwriting): Remove redundant #defines.
13435         * modules/fbufmode (Files): Add lib/stdio-impl.h.
13436         * modules/fflush (Files): Likewise.
13437         * modules/fpurge (Files): Likewise.
13438         * modules/freadable (Files): Likewise.
13439         * modules/freadahead (Files): Likewise.
13440         * modules/freading (Files): Likewise.
13441         * modules/freadptr (Files): Likewise.
13442         * modules/freadseek (Files): Likewise.
13443         * modules/fseeko (Files): Likewise.
13444         * modules/fseterr (Files): Likewise.
13445         * modules/fwritable (Files): Likewise.
13446         * modules/fwriting (Files): Likewise.
13447
13448 2008-04-26  Bruno Haible  <bruno@clisp.org>
13449
13450         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
13451         restore_seek_optimization, update_fpos_cache): New functions, extracted
13452         from rpl_fflush.
13453         (rpl_fflush): Use them.
13454         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
13455         (gl_REPLACE_FFLUSH): Use it.
13456
13457 2008-04-26  Bruno Haible  <bruno@clisp.org>
13458
13459         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
13460         on Solaris.
13461         * tests/test-xstrtoimax.sh: Likewise.
13462         * tests/test-xstrtoumax.sh: Likewise.
13463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13464
13465 2008-04-26  Bruno Haible  <bruno@clisp.org>
13466
13467         * modules/memchr-tests: New file.
13468         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
13469
13470 2008-04-26  Eric Blake  <ebb9@byu.net>
13471             Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/memchr.c: Include intprops.h.
13474         (__memchr): Optimize parallel detection of matching bytes. Rename local
13475         variables. Add explanatory comments.
13476
13477 2008-04-26  Bruno Haible  <bruno@clisp.org>
13478
13479         Fix module 'memchr', broken since 2000-10-28.
13480         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
13481
13482 2008-04-26  Bruno Haible  <bruno@clisp.org>
13483
13484         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
13485         comments.
13486
13487 2008-04-25  Eric Blake  <ebb9@byu.net>
13488
13489         Use native fstatat on cygwin 1.7.0.
13490         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
13491         first.
13492
13493 2008-04-23  Eric Blake  <ebb9@byu.net>
13494
13495         Improve memchr2 performance.
13496         * lib/memchr2.c (memchr2): Further optimize parallel detection of
13497         NUL bytes.
13498         * modules/memchr2 (Depends-on): Use intprops.h.
13499
13500 2008-04-23  Simon Josefsson  <simon@josefsson.org>
13501
13502         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
13503         an inline function instead of a CPP macro.  Patch by Ben Pfaff
13504         <blp@cs.stanford.edu>.
13505
13506 2008-04-23  Simon Josefsson  <simon@josefsson.org>
13507
13508         * lib/arpa_inet.in.h: New file.
13509
13510         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
13511         (Makefile.am): Sed in substitute header file.
13512
13513         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
13514         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
13515
13516         * modules/inet_ntop (configure.ac): Use
13517         gl_ARPA_INET_MODULE_INDICATOR.
13518
13519         * modules/inet_pton (configure.ac): Use
13520         gl_ARPA_INET_MODULE_INDICATOR.
13521
13522 2008-04-22  Jim Meyering  <meyering@redhat.com>
13523
13524         * modules/verify (License): Re-license as LGPLv2+.
13525
13526 2008-04-22  Simon Josefsson  <simon@josefsson.org>
13527
13528         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
13529         parameter to void* as per POSIX standard (MinGW uses char*).
13530
13531 2008-04-21  Bruno Haible  <bruno@clisp.org>
13532
13533         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13534         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13535         Define to replacements if REPLACE_ISWCNTRL is 1.
13536         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
13537         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
13538         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
13539         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
13540         what it fixes.
13541         * doc/posix-functions/iswalpha.texi: Likewise.
13542         * doc/posix-functions/iswblank.texi: Likewise.
13543         * doc/posix-functions/iswcntrl.texi: Likewise.
13544         * doc/posix-functions/iswdigit.texi: Likewise.
13545         * doc/posix-functions/iswgraph.texi: Likewise.
13546         * doc/posix-functions/iswlower.texi: Likewise.
13547         * doc/posix-functions/iswprint.texi: Likewise.
13548         * doc/posix-functions/iswpunct.texi: Likewise.
13549         * doc/posix-functions/iswspace.texi: Likewise.
13550         * doc/posix-functions/iswupper.texi: Likewise.
13551         * doc/posix-functions/iswxdigit.texi: Likewise.
13552         Reported by Alain Guibert.
13553
13554 2008-04-21  Bruno Haible  <bruno@clisp.org>
13555
13556         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
13557         Patch by Alain Guibert.
13558
13559 2008-04-21  Bruno Haible  <bruno@clisp.org>
13560
13561         Fix test failures on mingw.
13562         * tests/test-xstrtol.c (print_no_progname): New function.
13563         (main): Install it in error_print_progname hook.
13564         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
13565         * tests/test-xstrtoimax.sh: Likewise.
13566         * tests/test-xstrtoumax.sh: Likewise.
13567
13568 2008-04-21  Bruno Haible  <bruno@clisp.org>
13569
13570         Fix test failure on mingw.
13571         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
13572
13573 2008-04-21  Bruno Haible  <bruno@clisp.org>
13574
13575         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
13576         Actually assign a value.
13577
13578 2008-04-20  Bruno Haible  <bruno@clisp.org>
13579
13580         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
13581         take 2.
13582         * lib/canonicalize.c (canonicalize_file_name): Elide if the
13583         'canonicalize-lgpl' module is also used.
13584         * lib/canonicalize-lgpl.c: Undo last change.
13585         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
13586
13587 2008-04-20  Bruno Haible  <bruno@clisp.org>
13588
13589         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
13590         config.h. Provide _mkdir based fallback for mingw.
13591         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
13592         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
13593         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
13594         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
13595         rather than defining mkdir in config.h.
13596         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
13597         (gl_SYS_STAT_H_DEFAULTS): New macro.
13598         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
13599         HAVE_IO_H any more.
13600         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
13601         HAVE_DECL_MKDIR and HAVE_IO_H.
13602
13603 2008-04-20  Bruno Haible  <bruno@clisp.org>
13604
13605         * lib/isapipe.c: Port to native Windows platforms.
13606
13607 2008-04-20  Bruno Haible  <bruno@clisp.org>
13608
13609         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
13610
13611 2008-04-21  Eric Blake  <ebb9@byu.net>
13612
13613         Work around preprocessors that don't handle UINTMAX_MAX.
13614         * lib/memchr2.c (memchr2): Avoid embedded #if.
13615         Reported by Alain Guibert, fix suggested by Bruno Haible.
13616
13617 2008-04-21  Simon Josefsson  <simon@josefsson.org>
13618
13619         * doc/posix-functions/strftime.texi (strftime): Explain better
13620         Windows incompatibility.  Suggested by Micah Cowan
13621         <micah@cowan.name>.
13622
13623 2008-04-20  Bruno Haible  <bruno@clisp.org>
13624
13625         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
13626         unistr/u8-mblen.
13627
13628 2008-04-20  Bruno Haible  <bruno@clisp.org>
13629
13630         Fix test failure on platforms with non-GNU iconv.
13631         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
13632         (U_TO_U8): Use it, rather than u16_to_u8.
13633         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
13634         units at the end of the input string.
13635         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
13636
13637 2008-04-20  Bruno Haible  <bruno@clisp.org>
13638
13639         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
13640         when the resulting length is 0.
13641         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13642
13643 2008-04-20  Bruno Haible  <bruno@clisp.org>
13644
13645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
13646         works.
13647         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
13648
13649 2008-04-20  Bruno Haible  <bruno@clisp.org>
13650
13651         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
13652         * modules/tsearch-tests (configure.ac): Test for initstate function.
13653
13654 2008-04-20  Bruno Haible  <bruno@clisp.org>
13655
13656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
13657         for nlink_t if missing.
13658         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
13659
13660 2008-04-19  Bruno Haible  <bruno@clisp.org>
13661
13662         Work around snprintf bug on Linux libc5.
13663         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
13664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13665         gl_SNPRINTF_SIZE1.
13666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13667         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
13668         that test failed.
13669         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13670         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
13671         * modules/snprintf (Files): Add m4/printf.m4.
13672         * modules/vsnprintf (Files): Likewise.
13673         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
13674         * doc/posix-functions/vsnprintf.texi: Likewise.
13675
13676 2008-04-19  Bruno Haible  <bruno@clisp.org>
13677
13678         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
13679         from 0.0058 to less than 10^-7.
13680
13681 2008-04-19  Bruno Haible  <bruno@clisp.org>
13682
13683         Fix rounding when a precision is given.
13684         * lib/vasnprintf.c (is_borderline): New function.
13685         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
13686         9...9x.
13687         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
13688         %e, %g.
13689         * tests/test-vasprintf-posix.c (test_function): Likewise.
13690         * tests/test-snprintf-posix.h (test_function): Likewise.
13691         * tests/test-sprintf-posix.h (test_function): Likewise.
13692         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
13693         * tests/test-printf-posix.h (test_function): Likewise.
13694         * tests/test-printf-posix.output: Update.
13695         Reported by John Darrington <john@darrington.wattle.id.au> via
13696         Ben Pfaff <blp@cs.stanford.edu>.
13697
13698 2008-04-18  Simon Josefsson  <simon@josefsson.org>
13699
13700         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
13701         Suggested by Bruno Haible <bruno@clisp.org>.
13702
13703 2008-04-17  Bruno Haible  <bruno@clisp.org>
13704
13705         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
13706         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
13707         implementation.
13708         Patch by Bruce Merry <bmerry@gmail.com>.
13709
13710 2008-04-17  Simon Josefsson  <simon@josefsson.org>
13711
13712         * doc/posix-functions/strftime.texi (strftime): Mention that %e
13713         doesn't work under Windows.
13714
13715 2008-04-16  Bruno Haible  <bruno@clisp.org>
13716
13717         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
13718         New macros.
13719         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
13720         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
13721         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
13722         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
13723         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
13724         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
13725         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
13726         macros.
13727         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
13728         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
13729         Northern Sotho, Uighur.
13730
13731 2008-04-16  Bruno Haible  <bruno@clisp.org>
13732
13733         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
13734         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
13735         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
13736         Reported by Daniel Bergström <daniel@octocode.com>.
13737
13738 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
13739             Bruno Haible  <bruno@clisp.org>
13740
13741         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
13742         function.
13743         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
13744         New functions, mostly extracted from gl_locale_name_default.
13745         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
13746
13747 2008-04-16  Eric Blake  <ebb9@byu.net>
13748
13749         Adjust strtod detection to catch glibc 2.7 bug.
13750         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
13751         Reported by John Gatewood Ham.
13752
13753 2008-04-16  Bruno Haible  <bruno@clisp.org>
13754
13755         Add tentative support for Linux libc5.
13756         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
13757         * lib/fpurge.c (fpurge): Likewise.
13758         * lib/freadable.c (freadable): Likewise.
13759         * lib/freadahead.c (freadahead): Likewise.
13760         * lib/freading.c (freading): Likewise.
13761         * lib/freadptr.c (freadptr): Likewise.
13762         * lib/freadseek.c (freadptrinc): Likewise.
13763         * lib/fseeko.c (rpl_fseeko): Likewise.
13764         * lib/fseterr.c (fseterr): Likewise.
13765         * lib/fwritable.c (fwritable): Likewise.
13766         * lib/fwriting.c (fwriting): Likewise.
13767         Reported by Alain Guibert <alguibert+bts@free.fr>.
13768
13769 2008-04-15  Bruno Haible  <bruno@clisp.org>
13770
13771         * modules/mathl (configure.ac): Define module indicator.
13772
13773 2008-04-15  Bruno Haible  <bruno@clisp.org>
13774
13775         * lib/logl.c (logl): Remove unused variables.
13776
13777 2008-04-15  Bruno Haible  <bruno@clisp.org>
13778
13779         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
13780         fails.
13781
13782 2008-04-15  Bruno Haible  <bruno@clisp.org>
13783
13784         * lib/trim.c (trim2): Fix argument of isspace() macro.
13785
13786 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
13787
13788         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
13789         to 0.
13790         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
13791
13792 2008-04-14  Bruno Haible  <bruno@clisp.org>
13793
13794         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
13795         AC_LANG_PROGRAM argument.
13796         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
13797         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
13798         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13799         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13800         * m4/math_h.m4 (gl_MATH_H): Likewise.
13801         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13803         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13804         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
13805         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13806         * m4/regex.m4 (gl_REGEX): Likewise.
13807         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
13808         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
13809         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13810         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
13811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13812         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13813         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13814         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13815
13816 2008-04-14  Jim Meyering  <meyering@redhat.com>
13817
13818         test-strtod: fix typos: s/abs/fabs/
13819         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
13820
13821 2008-04-13  Bruno Haible  <bruno@clisp.org>
13822
13823         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
13824         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
13825         module is also used and while not building the reloc-wrapper.
13826
13827 2008-04-13  Bruno Haible  <bruno@clisp.org>
13828
13829         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
13830
13831 2008-04-13  Bruno Haible  <bruno@clisp.org>
13832
13833         Fix AIX compilation failure introduced on 2008-04-02.
13834         * tests/test-frexp.c (exp): Undefine before redefining.
13835         * tests/test-frexpl.c (exp): Likewise.
13836
13837 2008-04-13  Bruno Haible  <bruno@clisp.org>
13838
13839         Work around a HP-UX stdio bug.
13840         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
13841         * tests/test-ftello.c (main): Likewise.
13842         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
13843         * doc/posix-functions/ftello.texi: Likewise.
13844
13845 2008-04-13  Bruno Haible  <bruno@clisp.org>
13846
13847         Make test-signbit pass on HP-UX/hppa.
13848         * tests/test-signbit.c (minus_zerol): New variable.
13849         (test_signbitl): Use it.
13850
13851 2008-04-13  Bruno Haible  <bruno@clisp.org>
13852
13853         Make truncl work on OSF/1 4.0.
13854         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
13855         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13856         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
13858         HAVE_DECL_TRUNCL.
13859         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
13860         HAVE_DECL_TRUNCL.
13861         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
13862
13863 2008-04-13  Bruno Haible  <bruno@clisp.org>
13864
13865         * lib/unictype.h: Remove trailing comma from enumeration definitions.
13866
13867 2008-04-13  Bruno Haible  <bruno@clisp.org>
13868
13869         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
13870         expression, so as to avoid HP-UX 11 cc compiler bug.
13871
13872 2008-04-13  Bruno Haible  <bruno@clisp.org>
13873
13874         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
13875
13876 2008-04-13  Bruno Haible  <bruno@clisp.org>
13877
13878         * lib/git-merge-changelog.c: Remove empty declaration outside of
13879         functions.
13880
13881 2008-04-13  Bruno Haible  <bruno@clisp.org>
13882
13883         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
13884
13885 2008-04-13  Bruno Haible  <bruno@clisp.org>
13886
13887         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
13888         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
13889         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
13890         also if it exists but lacks definitions of the SHUT_* macros.
13891         * modules/sys_socket (Description): Update.
13892         Reported by Elbert Pol <e.pol@chello.nl>.
13893
13894 2008-04-13  Bruno Haible  <bruno@clisp.org>
13895
13896         * lib/localcharset.c (OS2): Don't redefine if already defined.
13897         Reported by Elbert Pol <e.pol@chello.nl>.
13898
13899 2008-04-13  Bruno Haible  <bruno@clisp.org>
13900
13901         * lib/binary-io.h [__EMX__]: Include <io.h>.
13902         Reported by Elbert Pol <e.pol@chello.nl>.
13903
13904 2008-04-12  Bruno Haible  <bruno@clisp.org>
13905
13906         * lib/fpucw.h: Enable the definitions also for x86_64.
13907         Needed for NetBSD/x86_64.
13908         Reported by Thomas Klausner <tk@giga.or.at>.
13909
13910 2008-04-12  Bruno Haible  <bruno@clisp.org>
13911
13912         * tests/test-strtod.c: Include isnand.h.
13913         (main): Use isnand instead of isnan.
13914         Reported by Jim Meyering.
13915
13916 2008-04-12  Bruno Haible  <bruno@clisp.org>
13917
13918         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
13919         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
13920
13921 2008-04-12  Jim Meyering  <meyering@redhat.com>
13922
13923         * m4/math_h.m4 (gl_MATH_H): Fix typos.
13924
13925 2008-04-12  Bruno Haible  <bruno@clisp.org>
13926
13927         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
13928         Reported by Elbert Pol <e.pol@chello.nl>.
13929
13930 2008-04-12  Eric Blake  <ebb9@byu.net>
13931
13932         Work around Solaris 10 math.h bug.
13933         * m4/math_h.m4 (gl_MATH_H): Check for bug.
13934         (gl_MATH_H_DEFAULTS): Set up default.
13935         * modules/math (Makefile.am): Replace new indicators.
13936         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
13937         * tests/test-math.c (main): Test this.
13938         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
13939         * doc/posix-headers/math.texi (math.h): Mention bug.
13940         Reported by Nelson H. F. Beebe and Jim Meyering.
13941
13942 2008-04-11  Bruno Haible  <bruno@clisp.org>
13943
13944         Adapt to future versions of Apple GCC.
13945         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
13946         Reported by Peter O'Gorman <peter@pogma.com>.
13947
13948 2008-04-11  Bruno Haible  <bruno@clisp.org>
13949
13950         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
13951
13952 2008-04-11  Bruno Haible  <bruno@clisp.org>
13953
13954         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
13955
13956         * modules/getaddrinfo-tests (Makefile.am): Define
13957         test_getaddrinfo_LDADD.
13958
13959 2008-04-11  Bruno Haible  <bruno@clisp.org>
13960
13961         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
13962         (init): Fix syntax error.
13963         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
13964         is declared.
13965
13966 2008-04-11  Bruno Haible  <bruno@clisp.org>
13967
13968         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
13969         * modules/glob (Depends-on): Add stdbool.
13970
13971 2008-04-11  Bruno Haible  <bruno@clisp.org>
13972
13973         * lib/trim.c: Include <string.h>.
13974
13975 2008-04-11  Eric Blake  <ebb9@byu.net>
13976
13977         Avoid compile failure on OS/2.
13978         * lib/regex_internal.h (internal_function): Disable optimization
13979         on OS/2 (__EMX__), where it caused compiler error.
13980         Reported by Elbert Pol.
13981
13982 2008-04-11  Bruno Haible  <bruno@clisp.org>
13983
13984         Flush the standard error stream before aborting. Needed on mingw.
13985         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
13986         * tests/test-array_list.c (ASSERT): Likewise.
13987         * tests/test-array_oset.c (ASSERT): Likewise.
13988         * tests/test-avltree_list.c (ASSERT): Likewise.
13989         * tests/test-avltree_oset.c (ASSERT): Likewise.
13990         * tests/test-avltreehash_list.c (ASSERT): Likewise.
13991         * tests/test-binary-io.c (ASSERT): Likewise.
13992         * tests/test-byteswap.c (ASSERT): Likewise.
13993         * tests/test-c-ctype.c (ASSERT): Likewise.
13994         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
13995         * tests/test-c-strcasestr.c (ASSERT): Likewise.
13996         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
13997         * tests/test-c-strstr.c (ASSERT): Likewise.
13998         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
13999         * tests/test-canonicalize.c (ASSERT): Likewise.
14000         * tests/test-carray_list.c (ASSERT): Likewise.
14001         * tests/test-ceilf1.c (ASSERT): Likewise.
14002         * tests/test-ceilf2.c (ASSERT): Likewise.
14003         * tests/test-ceill.c (ASSERT): Likewise.
14004         * tests/test-count-one-bits.c (ASSERT): Likewise.
14005         * tests/test-fbufmode.c (ASSERT): Likewise.
14006         * tests/test-fflush2.c (ASSERT): Likewise.
14007         * tests/test-floorf1.c (ASSERT): Likewise.
14008         * tests/test-floorf2.c (ASSERT): Likewise.
14009         * tests/test-floorl.c (ASSERT): Likewise.
14010         * tests/test-fopen.c (ASSERT): Likewise.
14011         * tests/test-fpending.c (ASSERT): Likewise.
14012         * tests/test-fprintf-posix.c (ASSERT): Likewise.
14013         * tests/test-fpurge.c (ASSERT): Likewise.
14014         * tests/test-freadable.c (ASSERT): Likewise.
14015         * tests/test-freadahead.c (ASSERT): Likewise.
14016         * tests/test-freading.c (ASSERT): Likewise.
14017         * tests/test-freadptr.c (ASSERT): Likewise.
14018         * tests/test-freadptr2.c (ASSERT): Likewise.
14019         * tests/test-freadseek.c (ASSERT): Likewise.
14020         * tests/test-freopen.c (ASSERT): Likewise.
14021         * tests/test-frexp.c (ASSERT): Likewise.
14022         * tests/test-frexpl.c (ASSERT): Likewise.
14023         * tests/test-fseek.c (ASSERT): Likewise.
14024         * tests/test-fseeko.c (ASSERT): Likewise.
14025         * tests/test-fstrcmp.c (ASSERT): Likewise.
14026         * tests/test-ftell.c (ASSERT): Likewise.
14027         * tests/test-ftello.c (ASSERT): Likewise.
14028         * tests/test-func.c (ASSERT): Likewise.
14029         * tests/test-fwritable.c (ASSERT): Likewise.
14030         * tests/test-fwriting.c (ASSERT): Likewise.
14031         * tests/test-getdelim.c (ASSERT): Likewise.
14032         * tests/test-getline.c (ASSERT): Likewise.
14033         * tests/test-i-ring.c (ASSERT): Likewise.
14034         * tests/test-iconv-utf.c (ASSERT): Likewise.
14035         * tests/test-iconv.c (ASSERT): Likewise.
14036         * tests/test-isfinite.c (ASSERT): Likewise.
14037         * tests/test-isnand.c (ASSERT): Likewise.
14038         * tests/test-isnanf.c (ASSERT): Likewise.
14039         * tests/test-isnanl.h (ASSERT): Likewise.
14040         * tests/test-ldexpl.c (ASSERT): Likewise.
14041         * tests/test-linked_list.c (ASSERT): Likewise.
14042         * tests/test-linkedhash_list.c (ASSERT): Likewise.
14043         * tests/test-localename.c (ASSERT): Likewise.
14044         * tests/test-lseek.c (ASSERT): Likewise.
14045         * tests/test-mbscasecmp.c (ASSERT): Likewise.
14046         * tests/test-mbscasestr1.c (ASSERT): Likewise.
14047         * tests/test-mbscasestr2.c (ASSERT): Likewise.
14048         * tests/test-mbscasestr3.c (ASSERT): Likewise.
14049         * tests/test-mbscasestr4.c (ASSERT): Likewise.
14050         * tests/test-mbschr.c (ASSERT): Likewise.
14051         * tests/test-mbscspn.c (ASSERT): Likewise.
14052         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
14053         * tests/test-mbspbrk.c (ASSERT): Likewise.
14054         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
14055         * tests/test-mbsrchr.c (ASSERT): Likewise.
14056         * tests/test-mbsspn.c (ASSERT): Likewise.
14057         * tests/test-mbsstr1.c (ASSERT): Likewise.
14058         * tests/test-mbsstr2.c (ASSERT): Likewise.
14059         * tests/test-mbsstr3.c (ASSERT): Likewise.
14060         * tests/test-memchr2.c (ASSERT): Likewise.
14061         * tests/test-memmem.c (ASSERT): Likewise.
14062         * tests/test-open.c (ASSERT): Likewise.
14063         * tests/test-printf-frexp.c (ASSERT): Likewise.
14064         * tests/test-printf-frexpl.c (ASSERT): Likewise.
14065         * tests/test-printf-posix.c (ASSERT): Likewise.
14066         * tests/test-quotearg.c (ASSERT): Likewise.
14067         * tests/test-rbtree_list.c (ASSERT): Likewise.
14068         * tests/test-rbtree_oset.c (ASSERT): Likewise.
14069         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
14070         * tests/test-round1.c (ASSERT): Likewise.
14071         * tests/test-roundf1.c (ASSERT): Likewise.
14072         * tests/test-roundl.c (ASSERT): Likewise.
14073         * tests/test-signbit.c (ASSERT): Likewise.
14074         * tests/test-sleep.c (ASSERT): Likewise.
14075         * tests/test-snprintf-posix.c (ASSERT): Likewise.
14076         * tests/test-snprintf.c (ASSERT): Likewise.
14077         * tests/test-sprintf-posix.c (ASSERT): Likewise.
14078         * tests/test-stat-time.c (ASSERT): Likewise.
14079         * tests/test-strcasestr.c (ASSERT): Likewise.
14080         * tests/test-strerror.c (ASSERT): Likewise.
14081         * tests/test-striconv.c (ASSERT): Likewise.
14082         * tests/test-striconveh.c (ASSERT): Likewise.
14083         * tests/test-striconveha.c (ASSERT): Likewise.
14084         * tests/test-strsignal.c (ASSERT): Likewise.
14085         * tests/test-strstr.c (ASSERT): Likewise.
14086         * tests/test-strtod.c (ASSERT): Likewise.
14087         * tests/test-trunc1.c (ASSERT): Likewise.
14088         * tests/test-trunc2.c (ASSERT): Likewise.
14089         * tests/test-truncf1.c (ASSERT): Likewise.
14090         * tests/test-truncf2.c (ASSERT): Likewise.
14091         * tests/test-truncl.c (ASSERT): Likewise.
14092         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
14093         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
14094         * tests/test-vasnprintf.c (ASSERT): Likewise.
14095         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
14096         * tests/test-vasprintf.c (ASSERT): Likewise.
14097         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
14098         * tests/test-vprintf-posix.c (ASSERT): Likewise.
14099         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
14100         * tests/test-vsnprintf.c (ASSERT): Likewise.
14101         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
14102         * tests/test-wcwidth.c (ASSERT): Likewise.
14103         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
14104         * tests/test-xprintf-posix.c (ASSERT): Likewise.
14105         * tests/test-xvasprintf.c (ASSERT): Likewise.
14106         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
14107         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
14108         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
14109         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
14110         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
14111         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
14112         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
14113         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
14114         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
14115         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
14116         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
14117         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
14118         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
14119         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
14120         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
14121         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
14122         * tests/unictype/test-block_list.c (ASSERT): Likewise.
14123         * tests/unictype/test-block_of.c (ASSERT): Likewise.
14124         * tests/unictype/test-block_test.c (ASSERT): Likewise.
14125         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
14126         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
14127         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
14128         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
14129         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
14130         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
14131         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
14132         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
14133         * tests/unictype/test-combining.c (ASSERT): Likewise.
14134         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
14135         * tests/unictype/test-digit.c (ASSERT): Likewise.
14136         * tests/unictype/test-mirror.c (ASSERT): Likewise.
14137         * tests/unictype/test-numeric.c (ASSERT): Likewise.
14138         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
14139         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
14140         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
14141         * tests/unictype/test-scripts.c (ASSERT): Likewise.
14142         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
14143         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
14144         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
14145         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
14146         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
14147         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
14148         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
14149         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
14150         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
14151         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
14152         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
14153         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
14154         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
14155         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
14156         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
14157         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
14158         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
14159         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
14160         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
14161         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
14162         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
14163         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
14164         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
14165         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
14166         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
14167         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
14168         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
14169         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
14170         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
14171         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
14172         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
14173         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
14174         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
14175         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
14176         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
14177         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
14178         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
14179         Reported by Eric Blake.
14180
14181 2008-04-11  Bruno Haible  <bruno@clisp.org>
14182
14183         * lib/wchar.in.h: Tweak comment.
14184
14185 2008-04-11  Bruno Haible  <bruno@clisp.org>
14186
14187         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
14188         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
14189         gl_COMMON.
14190         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
14191
14192 2008-04-11  Bruno Haible  <bruno@clisp.org>
14193
14194         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
14195
14196 2008-04-11  Simon Josefsson  <simon@josefsson.org>
14197
14198         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
14199         of attempting to use non-existing /dev/*random.  Based on patch
14200         from Adam Strzelecki <ono@java.pl> in
14201         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
14202
14203 2008-04-08  Bruno Haible  <bruno@clisp.org>
14204
14205         Add tentative support for emx+gcc.
14206         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
14207         * lib/fpurge.c (fpurge): Likewise.
14208         * lib/freadable.c (freadable): Likewise.
14209         * lib/freadahead.c (freadahead): Likewise.
14210         * lib/freading.c (freading): Likewise.
14211         * lib/freadptr.c (freadptr): Likewise.
14212         * lib/freadseek.c (freadptrinc): Likewise.
14213         * lib/fseeko.c (rpl_fseeko): Likewise.
14214         * lib/fseterr.c (fseterr): Likewise.
14215         * lib/fwritable.c (fwritable): Likewise.
14216         * lib/fwriting.c (fwriting): Likewise.
14217         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
14218
14219 2008-04-09  Eric Blake  <ebb9@byu.net>
14220
14221         Avoid some autoconf warnings.
14222         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
14223         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
14224         * m4/afs.m4 (gl_AFS): Likewise.
14225         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
14226         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
14227         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14228         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
14229         (gl_INTEGER_TYPE_SUFFIX): Likewise.
14230         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
14231         (AC_CHECK_DECLS_ONCE): Likewise.
14232         Rename file...
14233         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
14234         gnulib-tool requires autoconf 2.59 or better.
14235         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
14236
14237 2008-04-08  Eric Blake  <ebb9@byu.net>
14238
14239         Use 'git describe --match' if present (added in git 1.5.5).
14240         * build-aux/git-version-gen: Limit result to tags that match 'v*'
14241         if possible.
14242
14243 2008-04-08  Bruno Haible  <bruno@clisp.org>
14244
14245         Add tentative support for OpenServer.
14246         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
14247         _ptr, _cnt.
14248         * lib/fpurge.c (fpurge): Likewise.
14249         * lib/freadable.c (freadable): Likewise.
14250         * lib/freadahead.c (freadahead): Likewise.
14251         * lib/freading.c (freading): Likewise.
14252         * lib/freadptr.c (freadptr): Likewise.
14253         * lib/freadseek.c (freadptrinc): Likewise.
14254         * lib/fseeko.c (rpl_fseeko): Likewise.
14255         * lib/fseterr.c (fseterr): Likewise.
14256         * lib/fwritable.c (fwritable): Likewise.
14257         * lib/fwriting.c (fwriting): Likewise.
14258         Reported by Roger Cornelius <rac@tenzing.org> and
14259         Brian K. White <brian@aljex.com>.
14260
14261 2008-04-06  Jim Meyering  <meyering@redhat.com>
14262
14263         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
14264
14265 2008-04-06  Bruno Haible  <bruno@clisp.org>
14266
14267         Avoid possible error with non-ASCII bytes in UTF-8 locales.
14268         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
14269         * tests/test-printf-posix.sh: Likewise.
14270         * tests/test-vfprintf-posix.sh: Likewise.
14271         * tests/test-vprintf-posix.sh: Likewise.
14272         * tests/test-xprintf-posix.sh: Likewise.
14273
14274 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14275
14276         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
14277         hide error from 'ls', needed on OS/2.
14278         Report by Elbert Pol <elbert.pol@gmail.com>.
14279
14280 2008-04-04  Eric Blake  <ebb9@byu.net>
14281
14282         Make test-fseeko.c failures meaningful.
14283         * tests/test-fseeko.c: Print line number on failure.
14284         * tests/test-fseek.c: Likewise.
14285         Reported by Nelson H. F. Beebe.
14286
14287         Improve strtod bug detection check.
14288         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
14289         required for Solaris 10.
14290         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
14291
14292 2008-04-04  Bruno Haible  <bruno@clisp.org>
14293
14294         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
14295         by m4/setenv.m4.
14296
14297 2008-04-03  Eric Blake  <ebb9@byu.net>
14298
14299         Ensure sane .version contents.
14300         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
14301         version string.
14302         * build-aux/git-version-gen: Improve documentation.
14303
14304         Make GNU make output nicer.
14305         * top/GNUmakefile [!_have-Makefile]: Add dependency on
14306         MAKECMDGOALS to enforce message for all command line targets.  Set
14307         srcdir for use in maint.mk.
14308
14309         Another maintainer tweak.
14310         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
14311         a target that regenerates version.
14312
14313 2008-04-03  Jim Meyering  <meyering@redhat.com>
14314
14315         vc-list-files: don't cause coreutils "make po-check" failure
14316         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
14317
14318 2008-04-03  Eric Blake  <ebb9@byu.net>
14319
14320         Allow VPATH usage of vc-list-files.
14321         * build-aux/vc-list-files (scriptversion): Add timestamp.
14322         (options): Add --help, --version, -C.
14323         (CVS): Support installed cvsu.
14324
14325 2008-04-02  Bruno Haible  <bruno@clisp.org>
14326
14327         Avoid some "statement with no effect" warnings from gcc.
14328         * tests/test-wctype.c (main): Explicitly ignore unused values.
14329         Reported by Jim Meyering.
14330
14331 2008-04-02  Jim Meyering  <meyering@redhat.com>
14332
14333         Avoid some warnings from "gcc -Wshadow".
14334         * tests/test-frexp.c (exp): Define to a different identifier.
14335         * tests/test-frexpl.c (exp): Likewise.
14336
14337 2008-04-03  Jim Meyering  <meyering@redhat.com>
14338
14339         bootstrap: remove dangling *.[ch] symlinks from lib
14340         * build-aux/bootstrap [dangling symlink removal]: Move find's
14341         -depth option to precede all others, to avoid a warning.
14342         Remove *.[ch] files too, and from "$source_base" (usually lib/).
14343
14344 2008-04-02  Bruno Haible  <bruno@clisp.org>
14345
14346         Avoid some warnings from "gcc -Wshadow".
14347         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
14348         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
14349         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
14350         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
14351         Reported by Jim Meyering.
14352
14353 2008-04-01  Bruno Haible  <bruno@clisp.org>
14354
14355         Fix test to work on IRIX 6.5 with cc.
14356         * tests/test-math.c (numeric_equal): New function.
14357         (main): Use it.
14358
14359 2008-04-01  Bruno Haible  <bruno@clisp.org>
14360
14361         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
14362
14363 2008-04-01  Bruno Haible  <bruno@clisp.org>
14364
14365         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
14366         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14367         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
14368         (Depends-on): Remove math.
14369
14370         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
14371         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14372         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
14373         (Depends-on): Remove math.
14374
14375         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
14376         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14377         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
14378         (Depends-on): Remove math.
14379         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
14380         (Depends-on): Remove math.
14381
14382         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
14383         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14384         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
14385         (Depends-on): Remove math.
14386         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
14387         (Depends-on): Remove math.
14388
14389         * tests/test-round1.c: Include nan.h.
14390         (main): Use NaNd instead of NAN.
14391         * modules/round-tests (Files): Add tests/nan.h.
14392
14393         * tests/test-trunc1.c: Include nan.h.
14394         (main): Use NaNd instead of NAN.
14395         * modules/trunc-tests (Files): Add tests/nan.h.
14396
14397         * tests/test-roundf1.c: Include nan.h.
14398         (main): Use NaNf instead of NAN.
14399         * modules/roundf-tests (Files): Add tests/nan.h.
14400
14401         * tests/test-truncf1.c: Include nan.h.
14402         (main): Use NaNf instead of NAN.
14403         * modules/truncf-tests (Files): Add tests/nan.h.
14404
14405         * tests/test-ceilf1.c: Include nan.h.
14406         (main): Use NaNf instead of NAN.
14407         * modules/ceilf-tests (Files): Add tests/nan.h.
14408
14409         * tests/test-floorf1.c: Include nan.h.
14410         (main): Use NaNf instead of NAN.
14411         * modules/floorf-tests (Files): Add tests/nan.h.
14412
14413         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
14414         (main): Use NaNf instead of NAN.
14415         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
14416
14417         * tests/test-isnand.c: Include nan.h instead of <math.h>.
14418         (main): Use NaNd instead of NAN.
14419         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
14420
14421         * tests/test-frexp.c: Include nan.h.
14422         (main): Use NaNd instead of NAN.
14423         * modules/frexp-tests (Files): Add tests/nan.h.
14424
14425         * lib/isnan.c: Don't include <math.h>.
14426         (FUNC): Don't use NAN macro.
14427         * modules/isnand-nolibm (Depends-on): Remove math.
14428         * modules/isnanf-nolibm (Depends-on): Remove math.
14429         * modules/isnanl (Depends-on): Remove math.
14430         * modules/isnanl-nolibm (Depends-on): Remove math.
14431
14432         * tests/nan.h: New file.
14433
14434 2008-04-01  Eric Blake  <ebb9@byu.net>
14435
14436         Fix typos.
14437         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
14438         values to be the right type.
14439
14440         For now, cater to gnulib strtod inaccuracies.
14441         * tests/test-strtod.c (main): Allow 1-ulp error on expected
14442         fractional results.  While not as nice from a QoI perspective, it
14443         is a quicker patch than correctly implementing decimal to binary
14444         rounding.
14445
14446 2008-03-31  Eric Blake  <ebb9@byu.net>
14447
14448         Guarantee a definition of NAN.
14449         * lib/math.in.h (NAN): Define if missing.
14450         * tests/test-math.c (main): Test it.
14451         * doc/posix-headers/math.texi (math.h): Document this.
14452         * lib/isnan.c (rpl_isnand): Use it.
14453         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
14454         * tests/test-floorf1.c (NaN): Likewise.
14455         * tests/test-frexp.c (NaN): Likewise.
14456         * tests/test-isnand.c (NaN): Likewise.
14457         * tests/test-isnanf.c (NaN): Likewise.
14458         * tests/test-round1.c (NaN): Likewise.
14459         * tests/test-roundf1.c (NaN): Likewise.
14460         * tests/test-snprintf-posix.h (NaN): Likewise.
14461         * tests/test-sprintf-posix.h (NaN): Likewise.
14462         * tests/test-trunc1.c (NaN): Likewise.
14463         * tests/test-truncf1.c (NaN): Likewise.
14464         * tests/test-vasnprintf-posix.c (NaN): Likewise.
14465         * tests/test-vasprintf-posix.c (NaN): Likewise.
14466         * modules/isnand-nolibm (Depends-on): Add math.
14467         * modules/isnanf-nolibm (Depends-on): Likewise.
14468         * modules/isnanl (Depends-on): Likewise.
14469         * modules/isnanl-nolibm (Depends-on): Likewise.
14470         * modules/snprintf-posix-tests (Depends-on): Likewise.
14471         * modules/sprintf-posix-tests (Depends-on): Likewise.
14472         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
14473         * modules/vsprintf-posix-tests (Depends-on): Likewise.
14474         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
14475         * modules/vasprintf-posix-tests (Depends-on): Likewise.
14476
14477 2008-03-31  Bruno Haible  <bruno@clisp.org>
14478
14479         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
14480         * doc/posix-functions/strtod.texi: Likewise.
14481
14482 2008-03-31  Bruno Haible  <bruno@clisp.org>
14483
14484         * tests/test-strtod.c (main): Don't use C99 syntax.
14485
14486 2008-03-31  Bruno Haible  <bruno@clisp.org>
14487
14488         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
14489         Reported by Eric Blake.
14490
14491 2008-03-31  Jim Meyering  <meyering@redhat.com>
14492
14493         Don't compare actual signbit return values.
14494         * tests/test-strtod.c (main): Rather, compare only their
14495         zero/non-zero nature.
14496
14497 2008-03-31  Eric Blake  <ebb9@byu.net>
14498
14499         More strtod documentation.
14500         * doc/posix-functions/strtod.texi (strtod): Interpret more test
14501         failures as distinct bugs.
14502
14503 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14504
14505         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
14506         Problem reported by Erik Benada in
14507         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
14508
14509 2008-03-30  Bruno Haible  <bruno@clisp.org>
14510
14511         * tests/test-strtod.c: Add comments about which assertion fails on which
14512         platform.
14513         * doc/posix-functions/strtod.texi: Add info about many more platforms.
14514
14515 2008-03-30  Eric Blake  <ebb9@byu.net>
14516
14517         Test signbit behavior on zeros.
14518         * tests/test-signbit.c (test_signbitf): Add tests for zero.
14519         (test_signbitd, test_signbitl): Likewise.
14520
14521         More strtod touchups.
14522         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
14523         sign of negative underflow, for now.  Use .5, not .1.
14524         * doc/posix-functions/strtod.texi (strtod): Mention these
14525         limitations.
14526         Reported by Jim Meyering.
14527
14528 2008-03-30  Bruno Haible  <bruno@clisp.org>
14529
14530         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
14531         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
14532
14533 2008-03-30  Bruno Haible  <bruno@clisp.org>
14534
14535         Avoid failure when attempting to return empty iconv results on some
14536         platforms.
14537         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
14538         allocation, don't report ENOMEM when the resulting string is empty.
14539
14540 2008-03-30  Bruno Haible  <bruno@clisp.org>
14541
14542         Fix buffer overrun.
14543         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
14544         Don't consider the width for tmp_length. Check count against tmp_length
14545         before doing the padding. Ensure enough allocation during padding.
14546
14547 2008-03-30  Eric Blake  <ebb9@byu.net>
14548
14549         strtod touchups.
14550         * lib/strtod.c (strtod): Avoid compiler warnings.
14551         Reported by Jim Meyering.
14552
14553 2008-03-30  Bruno Haible  <bruno@clisp.org>
14554
14555         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
14556         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
14557         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
14558         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
14559         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
14560         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
14561         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
14562         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
14563
14564         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
14565         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
14566         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
14567         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
14568         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
14569         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
14570         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
14571         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
14572
14573         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
14574         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
14575         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
14576         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
14577         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
14578         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
14579         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
14580         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
14581
14582         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
14583         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
14584
14585         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
14586         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
14587
14588         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
14589         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
14590
14591         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
14592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
14593         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
14594
14595         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
14596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
14597         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
14598
14599         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
14600         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
14601         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
14602
14603         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
14604         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
14605         * modules/vasprintf (Depends-on): Add EOVERFLOW.
14606
14607         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
14608         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
14609         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
14610         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
14611         (Depends-on): Add EOVERFLOW.
14612         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
14613         (Depends-on): Add EOVERFLOW.
14614         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14615         (Depends-on): Add EOVERFLOW.
14616         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14617         (Depends-on): Add EOVERFLOW.
14618         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14619         (Depends-on): Add EOVERFLOW.
14620         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14621         (Depends-on): Add EOVERFLOW.
14622         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14623         (Depends-on): Add EOVERFLOW.
14624         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14625         (Depends-on): Add EOVERFLOW.
14626
14627         * lib/sprintf.c (EOVERFLOW): Remove fallback.
14628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
14629         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
14630
14631         * lib/snprintf.c (EOVERFLOW): Remove fallback.
14632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
14633         * modules/snprintf (Depends-on): Add EOVERFLOW.
14634
14635         * lib/poll.c (EOVERFLOW): Remove fallback.
14636         * modules/poll (Depends-on): Add EOVERFLOW.
14637
14638         * lib/getugroups.c (EOVERFLOW): Remove fallback.
14639         * modules/getugroups (Depends-on): Add EOVERFLOW.
14640
14641         * lib/getdelim.c (EOVERFLOW): Remove fallback.
14642         * modules/getdelim (Depends-on): Add EOVERFLOW.
14643
14644         * lib/ftell.c (EOVERFLOW): Remove fallback.
14645         * modules/ftell (Depends-on): Add EOVERFLOW.
14646
14647         * lib/fprintf.c (EOVERFLOW): Remove fallback.
14648         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
14649         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
14650
14651         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
14652
14653         * modules/EOVERFLOW-tests: New file.
14654         * tests/test-EOVERFLOW.c: New file.
14655
14656         * modules/EOVERFLOW: New file.
14657         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
14658
14659 2008-03-30  Bruno Haible  <bruno@clisp.org>
14660
14661         Fix bug introduced on 2007-06-10.
14662         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
14663         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
14664
14665 2008-03-30  Bruno Haible  <bruno@clisp.org>
14666
14667         Improve freadseek's efficiency after ungetc.
14668         * lib/freadseek.c: Include freadahead.h.
14669         (freadptrinc): New function, extracted from freadseek.
14670         (freadseek): Use it in a loop. Use freadahead to determine the number
14671         of loop iterations.
14672         * modules/freadseek (Depends-on): Add freadahead.
14673         (configure.ac): Require AC_C_INLINE.
14674
14675 2008-03-30  Bruno Haible  <bruno@clisp.org>
14676
14677         * lib/freadseek.c (freadseek): Don't ignore the return value of
14678         freadptr.
14679
14680 2008-03-29  Eric Blake  <ebb9@byu.net>
14681
14682         Add hex float support.
14683         * modules/strtod (Depends-on): Add c-ctype.
14684         (Link): Mention POW_LIB.
14685         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
14686         whitespace between 'e' and exponent.
14687         * tests/test-strtod.c (main): Enable hex float tests.
14688         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
14689         now provides.
14690
14691         Document various strtod bugs, with some fixes.
14692         * doc/posix-functions/strtod.texi (strtod): Document bugs with
14693         "-0x", "inf", "nan", and hex constants.
14694         * doc/posix-functions/atof.texi (atof): Likewise.
14695         * modules/stdlib (Makefile.am): Support strtod.
14696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14697         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
14698         detect additional strtod bugs.
14699         * lib/stdlib.in.h (rpl_strtod): Add declarations.
14700         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
14701         bool where appropriate.  Parse 'inf' and 'nan'.
14702         * tests/test-strtod.c: New file.
14703         * modules/strtod (Depends-on): Add stdbool, stdlib.
14704         (configure.ac): Turn on module indicator.
14705         * modules/strtod-tests: New module.
14706
14707 2008-03-29  Eric Blake  <ebb9@byu.net>
14708
14709         Fix ftell on mingw.
14710         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
14711         * modules/ftell-tests (Depends-on): Add binary-io.
14712         * modules/ftello-tests (Depends-on): Likewise.
14713         * tests/test-ftell.c (main): Enhance test to cover behavior after
14714         ungetc.  Enforce binary mode.
14715         * tests/test-ftello.c (main): Likewise.
14716
14717         Pass test-freadseek on cygwin.
14718         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
14719         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
14720         ungetc buffer.
14721
14722         * tests/test-fflush2.c (main): Fix typo.
14723
14724 2008-03-29  Bruno Haible  <bruno@clisp.org>
14725
14726         * tests/test-fflush2.c (main): Temporarily disable the contents of
14727         this test.
14728         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
14729         Reported by Eric Blake.
14730
14731 2008-03-28  Simon Josefsson  <simon@josefsson.org>
14732
14733         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
14734         (GC_SHA224_DIGEST_SIZE): Add.
14735
14736         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
14737         (gc_hash_digest_length): Likewise.
14738         (gc_hash_buffer): Likewise.
14739
14740 2008-03-25  Bruno Haible  <bruno@clisp.org>
14741
14742         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
14743         detail which gettext release to use.
14744         Reported by Simon Josefsson.
14745
14746 2008-03-26  Jim Meyering  <meyering@redhat.com>
14747
14748         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
14749         * modules/gnumakefile (clean-GNUmakefile): Also, use
14750         test ... && ... || : syntax rather than if-then ... fi.
14751
14752         gnumakefile: Don't double-quote-expand $(VPATH) value.
14753         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
14754
14755 2008-03-24  Eric Blake  <ebb9@byu.net>
14756
14757         Alter GNUmakefile to install into top directory.
14758         * modules/maintainer-makefile: Split, and add dependency...
14759         * modules/gnumakefile: to this new module.
14760         * build-aux/GNUmakefile: Move...
14761         * top/GNUmakefile: ...here.
14762         * build-aux/maint.mk: Move...
14763         * top/maint.mk: ...here.
14764         * MODULES.html.sh (Support for maintaining...): Document new
14765         module.
14766
14767 2008-03-23  Bruno Haible  <bruno@clisp.org>
14768
14769         * gnulib-tool: New options --vc-files, --no-vc-files.
14770         (func_usage): Document them.
14771         (vc_files): New variable.
14772         (func_import): Consider vc_files.
14773         (func_create_testdir): Set vc_files to empty.
14774         Suggested by Jim Meyering and Karl Berry.
14775
14776 2008-03-23  Bruno Haible  <bruno@clisp.org>
14777
14778         Fix regex compilation error on HP-UX 11.
14779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
14780         * modules/regex (Files): Add m4/mbstate_t.m4.
14781         Reported by Ton Voon <ton.voon@altinity.com>.
14782
14783 2008-03-23  Bruno Haible  <bruno@clisp.org>
14784
14785         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
14786
14787 2008-03-23  Eric Blake  <ebb9@byu.net>
14788             Bruno Haible  <bruno@clisp.org>
14789
14790         Install files from top/ in the destination directory.
14791         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
14792         augmentation also for the files from top/.
14793         (func_import, func_create_testdir): Rewrite file names:
14794         top/filename -> filename.
14795
14796 2008-03-23  Bruno Haible  <bruno@clisp.org>
14797
14798         Tweak "gnulib --version" output.
14799         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
14800
14801 2008-03-23  Bruno Haible  <bruno@clisp.org>
14802
14803         Tweak "gnulib --version" output.
14804         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
14805         rather than contents of ChangeLog, when possible.
14806
14807 2008-03-21  Eric Blake  <ebb9@byu.net>
14808
14809         More --version tweaks.
14810         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
14811         date of last ChangeLog entry.
14812
14813 2008-03-21  Jim Meyering  <meyering@redhat.com>
14814
14815         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
14816
14817 2008-03-20  Eric Blake  <ebb9@byu.net>
14818
14819         VPATH fix.
14820         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
14821
14822 2008-03-20  Simon Josefsson  <simon@josefsson.org>
14823
14824         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
14825         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
14826
14827 2008-03-20  Eric Blake  <ebb9@byu.net>
14828
14829         Sync GNUmakefile with coreutils.
14830         * build-aux/GNUmakefile (have-Makefile): Rename...
14831         (_have-Makefile): ...to this, for namespace consideration.
14832         (GNUmakefile.cfg): Include, if present.
14833         (_autoreconf): Define a default.
14834         (_is-dist-target): New rule for rebuilds to pick up intra-release
14835         version.
14836         (maint-cfg.mk): Rename...
14837         (cfg.mk): ...to this.
14838
14839 2008-03-18  Jim Meyering  <meyering@redhat.com>
14840
14841         New script and module: mktempd
14842         * MODULES.html.sh (maint+release support): Add mktempd.
14843         * build-aux/mktempd: New file.
14844         * modules/mktempd: New file.
14845
14846 2008-03-15  Jim Meyering  <meyering@redhat.com>
14847
14848         Undo last change.
14849         * lib/sha1.c, lib/md5.c: 63 != ~63.
14850         Reported by Andreas Schwab.
14851
14852         sha1.c, md5.c: Hoist a redundant expression.
14853         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
14854         "ctx->buflen" only once, before calling *_process_block.
14855         * lib/md5.c (md5_process_bytes): Likewise.
14856
14857 2008-03-14  Eric Blake  <ebb9@byu.net>
14858
14859         Bump copyright year in files generated by gnulib-tool.
14860         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
14861         gnulib-tool, rather than hard-coding it.
14862
14863         Fix 'gnulib-tool --version' output to work with git.
14864         * gnulib-tool (func_gnulib_dir): New function, extracted from...
14865         (startup): ...here.
14866         (func_version): Use it to invoke git-version-gen, rather than
14867         relying on CVS keyword expansion.  Modernize wording.
14868         (cvsdatestamp, last_checkin_date, version): Kill unused
14869         variables.
14870
14871 2008-03-12  Jim Meyering  <meyering@redhat.com>
14872
14873         Recognize optional cast of the argument to free.
14874         * build-aux/useless-if-before-free: Update regexps.
14875
14876         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
14877
14878 2008-03-11  Bruno Haible  <bruno@clisp.org>
14879
14880         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
14881         by a single package.
14882         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
14883         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
14884         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
14885         Reported by Sam Steingold <sds@gnu.org>.
14886
14887 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14888
14889         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
14890         repositories.
14891
14892 2008-03-11  Bruno Haible  <bruno@clisp.org>
14893
14894         Avoid conflicts between local macro definitions.
14895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14896         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
14897
14898 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
14899             Bruno Haible  <bruno@clisp.org>
14900
14901         Make va_copy work with some version of xlc on AIX 5.1.
14902         * lib/stdarg.in.h: New file.
14903         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
14904         On AIX, use a <stdarg.h> file substitute.
14905         * modules/stdarg (Files): Add lib/stdarg.in.h.
14906         (Depends-on): Add include_next.
14907         (Makefile.am): Build a stdarg.h substitute if requested.
14908         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
14909
14910 2008-03-10  Bruno Haible  <bruno@clisp.org>
14911
14912         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
14913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14914         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
14915
14916 2008-03-10  Bruno Haible  <bruno@clisp.org>
14917
14918         * modules/stdlib (Depends-on): Add include_next, remove
14919         absolute-header.
14920
14921 2008-03-09  Bruno Haible  <bruno@clisp.org>
14922
14923         * lib/freadahead.h (freadahead): Document more precisely.
14924         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
14925         the sum of both buffer sizes.
14926         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
14927         * NEWS: Document the change.
14928
14929 2008-03-09  Bruno Haible  <bruno@clisp.org>
14930
14931         Extend freadptr to return also the buffer size.
14932         * lib/freadptr.h (freadptr): Add sizep argument.
14933         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
14934         (freadptr): Add sizep argument. Determine buffer size like freadahead
14935         does.
14936         * tests/test-freadptr.c: Don't include freadahead.h.
14937         (main): Adapt for new calling convention of freadptr.
14938         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
14939         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
14940         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
14941         tests/test-freadptr2.sh.
14942         (Depends): Remove freadahead.
14943         (TESTS): Add test-freadptr2.sh.
14944         (check_PROGRAMS): Add test-freadptr2.
14945
14946 2008-03-09  Bruno Haible  <bruno@clisp.org>
14947
14948         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
14949         Report and solution by Simon Josefsson.
14950
14951 2008-03-06  Bruno Haible  <bruno@clisp.org>
14952
14953         Make fflush after ungetc work on BSD platforms.
14954         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
14955         * tests/test-fflush2.c: New file.
14956         * tests/test-fflush2.sh: New file.
14957         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
14958         tests/test-fflush2.c.
14959         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
14960         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
14961
14962 2008-03-06  Eric Blake  <ebb9@byu.net>
14963
14964         Likewise for ftello.
14965         * modules/ftello (Dependencies): Add extensions.
14966         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
14967
14968 2008-03-06  Bruno Haible  <bruno@clisp.org>
14969
14970         * modules/fseeko (Dependencies): Add extensions.
14971         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
14972         Needed on glibc systems.
14973
14974 2008-03-06  Bruno Haible  <bruno@clisp.org>
14975
14976         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
14977         email address.
14978         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14979
14980 2008-03-06  Bruno Haible  <bruno@clisp.org>
14981
14982         * users.txt: Add libgnupdf.
14983
14984 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14985
14986         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
14987         (Header File Substitutes, Function Substitutes,
14988         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
14989         (Build robot for gnulib): Fix typo.
14990
14991 2008-03-06  Bruno Haible  <bruno@clisp.org>
14992
14993         * doc/gnulib-tool.texi (VCS Issues): Small updates.
14994         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14995
14996 2008-03-06  Bruno Haible  <bruno@clisp.org>
14997
14998         * doc/func.texi: New file, extracted from doc/gnulib.texi.
14999         * doc/gnulib.texi: Include it.
15000
15001 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15002
15003         * modules/func (License): Change license to unlimited; there was
15004         no LGPL parts in the module anyway.
15005
15006 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15007
15008         * modules/__func__: Renamed to modules/func.
15009         * modules/__func__-tests: Renamed to modules/func-tests.
15010         * tests/test-__func__.c: Renamed to tests/test-func.c.
15011         * m4/__func__.m4: Renamed to m4/func.m4.
15012         * doc/gnulib.texi (__func__): Section renamed to func.
15013         Suggested by Eric Blake <ebb9@byu.net>.
15014
15015 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15016
15017         * doc/gnulib.texi (__func__): Use C99 terminology when talking
15018         about __func__.  Make example self-contained.  Suggested by Eric
15019         Blake <ebb9@byu.net>.
15020
15021         * tests/test-__func__.c (main): Avoid extraneous () around __func.
15022         Suggested by Eric Blake <ebb9@byu.net>.
15023
15024 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15025
15026         * modules/__func__: New file.
15027         * modules/__func__-tests: New file.
15028         * tests/test-__func__.c: New file.
15029         * m4/__func__.m4: New file.
15030         * doc/gnulib.texi (__func__): Document __func__ module.
15031
15032 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15033
15034         * modules/byteswap (License): Re-license as LGPLv2+.
15035
15036 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15037
15038         * doc/Makefile: Add pdf target.
15039
15040 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15041
15042         * modules/inline (License): Use 'unlimited', since there are only
15043         *.m4 files in this module.
15044
15045 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15046             Bruno Haible  <bruno@clisp.org>
15047
15048         Add support for HP C 7.1 on OpenVMS 8.3.
15049         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
15050
15051 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15052
15053         Update VMS specifics.
15054         * lib/getopt.c [VMS]: Remove include of unixlib.h.
15055
15056 2008-03-02  Jim Meyering  <meyering@redhat.com>
15057
15058         Remove the last dependency on the "free" module.
15059         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
15060         Reported by Bob Proulx.
15061
15062         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
15063
15064         Remove useless "if" tests before free.  Deprecate "free" module.
15065         * doc/posix-functions/free.texi: Mention that this
15066         module is no longer useful.
15067         * modules/free (Notice): Say this module is obsolete.
15068         * modules/readutmp (Depends-on): Remove free.
15069         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
15070         * lib/putenv.c (putenv): Likewise.
15071         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
15072         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
15073         * tests/test-c-strcasestr.c (main): Likewise.
15074         * tests/test-c-strstr.c (main): Likewise.
15075         * tests/test-mbscasestr1.c (main): Likewise.
15076         * tests/test-mbscasestr2.c (main): Likewise.
15077         * tests/test-mbsstr1.c (main): Likewise.
15078         * tests/test-mbsstr2.c (main): Likewise.
15079         * tests/test-memmem.c (main): Likewise.
15080         * tests/test-strcasestr.c (main): Likewise.
15081         * tests/test-striconv.c (main): Likewise.
15082         * tests/test-striconveh.c (main): Likewise.
15083         * tests/test-striconveha.c (main): Likewise.
15084         * tests/test-strstr.c (main): Likewise.
15085
15086         * build-aux/git-version-gen: Adjust a comment and the Usage string.
15087
15088         bootstrap: sync from coreutils again
15089         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
15090
15091 2008-03-01  Jim Meyering  <meyering@redhat.com>
15092
15093         bootstrap: sync from coreutils
15094         * build-aux/bootstrap (update_po_files): Copy a .po file into place
15095         also when the target doesn't exist.
15096
15097 2008-03-01  Eric Blake  <ebb9@byu.net>
15098
15099         Fix bugs in last patch.
15100         * lib/memchr2.c (memchr2): Fix typo.
15101         * tests/test-memchr2.c: Test previous bug, and don't use GNU
15102         extension.
15103         Reported by Bruce Korb.
15104
15105         New module 'memchr2'.
15106         * modules/memchr2: New file.
15107         * modules/memchr2-tests: Likewise.
15108         * lib/memchr2.h: Likewise.
15109         * lib/memchr2.c: Likewise, based on memchr.c.
15110         * tests/test-memchr2.c: New test.
15111         * MODULES.html.sh (String handling): Add memchr2.
15112
15113 2008-02-29  Bruno Haible  <bruno@clisp.org>
15114
15115         * modules/freadseek-tests: New file.
15116         * tests/test-freadseek.sh: New file.
15117         * tests/test-freadseek.c: New file.
15118
15119         New module 'freadseek'.
15120         * modules/freadseek: New file.
15121         * lib/freadseek.h: New file.
15122         * lib/freadseek.c: New file.
15123         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
15124
15125 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15126
15127         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
15128         wydawca.
15129
15130         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
15131         program_invocation_name and program_invocation_short_name are
15132         present.
15133
15134 2008-02-28  Bruno Haible  <bruno@clisp.org>
15135
15136         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
15137         * tests/test-freadptr.sh: Also test non-seekable stdin.
15138
15139 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
15140
15141         * build-aux/bootstrap (source_base, m4_base)
15142         (doc_base, tests_base): New variables.
15143         (gnulib_tool_options): Do not hardcode base directories, use
15144         the above variables instead.
15145
15146 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
15147
15148         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
15149
15150 2008-02-28  Bruno Haible  <bruno@clisp.org>
15151
15152         * modules/freadptr-tests: New file.
15153         * tests/test-freadptr.sh: New file.
15154         * tests/test-freadptr.c: New file.
15155
15156         New module 'freadptr'.
15157         * modules/freadptr: New file.
15158         * lib/freadptr.h: New file.
15159         * lib/freadptr.c: New file.
15160         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
15161
15162 2008-02-26  Karl Berry  <karl@freefriends.org>
15163
15164         Sync from Libtool:
15165         * libltdl/argz.c (argz_add, argz_count): New functions.
15166         * libltdl/argz.in.h: Declare them.
15167         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
15168
15169 2008-02-22  Bruno Haible  <bruno@clisp.org>
15170
15171         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
15172         is a pointer type.  Needed for HP-UX 10.
15173         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
15174         * doc/posix-functions/gmtime_r.texi: Likewise.
15175         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15176
15177 2008-02-24  Bruno Haible  <bruno@clisp.org>
15178
15179         * modules/environ-tests: New file.
15180         * tests/test-environ.c: New file.
15181
15182         New module 'environ'.
15183         * modules/environ: New file.
15184         * lib/unistd.in.h (environ): New declaration.
15185         * m4/environ.m4: New file.
15186         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
15187         after use.
15188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
15189         HAVE_DECL_ENVIRON.
15190         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
15191         HAVE_DECL_ENVIRON.
15192         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
15193         wrong claim that 'environ' is missing on some systems.
15194         * modules/execute (Depends-on): Add environ.
15195         * lib/execute.c (environ): Remove fallback declaration.
15196         * modules/pipe (Depends-on): Add environ.
15197         * lib/pipe.c (environ): Remove fallback declaration.
15198         * modules/setenv (Depends-on): Add environ.
15199         * lib/setenv.c (environ): Remove fallback declaration.
15200         * modules/unsetenv (Depends-on): Add environ.
15201         * lib/unsetenv.c (environ): Remove fallback declaration.
15202         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
15203         m4/environ.m4.
15204         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
15205         (gl_PREREQ_UNSETENV): Likewise.
15206
15207 2008-02-24  Bruno Haible  <bruno@clisp.org>
15208
15209         * doc/posix-functions/environ.texi: Document the MacOS X problem.
15210
15211 2008-02-20  Bob Proulx  <bob@proulx.com>
15212
15213         Enable use of older two part flavor 'git describe'.
15214         * build-aux/git-version-gen: If using the older two part flavor of
15215         git version then recreate the third part now present in the
15216         newer three part flavor of git describe.
15217
15218 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
15219
15220         * lib/fts.c (fts_build): Typo correction to comment.
15221
15222 2008-02-17  Bruno Haible  <bruno@clisp.org>
15223
15224         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
15225         generating no-op conflicts.
15226
15227 2008-02-17  Bruno Haible  <bruno@clisp.org>
15228
15229         Speed up by 10%.
15230         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
15231         result_entries, rather than an index-based loop.
15232
15233 2008-02-17  Bruno Haible  <bruno@clisp.org>
15234
15235         Speed up by 25%.
15236         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
15237         'hashcode_cached'.
15238         (entry_create): New function.
15239         (entry_hashcode): Use the cached hashcode if possible.
15240         (read_changelog_file, try_split_merged_entry): Use entry_create.
15241
15242 2008-02-17  Bruno Haible  <bruno@clisp.org>
15243
15244         Speed up from O(n^2) to O(n) for long ChangeLog files.
15245         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
15246         (read_changelog_file): Change implementation of entries_reversed list
15247         to rbtreehash.
15248         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
15249
15250 2008-02-17  Bruno Haible  <bruno@clisp.org>
15251
15252         New option --split-merged-entry.
15253         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
15254         (find_paragraph_end, try_split_merged_entry): New functions.
15255         (long_options): Add option --split-merged-entry.
15256         (usage): Document option --split-merged-entry.
15257         (main): Implement option --split-merged-entry.
15258         Reported by Eric Blake.
15259
15260 2008-02-17  Bruno Haible  <bruno@clisp.org>
15261
15262         * lib/git-merge-changelog.c: Include c-strstr.h.
15263         (main): Support the "git pull --rebase" situation.
15264         * modules/git-merge-changelog (Depends-on): Add c-strstr.
15265         Reported by Eric Blake.
15266
15267 2008-02-16  Eric Blake  <ebb9@byu.net>
15268
15269         Avoid doubling \ in common case of "c-maybe" quoting style.
15270         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
15271         eliding outer quotes.
15272         * lib/quotearg.h: Document this.
15273         * tests/test-quotearg.c (result_strings, inputs, results_g)
15274         (flag_results, locale_results): Test it by adding a new string to
15275         each test group.
15276         (compare_strings): Test new string.
15277
15278 2008-02-13  Eric Blake  <ebb9@byu.net>
15279
15280         Avoid trigraph quoting in default output.
15281         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
15282         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
15283         unless explicitly requested.
15284         * tests/test-quotearg.c (flag_results, main): Add additional tests.
15285
15286 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
15287
15288         Don't rely on signed integer overflowing to negative value.
15289         * lib/getugroups.c (getugroups): Include <limits.h>.
15290         Instead, compare against INT_MAX, and increment only if the test passes.
15291
15292 2008-02-13  Jim Meyering  <meyering@redhat.com>
15293         and Eric Blake  <ebb9@byu.net>
15294
15295         Avoid shadowing warning and compile errors on Linux.
15296         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
15297         forwarding macros on Linux.
15298         (dcgettext): Define a stub, for Linux.
15299         (results_g, main): Avoid warnings.
15300
15301 2008-02-12  Eric Blake  <ebb9@byu.net>
15302
15303         Silence warning in last patch.
15304         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
15305
15306         Quotearg part 4: add tests, fix c-maybe colon quoting.
15307         * lib/quotearg.h: Improve documentation.
15308         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
15309         escapes when adding outer quotes.  When quoting trigraphs, use
15310         valid C notation.  When quoting NUL, omit extra characters if next
15311         character is not digit.  Alter prototype.
15312         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
15313         callers.
15314         * modules/quotearg-tests: New module.
15315         * tests/test-quotearg.c: New test.
15316
15317 2008-02-07  Eric Blake  <ebb9@byu.net>
15318
15319         Quotearg part 3: add flag to control outer quote elision.
15320         * lib/quotearg.h (c_maybe_quoting_style): New style.
15321         (enum quoting_flags): Better documentation of flags.
15322         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
15323         c-maybe style.
15324         (quotearg_buffer_restyled): Handle new flag to elide outer
15325         quotes.
15326
15327         Quotearg part 2: add flag that can control NUL elision.
15328         * lib/quotearg.h (set_quoting_flags): New prototype.
15329         * lib/quotearg.c (struct quoting_options): Add flag field.
15330         (set_quoting_flags): New function.
15331         (quotearg_buffer_restyled): Add flags parameter.
15332         (quotearg_alloc_mem): Set the flag if length cannot be returned.
15333         (quotearg_n_options): Set the flag, since length cannot be
15334         returned.
15335         (quoting_options_from_style): Default flags correctly.
15336
15337         Quotearg part 1: more wrappers, restore quotearg_char state.
15338         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
15339         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
15340         (quotearg_colon_mem): New wrappers.
15341         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
15342         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
15343         functions.
15344         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
15345         (quotearg_colon_mem): New functions.
15346
15347 2008-02-11  Bruno Haible  <bruno@clisp.org>
15348
15349         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
15350         library in the current directory: it does not work with parallel make.
15351         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15352
15353 2008-02-11  Bruno Haible  <bruno@clisp.org>
15354
15355         * .gitattributes: New file.
15356
15357 2008-02-11  Jim Meyering  <meyering@redhat.com>
15358
15359         useless-if-before-free: Fix reversed exit values.
15360         * build-aux/useless-if-before-free: Use correct values
15361         for EXIT_MATCH and EXIT_NO_MATCH.
15362
15363         * build-aux/useless-if-before-free: Close stdout carefully.
15364
15365 2008-02-10  Bruno Haible  <bruno@clisp.org>
15366
15367         New module 'git-merge-changelog'.
15368         * modules/git-merge-changelog: New file.
15369         * lib/git-merge-changelog.c: New file.
15370
15371 2008-02-10  Jim Meyering  <meyering@redhat.com>
15372
15373         useless-if-before-free: New option: --list (-l).
15374
15375         useless-if-before-free: Don't exit immediately upon open failure.
15376         * build-aux/useless-if-before-free: Exit 2 for errors.
15377         Upon failure to open a file, don't exit immediately.
15378         Rather, just warn and continue with any remaining files.
15379
15380 2008-02-10  Bruno Haible  <bruno@clisp.org>
15381
15382         New abstract list operation 'node_set_value'.
15383         * lib/gl_list.h (gl_list_node_set_value): New function.
15384         (struct gl_list_implementation): New field node_set_value.
15385         * lib/gl_list.c (gl_list_node_set_value): New function.
15386         * lib/gl_array_list.c (gl_array_node_set_value): New function.
15387         (gl_array_list_implementation): Update.
15388         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
15389         (gl_carray_list_implementation): Update.
15390         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
15391         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15392         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15393         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
15394         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15395         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15396         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15397         Update.
15398         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15399         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
15400         (gl_sublist_list_implementation): Update.
15401
15402 2008-02-10  Bruno Haible  <bruno@clisp.org>
15403
15404         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
15405         Needed when ELEMENT is #defined to 'some_type *'.
15406
15407 2008-02-10  Jim Meyering  <meyering@redhat.com>
15408
15409         New script and module: useless-if-before-free
15410         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
15411         * build-aux/useless-if-before-free: New file.
15412         * modules/useless-if-before-free: New file.
15413
15414         * build-aux/gitlog-to-changelog: Use committer date, not author date.
15415
15416         xstrtol_error: Fix typo.
15417         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
15418         s/exit_failure/exit_status/.
15419
15420 2008-02-09  Jim Meyering  <meyering@redhat.com>
15421
15422         New script and module: gitlog-to-changelog
15423         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
15424         * modules/gitlog-to-changelog: New file.
15425         * build-aux/gitlog-to-changelog: New file.
15426
15427 2008-02-08  Jim Meyering  <meyering@redhat.com>
15428
15429         Avoid two "parameter unused" warnings.
15430         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
15431         Mark "st" as used.
15432
15433         Use "git COMMAND", not "git-COMMAND".
15434         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
15435         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
15436         * build-aux/git-version-gen: Use "git status", not "git-status".
15437
15438 2008-02-07  Bruno Haible  <bruno@clisp.org>
15439
15440         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
15441         Avoids a crash on Windows Vista.
15442         Reported by Adam Strzelecki <ono@java.pl> via
15443         Simon Josefsson <simon@josefsson.org>.
15444
15445 2008-02-06  Bruno Haible  <bruno@clisp.org>
15446
15447         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
15448         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
15449         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
15450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
15451         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15453         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
15454         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
15455         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15456         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15459         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15461         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15462         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
15463         left-adjust flag.
15464         * tests/test-snprintf-posix.h (test_function): Likewise.
15465         * tests/test-sprintf-posix.h (test_function): Likewise.
15466         * tests/test-vasprintf-posix.c (test_function): Likewise.
15467         * doc/posix-functions/fprintf.texi: Update.
15468         * doc/posix-functions/printf.texi: Update.
15469         * doc/posix-functions/snprintf.texi: Update.
15470         * doc/posix-functions/sprintf.texi: Update.
15471         * doc/posix-functions/vfprintf.texi: Update.
15472         * doc/posix-functions/vprintf.texi: Update.
15473         * doc/posix-functions/vsnprintf.texi: Update.
15474         * doc/posix-functions/vsprintf.texi: Update.
15475         Reported by Peter Fales <psfales@alcatel-lucent.com>.
15476
15477 2008-02-06  Bruno Haible  <bruno@clisp.org>
15478
15479         Fix bug introduced on 2008-01-26.
15480         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
15481
15482 2008-02-06  Bruno Haible  <bruno@clisp.org>
15483
15484         Fix bug introduced on 2007-06-10.
15485         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
15486         !NEED_PRINTF_FLAG_ZERO.
15487
15488 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
15489
15490         getloadavg: use libperfstat on AIX5
15491         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
15492
15493 2008-02-03  Bruno Haible  <bruno@clisp.org>
15494
15495         * lib/diffseq.h: Add comments about required #includes.
15496         Reported by Michael Biggs <gnulib@doubleplum.net>.
15497
15498 2008-02-01  Bruno Haible  <bruno@clisp.org>
15499
15500         * users.txt: Add gnuit.
15501
15502 2008-01-31  Bruno Haible  <bruno@clisp.org>
15503
15504         * lib/md4.c (set_uint32): Mark as inline.
15505         * lib/md5.c (set_uint32): Likewise.
15506         * lib/sha1.c (set_uint32): Likewise.
15507         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
15508         * m4/md5.m4 (gl_MD5): Likewise.
15509         * m4/sha1.m4 (gl_SHA1): Likewise.
15510
15511 2008-01-31  Jim Meyering  <meyering@redhat.com>
15512
15513         Use "sizeof VAR", rather than a literal "4".
15514         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
15515         * lib/md4.c (md4_read_ctx): Likewise.
15516         * lib/sha1.c (sha1_read_ctx): Likewise.
15517
15518 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15519
15520         * tests/test-sha1.c: New file, based on test-md5.c.
15521
15522         * modules/crypto/sha1-tests: New file.
15523
15524 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15525
15526         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
15527
15528 2008-01-31  Jim Meyering  <meyering@redhat.com>
15529
15530         Prefer "sizeof v" over the equivalent "4".
15531         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
15532         * lib/md5.c (set_uint32): Likewise.
15533         * lib/sha1.c (set_uint32): Likewise.
15534
15535 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15536
15537         * lib/sha1.c (set_uint32): Mark function as static.
15538
15539 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15540
15541         md2: clarify comments to say that alignment is not required.
15542         * lib/md2.h: Remove warning about alignment in comment.
15543         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
15544         never been required.
15545
15546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15547
15548         md4: adapt alignment constraint fix from sha1.
15549         * lib/md4.c (set_uint32): New function, from sha1.c
15550         (md4_read_ctx): Use it.
15551         (md4_finish_ctx): Doc fix.
15552         * lib/md4.h: Doc fix.
15553
15554 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15555
15556         md5: adapt alignment constraint fix from sha1.
15557         * lib/md5.c (set_uint32): New function, from sha1.c
15558         (md5_read_ctx): Use it.
15559         (md5_finish_ctx): Doc fix.
15560         * lib/md5.h: Doc fix.
15561
15562 2008-01-30  Peter Palfrader  <weasel@debian.org>
15563
15564         sha1: remove the result buffer alignment constraint
15565         * lib/sha1.c (set_uint32): New function.
15566         (sha1_read_ctx): Rewrite to remove the result buffer alignment
15567         constraint.
15568         (sha1_finish_ctx): Remove comment warning about alignment constraint.
15569         * lib/sha1.h: Likewise.
15570
15571 2008-01-30  Andreas Schwab  <schwab@suse.de>
15572             Bruno Haible  <bruno@clisp.org>
15573
15574         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
15575         correct definition of LDBL_MIN_EXP.
15576
15577 2008-01-30  Karl Berry  <karl@gnu.org>
15578
15579         * config/srclist-update: try to preserve x bit on updates.
15580         * config/srclistvars.sh: update for karl.
15581
15582 2008-01-29  Jim Meyering  <meyering@redhat.com>
15583
15584         vasnprintf.c: Avoid warning about unused label
15585         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
15586         "overflow" label definition and associated code with the
15587         same cpp condition that guards the sole use of that label.
15588
15589 2008-01-26  Bruno Haible  <bruno@clisp.org>
15590
15591         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
15592         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
15593         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
15594         * lib/isnanl-nolibm.h (isnanl): Likewise.
15595         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15596
15597 2008-01-26  Bruno Haible  <bruno@clisp.org>
15598
15599         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
15600         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
15601
15602 2008-01-26  Bruno Haible  <bruno@clisp.org>
15603
15604         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
15605         GCC >= 4.0 built-in.
15606         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
15607
15608 2008-01-26  Bruno Haible  <bruno@clisp.org>
15609
15610         Rename isnan, applicable to 'double' only, to isnand.
15611         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
15612         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
15613         (configure.ac): Update.
15614         (Include): Replace "isnan.h" with "isnand.h".
15615         * m4/isnand.m4: Renamed from m4/isnan.m4.
15616         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
15617         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
15618         instead of isnan.c.
15619         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
15620         instead of HAVE_ISNAN_IN_LIBC.
15621         (isnand): Renamed from isnan.
15622         * lib/isnand.c: New file.
15623         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
15624         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
15625         (Makefile.am): Update.
15626         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
15627         Include isnand.h instead of isnan.h.
15628         (main): Test isnand instead of isnan.
15629         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
15630         isnan-nolibm.
15631         * modules/frexp (Depends-on): Likewise.
15632         * modules/frexp-tests (Depends-on): Likewise.
15633         * modules/frexp-nolibm (Depends-on): Likewise.
15634         * modules/frexp-nolibm-tests (Depends-on): Likewise.
15635         * modules/isfinite (Depends-on): Likewise.
15636         * modules/round-tests (Depends-on): Likewise.
15637         * modules/signbit (Depends-on): Likewise.
15638         * modules/signbit-tests (Depends-on): Likewise.
15639         * modules/snprintf-posix (Depends-on): Likewise.
15640         * modules/sprintf-posix (Depends-on): Likewise.
15641         * modules/trunc-tests (Depends-on): Likewise.
15642         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15643         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15644         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15645         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15646         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15648         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15649         * modules/vasnprintf-posix (Depends-on): Likewise.
15650         * modules/vasprintf-posix (Depends-on): Likewise.
15651         * modules/vfprintf-posix (Depends-on): Likewise.
15652         * modules/vsnprintf-posix (Depends-on): Likewise.
15653         * modules/vsprintf-posix (Depends-on): Likewise.
15654         * lib/frexp.c: Include isnand.h instead of isnan.h.
15655         (ISNAN): Set to isnand instead of isnan.
15656         * lib/isfinite.c: Include isnand.h instead of isnan.h.
15657         (gl_isfinited): Use isnand instead of isnan.
15658         * lib/signbitd.c: Include isnand.h instead of isnan.h.
15659         (gl_signbitd): Use isnand instead of isnan.
15660         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
15661         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
15662         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
15663         (main): Use isnand instead of isnan.
15664         * tests/test-round1.c: Include isnand.h.
15665         (main): Use isnand instead of isnan.
15666         * tests/test-round2.c: Include isnand.h instead of isnan.h.
15667         (ISNAN): Set to isnand instead of isnan.
15668         * tests/test-trunc1.c: Include isnand.h.
15669         (main): Use isnand instead of isnan.
15670         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
15671         (equal): Use isnand instead of isnan.
15672         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
15673         isnand-nolibm.
15674         * NEWS: Mention the change.
15675
15676 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15677             Bruno Haible  <bruno@clisp.org>
15678
15679         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
15680         the GCC builtins for signbits are present and set
15681         REPLACE_SIGNBIT_USING_GCC if so.
15682         * lib/math.in.h (signbit): Define using GCC builtins if
15683         REPLACE_SIGNBIT_USING_GCC is set.
15684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
15685         REPLACE_SIGNBIT_USING_GCC.
15686         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
15687
15688 2008-01-25  Jim Meyering  <meyering@redhat.com>
15689
15690         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
15691         * lib/poll.c: Include <config.h>, not "config.h".
15692         * tests/test-getaddrinfo.c: Likewise.
15693
15694 2008-01-25  Simon Josefsson  <simon@josefsson.org>
15695
15696         * modules/sockets-tests: New file.
15697
15698 2008-01-24  Simon Josefsson  <simon@josefsson.org>
15699
15700         * modules/sockets: New module, can be used to call WSA_Startup and
15701         WSA_Cleanup when needed.
15702
15703         * lib/sockets.h, lib/sockets.c: New files.
15704
15705         * m4/sockets.m4: New file.
15706
15707         * tests/test-sockets.c: New file.
15708
15709 2008-01-19  Bruno Haible  <bruno@clisp.org>
15710
15711         * doc/posix-headers: Renamed from doc/headers.
15712         * doc/posix-functions: Renamed from doc/functions.
15713         * doc/gnulib.texi: Update.
15714
15715 2008-01-19  Bruno Haible  <bruno@clisp.org>
15716
15717         * doc/glibc-functions/strcasestr.texi: Include contents of
15718         doc/functions/strcasestr.texi, fixing the list of platforms.
15719         * doc/functions/strcasestr.texi: Remove file.
15720
15721 2008-01-19  Bruno Haible  <bruno@clisp.org>
15722
15723         * doc/glibc-functions/memmem.texi: Include contents of
15724         doc/functions/memmem.texi.
15725         * doc/functions/memmem.texi: Remove file.
15726
15727 2008-01-18  Bruno Haible  <bruno@clisp.org>
15728
15729         * doc/glibc-functions/*.texi: New files.
15730         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
15731         to use the new files.
15732
15733 2008-01-17  Bruno Haible  <bruno@clisp.org>
15734
15735         * tests/test-gethostname.c (main): Fix printf statement.
15736
15737 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15738
15739         * modules/gethostname-tests: New file.
15740
15741         * tests/test-gethostname.c: New file.
15742
15743 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15744
15745         * lib/gethostname.c: Include string.h unconditionally, strncpy is
15746         used by the UNAME case.  Reported by Bruno Haible
15747         <bruno@clisp.org>.
15748
15749 2008-01-17  Eric Blake  <ebb9@byu.net>
15750
15751         Convert c-strcasestr to be more efficient.
15752         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
15753         (Depends-on): Add c-strcase, remove malloca, strnlen.
15754         * tests/test-c-strcasestr.c (main): Enhance test.
15755         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
15756
15757 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15758
15759         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
15760         Use it in creating po/Makevars.
15761
15762 2008-01-15  Simon Josefsson  <simon@josefsson.org>
15763
15764         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
15765         Applications that requires it should initialize libgcrypt
15766         manually.
15767
15768 2008-01-16  Simon Josefsson  <simon@josefsson.org>
15769
15770         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
15771
15772 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15773
15774         Fix problem with getdate on mingw32 reported by Simon Josefsson
15775         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
15776         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
15777         tzname", when deciding whether to declare tzname.
15778         * lib/strftime.c (tzname): Likewise.
15779
15780 2008-01-15  Bruno Haible  <bruno@clisp.org>
15781
15782         Work around a MacOS X 10.5 bug in frexpl().
15783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
15784         * doc/functions/frexpl.texi: Document the bug.
15785         Reported by Elias Pipping <pipping@gentoo.org>.
15786
15787 2008-01-14  Eric Blake  <ebb9@byu.net>
15788
15789         Touch up previous patch.
15790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
15791         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
15792
15793         Convert strcasestr module to use Two-Way algorithm.
15794         * modules/strcasestr-simple: New module, based on the old
15795         strcasestr, but with Two-Way rather than KMP.
15796         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
15797         * lib/string.in.h (rpl_strcasestr): Declare.
15798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
15799         performance.
15800         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
15801         * modules/string (Makefile.am): Support strcasestr.
15802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
15803         * modules/strcasestr-tests (Depends-on): Check for alarm.
15804         * tests/test-strcasestr.c: Augment test.
15805         * lib/str-two-way.h: Clean up stray macro.
15806         * NEWS: Document new module.
15807         * MODULES.html.sh (string handling): Likewise.
15808         * doc/functions/strcasestr.texi: New file.
15809         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
15810         here, since it is not a POSIX function.
15811
15812 2008-01-14  Colin Watson  <cjwatson@debian.org>
15813             Bruno Haible  <bruno@clisp.org>
15814
15815         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
15816         works fine; if not, set REPLACE_STRSIGNAL.
15817         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
15818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15819         REPLACE_STRSIGNAL.
15820         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
15821         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
15822         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
15823
15824 2008-01-14  Bruno Haible  <bruno@clisp.org>
15825
15826         * modules/strsignal (Include): Change to <string.h>.
15827
15828 2008-01-14  Colin Watson  <cjwatson@debian.org>
15829
15830         * modules/argp (Notice): Add a notice recommending to change
15831         XGETTEXT_OPTIONS.
15832         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
15833
15834 2008-01-13  Colin Watson  <cjwatson@debian.org>
15835
15836         * modules/strsignal-tests: New file.
15837         * tests/test-strsignal.c: New file.
15838
15839         * lib/strsignal.c: New file, from glibc with modifications.
15840         * lib/siglist.h: New file, from glibc with modifications.
15841         * lib/string.in.h (strsignal): New declaration.
15842         * m4/strsignal.m4: New file.
15843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15844         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
15845         * modules/strsignal: New file.
15846         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
15847         HAVE_DECL_STRSIGNAL.
15848
15849 2008-01-13  Bruno Haible  <bruno@clisp.org>
15850
15851         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
15852         locale encoding is not ASCII. Needed for OpenBSD 4.0.
15853         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15854         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15855
15856 2008-01-13  Bruno Haible  <bruno@clisp.org>
15857
15858         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
15859         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
15860         * lib/argp.h (__attribute__): Likewise.
15861         * lib/c-stack.c (__attribute__): Likewise.
15862         * lib/error.h (__attribute__): Likewise.
15863         * lib/fts.c (__attribute__): Likewise.
15864         * lib/openat.h (__attribute__): Likewise.
15865         * lib/stdio.in.h (__attribute__): Likewise.
15866         * lib/string.in.h (__attribute__): Likewise.
15867         * lib/utimens.c (__attribute__): Likewise.
15868         * lib/vasnprintf.h (__attribute__): Likewise.
15869         * lib/xalloc.h (__attribute__): Likewise.
15870         * lib/xprintf.h (__attribute__): Likewise.
15871         * lib/xstrtol.h (__attribute__): Likewise.
15872         * lib/xvasprintf.h (__attribute__): Likewise.
15873
15874 2008-01-12  Bruno Haible  <bruno@clisp.org>
15875
15876         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
15877         * doc/glibc-headers/a.out.texi: New file.
15878         * doc/glibc-headers/aliases.texi: New file.
15879         * doc/glibc-headers/alloca.texi: New file.
15880         * doc/glibc-headers/ar.texi: New file.
15881         * doc/glibc-headers/argp.texi: New file.
15882         * doc/glibc-headers/argz.texi: New file.
15883         * doc/glibc-headers/byteswap.texi: New file.
15884         * doc/glibc-headers/crypt.texi: New file.
15885         * doc/glibc-headers/endian.texi: New file.
15886         * doc/glibc-headers/envz.texi: New file.
15887         * doc/glibc-headers/err.texi: New file.
15888         * doc/glibc-headers/error.texi: New file.
15889         * doc/glibc-headers/execinfo.texi: New file.
15890         * doc/glibc-headers/fpu_control.texi: New file.
15891         * doc/glibc-headers/fstab.texi: New file.
15892         * doc/glibc-headers/fts.texi: New file.
15893         * doc/glibc-headers/getopt.texi: New file.
15894         * doc/glibc-headers/ieee754.texi: New file.
15895         * doc/glibc-headers/ifaddrs.texi: New file.
15896         * doc/glibc-headers/libintl.texi: New file.
15897         * doc/glibc-headers/mcheck.texi: New file.
15898         * doc/glibc-headers/mntent.texi: New file.
15899         * doc/glibc-headers/obstack.texi: New file.
15900         * doc/glibc-headers/paths.texi: New file.
15901         * doc/glibc-headers/printf.texi: New file.
15902         * doc/glibc-headers/pty.texi: New file.
15903         * doc/glibc-headers/resolv.texi: New file.
15904         * doc/glibc-headers/shadow.texi: New file.
15905         * doc/glibc-headers/sysexits.texi: New file.
15906         * doc/glibc-headers/ttyent.texi: New file.
15907
15908 2008-01-12  Jim Meyering  <meyering@redhat.com>
15909
15910         announce-gen: emit Gnulib's git-based version string.
15911         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
15912         New option --gnulib-version=V, where V is expected to be
15913         the output of running git describe in the gnulib directory.
15914         (get_tool_versions): Request feedback on xdelta.  I suspect it's
15915         not useful, and plan to stop publishing an xdelta file with each
15916         coreutils release.
15917
15918         * build-aux/announce-gen: Also check for lzma-compressed files.
15919
15920 2008-01-11  Bruno Haible  <bruno@clisp.org>
15921
15922         * tests/test-memmem.c (main): Increase maximum allowed time.
15923         * tests/test-strstr.c (main): Likewise.
15924
15925 2008-01-11  Bruno Haible  <bruno@clisp.org>
15926
15927         * doc/functions/memmem.texi: Add more precisions about platforms.
15928         * doc/functions/strstr.texi: Likewise.
15929
15930 2008-01-10  Eric Blake  <ebb9@byu.net>
15931
15932         * m4/strstr.m4: Delete cruft from copy-n-paste.
15933         Reported by Bruno Haible.
15934
15935 2008-01-10  Bruno Haible  <bruno@clisp.org>
15936
15937         Make c-strstr rely on strstr.
15938         * lib/c-strstr.c: Don't include str-kmp.h.
15939         (c_strstr): Define in terms of strstr.
15940         * modules/c-strstr (Files): Remove lib/str-kmp.h.
15941         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
15942
15943 2008-01-10  Bruno Haible  <bruno@clisp.org>
15944
15945         * doc/gnulib.texi (String Functions in C Locale): New section.
15946         * doc/c-ctype.texi: New file.
15947         * doc/c-strcase.texi: New file.
15948         * doc/c-strcaseeq.texi: New file.
15949         * doc/c-strcasestr.texi: New file.
15950         * doc/c-strstr.texi: New file.
15951         * doc/c-strtod.texi: New file.
15952         * doc/c-strtold.texi: New file.
15953
15954 2008-01-10  Eric Blake  <ebb9@byu.net>
15955
15956         * lib/relocatable.h: Fix a comment.
15957
15958 2008-01-10  Eric Blake  <ebb9@byu.net>
15959
15960         Share two-way algorithm.
15961         * lib/str-two-way.h: New file, merged from...
15962         * lib/memmem.c: ...here...
15963         * lib/strstr.c: ...and here.
15964         * modules/memmem (Files): Use it.
15965         * modules/strstr (Files): Likewise.
15966
15967         Avoid quadratic strstr implementations.
15968         * lib/strstr.c: New file.
15969         * m4/strstr.m4: Likewise.
15970         * modules/strstr: Likewise.
15971         * modules/strstr-tests: Likewise.
15972         * tests/test-strstr.c: Likewise.
15973         * lib/string.in.h (rpl_strstr): Declare.
15974         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
15975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
15976         * modules/string (Makefile.am): Likewise.
15977         * MODULES.html.sh (string handling): Mention new module.
15978         * doc/functions/strstr.texi (strstr): Document the bug.
15979
15980 2008-01-10  Bruno Haible  <bruno@clisp.org>
15981
15982         * lib/relocatable.h (relocate): State whether result is freshly
15983         allocated or not.
15984         * lib/relocatable.c (relocate): Return a freshly allocated string
15985         instead of a pointer to a privately held string.
15986         Reported by Sylvain Beucler <beuc@gnu.org>.
15987
15988 2008-01-10  Colin Watson  <cjwatson@debian.org>
15989
15990         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
15991         s/S_ISNLK/S_ISLNK/.
15992
15993 2008-01-09  Bruno Haible  <bruno@clisp.org>
15994
15995         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
15996         and other files.
15997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
15998         if it's only a guess.
15999         * modules/memmem: Simplify by depending on memmem-simple.
16000
16001 2008-01-09  Bruno Haible  <bruno@clisp.org>
16002
16003         Work around OpenBSD 4.0 tdelete() bug.
16004         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
16005         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
16006         macros and don't redefine the enum values.
16007         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
16008         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
16009         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
16010
16011 2008-01-09  Bruno Haible  <bruno@clisp.org>
16012
16013         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
16014         (main): Don't perform the tests if setlocale did not install a UTF-8
16015         locale. Needed on OpenBSD 4.0.
16016         * modules/wcwidth-tests (Depends-on): Add localcharset.
16017
16018 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
16021         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
16022         * NEWS: announce this.
16023         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
16024
16025 2008-01-09  Simon Josefsson  <simon@josefsson.org>
16026         and Eric Blake  <ebb9@byu.net>
16027
16028         Add memmem-simple module.
16029         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
16030         (gl_FUNC_MEMMEM): Separate performance from presence checks.
16031         * modules/memmem-simple: New file.
16032         * modules/memmem (Description): Tweak.
16033         * MODULES.html.sh (string handling): Mention new module.
16034         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
16035         addressed by memmem-simple.
16036         * NEWS: Document the difference.
16037
16038 2008-01-09  Eric Blake  <ebb9@byu.net>
16039
16040         Give gcc some memmem optimization hints.
16041         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
16042         (strcasestr): Declare as pure.
16043         * modules/memmem (Maintainer): Claim my implementation.
16044
16045 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16046
16047         Support AIX 6.1 and higher.
16048         * build-aux/config.libpath: Likewise.
16049         * build-aux/config.rpath: Likewise.
16050
16051 2008-01-08  Jim Meyering  <meyering@redhat.com>
16052             Bruno Haible  <bruno@clisp.org>
16053
16054         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
16055         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
16056         Reported by Peter Fales in
16057         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
16058
16059 2008-01-08  Bruno Haible  <bruno@clisp.org>
16060
16061         * modules/unictype/category-of (Depends-on): Add
16062         unictype/category-none.
16063         * modules/unictype/category-and-tests (Depends-on): Add
16064         unictype/category-{L,N,Lu,Nd}.
16065         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
16066         * modules/unictype/category-or-tests (Depends-on): Add
16067         unictype/category-{L,N}.
16068         * modules/unictype/category-name-tests (Depends-on): Add
16069         unictype/category-{Z,Nl}.
16070         Reported by Simon Josefsson.
16071
16072 2008-01-08  Bruno Haible  <bruno@clisp.org>
16073
16074         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
16075         convention better.
16076         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
16077         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
16078         Reported by Peter Miller <millerp@canb.auug.org.au>.
16079
16080 2008-01-08  Eric Blake  <ebb9@byu.net>
16081
16082         Rewrite memmem to guarantee linear complexity without malloc.
16083         * lib/memmem.c (memmem): Use Two-Way rather than
16084         Knuth-Morris-Pratt, to allow O(1) space usage.
16085         (critical_factorization, two_way_short_needle)
16086         (two_way_long_needle): New functions.
16087         (knuth_morris_pratt): Delete.
16088         * modules/memmem (Depends-on): No longer need malloca or stdbool.
16089         Add stdint.
16090         * tests/test-memmem.c (main): Add tests for periodic needle and
16091         sublinear performance.
16092         * doc/functions/memmem.texi (memmem): Document other deficiencies
16093         in cygwin and older glibc.
16094
16095 2008-01-08  Bruno Haible  <bruno@clisp.org>
16096
16097         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
16098         augmentation.
16099
16100 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
16101
16102         Add a configure time option: --disable-acl.
16103         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
16104         AC_ARG_ENABLE(acl).
16105
16106 2008-01-06  Simon Josefsson  <simon@josefsson.org>
16107
16108         * tests/test-localename.c: Don't include obsolete "setenv.h".
16109
16110         * modules/localename-tests (Depends-on): Need unsetenv.
16111
16112 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16113
16114         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
16115
16116 2008-01-06  Colin Watson  <cjwatson@debian.org>
16117
16118         * users.txt: Add man-db.
16119
16120 2008-01-07  Bruno Haible  <bruno@clisp.org>
16121
16122         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
16123         previous section name.
16124
16125 2008-01-07  Bruno Haible  <bruno@clisp.org>
16126
16127         * lib/progname.c (set_program_name): Don't strip off a leading
16128         "lt-" prefix outside a .libs directory.
16129         Suggested by Paul Eggert.
16130
16131 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
16132             Bruno Haible  <bruno@clisp.org>
16133
16134         Improve memory cleanup in 'relocatable' module.
16135         * lib/relocatable.h (compute_curr_prefix): Change return type to
16136         'char *'.
16137         * lib/relocatable.c (compute_curr_prefix): Change return type to
16138         'char *'. Free curr_installdir after use.
16139         (relocate): Free curr_prefix_better after use.
16140         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
16141
16142 2008-01-01  Bruno Haible  <bruno@clisp.org>
16143
16144         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
16145         failure on older glibc systems.
16146         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16147
16148 2008-01-05  Eric Blake  <ebb9@byu.net>
16149
16150         Avoid quadratic system memmem.
16151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
16152         Reported by Ralf Wildenhues.
16153
16154         Fix memmem test for mingw.
16155         * modules/memmem-tests (configure.ac): Check for alarm.
16156         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
16157         it.
16158         * doc/functions/memmem.texi: New file.
16159         * doc/gnulib.texi (Function Substitutes): Add memmem.
16160         Reported by Bruno Haible.
16161
16162 2008-01-04  Bruno Haible  <bruno@clisp.org>
16163
16164         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
16165         Require gl_HEADER_STRINGS_H_DEFAULTS, not
16166         gl_HEADER_STRING_H_DEFAULTS.
16167
16168 2008-01-04  Eric Blake  <ebb9@byu.net>
16169
16170         Shorten duration of memmem test.
16171         * tests/test-memmem.c (main): Use alarm to declare failure if test
16172         is taking too long.
16173         Reported by Ralf Wildenhues.
16174
16175 2007-12-21  Simon Josefsson  <simon@josefsson.org>
16176
16177         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
16178         string, needed by strerror.
16179
16180 2008-01-03  Colin Watson  <cjwatson@debian.org>
16181             Bruno Haible  <bruno@clisp.org>
16182
16183         * doc/gnulib-tool.texi (Localization): New section.
16184
16185 2008-01-02  Bruno Haible  <bruno@clisp.org>
16186
16187         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
16188         variables to 'unsigned char *' type.
16189         Reported by Paul Eggert.
16190
16191 2008-01-02  Jim Meyering  <jim@meyering.net>
16192
16193         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
16194
16195 2007-12-31  Jim Meyering  <jim@meyering.net>
16196
16197         Avoid use of private FTS type name.
16198         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
16199
16200 2007-12-30  Karl Berry  <karl@gnu.org>
16201
16202         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
16203         work around defect in Texinfo and/or the standalone Info browser.
16204
16205 2007-12-30  Bruno Haible  <bruno@clisp.org>
16206
16207         Unify 5 copies of the KMP code.
16208         * lib/str-kmp.h: New file.
16209         * lib/c-strcasestr.c: Include str-kmp.h.
16210         (knuth_morris_pratt): Remove function.
16211         (c_strcasestr): Update.
16212         * lib/c-strstr.c: Include str-kmp.h.
16213         (knuth_morris_pratt): Remove function.
16214         (c_strcasestr): Update.
16215         * lib/mbscasestr.c: Include str-kmp.h.
16216         (knuth_morris_pratt_unibyte): Remove function.
16217         * lib/mbsstr.c: Include str-kmp.h.
16218         (knuth_morris_pratt_unibyte): Remove function.
16219         * lib/strcasestr.c: Include str-kmp.h.
16220         (knuth_morris_pratt): Remove function.
16221         (strcasestr): Update.
16222         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
16223         * modules/c-strstr (Files): Likewise.
16224         * modules/mbscasestr (Files): Likewise.
16225         * modules/mbsstr (Files): Likewise.
16226         * modules/strcasestr (Files): Likewise.
16227         Suggested by Paul Eggert.
16228
16229 2007-12-30  Bruno Haible  <bruno@clisp.org>
16230
16231         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
16232         defined.
16233
16234 2007-12-30  Bruno Haible  <bruno@clisp.org>
16235
16236         * lib/xmalloca.h: Include xalloc.h.
16237         (xnmalloca): New macro.
16238
16239 2007-12-30  Bruno Haible  <bruno@clisp.org>
16240
16241         * lib/malloca.h (nmalloca): New macro.
16242         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
16243         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
16244         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
16245         knuth_morris_pratt_multibyte): Likewise.
16246         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
16247         knuth_morris_pratt_multibyte): Likewise.
16248         * lib/memmem.c (knuth_morris_pratt): Likewise.
16249         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
16250
16251 2007-12-25  Bruno Haible  <bruno@clisp.org>
16252
16253         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
16254         * lib/glob.c: Don't include openat.h.
16255         (link_exists2_p): Add back the code that deals with the
16256         !GLOB_ALTDIRFUNC case.
16257         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
16258         let it do the filename concatenation.
16259         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
16260         * modules/glob (Depends-on): Remove openat.
16261
16262 2007-12-31  Bruno Haible  <bruno@clisp.org>
16263
16264         * modules/dirfd (License): Change to LGPLv2+.
16265         Approved by Jim Meyering.
16266
16267 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16268
16269         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
16270         when multiplying M by sizeof (size_t).
16271
16272 2007-12-10  Martin Lambers  <marlam@marlam.de>
16273
16274         Override getpagesize on mingw.
16275         * lib/getpagesize.c: New file.
16276         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
16277         * modules/getpagesize (Files): Add lib/getpagesize.c.
16278         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
16279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16280         REPLACE_GETPAGESIZE.
16281         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
16282
16283 2007-12-25  Bruno Haible  <bruno@clisp.org>
16284
16285         * modules/localcharset (Notice): New field.
16286         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
16287         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16288
16289 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16290             Bruno Haible  <bruno@clisp.org>
16291
16292         Avoid using the syntax symbol() in formatted documentation.
16293         * MODULES.html.sh (func_module): When replacing symbol() with a
16294         hyperlink, remove the parentheses. Show an error if some remain.
16295         Recognize and render the '...' syntax.
16296         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
16297         Rework. Add paragraph about GCC's inlining.
16298         * doc/alloca.texi: Likewise.
16299         * doc/error.texi: Remove parentheses from symbol reference.
16300         * doc/gnulib-intro.texi: Likewise.
16301         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
16302         * modules/fnmatch (Description): Reword to say "the ... function".
16303         * modules/full-read (Description): Likewise.
16304         * modules/full-write (Description): Likewise.
16305         * modules/safe-read (Description): Likewise.
16306         * modules/safe-write (Description): Likewise.
16307         * modules/strchrnul (Description): Likewise.
16308         * modules/trim (Description): Likewise.
16309         * modules/error (Description): Remove parentheses from symbol
16310         references.
16311         * modules/verror (Description): Likewise.
16312         Reported by Karl Berry.
16313
16314 2007-12-25  Bruno Haible  <bruno@clisp.org>
16315
16316         Fixup after 2007-10-16 commit.
16317         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
16318
16319 2007-12-24  Bruno Haible  <bruno@clisp.org>
16320
16321         Make --enable-relocatable work with DESTDIR.
16322         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
16323         to compute installdir from destprog.
16324         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
16325         also set the RELOC_DESTDIR variable.
16326         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16327
16328 2007-12-24  Bruno Haible  <bruno@clisp.org>
16329
16330         Fix link error due to xalloc_die().
16331         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
16332         of xreadlink.
16333         * lib/relocwrapper.c: Update comments.
16334         * build-aux/install-reloc: Remove xreadlink.c from file list.
16335         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
16336         xreadlink.c.
16337         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16338
16339 2007-12-24  Bruno Haible  <bruno@clisp.org>
16340
16341         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
16342         * lib/setenv.h: Remove file.
16343         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
16344         lib/setenv.h.
16345         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
16346         (Depends-on): Add stdlib.
16347         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
16348         gl_FUNC_UNSETENV.
16349         (Include): Replace setenv.h with <stdlib.h>.
16350         * modules/unsetenv: New file.
16351         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
16352         * lib/unsetenv.c: Include <stdlib.h> first.
16353         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
16354         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
16355         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
16356         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
16357         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
16358         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
16359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
16360         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
16361         * doc/functions/unsetenv.texi: Update.
16362         * modules/xsetenv (Depends-on): Add unsetenv.
16363         * modules/getdate (Depends-on): Likewise.
16364         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
16365         * lib/xsetenv.c: Don't include setenv.h.
16366         * lib/getdate.y: Likewise.
16367         * lib/relocwrapper.c: Likewise.
16368         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
16369         (Depends-on): Add stdlib.
16370         * NEWS: Mention the changes.
16371         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16372
16373 2007-12-23  Bruno Haible  <bruno@clisp.org>
16374
16375         * lib/memmem.c (memmem): Use lowercase variable names. Tab
16376         indentation.
16377
16378 2007-12-23  Bruno Haible  <bruno@clisp.org>
16379
16380         * lib/c-strcasestr.c: Add more comments.
16381         * lib/c-strstr.c: Likewise.
16382         * lib/mbscasestr.c: Likewise.
16383         * lib/mbsstr.c: Likewise.
16384         * lib/strcasestr.c: Likewise.
16385         * lib/memmem.c: Likewise.
16386
16387 2007-12-23  Bruno Haible  <bruno@clisp.org>
16388
16389         * tests/test-memmem.c: Include <string.h> first.
16390
16391 2007-12-22  Bruno Haible  <bruno@clisp.org>
16392
16393         * gnulib-tool (func_create_testdir): Change $auxdir while generating
16394         the contents of $testsbase.
16395         Reported by Ralf Wildenhues.
16396
16397 2007-12-22  Bruno Haible  <bruno@clisp.org>
16398
16399         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
16400         two variables local_ldadd_before, local_ldadd_last.
16401
16402 2007-12-20  Eric Blake  <ebb9@byu.net>
16403
16404         Work around circular library issue when cross-compiling.
16405         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
16406         that progname.o does not need to pull in rpl_memcmp.
16407
16408 2007-12-19  Eric Blake  <ebb9@byu.net>
16409
16410         Fix memmem to avoid O(n^2) worst-case complexity.
16411         * lib/memmem.c (knuth_morris_pratt): New function.
16412         (memmem): Use it if first few naive iterations fail.
16413         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
16414         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
16415         * modules/memchr (License): Likewise.
16416         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
16417         malloca.
16418         * tests/test-memmem.c: Rewrite, borrowing ideas from
16419         test-mbsstr1.c; the old version wouldn't even compile!
16420         * modules/memmem-tests: New file.
16421         * lib/string.in.h (rpl_memmem): Add declaration.
16422         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
16423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
16424         REPLACE_MEMMEM.
16425
16426 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16427
16428         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
16429         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
16430         before any system include files, and undef after them all.  This
16431         should fix a problem on VMS reported by John E. Malmberg in
16432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
16433
16434 2007-12-17  Eric Blake  <ebb9@byu.net>
16435
16436         Revert addition of verify, for BSD/OS.
16437         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
16438         can't handle large files, for the sake of obsolete platforms.
16439         * modules/fseeko (Depends-on): Remove verify.
16440         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
16441         * doc/functions/ftello.texi (ftello): Likewise.
16442         * doc/functions/fgetpos.texi (fgetpos): Likewise.
16443         Reported by Larry Jones.
16444
16445 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
16446
16447         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
16448         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
16449
16450 2007-12-17  Jim Meyering  <meyering@redhat.com>
16451
16452         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
16453         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
16454         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
16455         * modules/getcwd (Depends-on): Add openat.
16456         Reported by Petr Salinger.
16457
16458 2007-12-17  Bruno Haible  <bruno@clisp.org>
16459
16460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
16461         avoid a segmentation fault of the configure test on x86_64 systems.
16462
16463 2007-12-15  Jim Meyering  <meyering@redhat.com>
16464
16465         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
16466
16467 2007-12-13  Eric Blake  <ebb9@byu.net>
16468
16469         Another fseek test.
16470         * tests/test-fseek.c (main): Also test ungetc handling.
16471         * tests/test-fseeko.c (main): Likewise.
16472         * modules/fseeko (Depends-on): Add verify.
16473         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
16474         large.
16475         Reported by Larry Jones.
16476
16477         Fix fseeko on mingw.
16478         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
16479         seek.
16480
16481         Beef up fseek tests.
16482         * tests/test-fseek.c (main): Also test eof handling.
16483         * tests/test-fseeko.c (main): Likewise.
16484         Reported by Larry Jones.
16485
16486 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
16487
16488         Fix fseeko on BSD-based platforms.
16489         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
16490         successful seek.
16491
16492 2007-12-12  Eric Blake  <ebb9@byu.net>
16493
16494         Allow circular dependency of separate libtests.a
16495         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
16496         when use_libtests.
16497
16498 2007-12-11  Eric Blake  <ebb9@byu.net>
16499
16500         Fix bug with -0.0L in previous patch.
16501         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
16502         * tests/test-isnan.c (main): Also test on zeroes.
16503         * tests/test-isnanf.c (main): Likewise.
16504         * tests/test-isnanl.h (main): Likewise.
16505
16506         Detect pseudo-denormals on x86 even when cross-compiling.
16507         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
16508         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
16509         invalid bit patterns that happen to satisfy ==.
16510
16511         Avoid link failures with separate libtests.a.
16512         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
16513         last, to satisfy circular dependencies.
16514
16515 2007-12-11  Eric Blake  <ebb9@byu.net>
16516         and Bruno Haible  <bruno@clisp.org>
16517
16518         Fix OpenBSD 4.0 <float.h> handling of long double.
16519         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
16520         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
16521         * doc/headers/float.texi (float.h): Document OpenBSD bug.
16522
16523 2007-12-11  Jim Meyering  <meyering@redhat.com>
16524
16525         * users.txt: Add libvirt.
16526
16527         Support versions of autoconf prior to 2.59c.
16528         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
16529         if it is not already defined.
16530
16531 2007-12-09  Bruno Haible  <bruno@clisp.org>
16532
16533         Let 'gnulib-tool --import' collect sources needed for the tests in
16534         tests/ rather than in lib/.
16535         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
16536         argument. If true, add rules to generate libtests.a, and put libtests.a
16537         into $(LDADD). Consider source files in subdirectories and set
16538         uses_subdirs.
16539         (func_emit_initmacro_start, func_emit_initmacro_end,
16540         func_emit_initmacro_done): Pass all arguments explicitly.
16541         (func_import): Determine two module lists main_modules,
16542         testsrelated_modules. Determine use_libtests. Determine two variables
16543         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
16544         instead of just sed_transform_lib_file. Determine two variables
16545         main_files and testsrelated_files. Compute 'files' as the union of
16546         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
16547         func_add_or_update. In the generated gnulib-comp.m4, collect the
16548         object files for tests/ in different variables than those for lib/.
16549         Substitute LIBTESTS_LIBDEPS.
16550         (func_create_testdir): Combine the uses_subdirs results from
16551         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
16552
16553 2007-12-09  Bruno Haible  <bruno@clisp.org>
16554
16555         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
16556         the build-aux directory.
16557
16558 2007-12-09  Bruno Haible  <bruno@clisp.org>
16559
16560         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
16561         introduced on 2006-09-09.
16562
16563 2007-12-07  Jim Meyering  <meyering@redhat.com>
16564
16565         Let these macros work also with autoconf-2.59.
16566         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
16567         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
16568         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16569
16570 2007-12-06  Jim Meyering  <meyering@redhat.com>
16571
16572         Avoid a configure-time syntax error in gl_FUNC_ACL.
16573         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
16574         function in each branch, before testing the cache variable.
16575
16576 2007-12-04  Eric Blake  <ebb9@byu.net>
16577
16578         Make scripts executable.
16579         * build-aux/config.guess: Add execute permissions.
16580         * build-aux/config.sub: Likewise.
16581         * build-aux/gendocs.sh: Likewise.
16582
16583         Fix frexp on mingw.
16584         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
16585         cross-compiling.
16586         * doc/functions/frexp.texi (frexp): Document the bug.
16587
16588         Make cygwin fseeko check more reliable.
16589         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
16590         version numbers, rather than unrelated feature check.
16591         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
16592         * doc/functions/ftello.texi (ftello): Likewise.
16593         Reported by Bruno Haible.
16594
16595         * m4/strerror.m4: Bump version number.
16596
16597 2007-12-03  Bruno Haible  <bruno@clisp.org>
16598
16599         * doc/functions/mprotect.texi: Mention the mingw problem.
16600
16601 2007-12-03  Eric Blake  <ebb9@byu.net>
16602
16603         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
16604         REPLACE_STRERROR is initialized before this macro.
16605
16606 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16607
16608         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
16609         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
16610         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
16611         put -lsec in even for programs other than 'ls'.  This fixes a problem
16612         for gettext reported by Bruno Haible in
16613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
16614         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
16615         Add support for Solaris 10.  This isn't efficient, but should get the
16616         job done for now.
16617
16618 2007-12-03  James Youngman  <jay@gnu.org>
16619
16620         * doc/regexprops-generic.texi: change "an close-group" to "a
16621         close-group" and "illegal" to "not allowed".
16622
16623 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16624
16625         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
16626         pr_byname.h. Needed for the rare case when the maintainer has done
16627         "make maintainer-clean" in the source directory and then attempts a
16628         build outside the source directory.
16629         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
16630         scripts_byname.h.
16631
16632 2007-12-02  Martin Lambers <marlam@marlam.de>
16633             Bruno Haible  <bruno@clisp.org>
16634
16635         * lib/getpagesize.h: Remove file.
16636         * lib/unistd.in.h: Include declaration of getpagesize here.
16637         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
16638         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
16639         HAVE_SYS_PARAM_H.
16640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
16641         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16642         * modules/getpagesize (Files): Remove lib/getpagesize.h.
16643         (Depends-on): Add unistd.
16644         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16645         (Include): Use <unistd.h> instead of getpagesize.h.
16646         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
16647         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16648         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
16649         gl_GETPAGESIZE invocation, already handled by module dependency.
16650         * lib/pagealign_alloc.c: Don't include getpagesize.h.
16651
16652 2007-12-02  Bruno Haible  <bruno@clisp.org>
16653
16654         * modules/strings-tests: New file.
16655         * tests/test-strings.c: New file.
16656
16657         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
16658         * lib/strings.in.h: New file.
16659         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
16660         * m4/strings_h.m4: New file.
16661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
16662         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
16663         * modules/strings: New file.
16664         * modules/string (Makefile.am): Update.
16665         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
16666         Reported by Karl Berry.
16667
16668 2007-12-01  Eric Blake  <ebb9@byu.net>
16669
16670         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
16671         accomodate fix in cygwin 1.5.25.
16672
16673 2007-12-01  Jim Meyering  <meyering@redhat.com>
16674
16675         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
16676         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
16677         that would inhibit utf8-optimization of a regexp containing line-
16678         or buffer-anchors, e.g., `^', `$'.
16679
16680 2007-11-30  Bruno Haible  <bruno@clisp.org>
16681
16682         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
16683         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
16684         glthread_recursive_lock_init.
16685         * lib/lock.c (glthread_recursive_lock_init)
16686         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
16687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16688
16689 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16690
16691         New function qset_acl, like set_acl but with syscall semantics.
16692         * lib/acl.h (qset_acl): New decl.
16693         * lib/acl.c (qset_acl): New function.
16694         (set_acl): Use new function.  Use more-consistent diagnostics.
16695
16696 2007-11-28  Jim Meyering  <meyering@redhat.com>
16697
16698         * modules/physmem (License): Change from GPL to LGPLv2+.
16699
16700 2007-11-26  Bruno Haible  <bruno@clisp.org>
16701
16702         * lib/vasnprintf.c (decode_long_double): Don't abort if the
16703         'long double' type has excess precision.
16704         Reported by Jim Meyering in
16705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
16706
16707 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16708
16709         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
16710         Sync from <http://gnu.org/licenses>.
16711         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
16712         with license text from same location.
16713         * doc/maintain.texi, doc/standards.texi:  Sync from
16714         <http://savannah.gnu.org/projects/gnustandards>.
16715
16716 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
16717         and Jim Meyering  <meyering@redhat.com>
16718
16719         Adjust getdate' grammar to accept a slightly more regular language.
16720         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
16721         Before, the former was rejected.
16722         * lib/getdate.y (digits_to_date_time): New function, factored
16723         out of ...
16724         (number): ...here.  Just call digits_to_date_time.
16725         (hybrid): New non-terminal to handle an <unsigned number,
16726         signed relative offset> sequence consistently.
16727
16728 2007-11-18  Jim Meyering  <meyering@redhat.com>
16729
16730         Pull my changes from coreutils:
16731         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
16732         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
16733         use of $gnulib_tool_option_extras, so that it's separated from the
16734         preceding argument.
16735
16736         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
16737         * build-aux/bootstrap (cp_mark_as_generated): Create any required
16738         parent destination directories before copying a file into place.
16739
16740 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16741
16742         bootstrap: work also with 4-argument variant of AC_INIT
16743         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
16744
16745 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16746
16747         Port test-getaddrinfo to Solaris.
16748         Problem reported by Bruno Haible in
16749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
16750         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
16751         explanation of setting 'hints'.
16752         Don't reject an implementation merely because it returns EAI_SERVICE.
16753         (EAI_SERVICE): Define to 0 if not defined.
16754
16755 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16756
16757         The license of gnu-make and posix-shell is now "GPLed build tool".
16758         * modules/gnu-make (License): Likewise.
16759         * modules/posix-shell (License): Likewise.
16760
16761         New module posix-shell, for determining a POSIX shell
16762         or perhaps something that is close enough to a POSIX shell.
16763         * m4/posix-shell.m4: New file.
16764         * modules/posix-shell: New file.
16765
16766         * MODULES.html.sh: Mention new module.
16767
16768         New module gnu-make, for determining whether we're using GNU Make.
16769         * m4/gnu-make.m4: New file.
16770         * modules/gnu-make: New file.
16771         * MODULES.html.sh: Mention new module.
16772
16773 2007-11-14  Jim Meyering  <meyering@redhat.com>
16774
16775         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
16776         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
16777         use this macro to create a function _definition_.
16778         Remove useless "#undef ARGMATCH_DIE".
16779
16780 2007-11-14  Bruno Haible  <bruno@clisp.org>
16781
16782         * lib/config.charset: Update for OpenBSD 4.1.
16783         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
16784
16785 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16786
16787         Document 64-bit #if problems in stdint.texi.
16788         * doc/headers/stdint.texi (stdint.h): Mention problems with
16789         64-bit-#if, and how to work around them.
16790
16791         Don't insist on 'long long int' support in the preprocessor.  It
16792         breaks too many things.  For example, PRIdMAX still uses a 'long
16793         long int' format with the latest Sun compiler, even though
16794         HAVE_LONG_LONG_INT isn't defined due to that compiler's
16795         preprocessor problem.  This causes the latest coreutils to dump
16796         core on Solaris 10 sparc with the Sun C compiler.
16797         Instead, fix the 2007-10-16 problem in a different way, by evaluating
16798         the troublesome expressions at configure-time, not at #if-time.
16799         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
16800         preprocessor.
16801         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
16802         compile-time C checks, done at 'configure'-time.
16803         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
16804         * modules/inttypes (Makefile): Substitute the new symbols that
16805         gl_INTTYPES_H now generates.
16806         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
16807
16808 2007-11-12  Bruno Haible  <bruno@clisp.org>
16809
16810         Tests for Unicode character classification functions.
16811
16812         * modules/unictype/bidicategory-byname-tests: New file.
16813         * modules/unictype/bidicategory-name-tests: New file.
16814         * modules/unictype/bidicategory-of-tests: New file.
16815         * modules/unictype/bidicategory-test-tests: New file.
16816         * modules/unictype/block-list-tests: New file.
16817         * modules/unictype/block-of-tests: New file.
16818         * modules/unictype/block-test-tests: New file.
16819         * modules/unictype/category-C-tests: New file.
16820         * modules/unictype/category-Cc-tests: New file.
16821         * modules/unictype/category-Cf-tests: New file.
16822         * modules/unictype/category-Cn-tests: New file.
16823         * modules/unictype/category-Co-tests: New file.
16824         * modules/unictype/category-Cs-tests: New file.
16825         * modules/unictype/category-L-tests: New file.
16826         * modules/unictype/category-Ll-tests: New file.
16827         * modules/unictype/category-Lm-tests: New file.
16828         * modules/unictype/category-Lo-tests: New file.
16829         * modules/unictype/category-Lt-tests: New file.
16830         * modules/unictype/category-Lu-tests: New file.
16831         * modules/unictype/category-M-tests: New file.
16832         * modules/unictype/category-Mc-tests: New file.
16833         * modules/unictype/category-Me-tests: New file.
16834         * modules/unictype/category-Mn-tests: New file.
16835         * modules/unictype/category-N-tests: New file.
16836         * modules/unictype/category-Nd-tests: New file.
16837         * modules/unictype/category-Nl-tests: New file.
16838         * modules/unictype/category-No-tests: New file.
16839         * modules/unictype/category-P-tests: New file.
16840         * modules/unictype/category-Pc-tests: New file.
16841         * modules/unictype/category-Pd-tests: New file.
16842         * modules/unictype/category-Pe-tests: New file.
16843         * modules/unictype/category-Pf-tests: New file.
16844         * modules/unictype/category-Pi-tests: New file.
16845         * modules/unictype/category-Po-tests: New file.
16846         * modules/unictype/category-Ps-tests: New file.
16847         * modules/unictype/category-S-tests: New file.
16848         * modules/unictype/category-Sc-tests: New file.
16849         * modules/unictype/category-Sk-tests: New file.
16850         * modules/unictype/category-Sm-tests: New file.
16851         * modules/unictype/category-So-tests: New file.
16852         * modules/unictype/category-Z-tests: New file.
16853         * modules/unictype/category-Zl-tests: New file.
16854         * modules/unictype/category-Zp-tests: New file.
16855         * modules/unictype/category-Zs-tests: New file.
16856         * modules/unictype/category-and-not-tests: New file.
16857         * modules/unictype/category-and-tests: New file.
16858         * modules/unictype/category-byname-tests: New file.
16859         * modules/unictype/category-name-tests: New file.
16860         * modules/unictype/category-none-tests: New file.
16861         * modules/unictype/category-of-tests: New file.
16862         * modules/unictype/category-or-tests: New file.
16863         * modules/unictype/category-test-withtable-tests: New file.
16864         * modules/unictype/combining-class-tests: New file.
16865         * modules/unictype/ctype-alnum-tests: New file.
16866         * modules/unictype/ctype-alpha-tests: New file.
16867         * modules/unictype/ctype-blank-tests: New file.
16868         * modules/unictype/ctype-cntrl-tests: New file.
16869         * modules/unictype/ctype-digit-tests: New file.
16870         * modules/unictype/ctype-graph-tests: New file.
16871         * modules/unictype/ctype-lower-tests: New file.
16872         * modules/unictype/ctype-print-tests: New file.
16873         * modules/unictype/ctype-punct-tests: New file.
16874         * modules/unictype/ctype-space-tests: New file.
16875         * modules/unictype/ctype-upper-tests: New file.
16876         * modules/unictype/ctype-xdigit-tests: New file.
16877         * modules/unictype/decimal-digit-tests: New file.
16878         * modules/unictype/digit-tests: New file.
16879         * modules/unictype/mirror-tests: New file.
16880         * modules/unictype/numeric-tests: New file.
16881         * modules/unictype/property-alphabetic-tests: New file.
16882         * modules/unictype/property-ascii-hex-digit-tests: New file.
16883         * modules/unictype/property-bidi-arabic-digit-tests: New file.
16884         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
16885         * modules/unictype/property-bidi-block-separator-tests: New file.
16886         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
16887         * modules/unictype/property-bidi-common-separator-tests: New file.
16888         * modules/unictype/property-bidi-control-tests: New file.
16889         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
16890         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
16891         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
16892         * modules/unictype/property-bidi-european-digit-tests: New file.
16893         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
16894         * modules/unictype/property-bidi-left-to-right-tests: New file.
16895         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
16896         * modules/unictype/property-bidi-other-neutral-tests: New file.
16897         * modules/unictype/property-bidi-pdf-tests: New file.
16898         * modules/unictype/property-bidi-segment-separator-tests: New file.
16899         * modules/unictype/property-bidi-whitespace-tests: New file.
16900         * modules/unictype/property-byname-tests: New file.
16901         * modules/unictype/property-combining-tests: New file.
16902         * modules/unictype/property-composite-tests: New file.
16903         * modules/unictype/property-currency-symbol-tests: New file.
16904         * modules/unictype/property-dash-tests: New file.
16905         * modules/unictype/property-decimal-digit-tests: New file.
16906         * modules/unictype/property-default-ignorable-code-point-tests: New file.
16907         * modules/unictype/property-deprecated-tests: New file.
16908         * modules/unictype/property-diacritic-tests: New file.
16909         * modules/unictype/property-extender-tests: New file.
16910         * modules/unictype/property-format-control-tests: New file.
16911         * modules/unictype/property-grapheme-base-tests: New file.
16912         * modules/unictype/property-grapheme-extend-tests: New file.
16913         * modules/unictype/property-grapheme-link-tests: New file.
16914         * modules/unictype/property-hex-digit-tests: New file.
16915         * modules/unictype/property-hyphen-tests: New file.
16916         * modules/unictype/property-id-continue-tests: New file.
16917         * modules/unictype/property-id-start-tests: New file.
16918         * modules/unictype/property-ideographic-tests: New file.
16919         * modules/unictype/property-ids-binary-operator-tests: New file.
16920         * modules/unictype/property-ids-trinary-operator-tests: New file.
16921         * modules/unictype/property-ignorable-control-tests: New file.
16922         * modules/unictype/property-iso-control-tests: New file.
16923         * modules/unictype/property-join-control-tests: New file.
16924         * modules/unictype/property-left-of-pair-tests: New file.
16925         * modules/unictype/property-line-separator-tests: New file.
16926         * modules/unictype/property-logical-order-exception-tests: New file.
16927         * modules/unictype/property-lowercase-tests: New file.
16928         * modules/unictype/property-math-tests: New file.
16929         * modules/unictype/property-non-break-tests: New file.
16930         * modules/unictype/property-not-a-character-tests: New file.
16931         * modules/unictype/property-numeric-tests: New file.
16932         * modules/unictype/property-other-alphabetic-tests: New file.
16933         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
16934         * modules/unictype/property-other-grapheme-extend-tests: New file.
16935         * modules/unictype/property-other-id-continue-tests: New file.
16936         * modules/unictype/property-other-id-start-tests: New file.
16937         * modules/unictype/property-other-lowercase-tests: New file.
16938         * modules/unictype/property-other-math-tests: New file.
16939         * modules/unictype/property-other-uppercase-tests: New file.
16940         * modules/unictype/property-paired-punctuation-tests: New file.
16941         * modules/unictype/property-paragraph-separator-tests: New file.
16942         * modules/unictype/property-pattern-syntax-tests: New file.
16943         * modules/unictype/property-pattern-white-space-tests: New file.
16944         * modules/unictype/property-private-use-tests: New file.
16945         * modules/unictype/property-punctuation-tests: New file.
16946         * modules/unictype/property-quotation-mark-tests: New file.
16947         * modules/unictype/property-radical-tests: New file.
16948         * modules/unictype/property-sentence-terminal-tests: New file.
16949         * modules/unictype/property-soft-dotted-tests: New file.
16950         * modules/unictype/property-space-tests: New file.
16951         * modules/unictype/property-terminal-punctuation-tests: New file.
16952         * modules/unictype/property-test-tests: New file.
16953         * modules/unictype/property-titlecase-tests: New file.
16954         * modules/unictype/property-unassigned-code-value-tests: New file.
16955         * modules/unictype/property-unified-ideograph-tests: New file.
16956         * modules/unictype/property-uppercase-tests: New file.
16957         * modules/unictype/property-variation-selector-tests: New file.
16958         * modules/unictype/property-white-space-tests: New file.
16959         * modules/unictype/property-xid-continue-tests: New file.
16960         * modules/unictype/property-xid-start-tests: New file.
16961         * modules/unictype/property-zero-width-tests: New file.
16962         * modules/unictype/scripts-tests: New file.
16963         * modules/unictype/syntax-c-ident-tests: New file.
16964         * modules/unictype/syntax-c-whitespace-tests: New file.
16965         * modules/unictype/syntax-java-ident-tests: New file.
16966         * modules/unictype/syntax-java-whitespace-tests: New file.
16967         * tests/unictype/test-bidi_byname.c: New file.
16968         * tests/unictype/test-bidi_name.c: New file.
16969         * tests/unictype/test-bidi_of.c: New file.
16970         * tests/unictype/test-bidi_test.c: New file.
16971         * tests/unictype/test-block_list.c: New file.
16972         * tests/unictype/test-block_of.c: New file.
16973         * tests/unictype/test-block_test.c: New file.
16974         * tests/unictype/test-categ_and.c: New file.
16975         * tests/unictype/test-categ_and_not.c: New file.
16976         * tests/unictype/test-categ_byname.c: New file.
16977         * tests/unictype/test-categ_name.c: New file.
16978         * tests/unictype/test-categ_none.c: New file.
16979         * tests/unictype/test-categ_of.c: New file.
16980         * tests/unictype/test-categ_or.c: New file.
16981         * tests/unictype/test-categ_test_withtable.c: New file.
16982         * tests/unictype/test-combining.c: New file.
16983         * tests/unictype/test-decdigit.c: New file.
16984         * tests/unictype/test-digit.c: New file.
16985         * tests/unictype/test-mirror.c: New file.
16986         * tests/unictype/test-numeric.c: New file.
16987         * tests/unictype/test-pr_byname.c: New file.
16988         * tests/unictype/test-pr_test.c: New file.
16989         * tests/unictype/test-predicate-part1.h: New file.
16990         * tests/unictype/test-predicate-part2.h: New file.
16991         * tests/unictype/test-scripts.c: New file.
16992         * tests/unictype/test-sy_c_ident.c: New file.
16993         * tests/unictype/test-sy_java_ident.c: New file.
16994
16995         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
16996         for Unicode 5.0.0.
16997         * tests/unictype/test-categ_Cc.c: Likewise.
16998         * tests/unictype/test-categ_Cf.c: Likewise.
16999         * tests/unictype/test-categ_Cn.c: Likewise.
17000         * tests/unictype/test-categ_Co.c: Likewise.
17001         * tests/unictype/test-categ_Cs.c: Likewise.
17002         * tests/unictype/test-categ_L.c: Likewise.
17003         * tests/unictype/test-categ_Ll.c: Likewise.
17004         * tests/unictype/test-categ_Lm.c: Likewise.
17005         * tests/unictype/test-categ_Lo.c: Likewise.
17006         * tests/unictype/test-categ_Lt.c: Likewise.
17007         * tests/unictype/test-categ_Lu.c: Likewise.
17008         * tests/unictype/test-categ_M.c: Likewise.
17009         * tests/unictype/test-categ_Mc.c: Likewise.
17010         * tests/unictype/test-categ_Me.c: Likewise.
17011         * tests/unictype/test-categ_Mn.c: Likewise.
17012         * tests/unictype/test-categ_N.c: Likewise.
17013         * tests/unictype/test-categ_Nd.c: Likewise.
17014         * tests/unictype/test-categ_Nl.c: Likewise.
17015         * tests/unictype/test-categ_No.c: Likewise.
17016         * tests/unictype/test-categ_P.c: Likewise.
17017         * tests/unictype/test-categ_Pc.c: Likewise.
17018         * tests/unictype/test-categ_Pd.c: Likewise.
17019         * tests/unictype/test-categ_Pe.c: Likewise.
17020         * tests/unictype/test-categ_Pf.c: Likewise.
17021         * tests/unictype/test-categ_Pi.c: Likewise.
17022         * tests/unictype/test-categ_Po.c: Likewise.
17023         * tests/unictype/test-categ_Ps.c: Likewise.
17024         * tests/unictype/test-categ_S.c: Likewise.
17025         * tests/unictype/test-categ_Sc.c: Likewise.
17026         * tests/unictype/test-categ_Sk.c: Likewise.
17027         * tests/unictype/test-categ_Sm.c: Likewise.
17028         * tests/unictype/test-categ_So.c: Likewise.
17029         * tests/unictype/test-categ_Z.c: Likewise.
17030         * tests/unictype/test-categ_Zl.c: Likewise.
17031         * tests/unictype/test-categ_Zp.c: Likewise.
17032         * tests/unictype/test-categ_Zs.c: Likewise.
17033         * tests/unictype/test-ctype_alnum.c: Likewise.
17034         * tests/unictype/test-ctype_alpha.c: Likewise.
17035         * tests/unictype/test-ctype_blank.c: Likewise.
17036         * tests/unictype/test-ctype_cntrl.c: Likewise.
17037         * tests/unictype/test-ctype_digit.c: Likewise.
17038         * tests/unictype/test-ctype_graph.c: Likewise.
17039         * tests/unictype/test-ctype_lower.c: Likewise.
17040         * tests/unictype/test-ctype_print.c: Likewise.
17041         * tests/unictype/test-ctype_punct.c: Likewise.
17042         * tests/unictype/test-ctype_space.c: Likewise.
17043         * tests/unictype/test-ctype_upper.c: Likewise.
17044         * tests/unictype/test-ctype_xdigit.c: Likewise.
17045         * tests/unictype/test-decdigit.h: Likewise.
17046         * tests/unictype/test-digit.h: Likewise.
17047         * tests/unictype/test-numeric.h: Likewise.
17048         * tests/unictype/test-pr_alphabetic.c: Likewise.
17049         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
17050         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17051         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17052         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
17053         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17054         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
17055         * tests/unictype/test-pr_bidi_control.c: Likewise.
17056         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
17057         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
17058         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17059         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17060         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17061         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17062         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17063         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17064         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
17065         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
17066         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
17067         * tests/unictype/test-pr_combining.c: Likewise.
17068         * tests/unictype/test-pr_composite.c: Likewise.
17069         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17070         * tests/unictype/test-pr_dash.c: Likewise.
17071         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17072         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
17073         * tests/unictype/test-pr_deprecated.c: Likewise.
17074         * tests/unictype/test-pr_diacritic.c: Likewise.
17075         * tests/unictype/test-pr_extender.c: Likewise.
17076         * tests/unictype/test-pr_format_control.c: Likewise.
17077         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17078         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17079         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17080         * tests/unictype/test-pr_hex_digit.c: Likewise.
17081         * tests/unictype/test-pr_hyphen.c: Likewise.
17082         * tests/unictype/test-pr_id_continue.c: Likewise.
17083         * tests/unictype/test-pr_id_start.c: Likewise.
17084         * tests/unictype/test-pr_ideographic.c: Likewise.
17085         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
17086         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
17087         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17088         * tests/unictype/test-pr_iso_control.c: Likewise.
17089         * tests/unictype/test-pr_join_control.c: Likewise.
17090         * tests/unictype/test-pr_left_of_pair.c: Likewise.
17091         * tests/unictype/test-pr_line_separator.c: Likewise.
17092         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17093         * tests/unictype/test-pr_lowercase.c: Likewise.
17094         * tests/unictype/test-pr_math.c: Likewise.
17095         * tests/unictype/test-pr_non_break.c: Likewise.
17096         * tests/unictype/test-pr_not_a_character.c: Likewise.
17097         * tests/unictype/test-pr_numeric.c: Likewise.
17098         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17099         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
17100         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
17101         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17102         * tests/unictype/test-pr_other_id_start.c: Likewise.
17103         * tests/unictype/test-pr_other_lowercase.c: Likewise.
17104         * tests/unictype/test-pr_other_math.c: Likewise.
17105         * tests/unictype/test-pr_other_uppercase.c: Likewise.
17106         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
17107         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
17108         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
17109         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
17110         * tests/unictype/test-pr_private_use.c: Likewise.
17111         * tests/unictype/test-pr_punctuation.c: Likewise.
17112         * tests/unictype/test-pr_quotation_mark.c: Likewise.
17113         * tests/unictype/test-pr_radical.c: Likewise.
17114         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17115         * tests/unictype/test-pr_soft_dotted.c: Likewise.
17116         * tests/unictype/test-pr_space.c: Likewise.
17117         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17118         * tests/unictype/test-pr_titlecase.c: Likewise.
17119         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17120         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17121         * tests/unictype/test-pr_uppercase.c: Likewise.
17122         * tests/unictype/test-pr_variation_selector.c: Likewise.
17123         * tests/unictype/test-pr_white_space.c: Likewise.
17124         * tests/unictype/test-pr_xid_continue.c: Likewise.
17125         * tests/unictype/test-pr_xid_start.c: Likewise.
17126         * tests/unictype/test-pr_zero_width.c: Likewise.
17127         * tests/unictype/test-sy_c_whitespace.c: Likewise.
17128         * tests/unictype/test-sy_java_whitespace.c: Likewise.
17129
17130 2007-11-12  Bruno Haible  <bruno@clisp.org>
17131
17132         Unicode character classification functions.
17133         * lib/unictype.h: New file.
17134         * modules/unictype/base: New file.
17135         * modules/unictype/category-L: New file.
17136         * modules/unictype/category-Lu: New file.
17137         * modules/unictype/category-Ll: New file.
17138         * modules/unictype/category-Lt: New file.
17139         * modules/unictype/category-Lm: New file.
17140         * modules/unictype/category-Lo: New file.
17141         * modules/unictype/category-M: New file.
17142         * modules/unictype/category-Mn: New file.
17143         * modules/unictype/category-Mc: New file.
17144         * modules/unictype/category-Me: New file.
17145         * modules/unictype/category-N: New file.
17146         * modules/unictype/category-Nd: New file.
17147         * modules/unictype/category-Nl: New file.
17148         * modules/unictype/category-No: New file.
17149         * modules/unictype/category-P: New file.
17150         * modules/unictype/category-Pc: New file.
17151         * modules/unictype/category-Pd: New file.
17152         * modules/unictype/category-Ps: New file.
17153         * modules/unictype/category-Pe: New file.
17154         * modules/unictype/category-Pi: New file.
17155         * modules/unictype/category-Pf: New file.
17156         * modules/unictype/category-Po: New file.
17157         * modules/unictype/category-S: New file.
17158         * modules/unictype/category-Sm: New file.
17159         * modules/unictype/category-Sc: New file.
17160         * modules/unictype/category-Sk: New file.
17161         * modules/unictype/category-So: New file.
17162         * modules/unictype/category-Z: New file.
17163         * modules/unictype/category-Zs: New file.
17164         * modules/unictype/category-Zl: New file.
17165         * modules/unictype/category-Zp: New file.
17166         * modules/unictype/category-C: New file.
17167         * modules/unictype/category-Cc: New file.
17168         * modules/unictype/category-Cf: New file.
17169         * modules/unictype/category-Cs: New file.
17170         * modules/unictype/category-Co: New file.
17171         * modules/unictype/category-Cn: New file.
17172         * modules/unictype/category-or: New file.
17173         * modules/unictype/category-of: New file.
17174         * modules/unictype/category-test: New file.
17175         * modules/unictype/category-test-withtable: New file.
17176         * modules/unictype/category-byname: New file.
17177         * modules/unictype/category-none: New file.
17178         * modules/unictype/category-and: New file.
17179         * modules/unictype/category-and-not: New file.
17180         * modules/unictype/category-name: New file.
17181         * modules/unictype/combining-class: New file.
17182         * modules/unictype/category-all: New file.
17183         * modules/unictype/bidicategory-all: New file.
17184         * modules/unictype/bidicategory-byname: New file.
17185         * modules/unictype/bidicategory-name: New file.
17186         * modules/unictype/bidicategory-of: New file.
17187         * modules/unictype/bidicategory-test: New file.
17188         * modules/unictype/decimal-digit: New file.
17189         * modules/unictype/digit: New file.
17190         * modules/unictype/numeric: New file.
17191         * modules/unictype/mirror: New file.
17192         * modules/unictype/property-white-space: New file.
17193         * modules/unictype/property-alphabetic: New file.
17194         * modules/unictype/property-other-alphabetic: New file.
17195         * modules/unictype/property-not-a-character: New file.
17196         * modules/unictype/property-default-ignorable-code-point: New file.
17197         * modules/unictype/property-other-default-ignorable-code-point: New
17198         file.
17199         * modules/unictype/property-deprecated: New file.
17200         * modules/unictype/property-logical-order-exception: New file.
17201         * modules/unictype/property-variation-selector: New file.
17202         * modules/unictype/property-private-use: New file.
17203         * modules/unictype/property-unassigned-code-value: New file.
17204         * modules/unictype/property-uppercase: New file.
17205         * modules/unictype/property-other-uppercase: New file.
17206         * modules/unictype/property-lowercase: New file.
17207         * modules/unictype/property-other-lowercase: New file.
17208         * modules/unictype/property-titlecase: New file.
17209         * modules/unictype/property-soft-dotted: New file.
17210         * modules/unictype/property-id-start: New file.
17211         * modules/unictype/property-other-id-start: New file.
17212         * modules/unictype/property-id-continue: New file.
17213         * modules/unictype/property-other-id-continue: New file.
17214         * modules/unictype/property-xid-start: New file.
17215         * modules/unictype/property-xid-continue: New file.
17216         * modules/unictype/property-pattern-white-space: New file.
17217         * modules/unictype/property-pattern-syntax: New file.
17218         * modules/unictype/property-join-control: New file.
17219         * modules/unictype/property-grapheme-base: New file.
17220         * modules/unictype/property-grapheme-extend: New file.
17221         * modules/unictype/property-other-grapheme-extend: New file.
17222         * modules/unictype/property-grapheme-link: New file.
17223         * modules/unictype/property-bidi-control: New file.
17224         * modules/unictype/property-bidi-left-to-right: New file.
17225         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
17226         * modules/unictype/property-bidi-arabic-right-to-left: New file.
17227         * modules/unictype/property-bidi-european-digit: New file.
17228         * modules/unictype/property-bidi-eur-num-separator: New file.
17229         * modules/unictype/property-bidi-eur-num-terminator: New file.
17230         * modules/unictype/property-bidi-arabic-digit: New file.
17231         * modules/unictype/property-bidi-common-separator: New file.
17232         * modules/unictype/property-bidi-block-separator: New file.
17233         * modules/unictype/property-bidi-segment-separator: New file.
17234         * modules/unictype/property-bidi-whitespace: New file.
17235         * modules/unictype/property-bidi-non-spacing-mark: New file.
17236         * modules/unictype/property-bidi-boundary-neutral: New file.
17237         * modules/unictype/property-bidi-pdf: New file.
17238         * modules/unictype/property-bidi-embedding-or-override: New file.
17239         * modules/unictype/property-bidi-other-neutral: New file.
17240         * modules/unictype/property-hex-digit: New file.
17241         * modules/unictype/property-ascii-hex-digit: New file.
17242         * modules/unictype/property-ideographic: New file.
17243         * modules/unictype/property-unified-ideograph: New file.
17244         * modules/unictype/property-radical: New file.
17245         * modules/unictype/property-ids-binary-operator: New file.
17246         * modules/unictype/property-ids-trinary-operator: New file.
17247         * modules/unictype/property-zero-width: New file.
17248         * modules/unictype/property-space: New file.
17249         * modules/unictype/property-non-break: New file.
17250         * modules/unictype/property-iso-control: New file.
17251         * modules/unictype/property-format-control: New file.
17252         * modules/unictype/property-dash: New file.
17253         * modules/unictype/property-hyphen: New file.
17254         * modules/unictype/property-punctuation: New file.
17255         * modules/unictype/property-line-separator: New file.
17256         * modules/unictype/property-paragraph-separator: New file.
17257         * modules/unictype/property-quotation-mark: New file.
17258         * modules/unictype/property-sentence-terminal: New file.
17259         * modules/unictype/property-terminal-punctuation: New file.
17260         * modules/unictype/property-currency-symbol: New file.
17261         * modules/unictype/property-math: New file.
17262         * modules/unictype/property-other-math: New file.
17263         * modules/unictype/property-paired-punctuation: New file.
17264         * modules/unictype/property-left-of-pair: New file.
17265         * modules/unictype/property-combining: New file.
17266         * modules/unictype/property-composite: New file.
17267         * modules/unictype/property-decimal-digit: New file.
17268         * modules/unictype/property-numeric: New file.
17269         * modules/unictype/property-diacritic: New file.
17270         * modules/unictype/property-extender: New file.
17271         * modules/unictype/property-ignorable-control: New file.
17272         * modules/unictype/property-test: New file.
17273         * modules/unictype/property-byname: New file.
17274         * modules/unictype/property-all: New file.
17275         * modules/unictype/scripts: New file.
17276         * modules/unictype/scripts-all: New file.
17277         * modules/unictype/block-of: New file.
17278         * modules/unictype/block-test: New file.
17279         * modules/unictype/block-list: New file.
17280         * modules/unictype/block-all: New file.
17281         * modules/unictype/syntax-c-whitespace: New file.
17282         * modules/unictype/syntax-java-whitespace: New file.
17283         * modules/unictype/syntax-c-ident: New file.
17284         * modules/unictype/syntax-java-ident: New file.
17285         * modules/unictype/ctype-alnum: New file.
17286         * modules/unictype/ctype-alpha: New file.
17287         * modules/unictype/ctype-cntrl: New file.
17288         * modules/unictype/ctype-digit: New file.
17289         * modules/unictype/ctype-graph: New file.
17290         * modules/unictype/ctype-lower: New file.
17291         * modules/unictype/ctype-print: New file.
17292         * modules/unictype/ctype-punct: New file.
17293         * modules/unictype/ctype-space: New file.
17294         * modules/unictype/ctype-upper: New file.
17295         * modules/unictype/ctype-xdigit: New file.
17296         * modules/unictype/ctype-blank: New file.
17297         * lib/unictype/bidi_byname.c: New file.
17298         * lib/unictype/bidi_name.c: New file.
17299         * lib/unictype/bidi_of.c: New file.
17300         * lib/unictype/bidi_test.c: New file.
17301         * lib/unictype/bitmap.h: New file.
17302         * lib/unictype/block_test.c: New file.
17303         * lib/unictype/blocks.c: New file.
17304         * lib/unictype/categ_C.c: New file.
17305         * lib/unictype/categ_Cc.c: New file.
17306         * lib/unictype/categ_Cf.c: New file.
17307         * lib/unictype/categ_Cn.c: New file.
17308         * lib/unictype/categ_Co.c: New file.
17309         * lib/unictype/categ_Cs.c: New file.
17310         * lib/unictype/categ_L.c: New file.
17311         * lib/unictype/categ_Ll.c: New file.
17312         * lib/unictype/categ_Lm.c: New file.
17313         * lib/unictype/categ_Lo.c: New file.
17314         * lib/unictype/categ_Lt.c: New file.
17315         * lib/unictype/categ_Lu.c: New file.
17316         * lib/unictype/categ_M.c: New file.
17317         * lib/unictype/categ_Mc.c: New file.
17318         * lib/unictype/categ_Me.c: New file.
17319         * lib/unictype/categ_Mn.c: New file.
17320         * lib/unictype/categ_N.c: New file.
17321         * lib/unictype/categ_Nd.c: New file.
17322         * lib/unictype/categ_Nl.c: New file.
17323         * lib/unictype/categ_No.c: New file.
17324         * lib/unictype/categ_P.c: New file.
17325         * lib/unictype/categ_Pc.c: New file.
17326         * lib/unictype/categ_Pd.c: New file.
17327         * lib/unictype/categ_Pe.c: New file.
17328         * lib/unictype/categ_Pf.c: New file.
17329         * lib/unictype/categ_Pi.c: New file.
17330         * lib/unictype/categ_Po.c: New file.
17331         * lib/unictype/categ_Ps.c: New file.
17332         * lib/unictype/categ_S.c: New file.
17333         * lib/unictype/categ_Sc.c: New file.
17334         * lib/unictype/categ_Sk.c: New file.
17335         * lib/unictype/categ_Sm.c: New file.
17336         * lib/unictype/categ_So.c: New file.
17337         * lib/unictype/categ_Z.c: New file.
17338         * lib/unictype/categ_Zl.c: New file.
17339         * lib/unictype/categ_Zp.c: New file.
17340         * lib/unictype/categ_Zs.c: New file.
17341         * lib/unictype/categ_and.c: New file.
17342         * lib/unictype/categ_and_not.c: New file.
17343         * lib/unictype/categ_byname.c: New file.
17344         * lib/unictype/categ_name.c: New file.
17345         * lib/unictype/categ_none.c: New file.
17346         * lib/unictype/categ_of.c: New file.
17347         * lib/unictype/categ_or.c: New file.
17348         * lib/unictype/categ_test.c: New file.
17349         * lib/unictype/combining.c: New file.
17350         * lib/unictype/ctype_alnum.c: New file.
17351         * lib/unictype/ctype_alpha.c: New file.
17352         * lib/unictype/ctype_blank.c: New file.
17353         * lib/unictype/ctype_cntrl.c: New file.
17354         * lib/unictype/ctype_digit.c: New file.
17355         * lib/unictype/ctype_graph.c: New file.
17356         * lib/unictype/ctype_lower.c: New file.
17357         * lib/unictype/ctype_print.c: New file.
17358         * lib/unictype/ctype_punct.c: New file.
17359         * lib/unictype/ctype_space.c: New file.
17360         * lib/unictype/ctype_upper.c: New file.
17361         * lib/unictype/ctype_xdigit.c: New file.
17362         * lib/unictype/decdigit.c: New file.
17363         * lib/unictype/digit.c: New file.
17364         * lib/unictype/identsyntaxmap.h: New file.
17365         * lib/unictype/mirror.c: New file.
17366         * lib/unictype/numeric.c: New file.
17367         * lib/unictype/pr_alphabetic.c: New file.
17368         * lib/unictype/pr_ascii_hex_digit.c: New file.
17369         * lib/unictype/pr_bidi_arabic_digit.c: New file.
17370         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
17371         * lib/unictype/pr_bidi_block_separator.c: New file.
17372         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
17373         * lib/unictype/pr_bidi_common_separator.c: New file.
17374         * lib/unictype/pr_bidi_control.c: New file.
17375         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
17376         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
17377         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
17378         * lib/unictype/pr_bidi_european_digit.c: New file.
17379         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
17380         * lib/unictype/pr_bidi_left_to_right.c: New file.
17381         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
17382         * lib/unictype/pr_bidi_other_neutral.c: New file.
17383         * lib/unictype/pr_bidi_pdf.c: New file.
17384         * lib/unictype/pr_bidi_segment_separator.c: New file.
17385         * lib/unictype/pr_bidi_whitespace.c: New file.
17386         * lib/unictype/pr_byname.c: New file.
17387         * lib/unictype/pr_byname.gperf: New file.
17388         * lib/unictype/pr_combining.c: New file.
17389         * lib/unictype/pr_composite.c: New file.
17390         * lib/unictype/pr_currency_symbol.c: New file.
17391         * lib/unictype/pr_dash.c: New file.
17392         * lib/unictype/pr_decimal_digit.c: New file.
17393         * lib/unictype/pr_default_ignorable_code_point.c: New file.
17394         * lib/unictype/pr_deprecated.c: New file.
17395         * lib/unictype/pr_diacritic.c: New file.
17396         * lib/unictype/pr_extender.c: New file.
17397         * lib/unictype/pr_format_control.c: New file.
17398         * lib/unictype/pr_grapheme_base.c: New file.
17399         * lib/unictype/pr_grapheme_extend.c: New file.
17400         * lib/unictype/pr_grapheme_link.c: New file.
17401         * lib/unictype/pr_hex_digit.c: New file.
17402         * lib/unictype/pr_hyphen.c: New file.
17403         * lib/unictype/pr_id_continue.c: New file.
17404         * lib/unictype/pr_id_start.c: New file.
17405         * lib/unictype/pr_ideographic.c: New file.
17406         * lib/unictype/pr_ids_binary_operator.c: New file.
17407         * lib/unictype/pr_ids_trinary_operator.c: New file.
17408         * lib/unictype/pr_ignorable_control.c: New file.
17409         * lib/unictype/pr_iso_control.c: New file.
17410         * lib/unictype/pr_join_control.c: New file.
17411         * lib/unictype/pr_left_of_pair.c: New file.
17412         * lib/unictype/pr_line_separator.c: New file.
17413         * lib/unictype/pr_logical_order_exception.c: New file.
17414         * lib/unictype/pr_lowercase.c: New file.
17415         * lib/unictype/pr_math.c: New file.
17416         * lib/unictype/pr_non_break.c: New file.
17417         * lib/unictype/pr_not_a_character.c: New file.
17418         * lib/unictype/pr_numeric.c: New file.
17419         * lib/unictype/pr_other_alphabetic.c: New file.
17420         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
17421         * lib/unictype/pr_other_grapheme_extend.c: New file.
17422         * lib/unictype/pr_other_id_continue.c: New file.
17423         * lib/unictype/pr_other_id_start.c: New file.
17424         * lib/unictype/pr_other_lowercase.c: New file.
17425         * lib/unictype/pr_other_math.c: New file.
17426         * lib/unictype/pr_other_uppercase.c: New file.
17427         * lib/unictype/pr_paired_punctuation.c: New file.
17428         * lib/unictype/pr_paragraph_separator.c: New file.
17429         * lib/unictype/pr_pattern_syntax.c: New file.
17430         * lib/unictype/pr_pattern_white_space.c: New file.
17431         * lib/unictype/pr_private_use.c: New file.
17432         * lib/unictype/pr_punctuation.c: New file.
17433         * lib/unictype/pr_quotation_mark.c: New file.
17434         * lib/unictype/pr_radical.c: New file.
17435         * lib/unictype/pr_sentence_terminal.c: New file.
17436         * lib/unictype/pr_soft_dotted.c: New file.
17437         * lib/unictype/pr_space.c: New file.
17438         * lib/unictype/pr_terminal_punctuation.c: New file.
17439         * lib/unictype/pr_test.c: New file.
17440         * lib/unictype/pr_titlecase.c: New file.
17441         * lib/unictype/pr_unassigned_code_value.c: New file.
17442         * lib/unictype/pr_unified_ideograph.c: New file.
17443         * lib/unictype/pr_uppercase.c: New file.
17444         * lib/unictype/pr_variation_selector.c: New file.
17445         * lib/unictype/pr_white_space.c: New file.
17446         * lib/unictype/pr_xid_continue.c: New file.
17447         * lib/unictype/pr_xid_start.c: New file.
17448         * lib/unictype/pr_zero_width.c: New file.
17449         * lib/unictype/scripts.c: New file.
17450         * lib/unictype/sy_c_ident.c: New file.
17451         * lib/unictype/sy_c_whitespace.c: New file.
17452         * lib/unictype/sy_java_ident.c: New file.
17453         * lib/unictype/sy_java_whitespace.c: New file.
17454
17455         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
17456         Unicode 5.0.0.
17457         * lib/unictype/blocks.h: Likewise.
17458         * lib/unictype/categ_C.h: Likewise.
17459         * lib/unictype/categ_Cc.h: Likewise.
17460         * lib/unictype/categ_Cf.h: Likewise.
17461         * lib/unictype/categ_Cn.h: Likewise.
17462         * lib/unictype/categ_Co.h: Likewise.
17463         * lib/unictype/categ_Cs.h: Likewise.
17464         * lib/unictype/categ_L.h: Likewise.
17465         * lib/unictype/categ_Ll.h: Likewise.
17466         * lib/unictype/categ_Lm.h: Likewise.
17467         * lib/unictype/categ_Lo.h: Likewise.
17468         * lib/unictype/categ_Lt.h: Likewise.
17469         * lib/unictype/categ_Lu.h: Likewise.
17470         * lib/unictype/categ_M.h: Likewise.
17471         * lib/unictype/categ_Mc.h: Likewise.
17472         * lib/unictype/categ_Me.h: Likewise.
17473         * lib/unictype/categ_Mn.h: Likewise.
17474         * lib/unictype/categ_N.h: Likewise.
17475         * lib/unictype/categ_Nd.h: Likewise.
17476         * lib/unictype/categ_Nl.h: Likewise.
17477         * lib/unictype/categ_No.h: Likewise.
17478         * lib/unictype/categ_P.h: Likewise.
17479         * lib/unictype/categ_Pc.h: Likewise.
17480         * lib/unictype/categ_Pd.h: Likewise.
17481         * lib/unictype/categ_Pe.h: Likewise.
17482         * lib/unictype/categ_Pf.h: Likewise.
17483         * lib/unictype/categ_Pi.h: Likewise.
17484         * lib/unictype/categ_Po.h: Likewise.
17485         * lib/unictype/categ_Ps.h: Likewise.
17486         * lib/unictype/categ_S.h: Likewise.
17487         * lib/unictype/categ_Sc.h: Likewise.
17488         * lib/unictype/categ_Sk.h: Likewise.
17489         * lib/unictype/categ_Sm.h: Likewise.
17490         * lib/unictype/categ_So.h: Likewise.
17491         * lib/unictype/categ_Z.h: Likewise.
17492         * lib/unictype/categ_Zl.h: Likewise.
17493         * lib/unictype/categ_Zp.h: Likewise.
17494         * lib/unictype/categ_Zs.h: Likewise.
17495         * lib/unictype/categ_of.h: Likewise.
17496         * lib/unictype/combining.h: Likewise.
17497         * lib/unictype/ctype_alnum.h: Likewise.
17498         * lib/unictype/ctype_alpha.h: Likewise.
17499         * lib/unictype/ctype_blank.h: Likewise.
17500         * lib/unictype/ctype_cntrl.h: Likewise.
17501         * lib/unictype/ctype_digit.h: Likewise.
17502         * lib/unictype/ctype_graph.h: Likewise.
17503         * lib/unictype/ctype_lower.h: Likewise.
17504         * lib/unictype/ctype_print.h: Likewise.
17505         * lib/unictype/ctype_punct.h: Likewise.
17506         * lib/unictype/ctype_space.h: Likewise.
17507         * lib/unictype/ctype_upper.h: Likewise.
17508         * lib/unictype/ctype_xdigit.h: Likewise.
17509         * lib/unictype/decdigit.h: Likewise.
17510         * lib/unictype/digit.h: Likewise.
17511         * lib/unictype/mirror.h: Likewise.
17512         * lib/unictype/numeric.h: Likewise.
17513         * lib/unictype/pr_alphabetic.h: Likewise.
17514         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17515         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17516         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17517         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17518         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17519         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17520         * lib/unictype/pr_bidi_control.h: Likewise.
17521         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17522         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17523         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17524         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17525         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17526         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17527         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17528         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17529         * lib/unictype/pr_bidi_pdf.h: Likewise.
17530         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17531         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17532         * lib/unictype/pr_combining.h: Likewise.
17533         * lib/unictype/pr_composite.h: Likewise.
17534         * lib/unictype/pr_currency_symbol.h: Likewise.
17535         * lib/unictype/pr_dash.h: Likewise.
17536         * lib/unictype/pr_decimal_digit.h: Likewise.
17537         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17538         * lib/unictype/pr_deprecated.h: Likewise.
17539         * lib/unictype/pr_diacritic.h: Likewise.
17540         * lib/unictype/pr_extender.h: Likewise.
17541         * lib/unictype/pr_format_control.h: Likewise.
17542         * lib/unictype/pr_grapheme_base.h: Likewise.
17543         * lib/unictype/pr_grapheme_extend.h: Likewise.
17544         * lib/unictype/pr_grapheme_link.h: Likewise.
17545         * lib/unictype/pr_hex_digit.h: Likewise.
17546         * lib/unictype/pr_hyphen.h: Likewise.
17547         * lib/unictype/pr_id_continue.h: Likewise.
17548         * lib/unictype/pr_id_start.h: Likewise.
17549         * lib/unictype/pr_ideographic.h: Likewise.
17550         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17551         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17552         * lib/unictype/pr_ignorable_control.h: Likewise.
17553         * lib/unictype/pr_iso_control.h: Likewise.
17554         * lib/unictype/pr_join_control.h: Likewise.
17555         * lib/unictype/pr_left_of_pair.h: Likewise.
17556         * lib/unictype/pr_line_separator.h: Likewise.
17557         * lib/unictype/pr_logical_order_exception.h: Likewise.
17558         * lib/unictype/pr_lowercase.h: Likewise.
17559         * lib/unictype/pr_math.h: Likewise.
17560         * lib/unictype/pr_non_break.h: Likewise.
17561         * lib/unictype/pr_not_a_character.h: Likewise.
17562         * lib/unictype/pr_numeric.h: Likewise.
17563         * lib/unictype/pr_other_alphabetic.h: Likewise.
17564         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17565         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17566         * lib/unictype/pr_other_id_continue.h: Likewise.
17567         * lib/unictype/pr_other_id_start.h: Likewise.
17568         * lib/unictype/pr_other_lowercase.h: Likewise.
17569         * lib/unictype/pr_other_math.h: Likewise.
17570         * lib/unictype/pr_other_uppercase.h: Likewise.
17571         * lib/unictype/pr_paired_punctuation.h: Likewise.
17572         * lib/unictype/pr_paragraph_separator.h: Likewise.
17573         * lib/unictype/pr_pattern_syntax.h: Likewise.
17574         * lib/unictype/pr_pattern_white_space.h: Likewise.
17575         * lib/unictype/pr_private_use.h: Likewise.
17576         * lib/unictype/pr_punctuation.h: Likewise.
17577         * lib/unictype/pr_quotation_mark.h: Likewise.
17578         * lib/unictype/pr_radical.h: Likewise.
17579         * lib/unictype/pr_sentence_terminal.h: Likewise.
17580         * lib/unictype/pr_soft_dotted.h: Likewise.
17581         * lib/unictype/pr_space.h: Likewise.
17582         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17583         * lib/unictype/pr_titlecase.h: Likewise.
17584         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17585         * lib/unictype/pr_unified_ideograph.h: Likewise.
17586         * lib/unictype/pr_uppercase.h: Likewise.
17587         * lib/unictype/pr_variation_selector.h: Likewise.
17588         * lib/unictype/pr_white_space.h: Likewise.
17589         * lib/unictype/pr_xid_continue.h: Likewise.
17590         * lib/unictype/pr_xid_start.h: Likewise.
17591         * lib/unictype/pr_zero_width.h: Likewise.
17592         * lib/unictype/scripts.h: Likewise.
17593         * lib/unictype/scripts_byname.gperf: Likewise.
17594         * lib/unictype/sy_c_ident.h: Likewise.
17595         * lib/unictype/sy_c_whitespace.h: Likewise.
17596         * lib/unictype/sy_java_ident.h: Likewise.
17597         * lib/unictype/sy_java_whitespace.h: Likewise.
17598
17599         * lib/unictype/Makefile: New file.
17600         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
17601         glibc.
17602         * lib/unictype/3level.h: New file, copied from glibc.
17603         * lib/unictype/3levelbit.h: New file.
17604
17605 2007-11-11  Bruno Haible  <bruno@clisp.org>
17606
17607         * modules/gperf: New file.
17608         * modules/iconv_open (Depends-on): Add it.
17609         (Makefile.am): Remove the GPERF definition.
17610
17611 2007-11-11  Bruno Haible  <bruno@clisp.org>
17612
17613         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
17614         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
17615
17616 2007-11-11  Bruno Haible  <bruno@clisp.org>
17617
17618         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
17619         (usage): Remove function.
17620
17621 2007-11-11  Bruno Haible  <bruno@clisp.org>
17622
17623         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
17624         gl_FUNC_CEILF_LIBS.
17625         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
17626         gl_FUNC_CEIL_LIBS.
17627         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
17628         gl_FUNC_CEILL_LIBS.
17629         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
17630         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
17631         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
17632
17633 2007-11-11  Bruno Haible  <bruno@clisp.org>
17634
17635         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
17636         roundf were declared but do not exist on functions.
17637         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
17638         roundl were declared but do not exist on functions.
17639         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
17640         HAVE_FLOORL_AND_CEILL, respectively.
17641         Needed for Sun C on Solaris 10.
17642
17643 2007-11-11  Bruno Haible  <bruno@clisp.org>
17644
17645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
17646         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
17647         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
17648         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
17649         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
17650         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
17651         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
17652         HAVE_DECL_ROUNDF.
17653         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
17654         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
17655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
17656         of HAVE_DECL_ROUND*.
17657         * modules/math (Makefile.am): Update.
17658
17659 2007-11-10  Bruno Haible  <bruno@clisp.org>
17660
17661         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
17662         ptrdiff_t as m4/intl.m4.
17663
17664 2007-11-10  Jim Meyering  <meyering@redhat.com>
17665
17666         Avoid link failure for the argmatch test.
17667         * tests/test-argmatch.c (usage): Define function to avoid a link
17668         failure: argmatch_die requires a usage function.
17669
17670 2007-11-09  Bruno Haible  <bruno@clisp.org>
17671
17672         * doc/functions/snprintf.texi: Mention BeOS deficiency.
17673         * doc/functions/vsnprintf.texi: Likewise.
17674         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
17675         with a size argument < 2.
17676
17677 2007-11-09  Bruno Haible  <bruno@clisp.org>
17678
17679         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
17680         buffer. Fixes an inefficiency introduced on 2007-11-03.
17681
17682 2007-11-09  Bruno Haible  <bruno@clisp.org>
17683
17684         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
17685         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
17686
17687 2007-11-08  Jim Meyering  <meyering@redhat.com>
17688
17689         Change cache variable name prefix "jm_" to "gl_" everywhere.
17690         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
17691         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
17692         * m4/uptime.m4: s/gl_/jm_/
17693
17694 2007-11-07  Bruno Haible  <bruno@clisp.org>
17695
17696         Update to GNU gettext 0.17.
17697         * m4/intl.m4: Update to GNU gettext 0.17.
17698         * m4/po.m4: Likewise.
17699         * modules/gettext (Files): Remove m4/ulonglong.m4.
17700         (configure.ac): Require gettext infrastructure from version 0.17.
17701
17702 2007-11-06  Bruno Haible  <bruno@clisp.org>
17703
17704         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
17705         symbolic values are not defined in a public header.
17706         * lib/freadable.c (freadable) [QNX]: Likewise.
17707         * lib/freadahead.c (freadahead) [QNX]: Likewise.
17708         * lib/freading.c (freading) [QNX]: Likewise.
17709         * lib/fseterr.c (fseterr) [QNX]: Likewise.
17710         * lib/fwritable.c (fwritable) [QNX]: Likewise.
17711         * lib/fwriting.c (fwriting) [QNX]: Likewise.
17712         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
17713         Reported by Alain Magloire.
17714
17715         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
17716
17717 2007-11-05  Bruno Haible  <bruno@clisp.org>
17718
17719         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
17720         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
17721         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
17722         Reported by Eric Blake.
17723
17724 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17725             Bruno Haible  <bruno@clisp.org>
17726
17727         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
17728         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
17729         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
17730         (malloc): Undefine also before including <stdlib.h>.
17731         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
17732         Needed on OSF/1 4.0.
17733
17734 2007-11-05  Jim Meyering  <meyering@redhat.com>
17735
17736         git-version-gen: sync from coreutils.
17737         * build-aux/git-version-gen: Add comments.
17738         Change the first '-' to '.' in the snapshot version string,
17739         e.g., 6.9-377-08144 -> 6.9.377-08144
17740         Remove first parameter.
17741         Don't declare a version "-dirty" merely because a time
17742         stamp has changed.
17743
17744 2007-11-04  Bruno Haible  <bruno@clisp.org>
17745
17746         * lib/lock.h: Protect all macro definitions containing an 'if'
17747         statement through a "do { ... } while (0)".
17748         * lib/tls.h: Likewise.
17749
17750 2007-11-04  Bruno Haible  <bruno@clisp.org>
17751
17752         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
17753
17754 2007-11-04  Bruno Haible  <bruno@clisp.org>
17755
17756         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
17757         * modules/fprintf-posix (Depends-on): Add nocrash.
17758         * modules/snprintf-posix (Depends-on): Likewise.
17759         * modules/sprintf-posix (Depends-on): Likewise.
17760         * modules/vasnprintf-posix (Depends-on): Likewise.
17761         * modules/vasprintf-posix (Depends-on): Likewise.
17762         * modules/vfprintf-posix (Depends-on): Likewise.
17763         * modules/vsnprintf-posix (Depends-on): Likewise.
17764         * modules/vsprintf-posix (Depends-on): Likewise.
17765         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17766         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17767         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17768         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17769         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17770         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17771         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17772
17773 2007-11-04  Bruno Haible  <bruno@clisp.org>
17774
17775         * modules/nocrash: New file.
17776         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
17777         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
17778
17779 2007-11-04  Bruno Haible  <bruno@clisp.org>
17780
17781         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
17782         precision handling.
17783         * tests/test-vasprintf-posix.c (test_function): Likewise.
17784         * tests/test-snprintf-posix.h (test_function): Likewise.
17785         * tests/test-sprintf-posix.h (test_function): Likewise.
17786
17787         Fix *printf behaviour for large precisions on mingw and BeOS.
17788         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
17789         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
17790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
17791         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17793         gl_PRINTF_PRECISION and test its result. Invoke
17794         gl_PREREQ_VASNPRINTF_PRECISION.
17795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17799         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17802         * doc/functions/fprintf.texi: Update.
17803         * doc/functions/printf.texi: Update.
17804         * doc/functions/snprintf.texi: Update.
17805         * doc/functions/sprintf.texi: Update.
17806         * doc/functions/vfprintf.texi: Update.
17807         * doc/functions/vprintf.texi: Update.
17808         * doc/functions/vsnprintf.texi: Update.
17809         * doc/functions/vsprintf.texi: Update.
17810
17811 2007-11-04  Bruno Haible  <bruno@clisp.org>
17812
17813         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
17814
17815 2007-11-04  Bruno Haible  <bruno@clisp.org>
17816
17817         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
17818         Reported by Sylvain Beucler <beuc@gnu.org>.
17819
17820 2007-11-03  Bruno Haible  <bruno@clisp.org>
17821
17822         * tests/test-fprintf-posix2.sh: New file.
17823         * tests/test-fprintf-posix2.c: New file.
17824         * modules/fprintf-posix-tests (Files): Add them.
17825         (TESTS): Add test-fprintf-posix2.sh.
17826         (configure.ac): Check for getrlimit and setrlimit.
17827         (check_PROGRAMS): Add test-fprintf-posix2.
17828
17829         * tests/test-printf-posix2.sh: New file.
17830         * tests/test-printf-posix2.c: New file.
17831         * modules/printf-posix-tests (Files): Add them.
17832         (TESTS): Add test-printf-posix2.sh.
17833         (configure.ac): Check for getrlimit and setrlimit.
17834         (check_PROGRAMS): Add test-printf-posix2.
17835
17836         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
17837         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
17838         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
17839         (decode_double): New function, copied from decode_long_double.
17840         (scale10_round_decimal_decoded): New function, extracted from
17841         scale10_round_decimal_long_double.
17842         (scale10_round_decimal_long_double): Use it.
17843         (scale10_round_decimal_double): New function.
17844         (floorlog10): New function.
17845         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
17846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
17847         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17848         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17849         gl_PRINTF_ENOMEM and test its result. Invoke
17850         gl_PREREQ_VASNPRINTF_ENOMEM.
17851         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17852         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17853         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17854         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17855         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17856         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17857         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17858         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
17859         * modules/snprintf-posix (Depends-on): Likewise.
17860         * modules/sprintf-posix (Depends-on): Likewise.
17861         * modules/vasnprintf-posix (Depends-on): Likewise.
17862         * modules/vasprintf-posix (Depends-on): Likewise.
17863         * modules/vfprintf-posix (Depends-on): Likewise.
17864         * modules/vsnprintf-posix (Depends-on): Likewise.
17865         * modules/vsprintf-posix (Depends-on): Likewise.
17866         * doc/functions/fprintf.texi: Update.
17867         * doc/functions/printf.texi: Update.
17868         * doc/functions/snprintf.texi: Update.
17869         * doc/functions/sprintf.texi: Update.
17870         * doc/functions/vfprintf.texi: Update.
17871         * doc/functions/vprintf.texi: Update.
17872         * doc/functions/vsnprintf.texi: Update.
17873         * doc/functions/vsprintf.texi: Update.
17874
17875 2007-11-03  Bruno Haible  <bruno@clisp.org>
17876
17877         * modules/frexp-nolibm-tests: New file.
17878
17879         * modules/frexp-nolibm: New file.
17880         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
17881
17882 2007-11-03  Bruno Haible  <bruno@clisp.org>
17883
17884         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
17885         value is C99 compliant.
17886         Needed for OSF/1 5.1.
17887
17888 2007-11-03  Bruno Haible  <bruno@clisp.org>
17889
17890         Fix out-of-memory handling of vasnprintf.
17891         * lib/printf-parse.c: Include <errno.h>.
17892         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
17893         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
17894         is already set.
17895
17896 2007-11-02  Eric Blake  <ebb9@byu.net>
17897
17898         Fix tests on cygwin.
17899         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
17900
17901 2007-11-01  Bruno Haible  <bruno@clisp.org>
17902
17903         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
17904         warning.
17905         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
17906         needed for POSIX compatibility.
17907
17908 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
17909
17910         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
17911         for compatibility with GNU.
17912
17913 2007-11-01  Bruno Haible  <bruno@clisp.org>
17914
17915         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
17916         (putenv): Renamed from rpl_putenv. Change argument type from
17917         'const char *' to 'char *'.
17918         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
17919         of defining putenv in config.h, just set REPLACE_PUTENV.
17920         * modules/putenv (Depends-on): Add stdlib.
17921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
17922         (Include): Use <stdlib.h>.
17923         * lib/stdlib.in.h (putenv): New declaration.
17924         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
17925         REPLACE_PUTENV.
17926         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
17927         REPLACE_PUTENV.
17928         Needed for MacOS X 10.5.0.
17929         Reported by Peter O'Gorman <peter@pogma.com>.
17930
17931 2007-11-01  Jim Meyering  <meyering@redhat.com>
17932
17933         Treat an empty date string exactly like "0".
17934         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
17935         if the remaining date string (to be parsed) is empty, use "0".
17936         Reported by Mischa Molhoek and discussed in this thread:
17937         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
17938
17939 2007-10-31  Bruno Haible  <bruno@clisp.org>
17940
17941         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
17942         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
17943         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
17944         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
17945         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
17946         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
17947
17948 2007-10-31  Bruno Haible  <bruno@clisp.org>
17949
17950         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
17951         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
17952         (AC_TYPE_LONG_LONG_INT): Use it.
17953         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
17954         it as well.
17955         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
17956         to m4/longlong.m4.
17957         * modules/stdint (Files): Remove m4/ulonglong.m4.
17958         * modules/strtoull (Files): Use m4/longlong.m4 instead of
17959         m4/ulonglong.m4.
17960         * modules/strtoumax (Files): Likewise.
17961
17962 2007-10-30  Bruno Haible  <bruno@clisp.org>
17963
17964         * modules/xvasprintf-posix: New file.
17965         Suggested by Eric Blake.
17966
17967 2007-10-30  Bruno Haible  <bruno@clisp.org>
17968
17969         * modules/xprintf-posix-tests: New file.
17970         * tests/test-xprintf-posix.sh: New file.
17971         * tests/test-xprintf-posix.c: New file.
17972         * tests/test-xfprintf-posix.c: New file.
17973
17974         * modules/xprintf-posix: New file.
17975
17976 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17977
17978         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
17979         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
17980         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
17981
17982 2007-10-29  Bruno Haible  <bruno@clisp.org>
17983
17984         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
17985         contain the special marker '_cv_'.
17986         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17987         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17988         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17989         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17990         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17991         Reported by Ralf Wildenhues.
17992
17993 2007-10-29  Bruno Haible  <bruno@clisp.org>
17994
17995         * gnulib-tool (func_import): When --lgpl is not specified, set
17996         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
17997         GPLv3.
17998         Reported by Simon Josefsson.
17999
18000 2007-10-28  Bruno Haible  <bruno@clisp.org>
18001
18002         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
18003         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
18004         HAVE_DECL_ISFINITE.
18005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18006         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
18007         HAVE_DECL_ISFINITE.
18008
18009 2007-10-28  Bruno Haible  <bruno@clisp.org>
18010
18011         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
18012         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
18013
18014 2007-10-28  Bruno Haible  <bruno@clisp.org>
18015
18016         Fix link errors with Sun C 5.0 on Solaris 10.
18017         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
18018         function is declared but not present in the compiler's libm.
18019         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18020         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18021         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
18022         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
18023         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
18024         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
18025         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
18026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18027         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
18028         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
18029         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
18030         HAVE_DECL_FLOORL.
18031
18032 2007-10-28  Bruno Haible  <bruno@clisp.org>
18033
18034         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
18035         gl_FUNC_FLOORL. Cache the result.
18036         (gl_FUNC_FLOORL): Use it.
18037         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
18038         gl_FUNC_CEILL. Cache the result.
18039         (gl_FUNC_CEILL): Use it.
18040
18041         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
18042         gl_FUNC_FLOOR. Cache the result.
18043         (gl_FUNC_FLOOR): Use it.
18044         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
18045         gl_FUNC_CEIL. Cache the result.
18046         (gl_FUNC_CEIL): Use it.
18047
18048         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
18049         gl_FUNC_FLOORF. Cache the result.
18050         (gl_FUNC_FLOORF): Use it.
18051         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
18052         gl_FUNC_CEILF. Cache the result.
18053         (gl_FUNC_CEILF): Use it.
18054
18055 2007-10-28  Bruno Haible  <bruno@clisp.org>
18056
18057         * gnulib-tool: Allow specifying the LGPL version number through
18058         --lgpl=2 or --lgpl=3.
18059         (func_usage): Document --lgpl with argument.
18060         Handle --lgpl=... arguments.
18061         (func_import): Recognize also gl_LGPL calls with an argument. When
18062         --lgpl=2 is used and the module's license is just LGPL, report an
18063         error. Set sed_transform_lib_file according to the lgpl variable. In
18064         the generated files, use --lgpl or gl_LGPL invocations with argument,
18065         if necessary.
18066         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
18067         an LGPv2+ license.
18068         * doc/gnulib-tool.texi (Modified imports): Update explanation of
18069         gl_LGPL macro.
18070
18071 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18072             Bruno Haible  <bruno@clisp.org>
18073
18074         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
18075         (u16_uctomb_aux): Likewise.
18076         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
18077         !HAVE_INLINE.
18078         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
18079
18080 2007-10-28  Bruno Haible  <bruno@clisp.org>
18081
18082         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
18083         Invoke AM_GETTEXT_OPTION if it exists.
18084         * modules/vasprintf: Likewise.
18085         * modules/verror: Likewise.
18086         * modules/xprintf: Likewise.
18087         * modules/xvasprintf: Likewise.
18088
18089 2007-10-27  Ben Pfaff  <blp@gnu.org>
18090
18091         * lib/math.in.h: Define isfinite macro and prototypes for
18092         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
18093         implementations.
18094         * m4/math_h.m4: New substitutions for isfinite module.
18095         * lib/isfinite.c: New file.
18096         * m4/isfinite.m4: New file.
18097         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
18098         * modules/isfinite: New file.
18099         * modules/isfinite-tests: New file.
18100         * tests/tests-isfinite.c: New file.
18101         * doc/functions/isfinite.texi: Mention isfinite module.
18102         * MODULES.html.sh: Mention new module.
18103
18104 2007-10-27  Ben Pfaff  <blp@gnu.org>
18105
18106         Ralf Wildenhues reported that Tru64 4.0D declares the round
18107         functions but does not have definitions.
18108         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
18109         cannot be found in any library, set the output variable to
18110         "missing" instead of "".
18111         * m4/round.m4: Also use our substitute if we cannot find round in
18112         any library, even if it is declared.
18113         * m4/roundf.m4: Likewise for roundf.
18114         * m4/roundl.m4: Likewise for roundl.
18115         * lib/math.in.h: Undefine roundf, round, roundl before defining
18116         their replacements, to allow for hypothetical systems where these
18117         may be defined as macros but not available in libraries.
18118
18119 2007-10-27  Bruno Haible  <bruno@clisp.org>
18120
18121         * doc/gnulib.texi: Invoke @firstparagraphindent.
18122         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
18123         changes in gnulib.
18124         (Source changes): New section.
18125
18126 2007-10-26  Bruno Haible  <bruno@clisp.org>
18127
18128         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
18129         borrowed from autoconf.
18130
18131 2007-10-26  Bruno Haible  <bruno@clisp.org>
18132
18133         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
18134         strerror returned the empty string. Needed on HP-UX 11.00.
18135
18136 2007-10-24  Micah Cowan  <micah@cowan.name>
18137
18138         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
18139         * build-aux/bootstrap: Remove support for now-unnecessary option,
18140         --cvs-user, and envvars CVS_USER, CVS_RSH.
18141
18142 2007-10-24  Jim Meyering  <meyering@redhat.com>
18143
18144         Avoid diagnostics from sha1sum when there is no cached checksum.
18145         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
18146         if the po.s1 file hasn't been created yet.
18147
18148         * build-aux/bootstrap: Sync from coreutils:
18149         2007-10-24  Jim Meyering  <meyering@redhat.com>
18150         Get gnulib from the git repository, not from an obsolete cvs one.
18151         * build-aux/bootstrap: Suggestion from Micah Cowan.
18152         2007-10-04  Jim Meyering  <jim@meyering.net>
18153         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
18154         (update_po_files): Work also when there are no .po files in po/.
18155
18156 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18157
18158         * README: Append ".git" to git and cg examples.
18159         Problem reported by Benoit Sigoure.
18160
18161 2007-10-23  Micah Cowan  <micah@cowan.name>
18162
18163         * users.txt: Add wget.
18164
18165 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18166
18167         Fix linking of some unistdio tests on FreeBSD.
18168         * modules/unistdio/u16-vsnprintf-tests
18169         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
18170         * modules/unistdio/u16-vsprintf-tests
18171         (test_u16_vsnprintf1_LDADD): Likewise.
18172         * modules/unistdio/u32-vsnprintf-tests
18173         (test_u32_vsnprintf1_LDADD): Likewise.
18174         * modules/unistdio/u32-vsprintf-tests
18175         (test_u32_vsprintf1_LDADD): Likewise.
18176         * modules/unistdio/u8-vsnprintf-tests
18177         (test_u8_vsnprintf1_LDADD): Likewise.
18178         * modules/unistdio/u8-vsprintf-tests
18179         (test_u8_vsprintf1_LDADD): Likewise.
18180         * modules/unistdio/ulc-vsnprintf-tests
18181         (test_ulc_vsnprintf1_LDADD): Likewise.
18182         * modules/unistdio/ulc-vsprintf-tests
18183         (test_ulc_vsprintf1_LDADD): Likewise.
18184
18185         Fix linking of some uniconv tests on FreeBSD.
18186         * modules/uniconv/u16-conv-from-enc-tests
18187         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
18188         * modules/uniconv/u16-conv-to-enc-tests
18189         (test_u16_conv_to_enc_LDADD): Likewise.
18190         * modules/uniconv/u16-strconv-from-enc-tests
18191         (test_u16_strconv_from_enc_LDADD): Likewise.
18192         * modules/uniconv/u16-strconv-to-enc-tests
18193         (test_u16_strconv_to_enc_LDADD): Likewise.
18194         * modules/uniconv/u32-conv-from-enc-tests
18195         (test_u32_conv_from_enc_LDADD): Likewise.
18196         * modules/uniconv/u32-conv-to-enc-tests
18197         (test_u32_conv_to_enc_LDADD): Likewise.
18198         * modules/uniconv/u32-strconv-from-enc-tests
18199         (test_u32_strconv_from_enc_LDADD): Likewise.
18200         * modules/uniconv/u32-strconv-to-enc-tests
18201         (test_u32_strconv_to_enc_LDADD): Likewise.
18202         * modules/uniconv/u8-conv-from-enc-tests
18203         (test_u8_conv_from_enc_LDADD): Likewise.
18204         * modules/uniconv/u8-conv-to-enc-tests
18205         (test_u8_conv_to_enc_LDADD): Likewise.
18206         * modules/uniconv/u8-strconv-from-enc-tests
18207         (test_u8_strconv_from_enc_LDADD): Likewise.
18208         * modules/uniconv/u8-strconv-to-enc-tests
18209         (test_u8_strconv_to_enc_LDADD): Likewise.
18210
18211 2007-10-22  Bruno Haible  <bruno@clisp.org>
18212
18213         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
18214         size.
18215
18216 2007-10-22  Eric Blake  <ebb9@byu.net>
18217
18218         Tweak x*printf documentation.
18219         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
18220         variable name and comments.
18221         Suggested by Bruno Haible.
18222
18223 2007-10-22  Bruno Haible  <bruno@clisp.org>
18224
18225         * lib/acl.c (copy_acl): Fix file name in comment.
18226
18227 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18228
18229         Fix Tru64 problem with stdbool.h.
18230         * lib/stdbool.in.h (false, true):
18231         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
18232         Don't declare as an enum in this situation; it runs afoul of Tru64.
18233         Problem reported by Steven M. Schweda in
18234         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
18235
18236 2007-10-22  Eric Blake  <ebb9@byu.net>
18237
18238         Also wrap vf?printf.
18239         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
18240         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
18241         (xvprintf, xvfprintf): New functions.
18242
18243 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18244
18245         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
18246         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
18247
18248         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
18249         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
18250
18251 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18252
18253         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
18254         by Bruno Haible.
18255
18256 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18257
18258         * lib/getloadavg.c
18259         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
18260         Undef `sys' after including sys/table.h, for Tru64 4.0D.
18261
18262         * tests/test-i-ring.c: Work for C89.
18263
18264 2007-10-22  Bruno Haible  <bruno@clisp.org>
18265
18266         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
18267         -1u, in preprocessor expression, so that we don't test for the bug
18268         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
18269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
18270
18271 2007-10-22  Eric Blake  <ebb9@byu.net>
18272
18273         * tests/test-yesno.sh: Silence stderr during test.
18274
18275 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18276
18277         * modules/crypto/gc-camellia: New file.
18278
18279         * m4/gc-camellia.m4: New file.
18280
18281         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
18282
18283         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
18284
18285 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18286
18287         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
18288         --help to stdout.  Reported by sms@antinode.org (Steven
18289         M. Schweda).
18290
18291 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18292
18293         * users.txt: Fix link to libksba.
18294
18295 2007-10-21  Ben Pfaff  <blp@gnu.org>
18296
18297         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
18298         round.c roundf implementation that depends on floorf and ceilf to
18299         be tested unconditionally.
18300
18301 2007-10-21  Ben Pfaff  <blp@gnu.org>
18302
18303         * m4/check-libm-func.m4: Removed.
18304         * m4/check-math-lib.m4: New file.
18305         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
18306         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
18307         definition and lack of AC_LIBOBJ([roundf]).
18308         * m4/roundl.m4: Ditto, and similarly for roundl.
18309         * modules/round: Reference new m4 file.
18310         * modules/roundf: Ditto.
18311         * modules/roundl: Ditto.
18312         * tests/test-round2.c (main): Use ROUND instead of round.
18313         Bug report from Bruno Haible.
18314
18315 2007-10-21  Bruno Haible  <bruno@clisp.org>
18316
18317         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
18318         context.
18319
18320 2007-10-21  Bruno Haible  <bruno@clisp.org>
18321
18322         * tests/test-wcwidth.c (main): Allow negative result for some control
18323         characters.
18324
18325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
18326         Needed on OSF/1 5.1.
18327
18328 2007-10-21  Bruno Haible  <bruno@clisp.org>
18329
18330         * tests/test-floorf1.c: Include isnanf.h.
18331         (main): Use isnanf() instead of isnan().
18332         * tests/test-ceilf1.c: Include isnanf.h.
18333         (main): Use isnanf() instead of isnan().
18334         * tests/test-truncf1.c: Include isnanf.h.
18335         (main): Use isnanf() instead of isnan().
18336         * tests/test-roundf1.c: Include isnanf.h.
18337         (main): Use isnanf() instead of isnan().
18338
18339 2007-10-21  Eric Blake  <ebb9@byu.net>
18340
18341         * users.txt: Update URL for m4.
18342
18343 2007-10-21  Bruno Haible  <bruno@clisp.org>
18344
18345         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
18346
18347 2007-10-21  Bruno Haible  <bruno@clisp.org>
18348
18349         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
18350         Git's management files if the CVS files are not present.
18351
18352 2007-10-20  Bruno Haible  <bruno@clisp.org>
18353
18354         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
18355         gcc-3.4.x.
18356
18357 2007-10-20  Ben Pfaff  <blp@gnu.org>
18358
18359         * lib/math.in.h: Declare round, roundf, roundl if we are providing
18360         implementations.
18361         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
18362         * lib/round.c: New file.
18363         * lib/roundf.c: New file.
18364         * lib/roundl.c: New file.
18365         * m4/round.m4: New file.
18366         * m4/roundf.m4: New file.
18367         * m4/roundl.m4: New file.
18368         * m4/check-libm-func-m4: New file.
18369         * modules/math: Replace round, roundf, roundl related @VARS@ in
18370         math.in.h.
18371         * modules/round: New file.
18372         * modules/round-tests: New file.
18373         * modules/roundf: New file.
18374         * modules/roundf-tests: New file.
18375         * modules/roundl: New file.
18376         * modules/roundl-tests: New file.
18377         * tests/test-round1.c: New file.
18378         * tests/test-round2.c: New file.
18379         * tests/test-roundf1.c: New file.
18380         * tests/test-roundf2.c: New file.
18381         * tests/test-roundl.c: New file.
18382         * doc/functions/round.texi: Mention round module.
18383         * doc/functions/roundf.texi: Mention roundf module.
18384         * doc/functions/roundl.texi: Mention roundl module.
18385         * MODULES.html.sh: Mention new modules.
18386         Thanks to Bruno Haible for suggestions.
18387
18388 2007-10-20  Jim Meyering  <meyering@redhat.com>
18389
18390         * lib/xprintf.c: Include <config.h> unconditionally.
18391
18392         Change xprintf's license to GPL.
18393         * modules/xprintf (License): s/LGPL/GPL/, since this module
18394         depends on modules (exit and exitfail) which are GPL.
18395         Suggestion from Bruno Haible.
18396
18397         xprintf fixes.
18398         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
18399         Use a clearer diagnostic.
18400         Patch from Bruno Haible.
18401
18402 2007-10-20  Bruno Haible  <bruno@clisp.org>
18403
18404         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
18405         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
18406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18407
18408 2007-10-20  Bruno Haible  <bruno@clisp.org>
18409
18410         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
18411         precision in the comparison result > x - 1 or similar.
18412         * tests/test-ceilf2.c (correct_result_p): Likewise.
18413         * tests/test-truncf2.c (correct_result_p): Likewise.
18414         * tests/test-trunc2.c (correct_result_p): Likewise.
18415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18416
18417 2007-10-20  Bruno Haible  <bruno@clisp.org>
18418
18419         * modules/ceil: New file.
18420         * m4/ceil.m4: New file.
18421         * doc/functions/ceil.texi: Mention the 'ceil' module.
18422
18423 2007-10-20  Bruno Haible  <bruno@clisp.org>
18424
18425         * modules/floor: New file.
18426         * m4/floor.m4: New file.
18427         * doc/functions/floor.texi: Mention the 'floor' module.
18428
18429 2007-10-20  Bruno Haible  <bruno@clisp.org>
18430
18431         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
18432         of %a.
18433         * modules/floorf-tests (Depends-on): Likewise.
18434         * modules/truncf-tests (Depends-on): Likewise.
18435         * modules/trunc-tests (Depends-on): Likewise.
18436         Reported by Ben Pfaff.
18437
18438 2007-10-19  Jim Meyering  <meyering@redhat.com>
18439
18440         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
18441         Don't bother testing specific errno values.  Just test ferror.
18442
18443         New module: xprintf
18444         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
18445
18446 2007-10-19  Bruno Haible  <bruno@clisp.org>
18447
18448         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
18449         syntax.
18450         * modules/javaexec (Makefile.am): Likewise.
18451         * modules/relocatable-prog (Makefile.am): Likewise.
18452         Suggested by Jim Meyering.
18453
18454 2007-10-18  Bruno Haible  <bruno@clisp.org>
18455
18456         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
18457         Reported by Jim Meyering.
18458
18459 2007-10-18  Eric Blake  <ebb9@byu.net>
18460
18461         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
18462
18463 2007-10-18  Bruno Haible  <bruno@clisp.org>
18464
18465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
18466         the format string into writable memory. Needed in Fortify conditions.
18467
18468 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
18469             Bruno Haible  <bruno@clisp.org>
18470
18471         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
18472         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
18473         * modules/trim (Depends-on): Add mbchar.
18474         (configure.ac): Add gl_FUNC_MBRTOWC.
18475         (Makefile.am): Augment lib_SOURCES.
18476
18477 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
18478
18479         Modify glob.c to use fstatat and dirfd, to simplify it.
18480         Suggested by Eric Blake.
18481         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
18482         Don't include <stdbool.h>; not used.
18483         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
18484         (link_exists_p): Simplify implementation, since we can now assume
18485         dirfd and fstatat.
18486         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
18487
18488 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18489
18490         * gnulib-tool (func_get_dependencies): Fix sed script to
18491         match only tests.
18492
18493 2007-10-17  Bruno Haible  <bruno@clisp.org>
18494
18495         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
18496         allow locale names without encoding suffix.
18497         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18499
18500 2007-10-16  Bruno Haible  <bruno@clisp.org>
18501
18502         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
18503         * lib/getgroups.c (getgroups): Likewise.
18504         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
18505
18506 2007-10-16  Bruno Haible  <bruno@clisp.org>
18507
18508         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
18509         * modules/malloc-posix (License): Likewise.
18510         * modules/realloc-posix (License): Likewise.
18511         * modules/calloc-posix (License): Likewise.
18512         * modules/intprops (License): Change from GPL to LGPL, with
18513         Paul Eggert's approval.
18514
18515 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18516
18517         Merge glibc changes into lib/glob.c.
18518
18519         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
18520         2007-10-15 04:59:03 UTC.  Here are the changes:
18521
18522         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
18523
18524         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
18525
18526         * lib/glob.c: Add some branch prediction throughout.
18527
18528         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
18529
18530         [BZ #5103]
18531         * lib/glob.c (glob): Recognize patterns starting \/.
18532
18533         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
18534
18535         [BZ #3996]
18536         * lib/glob.c (attribute_hidden): Define if not defined.
18537         (glob): Unescape dirname, filename or username when needed and not
18538         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
18539         is NULL.  Handle unescaped [ in pattern without closing ].
18540         Don't pass GLOB_CHECK down to recursive glob for directories.
18541         (__glob_pattern_type): New function.
18542         (__glob_pattern_p): Implement using __glob_pattern_type.
18543         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
18544         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
18545         Remove unreachable code.
18546
18547         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
18548
18549         * lib/glob.c (glob_in_dir): Add some comments and asserts to
18550         explain why there are no leaks.
18551
18552         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
18553
18554         [BZ #3253]
18555         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
18556         time, rather allocate increasingly bigger arrays of pointers, if
18557         possible with alloca, if too large with malloc.
18558
18559 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18560
18561         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
18562         Problem reported by H.Merijn Brand in
18563         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
18564         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
18565         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
18566
18567 2007-10-15  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
18570         with explicit rpl_ prefix.
18571         * lib/fopen.c (fopen): Likewise.
18572         * lib/freopen.c (freopen): Likewise.
18573         * lib/iconv.c (iconv): Likewise.
18574         * lib/iconv_close.c (iconv_close): Likewise.
18575
18576 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18577
18578         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
18579
18580 2007-10-15  Bruno Haible  <bruno@clisp.org>
18581
18582         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
18583         <stddef.h> instead of <stdlib.h> since we only need NULL.
18584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18585
18586 2007-10-15  Bruno Haible  <bruno@clisp.org>
18587
18588         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
18589         Replace paragraph talking about LIBOBJS.
18590         Reported by Colin Watson <cjwatson@debian.org>.
18591
18592 2007-10-15  Bruno Haible  <bruno@clisp.org>
18593
18594         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
18595         <stdlib.h> before using NULL.
18596
18597 2007-10-15  Simon Josefsson  <simon@josefsson.org>
18598
18599         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
18600         Reported by Albert Chin <china@thewrittenword.com>.
18601
18602 2007-10-14  Bruno Haible  <bruno@clisp.org>
18603
18604         * modules/iconv_open-utf-tests: New file.
18605         * tests/test-iconv-utf.c: New file.
18606
18607         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
18608         * modules/iconv_open-utf: New file.
18609         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
18610         (iconv, iconv_close): New declarations.
18611         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
18612         be defined.
18613         (iconv_open): Add special handling of conversion between UTF-8 and
18614         UTF-{16,32}{BE,LE}.
18615         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
18616         * lib/iconv_close.c: New file.
18617         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
18618         gl_FUNC_ICONV_OPEN.
18619         (gl_FUNC_ICONV_OPEN): Use it.
18620         (gl_FUNC_ICONV_OPEN_UTF): New macro.
18621         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
18622         and REPLACE_ICONV_UTF.
18623         * modules/iconv_open (Depends-on): Add c-strcase.
18624         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
18625         ICONV_CONST.
18626         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
18627
18628 2007-10-13  Albert Chin  <china@thewrittenword.com>
18629             Bruno Haible  <bruno@clisp.org>
18630
18631         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
18632         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
18633
18634 2007-10-13  Bruno Haible  <bruno@clisp.org>
18635
18636         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
18637         defined, use the ISO C99 inline semantics.
18638         * lib/argp.h (ARGP_EI): Likewise.
18639
18640 2007-10-13  Bruno Haible  <bruno@clisp.org>
18641
18642         Handle 'inline' change in gcc 4.3.0.
18643         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
18644         argp_fmtstream_write, argp_fmtstream_set_lmargin,
18645         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
18646         argp_fmtstream_point): Disable 'extern' declaration if the function
18647         definition is going to be provided inline.
18648         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
18649         semantics, not the ISO C99 inline semantics.
18650         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
18651         'extern' declaration if the function definition is going to be provided
18652         inline.
18653         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
18654         the GNU C inline semantics, not the ISO C99 inline semantics. With
18655         GCC 4.2, avoid a warning.
18656
18657 2007-10-13  Bruno Haible  <bruno@clisp.org>
18658
18659         * lib/freading.h (freading): Enable the use of __freading for
18660         glibc >= 2.7.
18661         * lib/freading.c (freading): Likewise.
18662
18663 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18664
18665         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
18666         "warning: C99 inline functions are not supported; using GNU89".
18667
18668 2007-10-12  Bruno Haible  <bruno@clisp.org>
18669
18670         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
18671         of 2.
18672         * tests/test-ceilf2.c: New file.
18673         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
18674
18675         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
18676         * modules/ceilf-tests: Update.
18677
18678 2007-10-12  Bruno Haible  <bruno@clisp.org>
18679
18680         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
18681         of 2.
18682         * tests/test-floorf2.c: New file.
18683         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
18684
18685         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
18686         * modules/floorf-tests: Update.
18687
18688 2007-10-12  Bruno Haible  <bruno@clisp.org>
18689
18690         * tests/test-trunc2.c: New file.
18691         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
18692
18693         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
18694         * modules/trunc-tests: Update.
18695
18696 2007-10-12  Bruno Haible  <bruno@clisp.org>
18697
18698         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
18699         of 2.
18700         * tests/test-truncf2.c: New file.
18701         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
18702
18703         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
18704         * modules/truncf-tests: Update.
18705
18706 2007-10-11  Eric Blake  <ebb9@byu.net>
18707
18708         Don't claim strerror is broken on Interix.
18709         * doc/functions/strerror.texi (strerror): Known broken systems are
18710         now Solaris 8, and not Interix.
18711         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
18712         Interix on cross-compile.
18713         Reported by Martin Koeppe in
18714         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
18715
18716 2007-10-11  Bruno Haible  <bruno@clisp.org>
18717
18718         * modules/i-ring-tests: New file.
18719         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
18720         instead of assert.
18721
18722 2007-10-11  Bruno Haible  <bruno@clisp.org>
18723
18724         * modules/filenamecat-tests: New file.
18725         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
18726         * lib/filenamecat.c: Remove test code.
18727
18728 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18729
18730         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
18731
18732         * lib/strerror.c: Include <string.h> always, to test interface,
18733         and to remove the need for the dummy.
18734         Include intprops.h to compute width instead of doing it ourselves
18735         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
18736         (strerror): Define it to return NULL if there's no system strerror.
18737         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
18738         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
18739         ancient pre-strerror Unix systems well any more.  Saying "unknown
18740         system error" is enough.
18741         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
18742         simpler strerror.c implementation.
18743         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
18744         Simplify the tests to reflect the simpler strerror implementation.
18745         * modules/strerror (Depends-on): Add intprops.
18746
18747 2007-10-09  Eric Blake  <ebb9@byu.net>
18748
18749         Silence test-fpending.
18750         * modules/fpending-tests (Files): Add wrapper script.
18751         * tests/test-fpending.sh: New file.
18752
18753 2007-10-09  Bruno Haible  <bruno@clisp.org>
18754
18755         * MODULES.html.sh (func_module): Don't create a hyperlink for
18756         function names like 'printf_frexp'.
18757         (Misc): Add crc, memxor.
18758         (Characteristics of floating types): New section.
18759         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
18760         isnanf-nolibm, signbit, trunc, truncf, truncl.
18761         (Enhancements for ISO C 99 functions): New subsection Input/output.
18762         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
18763         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
18764         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
18765         (Compatibility checks for POSIX:2001 functions): Add clock-time.
18766         (Enhancements for POSIX:2001 functions): Add chdir-long.
18767         (File system functions): Add areadlink, chdir-safer, read-file.
18768         Remove cycle-check.
18769         (File system as inode set): New section.
18770         (Date and time): Add gethrxtime.
18771         (Multithreading): Add openmp.
18772         (Internationalization functions): Add localename.
18773         (Unicode string functions): Add unistr/u*-mbsnlen.
18774         (Support for maintaining and releasing projects): Add git-version-gen.
18775         (Lone files): Remove directories.
18776
18777 2007-10-08  Ben Pfaff  <blp@gnu.org>
18778
18779         * lib/xmalloca.h: Fix typo in comment.
18780
18781 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18782
18783         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
18784         when avoiding problems with integer overflow.  Use a portable test
18785         instead.
18786
18787 2007-10-08  Simon Josefsson  <simon@josefsson.org>
18788
18789         * modules/dummy (License): Change to LGPLv2+.
18790         * modules/float (License): Likewise
18791         * modules/realloc (License): Likewise
18792         * modules/stdlib (License): Likewise
18793
18794 2007-10-07  Bruno Haible  <bruno@clisp.org>
18795
18796         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
18797         * floor.c (TWO_MANT_DIG): Likewise.
18798         * ceil.c (TWO_MANT_DIG): Likewise.
18799         Reported by Ben Pfaff.
18800
18801 2007-10-07  Bruno Haible  <bruno@clisp.org>
18802
18803         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
18804         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
18805         * lib/frexp.c (FUNC): Likewise.
18806         * lib/printf-frexp.h (printf_frexp): Likewise.
18807         * lib/printf-frexpl.h (printf_frexpl): Likewise.
18808         * lib/printf-frexp.c (FUNC): Likewise.
18809         Suggested by Jim Meyering.
18810
18811 2007-10-07  Jim Meyering  <meyering@redhat.com>
18812
18813         Make xnanosleep's integer overflow test more robust.
18814         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
18815         so that gcc-4.3.0 doesn't optimize away this test for overflow.
18816
18817 2007-10-07  Bruno Haible  <bruno@clisp.org>
18818
18819         * NEWS: Mention the license change.
18820
18821         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
18822         abbreviations in the modules files.
18823
18824         Change copyright notice from GPLv2+ to GPLv3+.
18825         * README: Change copyright notice.
18826         * MODULES.html.sh: Likewise.
18827         * build-aux/bootstrap.conf: Likewise.
18828         * build-aux/config.libpath: Likewise.
18829         * build-aux/csharpcomp.sh.in: Likewise.
18830         * build-aux/csharpexec.sh.in: Likewise.
18831         * build-aux/install-reloc: Likewise.
18832         * build-aux/javacomp.sh.in: Likewise.
18833         * build-aux/javaexec.sh.in: Likewise.
18834         * build-aux/ldd.sh.in: Likewise.
18835         * build-aux/reloc-ldflags: Likewise.
18836         * build-aux/relocatable.sh.in: Likewise.
18837         * build-aux/x-to-1.in: Likewise.
18838         * check-module: Likewise.
18839         * config/srclistvars.sh: Likewise.
18840         * gnulib-tool: Likewise.
18841         * lib/acl-internal.h: Likewise.
18842         * lib/acl.c: Likewise.
18843         * lib/acl.h: Likewise.
18844         * lib/acl_entries.c: Likewise.
18845         * lib/areadlink-with-size.c: Likewise.
18846         * lib/areadlink.c: Likewise.
18847         * lib/areadlink.h: Likewise.
18848         * lib/argmatch.c: Likewise.
18849         * lib/argmatch.h: Likewise.
18850         * lib/argp-ba.c: Likewise.
18851         * lib/argp-eexst.c: Likewise.
18852         * lib/argp-fmtstream.c: Likewise.
18853         * lib/argp-fmtstream.h: Likewise.
18854         * lib/argp-fs-xinl.c: Likewise.
18855         * lib/argp-help.c: Likewise.
18856         * lib/argp-namefrob.h: Likewise.
18857         * lib/argp-parse.c: Likewise.
18858         * lib/argp-pin.c: Likewise.
18859         * lib/argp-pv.c: Likewise.
18860         * lib/argp-pvh.c: Likewise.
18861         * lib/argp-xinl.c: Likewise.
18862         * lib/argp.h: Likewise.
18863         * lib/at-func.c: Likewise.
18864         * lib/atanl.c: Likewise.
18865         * lib/backupfile.c: Likewise.
18866         * lib/backupfile.h: Likewise.
18867         * lib/basename.c: Likewise.
18868         * lib/binary-io.h: Likewise.
18869         * lib/byteswap.in.h: Likewise.
18870         * lib/c-stack.c: Likewise.
18871         * lib/c-stack.h: Likewise.
18872         * lib/c-strcasestr.c: Likewise.
18873         * lib/c-strcasestr.h: Likewise.
18874         * lib/c-strstr.c: Likewise.
18875         * lib/c-strstr.h: Likewise.
18876         * lib/c-strtod.c: Likewise.
18877         * lib/calloc.c: Likewise.
18878         * lib/canon-host.c: Likewise.
18879         * lib/canon-host.h: Likewise.
18880         * lib/canonicalize-lgpl.c: Likewise.
18881         * lib/canonicalize.c: Likewise.
18882         * lib/canonicalize.h: Likewise.
18883         * lib/ceil.c: Likewise.
18884         * lib/ceilf.c: Likewise.
18885         * lib/ceill.c: Likewise.
18886         * lib/chdir-long.c: Likewise.
18887         * lib/chdir-long.h: Likewise.
18888         * lib/chdir-safer.c: Likewise.
18889         * lib/chdir-safer.h: Likewise.
18890         * lib/chown.c: Likewise.
18891         * lib/classpath.c: Likewise.
18892         * lib/classpath.h: Likewise.
18893         * lib/clean-temp.c: Likewise.
18894         * lib/clean-temp.h: Likewise.
18895         * lib/cloexec.c: Likewise.
18896         * lib/close-stream.c: Likewise.
18897         * lib/closein.c: Likewise.
18898         * lib/closein.h: Likewise.
18899         * lib/closeout.c: Likewise.
18900         * lib/closeout.h: Likewise.
18901         * lib/concat-filename.c: Likewise.
18902         * lib/copy-file.c: Likewise.
18903         * lib/copy-file.h: Likewise.
18904         * lib/count-one-bits.h: Likewise.
18905         * lib/crc.c: Likewise.
18906         * lib/crc.h: Likewise.
18907         * lib/creat-safer.c: Likewise.
18908         * lib/csharpcomp.c: Likewise.
18909         * lib/csharpcomp.h: Likewise.
18910         * lib/csharpexec.c: Likewise.
18911         * lib/csharpexec.h: Likewise.
18912         * lib/cycle-check.c: Likewise.
18913         * lib/cycle-check.h: Likewise.
18914         * lib/diacrit.c: Likewise.
18915         * lib/diacrit.h: Likewise.
18916         * lib/diffseq.h: Likewise.
18917         * lib/dirchownmod.c: Likewise.
18918         * lib/dirent.in.h: Likewise.
18919         * lib/dirfd.c: Likewise.
18920         * lib/dirfd.h: Likewise.
18921         * lib/dirname.c: Likewise.
18922         * lib/dirname.h: Likewise.
18923         * lib/dummy.c: Likewise.
18924         * lib/dup-safer.c: Likewise.
18925         * lib/dup2.c: Likewise.
18926         * lib/eealloc.h: Likewise.
18927         * lib/error.c: Likewise.
18928         * lib/error.h: Likewise.
18929         * lib/euidaccess.c: Likewise.
18930         * lib/exclude.c: Likewise.
18931         * lib/exclude.h: Likewise.
18932         * lib/execute.c: Likewise.
18933         * lib/execute.h: Likewise.
18934         * lib/exitfail.c: Likewise.
18935         * lib/exitfail.h: Likewise.
18936         * lib/expl.c: Likewise.
18937         * lib/fatal-signal.c: Likewise.
18938         * lib/fatal-signal.h: Likewise.
18939         * lib/fbufmode.c: Likewise.
18940         * lib/fbufmode.h: Likewise.
18941         * lib/fchdir.c: Likewise.
18942         * lib/fchmodat.c: Likewise.
18943         * lib/fchownat.c: Likewise.
18944         * lib/fcntl--.h: Likewise.
18945         * lib/fcntl-safer.h: Likewise.
18946         * lib/fcntl.in.h: Likewise.
18947         * lib/fd-safer.c: Likewise.
18948         * lib/fflush.c: Likewise.
18949         * lib/file-has-acl.c: Likewise.
18950         * lib/file-set.c: Likewise.
18951         * lib/file-type.c: Likewise.
18952         * lib/file-type.h: Likewise.
18953         * lib/fileblocks.c: Likewise.
18954         * lib/filemode.c: Likewise.
18955         * lib/filemode.h: Likewise.
18956         * lib/filename.h: Likewise.
18957         * lib/filenamecat.c: Likewise.
18958         * lib/filenamecat.h: Likewise.
18959         * lib/findprog.c: Likewise.
18960         * lib/findprog.h: Likewise.
18961         * lib/float.in.h: Likewise.
18962         * lib/floor.c: Likewise.
18963         * lib/floorf.c: Likewise.
18964         * lib/floorl.c: Likewise.
18965         * lib/fopen-safer.c: Likewise.
18966         * lib/fopen.c: Likewise.
18967         * lib/fpending.c: Likewise.
18968         * lib/fpending.h: Likewise.
18969         * lib/fprintf.c: Likewise.
18970         * lib/fprintftime.h: Likewise.
18971         * lib/fpucw.h: Likewise.
18972         * lib/fpurge.c: Likewise.
18973         * lib/fpurge.h: Likewise.
18974         * lib/freadable.c: Likewise.
18975         * lib/freadable.h: Likewise.
18976         * lib/freadahead.c: Likewise.
18977         * lib/freadahead.h: Likewise.
18978         * lib/freading.c: Likewise.
18979         * lib/freading.h: Likewise.
18980         * lib/free.c: Likewise.
18981         * lib/freopen.c: Likewise.
18982         * lib/frexp.c: Likewise.
18983         * lib/frexpl.c: Likewise.
18984         * lib/fseek.c: Likewise.
18985         * lib/fseterr.c: Likewise.
18986         * lib/fseterr.h: Likewise.
18987         * lib/fstatat.c: Likewise.
18988         * lib/fstrcmp.c: Likewise.
18989         * lib/fstrcmp.h: Likewise.
18990         * lib/fsusage.c: Likewise.
18991         * lib/fsusage.h: Likewise.
18992         * lib/ftell.c: Likewise.
18993         * lib/ftello.c: Likewise.
18994         * lib/fts-cycle.c: Likewise.
18995         * lib/fts.c: Likewise.
18996         * lib/fts_.h: Likewise.
18997         * lib/full-read.c: Likewise.
18998         * lib/full-read.h: Likewise.
18999         * lib/full-write.c: Likewise.
19000         * lib/full-write.h: Likewise.
19001         * lib/fwritable.c: Likewise.
19002         * lib/fwritable.h: Likewise.
19003         * lib/fwriteerror.c: Likewise.
19004         * lib/fwriteerror.h: Likewise.
19005         * lib/fwriting.c: Likewise.
19006         * lib/fwriting.h: Likewise.
19007         * lib/gcd.c: Likewise.
19008         * lib/gcd.h: Likewise.
19009         * lib/getcwd.c: Likewise.
19010         * lib/getdate.h: Likewise.
19011         * lib/getdate.y: Likewise.
19012         * lib/getdomainname.c: Likewise.
19013         * lib/getdomainname.h: Likewise.
19014         * lib/getgroups.c: Likewise.
19015         * lib/gethostname.c: Likewise.
19016         * lib/gethrxtime.c: Likewise.
19017         * lib/gethrxtime.h: Likewise.
19018         * lib/getloadavg.c: Likewise.
19019         * lib/getndelim2.c: Likewise.
19020         * lib/getndelim2.h: Likewise.
19021         * lib/getnline.c: Likewise.
19022         * lib/getnline.h: Likewise.
19023         * lib/getopt.c: Likewise.
19024         * lib/getopt.in.h: Likewise.
19025         * lib/getopt1.c: Likewise.
19026         * lib/getopt_int.h: Likewise.
19027         * lib/getpagesize.h: Likewise.
19028         * lib/getsubopt.c: Likewise.
19029         * lib/gettime.c: Likewise.
19030         * lib/getugroups.c: Likewise.
19031         * lib/getugroups.h: Likewise.
19032         * lib/getusershell.c: Likewise.
19033         * lib/gl_anyavltree_list1.h: Likewise.
19034         * lib/gl_anyavltree_list2.h: Likewise.
19035         * lib/gl_anyhash_list1.h: Likewise.
19036         * lib/gl_anyhash_list2.h: Likewise.
19037         * lib/gl_anylinked_list1.h: Likewise.
19038         * lib/gl_anylinked_list2.h: Likewise.
19039         * lib/gl_anyrbtree_list1.h: Likewise.
19040         * lib/gl_anyrbtree_list2.h: Likewise.
19041         * lib/gl_anytree_list1.h: Likewise.
19042         * lib/gl_anytree_list2.h: Likewise.
19043         * lib/gl_anytree_oset.h: Likewise.
19044         * lib/gl_anytreehash_list1.h: Likewise.
19045         * lib/gl_anytreehash_list2.h: Likewise.
19046         * lib/gl_array_list.c: Likewise.
19047         * lib/gl_array_list.h: Likewise.
19048         * lib/gl_array_oset.c: Likewise.
19049         * lib/gl_array_oset.h: Likewise.
19050         * lib/gl_avltree_list.c: Likewise.
19051         * lib/gl_avltree_list.h: Likewise.
19052         * lib/gl_avltree_oset.c: Likewise.
19053         * lib/gl_avltree_oset.h: Likewise.
19054         * lib/gl_avltreehash_list.c: Likewise.
19055         * lib/gl_avltreehash_list.h: Likewise.
19056         * lib/gl_carray_list.c: Likewise.
19057         * lib/gl_carray_list.h: Likewise.
19058         * lib/gl_linked_list.c: Likewise.
19059         * lib/gl_linked_list.h: Likewise.
19060         * lib/gl_linkedhash_list.c: Likewise.
19061         * lib/gl_linkedhash_list.h: Likewise.
19062         * lib/gl_list.c: Likewise.
19063         * lib/gl_list.h: Likewise.
19064         * lib/gl_oset.c: Likewise.
19065         * lib/gl_oset.h: Likewise.
19066         * lib/gl_rbtree_list.c: Likewise.
19067         * lib/gl_rbtree_list.h: Likewise.
19068         * lib/gl_rbtree_oset.c: Likewise.
19069         * lib/gl_rbtree_oset.h: Likewise.
19070         * lib/gl_rbtreehash_list.c: Likewise.
19071         * lib/gl_rbtreehash_list.h: Likewise.
19072         * lib/gl_sublist.c: Likewise.
19073         * lib/gl_sublist.h: Likewise.
19074         * lib/group-member.c: Likewise.
19075         * lib/group-member.h: Likewise.
19076         * lib/hard-locale.c: Likewise.
19077         * lib/hard-locale.h: Likewise.
19078         * lib/hash-pjw.c: Likewise.
19079         * lib/hash-pjw.h: Likewise.
19080         * lib/hash-triple.c: Likewise.
19081         * lib/hash.c: Likewise.
19082         * lib/hash.h: Likewise.
19083         * lib/human.c: Likewise.
19084         * lib/human.h: Likewise.
19085         * lib/i-ring.c: Likewise.
19086         * lib/i-ring.h: Likewise.
19087         * lib/idcache.c: Likewise.
19088         * lib/imaxabs.c: Likewise.
19089         * lib/imaxdiv.c: Likewise.
19090         * lib/inet_pton.c: Likewise.
19091         * lib/inet_pton.h: Likewise.
19092         * lib/intprops.h: Likewise.
19093         * lib/inttostr.c: Likewise.
19094         * lib/inttostr.h: Likewise.
19095         * lib/inttypes.in.h: Likewise.
19096         * lib/isapipe.c: Likewise.
19097         * lib/isdir.c: Likewise.
19098         * lib/isnan.c: Likewise.
19099         * lib/isnan.h: Likewise.
19100         * lib/isnanf.c: Likewise.
19101         * lib/isnanf.h: Likewise.
19102         * lib/isnanl-nolibm.h: Likewise.
19103         * lib/isnanl.c: Likewise.
19104         * lib/isnanl.h: Likewise.
19105         * lib/javacomp.c: Likewise.
19106         * lib/javacomp.h: Likewise.
19107         * lib/javaexec.c: Likewise.
19108         * lib/javaexec.h: Likewise.
19109         * lib/javaversion.c: Likewise.
19110         * lib/javaversion.h: Likewise.
19111         * lib/javaversion.java: Likewise.
19112         * lib/lbrkprop.h: Likewise.
19113         * lib/lchmod.h: Likewise.
19114         * lib/lchown.c: Likewise.
19115         * lib/ldexpl.c: Likewise.
19116         * lib/linebreak.c: Likewise.
19117         * lib/linebreak.h: Likewise.
19118         * lib/linebuffer.c: Likewise.
19119         * lib/linebuffer.h: Likewise.
19120         * lib/locale.in.h: Likewise.
19121         * lib/logl.c: Likewise.
19122         * lib/long-options.c: Likewise.
19123         * lib/long-options.h: Likewise.
19124         * lib/lstat.c: Likewise.
19125         * lib/lstat.h: Likewise.
19126         * lib/math.in.h: Likewise.
19127         * lib/mbchar.c: Likewise.
19128         * lib/mbchar.h: Likewise.
19129         * lib/mbfile.h: Likewise.
19130         * lib/mbiter.h: Likewise.
19131         * lib/mbscasecmp.c: Likewise.
19132         * lib/mbscasestr.c: Likewise.
19133         * lib/mbschr.c: Likewise.
19134         * lib/mbscspn.c: Likewise.
19135         * lib/mbslen.c: Likewise.
19136         * lib/mbsncasecmp.c: Likewise.
19137         * lib/mbsnlen.c: Likewise.
19138         * lib/mbspbrk.c: Likewise.
19139         * lib/mbspcasecmp.c: Likewise.
19140         * lib/mbsrchr.c: Likewise.
19141         * lib/mbssep.c: Likewise.
19142         * lib/mbsspn.c: Likewise.
19143         * lib/mbsstr.c: Likewise.
19144         * lib/mbstok_r.c: Likewise.
19145         * lib/mbswidth.c: Likewise.
19146         * lib/mbswidth.h: Likewise.
19147         * lib/mbuiter.h: Likewise.
19148         * lib/memcasecmp.c: Likewise.
19149         * lib/memcasecmp.h: Likewise.
19150         * lib/memchr.c: Likewise.
19151         * lib/memcmp.c: Likewise.
19152         * lib/memcoll.c: Likewise.
19153         * lib/memcoll.h: Likewise.
19154         * lib/memcpy.c: Likewise.
19155         * lib/memrchr.c: Likewise.
19156         * lib/mkancesdirs.c: Likewise.
19157         * lib/mkdir-p.c: Likewise.
19158         * lib/mkdir-p.h: Likewise.
19159         * lib/mkdir.c: Likewise.
19160         * lib/mkdirat.c: Likewise.
19161         * lib/mkdtemp.c: Likewise.
19162         * lib/mkstemp-safer.c: Likewise.
19163         * lib/mkstemp.c: Likewise.
19164         * lib/modechange.c: Likewise.
19165         * lib/modechange.h: Likewise.
19166         * lib/mountlist.c: Likewise.
19167         * lib/mountlist.h: Likewise.
19168         * lib/mpsort.c: Likewise.
19169         * lib/nanosleep.c: Likewise.
19170         * lib/obstack.c: Likewise.
19171         * lib/obstack.h: Likewise.
19172         * lib/open-safer.c: Likewise.
19173         * lib/open.c: Likewise.
19174         * lib/openat-die.c: Likewise.
19175         * lib/openat-priv.h: Likewise.
19176         * lib/openat-proc.c: Likewise.
19177         * lib/openat.c: Likewise.
19178         * lib/openat.h: Likewise.
19179         * lib/pagealign_alloc.c: Likewise.
19180         * lib/pagealign_alloc.h: Likewise.
19181         * lib/physmem.c: Likewise.
19182         * lib/physmem.h: Likewise.
19183         * lib/pipe-safer.c: Likewise.
19184         * lib/pipe.c: Likewise.
19185         * lib/pipe.h: Likewise.
19186         * lib/posixtm.c: Likewise.
19187         * lib/posixtm.h: Likewise.
19188         * lib/posixver.c: Likewise.
19189         * lib/printf-frexp.c: Likewise.
19190         * lib/printf-frexp.h: Likewise.
19191         * lib/printf-frexpl.c: Likewise.
19192         * lib/printf-frexpl.h: Likewise.
19193         * lib/printf.c: Likewise.
19194         * lib/progname.c: Likewise.
19195         * lib/progname.h: Likewise.
19196         * lib/progreloc.c: Likewise.
19197         * lib/putenv.c: Likewise.
19198         * lib/quote.c: Likewise.
19199         * lib/quote.h: Likewise.
19200         * lib/quotearg.c: Likewise.
19201         * lib/quotearg.h: Likewise.
19202         * lib/raise.c: Likewise.
19203         * lib/readline.c: Likewise.
19204         * lib/readline.h: Likewise.
19205         * lib/readlink.c: Likewise.
19206         * lib/readtokens.c: Likewise.
19207         * lib/readtokens.h: Likewise.
19208         * lib/readtokens0.c: Likewise.
19209         * lib/readtokens0.h: Likewise.
19210         * lib/readutmp.c: Likewise.
19211         * lib/readutmp.h: Likewise.
19212         * lib/realloc.c: Likewise.
19213         * lib/relocwrapper.c: Likewise.
19214         * lib/rename-dest-slash.c: Likewise.
19215         * lib/rename.c: Likewise.
19216         * lib/rmdir.c: Likewise.
19217         * lib/rpmatch.c: Likewise.
19218         * lib/safe-read.c: Likewise.
19219         * lib/safe-read.h: Likewise.
19220         * lib/safe-write.c: Likewise.
19221         * lib/safe-write.h: Likewise.
19222         * lib/same-inode.h: Likewise.
19223         * lib/same.c: Likewise.
19224         * lib/same.h: Likewise.
19225         * lib/save-cwd.c: Likewise.
19226         * lib/save-cwd.h: Likewise.
19227         * lib/savedir.c: Likewise.
19228         * lib/savedir.h: Likewise.
19229         * lib/savewd.c: Likewise.
19230         * lib/savewd.h: Likewise.
19231         * lib/search.in.h: Likewise.
19232         * lib/setenv.c: Likewise.
19233         * lib/setenv.h: Likewise.
19234         * lib/settime.c: Likewise.
19235         * lib/sh-quote.c: Likewise.
19236         * lib/sh-quote.h: Likewise.
19237         * lib/sig2str.c: Likewise.
19238         * lib/sig2str.h: Likewise.
19239         * lib/signal.in.h: Likewise.
19240         * lib/signbitd.c: Likewise.
19241         * lib/signbitf.c: Likewise.
19242         * lib/signbitl.c: Likewise.
19243         * lib/sigprocmask.c: Likewise.
19244         * lib/sincosl.c: Likewise.
19245         * lib/sleep.c: Likewise.
19246         * lib/sprintf.c: Likewise.
19247         * lib/sqrtl.c: Likewise.
19248         * lib/stat-time.h: Likewise.
19249         * lib/stdio--.h: Likewise.
19250         * lib/stdio-safer.h: Likewise.
19251         * lib/stdlib--.h: Likewise.
19252         * lib/stdlib-safer.h: Likewise.
19253         * lib/stdlib.in.h: Likewise.
19254         * lib/stpcpy.c: Likewise.
19255         * lib/stpncpy.c: Likewise.
19256         * lib/strchrnul.c: Likewise.
19257         * lib/strcspn.c: Likewise.
19258         * lib/strerror.c: Likewise.
19259         * lib/strftime.c: Likewise.
19260         * lib/strftime.h: Likewise.
19261         * lib/striconveh.c: Likewise.
19262         * lib/striconveh.h: Likewise.
19263         * lib/striconveha.c: Likewise.
19264         * lib/striconveha.h: Likewise.
19265         * lib/stripslash.c: Likewise.
19266         * lib/strnlen1.c: Likewise.
19267         * lib/strnlen1.h: Likewise.
19268         * lib/strtod.c: Likewise.
19269         * lib/strtoimax.c: Likewise.
19270         * lib/strtok_r.c: Likewise.
19271         * lib/strtol.c: Likewise.
19272         * lib/strtoll.c: Likewise.
19273         * lib/strtoul.c: Likewise.
19274         * lib/strtoull.c: Likewise.
19275         * lib/sysexits.in.h: Likewise.
19276         * lib/tempname.c: Likewise.
19277         * lib/tempname.h: Likewise.
19278         * lib/timespec.h: Likewise.
19279         * lib/tls.c: Likewise.
19280         * lib/tls.h: Likewise.
19281         * lib/tmpdir.c: Likewise.
19282         * lib/tmpdir.h: Likewise.
19283         * lib/tmpfile-safer.c: Likewise.
19284         * lib/tmpfile.c: Likewise.
19285         * lib/trigl.c: Likewise.
19286         * lib/trigl.h: Likewise.
19287         * lib/trim.c: Likewise.
19288         * lib/trim.h: Likewise.
19289         * lib/trunc.c: Likewise.
19290         * lib/truncf.c: Likewise.
19291         * lib/truncl.c: Likewise.
19292         * lib/tsearch.c: Likewise.
19293         * lib/unicodeio.c: Likewise.
19294         * lib/unicodeio.h: Likewise.
19295         * lib/unistd--.h: Likewise.
19296         * lib/unistd-safer.h: Likewise.
19297         * lib/unistdio/ulc-fprintf.c: Likewise.
19298         * lib/unistdio/ulc-vfprintf.c: Likewise.
19299         * lib/unlinkdir.c: Likewise.
19300         * lib/unlinkdir.h: Likewise.
19301         * lib/unlocked-io.h: Likewise.
19302         * lib/unsetenv.c: Likewise.
19303         * lib/userspec.c: Likewise.
19304         * lib/utime.c: Likewise.
19305         * lib/utimecmp.c: Likewise.
19306         * lib/utimecmp.h: Likewise.
19307         * lib/utimens.c: Likewise.
19308         * lib/verify.h: Likewise.
19309         * lib/verror.c: Likewise.
19310         * lib/verror.h: Likewise.
19311         * lib/version-etc-fsf.c: Likewise.
19312         * lib/version-etc.c: Likewise.
19313         * lib/version-etc.h: Likewise.
19314         * lib/vfprintf.c: Likewise.
19315         * lib/vprintf.c: Likewise.
19316         * lib/vsprintf.c: Likewise.
19317         * lib/w32spawn.h: Likewise.
19318         * lib/wait-process.c: Likewise.
19319         * lib/wait-process.h: Likewise.
19320         * lib/wcwidth.c: Likewise.
19321         * lib/write-any-file.c: Likewise.
19322         * lib/xalloc-die.c: Likewise.
19323         * lib/xalloc.h: Likewise.
19324         * lib/xasprintf.c: Likewise.
19325         * lib/xgetcwd.c: Likewise.
19326         * lib/xgetcwd.h: Likewise.
19327         * lib/xgetdomainname.c: Likewise.
19328         * lib/xgetdomainname.h: Likewise.
19329         * lib/xgethostname.c: Likewise.
19330         * lib/xmalloc.c: Likewise.
19331         * lib/xmalloca.c: Likewise.
19332         * lib/xmalloca.h: Likewise.
19333         * lib/xmemcoll.c: Likewise.
19334         * lib/xnanosleep.c: Likewise.
19335         * lib/xreadlink.c: Likewise.
19336         * lib/xreadlink.h: Likewise.
19337         * lib/xsetenv.c: Likewise.
19338         * lib/xsetenv.h: Likewise.
19339         * lib/xstriconv.c: Likewise.
19340         * lib/xstriconv.h: Likewise.
19341         * lib/xstrndup.c: Likewise.
19342         * lib/xstrndup.h: Likewise.
19343         * lib/xstrtod.c: Likewise.
19344         * lib/xstrtod.h: Likewise.
19345         * lib/xstrtol-error.c: Likewise.
19346         * lib/xstrtol.c: Likewise.
19347         * lib/xstrtol.h: Likewise.
19348         * lib/xtime.h: Likewise.
19349         * lib/xvasprintf.c: Likewise.
19350         * lib/xvasprintf.h: Likewise.
19351         * lib/yesno.c: Likewise.
19352         * lib/yesno.h: Likewise.
19353         * posix-modules: Likewise.
19354         * tests/test-alloca-opt.c: Likewise.
19355         * tests/test-arcfour.c: Likewise.
19356         * tests/test-arctwo.c: Likewise.
19357         * tests/test-argmatch.c: Likewise.
19358         * tests/test-argp-2.sh: Likewise.
19359         * tests/test-argp.c: Likewise.
19360         * tests/test-arpa_inet.c: Likewise.
19361         * tests/test-array_list.c: Likewise.
19362         * tests/test-array_oset.c: Likewise.
19363         * tests/test-atexit.c: Likewise.
19364         * tests/test-avltree_list.c: Likewise.
19365         * tests/test-avltree_oset.c: Likewise.
19366         * tests/test-avltreehash_list.c: Likewise.
19367         * tests/test-base64.c: Likewise.
19368         * tests/test-binary-io.c: Likewise.
19369         * tests/test-byteswap.c: Likewise.
19370         * tests/test-c-ctype.c: Likewise.
19371         * tests/test-c-strcasecmp.c: Likewise.
19372         * tests/test-c-strcasestr.c: Likewise.
19373         * tests/test-c-strncasecmp.c: Likewise.
19374         * tests/test-c-strstr.c: Likewise.
19375         * tests/test-canonicalize-lgpl.c: Likewise.
19376         * tests/test-canonicalize.c: Likewise.
19377         * tests/test-carray_list.c: Likewise.
19378         * tests/test-ceilf.c: Likewise.
19379         * tests/test-ceill.c: Likewise.
19380         * tests/test-count-one-bits.c: Likewise.
19381         * tests/test-crc.c: Likewise.
19382         * tests/test-dirname.c: Likewise.
19383         * tests/test-fbufmode.c: Likewise.
19384         * tests/test-fcntl.c: Likewise.
19385         * tests/test-fflush.c: Likewise.
19386         * tests/test-floorf.c: Likewise.
19387         * tests/test-floorl.c: Likewise.
19388         * tests/test-fopen.c: Likewise.
19389         * tests/test-fprintf-posix.c: Likewise.
19390         * tests/test-fprintf-posix.h: Likewise.
19391         * tests/test-fpurge.c: Likewise.
19392         * tests/test-freadable.c: Likewise.
19393         * tests/test-freadahead.c: Likewise.
19394         * tests/test-freading.c: Likewise.
19395         * tests/test-freopen.c: Likewise.
19396         * tests/test-frexp.c: Likewise.
19397         * tests/test-frexpl.c: Likewise.
19398         * tests/test-fseek.c: Likewise.
19399         * tests/test-fseeko.c: Likewise.
19400         * tests/test-fseterr.c: Likewise.
19401         * tests/test-fstrcmp.c: Likewise.
19402         * tests/test-ftell.c: Likewise.
19403         * tests/test-ftello.c: Likewise.
19404         * tests/test-fwritable.c: Likewise.
19405         * tests/test-fwriting.c: Likewise.
19406         * tests/test-getaddrinfo.c: Likewise.
19407         * tests/test-getpass.c: Likewise.
19408         * tests/test-gettimeofday.c: Likewise.
19409         * tests/test-hmac-md5.c: Likewise.
19410         * tests/test-hmac-sha1.c: Likewise.
19411         * tests/test-iconv.c: Likewise.
19412         * tests/test-iconvme.c: Likewise.
19413         * tests/test-inttypes.c: Likewise.
19414         * tests/test-isnan.c: Likewise.
19415         * tests/test-isnanf.c: Likewise.
19416         * tests/test-isnanl-nolibm.c: Likewise.
19417         * tests/test-isnanl.c: Likewise.
19418         * tests/test-isnanl.h: Likewise.
19419         * tests/test-ldexpl.c: Likewise.
19420         * tests/test-linked_list.c: Likewise.
19421         * tests/test-linkedhash_list.c: Likewise.
19422         * tests/test-locale.c: Likewise.
19423         * tests/test-localename.c: Likewise.
19424         * tests/test-lock.c: Likewise.
19425         * tests/test-lseek.c: Likewise.
19426         * tests/test-malloca.c: Likewise.
19427         * tests/test-math.c: Likewise.
19428         * tests/test-mbscasecmp.c: Likewise.
19429         * tests/test-mbscasestr1.c: Likewise.
19430         * tests/test-mbscasestr2.c: Likewise.
19431         * tests/test-mbscasestr3.c: Likewise.
19432         * tests/test-mbscasestr4.c: Likewise.
19433         * tests/test-mbschr.c: Likewise.
19434         * tests/test-mbscspn.c: Likewise.
19435         * tests/test-mbsncasecmp.c: Likewise.
19436         * tests/test-mbspbrk.c: Likewise.
19437         * tests/test-mbspcasecmp.c: Likewise.
19438         * tests/test-mbsrchr.c: Likewise.
19439         * tests/test-mbsspn.c: Likewise.
19440         * tests/test-mbsstr1.c: Likewise.
19441         * tests/test-mbsstr2.c: Likewise.
19442         * tests/test-mbsstr3.c: Likewise.
19443         * tests/test-md5.c: Likewise.
19444         * tests/test-memmem.c: Likewise.
19445         * tests/test-netinet_in.c: Likewise.
19446         * tests/test-open.c: Likewise.
19447         * tests/test-printf-frexp.c: Likewise.
19448         * tests/test-printf-frexpl.c: Likewise.
19449         * tests/test-printf-posix.c: Likewise.
19450         * tests/test-printf-posix.h: Likewise.
19451         * tests/test-rbtree_list.c: Likewise.
19452         * tests/test-rbtree_oset.c: Likewise.
19453         * tests/test-rbtreehash_list.c: Likewise.
19454         * tests/test-read-file.c: Likewise.
19455         * tests/test-rijndael.c: Likewise.
19456         * tests/test-search.c: Likewise.
19457         * tests/test-signbit.c: Likewise.
19458         * tests/test-sleep.c: Likewise.
19459         * tests/test-snprintf-posix.c: Likewise.
19460         * tests/test-snprintf-posix.h: Likewise.
19461         * tests/test-snprintf.c: Likewise.
19462         * tests/test-sprintf-posix.c: Likewise.
19463         * tests/test-sprintf-posix.h: Likewise.
19464         * tests/test-stat-time.c: Likewise.
19465         * tests/test-stdbool.c: Likewise.
19466         * tests/test-stdint.c: Likewise.
19467         * tests/test-stdio.c: Likewise.
19468         * tests/test-stdlib.c: Likewise.
19469         * tests/test-stpncpy.c: Likewise.
19470         * tests/test-strcasestr.c: Likewise.
19471         * tests/test-striconv.c: Likewise.
19472         * tests/test-striconveh.c: Likewise.
19473         * tests/test-striconveha.c: Likewise.
19474         * tests/test-string.c: Likewise.
19475         * tests/test-sys_select.c: Likewise.
19476         * tests/test-sys_socket.c: Likewise.
19477         * tests/test-sys_stat.c: Likewise.
19478         * tests/test-sys_time.c: Likewise.
19479         * tests/test-sysexits.c: Likewise.
19480         * tests/test-time.c: Likewise.
19481         * tests/test-tls.c: Likewise.
19482         * tests/test-trunc.c: Likewise.
19483         * tests/test-truncf.c: Likewise.
19484         * tests/test-truncl.c: Likewise.
19485         * tests/test-unistd.c: Likewise.
19486         * tests/test-vasnprintf-posix.c: Likewise.
19487         * tests/test-vasnprintf-posix2.c: Likewise.
19488         * tests/test-vasnprintf.c: Likewise.
19489         * tests/test-vasprintf-posix.c: Likewise.
19490         * tests/test-vasprintf.c: Likewise.
19491         * tests/test-verify.c: Likewise.
19492         * tests/test-vfprintf-posix.c: Likewise.
19493         * tests/test-vprintf-posix.c: Likewise.
19494         * tests/test-vsnprintf-posix.c: Likewise.
19495         * tests/test-vsnprintf.c: Likewise.
19496         * tests/test-vsprintf-posix.c: Likewise.
19497         * tests/test-wchar.c: Likewise.
19498         * tests/test-wctype.c: Likewise.
19499         * tests/test-wcwidth.c: Likewise.
19500         * tests/test-xstrtol.c: Likewise.
19501         * tests/test-xvasprintf.c: Likewise.
19502         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19503         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19504         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19505         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19506         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19507         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19508         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19509         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19510         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19511         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19512         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19513         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19514         * tests/uniname/test-uninames.c: Likewise.
19515         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19516         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
19517         * tests/unistdio/test-u16-printf1.h: Likewise.
19518         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19519         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19520         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19521         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19522         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19523         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19524         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19525         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
19526         * tests/unistdio/test-u32-printf1.h: Likewise.
19527         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19528         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19529         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19530         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19531         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19532         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19533         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19534         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
19535         * tests/unistdio/test-u8-printf1.h: Likewise.
19536         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19537         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19538         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19539         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19540         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19541         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19542         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19543         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
19544         * tests/unistdio/test-ulc-printf1.h: Likewise.
19545         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19546         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19547         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19548         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19549         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19550         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19551         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19552         * tests/uniwidth/test-u16-width.c: Likewise.
19553         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19554         * tests/uniwidth/test-u32-width.c: Likewise.
19555         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19556         * tests/uniwidth/test-u8-width.c: Likewise.
19557         * tests/uniwidth/test-uc_width.c: Likewise.
19558         * config/srclist-update: Likewise.
19559         (fixlicense): Update to GPLv3+.
19560
19561         Change copyright notice from LGPLv2.1+ to LGPLv3+.
19562         * tests/test-tsearch.c: Change copyright notice.
19563
19564         Change copyright notice from LGPLv2.0+ to LGPLv3+.
19565         * lib/c-strcaseeq.h: Change copyright notice.
19566         * lib/streq.h: Likewise.
19567         * lib/uniconv.h: Likewise.
19568         * lib/uniconv/u-conv-from-enc.h: Likewise.
19569         * lib/uniconv/u-conv-to-enc.h: Likewise.
19570         * lib/uniconv/u-strconv-from-enc.h: Likewise.
19571         * lib/uniconv/u-strconv-to-enc.h: Likewise.
19572         * lib/uniconv/u16-conv-from-enc.c: Likewise.
19573         * lib/uniconv/u16-conv-to-enc.c: Likewise.
19574         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
19575         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
19576         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
19577         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
19578         * lib/uniconv/u32-conv-from-enc.c: Likewise.
19579         * lib/uniconv/u32-conv-to-enc.c: Likewise.
19580         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
19581         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
19582         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
19583         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
19584         * lib/uniconv/u8-conv-from-enc.c: Likewise.
19585         * lib/uniconv/u8-conv-to-enc.c: Likewise.
19586         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
19587         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
19588         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
19589         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
19590         * lib/uniname.h: Likewise.
19591         * lib/uniname/uniname.c: Likewise.
19592         * lib/unistdio.h: Likewise.
19593         * lib/unistdio/u-asnprintf.h: Likewise.
19594         * lib/unistdio/u-asprintf.h: Likewise.
19595         * lib/unistdio/u-printf-args.c: Likewise.
19596         * lib/unistdio/u-printf-args.h: Likewise.
19597         * lib/unistdio/u-printf-parse.h: Likewise.
19598         * lib/unistdio/u-snprintf.h: Likewise.
19599         * lib/unistdio/u-sprintf.h: Likewise.
19600         * lib/unistdio/u-vasprintf.h: Likewise.
19601         * lib/unistdio/u-vsnprintf.h: Likewise.
19602         * lib/unistdio/u-vsprintf.h: Likewise.
19603         * lib/unistdio/u16-asnprintf.c: Likewise.
19604         * lib/unistdio/u16-asprintf.c: Likewise.
19605         * lib/unistdio/u16-printf-parse.c: Likewise.
19606         * lib/unistdio/u16-snprintf.c: Likewise.
19607         * lib/unistdio/u16-sprintf.c: Likewise.
19608         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
19609         * lib/unistdio/u16-u16-asprintf.c: Likewise.
19610         * lib/unistdio/u16-u16-snprintf.c: Likewise.
19611         * lib/unistdio/u16-u16-sprintf.c: Likewise.
19612         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
19613         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
19614         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
19615         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
19616         * lib/unistdio/u16-vasnprintf.c: Likewise.
19617         * lib/unistdio/u16-vasprintf.c: Likewise.
19618         * lib/unistdio/u16-vsnprintf.c: Likewise.
19619         * lib/unistdio/u16-vsprintf.c: Likewise.
19620         * lib/unistdio/u32-asnprintf.c: Likewise.
19621         * lib/unistdio/u32-asprintf.c: Likewise.
19622         * lib/unistdio/u32-printf-parse.c: Likewise.
19623         * lib/unistdio/u32-snprintf.c: Likewise.
19624         * lib/unistdio/u32-sprintf.c: Likewise.
19625         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
19626         * lib/unistdio/u32-u32-asprintf.c: Likewise.
19627         * lib/unistdio/u32-u32-snprintf.c: Likewise.
19628         * lib/unistdio/u32-u32-sprintf.c: Likewise.
19629         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
19630         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
19631         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
19632         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
19633         * lib/unistdio/u32-vasnprintf.c: Likewise.
19634         * lib/unistdio/u32-vasprintf.c: Likewise.
19635         * lib/unistdio/u32-vsnprintf.c: Likewise.
19636         * lib/unistdio/u32-vsprintf.c: Likewise.
19637         * lib/unistdio/u8-asnprintf.c: Likewise.
19638         * lib/unistdio/u8-asprintf.c: Likewise.
19639         * lib/unistdio/u8-printf-parse.c: Likewise.
19640         * lib/unistdio/u8-snprintf.c: Likewise.
19641         * lib/unistdio/u8-sprintf.c: Likewise.
19642         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
19643         * lib/unistdio/u8-u8-asprintf.c: Likewise.
19644         * lib/unistdio/u8-u8-snprintf.c: Likewise.
19645         * lib/unistdio/u8-u8-sprintf.c: Likewise.
19646         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
19647         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
19648         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
19649         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
19650         * lib/unistdio/u8-vasnprintf.c: Likewise.
19651         * lib/unistdio/u8-vasprintf.c: Likewise.
19652         * lib/unistdio/u8-vsnprintf.c: Likewise.
19653         * lib/unistdio/u8-vsprintf.c: Likewise.
19654         * lib/unistdio/ulc-asnprintf.c: Likewise.
19655         * lib/unistdio/ulc-asprintf.c: Likewise.
19656         * lib/unistdio/ulc-printf-parse.c: Likewise.
19657         * lib/unistdio/ulc-snprintf.c: Likewise.
19658         * lib/unistdio/ulc-sprintf.c: Likewise.
19659         * lib/unistdio/ulc-vasnprintf.c: Likewise.
19660         * lib/unistdio/ulc-vasprintf.c: Likewise.
19661         * lib/unistdio/ulc-vsnprintf.c: Likewise.
19662         * lib/unistdio/ulc-vsprintf.c: Likewise.
19663         * lib/unistr.h: Likewise.
19664         * lib/unistr/u-cpy-alloc.h: Likewise.
19665         * lib/unistr/u-cpy.h: Likewise.
19666         * lib/unistr/u-endswith.h: Likewise.
19667         * lib/unistr/u-move.h: Likewise.
19668         * lib/unistr/u-set.h: Likewise.
19669         * lib/unistr/u-startswith.h: Likewise.
19670         * lib/unistr/u-stpcpy.h: Likewise.
19671         * lib/unistr/u-stpncpy.h: Likewise.
19672         * lib/unistr/u-strcat.h: Likewise.
19673         * lib/unistr/u-strcpy.h: Likewise.
19674         * lib/unistr/u-strcspn.h: Likewise.
19675         * lib/unistr/u-strdup.h: Likewise.
19676         * lib/unistr/u-strlen.h: Likewise.
19677         * lib/unistr/u-strncat.h: Likewise.
19678         * lib/unistr/u-strncpy.h: Likewise.
19679         * lib/unistr/u-strnlen.h: Likewise.
19680         * lib/unistr/u-strpbrk.h: Likewise.
19681         * lib/unistr/u-strspn.h: Likewise.
19682         * lib/unistr/u-strstr.h: Likewise.
19683         * lib/unistr/u-strtok.h: Likewise.
19684         * lib/unistr/u16-check.c: Likewise.
19685         * lib/unistr/u16-chr.c: Likewise.
19686         * lib/unistr/u16-cmp.c: Likewise.
19687         * lib/unistr/u16-cpy-alloc.c: Likewise.
19688         * lib/unistr/u16-cpy.c: Likewise.
19689         * lib/unistr/u16-endswith.c: Likewise.
19690         * lib/unistr/u16-mblen.c: Likewise.
19691         * lib/unistr/u16-mbsnlen.c: Likewise.
19692         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19693         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19694         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19695         * lib/unistr/u16-mbtouc.c: Likewise.
19696         * lib/unistr/u16-mbtoucr.c: Likewise.
19697         * lib/unistr/u16-move.c: Likewise.
19698         * lib/unistr/u16-next.c: Likewise.
19699         * lib/unistr/u16-prev.c: Likewise.
19700         * lib/unistr/u16-set.c: Likewise.
19701         * lib/unistr/u16-startswith.c: Likewise.
19702         * lib/unistr/u16-stpcpy.c: Likewise.
19703         * lib/unistr/u16-stpncpy.c: Likewise.
19704         * lib/unistr/u16-strcat.c: Likewise.
19705         * lib/unistr/u16-strchr.c: Likewise.
19706         * lib/unistr/u16-strcmp.c: Likewise.
19707         * lib/unistr/u16-strcpy.c: Likewise.
19708         * lib/unistr/u16-strcspn.c: Likewise.
19709         * lib/unistr/u16-strdup.c: Likewise.
19710         * lib/unistr/u16-strlen.c: Likewise.
19711         * lib/unistr/u16-strmblen.c: Likewise.
19712         * lib/unistr/u16-strmbtouc.c: Likewise.
19713         * lib/unistr/u16-strncat.c: Likewise.
19714         * lib/unistr/u16-strncmp.c: Likewise.
19715         * lib/unistr/u16-strncpy.c: Likewise.
19716         * lib/unistr/u16-strnlen.c: Likewise.
19717         * lib/unistr/u16-strpbrk.c: Likewise.
19718         * lib/unistr/u16-strrchr.c: Likewise.
19719         * lib/unistr/u16-strspn.c: Likewise.
19720         * lib/unistr/u16-strstr.c: Likewise.
19721         * lib/unistr/u16-strtok.c: Likewise.
19722         * lib/unistr/u16-to-u32.c: Likewise.
19723         * lib/unistr/u16-to-u8.c: Likewise.
19724         * lib/unistr/u16-uctomb-aux.c: Likewise.
19725         * lib/unistr/u16-uctomb.c: Likewise.
19726         * lib/unistr/u32-check.c: Likewise.
19727         * lib/unistr/u32-chr.c: Likewise.
19728         * lib/unistr/u32-cmp.c: Likewise.
19729         * lib/unistr/u32-cpy-alloc.c: Likewise.
19730         * lib/unistr/u32-cpy.c: Likewise.
19731         * lib/unistr/u32-endswith.c: Likewise.
19732         * lib/unistr/u32-mblen.c: Likewise.
19733         * lib/unistr/u32-mbsnlen.c: Likewise.
19734         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19735         * lib/unistr/u32-mbtouc.c: Likewise.
19736         * lib/unistr/u32-mbtoucr.c: Likewise.
19737         * lib/unistr/u32-move.c: Likewise.
19738         * lib/unistr/u32-next.c: Likewise.
19739         * lib/unistr/u32-prev.c: Likewise.
19740         * lib/unistr/u32-set.c: Likewise.
19741         * lib/unistr/u32-startswith.c: Likewise.
19742         * lib/unistr/u32-stpcpy.c: Likewise.
19743         * lib/unistr/u32-stpncpy.c: Likewise.
19744         * lib/unistr/u32-strcat.c: Likewise.
19745         * lib/unistr/u32-strchr.c: Likewise.
19746         * lib/unistr/u32-strcmp.c: Likewise.
19747         * lib/unistr/u32-strcpy.c: Likewise.
19748         * lib/unistr/u32-strcspn.c: Likewise.
19749         * lib/unistr/u32-strdup.c: Likewise.
19750         * lib/unistr/u32-strlen.c: Likewise.
19751         * lib/unistr/u32-strmblen.c: Likewise.
19752         * lib/unistr/u32-strmbtouc.c: Likewise.
19753         * lib/unistr/u32-strncat.c: Likewise.
19754         * lib/unistr/u32-strncmp.c: Likewise.
19755         * lib/unistr/u32-strncpy.c: Likewise.
19756         * lib/unistr/u32-strnlen.c: Likewise.
19757         * lib/unistr/u32-strpbrk.c: Likewise.
19758         * lib/unistr/u32-strrchr.c: Likewise.
19759         * lib/unistr/u32-strspn.c: Likewise.
19760         * lib/unistr/u32-strstr.c: Likewise.
19761         * lib/unistr/u32-strtok.c: Likewise.
19762         * lib/unistr/u32-to-u16.c: Likewise.
19763         * lib/unistr/u32-to-u8.c: Likewise.
19764         * lib/unistr/u32-uctomb.c: Likewise.
19765         * lib/unistr/u8-check.c: Likewise.
19766         * lib/unistr/u8-chr.c: Likewise.
19767         * lib/unistr/u8-cmp.c: Likewise.
19768         * lib/unistr/u8-cpy-alloc.c: Likewise.
19769         * lib/unistr/u8-cpy.c: Likewise.
19770         * lib/unistr/u8-endswith.c: Likewise.
19771         * lib/unistr/u8-mblen.c: Likewise.
19772         * lib/unistr/u8-mbsnlen.c: Likewise.
19773         * lib/unistr/u8-mbtouc-aux.c: Likewise.
19774         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19775         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19776         * lib/unistr/u8-mbtouc.c: Likewise.
19777         * lib/unistr/u8-mbtoucr.c: Likewise.
19778         * lib/unistr/u8-move.c: Likewise.
19779         * lib/unistr/u8-next.c: Likewise.
19780         * lib/unistr/u8-prev.c: Likewise.
19781         * lib/unistr/u8-set.c: Likewise.
19782         * lib/unistr/u8-startswith.c: Likewise.
19783         * lib/unistr/u8-stpcpy.c: Likewise.
19784         * lib/unistr/u8-stpncpy.c: Likewise.
19785         * lib/unistr/u8-strcat.c: Likewise.
19786         * lib/unistr/u8-strchr.c: Likewise.
19787         * lib/unistr/u8-strcmp.c: Likewise.
19788         * lib/unistr/u8-strcpy.c: Likewise.
19789         * lib/unistr/u8-strcspn.c: Likewise.
19790         * lib/unistr/u8-strdup.c: Likewise.
19791         * lib/unistr/u8-strlen.c: Likewise.
19792         * lib/unistr/u8-strmblen.c: Likewise.
19793         * lib/unistr/u8-strmbtouc.c: Likewise.
19794         * lib/unistr/u8-strncat.c: Likewise.
19795         * lib/unistr/u8-strncmp.c: Likewise.
19796         * lib/unistr/u8-strncpy.c: Likewise.
19797         * lib/unistr/u8-strnlen.c: Likewise.
19798         * lib/unistr/u8-strpbrk.c: Likewise.
19799         * lib/unistr/u8-strrchr.c: Likewise.
19800         * lib/unistr/u8-strspn.c: Likewise.
19801         * lib/unistr/u8-strstr.c: Likewise.
19802         * lib/unistr/u8-strtok.c: Likewise.
19803         * lib/unistr/u8-to-u16.c: Likewise.
19804         * lib/unistr/u8-to-u32.c: Likewise.
19805         * lib/unistr/u8-uctomb-aux.c: Likewise.
19806         * lib/unistr/u8-uctomb.c: Likewise.
19807         * lib/unitypes.h: Likewise.
19808         * lib/uniwidth.h: Likewise.
19809         * lib/uniwidth/cjk.h: Likewise.
19810         * lib/uniwidth/u16-strwidth.c: Likewise.
19811         * lib/uniwidth/u16-width.c: Likewise.
19812         * lib/uniwidth/u32-strwidth.c: Likewise.
19813         * lib/uniwidth/u32-width.c: Likewise.
19814         * lib/uniwidth/u8-strwidth.c: Likewise.
19815         * lib/uniwidth/u8-width.c: Likewise.
19816         * lib/uniwidth/width.c: Likewise.
19817
19818 2007-10-07  Bruno Haible  <bruno@clisp.org>
19819
19820         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
19821         The file is still under LGPL (see modules/inttypes).
19822
19823 2007-10-06  Bruno Haible  <bruno@clisp.org>
19824
19825         * modules/trunc (Dependencies): Add 'extensions'.
19826         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
19827         Reported by Ben Pfaff <blp@gnu.org>.
19828
19829 2007-10-06  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/freopen-tests: New file.
19832         * tests/test-freopen.c: New file.
19833
19834         * modules/fopen-tests: New file.
19835         * tests/test-fopen.c: New file.
19836
19837         * modules/fopen: New file.
19838         * lib/fopen.c: New file.
19839         * m4/fopen.m4: New file.
19840         * modules/freopen: New file.
19841         * lib/freopen.c: New file.
19842         * m4/freopen.m4: New file.
19843         * lib/stdio.in.h (fopen, freopen): New declarations.
19844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
19845         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19846         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
19847         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19848         * doc/functions/fopen.texi: Mention the 'fopen' module.
19849         * doc/functions/freopen.texi: Mention the 'freopen' module.
19850
19851 2007-10-06  Bruno Haible  <bruno@clisp.org>
19852
19853         * modules/open-tests: New file.
19854         * tests/test-open.c: New file.
19855
19856         * modules/open: New file.
19857         * lib/open.c: New file.
19858         * m4/open.m4: New file.
19859         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
19860         lib/open.c does.
19861         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
19862         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
19863         macros.
19864         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
19865         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
19866         REPLACE_OPEN.
19867         * doc/functions/open.texi: Mention the 'open' module.
19868
19869 2007-10-04  Bruno Haible  <bruno@clisp.org>
19870
19871         * modules/ceill-tests: New file.
19872         * tests/test-ceill.c: New file.
19873
19874         * modules/ceill: New file.
19875         * lib/ceill.c: Replace entire file.
19876         * m4/ceill.m4: New file.
19877         * lib/math.in.h (ceill): Replace declaration.
19878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
19879         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
19880         * doc/functions/ceill.texi: Mention the 'ceill' module.
19881         * modules/mathl (Files): Remove lib/ceill.c.
19882         (Depends-on): Add ceill.
19883
19884 2007-10-04  Bruno Haible  <bruno@clisp.org>
19885
19886         * modules/ceilf-tests: New file.
19887         * tests/test-ceilf.c: New file.
19888
19889         * modules/ceilf: New file.
19890         * lib/ceil.c: New file.
19891         * lib/ceilf.c: New file.
19892         * m4/ceilf.m4: New file.
19893         * lib/math.in.h (ceilf): New declaration.
19894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
19895         HAVE_DECL_CEILF.
19896         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
19897         HAVE_DECL_CEILF.
19898         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
19899
19900 2007-10-04  Bruno Haible  <bruno@clisp.org>
19901
19902         * modules/floorl-tests: New file.
19903         * tests/test-floorl.c: New file.
19904
19905         * modules/floorl: New file.
19906         * lib/floorl.c: Replace entire file.
19907         * m4/floorl.m4: New file.
19908         * lib/math.in.h (floorl): Replace declaration.
19909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
19910         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
19911         * doc/functions/floorl.texi: Mention the 'floorl' module.
19912         * modules/mathl (Files): Remove lib/floorl.c.
19913         (Depends-on): Add floorl.
19914
19915 2007-10-04  Bruno Haible  <bruno@clisp.org>
19916
19917         * modules/floorf-tests: New file.
19918         * tests/test-floorf.c: New file.
19919
19920         * modules/floorf: New file.
19921         * lib/floor.c: New file.
19922         * lib/floorf.c: New file.
19923         * m4/floorf.m4: New file.
19924         * lib/math.in.h (floorf): New declaration.
19925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
19926         HAVE_DECL_FLOORF.
19927         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
19928         HAVE_DECL_FLOORF.
19929         * doc/functions/floorf.texi: Mention the 'floorf' module.
19930
19931 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
19932             Bruno Haible  <bruno@clisp.org>
19933
19934         Advertise for the Git server instead of the CVS server.
19935         * doc/gnulib-intro.texi (Steady Development): Mention the Git
19936         repository instead of the CVS one.
19937         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
19938         about all VCS systems generically.
19939         * doc/gnulib.texi (Introduction): Capitalize `Git'.
19940
19941 2007-10-04  Bruno Haible  <bruno@clisp.org>
19942
19943         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
19944         means.
19945         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
19946
19947 2007-10-04  Bruno Haible  <bruno@clisp.org>
19948
19949         * modules/truncl-tests: New file.
19950         * tests/test-truncl.c: New file.
19951
19952         * modules/truncl: New file.
19953         * lib/truncl.c: New file.
19954         * m4/truncl.m4: New file.
19955         * lib/math.in.h (truncl): New declaration.
19956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
19957         HAVE_DECL_TRUNCL.
19958         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
19959         HAVE_DECL_TRUNCL.
19960         * doc/functions/truncl.texi: Mention the 'truncl' module.
19961
19962 2007-10-04  Bruno Haible  <bruno@clisp.org>
19963
19964         * modules/truncf-tests: New file.
19965         * tests/test-truncf.c: New file.
19966
19967         * modules/truncf: New file.
19968         * lib/trunc.c: Make paramerizable through USE_* macros.
19969         * lib/truncf.c: New file.
19970         * m4/truncf.m4: New file.
19971         * lib/math.in.h (truncf): New declaration.
19972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
19973         HAVE_DECL_TRUNCF.
19974         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
19975         HAVE_DECL_TRUNCF.
19976         * doc/functions/truncf.texi: Mention the 'truncf' module.
19977
19978 2007-10-03  Bruno Haible  <bruno@clisp.org>
19979
19980         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
19981         augmentation also for tests modules.
19982         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
19983         * modules/atexit-tests (Makefile.am): Likewise.
19984         * modules/binary-io-tests (Makefile.am): Likewise.
19985         * modules/c-strcase-tests (Makefile.am): Likewise.
19986         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
19987         * modules/canonicalize-tests (Makefile.am): Likewise.
19988         * modules/closein-tests (Makefile.am): Likewise.
19989         * modules/fprintf-posix-tests (Makefile.am): Likewise.
19990         * modules/freadahead-tests (Makefile.am): Likewise.
19991         * modules/fseek-tests (Makefile.am): Likewise.
19992         * modules/fseeko-tests (Makefile.am): Likewise.
19993         * modules/ftell-tests (Makefile.am): Likewise.
19994         * modules/ftello-tests (Makefile.am): Likewise.
19995         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
19996         * modules/isnanl-tests (Makefile.am): Likewise.
19997         * modules/lseek-tests (Makefile.am): Likewise.
19998         * modules/mbscasecmp-tests (Makefile.am): Likewise.
19999         * modules/mbscasestr-tests (Makefile.am): Likewise.
20000         * modules/mbschr-tests (Makefile.am): Likewise.
20001         * modules/mbscspn-tests (Makefile.am): Likewise.
20002         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20003         * modules/mbspbrk-tests (Makefile.am): Likewise.
20004         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20005         * modules/mbsrchr-tests (Makefile.am): Likewise.
20006         * modules/mbsspn-tests (Makefile.am): Likewise.
20007         * modules/mbsstr-tests (Makefile.am): Likewise.
20008         * modules/printf-posix-tests (Makefile.am): Likewise.
20009         * modules/snprintf-posix-tests (Makefile.am): Likewise.
20010         * modules/sprintf-posix-tests (Makefile.am): Likewise.
20011         * modules/tsearch-tests (Makefile.am): Likewise.
20012         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20013         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20014         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20015         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20016         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20017         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20018         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20019         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20020         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
20021         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
20022         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20023         * modules/xstrtol-tests (Makefile.am): Likewise.
20024         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20025         * modules/yesno-tests (Makefile.am): Likewise.
20026
20027 2007-10-03  Bruno Haible  <bruno@clisp.org>
20028
20029         * modules/trunc-tests: New file.
20030         * tests/test-trunc.c: New file.
20031
20032         * modules/trunc: New file.
20033         * lib/trunc.c: New file.
20034         * m4/trunc.m4: New file.
20035         * lib/math.in.h (trunc): New declaration.
20036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
20037         HAVE_DECL_TRUNC.
20038         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
20039         HAVE_DECL_TRUNC.
20040         * doc/functions/trunc.texi: Mention the 'trunc' module.
20041
20042 2007-10-03  Bruno Haible  <bruno@clisp.org>
20043
20044         * tests/test-fpending.c: New file, mostly copied
20045         from coreutils/lib/t-fpending.c.
20046         * modules/fpending-tests: New file.
20047
20048 2007-10-03  Bruno Haible  <bruno@clisp.org>
20049
20050         Port the stdio extensions to QNX (untested).
20051         * lib/fseterr.c (fseterr): Add support for QNX.
20052         * lib/fbufmode.c (fbufmode): Likewise.
20053         * lib/freadable.c (freadable): Likewise.
20054         * lib/fwritable.c (fwritable): Likewise.
20055         * lib/freading.c (freading): Likewise.
20056         * lib/fwriting.c (fwriting): Likewise.
20057         * lib/freadahead.c (freadahed): Likewise.
20058         * lib/fpurge.c (fpurge): Likewise.
20059         * lib/fseeko.c (rpl_fseeko): Likewise.
20060
20061 2007-10-03  Bruno Haible  <bruno@clisp.org>
20062             Jim Meyering  <jim@meyering.net>
20063             Eric Blake  <ebb9@byu.net>
20064
20065         * doc/relocatable.texi: Use @command instead of @program.
20066
20067 2007-10-02  Jim Meyering  <jim@meyering.net>
20068
20069         Perform one more "_.h" -> ".in.h" substitution.
20070         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
20071         instead of unistd_.h here, too.
20072
20073 2007-10-01  Bruno Haible  <bruno@clisp.org>
20074
20075         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
20076         Needed for the alloca-opt module.
20077
20078 2007-09-30  Bruno Haible  <bruno@clisp.org>
20079
20080         * lib/alloca.in.h: Renamed from lib/alloca_.h.
20081         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
20082         alloca_.h.
20083         * lib/argz.in.h: Renamed from lib/argz_.h.
20084         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
20085         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
20086         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
20087         byteswap_.h.
20088         * lib/dirent.in.h: Renamed from lib/dirent_.h.
20089         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
20090         dirent_.h.
20091         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
20092         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
20093         fcntl_.h.
20094         * lib/float.in.h: Renamed from lib/float_.h.
20095         * modules/float (Files, Makefile.am): Use float.in.h instead of
20096         float_.h.
20097         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
20098         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
20099         fnmatch_.h.
20100         * lib/getopt.in.h: Renamed from lib/getopt_.h.
20101         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
20102         getopt_.h.
20103         * lib/glob.in.h: Renamed from lib/glob_.h.
20104         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
20105         * lib/iconv.in.h: Renamed from lib/iconv_.h.
20106         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
20107         iconv_.h.
20108         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
20109         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
20110         inttypes_.h.
20111         * lib/locale.in.h: Renamed from lib/locale_.h.
20112         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
20113         locale_.h.
20114         * lib/math.in.h: Renamed from lib/math_.h.
20115         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
20116         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
20117         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
20118         of netinet_in_.h. Add dependency.
20119         * lib/poll.in.h: Renamed from lib/poll_.h.
20120         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
20121         * lib/search.in.h: Renamed from lib/search_.h.
20122         * modules/search (Files, Makefile.am): Use search.in.h instead of
20123         search_.h.
20124         * lib/signal.in.h: Renamed from lib/signal_.h.
20125         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
20126         _signal.h.
20127         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
20128         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
20129         stdbool_.h.
20130         * lib/stdint.in.h: Renamed from lib/stdint_.h.
20131         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
20132         stdint_.h.
20133         * lib/stdio.in.h: Renamed from lib/stdio_.h.
20134         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
20135         stdio_.h.
20136         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
20137         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
20138         stdlib_.h.
20139         * lib/string.in.h: Renamed from lib/string_.h.
20140         * modules/string (Files, Makefile.am): Use string.in.h instead of
20141         string_.h.
20142         * doc/gnulib-tool.texi (Initial import): Update.
20143         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
20144         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
20145         of sys_select_.h. Add dependency.
20146         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
20147         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
20148         of sys_socket_.h.
20149         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
20150         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
20151         sys_stat_.h.
20152         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
20153         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
20154         sys_time_.h.
20155         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
20156         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
20157         sysexits_.h.
20158         * lib/time.in.h: Renamed from lib/time_.h.
20159         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
20160         * lib/unistd.in.h: Renamed from lib/unistd_.h.
20161         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
20162         unistd_.h.
20163         * lib/wchar.in.h: Renamed from lib/wchar_.h.
20164         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
20165         wchar_.h.
20166         * lib/wctype.in.h: Renamed from lib/wctype_.h.
20167         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
20168         wctype_.h.
20169         * build-aux/bootstrap (slurp): Update.
20170         * lib/.cppi-disable: Update.
20171
20172 2007-09-30  Bruno Haible  <bruno@clisp.org>
20173
20174         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
20175         Needed on BeOS.
20176
20177 2007-09-30  Bruno Haible  <bruno@clisp.org>
20178
20179         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
20180
20181 2007-09-29  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
20184
20185 2007-09-29  Bruno Haible  <bruno@clisp.org>
20186
20187         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
20188         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
20189         * build-aux/install-reloc: Compile also areadlink.c.
20190         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
20191
20192 2007-09-29  Bruno Haible  <bruno@clisp.org>
20193
20194         * gnulib-tool (func_emit_initmacro_done): Indentation.
20195
20196 2007-09-29  Bruno Haible  <bruno@clisp.org>
20197
20198         * README: Add CVS checkout update instructions.
20199         Info from Bob Proulx <bob@proulx.com>.
20200
20201 2007-09-28  Eric Blake  <ebb9@byu.net>
20202
20203         Provide move-if-change.
20204         * build-aux/move-if-change: New file, based on best practice
20205         rather than any canonical upstream location.
20206
20207 2007-09-28  Jim Meyering  <jim@meyering.net>
20208
20209         Fix canonicalize loop-detection corner case.
20210         Do not attempt to stat the symlink values stored via seen_triple.
20211         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
20212         on linux-2.6.18, (but not 2.6.22).
20213         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
20214         triple_compare.  The former compares dev,ino,filename, while the latter
20215         would actually stat dirname(filename) when dev and ino were equal.
20216         * lib/hash-triple.c: Install <string.h>.
20217         (STREQ): Define.
20218         (triple_compare_ino_str): New function.
20219         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
20220
20221 2007-09-28  Eric Blake  <ebb9@byu.net>
20222
20223         Enforce that AC_REPLACE_FUNCS files exist.
20224         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
20225         override check for typos.
20226
20227         Fix test-closein on Solaris 10.
20228         * tests/test-closein.c (main): Don't assume stdin can be inherited
20229         closed on all systems.
20230         * tests/test-closein.sh: Likewise.
20231         Reported by Piotr Tarnowski.
20232
20233 2007-09-28  Jim Meyering  <jim@meyering.net>
20234
20235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
20236
20237 2007-09-27  Jim Meyering  <jim@meyering.net>
20238
20239         canonicalize: Avoid a false-positive cycle failure.
20240         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
20241         Sort.  Remove cycle-check.
20242         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
20243         not cycle-check.h.
20244         (seen_triple): New function.
20245         (canonicalize_filename_mode): Use it instead of cycle-check.
20246         * tests/test-canonicalize.c: Add a test for this bug.
20247         * tests/test-canonicalize.sh: Set up and run the test.
20248
20249         New module, file-set, from coreutils.
20250         * modules/file-set: Define it.
20251         * lib/file-set.c, lib/file-set.h: Implement.
20252
20253         New module, hash-triple, from coreutils.
20254         * modules/hash-triple: Define it.
20255         * lib/hash-triple.c, lib/hash-triple.h: Implement.
20256
20257 2007-09-25  Eric Blake  <ebb9@byu.net>
20258
20259         Fix strerror on Interix.
20260         * lib/string_.h (strerror): Declare replacement.
20261         * doc/functions/strerror.texi (strerror): Document the Interix
20262         shortcoming.
20263         * modules/string (Makefile.am): Support new hooks.
20264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
20265         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
20266         gl_FUNC_STRERROR_SEPARATE.
20267         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
20268         * lib/strerror.c (rpl_strerror): Provide replacement.
20269         * modules/strerror (Depends-on): Add string.
20270         (configure.ac): Detect use of module.
20271         * tests/test-strerror.c: New file.
20272         * modules/strerror-tests: New test module.
20273         * modules/argp (Depends-on): Add strerror.
20274         * modules/error (Depends-on): Likewise.
20275         Reported by Martin Koeppe.
20276
20277 2007-09-24  Bruno Haible  <bruno@clisp.org>
20278
20279         * README: Update git instructions.
20280
20281 2007-09-24  Eric Blake  <ebb9@byu.net>
20282
20283         Revert fpending breakage from 2007-09-08.
20284         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
20285         __fpending.c.
20286
20287 2007-09-24  Jim Meyering  <jim@meyering.net>
20288
20289         filenamecat.c: Add a test.
20290         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
20291         showing how the function works when DIR is the empty string.
20292
20293 2007-09-21  Simon Josefsson  <simon@josefsson.org>
20294
20295         * tests/test-canonicalize.sh: Turn on executable bit.
20296
20297 2007-09-19  Eric Blake  <ebb9@byu.net>
20298
20299         * README: Update CVS instructions.
20300
20301 2007-09-18  Bruno Haible  <bruno@clisp.org>
20302
20303         * modules/areadlink: New file.
20304         * lib/areadlink.h (areadlink): New declaration.
20305         * lib/areadlink.c: New file, based on lib/xreadlink.c.
20306
20307 2007-09-17  Jim Meyering  <jim@meyering.net>
20308
20309         * lib/savewd.c (ESTALE) [!defined]: Define.
20310         Reported to be required on Interix by Martin Koeppe.
20311
20312 2007-09-17  Bruno Haible  <bruno@clisp.org>
20313
20314         * gnulib-tool (func_version): Use $version.
20315
20316 2007-09-16  Bruno Haible  <bruno@clisp.org>
20317
20318         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
20319         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
20320         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
20321         Reported by Greg Schafer <gschafer@zip.com.au>.
20322
20323 2007-09-15  Bruno Haible  <bruno@clisp.org>
20324
20325         * gnulib-tool (sed): Try a little harder to make bash understand the
20326         alias.
20327         Reported by Bruce Korb <bruce.korb@gmail.com>.
20328
20329 2007-09-13  Eric Blake  <ebb9@byu.net>
20330
20331         * ChangeLog: Remove conflict markers.
20332
20333 2007-09-13  Simon Josefsson  <simon@josefsson.org>
20334
20335         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
20336         Reported by Bruno Haible <bruno@clisp.org>.
20337
20338 2007-09-12  Bruno Haible  <bruno@clisp.org>
20339
20340         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
20341         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
20342         is not defined.
20343
20344 2007-09-12  Eric Blake  <ebb9@byu.net>
20345
20346         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
20347         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
20348         Autoconf definition.
20349         * modules/euidaccess (Depends-on): Add extensions, for
20350         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
20351         * modules/fnmatch (Depends-on): Likewise.
20352         * modules/getaddrinfo (Depends-on): Likewise.
20353         * modules/getdelim (Depends-on): Likewise.
20354         * modules/getline (Depends-on): Likewise.
20355         * modules/getsubopt (Depends-on): Likewise.
20356         * modules/gettext (Depends-on): Likewise.
20357         * modules/group-member (Depends-on): Likewise.
20358         * modules/mbchar (Depends-on): Likewise.
20359         * modules/memmem (Depends-on): Likewise.
20360         * modules/mempcpy (Depends-on): Likewise.
20361         * modules/memrchr (Depends-on): Likewise.
20362         * modules/pagealign_alloc (Depends-on): Likewise.
20363         * modules/readutmp (Depends-on): Likewise.
20364         * modules/stpcpy (Depends-on): Likewise.
20365         * modules/stpncpy (Depends-on): Likewise.
20366         * modules/strchrnul (Depends-on): Likewise.
20367         * modules/strndup (Depends-on): Likewise.
20368         * modules/strsep (Depends-on): Likewise.
20369         * modules/strverscmp (Depends-on): Likewise.
20370         * modules/vasprintf (Depends-on): Likewise.
20371         * modules/wcwidth (Depends-on): Likewise.
20372         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
20373         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
20374         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
20375         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
20376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20377         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20378         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
20379         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20380         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
20381         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20382         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20383         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
20384         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
20385         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20386         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
20387         * m4/readutmp.m4 (gl_READUTMP): Likewise.
20388         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20389         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
20390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20391         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
20392         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
20393         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
20394         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
20395         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
20396         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
20397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20398         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
20399         so that lock.m4 can be used in gettext without extensions module.
20400
20401 2007-09-11  Bruno Haible  <bruno@clisp.org>
20402
20403         * m4/isc-posix.m4: Remove file.
20404         Suggested by Eric Blake.
20405
20406 2007-09-11  Eric Blake  <ebb9@byu.net>
20407
20408         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
20409
20410 2007-09-10  Bruno Haible  <bruno@clisp.org>
20411
20412         * posix-modules: Fix typo in error message.
20413         Reported by Matt <mkraai@beckman.com>.
20414
20415 2007-09-09  Bruno Haible  <bruno@clisp.org>
20416
20417         * doc/functions/getdelim.texi: Update list of platforms lacking the
20418         function.
20419         * doc/functions/getline.texi: Likewise.
20420
20421 2007-09-09  Jim Meyering  <jim@meyering.net>
20422
20423         * lib/hash.c (hash_initialize): Detect calloc failure.
20424         Reported by Bruno Haible.
20425
20426 2007-09-09  Bruno Haible  <bruno@clisp.org>
20427
20428         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
20429         malloc or realloc fails.
20430
20431 2007-09-09  Bruno Haible  <bruno@clisp.org>
20432
20433         * modules/getcwd (Depends-on): Add malloc-posix.
20434         * modules/glob (Depends-on): Likewise.
20435         * modules/putenv (Depends-on): Likewise.
20436         * modules/strdup (Depends-on): Likewise.
20437         * modules/getdelim (Depends-on): Add realloc-posix.
20438         * modules/read-file (Depends-on): Likewise.
20439
20440 2007-09-09  Bruno Haible  <bruno@clisp.org>
20441
20442         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
20443         (gl_FUNC_MALLOC_POSIX): Require it.
20444         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
20445         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
20446         * modules/realloc (Files): Add m4/malloc.m4.
20447         * modules/calloc (Files): Likewise.
20448
20449 2007-09-09  Bruno Haible  <bruno@clisp.org>
20450
20451         * modules/malloc-posix: New file.
20452         * modules/malloc (Depends-on): Add malloc-posix.
20453         * lib/malloc.c: Include errno.h.
20454         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
20455         and a POSIX-compatible malloc into a single function. Set ENOMEM
20456         when returning NULL.
20457         * m4/malloc.m4: New file.
20458         * doc/functions/malloc.texi: Mention the malloc-posix module.
20459         * lib/stdlib_.h (malloc): New declaration.
20460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20461         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
20462         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
20463         and HAVE_MALLOC_POSIX.
20464
20465 2007-09-09  Bruno Haible  <bruno@clisp.org>
20466
20467         * modules/realloc-posix: New file.
20468         * modules/realloc (Depends-on): Add realloc-posix.
20469         * lib/realloc.c: Include errno.h.
20470         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
20471         and a POSIX-compatible realloc into a single function. Set ENOMEM
20472         when returning NULL.
20473         * m4/realloc.m4: New file.
20474         * doc/functions/realloc.texi: Mention the realloc-posix module.
20475         * lib/stdlib_.h (realloc): New declaration.
20476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20477         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
20478         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
20479         and HAVE_REALLOC_POSIX.
20480
20481 2007-09-09  Bruno Haible  <bruno@clisp.org>
20482
20483         * modules/calloc-posix: New file.
20484         * modules/calloc (Depends-on): Add calloc-posix.
20485         * lib/calloc.c: Include errno.h.
20486         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
20487         and a POSIX-compatible calloc into a single function. Set ENOMEM
20488         when returning NULL.
20489         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
20490         * doc/functions/calloc.texi: Mention the calloc-posix module.
20491         * lib/stdlib_.h (calloc): New declaration.
20492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20493         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
20494         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
20495         and HAVE_CALLOC_POSIX.
20496
20497 2007-09-09  Bruno Haible  <bruno@clisp.org>
20498
20499         Allow for modules to show an arbitrary notice.
20500         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
20501         * gnulib-tool: New option --extract-notice.
20502         (func_usage): Document it.
20503         (sed_extract_prog): Update.
20504         (func_get_notice): New function.
20505         (func_modules_notice): New function.
20506         (func_import, func_create_testdir): Invoke it.
20507         Suggested by Jim Meyering.
20508
20509 2007-09-09  Bruno Haible  <bruno@clisp.org>
20510
20511         * gnulib-tool: New options --verbose, --quiet.
20512         (func_usage): Document them.
20513         (verbose): New variable.
20514         (func_execute_command): New function.
20515         (func_import): Don't show the module list and the file list if
20516         $verbose < 0.
20517         (func_create_testdir): Likewise. Use func_execute_command.
20518         (func_create_megatestdir): Use func_execute_command.
20519
20520 2007-09-08  Bruno Haible  <bruno@clisp.org>
20521
20522         * gnulib-tool (func_import): Prefer rsync over wget when available,
20523         for fetching the PO files.
20524
20525 2007-09-08  Bruno Haible  <bruno@clisp.org>
20526
20527         * posix-modules: New file. Portions copied from gnulib-tool.
20528         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
20529
20530 2007-09-08  Jim Meyering  <jim@meyering.net>
20531
20532         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
20533         * lib/fpending.h: Rename from __fpending.h.
20534         * lib/fpending.c: Rename from __fpending.c.
20535         Include "fpending.h", not "__fpending.h".
20536         * lib/__fpending.h, lib/__fpending.c: Remove files.
20537         * modules/fpending (Files): Reflect new file names.
20538         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
20539
20540 2007-09-08  Bruno Haible  <bruno@clisp.org>
20541
20542         * m4/inttypes-h.m4: Remove stub file.
20543
20544 2007-09-07  Simon Josefsson  <simon@josefsson.org>
20545
20546         * doc/headers/stdint.texi: Discuss #include_next issue.
20547
20548 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20549
20550         * build-aux/bootstrap: Remove obsolete comment about wget --help.
20551
20552 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20553
20554         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
20555         in variable name.
20556
20557 2007-09-03  Jim Meyering  <jim@meyering.net>
20558
20559         New module: git-version-gen.
20560         * modules/git-version-gen: New file.
20561
20562         Import changes from coreutils for bootstrap script.
20563
20564         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
20565
20566         bootstrap: uses rsync to download the .po files
20567         * build-aux/bootstrap (po_download_command_format): New global.
20568         (download_po_files): Use rsync.
20569         (update_po_files): Don't remove .po files after download,
20570         so future rsync runs can take advantage of the copies.
20571
20572         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
20573
20574         Solve the unnecessary-.po-file-regeneration problem once and for all.
20575         * build-aux/bootstrap (download_po_files): New function, renamed from
20576         get_translations.  Now, downloads, but doesn't update LINGUAS.
20577         (update_po_files): New function.
20578
20579         bootstrap: Ignore more.
20580         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
20581         uniwidth to e.g., lib/.gitignore.
20582         (slurp): Handle the sys_stat_.h -> sys mapping, too.
20583
20584         * build-aux/bootstrap: New setting: vc_ignore.
20585         (insert_sorted_if_absent): Create $file if absent.
20586         Adapt to new, possibly empty, list: $vc_ignore.
20587
20588         bootstrap: generate more ignorable names
20589         * build-aux/bootstrap (slurp): When generating ignorable names,
20590         also map .sin to .sed, .gperf to .c, and .y to .c.
20591
20592 2007-09-03  Jim Meyering  <jim@meyering.net>
20593
20594         * build-aux/git-version-gen: New file, from coreutils.  For details, see
20595         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
20596
20597 2007-09-02  Bruno Haible  <bruno@clisp.org>
20598
20599         Fix mis-recognition of 'mcs' on QNX 6.
20600         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
20601         output contains the string "Mono".
20602         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
20603         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
20604
20605 2007-09-01  Bruno Haible  <bruno@clisp.org>
20606
20607         Fix collision between uniwidth/* and linebreak modules.
20608         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
20609         u32_width): Remove declarations.
20610         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
20611         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
20612         streq3, streq2, streq1, streq0): Remove functions.
20613         (STREQ): Remove macro.
20614         (is_cjk_encoding): Remove function.
20615         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
20616         (uc_width, u8_width, u16_width, u32_width): Remove functions.
20617         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
20618         * NEWS: Document the change.
20619
20620 2007-09-01  Bruno Haible  <bruno@clisp.org>
20621
20622         * lib/streq.h: Add double-inclusion guard.
20623
20624 2007-09-01  Karl Berry  <karl@gnu.org>
20625
20626         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
20627
20628 2007-08-28  Jim Meyering  <jim@meyering.net>
20629
20630         Rename mreadlink_with_size to areadlink_with_size.
20631         * NEWS: Document the change.
20632         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
20633         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
20634         * lib/mreadlink.h: Rename this to...
20635         * lib/areadlink.h: ...this.
20636         * modules/mreadlink-with-size: Rename this to...
20637         * modules/areadlink-with-size: ...this.
20638         * lib/canonicalize.c: Reflect the renaming.
20639         * modules/canonicalize: Likewise.
20640
20641 2007-08-26  Bruno Haible  <bruno@clisp.org>
20642
20643         * gnulib-tool (func_import): When deciding which files to remove,
20644         consider also dangling symbolic links.
20645         Reported by Eric Blake.
20646
20647 2007-08-26  Bruno Haible  <bruno@clisp.org>
20648
20649         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
20650
20651 2007-08-23  Simon Josefsson  <simon@josefsson.org>
20652
20653         * lib/readline.c: Don't include getline.h, the prototype is now
20654         found in stdio.h.
20655
20656 2007-08-23  Jim Meyering  <jim@meyering.net>
20657
20658         Getdelim touchup.
20659         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
20660         around the funlockfile call, since funlockfile never sets errno.
20661         Don't set errno upon failed realloc.
20662
20663 2007-08-22  Eric Blake  <ebb9@byu.net>
20664
20665         Getline touchups.
20666         * lib/getdelim.c (getdelim): Revert regression that required *n to
20667         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
20668         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
20669         getdelim, rather than whether implementation is missing.
20670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
20671         * lib/stdio_.h (getline): Also declare if replacement is
20672         required.
20673         * doc/functions/getdelim.texi: New file.
20674         * doc/functions/getline.texi: Likewise.
20675         * doc/gnulib.texi (Function Substitutes): Add new files.
20676         Reported by Bruno Haible.
20677
20678 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
20679
20680         * users.txt: Add Guile.
20681
20682 2007-08-22  Eric Blake  <ebb9@byu.net>
20683
20684         * tests/test-getdelim.c (main): Use remove, not unlink.
20685         * tests/test-getline.c (main): Likewise.
20686
20687         Move getline and getdelim into stdio.h, per POSIX 200x.
20688         * modules/getline (Files): Remove getline.h.
20689         (Depends-on): Add stdio.
20690         (configure.ac): Add module indicator.
20691         * modules/getdelim (Files): Remove getdelim.h.
20692         (Depends-on): Add stdio.
20693         (configure.ac): Add module indicator.
20694         * modules/stdio (Makefile.am): Work with new indicators.
20695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20696         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
20697         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20698         * lib/getdelim.h: Delete.
20699         * lib/getline.h: Delete.
20700         * lib/stdio_.h (getdelim, getline): Declare.
20701         * modules/getdelim-tests: New module.
20702         * modules/getline-tests: Likewise.
20703         * tests/test-getdelim.c: New file.
20704         * tests/test-getline.c: Likewise.
20705         * NEWS: Document the change.
20706         * lib/getline.c: Update choice of header.
20707         * lib/csharpcomp.c: Likewise.
20708         * lib/getpass.c: Likewise.
20709         * lib/javacomp.c: Likewise.
20710         * lib/javaversion.c: Likewise.
20711         * lib/yesno.c: Likewise.
20712         * lib/getdelim.c: Likewise.
20713         (getdelim): Set errno on failure, and avoid memory leak.
20714
20715 2007-08-19  Bruno Haible  <bruno@clisp.org>
20716
20717         * modules/closein (Depends-on): Add freadahead.
20718         * lib/closein.c: Include freadahead.h.
20719         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
20720         is zero.
20721
20722 2007-08-19  Bruno Haible  <bruno@clisp.org>
20723
20724         * modules/freadahead-tests: New file.
20725         * tests/test-freadahead.sh: New file.
20726         * tests/test-freadahead.c: New file.
20727
20728         * modules/freadahead: New file.
20729         * lib/freadahead.h: New file.
20730         * lib/freadahead.c: New file.
20731         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
20732         fbufmode, fpurge, freadable, fwritable.
20733
20734 2007-08-19  Eric Blake  <ebb9@byu.net>
20735
20736         Test yesno in combination with closein.
20737         * lib/yesno.c (yesno): Document use of stdin.
20738         * modules/yesno-tests (Files): New module.
20739         * tests/test-yesno.c (main): New file.
20740         * tests/test-yesno.sh: Likewise.
20741
20742 2007-08-19  Bruno Haible  <bruno@clisp.org>
20743
20744         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
20745         * lib/fseeko.c (rpl_fseeko): Likewise.
20746         * lib/fseterr.c (fseterr): Likewise.
20747
20748 2007-08-19  Bruno Haible  <bruno@clisp.org>
20749
20750         * tests/test-lseek.c (main): Disable a test for BeOS.
20751         * doc/functions/lseek.texi: Document the BeOS bug.
20752
20753 2007-08-19  Bruno Haible  <bruno@clisp.org>
20754             Eric Blake  <ebb9@byu.net>
20755
20756         * lib/lseek.c: Include <sys/stat.h>.
20757         (rpl_lseek): Add workaround code also for Unix platforms.
20758         Needed for BeOS.
20759         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
20760         * doc/functions/lseek.texi: Document BeOS definiency.
20761
20762 2007-08-18  Bruno Haible  <bruno@clisp.org>
20763
20764         * modules/fstrcmp-tests: New file.
20765         * tests/test-fstrcmp.c: New file.
20766
20767 2007-08-18  Bruno Haible  <bruno@clisp.org>
20768
20769         * modules/fstrcmp: New file, from GNU gettext with modifications.
20770         * lib/fstrcmp.h: New file, from GNU gettext.
20771         * lib/fstrcmp.c: New file, from GNU gettext.
20772         * MODULES.html.sh (String handling): Add fstrcmp.
20773
20774 2007-08-18  Bruno Haible  <bruno@clisp.org>
20775
20776         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
20777         'bool'.
20778         (diag, compareseq): Remove const from the ctxt argument.
20779         (USE_HEURISTIC): Undefine at the end.
20780
20781 2007-08-18  Jim Meyering  <jim@meyering.net>
20782
20783         New file: lib/idcache.h
20784         * NEWS: Mention the addition.
20785         * modules/idcache (Files): Add lib/idcache.h
20786         * lib/idcache.c: Include "idcache.h".
20787         Don't include <sys/types.h>.
20788         Add a FIXME comment.
20789         Move file-scoped "static" declarations to the top.
20790         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
20791
20792 2007-08-17  Bruno Haible  <bruno@clisp.org>
20793         and Paul Eggert  <eggert@cs.ucla.edu>
20794
20795         * MODULES.html.sh: Add diffseq.
20796         * modules/diffseq: New file.
20797         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
20798         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
20799
20800 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20801
20802         Import changes from coreutils for bootstrap script.
20803
20804         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
20805
20806         * build-aux/bootstrap (slurp): Work even in environments where
20807         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
20808         current code does not slurp files whose names start with ".", and
20809         this looks like it might be a troublesome area.
20810
20811         2007-07-11  Jim Meyering  <jim@meyering.net>
20812
20813         If there's a GPL vN copyright comment, require that N == 3.
20814
20815         2007-07-08  Jim Meyering  <jim@meyering.net>
20816
20817         Run the coreutils-specific code only if tests/Makefile.am.in exists.
20818         * build-aux/bootstrap (mam_template): Move definition out of loop.
20819
20820         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
20821
20822         * build-aux/bootstrap (symlink_to_dir): Rename function from
20823         symlink_to_gnulib.  Add a directory parameter.  Update all
20824         callers.
20825         (cp_mark_as_generated): Also check for -- and link to -- files in
20826         gl/.
20827
20828         2007-07-08  Jim Meyering  <jim@meyering.net>
20829
20830         Adapt to deeper hierarchy in gnulib.
20831         * build-aux/bootstrap (symlink_to_dir): If the destination
20832         directory doesn't exist, create it. This is required at least for
20833         "lib/uniwidth/cjk.h".
20834
20835         2007-05-15  Jim Meyering  <jim@meyering.net>
20836
20837         * build-aux/bootstrap: Now that generated Makefile.am files
20838         are no longer under version control, they must be created at
20839         bootstrap time.
20840
20841 2007-08-14  Ben Pfaff  <blp@gnu.org>
20842
20843         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
20844
20845 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20846
20847         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
20848         given the changes below.
20849         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
20850         even on hosts that have padding bits beyond the supported 64.
20851
20852 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20853
20854         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
20855         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
20856         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
20857         depends on it.
20858         (xstrtol_error): Remove.
20859         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
20860         but with a different signature.
20861         (ATTRIBUTE_NORETURN, __attribute__): New macros.
20862         * lib/xstrtol-error.c: Include exitfail.h.
20863         (xstrtol_fatal): New function, with a different signature from the
20864         old xstrtol_error, so that the caller need not worry about passing
20865         in an exit status, or about storage management of the option argument.
20866         (xstrtol_error): Now a static function.  Redo signature to
20867         implement xstrtol_fatal.  Output the correct number of hyphens in
20868         front of the option so that the caller need not worry about
20869         storage management.
20870         (N_): New macro.
20871         (_): Remove; not used now.
20872         * modules/xstrtol: Depend on getopt.
20873         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
20874         of old STRTOL_FATAL_ERROR macro.
20875         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
20876         of test program.
20877         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
20878         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
20879
20880 2007-08-08  Eric Blake  <ebb9@byu.net>
20881
20882         * lib/xstrtol-error.c: Add missing include.
20883
20884         Move xstrtol messages into gnulib domain, when --pobase is used.
20885         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
20886         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
20887         * modules/xstrtol (Files): Distribute new file.
20888         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
20889         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
20890         * tests/test-xstrtol.c: ...into new file.
20891         * tests/test-xstrtoul.c: Also test xstrtoul.
20892         * tests/test-xstrtoimax.c: Also test xstrtoimax.
20893         * tests/test-xstrtoumax.c: Also test xstrtoumax.
20894         * tests/test-xstrtol.sh: Drive the tests.
20895         * tests/test-xstrtoimax.sh: Likewise.
20896         * tests/test-xstrtoumax.sh: Likewise.
20897         * modules/xstrtol-tests: New module.
20898         * modules/xstrtoimax-tests: Likewise.
20899         * modules/xstrtoumax-tests: Likewise.
20900
20901 2007-08-08  Jim Meyering  <jim@meyering.net>
20902
20903         New function: mfile_name_concat.
20904         * lib/filenamecat.c (mfile_name_concat): New function, just like
20905         file_name_concat, but return NULL upon failure rather than exiting
20906         with a diagnostic.
20907         * lib/filenamecat.h: Declare it.
20908
20909 2007-08-07  Bruno Haible  <bruno@clisp.org>
20910
20911         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
20912         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
20913         warning from gcc.
20914         Reported by Eric Blake.
20915
20916 2007-08-07  Simon Josefsson  <simon@josefsson.org>
20917
20918         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
20919         * modules/crypto/arcfour (License): Likewise.
20920         * modules/crypto/des-tests (License): Likewise.
20921         * modules/crypto/gc-arctwo-tests (License): Likewise.
20922         * modules/crypto/gc-des-tests (License): Likewise.
20923         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
20924         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
20925         * modules/crypto/gc-md2-tests (License): Likewise.
20926         * modules/crypto/gc-md4-tests (License): Likewise.
20927         * modules/crypto/gc-md5-tests (License): Likewise.
20928         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
20929         * modules/crypto/gc-rijndael-tests (License): Likewise.
20930         * modules/crypto/gc-sha1-tests (License): Likewise.
20931         * modules/crypto/gc-tests (License): Likewise.
20932         * modules/crypto/hmac-md5 (License): Likewise.
20933         * modules/crypto/hmac-sha1 (License): Likewise.
20934         * modules/crypto/md2-tests (License): Likewise.
20935         * modules/crypto/md4-tests (License): Likewise.
20936         * modules/crypto/md5 (License): Likewise.
20937         * modules/crypto/rijndael (License): Likewise.
20938         * modules/crypto/sha1 (License): Likewise.
20939         * modules/memxor (License): Likewise.
20940
20941 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20942         and Bruno Haible  <bruno@clisp.org>
20943
20944         * NEWS: Describe interface changes to human, xstrtol.
20945         * lib/human.h: Include <xstrtol.h>.
20946         (human_options): Return enum strtol_error, not int.  Remove
20947         bool arg; take int * instead.
20948         * lib/human.c: Don't include "gettext.h".
20949         (_): Remove; no longer used.
20950         Don't include <xstrtol.h>, since human.h does it.
20951         (human_options): Adjust to abovementioned interface changes.
20952         Do not report error to stderr; that's now the caller's
20953         responsibility.
20954         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
20955         interface change.
20956         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
20957         Str, Argument_type_string.  All uses changed.  Put " argument"
20958         in diagnostics to make them clearer.  Change wording of suffix
20959         message for clarity.
20960         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
20961         Argument_type_string.
20962         (STRTOL_FATAL_WARN): Remove; no longer used.
20963         * modules/human (Depends-on): Remove gettext-h.
20964
20965 2007-08-06  Simon Josefsson  <simon@josefsson.org>
20966
20967         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
20968
20969 2007-07-31  Bruno Haible  <bruno@clisp.org>
20970
20971         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
20972         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
20973         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
20974
20975 2007-07-31  Bruno Haible  <bruno@clisp.org>
20976
20977         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
20978         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
20979
20980 2007-07-30  Bruno Haible  <bruno@clisp.org>
20981
20982         * modules/base64 (License): Use the synonymous term "LGPLv2+".
20983         * modules/c-ctype (License): Likewise.
20984         * modules/c-strcase (License): Likewise.
20985         * modules/check-version (License): Likewise.
20986         * modules/iconv (License): Likewise.
20987         * modules/iconv_open (License): Likewise.
20988         * modules/read-file (License): Likewise.
20989         * modules/striconv (License): Likewise.
20990         * modules/strverscmp (License): Likewise.
20991         * modules/vasprintf (License): Likewise.
20992         * modules/crypto/des (License): Likewise.
20993         * modules/crypto/gc (License): Likewise.
20994         * modules/crypto/gc-arcfour (License): Likewise.
20995         * modules/crypto/gc-arctwo (License): Likewise.
20996         * modules/crypto/gc-des (License): Likewise.
20997         * modules/crypto/gc-hmac-md5 (License): Likewise.
20998         * modules/crypto/gc-hmac-sha1 (License): Likewise.
20999         * modules/crypto/gc-md2 (License): Likewise.
21000         * modules/crypto/gc-md4 (License): Likewise.
21001         * modules/crypto/gc-md5 (License): Likewise.
21002         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
21003         * modules/crypto/gc-random (License): Likewise.
21004         * modules/crypto/gc-rijndael (License): Likewise.
21005         * modules/crypto/gc-sha1 (License): Likewise.
21006         * modules/crypto/md2 (License): Likewise.
21007         * modules/crypto/md4 (License): Likewise.
21008
21009 2007-07-30  Jim Meyering  <jim@meyering.net>
21010
21011         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
21012         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
21013         it has valid stat data.  This bug would cause du not to count the
21014         sizes of inaccessible directories.
21015         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
21016         in <http://bugzilla.redhat.com/250077>.
21017
21018 2007-07-25  Peter O'Gorman  <peter@pogma.com>
21019             Bruno Haible  <bruno@clisp.org>
21020
21021         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
21022         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
21023         #include_next, gives a diagnostic about it, but reports no error in
21024         the exit code.
21025         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
21026
21027 2007-07-24  Ben Pfaff  <blp@gnu.org>
21028
21029         Improve name: "count-one-bits" is better than "popcount".
21030         * MODULES.html.sh: Update name.
21031         * lib/popcount.h: Renamed lib/count-one-bits.h.
21032         (popcount): Renamed count_one_bits.
21033         (popcountl): Renamed count_one_bits_l.
21034         (popcountll): Renamed count_one_bits_ll.
21035         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
21036         * modules/popcount: Renamed module/count-one-bits.
21037         * modules/popcount-tests: Renamed module/count-one-bits-tests.
21038         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
21039
21040 2007-07-23  Ben Pfaff  <blp@gnu.org>
21041
21042         * lib/popcount.h (popcount32): Reduce size of constants, to allow
21043         better code generation, and add U to large constants to avoid
21044         warnings, in non-GCC case.
21045         Suggested by Bruno Haible.
21046
21047 2007-07-23  Ben Pfaff  <blp@gnu.org>
21048
21049         * lib/popcount.h: Use verify_true instead of if...abort.
21050         * modules/popcount: Depend on verify module.
21051         Suggested by Jim Meyering.
21052
21053 2007-07-23  Bruno Haible  <bruno@clisp.org>
21054
21055         * gnulib-tool (func_import): Create a .cvsignore file also when the
21056         directory is not yet in CVS but the toplevel directory is. When
21057         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
21058         Reported by Karl Berry.
21059
21060 2007-07-22  Ben Pfaff  <blp@gnu.org>
21061
21062         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
21063         case.
21064         Suggested by Eric Blake.
21065
21066 2007-07-22  Ben Pfaff  <blp@gnu.org>
21067
21068         New module: popcount.
21069         * MODULES.html.sh: Add popcount.
21070         * modules/popcount: New file.
21071         * modules/popcount-tests: New file.
21072         * tests/test-popcount.c: New file.
21073         * lib/popcount.h: New file.
21074         * m4/popcount.m4: New file.
21075
21076 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21077
21078         * build-aux/announce-gen: Update to GPLv3.
21079
21080         * build-aux/config.guess: Update from config.
21081
21082 2007-07-21  Bruno Haible  <bruno@clisp.org>
21083
21084         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
21085         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
21086
21087 2007-07-20  Jim Meyering  <jim@meyering.net>
21088
21089         * check-module: Diagnose a self-dependency.
21090
21091 2007-07-19  Bruno Haible  <bruno@clisp.org>
21092
21093         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
21094         empty.
21095         Reported by Eric Blake.
21096
21097 2007-07-18  Bruno Haible  <bruno@clisp.org>
21098
21099         * gnulib-tool: New options --po-base, --po-domain.
21100         (func_usage): Document them.
21101         (pobase, po_domain): New variables.
21102         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
21103         DEFAULT_TEXT_DOMAIN.
21104         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
21105         (func_import): Consider pobase and po_domain. Create a po/ directory.
21106         (func_create_testdir): Set pobase and po_domain to empty.
21107         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
21108         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
21109
21110 2007-07-18  Bruno Haible  <bruno@clisp.org>
21111
21112         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21113         EXTRA_DIST augmentation for files in build-aux/.
21114
21115 2007-07-16  Bruno Haible  <bruno@clisp.org>
21116
21117         * modules/lseek (License): Use the synonymous term "LGPLv2+".
21118         * modules/getdelim (License): Likewise.
21119
21120 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21121
21122         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
21123         * modules/d-type (License): Likewise.
21124         * modules/extensions (License): Likewise.
21125         * modules/fnmatch (License): Likewise.
21126         * modules/fseeko (License): Likewise.
21127         * modules/getaddrinfo (License): Likewise.
21128         * modules/getline (License): Likewise.
21129         * modules/getlogin_r (License): Likewise.
21130         * modules/getpass (License): Likewise.
21131         * modules/gettimeofday (License): Likewise.
21132         * modules/glob (License): Likewise.
21133         * modules/inet_ntop (License): Likewise.
21134         * modules/malloc (License): Likewise.
21135         * modules/malloca (License): Likewise.
21136         * modules/memmem (License): Likewise.
21137         * modules/mempcpy (License): Likewise.
21138         * modules/memset (License): Likewise.
21139         * modules/minmax (License): Likewise.
21140         * modules/mktime (License): Likewise.
21141         * modules/netinet_in (License): Likewise.
21142         * modules/pathmax (License): Likewise.
21143         * modules/poll (License): Likewise.
21144         * modules/regex (License): Likewise.
21145         * modules/snprintf (License): Likewise.
21146         * modules/stdbool (License): Likewise.
21147         * modules/stdint (License): Likewise.
21148         * modules/stdio (License): Likewise.
21149         * modules/strcase (License): Likewise.
21150         * modules/strcasestr (License): Likewise.
21151         * modules/strdup (License): Likewise.
21152         * modules/string (License): Likewise.
21153         * modules/strndup (License): Likewise.
21154         * modules/strnlen (License): Likewise.
21155         * modules/strpbrk (License): Likewise.
21156         * modules/strptime (License): Likewise.
21157         * modules/strsep (License): Likewise.
21158         * modules/sys_select (License): Likewise.
21159         * modules/sys_socket (License): Likewise.
21160         * modules/sys_stat (License): Likewise.
21161         * modules/sys_time (License): Likewise.
21162         * modules/time (License): Likewise.
21163         * modules/time_r (License): Likewise.
21164         * modules/timegm (License): Likewise.
21165         * modules/unistd (License): Likewise.
21166         * modules/vsnprintf (License): Likewise.
21167         * modules/wctype (License): Likewise.
21168
21169 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21170
21171         * modules/argz (License): LGPLv2+.
21172
21173 2007-07-15  Karl Berry  <karl@gnu.org>
21174
21175         * doc/gnulib.texi: revise node structure per new fdl.texi.
21176
21177 2007-07-14  Bruno Haible  <bruno@clisp.org>
21178
21179         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
21180         the output file.
21181         * lib/uniname/uninames.h: Regenerated.
21182
21183 2007-07-14  Karl Berry  <karl@gnu.org>
21184
21185         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
21186         omitting sectioning and index commands.
21187
21188 2007-07-13  Bruno Haible  <bruno@clisp.org>
21189
21190         New gnulib-tool option --more-symlinks.
21191         * gnulib-tool (func_usage): Document --more-symlinks.
21192         (do_copyrights): New variable.
21193         Recognize option --more-symlinks.
21194         (func_import): Don't add a copyright notice transform to
21195         sed_transform_lib_file if do_copyrights is empty.
21196
21197 2007-07-13  Bruno Haible  <bruno@clisp.org>
21198
21199         * lib/vasnprintf.c (decimal_point_char): Define also if
21200         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
21201         && !NEED_PRINTF_DIRECTIVE_A.
21202         Reported by Clemens Koller <clemens.koller@anagramm.de> via
21203         Gary V. Vaughan <gary@gnu.org>.
21204
21205 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
21206
21207         * lib/inttypes_.h: Undo previous change, since it was fixed
21208         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
21209
21210 2007-07-13  Bruno Haible  <bruno@clisp.org>
21211
21212         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
21213         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
21214
21215 2007-07-13  Jim Meyering  <jim@meyering.net>
21216
21217         df: Don't fail for Tru64's "file-on-file mount".
21218         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
21219         so we fall through and use statfs instead.  Details here:
21220         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
21221         Reported by Albert Chin.
21222
21223 2007-07-13  Bruno Haible  <bruno@clisp.org>
21224
21225         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
21226         * modules/configmake (License): Likewise.
21227         * modules/gettext (License): Likewise.
21228         * modules/gettext-h (License): Likewise.
21229         * modules/include_next (License): Likewise.
21230         * modules/link-warning (License): Likewise.
21231         * modules/localcharset (License): Likewise.
21232         * modules/localename (License): Likewise.
21233         * modules/lock (License): Likewise.
21234         * modules/relocatable-lib-lgpl (License): Likewise.
21235         * modules/size_max (License): Likewise.
21236         * modules/vasnprintf (License): Likewise.
21237         * modules/wchar (License): Likewise.
21238         * modules/xsize (License): Likewise.
21239
21240 2007-07-13  Bruno Haible  <bruno@clisp.org>
21241
21242         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
21243         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
21244
21245 2007-07-12  Bruno Haible  <bruno@clisp.org>
21246
21247         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
21248         in the modules files.
21249
21250 2007-07-11  Karl Berry  <karl@gnu.org>
21251
21252         * MODULES.html.sh (func_module): use
21253          sed -e '\|^'"${includefile}"'$|d'
21254          instead of /.../d, to avoid errors on $includefile's containing /.
21255
21256 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21257
21258         * gnulib-tool (func_import): Avoid duplication of --avoid
21259         statements
21260         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
21261         names to `_' in variable names.
21262
21263 2007-07-10  Eric Blake  <ebb9@byu.net>
21264
21265         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
21266         * NEWS: Document this change.
21267
21268 2007-07-08  Bruno Haible  <bruno@clisp.org>
21269
21270         Update to Unicode 5.0.
21271         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
21272         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
21273         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
21274         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
21275         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
21276         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
21277         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
21278         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
21279         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
21280         U+10A3F, U+1D242..U+1D244.
21281         (nonspacing_table_ind): Update.
21282         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
21283         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
21284
21285 2007-07-08  Bruno Haible  <bruno@clisp.org>
21286
21287         Update to Unicode 5.0.
21288         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
21289         code transform. Extend the name index field of unicode_name_to_code and
21290         unicode_code_to_name from 16 to 24 bits.
21291         * lib/uniname/uniname.c (unicode_character_name,
21292         unicode_name_character): Add the range 0x12xxx to the code transform.
21293         * lib/uniname/uninames.h: Regenerated.
21294         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
21295
21296 2007-07-07  Bruno Haible  <bruno@clisp.org>
21297
21298         * modules/wcwidth-tests: New file.
21299         * tests/test-wcwidth.c: New file.
21300
21301         Work around MacOS X wcwidth() bug.
21302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
21303         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
21304         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
21305         original wcwidth in non-UTF-8 locales.
21306         * modules/wcwidth (Depends-on): Add localcharset, streq,
21307         uniwidth/width.
21308         * doc/functions/wcwidth.texi: Update.
21309
21310 2007-07-07  Bruno Haible  <bruno@clisp.org>
21311
21312         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
21313         (wcwidth): New declaration.
21314         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
21315         macros.
21316         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
21317         here. Prepare for creating <wchar.h> unconditionally.
21318         * modules/wchar (Depends-on): Add link-warning.
21319         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
21320         REPLACE_WCWIDTH, and GL_LINK_WARNING.
21321         * lib/wcwidth.h: Remove file.
21322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
21323         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
21324         * modules/wcwidth (Files): Remove lib/wcwidth.h.
21325         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
21326         (Include): Replace wcwidth.h with <wchar.h>.
21327         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
21328         * lib/mbchar.h: Don't include wcwidth.h.
21329         * lib/mbswidth.c: Likewise.
21330         * NEWS: Mention the change.
21331
21332 2007-07-07  Bruno Haible  <bruno@clisp.org>
21333
21334         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
21335         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
21336         definition with an external declaration.
21337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
21338         defined as a function. Remove AC_C_INLINE requirement.
21339         * modules/wcwidth (Files): Add lib/wcwidth.c.
21340         (Makefile.am): Remove redundant statement.
21341
21342 2007-07-07  Bruno Haible  <bruno@clisp.org>
21343
21344         * MODULES.html.sh (Unicode string functions): Add the new modules.
21345
21346         * tests/uniwidth/test-u32-strwidth.c: New file.
21347         * modules/uniwidth/u32-strwidth-tests: New file.
21348
21349         * lib/uniwidth/u32-strwidth.c: New file.
21350         * modules/uniwidth/u32-strwidth: New file.
21351
21352         * tests/uniwidth/test-u16-strwidth.c: New file.
21353         * modules/uniwidth/u16-strwidth-tests: New file.
21354
21355         * lib/uniwidth/u16-strwidth.c: New file.
21356         * modules/uniwidth/u16-strwidth: New file.
21357
21358         * tests/uniwidth/test-u8-strwidth.c: New file.
21359         * modules/uniwidth/u8-strwidth-tests: New file.
21360
21361         * lib/uniwidth/u8-strwidth.c: New file.
21362         * modules/uniwidth/u8-strwidth: New file.
21363
21364         * tests/uniwidth/test-u32-width.c: New file.
21365         * modules/uniwidth/u32-width-tests: New file.
21366
21367         * lib/uniwidth/u32-width.c: New file.
21368         * modules/uniwidth/u32-width: New file.
21369
21370         * tests/uniwidth/test-u16-width.c: New file.
21371         * modules/uniwidth/u16-width-tests: New file.
21372
21373         * lib/uniwidth/u16-width.c: New file.
21374         * modules/uniwidth/u16-width: New file.
21375
21376         * tests/uniwidth/test-u8-width.c: New file.
21377         * modules/uniwidth/u8-width-tests: New file.
21378
21379         * lib/uniwidth/u8-width.c: New file.
21380         * modules/uniwidth/u8-width: New file.
21381
21382         * tests/uniwidth/test-uc_width.c: New file.
21383         * modules/uniwidth/width-tests: New file.
21384
21385         * lib/uniwidth/width.c: New file, from GNU libiconv.
21386         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
21387         * modules/uniwidth/width: New file.
21388
21389         * lib/uniwidth.h: New file, from GNU libiconv.
21390         * modules/uniwidth/base: New file.
21391
21392 2007-07-07  Bruno Haible  <bruno@clisp.org>
21393
21394         * lib/uniname.h: New file, from GNU gettext.
21395         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
21396         * lib/uniname/uninames.h: New file, from GNU gettext.
21397         * lib/uniname/uniname.c: New file, from GNU gettext.
21398         * tests/uniname/test-uninames.sh: New file.
21399         * tests/uniname/test-uninames.c: New file, from GNU gettext.
21400         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
21401         * modules/uniname/base: New file.
21402         * modules/uniname/uniname: New file.
21403         * modules/uniname/uniname-tests: New file.
21404         * MODULES.html.sh (Unicode string functions): Add the new modules.
21405
21406 2007-07-06  Bruno Haible  <bruno@clisp.org>
21407
21408         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
21409
21410 2007-07-06  Bruno Haible  <bruno@clisp.org>
21411
21412         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
21413         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
21414         includes <cygwin/sys_time.h> which includes <sys/select.h> which
21415         include <sys/time.h>.
21416         Reported by Eric Blake.
21417
21418 2007-07-06  Eric Blake  <ebb9@byu.net>
21419
21420         Fix testing canonicalize on cygwin.
21421         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21422         Revert patch from 2007-06-19.
21423         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
21424         canonicalize module is also in use.
21425         * tests/test-canonicalize.c: New file.
21426         * tests/test-canonicalize.sh: Likewise.
21427         * modules/canonicalize-tests: Likewise.
21428
21429 2007-07-06  Jim Meyering  <jim@meyering.net>
21430
21431         * lib/getugroups.c (getugroups): Detect getgrent failure.
21432         Adjust comment to reflect reality: this function may return -1.
21433
21434 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21435
21436         * build-aux/bootstrap (TP_URL,get_translations): Update to use
21437         the new TP address.
21438         (usage): Fix typo
21439         (gnulib_mk): New variable.
21440
21441 2007-07-05  Jim Meyering  <jim@meyering.net>
21442
21443         Don't let endgrent clobber errno, no matter how improbable.
21444         * lib/getugroups.c (getugroups): Save and restore errno around
21445         endgrent call.
21446
21447         Close the group DB even when failing with 2^31 or more members.
21448         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
21449
21450 2007-07-04  Jim Meyering  <jim@meyering.net>
21451
21452         * lib/getugroups.h: New file.
21453         * lib/getugroups.c: Include "getugroups.h".
21454         Remove uses of "register" keyword.
21455         Move local variable, "cp", down into scope where used.
21456         Give "username" parameter the "const" attribute.
21457         * modules/getugroups (Files): Add lib/getugroups.h
21458
21459 2007-07-04  Karl Berry  <karl@gnu.org>
21460
21461         * MODULES.html.sh (func_all_modules): Complete rename of
21462         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
21463
21464 2007-07-02  Bruno Haible  <bruno@clisp.org>
21465
21466         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
21467         mode, when inttypes.h comes from gnulib.
21468         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21469
21470 2007-07-02  Simon Josefsson  <simon@josefsson.org>
21471
21472         * NEWS: Mention lgpl module name change.
21473
21474         * modules/lgpl-2.1: Renamed from lgpl.
21475
21476         * NEWS: Mention gpl module name change.
21477
21478         * modules/gpl-3.0: New file, based on gpl-2.0.
21479
21480         * modules/gpl-2.0: Renamed from gpl.
21481
21482         * modules/gpl: Fix filename, doc/gpl.texi is now found at
21483         doc/gpl-2.0.texi.
21484
21485 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21486
21487         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
21488         #define __STDC_LIMIT_MACROS temporarily while including
21489         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
21490         Problem reported by Joel E. Denny in
21491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
21492
21493 2007-07-01  Bruno Haible  <bruno@clisp.org>
21494
21495         * lib/unistdio.h: New file.
21496         * lib/unistdio/u-asnprintf.h: New file.
21497         * lib/unistdio/u-asprintf.h: New file.
21498         * lib/unistdio/u-printf-args.c: New file.
21499         * lib/unistdio/u-printf-args.h: New file.
21500         * lib/unistdio/u-printf-parse.h: New file.
21501         * lib/unistdio/u-snprintf.h: New file.
21502         * lib/unistdio/u-sprintf.h: New file.
21503         * lib/unistdio/u-vasprintf.h: New file.
21504         * lib/unistdio/u-vsnprintf.h: New file.
21505         * lib/unistdio/u-vsprintf.h: New file.
21506         * lib/unistdio/ulc-asnprintf.c: New file.
21507         * lib/unistdio/ulc-asprintf.c: New file.
21508         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
21509         * lib/unistdio/ulc-printf-parse.c: New file.
21510         * lib/unistdio/ulc-snprintf.c: New file.
21511         * lib/unistdio/ulc-sprintf.c: New file.
21512         * lib/unistdio/ulc-vasnprintf.c: New file.
21513         * lib/unistdio/ulc-vasprintf.c: New file.
21514         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
21515         * lib/unistdio/ulc-vsnprintf.c: New file.
21516         * lib/unistdio/ulc-vsprintf.c: New file.
21517         * lib/unistdio/u8-asnprintf.c: New file.
21518         * lib/unistdio/u8-asprintf.c: New file.
21519         * lib/unistdio/u8-printf-parse.c: New file.
21520         * lib/unistdio/u8-snprintf.c: New file.
21521         * lib/unistdio/u8-sprintf.c: New file.
21522         * lib/unistdio/u8-vasnprintf.c: New file.
21523         * lib/unistdio/u8-vasprintf.c: New file.
21524         * lib/unistdio/u8-vsnprintf.c: New file.
21525         * lib/unistdio/u8-vsprintf.c: New file.
21526         * lib/unistdio/u8-u8-asnprintf.c: New file.
21527         * lib/unistdio/u8-u8-asprintf.c: New file.
21528         * lib/unistdio/u8-u8-snprintf.c: New file.
21529         * lib/unistdio/u8-u8-sprintf.c: New file.
21530         * lib/unistdio/u8-u8-vasnprintf.c: New file.
21531         * lib/unistdio/u8-u8-vasprintf.c: New file.
21532         * lib/unistdio/u8-u8-vsnprintf.c: New file.
21533         * lib/unistdio/u8-u8-vsprintf.c: New file.
21534         * lib/unistdio/u16-asnprintf.c: New file.
21535         * lib/unistdio/u16-asprintf.c: New file.
21536         * lib/unistdio/u16-printf-parse.c: New file.
21537         * lib/unistdio/u16-snprintf.c: New file.
21538         * lib/unistdio/u16-sprintf.c: New file.
21539         * lib/unistdio/u16-vasnprintf.c: New file.
21540         * lib/unistdio/u16-vasprintf.c: New file.
21541         * lib/unistdio/u16-vsnprintf.c: New file.
21542         * lib/unistdio/u16-vsprintf.c: New file.
21543         * lib/unistdio/u16-u16-asnprintf.c: New file.
21544         * lib/unistdio/u16-u16-asprintf.c: New file.
21545         * lib/unistdio/u16-u16-snprintf.c: New file.
21546         * lib/unistdio/u16-u16-sprintf.c: New file.
21547         * lib/unistdio/u16-u16-vasnprintf.c: New file.
21548         * lib/unistdio/u16-u16-vasprintf.c: New file.
21549         * lib/unistdio/u16-u16-vsnprintf.c: New file.
21550         * lib/unistdio/u16-u16-vsprintf.c: New file.
21551         * lib/unistdio/u32-asnprintf.c: New file.
21552         * lib/unistdio/u32-asprintf.c: New file.
21553         * lib/unistdio/u32-printf-parse.c: New file.
21554         * lib/unistdio/u32-snprintf.c: New file.
21555         * lib/unistdio/u32-sprintf.c: New file.
21556         * lib/unistdio/u32-vasnprintf.c: New file.
21557         * lib/unistdio/u32-vasprintf.c: New file.
21558         * lib/unistdio/u32-vsnprintf.c: New file.
21559         * lib/unistdio/u32-vsprintf.c: New file.
21560         * lib/unistdio/u32-u32-asnprintf.c: New file.
21561         * lib/unistdio/u32-u32-asprintf.c: New file.
21562         * lib/unistdio/u32-u32-snprintf.c: New file.
21563         * lib/unistdio/u32-u32-sprintf.c: New file.
21564         * lib/unistdio/u32-u32-vasnprintf.c: New file.
21565         * lib/unistdio/u32-u32-vasprintf.c: New file.
21566         * lib/unistdio/u32-u32-vsnprintf.c: New file.
21567         * lib/unistdio/u32-u32-vsprintf.c: New file.
21568         * tests/unistdio/test-ulc-asnprintf1.c: New file.
21569         * tests/unistdio/test-ulc-asnprintf1.h: New file.
21570         * tests/unistdio/test-ulc-printf1.h: New file.
21571         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
21572         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
21573         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
21574         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
21575         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
21576         * tests/unistdio/test-ulc-vasprintf1.c: New file.
21577         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
21578         * tests/unistdio/test-ulc-vsprintf1.c: New file.
21579         * tests/unistdio/test-u8-asnprintf1.c: New file.
21580         * tests/unistdio/test-u8-asnprintf1.h: New file.
21581         * tests/unistdio/test-u8-printf1.h: New file.
21582         * tests/unistdio/test-u8-vasnprintf1.c: New file.
21583         * tests/unistdio/test-u8-vasnprintf2.c: New file.
21584         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
21585         * tests/unistdio/test-u8-vasnprintf3.c: New file.
21586         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
21587         * tests/unistdio/test-u8-vasprintf1.c: New file.
21588         * tests/unistdio/test-u8-vsnprintf1.c: New file.
21589         * tests/unistdio/test-u8-vsprintf1.c: New file.
21590         * tests/unistdio/test-u16-asnprintf1.c: New file.
21591         * tests/unistdio/test-u16-asnprintf1.h: New file.
21592         * tests/unistdio/test-u16-printf1.h: New file.
21593         * tests/unistdio/test-u16-vasnprintf1.c: New file.
21594         * tests/unistdio/test-u16-vasnprintf2.c: New file.
21595         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
21596         * tests/unistdio/test-u16-vasnprintf3.c: New file.
21597         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
21598         * tests/unistdio/test-u16-vasprintf1.c: New file.
21599         * tests/unistdio/test-u16-vsnprintf1.c: New file.
21600         * tests/unistdio/test-u16-vsprintf1.c: New file.
21601         * tests/unistdio/test-u32-asnprintf1.c: New file.
21602         * tests/unistdio/test-u32-asnprintf1.h: New file.
21603         * tests/unistdio/test-u32-printf1.h: New file.
21604         * tests/unistdio/test-u32-vasnprintf1.c: New file.
21605         * tests/unistdio/test-u32-vasnprintf2.c: New file.
21606         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
21607         * tests/unistdio/test-u32-vasnprintf3.c: New file.
21608         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
21609         * tests/unistdio/test-u32-vasprintf1.c: New file.
21610         * tests/unistdio/test-u32-vsnprintf1.c: New file.
21611         * tests/unistdio/test-u32-vsprintf1.c: New file.
21612         * modules/unistdio/base: New file.
21613         * modules/unistdio/u-printf-args: New file.
21614         * modules/unistdio/ulc-asnprintf: New file.
21615         * modules/unistdio/ulc-asprintf: New file.
21616         * modules/unistdio/ulc-fprintf: New file.
21617         * modules/unistdio/ulc-printf-parse: New file.
21618         * modules/unistdio/ulc-snprintf: New file.
21619         * modules/unistdio/ulc-sprintf: New file.
21620         * modules/unistdio/ulc-vasnprintf: New file.
21621         * modules/unistdio/ulc-vasprintf: New file.
21622         * modules/unistdio/ulc-vfprintf: New file.
21623         * modules/unistdio/ulc-vsnprintf: New file.
21624         * modules/unistdio/ulc-vsprintf: New file.
21625         * modules/unistdio/u8-asnprintf: New file.
21626         * modules/unistdio/u8-asprintf: New file.
21627         * modules/unistdio/u8-printf-parse: New file.
21628         * modules/unistdio/u8-snprintf: New file.
21629         * modules/unistdio/u8-sprintf: New file.
21630         * modules/unistdio/u8-vasnprintf: New file.
21631         * modules/unistdio/u8-vasprintf: New file.
21632         * modules/unistdio/u8-vsnprintf: New file.
21633         * modules/unistdio/u8-vsprintf: New file.
21634         * modules/unistdio/u8-u8-asnprintf: New file.
21635         * modules/unistdio/u8-u8-asprintf: New file.
21636         * modules/unistdio/u8-u8-snprintf: New file.
21637         * modules/unistdio/u8-u8-sprintf: New file.
21638         * modules/unistdio/u8-u8-vasnprintf: New file.
21639         * modules/unistdio/u8-u8-vasprintf: New file.
21640         * modules/unistdio/u8-u8-vsnprintf: New file.
21641         * modules/unistdio/u8-u8-vsprintf: New file.
21642         * modules/unistdio/u16-asnprintf: New file.
21643         * modules/unistdio/u16-asprintf: New file.
21644         * modules/unistdio/u16-printf-parse: New file.
21645         * modules/unistdio/u16-snprintf: New file.
21646         * modules/unistdio/u16-sprintf: New file.
21647         * modules/unistdio/u16-vasnprintf: New file.
21648         * modules/unistdio/u16-vasprintf: New file.
21649         * modules/unistdio/u16-vsnprintf: New file.
21650         * modules/unistdio/u16-vsprintf: New file.
21651         * modules/unistdio/u16-u16-asnprintf: New file.
21652         * modules/unistdio/u16-u16-asprintf: New file.
21653         * modules/unistdio/u16-u16-snprintf: New file.
21654         * modules/unistdio/u16-u16-sprintf: New file.
21655         * modules/unistdio/u16-u16-vasnprintf: New file.
21656         * modules/unistdio/u16-u16-vasprintf: New file.
21657         * modules/unistdio/u16-u16-vsnprintf: New file.
21658         * modules/unistdio/u16-u16-vsprintf: New file.
21659         * modules/unistdio/u32-asnprintf: New file.
21660         * modules/unistdio/u32-asprintf: New file.
21661         * modules/unistdio/u32-printf-parse: New file.
21662         * modules/unistdio/u32-snprintf: New file.
21663         * modules/unistdio/u32-sprintf: New file.
21664         * modules/unistdio/u32-vasnprintf: New file.
21665         * modules/unistdio/u32-vasprintf: New file.
21666         * modules/unistdio/u32-vsnprintf: New file.
21667         * modules/unistdio/u32-vsprintf: New file.
21668         * modules/unistdio/u32-u32-asnprintf: New file.
21669         * modules/unistdio/u32-u32-asprintf: New file.
21670         * modules/unistdio/u32-u32-snprintf: New file.
21671         * modules/unistdio/u32-u32-sprintf: New file.
21672         * modules/unistdio/u32-u32-vasnprintf: New file.
21673         * modules/unistdio/u32-u32-vasprintf: New file.
21674         * modules/unistdio/u32-u32-vsnprintf: New file.
21675         * modules/unistdio/u32-u32-vsprintf: New file.
21676         * modules/unistdio/ulc-asnprintf-tests: New file.
21677         * modules/unistdio/ulc-vasnprintf-tests: New file.
21678         * modules/unistdio/ulc-vasprintf-tests: New file.
21679         * modules/unistdio/ulc-vsnprintf-tests: New file.
21680         * modules/unistdio/ulc-vsprintf-tests: New file.
21681         * modules/unistdio/u8-asnprintf-tests: New file.
21682         * modules/unistdio/u8-vasnprintf-tests: New file.
21683         * modules/unistdio/u8-vasprintf-tests: New file.
21684         * modules/unistdio/u8-vsnprintf-tests: New file.
21685         * modules/unistdio/u8-vsprintf-tests: New file.
21686         * modules/unistdio/u16-asnprintf-tests: New file.
21687         * modules/unistdio/u16-vasnprintf-tests: New file.
21688         * modules/unistdio/u16-vasprintf-tests: New file.
21689         * modules/unistdio/u16-vsnprintf-tests: New file.
21690         * modules/unistdio/u16-vsprintf-tests: New file.
21691         * modules/unistdio/u32-asnprintf-tests: New file.
21692         * modules/unistdio/u32-vasnprintf-tests: New file.
21693         * modules/unistdio/u32-vasprintf-tests: New file.
21694         * modules/unistdio/u32-vsnprintf-tests: New file.
21695         * modules/unistdio/u32-vsprintf-tests: New file.
21696         * MODULES.html.sh (Unicode string functions): Add the new modules.
21697
21698 2007-07-01  Bruno Haible  <bruno@clisp.org>
21699
21700         * lib/sprintf.c (sprintf): Limit the available length estimation,
21701         to avoid address wraparound.
21702         * lib/vsprintf.c (vsprintf): Likewise.
21703         * modules/sprintf-posix (Dependencies): Add stdint.
21704         * modules/vsprintf-posix (Dependencies): Likewise.
21705
21706 2007-07-01  Bruno Haible  <bruno@clisp.org>
21707
21708         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
21709         Windows PATH as well. Conservative double-quoting. Comments.
21710
21711 2007-07-01  Bruno Haible  <bruno@clisp.org>
21712             Eric Blake  <ebb9@byu.net>
21713             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21714
21715         * gnulib-tool (self_abspathname): Fix algorithm to cope with
21716         empty components in $PATH, denoting '.'.
21717
21718 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21719
21720         * gnulib-tool: Fix indentation.
21721         (func_create_megatestdir): Likewise.
21722         Report by Bruno Haible.
21723
21724 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21725
21726         Sync from Automake.
21727         * build-aux/gnupload: Fix shell portability issues with for loops.
21728         Report by Karl Berry.
21729
21730 2007-06-29  Simon Josefsson  <simon@josefsson.org>
21731
21732         * build-aux/maint.mk (POURL): Use translationproject.org.
21733
21734 2007-06-27  Simon Josefsson  <simon@josefsson.org>
21735             Bruno Haible  <bruno@clisp.org>
21736
21737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
21738         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
21739         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
21740         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
21741         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
21742
21743 2007-06-27  Bruno Haible  <bruno@clisp.org>
21744
21745         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
21746         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
21747
21748 2007-06-26  Karl Berry  <karl@gnu.org>
21749
21750         * MODULES.html.sh: remove xreadlink-with-size.
21751
21752 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21753
21754         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
21755         method that I hope also handles the double-include problem noted
21756         by Bruno Haible in
21757         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
21758
21759 2007-06-23  Bruno Haible  <bruno@clisp.org>
21760
21761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21762         Don't let the 'mostlyclean' target fail if the last subdirectory could
21763         not be removed.
21764         Reported by Karl Berry.
21765
21766 2007-06-23  Bruno Haible  <bruno@clisp.org>
21767
21768         * gnulib-tool (echo): Add a speedier workaround for ksh.
21769         * tests/test-echo.sh: Likewise.
21770
21771 2007-06-23  Bruno Haible  <bruno@clisp.org>
21772
21773         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
21774         * tests/test-echo.sh: Likewise.
21775
21776 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21777
21778         * gnulib-tool (IFS): Initialize early, so we don't set it to
21779         empty later.
21780         (self_abspathname): Rewrite algorithm to set it, reindent.
21781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21782         (func_create_megatestdir): Merge some sed scripts.
21783
21784 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21785
21786         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
21787         exposed by Sun Studio 11 cc on Solaris 8.
21788
21789 2007-06-22  Bruno Haible  <bruno@clisp.org>
21790
21791         * gnulib-tool (echo): Ensure the echo primitive does not interpret
21792         backslashes.
21793         * tests/test-echo.sh: New file.
21794
21795 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21796
21797         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
21798         simplify `sed_replace_build_aux' scripts, they are portable but
21799         echoing them with `echo' is not.
21800         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
21801
21802 2007-06-21  Karl Berry  <karl@gnu.org>
21803
21804         * config/srclist.txt: guess we can't handle the licenses via
21805         srclist at the moment.
21806
21807 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         * MODULES.html.sh: Add include_next.
21810         * modules/include_next: New file.
21811
21812 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21813
21814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
21815         INCLUDE_NEXT.
21816         (gl_CHECK_NEXT_HEADERS): New macro.
21817         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
21818         the obsolescent gl_ABSOLUTE_HEADER.
21819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21820         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21821         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21822         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21823         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21824         * m4/math_h.m4 (gl_MATH_H): Likewise.
21825         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21826         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21827         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21828         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21829         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21830         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21834         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21835         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21836         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21837         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
21838         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21840         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21841         * m4/inttypes.m4 (gl_INTTYPES_H): Define
21842         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
21843         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
21844         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
21845         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
21846         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
21847         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
21848         * lib/float_.h: Likewise.
21849         * lib/inttypes_.h: Likewise.
21850         * lib/math_.h: Likewise.
21851         * lib/search_.h: Likewise.
21852         * lib/signal_.h: Likewise.
21853         * lib/stdint_.h: Likewise.
21854         * lib/stdio_.h: Likewise.
21855         * lib/stdlib_.h: Likewise.
21856         * lib/string_.h: Likewise.
21857         * lib/sys_stat_.h: Likewise.
21858         * lib/sys_time_.h: Likewise.
21859         * lib/time_.h: Likewise.
21860         * lib/unistd_.h: Likewise.
21861         * lib/wchar_.h: Likewise.
21862         * lib/wctype_.h: Likewise.
21863         * lib/dirent_.h: Likewise.
21864         * lib/iconv_.h: Likewise.
21865         * lib/locale_.h: Likewise.
21866         * lib/netinet_in_.h: Likewise.
21867         * lib/sys_select_.h: Likewise.
21868         * lib/sys_socket_.h: Likewise.
21869         * lib/sysexits_.h: Likewise.
21870         * modules/fcntl (Depends-on): Depend on include_next, not
21871         absolute_header.
21872         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
21873         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
21874         * modules/fchdir: Likewise.
21875         * modules/float: Likewise.
21876         * modules/iconv_open: Likewise.
21877         * modules/inttypes: Likewise.
21878         * modules/locale: Likewise.
21879         * modules/math: Likewise.
21880         * modules/netinet_in: Likewise.
21881         * modules/search: Likewise.
21882         * modules/signal: Likewise.
21883         * modules/stdint: Likewise.
21884         * modules/stdio: Likewise.
21885         * modules/stdlib: Likewise.
21886         * modules/string: Likewise.
21887         * modules/sys_select: Likewise.
21888         * modules/sys_socket: Likewise.
21889         * modules/sys_stat: Likewise.
21890         * modules/sys_time: Likewise.
21891         * modules/sysexits: Likewise.
21892         * modules/time: Likewise.
21893         * modules/unistd: Likewise.
21894         * modules/wchar: Likewise.
21895         * modules/wctype: Likewise.
21896         * modules/sys_stat: Change maintainer to "all".
21897         * modules/unistd: Likewise.
21898
21899 2007-06-20  Karl Berry  <karl@gnu.org>
21900
21901         * config/srclist.txt: track www changes in license files.
21902
21903 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
21904
21905         * build-aux/bootstrap: Remove stray dot.
21906         Make sure build_aux settings are honored when linking
21907         gnulib_extra_files.
21908
21909 2007-06-19  Eric Blake  <ebb9@byu.net>
21910
21911         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21912         Allow compilation on cygwin.
21913
21914 2007-06-19  Jim Meyering  <jim@meyering.net>
21915
21916         xreadlink-with-size: Remove module.  No longer used.
21917         Ex-callers now use xreadlink or mreadlink-with-size.
21918         * modules/xreadlink-with-size: Remove module.
21919         * lib/xreadlink-with-size.c: Remove file.
21920         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
21921         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
21922         just before the function definition *is* accurate.
21923
21924         Eliminate one way canonicalize_filename_mode could exit.
21925         * lib/canonicalize.c (canonicalize_filename_mode):
21926         Use mreadlink_with_size, not xreadlink_with_size.
21927
21928 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
21929
21930         Detect porting problems to FreeBSD/arm, which has time_t wider than
21931         long int.  Original problem reported for GNU diff by Xin Li in
21932         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
21933         * modules/getdate (Depends-on): Add intprops, verify.
21934         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
21935         is an integer type no wider than long int.
21936
21937 2007-06-18  Jim Meyering  <jim@meyering.net>
21938
21939         New module: mreadlink-with-size.
21940         * MODULES.html.sh: Add mreadlink-with-size.
21941         * modules/mreadlink-with-size: New module
21942         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
21943         not xreadlink-with-size.
21944         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
21945
21946 2007-06-16  Bruno Haible  <bruno@clisp.org>
21947
21948         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
21949         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
21950         Reported by Gary V. Vaughan <gary@gnu.org>.
21951
21952 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         Revamp lchown so that it lives in unistd.h where it belongs.
21955         * lib/lchown.h: Remove.
21956         * lib/dirchownmod.c: Don't include lib/lchown.h.
21957         * lib/fchownat.c: Likewise.
21958         * lib/openat.c: Likewise.
21959         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
21960         does not follow symlinks.
21961         (EOPNOTSUPP): Define if not defined.
21962         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
21963         is defined to 0.
21964         (lchown): New decl.
21965         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
21966         Do not check for lchown decl.
21967         Set REPLACE_LCHOWN.
21968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
21969         REPLACE_LCHOWN.
21970         * modules/chown: Make it clear it follows symlinks.
21971         * modules/lchown: Make it clear it doesn't follow symlinks.
21972         (Files): Remove lib/lchown.h
21973         (Depends-on): Add unistd.
21974         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
21975         (Include): Include <unistd.h>, not "lchown.h".
21976         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
21977         REPLACE_LCHOWN.
21978
21979 2007-06-15  Jim Meyering  <jim@meyering.net>
21980
21981         Change license (GPL to LGPL) of fsusage and dependents.
21982         * modules/fsusage (License): Change to LGPL.
21983         * modules/full-read (License): Likewise.
21984         * modules/full-write (License): Likewise.
21985         * modules/safe-read (License): Likewise.
21986         * modules/safe-write (License): Likewise.
21987
21988 2007-06-14  Ben Pfaff  <blp@gnu.org>
21989
21990         Missing part of allocsa -> malloca transition.
21991         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
21992         gl_MALLOCA.
21993
21994 2007-06-12  Bruno Haible  <bruno@clisp.org>
21995
21996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
21997         to ia64, x86_64, i386.
21998         Reported by Eric Blake.
21999
22000 2007-06-12  Bruno Haible  <bruno@clisp.org>
22001
22002         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
22003         cross-compiling to x86_64.
22004
22005 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
22006
22007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
22008         glitch reported by Ralf Wildenhues in
22009         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
22010
22011         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
22012         Vin Shelton.
22013
22014 2007-06-11  Bruno Haible  <bruno@clisp.org>
22015
22016         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
22017         replacement string.
22018         Reported by Eric Blake.
22019
22020 2007-06-10  Bruno Haible  <bruno@clisp.org>
22021
22022         Prepare vasnprintf code for use with Unicode strings.
22023         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
22024         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
22025         TYPE_U32_STRING.
22026         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
22027         a_u32_string variants.
22028         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22029         * lib/printf-args.c: Don't include config.h and the specification
22030         header if PRINTF_FETCHARGS is already defined.
22031         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22032         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
22033         TYPE_U16_STRING, TYPE_U32_STRING.
22034         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
22035         u16_directive, u16_directives, u32_directive, u32_directives): New
22036         types.
22037         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
22038         New declarations.
22039         * lib/printf-parse.c: Don't include config.h and the specification
22040         header if PRINTF_PARSE is already defined. Eliminate the set of
22041         parameters for WIDE_CHAR_VERSION; the user of this file must provide
22042         them now. Include c-ctype.h.
22043         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
22044         directive and CHAR_T_ONLY_ASCII.
22045         * lib/vasnprintf.c: Don't include config.h and the specification header
22046         if VASNPRINTF is already defined.
22047         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
22048         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
22049         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
22050         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
22051         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
22052         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
22053         code accordingly.
22054         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
22055         pad_ourselves also in this case, with the 'c' and 's' directives, and
22056         with a different notion of "width".
22057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
22058
22059 2007-06-10  Bruno Haible  <bruno@clisp.org>
22060
22061         * modules/unistr/u32-mbsnlen: New file.
22062         * lib/unistr/u32-mbsnlen.c: New file.
22063
22064         * modules/unistr/u16-mbsnlen: New file.
22065         * lib/unistr/u16-mbsnlen.c: New file.
22066
22067         * modules/unistr/u8-mbsnlen: New file.
22068         * lib/unistr/u8-mbsnlen.c: New file.
22069
22070         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
22071         declarations.
22072
22073 2007-06-10  Bruno Haible  <bruno@clisp.org>
22074
22075         * lib/string_.h (mbsnlen): New declaration.
22076         * lib/mbsnlen.c: New file.
22077         * m4/mbsnlen.m4: New file.
22078         * modules/mbsnlen: New file.
22079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
22080         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
22081         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
22082
22083 2007-06-10  Bruno Haible  <bruno@clisp.org>
22084
22085         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
22086
22087 2007-06-10  Bruno Haible  <bruno@clisp.org>
22088
22089         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
22090         * lib/mbuiter.h: Likewise.
22091
22092 2007-06-10  Bruno Haible  <bruno@clisp.org>
22093
22094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
22095         declaration.
22096
22097 2007-06-10  Karl Berry  <karl@gnu.org>
22098
22099         * config/srclist.txt: remove gettext entries, Bruno prefers
22100         to update individually.
22101
22102 2007-06-10  Bruno Haible  <bruno@clisp.org>
22103
22104         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
22105         'maxlen'. Ensure only length + width bytes are allocated, not
22106         length + 1 + width.
22107
22108 2007-06-09  Bruno Haible  <bruno@clisp.org>
22109
22110         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
22111         (CHAR_T): Remove macro.
22112         (VASNPRINTF): Update.
22113
22114 2007-06-09  Bruno Haible  <bruno@clisp.org>
22115
22116         * MODULES.html.sh (Unicode string functions): Add the new modules.
22117
22118         * modules/uniconv/u32-conv-to-enc: New file.
22119         * lib/uniconv/u32-conv-to-enc.c: New file.
22120         * modules/uniconv/u32-conv-to-enc-tests: New file.
22121         * tests/uniconv/test-u32-conv-to-enc.c: New file.
22122
22123         * modules/uniconv/u16-conv-to-enc: New file.
22124         * lib/uniconv/u16-conv-to-enc.c: New file.
22125         * lib/uniconv/u-conv-to-enc.h: New file.
22126         * modules/uniconv/u16-conv-to-enc-tests: New file.
22127         * tests/uniconv/test-u16-conv-to-enc.c: New file.
22128
22129         * modules/uniconv/u8-conv-to-enc: New file.
22130         * lib/uniconv/u8-conv-to-enc.c: New file.
22131         * modules/uniconv/u8-conv-to-enc-tests: New file.
22132         * tests/uniconv/test-u8-conv-to-enc.c: New file.
22133
22134         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22135         u32_conv_to_encoding): New declarations.
22136
22137 2007-06-09  Bruno Haible  <bruno@clisp.org>
22138
22139         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
22140
22141 2007-06-09  Bruno Haible  <bruno@clisp.org>
22142
22143         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
22144         * modules/malloca: Renamed from modules/allocsa, updated.
22145         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
22146         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
22147         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
22148         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
22149         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
22150         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
22151         * modules/xmalloca: Renamed from modules/xallocsa, updated.
22152         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
22153         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
22154         * modules/c-strcasestr (Depends-on): Update.
22155         * lib/c-strcasestr.c: Update.
22156         * modules/c-strstr (Depends-on): Update.
22157         * lib/c-strstr.c: Update.
22158         * modules/canonicalize-lgpl (Depends-on): Update.
22159         * lib/canonicalize-lgpl.c: Update.
22160         * modules/clean-temp (Depends-on): Update.
22161         * lib/clean-temp.c: Update.
22162         * modules/csharpcomp (Depends-on): Update.
22163         * lib/csharpcomp.c: Update.
22164         * modules/csharpexec (Depends-on): Update.
22165         * lib/csharpexec.c: Update.
22166         * modules/javacomp (Depends-on): Update.
22167         * lib/javacomp.c: Update.
22168         * modules/javaexec (Depends-on): Update.
22169         * lib/javaexec.c: Update.
22170         * modules/mbscasestr (Depends-on): Update.
22171         * lib/mbscasestr.c: Update.
22172         * modules/mbsstr (Depends-on): Update.
22173         * lib/mbsstr.c: Update.
22174         * modules/setenv (Depends-on): Update.
22175         * lib/setenv.c: Update.
22176         * modules/strcasestr (Depends-on): Update.
22177         * lib/strcasestr.c: Update.
22178         * modules/striconveha (Depends-on): Update.
22179         * lib/striconveha.c: Update.
22180         * modules/relocatable-prog-wrapper (Files): Update.
22181         * lib/relocwrapper.c: Update.
22182         * build-aux/install-reloc: Update.
22183         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
22184
22185 2007-06-08  Bruno Haible  <bruno@clisp.org>
22186
22187         Port to uClibc.
22188         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
22189         * lib/fpurge.c (fpurge): Likewise.
22190         * lib/freading.c (freading): Likewise.
22191         * lib/fseeko.c (rpl_fseeko): Likewise.
22192         * lib/fseterr.c (fseterr): Likewise.
22193         * lib/fwriting.c (fwriting): Likewise.
22194         * tests/test-fflush.c (main): Avoid a failure on uClibc.
22195
22196 2007-06-08  Bruno Haible  <bruno@clisp.org>
22197
22198         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
22199         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
22200         * modules/gettext (Files): Add m4/intlmacosx.m4.
22201
22202 2007-06-07  Bruno Haible  <bruno@clisp.org>
22203
22204         * modules/localename-tests: New file.
22205         * tests/test-localename.c: New file.
22206
22207         New module 'localename'.
22208         * lib/localename.h: New file.
22209         * lib/localename.c: New file, from GNU gettext.
22210         * m4/localename.m4: New file.
22211         * modules/localename: New file.
22212
22213 2007-06-07  Bruno Haible  <bruno@clisp.org>
22214
22215         Work around the lack of <wchar.h> on some builds of uClibc.
22216         * doc/headers/wchar.texi: Update.
22217         * lib/wchar_.h: Include <wchar.h> only if it exists.
22218         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
22219         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
22220         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
22221         doesn't exist.
22222         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
22223         * modules/mbfile (Depends-on): Add wchar.
22224         * modules/mbiter (Depends-on): Likewise.
22225         * modules/mbuiter (Depends-on): Likewise.
22226         Reported by Simon Josefsson.
22227
22228 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22229
22230         Work around problem reported by Steven M. Schweda in
22231         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
22232         Tru64 5.1B with the Compaq compiler environment installed declares
22233         an 'isblank' function but does not define it in the C library.
22234         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
22235         * lib/regex_internal.h (isblank): Likewise.
22236         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
22237         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22238
22239 2007-06-05  Bruno Haible  <bruno@clisp.org>
22240
22241         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
22242         ia64.
22243         * modules/printf-safe: New file.
22244         * modules/fprintf-posix (Depends-on): Add printf-safe.
22245         * modules/printf-posix (Depends-on): Likewise.
22246         * modules/snprintf-posix (Depends-on): Likewise.
22247         * modules/sprintf-posix (Depends-on): Likewise.
22248         * modules/vasnprintf-posix (Depends-on): Likewise.
22249         * modules/vasprintf-posix (Depends-on): Likewise.
22250         * modules/vfprintf-posix (Depends-on): Likewise.
22251         * modules/vprintf-posix (Depends-on): Likewise.
22252         * modules/vsnprintf-posix (Depends-on): Likewise.
22253         * modules/vsprintf-posix (Depends-on): Likewise.
22254         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
22255         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
22256         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
22257         "no" on i386, x86_64, ia64.
22258         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
22259         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22260         on i386, x86_64, ia64.
22261         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
22262         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22263         on i386, x86_64, ia64.
22264         * tests/test-vasnprintf-posix.c: Include float.h.
22265         (LDBL80_WORDS): New macro.
22266         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22267         on i386, x86_64, ia64.
22268         * tests/test-vasprintf-posix.c: Include float.h.
22269         (LDBL80_WORDS): New macro.
22270         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22271         on i386, x86_64, ia64.
22272         * tests/test-snprintf-posix.c: Include float.h.
22273         * tests/test-sprintf-posix.c: Likewise.
22274         * tests/test-vsnprintf-posix.c: Likewise.
22275         * tests/test-vsprintf-posix.c: Likewise.
22276
22277 2007-06-05  Bruno Haible  <bruno@clisp.org>
22278
22279         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
22280         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
22281         non-IEEE numbers on i386, x86_64, ia64.
22282         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
22283         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
22284         * tests/test-isnanl.h: Include float.h.
22285         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
22286
22287 2007-06-05  Bruno Haible  <bruno@clisp.org>
22288
22289         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
22290         also the %a / %A. Handle the %a / %A code before this extra handling.
22291
22292 2007-06-05  Bruno Haible  <bruno@clisp.org>
22293
22294         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
22295         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
22296
22297 2007-06-05  Bruno Haible  <bruno@clisp.org>
22298
22299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
22300         typo in variable name.
22301
22302 2007-06-05  Eric Blake  <ebb9@byu.net>
22303
22304         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
22305         Reported by Simon Josefsson.
22306
22307 2007-06-04  Bruno Haible  <bruno@clisp.org>
22308
22309         Avoid test failures on some PowerPC platforms.
22310         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
22311         Define differently for PowerPC.
22312         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
22313         Reported by Gary V. Vaughan <gary@gnu.org>.
22314
22315 2007-06-02  Bruno Haible  <bruno@clisp.org>
22316
22317         Fix test-stdint failure on FreeBSD/ia64.
22318         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
22319         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
22320         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
22321         * doc/headers/stdint.texi: Update.
22322
22323 2007-06-01  Bruno Haible  <bruno@clisp.org>
22324
22325         * tests/test-binary-io.c (main): Pass a third argument to open().
22326         Reported by Gary V. Vaughan <gary@gnu.org>.
22327
22328 2007-06-01  Bruno Haible  <bruno@clisp.org>
22329
22330         * doc/functions/frexpl.texi: Update for mingw.
22331
22332 2007-06-01  Bruno Haible  <bruno@clisp.org>
22333
22334         * tests/test-lseek.c (main): Disable test of errno for invalid third
22335         argument.
22336         * doc/functions/lseek.texi: Update.
22337         Reported by Gary V. Vaughan <gary@gnu.org>.
22338
22339 2007-05-28  Bruno Haible  <bruno@clisp.org>
22340
22341         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
22342
22343 2007-05-31  Eric Blake  <ebb9@byu.net>
22344
22345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
22346         cross compiling.
22347
22348 2007-05-30  Eric Blake  <ebb9@byu.net>
22349         and Bruno Haible  <bruno@clisp.org>
22350
22351         Work around mingw test failures exposed by m4-1.4.9b.
22352         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
22353         * tests/test-unistd.c: Disable uid_t and git_t tests for the
22354         moment.
22355
22356 2007-05-30  Bruno Haible  <bruno@clisp.org>
22357
22358         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
22359         assuming that they are closed. Needed on HP-UX 11.
22360
22361 2007-05-29  Bruno Haible  <bruno@clisp.org>
22362
22363         Fix a problem with #include_next.
22364         * lib/dirent_.h: Split the double-inclusion guard.
22365         * lib/fcntl_.h: Likewise.
22366         * lib/float_.h: Likewise.
22367         * lib/iconv_.h: Likewise.
22368         * lib/inttypes_.h: Likewise.
22369         * lib/locale_.h: Likewise.
22370         * lib/math_.h: Likewise.
22371         * lib/netinet_in_.h: Likewise.
22372         * lib/search_.h: Likewise.
22373         * lib/signal_.h: Likewise.
22374         * lib/stdint_.h: Likewise.
22375         * lib/stdio_.h: Likewise.
22376         * lib/stdlib_.h: Likewise.
22377         * lib/string_.h: Likewise.
22378         * lib/sys_select_.h: Likewise.
22379         * lib/sys_socket_.h: Likewise.
22380         * lib/sys_stat_.h: Likewise.
22381         * lib/sys_time_.h: Likewise.
22382         * lib/sysexits_.h: Likewise.
22383         * lib/time_.h: Likewise.
22384         * lib/unistd_.h: Likewise.
22385         * lib/wchar_.h: Likewise.
22386         * lib/wctype_.h: Likewise.
22387
22388 2007-05-29  Bruno Haible  <bruno@clisp.org>
22389
22390         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
22391         for the moment.
22392
22393 2007-05-29  Bruno Haible  <bruno@clisp.org>
22394
22395         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
22396         invocation.
22397         Reported by Eric Blake.
22398
22399 2007-05-29  Bruno Haible  <bruno@clisp.org>
22400
22401         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
22402         compiling case.
22403
22404 2007-05-29  Eric Blake  <ebb9@byu.net>
22405             Bruno Haible  <bruno@clisp.org>
22406
22407         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
22408         cross compiles.
22409
22410 2007-05-28  Eric Blake  <ebb9@byu.net>
22411
22412         * modules/closein-tests (test_closein_LDADD): Support test on
22413         cygwin with libtool.
22414
22415 2007-05-28  Bruno Haible  <bruno@clisp.org>
22416
22417         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
22418         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22419         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22420         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22421         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22422         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22423         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22424         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22425         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22426
22427 2007-05-28  Eric Blake  <ebb9@byu.net>
22428
22429         Unconditionally include <config.h> in unit tests.
22430         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
22431         * tests/test-allocsa.c, tests/test-arcfour.c,
22432         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
22433         tests/test-array_list.c, tests/test-array_oset.c,
22434         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
22435         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
22436         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
22437         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
22438         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
22439         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
22440         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
22441         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
22442         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
22443         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
22444         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
22445         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
22446         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
22447         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
22448         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
22449         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
22450         test-md5.c, test-memmem.c, test-printf-posix.c,
22451         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
22452         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
22453         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
22454         test-strcasestr.c, test-striconv.c, test-striconveh.c,
22455         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
22456         test-vasnprintf-posix2.c, test-vasnprintf.c,
22457         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
22458         test-vfprintf-posix.c, test-vprintf-posix.c,
22459         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
22460         test-xvasprintf.c: Likewise.
22461
22462 2007-05-28  Bruno Haible  <bruno@clisp.org>
22463
22464         * gnulib-tool (func_import): Remember the --with-tests command-line
22465         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
22466         Reported by Eric Blake.
22467
22468 2007-05-28  Bruno Haible  <bruno@clisp.org>
22469
22470         * modules/ftell-tests: New file.
22471         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
22472         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
22473
22474         * lib/ftell.c: New file.
22475         * modules/ftell: New file.
22476         * m4/ftell.m4: New file.
22477         * doc/functions/ftell.texi: Update.
22478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
22479         REPLACE_FTELL.
22480         * lib/stdio_.h (rpl_ftell): New declaration.
22481         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
22482         REPLACE_FTELL.
22483
22484 2007-05-28  Eric Blake  <ebb9@byu.net>
22485
22486         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
22487
22488 2007-05-28  Bruno Haible  <bruno@clisp.org>
22489
22490         * modules/fseek-tests: New file.
22491         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
22492         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
22493
22494         * lib/fseek.c: New file.
22495         * modules/fseek: New file.
22496         * m4/fseek.m4: New file.
22497         * doc/functions/fseek.texi: Update.
22498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
22499         REPLACE_FSEEK.
22500         * lib/stdio_.h (rpl_fseek): New declaration.
22501         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
22502         REPLACE_FSEEK.
22503
22504 2007-05-28  Bruno Haible  <bruno@clisp.org>
22505
22506         * lib/stdio_.h (fflush): More comments.
22507
22508 2007-05-28  Bruno Haible  <bruno@clisp.org>
22509
22510         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
22511         runtime test.
22512
22513 2007-05-28  Eric Blake  <ebb9@byu.net>
22514
22515         Improve lseek module.
22516         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
22517         * lib/unistd_.h (lseek): Scale back link warning message.
22518         * tests/test-lseek.c: Beef up test.
22519         * tests/test-lseek.sh: Exercise more facets of lseek.
22520         Reported by Bruno Haible.
22521
22522 2007-05-28  Bruno Haible  <bruno@clisp.org>
22523
22524         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
22525         to define.
22526
22527 2007-05-27  Bruno Haible  <bruno@clisp.org>
22528
22529         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
22530
22531 2007-05-27  Bruno Haible  <bruno@clisp.org>
22532
22533         * modules/openmp: New file.
22534         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
22535         Noah Misch.
22536
22537 2007-05-26  Bruno Haible  <bruno@clisp.org>
22538
22539         * modules/chdir-long (Depends-on): Add fchdir.
22540         * modules/chdir-safer (Depends-on): Likewise.
22541         * modules/fts (Depends-on): Likewise.
22542         * modules/fts-lgpl (Depends-on): Likewise.
22543         * modules/openat (Depends-on): Likewise.
22544         * modules/savewd (Depends-on): Likewise.
22545
22546 2007-05-24  Eric Blake  <ebb9@byu.net>
22547
22548         Fix lseek on mingw.
22549         * modules/lseek: New module.
22550         * m4/lseek.m4: New file.
22551         * lib/lseek.c: New file.
22552         * modules/lseek-tests: New file.
22553         * tests/test-lseek.c: New file.
22554         * tests/test-lseek.sh: New file.
22555         * MODULES.html.sh: Document lseek module.
22556         * modules/fflush (Depends-on): Add lseek, fseeko.
22557         * modules/fseeko (Depends-on): Likewise.
22558         * modules/ftello (Depends-on): Likewise.
22559         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
22560         broken.
22561         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
22562         broken.
22563         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
22564         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
22565         * lib/ftello.c (rpl_ftello): Likewise.
22566         * tests/test-fseeko.c (main): Test this.
22567         * tests/test-fseeko.sh: Likewise.
22568         * tests/test-ftello.c (main): Likewise.
22569         * tests/test-ftello.sh: Likewise.
22570         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
22571         implies replacing fseek.
22572         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
22573         HAVE_FTELLO.
22574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
22575         * modules/unistd (Makefile.am): Likewise.
22576         * lib/unistd_.h (lseek): Declare a replacement.
22577         * doc/functions/lseek.texi (lseek): Document this fix.
22578         * doc/functions/fseek.texi (fseek): Likewise.
22579         * doc/functions/ftell.texi (ftell): Likewise.
22580
22581 2007-05-24  Bruno Haible  <bruno@clisp.org>
22582
22583         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
22584         in the printed representation of a NaN.
22585         * tests/test-vasprintf-posix.c (test_function): Likewise.
22586         * tests/test-snprintf-posix.h (test_function): Likewise.
22587         * tests/test-sprintf-posix.h (test_function): Likewise.
22588         Reported by Eric Blake.
22589
22590 2007-05-23  Eric Blake  <ebb9@byu.net>
22591
22592         Fix fseeko/ftello on cygwin 1.5.24.
22593         * doc/functions/fseeko.texi (fseeko): Document the fix.
22594         * doc/functions/ftello.texi (ftello): Document the fix.
22595         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
22596         * doc/functions/stdout.text (stdout): New file.
22597         * doc/functions/stderr.text (stderr): New file.
22598         * doc/gnulib.texi (Function Substitutes): Use new files.
22599         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
22600         prior to 1.7.0.
22601         * tests/test-ftello.c (main): Likewise for ftello.
22602         * tests/test-fseeko.sh: New file.
22603         * tests/test-ftello.sh: New file.
22604         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
22605         with seekable stdin.
22606         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
22607         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
22608         (gl_REPLACE_FSEEKO): New macro.
22609         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
22610         * modules/fseeko (Files): Distribute fseeko.c.
22611         * modules/ftello (Files): Distribute ftello.c.
22612         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
22613         mode.
22614         * lib/ftello.c (rpl_ftello): New file.
22615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
22616         fseeko, ftello.
22617         (gl_STDIN_LARGE_OFFSET): New macro.
22618         * modules/stdio (Makefile.am): Perform the replacement.
22619         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
22620
22621 2007-05-23  Bruno Haible  <bruno@clisp.org>
22622
22623         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
22624         GNULIB_POSIXCHECK is defined.
22625
22626 2007-05-21  Bruno Haible  <bruno@clisp.org>
22627
22628         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
22629         Check also the output for NaN arguments. When cross-compiling, guess
22630         no on IRIX.
22631         * lib/vasnprintf.c: Update comments.
22632         * tests/test-vasnprintf-posix.c (strisnan): New function.
22633         (test_function): Use it.
22634         * tests/test-vasprintf-posix.c (strisnan): New function.
22635         (test_function): Use it.
22636         * tests/test-snprintf-posix.h (strisnan): New function.
22637         (test_function): Use it.
22638         * tests/test-sprintf-posix.h (strisnan): New function.
22639         (test_function): Use it.
22640         Reported by Eric Blake.
22641
22642 2007-05-20  Bruno Haible  <bruno@clisp.org>
22643
22644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
22645         numbers that fails on BeOS.
22646         * doc/functions/frexpl.texi: Update.
22647
22648 2007-05-20  Jim Meyering  <jim@meyering.net>
22649
22650         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
22651         forced upon us by glibc-2.6.
22652
22653 2007-05-20  Bruno Haible  <bruno@clisp.org>
22654
22655         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
22656         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
22657         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
22658         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
22659         NEED_PRINTF_INFINITE.
22660         (is_infinitel): New function.
22661         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
22662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
22663         gl_PREREQ_VASNPRINTF_INFINITE.
22664         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
22665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22666         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
22667         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
22668         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
22669         gl_PREREQ_VASNPRINTF_INFINITE.
22670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22677         * doc/functions/fprintf.texi: Update.
22678         * doc/functions/printf.texi: Update.
22679         * doc/functions/snprintf.texi: Update.
22680         * doc/functions/sprintf.texi: Update.
22681         * doc/functions/vfprintf.texi: Update.
22682         * doc/functions/vprintf.texi: Update.
22683         * doc/functions/vsnprintf.texi: Update.
22684         * doc/functions/vsprintf.texi: Update.
22685
22686 2007-05-20  Bruno Haible  <bruno@clisp.org>
22687
22688         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
22689         was not found in libc.
22690         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22691
22692 2007-05-20  Bruno Haible  <bruno@clisp.org>
22693
22694         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22695         printed as "-nan" instead of "nan".
22696         * tests/test-vasprintf-posix.c (test_function): Likewise.
22697         * tests/test-snprintf-posix.h (test_function): Likewise.
22698         * tests/test-sprintf-posix.h (test_function): Likewise.
22699         Needed for HP-UX 11.
22700
22701 2007-05-20  Jim Meyering  <jim@meyering.net>
22702
22703         Fix buggy test for the fchownat-deref bug.
22704         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
22705         symlink required for the run-test.  Without it, this test would
22706         always declare that fchownat doesn't work, and client code would
22707         unnecessarily use the replacement function with fixed libc.
22708         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
22709         Reported by Greg Schafer.
22710
22711 2007-05-19  Bruno Haible  <bruno@clisp.org>
22712
22713         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
22714         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
22715         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
22716         Needed for IRIX 6.5 and Solaris 2.5.1.
22717
22718 2007-05-19  Bruno Haible  <bruno@clisp.org>
22719
22720         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
22721         (test_function): Skip tests involving -0.0 on platforms where
22722         -0.0 = 0.0.
22723         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
22724         (test_function): Skip tests involving -0.0 on platforms where
22725         -0.0 = 0.0.
22726         * tests/test-snprintf-posix.h (have_minus_zero): New function.
22727         (test_function): Skip tests involving -0.0 on platforms where
22728         -0.0 = 0.0.
22729         * tests/test-sprintf-posix.h (have_minus_zero): New function.
22730         (test_function): Skip tests involving -0.0 on platforms where
22731         -0.0 = 0.0.
22732         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
22733         tests.
22734         * tests/test-printf-posix.h (test_function): Likewise.
22735         * tests/test-printf-posix.output: Remove all -0.0 related results.
22736         Needed for IRIX 6.5.
22737
22738 2007-05-19  Bruno Haible  <bruno@clisp.org>
22739
22740         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22741         printed as "nan0x7fffffff" instead of "nan".
22742         * tests/test-vasprintf-posix.c (test_function): Likewise.
22743         * tests/test-snprintf-posix.h (test_function): Likewise.
22744         * tests/test-sprintf-posix.h (test_function): Likewise.
22745         * tests/test-fprintf-posix.h (NaN): Remove macro.
22746         (test_function): Remove all NaN related tests.
22747         * tests/test-printf-posix.h (NaN): Remove macro.
22748         (test_function): Remove all NaN related tests.
22749         * tests/test-printf-posix.output: Remove all NaN related results.
22750         Needed for IRIX 6.5.
22751
22752 2007-05-19  Bruno Haible  <bruno@clisp.org>
22753
22754         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
22755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22756
22757 2007-05-19  Bruno Haible  <bruno@clisp.org>
22758
22759         * lib/float_.h: New file.
22760         * m4/float_h.m4: New file.
22761         * modules/float: New file.
22762         * modules/isnanl (Dependencies): Add float.
22763         * modules/isnanl-nolibm (Dependencies): Likewise.
22764         * modules/mathl (Dependencies): Likewise.
22765         * modules/printf-frexpl (Dependencies): Likewise.
22766         * modules/signbit (Dependencies): Likewise.
22767         * modules/vasnprintf (Dependencies): Likewise.
22768         * doc/headers/float.texi: Update.
22769
22770 2007-05-19  Jim Meyering  <jim@meyering.net>
22771
22772         * lib/utimens.c (gl_futimens): Rename from futimens,
22773         now that glibc-2.6 declares futimens.
22774         * lib/utimens.h: Likewise.
22775
22776 2007-05-19  Bruno Haible  <bruno@clisp.org>
22777
22778         Avoid test failures on mingw.
22779         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
22780         * tests/test-printf-posix.sh: Likewise.
22781         * tests/test-vfprintf-posix.sh: Likewise.
22782         * tests/test-vprintf-posix.sh: Likewise.
22783
22784 2007-05-19  Bruno Haible  <bruno@clisp.org>
22785
22786         Fix *printf result for NaN, Inf, -0.0 on mingw.
22787         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
22788         * lib/vasnprintf.c: Include math.h and isnan.h.
22789         (is_infinite_or_zero): New function.
22790         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
22791         values in the %f, %F, %e, %E, %g, %G directives.
22792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
22793         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22794         gl_PRINTF_INFINITE and test its result. Invoke
22795         gl_PREREQ_VASNPRINTF_INFINITE.
22796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22797         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22799         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22800         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22803         * doc/functions/fprintf.texi: Update.
22804         * doc/functions/printf.texi: Update.
22805         * doc/functions/snprintf.texi: Update.
22806         * doc/functions/sprintf.texi: Update.
22807         * doc/functions/vfprintf.texi: Update.
22808         * doc/functions/vprintf.texi: Update.
22809         * doc/functions/vsnprintf.texi: Update.
22810         * doc/functions/vsprintf.texi: Update.
22811
22812 2007-05-19  Bruno Haible  <bruno@clisp.org>
22813
22814         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
22815         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
22816         Instead of multiplying with 10^k, set extra_zeroes to k.
22817         (scale10_round_long_double): Remove function.
22818
22819 2007-05-18  Bruno Haible  <bruno@clisp.org>
22820
22821         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
22822         introduced on 2007-05-06.
22823
22824 2007-05-18  Bruno Haible  <bruno@clisp.org>
22825
22826         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
22827         %g directives.
22828         * tests/test-vasprintf-posix.c (test_function): Likewise.
22829         * tests/test-snprintf-posix.h (test_function): Likewise.
22830         * tests/test-sprintf-posix.h (test_function): Likewise.
22831
22832 2007-05-18  Bruno Haible  <bruno@clisp.org>
22833
22834         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
22835         (strmatch): New function.
22836         (test_function): Test the %f directive on numbers of various exponents.
22837         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
22838         (strmatch): New function.
22839         (test_function): Test the %f directive on numbers of various exponents.
22840         * tests/test-snprintf-posix.h (strmatch): New function.
22841         (test_function): Test the %f directive on numbers of various exponents.
22842         * tests/test-sprintf-posix.h (strmatch): New function.
22843         (test_function): Test the %f directive on numbers of various exponents.
22844         * tests/test-snprintf-posix.c (SIZEOF): New macro.
22845         * tests/test-sprintf-posix.c (SIZEOF): New macro.
22846         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
22847         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
22848
22849 2007-05-18  Bruno Haible  <bruno@clisp.org>
22850
22851         Add support for 'long double' number output.
22852         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
22853         * lib/vasnprintf.c: Include math.h and float+.h.
22854         (mp_limb_t): New type.
22855         (GMP_LIMB_BITS): New macro.
22856         (mp_twolimb_t): New type.
22857         (GMP_TWOLIMB_BITS): New macro.
22858         (mpn_t): New type.
22859         (multiply, divide, convert_to_decimal, decode_long_double,
22860         scale10_round_long_double, scale10_round_decimal_long_double,
22861         floorlog10l): New functions.
22862         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
22863         for the %f, %F, %e, %E, %g, %G directives.
22864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
22865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22866         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
22867         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
22868         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22869         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22870         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22872         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22873         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22874         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22875         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
22876         * modules/snprintf-posix (Depends-on): Likewise.
22877         * modules/sprintf-posix (Depends-on): Likewise.
22878         * modules/vasnprintf-posix (Depends-on): Likewise.
22879         * modules/vasprintf-posix (Depends-on): Likewise.
22880         * modules/vfprintf-posix (Depends-on): Likewise.
22881         * modules/vsnprintf-posix (Depends-on): Likewise.
22882         * modules/vsprintf-posix (Depends-on): Likewise.
22883         * modules/vasnprintf (Files): Add lib/float+.h.
22884         * doc/functions/fprintf.texi: Update.
22885         * doc/functions/printf.texi: Update.
22886         * doc/functions/snprintf.texi: Update.
22887         * doc/functions/sprintf.texi: Update.
22888         * doc/functions/vfprintf.texi: Update.
22889         * doc/functions/vprintf.texi: Update.
22890         * doc/functions/vsnprintf.texi: Update.
22891         * doc/functions/vsprintf.texi: Update.
22892
22893 2007-05-18  Bruno Haible  <bruno@clisp.org>
22894
22895         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
22896
22897 2007-05-18  Bruno Haible  <bruno@clisp.org>
22898
22899         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
22900         for printing 64-bit integers. Needed for mingw.
22901
22902 2007-05-18  Bruno Haible  <bruno@clisp.org>
22903
22904         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
22905         gl_FUNC_FREXPL_WORKS.
22906         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
22907
22908 2007-05-18  Bruno Haible  <bruno@clisp.org>
22909
22910         * modules/frexpl-nolibm-tests: New file.
22911
22912         * modules/frexpl-nolibm: New file.
22913         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
22914
22915 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
22916
22917         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
22918         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22919         GCC 4.2, which otherwise issues a lot of warnings.
22920         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
22921         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
22922         Likewise.
22923         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
22924         * modules/iconv_open (iconv.h): Likewise.
22925         * modules/locale (locale.h): Likewise.
22926         * modules/netinet_in (netinet/in.h): Likewise.
22927         * modules/sys_select (sys_select.h): Likewise.
22928         * modules/sys_socket (sys/socket.h): Likewise.
22929         * modules/sys_stat (sys/stat.h): Likewise.
22930         * modules/sysexits (sysexits.h): Likewise.
22931         * modules/unistd (unistd.h): Likewise.
22932
22933 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22934
22935         * modules/closein-tests (Makefile.am): Distribute
22936         `test-closein.sh'.
22937
22938 2007-05-17  Bruno Haible  <bruno@clisp.org>
22939
22940         * tests/test-printf-posix.output: Renamed from
22941         tests/test-fprintf-posix.out.
22942         * modules/fprintf-posix-tests: Update.
22943         * modules/printf-posix-tests: Update.
22944         * modules/vfprintf-posix-tests: Update.
22945         * modules/vprintf-posix-tests: Update.
22946         * tests/test-fprintf-posix.sh: Update.
22947         * tests/test-printf-posix.sh: Update.
22948         * tests/test-vfprintf-posix.sh: Update.
22949         * tests/test-vprintf-posix.sh: Update.
22950         Reported by Ralf Wildenhues.
22951
22952 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
22955         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
22956         GCC 4.2, which otherwise issues a lot of warnings.
22957         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
22958         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
22959         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
22960         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
22961         it should no longer be needed.
22962         * lib/string_.h: Likewise.
22963         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
22964         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
22965         * modules/inttypes (inttypes.h): Likewise.
22966         * modules/math (math.h): Likewise.
22967         * modules/search (search.h): Likewise.
22968         * modules/signal (signal.h): Likewise.
22969         * modules/stdint (stdint.h): Likewise.
22970         * modules/stdio (stdio.h): Likewise.
22971         * modules/stdlib (stdlib.h): Likewise.
22972         * modules/string (string.h): Likewise.
22973         * modules/sys_time (sys/time.h): Likewise.
22974         * modules/time (time.h): Likewise.
22975         * modules/wchar (wchar.h): Likewise.
22976         * modules/wctype (wtype.h): Likewise.
22977
22978 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22979
22980         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
22981
22982 2007-05-13  Bruno Haible  <bruno@clisp.org>
22983
22984         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
22985         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22986         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
22987         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22988         (gl_PREREQ_STRTOK_R): Don't require it here.
22989
22990 2007-05-13  Bruno Haible  <bruno@clisp.org>
22991
22992         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
22993         when used in C++ mode.
22994
22995 2007-05-12  Bruno Haible  <bruno@clisp.org>
22996
22997         * lib/linebuffer.h: Tweak doc.
22998         * lib/linebuffer.c: Likewise.
22999
23000 2007-05-12  James Youngman  <jay@gnu.org>
23001
23002         * lib/linebuffer.c (readlinebuffer_delim): New function,
23003         like readlinebuffer, but use a caller-specified delimiter.
23004         (readlinebuffer): Just call readlinebuffer_delim with '\n'
23005         as the delimiter.
23006         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
23007
23008 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23009
23010         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
23011         * modules/openat (Files): Remove openat-die.c.
23012         (Depends-on): Add openat-die.
23013         * modules/openat-die: New module.
23014
23015 2007-05-06  Bruno Haible  <bruno@clisp.org>
23016
23017         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
23018         Update with info about Cygwin.
23019         * doc/functions/fprintf.texi: Update.
23020         * doc/functions/printf.texi: Update.
23021         * doc/functions/snprintf.texi: Update.
23022         * doc/functions/sprintf.texi: Update.
23023         * doc/functions/vfprintf.texi: Update.
23024         * doc/functions/vprintf.texi: Update.
23025         * doc/functions/vsnprintf.texi: Update.
23026         * doc/functions/vsprintf.texi: Update.
23027         Reported by Eric Blake.
23028
23029 2007-05-06  Bruno Haible  <bruno@clisp.org>
23030
23031         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
23032         padding ourselves for the floating-point directives.
23033         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
23034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
23035         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23036         gl_PRINTF_FLAG_ZERO and test its result. Invoke
23037         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
23038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23039         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23041         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23042         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23043         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23044         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23045         * tests/test-snprintf-posix.h (test_function): Also check the width
23046         and some flags in the %f directive.
23047         * tests/test-sprintf-posix.h (test_function): Likewise.
23048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23049         * tests/test-vasprintf-posix.c (test_function): Likewise.
23050         * doc/functions/fprintf.texi: Update.
23051         * doc/functions/printf.texi: Update.
23052         * doc/functions/snprintf.texi: Update.
23053         * doc/functions/sprintf.texi: Update.
23054         * doc/functions/vfprintf.texi: Update.
23055         * doc/functions/vprintf.texi: Update.
23056         * doc/functions/vsnprintf.texi: Update.
23057         * doc/functions/vsprintf.texi: Update.
23058
23059 2007-05-06  Bruno Haible  <bruno@clisp.org>
23060
23061         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
23062         pass the ' flag character to sprintf or snprintf.
23063         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
23064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
23065         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23066         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
23067         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
23068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23069         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23075         * tests/test-snprintf-posix.h (test_function): Also check the grouping
23076         flag.
23077         * tests/test-sprintf-posix.h (test_function): Likewise.
23078         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23079         * tests/test-vasprintf-posix.c (test_function): Likewise.
23080         * doc/functions/fprintf.texi: Update.
23081         * doc/functions/printf.texi: Update.
23082         * doc/functions/snprintf.texi: Update.
23083         * doc/functions/sprintf.texi: Update.
23084         * doc/functions/vfprintf.texi: Update.
23085         * doc/functions/vprintf.texi: Update.
23086         * doc/functions/vsnprintf.texi: Update.
23087         * doc/functions/vsprintf.texi: Update.
23088
23089 2007-05-01  Bruno Haible  <bruno@clisp.org>
23090
23091         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
23092
23093 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
23094
23095         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
23096         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
23097
23098 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23099
23100         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
23101         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
23102         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
23103
23104 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
23105
23106         * lib/argp-help.c (struct hol_entry): New member `ord'.
23107         (HOL_ENTRY_PTRCMP): Use ord for comparison
23108         (hol_sort): Initialize ord.
23109
23110 2007-05-01  Bruno Haible  <bruno@clisp.org>
23111
23112         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
23113         Reported by Eric Blake.
23114         * doc/gnulib.texi (Function Substitutes): Update.
23115
23116 2007-05-01  Bruno Haible  <bruno@clisp.org>
23117
23118         * doc/functions.texi: Remove file, now redundant through
23119         doc/functions/*.texi.
23120
23121 2007-05-01  Bruno Haible  <bruno@clisp.org>
23122
23123         * modules/argp (Depends-on): Add sleep.
23124
23125 2007-05-01  Bruno Haible  <bruno@clisp.org>
23126
23127         * modules/sleep-tests: New file.
23128         * tests/test-sleep.c: New file.
23129
23130         * modules/sleep: New file.
23131         * lib/sleep.c: New file.
23132         * m4/sleep.m4: New file.
23133         * lib/unistd_.h (sleep): New declaration.
23134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
23135         HAVE_SLEEP.
23136         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
23137         * doc/functions/sleep.texi: Document the sleep module.
23138
23139 2007-05-01  Bruno Haible  <bruno@clisp.org>
23140
23141         * lib/sigprocmask.h: Remove file.
23142         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
23143         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
23144         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
23145         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
23146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
23147         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
23148         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
23149         HAVE_SIGSET_T as a shell variable.
23150         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
23151         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
23152         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
23153         (Depends-on): Add signal. Remove verify.
23154         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
23155         (Include): Mention <signal.h> instead of sigprocmask.h.
23156         * NEWS: Mention the change.
23157         * lib/fatal-signal.c: Don't include sigprocmask.h.
23158
23159 2007-05-01  Bruno Haible  <bruno@clisp.org>
23160
23161         * modules/signal: New file.
23162         * lib/signal_.h: New file.
23163         * m4/signal_h.m4: New file.
23164
23165 2007-05-01  Bruno Haible  <bruno@clisp.org>
23166
23167         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
23168         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
23169         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
23170         HAVE_WCTYPE_CTMP_BUG into wctype.h.
23171
23172 2007-05-01  Bruno Haible  <bruno@clisp.org>
23173
23174         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
23175         configure time.
23176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
23177         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
23178         * modules/sys_stat (Makefile.am): Substitute their values into
23179         sys/stat.h.
23180
23181 2007-05-01  Bruno Haible  <bruno@clisp.org>
23182
23183         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
23184         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
23185         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
23186
23187 2007-05-01  Bruno Haible  <bruno@clisp.org>
23188
23189         * doc/header/assert.texi: Undo last change: don't mention the gnulib
23190         'assert' module here.
23191
23192 2007-05-01  Bruno Haible  <bruno@clisp.org>
23193
23194         * doc/functions/*.texi: New files.
23195         * doc/functions/google-ranking.txt: New file.
23196         * doc/gnulib.texi (Function Substitutes): New chapter.
23197         (ctime, inet_ntoa): Remove sections.
23198         * doc/ctime.texi: Remove file.
23199         * doc/inet_ntoa.texi: Remove file.
23200         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
23201         dependencies.
23202         (%.info): New rule, specifying a --reference-limit.
23203
23204 2007-05-01  Bruno Haible  <bruno@clisp.org>
23205
23206         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
23207
23208 2007-05-01  Bruno Haible  <bruno@clisp.org>
23209
23210         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
23211         the portability of 'mkdir' to mingw systems.
23212
23213 2007-05-01  Bruno Haible  <bruno@clisp.org>
23214
23215         * doc/headers/google-ranking.txt: New file.
23216
23217 2007-04-30  Eric Blake  <ebb9@byu.net>
23218
23219         Prefer fseeko to fseek.
23220         * modules/getpass (Depends-on): Add fseeko.
23221         * lib/getpass.c (getpass): Use fseeko, not fseek.
23222
23223 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
23224
23225         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
23226         assumes the sorting is stable, while most qsort implementations
23227         are not.  Use argument addresses to ensure they never compare as
23228         equal.
23229
23230         * tests/test-argp-2.sh (usage-indent test): Fix output
23231         (func_compare): Restore diff options
23232         * tests/test-argp.c: Restore #include "progname.h"
23233
23234 2007-04-29  Bruno Haible  <bruno@clisp.org>
23235
23236         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
23237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23238         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
23239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23240         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
23241         (configure.ac): Define CHECK_SNPRINTF_POSIX.
23242         (TESTS, check_PROGRAMS): Add test-snprintf.
23243         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
23244         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
23245         (TESTS, check_PROGRAMS): Add test-vsnprintf.
23246         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
23247         assertions that fail on HP-UX, OSF/1, or IRIX.
23248         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
23249
23250 2007-04-29  Bruno Haible  <bruno@clisp.org>
23251
23252         * MODULES.html.sh (posix_functions): Remove 'contents'.
23253
23254 2007-04-29  Karl Berry  <karl@gnu.org>
23255
23256         * config/srclist.txt (gendocs_template_min): new entry.
23257
23258 2007-04-29  Bruno Haible  <bruno@clisp.org>
23259
23260         Work around fpurge bug on BSD systems.
23261         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
23262         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
23263         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
23264         fpurge to rpl_fpurge if the system already has this function.
23265         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
23266         the case where the system already has this function. Correct invariants
23267         on BSD systems.
23268         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
23269         BSD systems.
23270
23271 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23272
23273         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
23274         proposed by Sven Verdoolaege.
23275
23276         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
23277         options.
23278         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
23279         (usage and help tests): Update
23280
23281 2007-04-29  Bruno Haible  <bruno@clisp.org>
23282
23283         * tests/test-fflush.c (main): Use a file of size 17, not 10.
23284         Print more information in case of failure. Disable a test on BeOS.
23285
23286 2007-04-29  Bruno Haible  <bruno@clisp.org>
23287
23288         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
23289         This helps debugging on systems on which no gdb is available.
23290
23291 2007-04-29  Bruno Haible  <bruno@clisp.org>
23292
23293         * lib/freading.h: Improve comments.
23294         * lib/fwriting.h: Likewise.
23295         * tests/test-freading.c (main): Don't check freading immediately after
23296         repositioning. Needed for glibc.
23297
23298 2007-04-29  Bruno Haible  <bruno@clisp.org>
23299
23300         * lib/freading.c (freading): Trivial simplification.
23301
23302 2007-04-28  Bruno Haible  <bruno@clisp.org>
23303
23304         * tests/test-fwriting.c (main): Also test the interaction between
23305         fflush and fwriting.
23306         * modules/fwriting-tests (Depends-on): Add fflush.
23307
23308         * tests/test-freading.c (main): Also test the interaction between
23309         fflush and freading.
23310         * modules/freading-tests (Depends-on): Add fflush.
23311
23312 2007-04-28  Bruno Haible  <bruno@clisp.org>
23313
23314         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
23315         fseeko and ftello.
23316         Suggested by Eric Blake.
23317
23318 2007-04-28  Jim Meyering  <jim@meyering.net>
23319
23320         Avoid false-negative in gl_STDINT_H's C99 conformance test.
23321         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
23322         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
23323
23324 2007-04-27  Eric Blake  <ebb9@byu.net>
23325
23326         * doc/headers/assert.texi (assert.h): Document assert module use.
23327
23328 2007-04-27  Bruno Haible  <bruno@clisp.org>
23329
23330         * doc/headers/*.texi: New files.
23331         * doc/gnulib.texi (Header File Substitutes): New chapter.
23332         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
23333         dependencies.
23334         (standards.info ,standards.html, standards.dvi): Update dependencies.
23335         (mostlyclean, clean): New targets.
23336
23337 2007-04-27  Bruno Haible  <bruno@clisp.org>
23338
23339         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
23340         * modules/sysexits (Files, Makefile.am): Update.
23341
23342         * lib/sys_socket_.h: Renamed from lib/socket_.h.
23343         * modules/sys_socket (Files, Makefile.am): Update.
23344
23345         * lib/sys_stat_.h: Renamed from lib/stat_.h.
23346         * modules/sys_stat (Files, Makefile.am): Update.
23347
23348 2007-04-27  Eric Blake  <ebb9@byu.net>
23349
23350         * lib/freading.h: Improve comments.
23351         * lib/fwriting.h: Likewise.
23352         * lib/fflush.c: Likewise.
23353
23354         Fix closein for mingw.
23355         * modules/closein-tests: Add tests for closein.
23356         * tests/test-closein.c: New file.
23357         * tests/test-closein.sh: Likewise.
23358         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
23359         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
23360
23361 2007-04-27  Bruno Haible  <bruno@clisp.org>
23362
23363         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
23364         version is < 6.
23365         * lib/math_.h [__DECC]: Likewise.
23366         * lib/stdio_.h [__DECC]: Likewise.
23367         * lib/stdlib_.h [__DECC]: Likewise.
23368         * lib/string_.h [__DECC]: Likewise.
23369         * lib/time_.h [__DECC]: Likewise.
23370         * lib/wchar_.h [__DECC]: Likewise.
23371         * lib/wctype_.h [__DECC]: Likewise.
23372
23373 2007-04-27  Bruno Haible  <bruno@clisp.org>
23374
23375         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
23376
23377 2007-04-27  Bruno Haible  <bruno@clisp.org>
23378
23379         * lib/fflush.c: Add comments.
23380         * modules/fpurge-tests (Depends-on): Add fflush.
23381         * modules/freadable-tests (Depends-on): Likewise.
23382         * modules/fwritable-tests (Depends-on): Likewise.
23383
23384 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
23385
23386         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
23387         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
23388         Report by Bruno Haible <bruno@clisp.org>.
23389
23390 2007-04-26  Eric Blake  <ebb9@byu.net>
23391
23392         Fix fflush on mingw.
23393         * modules/fflush (Depends-on): Add freading.
23394         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
23395         but unread data.
23396
23397 2007-04-26  Eric Blake  <ebb9@byu.net>
23398         and Bruno Haible  <bruno@clisp.org>
23399
23400         Implement freading and fwriting.
23401         * lib/freading.c: New file.
23402         * lib/freading.h: Likewise.
23403         * m4/freading.m4: Likewise.
23404         * modules/freading: Likewise.
23405         * modules/freading-tests: Likewise.
23406         * tests/test-freading.c: Likewise.
23407         * lib/fwriting.c: New file.
23408         * lib/fwriting.h: Likewise.
23409         * m4/fwriting.m4: Likewise.
23410         * modules/fwriting: Likewise.
23411         * modules/fwriting-tests: Likewise.
23412         * tests/test-fwriting.c: Likewise.
23413         * MODULES.html.sh (File stream based Input/Output): Mention them.
23414
23415 2007-04-26  Bruno Haible  <bruno@clisp.org>
23416
23417         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
23418         'long' when we assume it.
23419         Suggested by Eric Blake.
23420
23421 2007-04-26  Bruno Haible  <bruno@clisp.org>
23422
23423         Ensure fseeko, ftello are declared on glibc systems.
23424         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
23425         * modules/fseeko (configure.ac-early): Likewise.
23426         * modules/ftello (configure.ac-early): Likewise.
23427         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
23428         AC_FUNC_FSEEKO for this.
23429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
23430         (gl_CHECK_FSEEKO): Remove macro.
23431
23432 2007-04-26  Bruno Haible  <bruno@clisp.org>
23433
23434         * tests/test-fflush.c (main): Also check the ftell result after
23435         fflush and fseek/fseeko.
23436         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
23437         file descriptor position cache in the stream.
23438         * lib/fseeko.c (rpl_fseeko): Likewise.
23439
23440 2007-04-26  Bruno Haible  <bruno@clisp.org>
23441
23442         * modules/fflush-tests (Depends-on): Add fseeko.
23443
23444 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
23445             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23446
23447         * lib/argz_.h: ensure error_t definition is obtained in same
23448         mechanism system argz.h would have.
23449         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
23450         argz facilities are known bad.  Err on the side of caution if
23451         cross-compiling.
23452
23453 2007-04-25  Eric Blake  <ebb9@byu.net>
23454
23455         * lib/fpurge.c (includes): Use stdlib.h for free.
23456         * tests/test-fflush.c (main): Also test fflush-fseeko.
23457
23458 2007-04-25  Bruno Haible  <bruno@clisp.org>
23459
23460         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
23461         * lib/fseeko.c: New file.
23462         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
23463         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
23464         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
23465         gl_FUNC_FSEEKO.
23466         (gl_FUNC_FSEEKO): Invoke it.
23467         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
23468         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
23469         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
23470
23471 2007-04-25  Bruno Haible  <bruno@clisp.org>
23472
23473         * modules/fflush (Depends-on): Add ftello.
23474
23475 2007-04-25  Bruno Haible  <bruno@clisp.org>
23476
23477         * modules/ftello-tests: New file.
23478         * tests/test-ftello.c: New file.
23479
23480         * modules/ftello: New file.
23481         * m4/ftello.m4: New file.
23482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
23483         HAVE_FTELLO.
23484         * lib/stdio_.h (ftello): New declaration.
23485         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
23486         HAVE_FTELLO.
23487
23488 2007-04-25  Bruno Haible  <bruno@clisp.org>
23489
23490         * modules/fseeko-tests: New file.
23491         * tests/test-fseeko.c: New file.
23492
23493         * modules/fseeko: New file.
23494         * m4/fseeko.m4: New file.
23495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
23496         HAVE_FSEEKO.
23497         * lib/stdio_.h (fseeko): New declaration.
23498         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
23499         HAVE_FSEEKO.
23500
23501 2007-04-25  Bruno Haible  <bruno@clisp.org>
23502
23503         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
23504
23505 2007-04-25  Bruno Haible  <bruno@clisp.org>
23506
23507         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
23508         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
23509         * tests/test-unistd.c: Likewise.
23510         * tests/test-fcntl.c: Likewise.
23511
23512 2007-04-23  Eric Blake  <ebb9@byu.net>
23513
23514         * lib/fflush.c: Fix missing include.
23515         Reported by Bruno Haible.
23516
23517 2007-04-23  Bruno Haible  <bruno@clisp.org>
23518
23519         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
23520         Reported by Eric Blake.
23521
23522 2007-04-23  Bruno Haible  <bruno@clisp.org>
23523
23524         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
23525
23526 2007-04-23  Bruno Haible  <bruno@clisp.org>
23527
23528         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
23529
23530 2007-04-23  Bruno Haible  <bruno@clisp.org>
23531
23532         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
23533         Needed on HP-UX 11.
23534
23535 2007-04-16  Eric Blake  <ebb9@byu.net>
23536
23537         Make fflush rely on fpurge.
23538         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
23539         open coding all variants.
23540         * modules/fflush (Depends-on): Add fpurge and unistd.
23541         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
23542         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
23543
23544         Fix --with-tests compilation on cygwin.
23545         * modules/argmatch-tests (Makefile.am): List gnulib library first
23546         in LDADD.
23547         * modules/argp-tests (Makefile.am): Likewise.
23548         * modules/array-list-tests (Makefile.am): Likewise.
23549         * modules/array-oset-tests (Makefile.am): Likewise.
23550         * modules/avltree-list-tests (Makefile.am): Likewise.
23551         * modules/avltree-oset-tests (Makefile.am): Likewise.
23552         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23553         * modules/carray-list-tests (Makefile.am): Likewise.
23554         * modules/dirname-tests (Makefile.am): Likewise.
23555         * modules/frexp-tests (Makefile.am): Likewise.
23556         * modules/isnanl-tests (Makefile.am): Likewise.
23557         * modules/linked-list-tests (Makefile.am): Likewise.
23558         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23559         * modules/lock-tests (Makefile.am): Likewise.
23560         * modules/rbtree-list-tests (Makefile.am): Likewise.
23561         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23562         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23563         * modules/tls-tests (Makefile.am): Likewise.
23564         * modules/tsearch-tests (Makefile.am): Likewise.
23565         * modules/xvasprintf-tests (Makefile.am): Likewise.
23566
23567         Fix fpurge for cygwin.
23568         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
23569         value.
23570         * modules/fpurge-tests (Depends-on): Clean up trash.
23571
23572 2007-04-16  Simon Josefsson  <simon@josefsson.org>
23573
23574         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
23575
23576         * m4/autobuild.m4: Re-indent.
23577
23578 2007-04-13  Bruno Haible  <bruno@clisp.org>
23579
23580         * modules/fpurge-tests: New file.
23581         * tests/test-fpurge.c: New file.
23582
23583         * modules/fpurge: New file.
23584         * lib/fpurge.h: New file.
23585         * lib/fpurge.c: New file.
23586         * m4/fpurge.m4: New file.
23587
23588 2007-04-13  Bruno Haible  <bruno@clisp.org>
23589
23590         * modules/fbufmode-tests: New file.
23591         * tests/test-fbufmode.c: New file.
23592
23593         * modules/fbufmode: New file.
23594         * lib/fbufmode.h: New file.
23595         * lib/fbufmode.c: New file.
23596         * m4/fbufmode.m4: New file.
23597
23598 2007-04-13  Bruno Haible  <bruno@clisp.org>
23599
23600         * modules/fwritable-tests: New file.
23601         * tests/test-fwritable.c: New file.
23602
23603         * modules/fwritable: New file.
23604         * lib/fwritable.h: New file.
23605         * lib/fwritable.c: New file.
23606         * m4/fwritable.m4: New file.
23607
23608 2007-04-13  Bruno Haible  <bruno@clisp.org>
23609
23610         * modules/freadable-tests: New file.
23611         * tests/test-freadable.c: New file.
23612
23613         * modules/freadable: New file.
23614         * lib/freadable.h: New file.
23615         * lib/freadable.c: New file.
23616         * m4/freadable.m4: New file.
23617
23618 2007-04-13  Bruno Haible  <bruno@clisp.org>
23619
23620         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
23621         MOSTLYCLEANFILES.
23622
23623 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23624
23625         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
23626         gzip bootstrap.conf to avoid dragging in i18n machinery.
23627         (gnulib_tool_option): Use it.
23628
23629 2007-04-13  Bruno Haible  <bruno@clisp.org>
23630
23631         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
23632         %F directives.
23633         * tests/test-vasprintf-posix.c (test_function): Likewise.
23634         * tests/test-snprintf-posix.h (test_function): Likewise.
23635         * tests/test-sprintf-posix.h (test_function): Likewise.
23636         * tests/test-fprintf-posix.h (test_function): Likewise.
23637         * tests/test-printf-posix.h (test_function): Likewise.
23638         * tests/test-fprintf-posix.out: Likewise.
23639
23640 2007-04-13  Bruno Haible  <bruno@clisp.org>
23641
23642         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
23643         * modules/tls-tests (configure.ac): Likewise.
23644         Reported by Arto C. Nirkko <anirkko@insel.ch>.
23645
23646 2007-04-13  Bruno Haible  <bruno@clisp.org>
23647
23648         * lib/tls.c (glthread_tls_get): Fix return type.
23649         Patch by Arto C. Nirkko <anirkko@insel.ch>.
23650
23651 2007-04-12  Eric Blake  <ebb9@byu.net>
23652
23653         * modules/gettime (Depends-on): Remove gettime.
23654         Reported by Dmitry V. Levin.
23655
23656 2007-04-12  Bruno Haible  <bruno@clisp.org>
23657
23658         * modules/fflush (Include): Mention <stdio.h>.
23659         * modules/strtoimax (Include): Mention <inttypes.h>.
23660         * modules/strtoumax (Include): Likewise.
23661
23662 2007-04-12  Eric Blake  <ebb9@byu.net>
23663
23664         * .cvsignore: New file.
23665         * .gitignore: Likewise.
23666
23667 2007-04-12  Bruno Haible  <bruno@clisp.org>
23668
23669         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
23670         not before, since $(LDADD) often contains libgnu.a.
23671         * modules/striconv-tests (test_striconv_LDADD): Likewise.
23672         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
23673         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
23674         Needed on Cygwin.
23675
23676 2007-04-12  Eric Blake  <ebb9@byu.net>
23677
23678         Work around glibc's failure to flush stdin on fclose.
23679         * lib/closein.c (close_stdin): Flush stdin before closing.
23680
23681         Work around glibc's failure to reset seekable stdin on exit.
23682         * modules/closein: New module.
23683         * lib/closein.c: New file.
23684         * lib/closein.h: Likewise.
23685         * m4/closein.m4: Likewise.
23686         * MODULES.html.sh (File stream based Input/Output): Document it.
23687
23688 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23689
23690         * gnulib-tool: Rename generated 'autobuild' script to
23691         'do-autobuild' in --create-megatestdir output.
23692
23693         * doc/gnulib.texi (Build robot for gnulib): Fix.
23694
23695 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23696
23697         * modules/sysexits (Depends-on): Add absolute-header.
23698
23699 2007-04-12  Eric Blake  <ebb9@byu.net>
23700
23701         No need to preserve errno on success.
23702         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
23703         Reported by Bruno Haible.
23704
23705 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23706
23707         * MODULES.html.sh (Support for maintaining and releasing
23708         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
23709
23710 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23711
23712         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
23713
23714 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23715
23716         * modules/autobuild: New module.
23717
23718         * m4/autobuild.m4: New file.
23719
23720 2007-04-11  Bruno Haible  <bruno@clisp.org>
23721
23722         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
23723         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
23724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
23725         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
23726         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23727         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23728         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23730         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23731         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
23733         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23734         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23735         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
23736         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23737         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
23739         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23740         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23741         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
23742         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23743         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
23745         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23746         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
23748         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23749         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23750         Reported by Eric Blake.
23751
23752 2007-04-11  Bruno Haible  <bruno@clisp.org>
23753
23754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
23755
23756 2007-04-10  Bruno Haible  <bruno@clisp.org>
23757
23758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
23759         for NaN and Infinity. Needed on FreeBSD 6.1.
23760         * tests/test-vasnprintf-posix.c (test_function): Undo last change
23761         regarding results for "%010a" of Infinity and NaN.
23762         * tests/test-vasprintf-posix.c (test_function): Likewise.
23763         * tests/test-snprintf-posix.h (test_function): Likewise.
23764         * tests/test-sprintf-posix.h (test_function): Likewise.
23765         * tests/test-fprintf-posix.h (test_function): Likewise.
23766         * tests/test-printf-posix.h (test_function): Likewise.
23767         * tests/test-fprintf-posix.out: Likewise.
23768
23769 2007-04-10  Bruno Haible  <bruno@clisp.org>
23770
23771         * modules/locale-tests: New file.
23772         * tests/test-locale.c: New file.
23773
23774         * modules/locale: New file.
23775         * lib/locale_.h: New file.
23776         * m4/locale_h.m4: New file.
23777
23778 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
23779             Bruno Haible  <bruno@clisp.org>
23780
23781         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
23782         be determined, test for availability of the copysignf, copysign,
23783         copysignl functions.
23784         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
23785         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
23786         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
23787
23788 2007-04-09  Eric Blake  <ebb9@byu.net>
23789
23790         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
23791         * modules/stdio (Makefile.am): Support fflush.
23792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23793         * modules/fflush: New file.
23794         * lib/fflush.c: Likewise.
23795         * m4/fflush.m4: Likewise.
23796         * modules/fflush-tests: New test.
23797         * tests/test-fflush.c: Likewise.
23798         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
23799
23800 2007-04-06  Bruno Haible  <bruno@clisp.org>
23801
23802         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
23803         (VASNPRINTF): Use signbit for faster determination whether to print a
23804         minus sign.
23805         * modules/vasnprintf (Files): Remove lib/float+.h.
23806         * modules/fprintf-posix (Depends-on): Add signbit.
23807         * modules/snprintf-posix (Depends-on): Likewise.
23808         * modules/sprintf-posix (Depends-on): Likewise.
23809         * modules/vasnprintf-posix (Depends-on): Likewise.
23810         * modules/vasprintf-posix (Depends-on): Likewise.
23811         * modules/vfprintf-posix (Depends-on): Likewise.
23812         * modules/vsnprintf-posix (Depends-on): Likewise.
23813         * modules/vsprintf-posix (Depends-on): Likewise.
23814
23815 2007-04-06  Bruno Haible  <bruno@clisp.org>
23816
23817         * tests/test-frexp.c (main): Test also the sign bit of zero results.
23818         * tests/test-frexpl.c (main): Likewise.
23819         * tests/test-ldexpl.c (main): Likewise.
23820         * modules/frexp-tests (Depends-on): Add signbit.
23821         * modules/frexpl-tests (Depdends-on): Likewise.
23822         * modules/ldexpl-tests (Depdends-on): Likewise.
23823
23824 2007-04-06  Bruno Haible  <bruno@clisp.org>
23825
23826         * modules/signbit-tests: New file.
23827         * tests/test-signbit.c: New file.
23828
23829         * modules/signbit: New file.
23830         * lib/signbitf.c: New file.
23831         * lib/signbitd.c: New file.
23832         * lib/signbitl.c: New file.
23833         * m4/signbit.m4: New file.
23834         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
23835         (signbit): New macro.
23836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
23837         REPLACE_SIGNBIT.
23838         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
23839         REPLACE_FREXPL into math.h.
23840
23841 2007-04-06  Bruno Haible  <bruno@clisp.org>
23842
23843         * modules/isnanf-nolibm-tests: New file.
23844         * tests/test-isnanf.c: New file.
23845
23846         * modules/isnanf-nolibm: New file.
23847         * lib/isnanf.h: New file.
23848         * lib/isnanf.c: New file.
23849         * lib/isnan.c: Consider the USE_FLOAT macro.
23850         * m4/isnanf.m4: New file.
23851
23852 2007-04-06  Bruno Haible  <bruno@clisp.org>
23853
23854         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
23855         (Link): New section.
23856
23857         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
23858
23859 2007-04-06  Bruno Haible  <bruno@clisp.org>
23860
23861         Assume the 'long double' type.
23862         * m4/longdouble.m4: Remove file.
23863         * config/srclist.txt: Don't mention longdouble.m4.
23864         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
23865         * lib/float+.h: Likewise.
23866         * lib/frexp.c: Likewise.
23867         * lib/printf-args.h: Likewise.
23868         * lib/printf-args.c: Likewise.
23869         * lib/printf-frexp.c: Likewise.
23870         * lib/printf-parse.c: Likewise.
23871         * lib/vasnprintf.c: Likewise.
23872         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
23873         * m4/intl.m4: Likewise.
23874         * m4/isnanl.m4: Likewise.
23875         * m4/printf.m4: Likewise.
23876         * m4/printf-frexpl.m4: Likewise.
23877         * m4/vasnprintf.m4: Likewise.
23878         * modules/allocsa (Files): Remove m4/longdouble.m4.
23879         * modules/gettext (Files): Likewise.
23880         * modules/relocatable-prog-wrapper (Files): Likewise.
23881         * modules/vasnprintf (Files): Likewise.
23882         * modules/isnanl (Files): Likewise.
23883         (Include): Simplify.
23884         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
23885         (Include): Simplify.
23886         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
23887         (Include): Simplify.
23888         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
23889         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23890         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
23891         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23892         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23893         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23894         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
23895         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23896         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
23897         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23898         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
23899         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
23900         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
23901         * tests/test-isnanl.c: Likewise.
23902         * tests/test-snprintf-posix.h: Likewise.
23903         * tests/test-sprintf-posix.h: Likewise.
23904         * tests/test-vasnprintf-posix.c: Likewise.
23905         * tests/test-vasnprintf-posix2.c: Likewise.
23906         * tests/test-vasprintf-posix.c: Likewise.
23907
23908 2007-04-06  Bruno Haible  <bruno@clisp.org>
23909
23910         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
23911         * lib/math_.h [__DECC]: Include the overridden include file through
23912         #include_next, outside the double-inclusion guard.
23913         * lib/stdio_.h [__DECC]: Likewise.
23914         * lib/stdlib_.h [__DECC]: Likewise.
23915         * lib/string_.h [__DECC]: Likewise.
23916         * lib/time_.h [__DECC]: Likewise.
23917         * lib/wchar_.h [__DECC]: Likewise.
23918         * lib/wctype_.h [__DECC]: Likewise.
23919         * lib/inttypes_.h [__DECC]: Likewise.
23920         Reported by Albert Chin <china@thewrittenword.com> in
23921         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
23922
23923 2007-04-04  Eric Blake  <ebb9@byu.net>
23924
23925         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
23926         1.5.x.
23927
23928 2007-04-04  Bruno Haible  <bruno@clisp.org>
23929
23930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
23931         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
23932
23933 2007-04-04  Bruno Haible  <bruno@clisp.org>
23934
23935         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
23936         results for "%010a" of Infinity and NaN.
23937         * tests/test-vasprintf-posix.c (test_function): Likewise.
23938         * tests/test-snprintf-posix.h (test_function): Likewise.
23939         * tests/test-sprintf-posix.h (test_function): Likewise.
23940         * tests/test-fprintf-posix.h (test_function): Remove these tests.
23941         * tests/test-printf-posix.h (test_function): Likewise.
23942         * tests/test-fprintf-posix.out: Update.
23943         Needed for FreeBSD 6.1.
23944
23945 2007-04-04  Bruno Haible  <bruno@clisp.org>
23946
23947         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
23948         directly used by the gnulib modules nor by gnulib-tool.
23949
23950 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23951
23952         * DEPENDENCIES: Give overall description of version dependency
23953         desirability.  Use more-typical names for apps.
23954         Add shell, coreutils, diffutils, grep, tar, gzip.
23955
23956 2007-04-04  Simon Josefsson  <simon@josefsson.org>
23957
23958         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
23959
23960 2007-04-04  Karl Berry  <karl@gnu.org>
23961
23962         * MODULES.html.sh (func_module): missing '.
23963
23964 2007-04-03  Bruno Haible  <bruno@clisp.org>
23965
23966         * modules/argmatch-tests (Makefile.am): New variable
23967         test_argmatch_LDADD.
23968         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
23969         * modules/array-list-tests (Makefile.am): New variable
23970         test_array_list_LDADD.
23971         * modules/array-oset-tests (Makefile.am): New variable
23972         test_array_oset_LDADD.
23973         * modules/avltree-list-tests (Makefile.am): New variable
23974         test_avltree_list_LDADD.
23975         * modules/avltree-oset-tests (Makefile.am): New variable
23976         test_avltree_oset_LDADD.
23977         * modules/avltreehash-list-tests (Makefile.am): New variable
23978         test_avltreehash_list_LDADD.
23979         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
23980         test_canonicalize_lgpl_LDADD.
23981         * modules/carray-list-tests (Makefile.am): New variable
23982         test_carray_list_LDADD.
23983         * modules/dirname-tests (Makefile.am): New variable
23984         test_dirname_LDADD.
23985         * modules/linked-list-tests (Makefile.am): New variable
23986         test_linked_list_LDADD.
23987         * modules/linkedhash-list-tests (Makefile.am): New variable
23988         test_linkedhash_list_LDADD.
23989         * modules/rbtree-list-tests (Makefile.am): New variable
23990         test_rbtree_list_LDADD.
23991         * modules/rbtree-oset-tests (Makefile.am): New variable
23992         test_rbtree_oset_LDADD.
23993         * modules/rbtreehash-list-tests (Makefile.am): New variable
23994         test_rbtreehash_list_LDADD.
23995         * modules/xvasprintf-tests (Makefile.am): New variable
23996         test_xvasprintf_LDADD.
23997         Reported by Eric Blake.
23998
23999 2007-04-03  Eric Blake  <ebb9@byu.net>
24000
24001         * DEPENDENCIES: Weaken m4 requirements.
24002
24003 2007-04-03  Bruno Haible  <bruno@clisp.org>
24004
24005         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
24006         * modules/isnanl-tests (configure.ac): Likewise.
24007
24008 2007-04-03  Ben Pfaff  <blp@gnu.org>
24009
24010         * modules/iconv_open: Add $(srcdir)/ to source directory
24011         references in Makefile fragments that call gperf, to fix VPATH
24012         builds.
24013
24014 2007-04-03  Bruno Haible  <bruno@clisp.org>
24015
24016         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
24017         * lib/ldexpl.c: Undo last change.
24018
24019 2007-04-03  Bruno Haible  <bruno@clisp.org>
24020
24021         * modules/printf-frexpl (Depends-on): Undo last change.
24022         (Files): Add m4/ldexpl.m4.
24023
24024 2007-04-03  Bruno Haible  <bruno@clisp.org>
24025
24026         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
24027         * modules/isnanl (Link): New section.
24028
24029         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
24030         * modules/frexp (Link): New section.
24031
24032         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
24033         * modules/frexpl (Link): New section.
24034
24035         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
24036         * modules/ldexpl (Link): New section.
24037
24038 2007-04-03  Bruno Haible  <bruno@clisp.org>
24039
24040         * modules/TEMPLATE-EXTENDED: New file.
24041         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
24042
24043 2007-04-03  Bruno Haible  <bruno@clisp.org>
24044
24045         * DEPENDENCIES: New file.
24046         Suggested by Simon Josefsson.
24047
24048 2007-04-03  Bruno Haible  <bruno@clisp.org>
24049
24050         * doc/gnulib.texi: Escape @.
24051
24052 2007-04-03  James Youngman  <jay@gnu.org>
24053         and Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
24056         birthtime on all systems that have birthtime, not just those which
24057         use st_birthtimensec rather than st_birthtim.  Putting zero in
24058         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
24059         that the birth time is not available for files on an NFS mount.
24060
24061 2007-04-03  Simon Josefsson  <simon@josefsson.org>
24062
24063         * modules/memxor: Move back from crypto/, suggested by Bruno.
24064         * modules/crypto/hmac-sha1: Fix memxor dependency.
24065
24066         * modules/crypto/gc: Moved from ../.
24067
24068 2007-04-02  Eric Blake  <ebb9@byu.net>
24069
24070         * lib/ldexpl.c (includes): Avoid libm.
24071
24072         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
24073
24074 2007-04-02  Bruno Haible  <bruno@clisp.org>
24075
24076         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
24077         on IRIX.
24078
24079 2007-04-02  Bruno Haible  <bruno@clisp.org>
24080
24081         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
24082         x86 or x86_64 platforms running MacOS X.
24083         Reported by Ryan Schmidt <@ryandesign.com>.
24084
24085 2007-04-02  Bruno Haible  <bruno@clisp.org>
24086
24087         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
24088         i386.
24089
24090 2007-04-01  Simon Josefsson  <simon@josefsson.org>
24091
24092         * modules/crypto/arcfour: Moved from ../.
24093         * modules/crypto/arcfour-tests: Moved from ../.
24094         * modules/crypto/arctwo: Moved from ../.
24095         * modules/crypto/arctwo-tests: Moved from ../.
24096         * modules/crypto/des: Moved from ../.
24097         * modules/crypto/des-tests: Moved from ../.
24098         * modules/crypto/gc-arcfour: Moved from ../.
24099         * modules/crypto/gc-arcfour-tests: Moved from ../.
24100         * modules/crypto/gc-arctwo: Moved from ../.
24101         * modules/crypto/gc-arctwo-tests: Moved from ../.
24102         * modules/crypto/gc-des: Moved from ../.
24103         * modules/crypto/gc-des-tests: Moved from ../.
24104         * modules/crypto/gc-hmac-md5: Moved from ../.
24105         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
24106         * modules/crypto/gc-hmac-sha1: Moved from ../.
24107         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
24108         * modules/crypto/gc-md2: Moved from ../.
24109         * modules/crypto/gc-md2-tests: Moved from ../.
24110         * modules/crypto/gc-md4: Moved from ../.
24111         * modules/crypto/gc-md4-tests: Moved from ../.
24112         * modules/crypto/gc-md5: Moved from ../.
24113         * modules/crypto/gc-md5-tests: Moved from ../.
24114         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
24115         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
24116         * modules/crypto/gc-random: Moved from ../.
24117         * modules/crypto/gc-rijndael: Moved from ../.
24118         * modules/crypto/gc-rijndael-tests: Moved from ../.
24119         * modules/crypto/gc-sha1: Moved from ../.
24120         * modules/crypto/gc-sha1-tests: Moved from ../.
24121         * modules/crypto/gc-tests: Moved from ../.
24122         * modules/crypto/hmac-md5: Moved from ../.
24123         * modules/crypto/hmac-md5-tests: Moved from ../.
24124         * modules/crypto/hmac-sha1: Moved from ../.
24125         * modules/crypto/hmac-sha1-tests: Moved from ../.
24126         * modules/crypto/md2: Moved from ../.
24127         * modules/crypto/md2-tests: Moved from ../.
24128         * modules/crypto/md4: Moved from ../.
24129         * modules/crypto/md4-tests: Moved from ../.
24130         * modules/crypto/md5: Moved from ../.
24131         * modules/crypto/md5-tests: Moved from ../.
24132         * modules/crypto/memxor: Moved from ../.
24133         * modules/crypto/rijndael: Moved from ../.
24134         * modules/crypto/rijndael-tests: Moved from ../.
24135         * modules/crypto/sha1: Moved from ../.
24136
24137 2007-03-30  James Youngman  <jay@gnu.org>
24138
24139         * tests/test-stat-time.c (prepare_test): use chmod() rather than
24140         rename() to change the ctime of a file (because ctime is unaffected
24141         by rename on jfs2 on AIX 5.1).
24142         (main): Start by doing cleanup, in case a previous run failed leaving
24143         test files behind.
24144
24145 2007-03-31  Bruno Haible  <bruno@clisp.org>
24146
24147         Support old proprietary implementations of iconv.
24148         * modules/iconv_open: New file.
24149         * lib/iconv_.h: New file.
24150         * m4/iconv_h.m4: New file.
24151         * lib/iconv_open.c: New file.
24152         * lib/iconv_open-aix.gperf: New file.
24153         * lib/iconv_open-hpux.gperf: New file.
24154         * lib/iconv_open-irix.gperf: New file.
24155         * lib/iconv_open-osf.gperf: New file.
24156         * m4/iconv_open.m4: New file.
24157         * modules/linebreak (Depends-on): Add iconv_open.
24158         * modules/striconv (Depends-on): Likewise.
24159         * modules/striconveh (Depends-on): Likewise.
24160         * modules/unicodeio (Depends-on): Likewise.
24161         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
24162         (iconv_t)(-1).
24163         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
24164         conversion if cd is (iconv_t)(-1).
24165         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
24166         is not possible.
24167
24168 2007-03-31  Bruno Haible  <bruno@clisp.org>
24169
24170         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24171         work on Solaris either. Protect also second use of "autodetect_jp".
24172
24173 2007-03-31  Bruno Haible  <bruno@clisp.org>
24174
24175         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
24176         the function is not present.
24177
24178 2007-03-31  Bruno Haible  <bruno@clisp.org>
24179
24180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
24181         the function is not present.
24182
24183 2007-03-31  Bruno Haible  <bruno@clisp.org>
24184
24185         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
24186         a bug in HP-UX iconv_open().
24187
24188 2007-03-31  Bruno Haible  <bruno@clisp.org>
24189
24190         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
24191         (Mathematics <math.h>): New section, add fpieee.
24192         (Input/output <stdio.h>): Add fseterr.
24193         (Mathematics <math.h>): New section, add printf-frexp.
24194         (Container data structures): Add sublist.
24195         (Core language properties): Add fpucw, inline.
24196         (Functions for greatest-width integer types <inttypes.h>): Add
24197         imaxabs, imaxdiv, inttypes.
24198         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
24199         isnanl-nolibm, ldexp.
24200         (Mathematics <math.h>): New section, add printf-frexpl.
24201         (Support for systems lacking POSIX:2001): Add fprintf-posix,
24202         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
24203         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
24204         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
24205         (Unicode string functions): Add unistr/u*-mbtoucr.
24206         (Java): Add javacomp-script, javaexec-script.
24207         (C#): Add csharpcomp-script, csharpexec-script.
24208         (Support for building libraries and executables): Add havelib,
24209         relocatable-*.
24210         (Support for maintaining and releasing projects): Renamed from
24211         'Support for maintaining and release projects'. Add announce-gen.
24212
24213 2007-03-31  Bruno Haible  <bruno@clisp.org>
24214
24215         * README: Talk primarily about git.
24216         (git and CVS): Renamed from CVS.
24217         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
24218         gnulib is available through git.
24219         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
24220
24221 2007-03-30  Bruno Haible  <bruno@clisp.org>
24222
24223         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
24224         * lib/poll_.h: Likewise.
24225         * lib/stat_.h: Likewise.
24226         * lib/sys_time_.h: Likewise.
24227         * lib/sysexit_.h: Likewise.
24228         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
24229         * lib/stdbool_.h: Likewise.
24230         * lib/byteswap_.h: Add double-inclusion guard.
24231
24232 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
24233
24234         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
24235
24236 2007-03-30  Karl Berry  <karl@gnu.org>
24237
24238         * config/srclist-update: double space after USA in the license
24239         substitution, since that's how it's usually (?) written.
24240
24241 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24242
24243         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
24244         reported by Bruno Haible.
24245
24246 2007-03-29  Bruno Haible  <bruno@clisp.org>
24247
24248         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
24249         a bug in AIX iconv().
24250
24251 2007-03-29  Bruno Haible  <bruno@clisp.org>
24252
24253         * modules/ldexpl-tests: New file.
24254         * tests/test-ldexpl.c: New file.
24255
24256 2007-03-29  Bruno Haible  <bruno@clisp.org>
24257
24258         * lib/ldexpl.c: Include fpucw.h.
24259         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
24260         multiplication.
24261         * modules/ldexpl (Depends-on): Add fpucw.
24262
24263 2007-03-29  Bruno Haible  <bruno@clisp.org>
24264
24265         * modules/ldexpl: New file.
24266         * m4/ldexpl.m4: New file.
24267         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
24268         set.
24269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
24270         REPLACE_LDEXPL.
24271         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
24272         REPLACE_LDEXPL.
24273         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24274         gl_FUNC_LDEXPL_WORKS.
24275         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
24276         * modules/mathl (Files): Remove lib/ldexpl.c.
24277         (Depends-on): Add ldexpl.
24278
24279 2007-03-29  Bruno Haible  <bruno@clisp.org>
24280
24281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
24282
24283 2007-03-29  Bruno Haible  <bruno@clisp.org>
24284
24285         * tests/test-striconveh.c (main): Don't assume that a direct conversion
24286         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
24287         and possibly also HP-UX.
24288         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24289         work on AIX, IRIX, HP-UX, OSF/1.
24290         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24291         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24292         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24293         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24294         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
24295         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24296
24297 2007-03-29  Bruno Haible  <bruno@clisp.org>
24298
24299         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
24300
24301 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24302
24303         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
24304         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
24305
24306 2007-03-29  Eric Blake  <ebb9@byu.net>
24307
24308         * lib/acl-internal.h: Remove redundant include.
24309         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
24310         Cygwin when a file is locked.
24311
24312 2007-03-29  Bruno Haible  <bruno@clisp.org>
24313
24314         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
24315         file.
24316         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
24317
24318 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24319
24320         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
24321         try to remove a parent directory if the child couldn't be removed
24322         (except for the first rmdir, which could fail because the child
24323         doesn't exist).  Problem reported by Jeff Blaine in
24324         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
24325
24326 2007-03-28  Bruno Haible  <bruno@clisp.org>
24327
24328         * lib/striconveh.c (utf8conv_carefully): New function.
24329         (mem_cd_iconveh_internal): Invoke it.
24330
24331 2007-03-28  Bruno Haible  <bruno@clisp.org>
24332
24333         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
24334         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
24335         input.
24336         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
24337         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
24338         unistr/u8-uctomb.
24339
24340 2007-03-28  Bruno Haible  <bruno@clisp.org>
24341
24342         * modules/unistr/u8-mbtoucr: New file.
24343         * lib/unistr/u8-mbtoucr.c: New file.
24344         * modules/unistr/u16-mbtoucr: New file.
24345         * lib/unistr/u16-mbtoucr.c: New file.
24346         * modules/unistr/u16-mbtoucr: New file.
24347         * lib/unistr/u16-mbtoucr.c: New file.
24348         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
24349
24350 2007-03-27  Simon Josefsson  <simon@josefsson.org>
24351             Bruno Haible  <bruno@clisp.org>
24352
24353         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
24354         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
24355         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
24356
24357         * m4/stdio_h.m4: Add stubs for vasprintf too.
24358
24359         * modules/stdio: Support vasprintf in sed command.
24360
24361         * modules/vasprintf: Depend on stdio for prototypes.  Remove
24362         vasprintf.h.  Add stdio module indicator.
24363
24364         * lib/stdio_.h: Declare asprintf and vasprintf, based on
24365         vasprintf.h.
24366
24367         * lib/vasprintf.h: File removed.
24368
24369         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
24370         * lib/vasprintf.c: Ditto.
24371         * lib/xvasprintf.c: Ditto.
24372         * tests/test-vasprintf-posix.c: Ditto.
24373         * tests/test-vasprintf.c: Ditto.
24374
24375 2007-03-27  Bruno Haible  <bruno@clisp.org>
24376
24377         Make vasnprintf multithread-safe.
24378         * lib/vasnprintf.c (decimal_point_char): New function.
24379         (VASNPRINTF): Use it.
24380         Suggested by Simon Josefsson.
24381
24382 2007-03-27  Eric Blake  <ebb9@byu.net>
24383
24384         Support sub-second birthtime on cygwin.
24385         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
24386         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
24387         (get_stat_birthtime): Also work with st_birthtim.
24388
24389 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
24390
24391         * lib/stat-time.h (USE_BIRTHTIME): Remove.
24392         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
24393         (get_stat_birthtime_ns): Do not try to use "spare" fields.
24394         (get_stat_birthtime_ns): Simplify compile-time tests.
24395         (get_stat_birthtime): Change the API to look like
24396         get_stat_mtime etc., except return a negative tv_nsec on error.
24397         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
24398         Don't check for "spare" fields.
24399         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
24400         or for struct stat.st_birthtime, as these tests aren't used.
24401         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
24402
24403 2007-03-27  Bruno Haible  <bruno@clisp.org>
24404
24405         * lib/stat-time.h: Include <sys/stat.h>.
24406
24407 2007-03-27  James Youngman  <jay@gnu.org>
24408
24409         * lib/stat-time.h (get_stat_birthtime): New function for
24410           retrieving st_birthtime as provided by UFS2 (hence *BSD).
24411         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
24412           and its variants.
24413         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
24414         * modules/stat-time-test: New file.
24415         * tests/test-stat-time.c: New test, devised by Bruno Haible.
24416
24417 2007-03-26  Bruno Haible  <bruno@clisp.org>
24418
24419         Better support of signalling NaNs.
24420         * lib/atanl.c: Include isnanl.h.
24421         (atanl): Perform test for NaN at the beginning of the function and
24422         through a call to isnanl.
24423         * lib/cosl.c: Include isnanl.h.
24424         (cosl): Perform test for NaN at the beginning of the function and
24425         through a call to isnanl.
24426         * lib/ldexpl.c: Include isnanl.h.
24427         (ldexpl): Perform test for NaN through a call to isnanl.
24428         * lib/logl.c: Include isnanl.h.
24429         (logl): Perform test for NaN at the beginning of the function and
24430         through a call to isnanl.
24431         * lib/sinl.c: Include isnanl.h.
24432         (sinl): Perform test for NaN at the beginning of the function and
24433         through a call to isnanl.
24434         * lib/sqrtl.c: Include isnanl.h.
24435         (sqrtl): Perform test for NaN at the beginning of the function and
24436         through a call to isnanl.
24437         * lib/tanl.c: Include isnanl.h.
24438         (tanl): Perform test for NaN at the beginning of the function and
24439         through a call to isnanl.
24440         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
24441         * modules/mathl (Depends-on): Add isnanl.
24442
24443 2007-03-26  Eric Blake  <ebb9@byu.net>
24444
24445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
24446         regression in logic sense of previous patch.
24447
24448 2007-03-26  Bruno Haible  <bruno@clisp.org>
24449
24450         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
24451         unportable shell command "if ! ...".
24452         Reported by Ralf Wildenhues.
24453
24454 2007-03-25  Bruno Haible  <bruno@clisp.org>
24455
24456         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
24457         <sysexits.h> file, and only add EX_CONFIG.
24458         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
24459         absolute file name and whether it is sufficient. Substitute also
24460         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
24461         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
24462         ABSOLUTE_SYSEXITS_H into sysexits.h.
24463
24464 2007-03-25  Bruno Haible  <bruno@clisp.org>
24465
24466         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
24467         hints is NULL.
24468
24469 2007-03-25  Bruno Haible  <bruno@clisp.org>
24470
24471         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
24472         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
24473
24474 2007-03-25  Bruno Haible  <bruno@clisp.org>
24475
24476         * lib/vasnprintf.c: Include langinfo.h.
24477         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
24478         multithread-safe.
24479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
24480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
24481         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24485         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
24487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24488         Reported by Simon Josefsson.
24489
24490 2007-03-25  Bruno Haible  <bruno@clisp.org>
24491
24492         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
24493         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
24494         * modules/vasnprintf (Depends-on): Add stdint.
24495
24496 2007-03-25  Bruno Haible  <bruno@clisp.org>
24497
24498         * modules/fpieee: New file.
24499         * m4/fpieee.m4: New file.
24500         * modules/isnan-nolibm (Depends-on): Add fpieee.
24501         * modules/isnanl-nolibm (Depends-on): Add fpieee.
24502         * modules/isnanl (Depends-on): Add fpieee.
24503
24504 2007-03-25  Bruno Haible  <bruno@clisp.org>
24505
24506         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
24507
24508 2007-03-25  Bruno Haible  <bruno@clisp.org>
24509
24510         Avoid test failures on IRIX 6.5.
24511         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
24512         (main): Use it.
24513         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
24514         macros.
24515         (main): Use them.
24516
24517 2007-03-25  Bruno Haible  <bruno@clisp.org>
24518
24519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
24520         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
24521         exists but doesn't work.
24522         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
24523         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
24524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
24525         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
24526
24527 2007-03-25  Bruno Haible  <bruno@clisp.org>
24528
24529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
24530         returns inf. Needed on IRIX 6.5.
24531
24532 2007-03-25  Bruno Haible  <bruno@clisp.org>
24533
24534         * tests/test-frexpl.c: Include isnanl-nolibm.h.
24535         (main): Use isnanl instead of x != x idiom.
24536         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
24537
24538         * tests/test-frexp.c: Include isnan.h.
24539         (main): Use isnan instead of x != x idiom.
24540         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
24541
24542 2007-03-25  Bruno Haible  <bruno@clisp.org>
24543
24544         * tests/test-frexp.c (NaN): New function/macro.
24545         (main): Use it instead of 0.0 / 0.0.
24546         * tests/test-isnan.c (NaN): New function/macro.
24547         (main): Use it instead of 0.0 / 0.0.
24548         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
24549         (test_function): Use it instead of 0.0 / 0.0.
24550         * tests/test-vasprintf-posix.c (NaN): New function/macro.
24551         (test_function): Use it instead of 0.0 / 0.0.
24552         * tests/test-snprintf-posix.h (NaN): New function/macro.
24553         (test_function): Use it instead of 0.0 / 0.0.
24554         * tests/test-sprintf-posix.h (NaN): New function/macro.
24555         (test_function): Use it instead of 0.0 / 0.0.
24556         * tests/test-fprintf-posix.h (NaN): New function/macro.
24557         (test_function): Use it instead of 0.0 / 0.0.
24558         * tests/test-printf-posix.h (NaN): New function/macro.
24559         (test_function): Use it instead of 0.0 / 0.0.
24560
24561         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
24562
24563 2007-03-25  Bruno Haible  <bruno@clisp.org>
24564
24565         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
24566
24567 2007-03-25  Bruno Haible  <bruno@clisp.org>
24568
24569         * lib/regexec.c (merge_state_with_log): Make static.
24570
24571 2007-03-25  Bruno Haible  <bruno@clisp.org>
24572
24573         * lib/trigl.c (kernel_rem_pio2): Make static.
24574
24575 2007-03-25  Bruno Haible  <bruno@clisp.org>
24576
24577         * lib/sincosl.c (sincosl_table): Make static.
24578
24579 2007-03-25  Bruno Haible  <bruno@clisp.org>
24580
24581         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
24582         if the compiler does not support C99.
24583
24584 2007-03-25  Bruno Haible  <bruno@clisp.org>
24585
24586         * modules/time (Makefile.am): Ensure all rule action lines start with a
24587         tab.
24588
24589 2007-03-24  Bruno Haible  <bruno@clisp.org>
24590
24591         * modules/tsearch-tests: New file.
24592         * tests/test-tsearch.sh: New file.
24593         * tests/test-tsearch.c: New file, mostly copied from glibc.
24594
24595         * modules/search-tests: New file.
24596         * tests/test-search.c: New file.
24597
24598         * modules/search: New file.
24599         * lib/search_.h: New file, incorporating lib/tsearch.h.
24600         * m4/search_h.m4: New file.
24601         * lib/tsearch.h: Remove file.
24602         * lib/tsearch.c: Include search.h instead of tsearch.h.
24603         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
24604         HAVE_TSEARCH.
24605         * modules/tsearch (Files): Remove lib/tsearch.h.
24606         (Depends-on): Add search.
24607         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
24608         (Include): Change tsearch.h into search.h.
24609
24610 2007-03-24  Bruno Haible  <bruno@clisp.org>
24611
24612         * modules/fpucw: New file.
24613         * lib/fpucw.h: New file.
24614         * lib/frexp.c: Include fpucw.h.
24615         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24616         (FUNC): Use them.
24617         * lib/printf-frexp.c: Include fpucw.h.
24618         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24619         (FUNC): Use them.
24620         * lib/vasnprintf.c: Include fpucw.h.
24621         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
24622         'long double' calculations.
24623         * tests/test-frexpl.c: Include fpucw.h.
24624         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24625         * tests/test-printf-frexpl.c: Include fpucw.h.
24626         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24627         * modules/frexpl (Depends-on): Add fpucw.
24628         * modules/printf-frexpl (Depends-on): Likewise.
24629         * modules/fprintf-posix (Depends-on): Likewise.
24630         * modules/snprintf-posix (Depends-on): Likewise.
24631         * modules/sprintf-posix (Depends-on): Likewise.
24632         * modules/vasnprintf-posix (Depends-on): Likewise.
24633         * modules/vasprintf-posix (Depends-on): Likewise.
24634         * modules/vfprintf-posix (Depends-on): Likewise.
24635         * modules/vsnprintf-posix (Depends-on): Likewise.
24636         * modules/vsprintf-posix (Depends-on): Likewise.
24637         * modules/frexpl-tests (Depends-on): Likewise.
24638         * modules/printf-frexpl-tests (Depends-on): Likewise.
24639
24640 2007-03-24  Bruno Haible  <bruno@clisp.org>
24641
24642         * lib/float+.h: New file.
24643         * lib/isnan.c: Include float+.h.
24644         (SIZE): New macro.
24645         (FUNC): Compare only SIZE bytes of the value.
24646         * lib/vasnprintf.c: Include float+.h.
24647         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
24648         SIZEOF_LDBL or SIZEOF_DBL bytes.
24649         * modules/isnan-nolibm (Files): Add lib/float+.h.
24650         * modules/isnanl-nolibm (Files): Add lib/float+.h.
24651         * modules/isnanl (Files): Add lib/float+.h.
24652         * modules/vasnprintf (Files): Add lib/float+.h.
24653
24654 2007-03-24  Bruno Haible  <bruno@clisp.org>
24655
24656         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
24657         include isnanl-nolibm.h.
24658
24659 2007-03-24  Bruno Haible  <bruno@clisp.org>
24660
24661         * tests/test-read-file.c (main): Don't produce spurious output for
24662         expected situations. Make the test fail if it encountered unexpected
24663         results.
24664
24665 2007-03-24  Bruno Haible  <bruno@clisp.org>
24666
24667         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
24668         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
24669
24670 2007-03-24  Bruno Haible  <bruno@clisp.org>
24671
24672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
24673
24674 2007-03-24  Bruno Haible  <bruno@clisp.org>
24675
24676         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
24677         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
24678
24679         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
24680         * modules/utf8-ucs4: Turn into a symbolic link to module
24681         unistr/u8-mbtouc.
24682
24683         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
24684         utf8-ucs4-unsafe.
24685         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
24686         unistr/u8-mbtouc-unsafe.
24687
24688         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
24689         * modules/utf16-ucs4: Turn into a symbolic link to module
24690         unistr/u16-mbtouc.
24691
24692         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
24693         utf16-ucs4-unsafe.
24694         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
24695         unistr/u16-mbtouc-unsafe.
24696
24697         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
24698         * modules/ucs4-utf8: Turn into a symbolic link to module
24699         unistr/u8-ubtomb.
24700
24701         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
24702         * modules/ucs4-utf16: Turn into a symbolic link to module
24703         unistr/u16-ubtomb.
24704
24705 2007-03-24  Bruno Haible  <bruno@clisp.org>
24706
24707         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
24708         Enable the function only if HAVE_INLINE.
24709         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
24710         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24711         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
24712         Enable the function only if HAVE_INLINE.
24713         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
24714         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24715         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
24716         Enable the function only if HAVE_INLINE.
24717         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
24718         Enable the function only if HAVE_INLINE.
24719         * modules/utf8-ucs4: Update.
24720         * modules/utf8-ucs4-unsafe: Update.
24721         * modules/utf16-ucs4: Update.
24722         * modules/utf16-ucs4-unsafe: Update.
24723         * modules/ucs4-utf8: Update.
24724         * modules/ucs4-utf16: Update.
24725
24726 2007-03-24  Bruno Haible  <bruno@clisp.org>
24727
24728         * lib/utf8-ucs4.h: Remove file.
24729         * lib/utf8-ucs4-unsafe.h: Remove file.
24730         * lib/utf16-ucs4.h: Remove file.
24731         * lib/utf16-ucs4-unsafe.h: Remove file.
24732         * lib/ucs4-utf8.h: Remove file.
24733         * lib/ucs4-utf16.h: Remove file.
24734         * lib/unistr.h: Include their previous contents.
24735         * m4/utf-ucs4.m4: Remove file.
24736         * m4/ucs4-utf.m4: Remove file.
24737         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
24738         (Depends-on): Add unistr/base.
24739         (configure.ac): Remove gl_UTF_UCS4.
24740         (Makefile.am): Update.
24741         (Include): Change to unistr.h.
24742         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
24743         (Depends-on): Add unistr/base.
24744         (configure.ac): Remove gl_UTF_UCS4.
24745         (Makefile.am): Update.
24746         (Include): Change to unistr.h.
24747         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
24748         (Depends-on): Add unistr/base.
24749         (configure.ac): Remove gl_UTF_UCS4.
24750         (Makefile.am): Update.
24751         (Include): Change to unistr.h.
24752         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
24753         (Depends-on): Add unistr/base.
24754         (configure.ac): Remove gl_UTF_UCS4.
24755         (Makefile.am): Update.
24756         (Include): Change to unistr.h.
24757         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
24758         (Depends-on): Add unistr/base.
24759         (configure.ac): Remove gl_UCS4_UTF.
24760         (Makefile.am): Update.
24761         (Include): Change to unistr.h.
24762         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
24763         (Depends-on): Add unistr/base.
24764         (configure.ac): Remove gl_UCS4_UTF.
24765         (Makefile.am): Update.
24766         (Include): Change to unistr.h.
24767         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
24768         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
24769         utf8-ucs4-unsafe.h.
24770         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
24771         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
24772         utf16-ucs4-unsafe.h.
24773         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
24774         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
24775         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
24776         * lib/unistr/u8-strchr.c: Likewise.
24777         * lib/unistr/u8-strrchr.c: Likewise.
24778         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
24779         * lib/unistr/u16-strchr.c: Likewise.
24780         * lib/unistr/u16-strrchr.c: Likewise.
24781         * lib/striconveh.c: Update.
24782         * lib/linebreak.c: Update.
24783
24784 2007-03-24  Bruno Haible  <bruno@clisp.org>
24785
24786         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
24787         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
24788
24789 2007-03-22  Bruno Haible  <bruno@clisp.org>
24790
24791         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
24792
24793 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24794
24795         * MODULES.html.sh (File system functions): New module write-any-file.
24796         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
24797         * m4/write-any-file.m4: New files.
24798
24799 2007-03-23  Eric Blake  <ebb9@byu.net>
24800
24801         * gnulib-tool: Rearrange space-tab sequences, since some editors
24802         like to eat them.
24803
24804 2007-03-23  Eric Blake  <ebb9@byu.net>
24805
24806         * lib/version-etc.c (version_etc_va): Update license wording to
24807         be more concise.  Recommended by Richard Stallman.
24808
24809 2007-03-22  Bruno Haible  <bruno@clisp.org>
24810
24811         * lib/poll.c (MSG_PEEK): New fallback definition.
24812
24813 2007-03-22  Bruno Haible  <bruno@clisp.org>
24814
24815         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
24816         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
24817         (main): Update.
24818         Fixes a compilation error on BeOS.
24819
24820 2007-03-22  Bruno Haible  <bruno@clisp.org>
24821
24822         * modules/frexpl-tests: New file.
24823         * tests/test-frexpl.c: New file.
24824
24825         * modules/frexpl: New file.
24826         * m4/frexpl.m4: New file.
24827         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
24828         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
24829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
24830         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
24831         (Depends-on): Add frexpl. Remove isnanl-nolibm.
24832         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
24833
24834 2007-03-22  Bruno Haible  <bruno@clisp.org>
24835
24836         * lib/frexpl.c: Share code with lib/frexp.c.
24837         * modules/mathl (Files): Add lib/frexp.c.
24838         (Depends-on): Add isnanl-nolibm.
24839
24840 2007-03-22  Bruno Haible  <bruno@clisp.org>
24841
24842         * modules/printf-frexp (Files): Add m4/frexp.m4.
24843         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
24844         only if the found frexp function actually works.
24845
24846 2007-03-22  Bruno Haible  <bruno@clisp.org>
24847
24848         * lib/frexp.c: Remove older implementation that uses divisions.
24849
24850 2007-03-21  Bruno Haible  <bruno@clisp.org>
24851
24852         * modules/frexp-tests: New file.
24853         * tests/test-frexp.c: New file.
24854
24855         * modules/frexp: New file.
24856         * lib/frexp.c: New file.
24857         * m4/frexp.m4: New file.
24858         * lib/math_.h (frexp): New declaration.
24859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
24860         REPLACE_FREXP.
24861         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
24862
24863 2007-03-21  Bruno Haible  <bruno@clisp.org>
24864
24865         * modules/isnanl-tests: New file.
24866         * tests/test-isnanl.c: New file.
24867
24868         * modules/isnanl: New file.
24869         * lib/isnanl.h: New file.
24870         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
24871         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
24872         gl_FUNC_ISNANL_WORKS.
24873         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
24874         New macros.
24875
24876 2007-03-21  Bruno Haible  <bruno@clisp.org>
24877
24878         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
24879         lib/isnanl.h.
24880         (Include): Update.
24881         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
24882         * lib/vasnprintf.c: Update.
24883         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
24884         tests/test-isnanl.h, remove tests/test-isnanl.c.
24885         (Makefile.am): Update.
24886         * tests/test-isnanl-nolibm.c: New file.
24887         * tests/test-isnanl.h: New file.
24888         * tests/test-isnanl.c: Remove file.
24889
24890 2007-03-21  Jim Meyering  <jim@meyering.net>
24891
24892         When trying to open ".", treat ESTALE like EACCES.
24893         * lib/savewd.c (savewd_save): Resort to forking not just upon
24894         failure with EACCES, but also when errno is ESTALE.
24895
24896 2007-03-20  Bruno Haible  <bruno@clisp.org>
24897
24898         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
24899         Needed on AIX 5.1. Reported by Matthew Woehlke.
24900
24901 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24902
24903         Suggestions by Bruno Haible:
24904         * lib/acl-internal.h: Include "gettext.h" rather than rolling
24905         our own.
24906         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
24907         * modules/acl (Depends-on): Add gettext.
24908
24909 2007-03-19  Bruno Haible  <bruno@clisp.org>
24910
24911         * modules/iconvme: Remove file.
24912         * lib/iconvme.h: Remove file.
24913         * lib/iconvme.c: Remove file.
24914         * m4/iconvme.m4: Remove file.
24915
24916 2007-03-19  Bruno Haible  <bruno@clisp.org>
24917
24918         * doc/relocatable-maint.texi: Break long shell script line.
24919         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24920
24921 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24922
24923         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
24924         handle file_has_acl.
24925         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
24926         * lib/acl.c: Move header inclusions and related macro defns into
24927         lib/acl-internal.h.
24928         (S_ISLNK): Remove defn, since that's now done for us.
24929         (file_has_acl): Move to lib/file-has-acl.c.
24930         Call acl_trivial if available.  This is the crucial part of the fix.
24931         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
24932         shared within the library.  Rewrite a bit, partly to make it compatible
24933         with the GNU coding style.
24934         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
24935         Remove unnecessary double-quotes.
24936         Don't test for acl_to_text; the build will catch that.
24937         Replace acl_entries if it doesn't exist and it is needed.
24938         Check for -lsec and acl_trivial (as used on Solaris 10).
24939         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
24940         lib/file-has-acl.c.
24941         (Depends-on): Add sys_stat, for S_ISLNK.
24942
24943 2007-03-19  Ben Pfaff  <blp@gnu.org>
24944
24945         * doc/gnulib.texi: Fix typos.
24946         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
24947
24948 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24949
24950         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
24951         If size is zero here, buf must be zero.
24952
24953 2007-03-19  Simon Josefsson  <simon@josefsson.org>
24954
24955         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
24956         <bruno@clisp.org>.
24957
24958 2007-03-18  Bruno Haible  <bruno@clisp.org>
24959
24960         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
24961         Suggested by Eric Blake.
24962
24963 2007-03-18  Ben Pfaff  <blp@gnu.org>
24964
24965         * doc/relocatable.texi: Recommend using as prefix a directory
24966         that does not exist and will never be created.  Based on
24967         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
24968         and others.
24969
24970 2007-03-17  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/fchownat.c: Include lchown.h.
24973
24974 2007-03-17  Bruno Haible  <bruno@clisp.org>
24975
24976         Fix endless loop when the given allocated size was > INT_MAX.
24977         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
24978         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
24979         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
24980         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
24981         * lib/sprintf.c (sprintf): Likewise.
24982
24983 2007-03-17  Bruno Haible  <bruno@clisp.org>
24984
24985         * tests/test-argp-2.sh (func_compare): Output a context diff.
24986
24987 2007-03-17  Bruno Haible  <bruno@clisp.org>
24988
24989         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
24990         locale's decimal-point character.
24991
24992 2007-03-17  Bruno Haible  <bruno@clisp.org>
24993
24994         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
24995         before comparing it. Needed because on some platforms (e.g. x86) a
24996         'long double' occupies less bytes than sizeof (long double).
24997
24998 2007-03-17  Bruno Haible  <bruno@clisp.org>
24999
25000         * tests/test-crc.c (main): Make printf statements 64-bit clean.
25001         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
25002         * tests/test-getaddrinfo.c (simple): Likewise.
25003         * tests/test-read-file.c (main): Likewise.
25004
25005 2007-03-17  Bruno Haible  <bruno@clisp.org>
25006
25007         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
25008
25009 2007-03-17  Bruno Haible  <bruno@clisp.org>
25010
25011         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
25012         unused variable.
25013
25014 2007-03-17  Bruno Haible  <bruno@clisp.org>
25015
25016         * tests/test-c-strcasecmp.c: Include c-strcase.h.
25017         * tests/test-c-strncasecmp.c: Likewise.
25018
25019 2007-03-17  Bruno Haible  <bruno@clisp.org>
25020
25021         * modules/stdlib (Depends-on): Add unistd.
25022         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
25023         Needed for MacOS X 10.3.
25024
25025 2007-03-17  Bruno Haible  <bruno@clisp.org>
25026
25027         * lib/unistr/u-strdup.h: Include <stdlib.h>.
25028
25029 2007-03-17  Bruno Haible  <bruno@clisp.org>
25030
25031         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
25032
25033 2007-03-17  Bruno Haible  <bruno@clisp.org>
25034
25035         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
25036         to reflect files copied from gnulib (with or without modifications).
25037         Suggested by Jim Meyering.
25038
25039 2007-03-17  Eric Blake  <ebb9@byu.net>
25040
25041         * NEWS: Document stdlib change from 2007-02-18.
25042
25043 2007-03-17  Jim Meyering  <jim@meyering.net>
25044
25045         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
25046         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
25047         someone uses a name containing shell meta-characters.
25048         Reported by Alfred M. Szmidt.
25049
25050         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
25051
25052 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25053
25054         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
25055         and copy gettext configuration files only if configure.ac contains
25056         a use of AM_GNU_GETTEXT_VERSION.
25057
25058 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25059
25060         * build-aux/bootstrap (gnulib_name): New variable.
25061         (gnulib_tool_options): Use it.
25062
25063 2007-03-13  Simon Josefsson  <simon@josefsson.org>
25064
25065         * tests/test-des.c: Use new namespace.
25066
25067 2007-03-15  Bruno Haible  <bruno@clisp.org>
25068
25069         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
25070         Reported by James Youngman <jay@gnu.org>.
25071
25072 2007-03-15  Bruno Haible  <bruno@clisp.org>
25073
25074         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
25075         declared prototype. Needed with cc on OSF/1 5.1.
25076
25077 2007-03-15  Bruno Haible  <bruno@clisp.org>
25078
25079         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
25080         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
25081         (struct gl_list_implementation): Add dispose_fn argument to the
25082         'create_empty', 'create' methods.
25083         (struct gl_list_impl_base): Add field 'dispose_fn'.
25084         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
25085         argument.
25086         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
25087         dispose_fn argument.
25088         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
25089         dispose_fn on the dropped values.
25090         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
25091         dispose_fn argument.
25092         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
25093         dropped values.
25094         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
25095         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25096         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
25097         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25098         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
25099         argument.
25100         (gl_tree_list_free): Call dispose_fn on the dropped values.
25101         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
25102         the dropped values.
25103         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
25104         Add dispose_fn argument.
25105         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
25106         Call dispose_fn on the dropped values.
25107         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
25108         Add dispose_fn argument.
25109         (gl_sublist_create): Initialize the 'dispose_fn' field.
25110         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
25111         * tests/test-array_list.c (main): Update.
25112         * tests/test-carray_list.c (main): Update.
25113         * tests/test-avltree_list.c (main): Update.
25114         * tests/test-rbtree_list.c (main): Update.
25115         * tests/test-avltreehash_list.c (main): Update.
25116         * tests/test-rbtreehash_list.c (main): Update.
25117         * tests/test-linked_list.c (main): Update.
25118         * tests/test-linkedhash_list.c (main): Update.
25119         * tests/test-array_oset.c (main): Update.
25120
25121 2007-03-15  Bruno Haible  <bruno@clisp.org>
25122
25123         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
25124         (gl_oset_create_empty): Add dispose_fn argument.
25125         (struct gl_oset_implementation): Add dispose_fn argument to
25126         'create_empty' method.
25127         (struct gl_oset_impl_base): Add dispose_fn field.
25128         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
25129         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
25130         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
25131         values.
25132         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
25133         (gl_tree_oset_free): Call dispose_fn on the dropped values.
25134         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25135         dropped value.
25136         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25137         dropped value.
25138         * tests/test-array_oset.c (main): Update.
25139         * tests/test-avltree_oset.c (main): Update.
25140         * tests/test-rbtree_oset.c (main): Update.
25141         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
25142
25143 2007-03-13  Bruno Haible  <bruno@clisp.org>
25144
25145         * tests/test-stdbool.c (i): Update after last patch.
25146
25147 2007-03-12  Bruno Haible  <bruno@clisp.org>
25148
25149         * lib/quotearg.c: Include <wctype.h> early, before the definition of
25150         the iswprint macro. Needed on Solaris 2.5.1.
25151
25152 2007-03-12  Bruno Haible  <bruno@clisp.org>
25153
25154         * tests/test-printf-frexp.c (main): Declare x as volatile.
25155
25156 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25157
25158         * doc/gnulib.texi (Build robot for gnulib): New section.
25159
25160 2007-03-12  Jim Meyering  <jim@meyering.net>
25161
25162         * build-aux/bootstrap: New file.
25163         * build-aux/bootstrap.conf: New file, from coreutils.
25164
25165 2007-03-11  Bruno Haible  <bruno@clisp.org>
25166
25167         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
25168
25169 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25170
25171         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
25172         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
25173         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
25174
25175 2007-03-11  Bruno Haible  <bruno@clisp.org>
25176
25177         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
25178         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
25179
25180 2007-03-11  Bruno Haible  <bruno@clisp.org>
25181
25182         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
25183         formula. Needed for SunPRO C 5.0.
25184
25185 2007-03-11  Bruno Haible  <bruno@clisp.org>
25186
25187         * modules/long-options (Depends-on): Add getopt.
25188
25189 2007-03-11  Bruno Haible  <bruno@clisp.org>
25190
25191         * modules/modechange (Depends-on): Add stdbool.
25192
25193 2007-03-11  Bruno Haible  <bruno@clisp.org>
25194
25195         * modules/i-ring (Depends-on): Add stdbool.
25196
25197 2007-03-11  Bruno Haible  <bruno@clisp.org>
25198
25199         * modules/gc-des (Depends-on): Add stdbool.
25200
25201 2007-03-11  Bruno Haible  <bruno@clisp.org>
25202
25203         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
25204
25205 2007-03-11  Bruno Haible  <bruno@clisp.org>
25206
25207         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
25208
25209 2007-03-11  Bruno Haible  <bruno@clisp.org>
25210
25211         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
25212
25213 2007-03-11  Bruno Haible  <bruno@clisp.org>
25214
25215         * lib/vasnprintf.c (sprintf): Undefine.
25216
25217 2007-03-11  Bruno Haible  <bruno@clisp.org>
25218
25219         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
25220         initializers in SunPRO C and Compaq C compilers.
25221
25222 2007-03-11  Bruno Haible  <bruno@clisp.org>
25223
25224         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
25225         decrementing code ANSI C compliant.
25226
25227 2007-03-11  Bruno Haible  <bruno@clisp.org>
25228
25229         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
25230         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
25231
25232 2007-03-11  Bruno Haible  <bruno@clisp.org>
25233
25234         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
25235         <stdbool.h> substitute doesn't pass.
25236
25237 2007-03-11  Bruno Haible  <bruno@clisp.org>
25238
25239         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
25240
25241 2007-03-11  Bruno Haible  <bruno@clisp.org>
25242
25243         * gnulib-tool (func_create_megatestdir): Create also an autobuild
25244         script, for submission to autobuild.josefsson.org.
25245
25246 2007-03-10  Bruno Haible  <bruno@clisp.org>
25247
25248         * modules/canonicalize-lgpl-tests: New file.
25249         * tests/test-canonicalize-lgpl.sh: New file.
25250         * tests/test-canonicalize-lgpl.c: New file.
25251
25252         * modules/c-strcase-tests: New file.
25253         * tests/test-c-strcase.sh: New file.
25254         * tests/test-c-strcasecmp.c: New file.
25255         * tests/test-c-strncasecmp.c: New file.
25256
25257         * modules/atexit-tests: New file.
25258         * tests/test-atexit.sh: New file.
25259         * tests/test-atexit.c: New file.
25260
25261 2007-03-10  Bruno Haible  <bruno@clisp.org>
25262
25263         * tests/test-binary-io.sh: Use temporary filenames that are not so
25264         likely to clash with those of other tests (in a parallel make).
25265         * tests/test-binary-io.c: Likewise.
25266
25267 2007-03-10  Bruno Haible  <bruno@clisp.org>
25268
25269         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
25270         fallback; use #error instead.
25271         Suggested by Simon Josefsson.
25272
25273 2007-03-10  Bruno Haible  <bruno@clisp.org>
25274
25275         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
25276         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
25277         first and the last.
25278
25279 2007-03-10  Bruno Haible  <bruno@clisp.org>
25280
25281         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
25282
25283 2007-03-10  Bruno Haible  <bruno@clisp.org>
25284
25285         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
25286         "make distcheck".
25287         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
25288         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
25289         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
25290
25291 2007-03-10  Bruno Haible  <bruno@clisp.org>
25292
25293         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
25294         variable.
25295         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
25296         variable.
25297
25298 2007-03-09  Eric Blake  <ebb9@byu.net>
25299         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
25300
25301         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
25302         types are not being provided by gnulib.
25303         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
25304         types are supported.
25305
25306 2007-03-10  Bruno Haible  <bruno@clisp.org>
25307
25308         * lib/stdio_.h (__attribute__): New macro.
25309         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
25310         vsprintf): Specify __attribute__ __format__ for GCC.
25311         Suggested by Eric Blake.
25312
25313 2007-03-09  Bruno Haible  <bruno@clisp.org>
25314
25315         * modules/printf-posix-tests: New file.
25316         * tests/test-printf-posix.sh: New file.
25317         * tests/test-printf-posix.c: New file.
25318
25319         * modules/printf-posix: New file.
25320         * lib/printf.c: New file.
25321         * m4/printf-posix-rpl.m4: New file.
25322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
25323         REPLACE_PRINTF.
25324         * lib/stdio_.h (printf): New declaration.
25325         (format, __format__, ____printf____, ____scanf____, ____strftime____,
25326         ____strfmon____): New macros.
25327         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
25328         REPLACE_PRINTF.
25329
25330 2007-03-09  Bruno Haible  <bruno@clisp.org>
25331
25332         * tests/test-vasnprintf-posix2.sh: New file.
25333         * tests/test-vasnprintf-posix2.c: New file.
25334         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
25335         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
25336         (Makefile.am): Activate test-vasnprintf-posix2.sh.
25337
25338         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
25339         a locale dependent decimal point, rather than always '.'.
25340
25341 2007-03-09  Eric Blake  <ebb9@byu.net>
25342
25343         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
25344         spite of platforms like Tandem/NSK that define it to -1.
25345
25346 2007-03-08  Bruno Haible  <bruno@clisp.org>
25347
25348         * modules/vprintf-posix-tests: New file.
25349         * tests/test-vprintf-posix.sh: New file.
25350         * tests/test-vprintf-posix.c: New file.
25351         * tests/test-printf-posix.h: New file.
25352
25353         * modules/vprintf-posix: New file.
25354         * lib/vprintf.c: New file.
25355         * m4/vprintf-posix.m4: New file.
25356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
25357         REPLACE_VPRINTF.
25358         * lib/stdio_.h (vprintf): New declaration.
25359         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
25360         REPLACE_VPRINTF.
25361
25362 2007-03-08  Bruno Haible  <bruno@clisp.org>
25363
25364         * modules/fprintf-posix-tests: New file.
25365         * tests/test-fprintf-posix.sh: New file.
25366         * tests/test-fprintf-posix.c: New file.
25367
25368         * modules/fprintf-posix: New file.
25369         * lib/fprintf.c: New file.
25370         * m4/fprintf-posix.m4: New file.
25371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
25372         REPLACE_FPRINTF.
25373         * lib/stdio_.h (fprintf): New declaration.
25374         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
25375         REPLACE_FPRINTF.
25376
25377 2007-03-08  Bruno Haible  <bruno@clisp.org>
25378
25379         * modules/vfprintf-posix-tests: New file.
25380         * tests/test-vfprintf-posix.sh: New file.
25381         * tests/test-vfprintf-posix.c: New file.
25382         * tests/test-fprintf-posix.h: New file.
25383         * tests/test-fprintf-posix.out: New file.
25384
25385         * modules/vfprintf-posix: New file.
25386         * lib/vfprintf.c: New file.
25387         * m4/vfprintf-posix.m4: New file.
25388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
25389         REPLACE_VFPRINTF.
25390         * lib/stdio_.h (vfprintf): New declaration.
25391         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
25392         REPLACE_VFPRINTF.
25393
25394 2007-03-08  Bruno Haible  <bruno@clisp.org>
25395
25396         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
25397
25398 2007-03-08  Bruno Haible  <bruno@clisp.org>
25399
25400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
25401         instead of 'expr' invocations.
25402         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25403         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25404         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25407         Suggested by Paul Eggert.
25408
25409 2007-03-08  Bruno Haible  <bruno@clisp.org>
25410
25411         * modules/fseterr-tests: New file.
25412         * tests/test-fseterr.c: New file.
25413
25414         * modules/fseterr: New file.
25415         * lib/fseterr.h: New file.
25416         * lib/fseterr.c: New file.
25417
25418 2007-03-08  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
25421         * lib/getopt_.h: Likewise.
25422         * lib/mbswidth.h: Likewise.
25423         * lib/setenv.h: Likewise.
25424         * lib/vasnprintf.h: Likewise.
25425         * lib/vasprintf.h: Likewise.
25426         * lib/verror.h: Likewise.
25427         * lib/xsetenv.h: Likewise.
25428         * lib/xvasprintf.h: Likewise.
25429
25430 2007-03-08  Jim Meyering  <jim@meyering.net>
25431
25432         * users.txt: Add parted.
25433
25434         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
25435
25436 2007-03-07  Bruno Haible  <bruno@clisp.org>
25437
25438         * m4/printf.m4: Make the shell script snippets copy&pastable.
25439
25440 2007-03-02  Bruno Haible  <bruno@clisp.org>
25441
25442         * lib/netinet_in_.h: New file.
25443         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
25444         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
25445         * modules/netinet_in (Files): Add lib/netinet_in_.h.
25446         (Depends-on): Add absolute-header.
25447         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
25448         into netinet/in.h.
25449
25450 2007-03-03  Bruno Haible  <bruno@clisp.org>
25451
25452         * lib/sys_select_.h: New file.
25453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
25454         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
25455         * modules/sys_select (Files): Add lib/sys_select_.h.
25456         (Depends-on): Add absolute-header.
25457         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
25458         into sys/select.h.
25459
25460 2007-03-02  Bruno Haible  <bruno@clisp.org>
25461
25462         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
25463         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
25464         values.
25465         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
25466         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
25467         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
25468         * modules/sys_socket (Depends-on): Add absolute-header.
25469         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
25470         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
25471         (Include): Remove requirement of inclusion of <sys/types.h>.
25472
25473 2007-03-02  Bruno Haible  <bruno@clisp.org>
25474
25475         * lib/byteswap_.h (bswap_32): Fix formula.
25476
25477 2007-03-06  Bruno Haible  <bruno@clisp.org>
25478
25479         * modules/sprintf-posix-tests: New file.
25480         * tests/test-sprintf-posix.c: New file.
25481
25482         * modules/sprintf-posix: New file.
25483         * lib/sprintf.c: New file.
25484         * m4/sprintf-posix.m4: New file.
25485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
25486         REPLACE_SPRINTF.
25487         * lib/stdio_.h (sprintf): New declaration.
25488         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
25489         REPLACE_SPRINTF.
25490
25491 2007-03-06  Bruno Haible  <bruno@clisp.org>
25492
25493         * modules/vsprintf-posix-tests: New file.
25494         * tests/test-vsprintf-posix.c: New file.
25495         * tests/test-sprintf-posix.h: New file.
25496
25497         * modules/vsprintf-posix: New file.
25498         * lib/vsprintf.c: New file.
25499         * m4/vsprintf-posix.m4: New file.
25500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
25501         REPLACE_VSPRINTF.
25502         * lib/stdio_.h (vsprintf): New declaration.
25503         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
25504         REPLACE_VSPRINTF.
25505
25506 2007-03-06  Bruno Haible  <bruno@clisp.org>
25507
25508         * modules/vsnprintf (Depend-on): Remove minmax.
25509
25510 2007-03-06  Bruno Haible  <bruno@clisp.org>
25511
25512         * modules/snprintf-posix-tests: New file.
25513         * tests/test-snprintf-posix.c: New file.
25514
25515         * modules/snprintf-posix: New file.
25516         * m4/snprintf-posix.m4: New file.
25517         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
25518         gl_FUNC_SNPRINTF.
25519         (gl_FUNC_SNPRINTF): Invoke it.
25520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
25521         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
25522         is set.
25523         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
25524
25525 2007-03-06  Bruno Haible  <bruno@clisp.org>
25526
25527         * modules/vsnprintf-posix-tests: New file.
25528         * tests/test-vsnprintf-posix.c: New file.
25529         * tests/test-snprintf-posix.h: New file.
25530
25531         * modules/vsnprintf-posix: New file.
25532         * m4/vsnprintf-posix.m4: New file.
25533         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
25534         gl_FUNC_VSNPRINTF.
25535         (gl_FUNC_VSNPRINTF): Invoke it.
25536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
25537         * lib/stdio_.h (vsnprintf): Define as a replacement if
25538         REPLACE_VSNPRINTF is set.
25539         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
25540
25541 2007-03-06  Bruno Haible  <bruno@clisp.org>
25542
25543         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
25544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
25545
25546 2007-03-06  Bruno Haible  <bruno@clisp.org>
25547
25548         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
25549         (asinl): Declare also if HAVE_DECL_ASINL is set.
25550         (atanl): Declare also if HAVE_DECL_ATANL is set.
25551         (ceill): Declare also if HAVE_DECL_CEILL is set.
25552         (cosl): Declare also if HAVE_DECL_COSL is set.
25553         (expl): Declare also if HAVE_DECL_EXPL is set.
25554         (floorl): Declare also if HAVE_DECL_FLOORL is set.
25555         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
25556         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
25557         (logl): Declare also if HAVE_DECL_LOGL is set.
25558         (sinl): Declare also if HAVE_DECL_SINL is set.
25559         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
25560         (tanl): Declare also if HAVE_DECL_TANL is set.
25561         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
25562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
25563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
25564         declaration of frexpl, ldexpl.
25565         * modules/printf-frexpl (Depends-on): Add math.
25566         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
25567
25568 2007-03-05  Bruno Haible  <bruno@clisp.org>
25569
25570         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
25571         frexpl and ldexpl are declared.
25572         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
25573
25574 2007-03-05  Bruno Haible  <bruno@clisp.org>
25575
25576         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
25577         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
25578
25579 2007-03-05  Bruno Haible  <bruno@clisp.org>
25580
25581         * lib/stdio_.h: Include <stddef.h>.
25582
25583 2007-03-05  Bruno Haible  <bruno@clisp.org>
25584
25585         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
25586
25587 2007-03-05  Bruno Haible  <bruno@clisp.org>
25588
25589         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
25590         NetBSD 4, from Ralf Wildenhues.
25591
25592 2007-03-04  Bruno Haible  <bruno@clisp.org>
25593
25594         * lib/vasprintf.h: Update #if logic for the case when the functions
25595         exist but are overridden.
25596
25597 2007-03-04  Bruno Haible  <bruno@clisp.org>
25598
25599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
25600         implementations: glibc-2.4 and MacOS X 10.3.
25601         * tests/test-vasnprintf-posix.c (test_function): Test also the case
25602         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
25603         * tests/test-vasprintf-posix.c (test_function): Likewise.
25604
25605 2007-03-04  Bruno Haible  <bruno@clisp.org>
25606
25607         * modules/vasprintf-posix-tests: New file.
25608         * tests/test-vasprintf-posix.c: New file.
25609
25610         * modules/vasprintf-posix: New file.
25611         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
25612         defined.
25613         * m4/vasprintf-posix.m4: New file.
25614         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
25615         gl_FUNC_VASPRINTF.
25616         (gl_FUNC_VASPRINTF): Invoke it.
25617         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
25618         here.
25619         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
25620
25621 2007-03-04  Bruno Haible  <bruno@clisp.org>
25622
25623         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
25624         REPLACE_GETTIMEOFDAY.
25625         * modules/sys_time (Makefile.am): Likewise.
25626         * m4/sys_time_h.m4: Likewise.
25627         * m4/gettimeofday.m4: Likewise.
25628
25629 2007-03-04  Bruno Haible  <bruno@clisp.org>
25630
25631         * modules/vasnprintf-posix-tests: New file.
25632         * tests/test-vasnprintf-posix.c: New file.
25633
25634         * modules/vasnprintf-posix: New file.
25635         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
25636         printf-frexpl.h.
25637         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
25638         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
25639         REPLACE_VASNPRINTF is defined.
25640         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
25641         gl_FUNC_VASNPRINTF.
25642         (gl_FUNC_VASNPRINTF): Invoke it.
25643         * m4/vasnprintf-posix.m4: New file.
25644         * m4/printf.m4: New file.
25645
25646 2007-03-04  Bruno Haible  <bruno@clisp.org>
25647
25648         Compile progreloc.c only if --enable-relocatable is specified.
25649         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
25650         if --enable-relocatable was specified.
25651         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
25652         lib_SOURCES.
25653
25654 2007-03-04  Jim Meyering  <jim@meyering.net>
25655
25656         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
25657         Use it consistently, rather than enumerating errno constants.
25658
25659 2007-03-04  Bruno Haible  <bruno@clisp.org>
25660
25661         * modules/xvasprintf-tests: New file.
25662         * tests/test-xvasprintf.c: New file.
25663
25664         * modules/vasprintf-tests: New file.
25665         * tests/test-vasprintf.c: New file.
25666
25667         * modules/vasnprintf-tests: New file.
25668         * tests/test-vasnprintf.c: New file.
25669
25670         * modules/vsnprintf-tests: New file.
25671         * tests/test-vsnprintf.c: New file.
25672
25673         * modules/snprintf-tests: New file.
25674         * tests/test-snprintf.c: New file.
25675
25676 2007-03-04  Bruno Haible  <bruno@clisp.org>
25677
25678         Compile relocatable.c only if --enable-relocatable is specified.
25679         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
25680         gl_RELOCATABLE_LIBRARY.
25681         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
25682         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
25683         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
25684         gl_RELOCATABLE_LIBRARY.
25685         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
25686         (Makefile.am): Remove lib_SOURCES.
25687         * modules/relocatable-lib-lgpl (configure.ac): Invoke
25688         gl_RELOCATABLE_LIBRARY.
25689         (Makefile.am): Remove lib_SOURCES.
25690         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
25691         always.
25692         * modules/relocatable-prog-wrapper (configure.ac): Invoke
25693         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
25694
25695 2007-03-04  Bruno Haible  <bruno@clisp.org>
25696
25697         * modules/argmatch-tests: New file.
25698         * tests/test-argmatch.c: New file.
25699
25700         * tests/test-allocsa.c (main): Halve the number of loop runs.
25701
25702         * modules/alloca-opt-tests: New file.
25703         * tests/test-alloca-opt.c: New file.
25704
25705 2007-03-04  Jim Meyering  <jim@meyering.net>
25706
25707         Work around difference between Linux ACLs and Solaris 10 ZFS.
25708         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
25709         for EINVAL.
25710
25711 2007-03-03  Bruno Haible  <bruno@clisp.org>
25712
25713         * modules/relocatable-prog (Depends-on): Add back progreloc's
25714         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
25715
25716 2007-03-03  Bruno Haible  <bruno@clisp.org>
25717
25718         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
25719         * modules/relocatable-lib: New file.
25720
25721 2007-03-03  Bruno Haible  <bruno@clisp.org>
25722
25723         * modules/relocatable-prog: Renamed from modules/relocatable.
25724         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
25725
25726 2007-03-03  Bruno Haible  <bruno@clisp.org>
25727
25728         * modules/relocatable-script (Files): Add doc/relocatable.texi,
25729         m4/relocatable-lib.m4.
25730         (Depends-on): Remove 'relocatable'.
25731         (configure.ac): Add gl_RELOCATABLE_NOP.
25732
25733 2007-03-03  Bruno Haible  <bruno@clisp.org>
25734
25735         * modules/relocatable-prog-wrapper: New file.
25736         * modules/relocatable (Depends-on): Add it. Remove all other
25737         dependencies except progname.
25738         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
25739
25740         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
25741         (gl_FUNC_STRERROR): Nop.
25742         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
25743
25744         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
25745         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
25746
25747         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
25748         (gl_FUNC_READLINK): Update.
25749
25750         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
25751
25752 2007-03-03  Bruno Haible  <bruno@clisp.org>
25753
25754         * lib/xreadlink.c: Include <unistd.h> unconditionally.
25755         * modules/xreadlink (Depends-on): Add unistd.
25756         * modules/xreadlink-with-size (Depends-on): Likewise.
25757
25758 2007-03-03  Bruno Haible  <bruno@clisp.org>
25759
25760         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
25761         extracted from gt_FUNC_SETENV.
25762         (gt_FUNC_SETENV): Remove macro.
25763         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
25764         remove gt_FUNC_SETENV.
25765
25766 2007-03-03  Bruno Haible  <bruno@clisp.org>
25767
25768         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
25769         ENABLE_RELOCATABLE here.
25770         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
25771
25772 2007-03-03  Bruno Haible  <bruno@clisp.org>
25773
25774         * modules/rbtreehash-list-tests (Depends-on): Add progname.
25775         * tests/test-rbtreehash_list.c: Include progname.h.
25776         (main): Call set_program_name.
25777
25778         * modules/rbtree-oset-tests (Depends-on): Add progname.
25779         * tests/test-rbtree_oset.c: Include progname.h.
25780         (main): Call set_program_name.
25781
25782         * modules/rbtree-list-tests (Depends-on): Add progname.
25783         * tests/test-rbtree_list.c: Include progname.h.
25784         (main): Call set_program_name.
25785
25786         * modules/linked-list-tests (Depends-on): Add progname.
25787         * tests/test-linked_list.c: Include progname.h.
25788         (main): Call set_program_name.
25789
25790 2007-03-03  Bruno Haible  <bruno@clisp.org>
25791
25792         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
25793         All uses of __restrict changed to _Restrict_.
25794         * lib/glob_.h (__restrict): Remove macro.
25795
25796 2007-03-02  Bruno Haible  <bruno@clisp.org>
25797
25798         * modules/gettext (configure.ac): Require gettext infrastructure
25799         from version 0.16.1.
25800
25801 2007-03-02  Bruno Haible  <bruno@clisp.org>
25802
25803         * modules/linkedhash-list-tests (Depends-on): Add progname.
25804         * tests/test-linkedhash_list.c: Include progname.h.
25805         (main): Call set_program_name.
25806
25807         * modules/carray-list-tests (Depends-on): Add progname.
25808         * tests/test-carray_list.c: Include progname.h.
25809         (main): Call set_program_name.
25810
25811         * modules/avltreehash-list-tests (Depends-on): Add progname.
25812         * tests/test-avltreehash_list.c: Include progname.h.
25813         (main): Call set_program_name.
25814
25815         * modules/avltree-oset-tests (Depends-on): Add progname.
25816         * tests/test-avltree_oset.c: Include progname.h.
25817         (main): Call set_program_name.
25818
25819         * modules/avltree-list-tests (Depends-on): Add progname.
25820         * tests/test-avltree_list.c: Include progname.h.
25821         (main): Call set_program_name.
25822
25823         * modules/array-oset-tests (Depends-on): Add progname.
25824         * tests/test-array_oset.c: Include progname.h.
25825         (main): Call set_program_name.
25826
25827         * modules/array-list-tests (Depends-on): Add progname.
25828         * tests/test-array_list.c: Include progname.h.
25829         (main): Call set_program_name.
25830
25831         * modules/argp-tests (Depends-on): Add progname.
25832         * tests/test-argp.c: Include argp.h first. Include progname.h.
25833         (main): Call set_program_name.
25834
25835 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
25836
25837         * doc/gnulib-tool.texi (Initial import): Reword description of
25838         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
25839         limited effect even if defined after the first system include.
25840
25841 2007-03-01  Bruno Haible  <bruno@clisp.org>
25842
25843         * build-aux/config.libpath: Update to libtool-1.5.22.
25844         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25845
25846 2007-03-01  Bruno Haible  <bruno@clisp.org>
25847
25848         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
25849         foo_CFLAGS.
25850         Reported by Ralf Wildenhues.
25851
25852 2007-03-01  Bruno Haible  <bruno@clisp.org>
25853
25854         * build-aux/install-reloc: Remove object files left over by some
25855         compilers.
25856         Reported by Ralf Wildenhues.
25857
25858 2007-03-01  Bruno Haible  <bruno@clisp.org>
25859
25860         * build-aux/install-reloc: Break long lines.
25861
25862 2007-03-01  Bruno Haible  <bruno@clisp.org>
25863
25864         * doc/relocatable.texi: Document that it may not work on OpenBSD.
25865         Reported by Ralf Wildenhues.
25866
25867 2007-03-01  Bruno Haible  <bruno@clisp.org>
25868
25869         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
25870         include ordering constraints.
25871
25872 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
25873
25874         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
25875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
25876         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
25877         as another example.
25878         * lib/time_.h: Fix misspelling.
25879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25880         Require gl_HEADER_TIME_H_DEFAULTS.
25881         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
25882         * m4/time_r.m4 (gl_TIME_R): Likewise.
25883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
25884
25885 2007-03-01  Bruno Haible  <bruno@clisp.org>
25886
25887         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
25888         * m4/utimens.m4 (gl_UTIMENS): Likewise.
25889
25890 2007-03-01  Jim Meyering  <jim@meyering.net>
25891
25892         * modules/xreadlink (Maintainer): Add my name.
25893         * modules/xreadlink-with-size (Depends-on): Alphabetize.
25894
25895 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
25896             Bruno Haible  <bruno@clisp.org>
25897
25898         * build-aux/install-reloc: Compile also c-ctype.c.
25899         * build-aux/relocatable.sh.in: New file.
25900         * doc/relocatable.texi: New file.
25901         * doc/relocatable-maint.texi: New file.
25902         * doc/gnulib.texi: Include relocatable-maint.texi.
25903         * lib/progreloc.c: Include unistd.h unconditionally.
25904         * lib/relocwrapper.c: Include unistd.h unconditionally.
25905         Include c-ctype.h.
25906         (add_dotbin): Use c_tolower.
25907         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
25908         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
25909         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
25910         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
25911         to m4/relocatable-lib.m4.
25912         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
25913         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
25914         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
25915         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
25916         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
25917         * modules/relocatable: New file.
25918         * modules/relocatable-lib: New file.
25919         * modules/relocatable-script: New file.
25920
25921 2007-02-28  Bruno Haible  <bruno@clisp.org>
25922
25923         Import --enable-relocatable infrastructure.
25924         * build-aux/config.libpath: New file, from GNU gettext.
25925         * build-aux/install-reloc: New file, from GNU gettext.
25926         * build-aux/reloc-ldflags: New file, from GNU gettext.
25927         * lib/relocatable.h: New file, from GNU gettext.
25928         * lib/relocatable.c: New file, from GNU gettext.
25929         * lib/relocwrapper.c: New file, from GNU gettext.
25930         * m4/relocatable.m4: New file, from GNU gettext.
25931
25932 2007-02-28  Bruno Haible  <bruno@clisp.org>
25933
25934         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
25935
25936         * modules/xreadlink: New file, from GNU gettext with modifications.
25937         * lib/xreadlink.c: New file, from GNU gettext.
25938         * lib/xreadlink.h: Add comments.
25939         (xreadlink): New declaration.
25940
25941         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
25942         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
25943         lib/xreadlink-with-size.c.
25944         (configure.ac): Remove gl_XREADLINK invocation.
25945         (Makefile.am): Augment lib_SOURCES.
25946         * m4/xreadlink.m4: Remove file.
25947         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
25948         (xreadlink_with_size): Renamed from xreadink.
25949         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
25950         * modules/canonicalize (Depends-on): Replace xreadlink with
25951         xreadlink-with-size.
25952         * lib/canonicalize.c (canonicalize_filename_mode): Update.
25953
25954 2007-02-25  Jim Meyering  <jim@meyering.net>
25955
25956         * build-aux/announce-gen: When complaining about excess arguments,
25957         list them.
25958
25959 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25960
25961         * README: Document signed integer overflow situation more
25962         accurately.
25963
25964 2007-02-25  Bruno Haible  <bruno@clisp.org>
25965
25966         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
25967         'a' or 'A' conversion.
25968
25969 2007-02-25  Bruno Haible  <bruno@clisp.org>
25970
25971         * modules/filename: Renamed from modules/pathname.
25972         (Files): Replace lib/pathname.h with lib/filename.h. Replace
25973         lib/concatpath.c with lib/concat-filename.c.
25974         (Makefile.am): Update.
25975         (Include): Replace pathname.h with filename.h.
25976         * lib/filename.h: Renamed from lib/pathname.h.
25977         (concatenated_filename): Renamed from concatenated_pathname.
25978         * lib/concat-filename.c: Renamed from lib/concatpath.c.
25979         (concatenated_filename): Renamed from concatenated_pathname.
25980         * lib/findprog.c: Include filename.h instead of pathname.h.
25981         (find_in_path): Update.
25982         * lib/javacomp.c: Include filename.h instead of pathname.h.
25983         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
25984         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
25985         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
25986         is_oldgcj_14_13_usable, is_javac_usable): Update.
25987         * lib/javaexec.c: Include filename.h instead of pathname.h.
25988         (execute_java_class): Update.
25989         * modules/findprog: Update.
25990         * modules/javacomp: Update.
25991         * modules/javaexec: Update.
25992         * MODULES.html.sh (File system functions): Add 'filename', remove
25993         'pathname'.
25994
25995 2007-02-25  Bruno Haible  <bruno@clisp.org>
25996
25997         * modules/printf-frexpl-tests: New file.
25998         * tests/test-printf-frexpl.c: New file.
25999
26000         * modules/printf-frexpl: New file.
26001         * lib/printf-frexpl.h: New file.
26002         * lib/printf-frexpl.c: New file.
26003         * m4/printf-frexpl.m4: New file.
26004
26005 2007-02-25  Bruno Haible  <bruno@clisp.org>
26006
26007         * modules/printf-frexp-tests: New file.
26008         * tests/test-printf-frexp.c: New file.
26009
26010         * modules/printf-frexp: New file.
26011         * lib/printf-frexp.h: New file.
26012         * lib/printf-frexp.c: New file.
26013         * m4/printf-frexp.m4: New file.
26014
26015 2007-02-25  Bruno Haible  <bruno@clisp.org>
26016
26017         Assume automake >= 1.10 for the tests.
26018         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
26019         * modules/arctwo-tests: Likewise.
26020         * modules/argp-tests: Likewise.
26021         * modules/avltree-list-tests: Likewise.
26022         * modules/avltree-oset-tests: Likewise.
26023         * modules/avltreehash-list-tests: Likewise.
26024         * modules/carray-list-tests: Likewise.
26025         * modules/crc-tests: Likewise.
26026         * modules/des-tests: Likewise.
26027         * modules/gc-arcfour-tests: Likewise.
26028         * modules/gc-arctwo-tests: Likewise.
26029         * modules/gc-des-tests: Likewise.
26030         * modules/gc-hmac-md5-tests: Likewise.
26031         * modules/gc-hmac-sha1-tests: Likewise.
26032         * modules/gc-md2-tests: Likewise.
26033         * modules/gc-md4-tests: Likewise.
26034         * modules/gc-md5-tests: Likewise.
26035         * modules/gc-pbkdf2-sha1-tests: Likewise.
26036         * modules/gc-rijndael-tests: Likewise.
26037         * modules/gc-sha1-tests: Likewise.
26038         * modules/gc-tests: Likewise.
26039         * modules/getaddrinfo-tests: Likewise.
26040         * modules/hmac-md5-tests: Likewise.
26041         * modules/hmac-sha1-tests: Likewise.
26042         * modules/linked-list-tests: Likewise.
26043         * modules/linkedhash-list-tests: Likewise.
26044         * modules/lock-tests: Likewise.
26045         * modules/md2-tests: Likewise.
26046         * modules/md4-tests: Likewise.
26047         * modules/md5-tests: Likewise.
26048         * modules/rbtree-list-tests: Likewise.
26049         * modules/rbtree-oset-tests: Likewise.
26050         * modules/rbtreehash-list-tests: Likewise.
26051         * modules/read-file-tests: Likewise.
26052         * modules/rijndael-tests: Likewise.
26053         * modules/stdint-tests: Likewise.
26054         * modules/tls-tests: Likewise.
26055
26056 2007-02-24  Bruno Haible  <bruno@clisp.org>
26057
26058         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
26059         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
26060         function; instead check whether isnan with a double argument links.
26061         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
26062         function; instead check whether isnan with a 'long double' argument
26063         links.
26064         Reported by Eric Blake <ebb9@byu.net>.
26065
26066 2007-02-24  Bruno Haible  <bruno@clisp.org>
26067
26068         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
26069         defined.
26070         * lib/isnanl.c: Remove all code. Just include isnan.c.
26071         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
26072
26073 2007-02-25  Jim Meyering  <jim@meyering.net>
26074
26075         Avoid conflicting types for 'unsetenv' on FreeBSD.
26076         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
26077         conflicting with FreeBSD's (5.0 and 6.1) function declaration
26078         in stdlib.h.
26079
26080 2007-02-24  Bruno Haible  <bruno@clisp.org>
26081
26082         * modules/isnanl-nolibm-tests: New file.
26083         * tests/test-isnanl.c: New file.
26084
26085         * modules/isnanl-nolibm: New file.
26086         * lib/isnanl.h: New file.
26087         * lib/isnanl.c: New file.
26088         * m4/isnanl.m4: New file.
26089
26090 2007-02-24  Bruno Haible  <bruno@clisp.org>
26091
26092         * modules/isnan-nolibm-tests: New file.
26093         * tests/test-isnan.c: New file.
26094
26095         * modules/isnan-nolibm: New file.
26096         * lib/isnan.h: New file.
26097         * lib/isnan.c: New file.
26098         * m4/isnan.m4: New file.
26099
26100 2007-02-24  Bruno Haible  <bruno@clisp.org>
26101
26102         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
26103         assume that an exponent fits in 20 bits.
26104
26105 2007-02-24  Jim Meyering  <jim@meyering.net>
26106
26107         * m4/regex.m4: Update the description of the configure-time option,
26108         --without-included-regex, to state accurately what the defaults are,
26109         and perhaps to give people an idea why using this option is risky.
26110
26111 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26112
26113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
26114         loops on small arguments.  This attempts to avoid the problem
26115         Bruno Haible reported for AIX 4.3.2 in
26116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
26117
26118 2007-02-23  Bruno Haible  <bruno@clisp.org>
26119
26120         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
26121         Needed for help2man.
26122
26123 2007-02-23  Karl Berry  <karl@gnu.org>
26124
26125         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
26126         exists, foo.h should be cvs-ignored, not committed.
26127
26128 2007-02-23  Eric Blake  <ebb9@byu.net>
26129
26130         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
26131         * lib/stat-time.h (includes): Likewise.
26132         * lib/utimecmp.c (includes): Likewise.
26133         * lib/utimens.h (includes): Likewise.
26134         * lib/getdate.y (includes): Also include "timespec.h" for use
26135         internal to the module.
26136         * modules/utimens (Depends-on): Revert yesterday's patch.
26137         * modules/nanosleep (Depends-on): Add missing dependency.
26138
26139 2007-02-22  Bruno Haible  <bruno@clisp.org>
26140
26141         * lib/glob.c: Don't include getlogin_r.h.
26142
26143 2007-02-22  Jim Meyering  <jim@meyering.net>
26144
26145         * modules/utimens (Depends-on): Add timespec, required for
26146         utimens.h's inclusion of timespec.h.
26147
26148 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26149
26150         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
26151         long unreadable paths in GNU/Linux.  Problem reported by Andreas
26152         Schwab in
26153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
26154         I'll try to think of a better way to fix the Solaris problem.
26155
26156         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
26157         like glibc; on Solaris 10, it fails with errno == EINVAL.
26158         POSIX says the behavior is unspecified if the first argument is NULL,
26159         so play it safe and never pass NULL to the system getcwd.
26160
26161 2007-02-21  Jim Meyering  <jim@meyering.net>
26162
26163         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
26164         of gettimeofday.  It would conflict with the one now always
26165         provided via sys_time_.h.  Reported by Matthew Woehlke, as
26166         an IRIX 6.5 build failure.
26167
26168 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26169
26170         Minor fixups to port to Solaris 10 with Sun C 5.8.
26171         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
26172         * modules/getcwd (Depends-on): Add dirfd.
26173         * lib/putenv.c (putenv): #undef it.
26174         (rpl_putenv): New decl.
26175         (malloc, free): Include <stdlib.h> rather than prototyping separately.
26176
26177 2007-02-20  Bruno Haible  <bruno@clisp.org>
26178
26179         * modules/stdio-tests: New file.
26180         * tests/test-stdio.c: New file.
26181
26182         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
26183         (Depends-on): Add stdio.
26184         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26185         (Include): Use <stdio.h> instead of vsnprintf.h.
26186         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26187         HAVE_DECL_VSNPRINTF.
26188         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
26189
26190         * modules/snprintf (Files): Remove lib/snprintf.h.
26191         (Depends-on): Add stdio.
26192         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26193         (Include): Use <stdio.h> instead of snprintf.h.
26194         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26195         HAVE_DECL_SNPRINTF.
26196         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
26197         * lib/getaddrinfo.c: Likewise.
26198
26199         * modules/stdio: New file.
26200         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
26201         * lib/snprintf.h: Remove file.
26202         * lib/vsnprintf.h: Remove file.
26203         * lib/.cppi-disable: Remove snprintf.h.
26204         * m4/stdio_h.m4: New file.
26205         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
26206
26207 2007-02-20  Jim Meyering  <jim@meyering.net>
26208
26209         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
26210         used by e.g., mingw.  From Bruno Haible.
26211
26212 2007-02-19  Bruno Haible  <bruno@clisp.org>
26213
26214         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
26215         warnings.
26216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26217
26218 2007-02-19  Bruno Haible  <bruno@clisp.org>
26219
26220         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
26221         from mingw users.
26222
26223 2007-02-19  Bruno Haible  <bruno@clisp.org>
26224
26225         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
26226         warnings.
26227         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
26228
26229 2007-02-19  Jim Meyering  <jim@meyering.net>
26230
26231         Don't use FD after a successful "fdopendir (fd)".
26232         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
26233         Reset it by calling dirfd on the just-obtained DIR*.
26234
26235         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
26236         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
26237
26238 2007-02-18  Bruno Haible  <bruno@clisp.org>
26239
26240         * lib/readlink.c: Include <unistd.h>.
26241         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
26242         HAVE_READLINK.
26243         * modules/readlink (Depends-on): Add unistd.
26244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26245         (Include): Add <unistd.h>.
26246
26247         * lib/getlogin_r.h: Remove file.
26248         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
26249         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
26250         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
26251         HAVE_DECL_GETLOGIN_R.
26252         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
26253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26254         (Include): Use <unistd.h> instead of getlogin_r.h.
26255
26256         * lib/getcwd.h: Remove file.
26257         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
26258         * lib/xgetcwd.c: Likewise.
26259         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
26260         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
26261         * modules/getcwd (Files): Remove lib/getcwd.h.
26262         (Depends-on): Add unistd.
26263         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26264         (Include): Use <unistd.h> instad of getcwd.h.
26265
26266         * lib/ftruncate.c: Include <unistd.h> first.
26267         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
26268         Set HAVE_FTRUNCATE.
26269         * modules/ftruncate (Depends-on): Add unistd.
26270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26271
26272         * lib/fchdir.c: Include <unistd.h> first.
26273         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
26274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
26275         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
26276         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26277         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
26278
26279         * lib/dup2.c: Include <unistd.h> first.
26280         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
26281         HAVE_DUP2.
26282         * modules/dup2 (Depends-on): Add unistd.
26283         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26284
26285         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
26286         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
26287         REPLACE_CHOWN. Don't define chown as a macro here.
26288         * modules/chown (Depends-on): Add unistd.
26289         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26290
26291         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
26292         Add definition for GL_LINK_WARNING.
26293         (chown, dup2): New declarations.
26294         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
26295         link warning.
26296         (ftruncate): New declaration.
26297         (getcwd): New declaration, taken from old getcwd.h.
26298         (getlogin_r): New declaration, taken from old getlogin_r.h.
26299         (readlink): New declaration.
26300         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
26301         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
26302         (gl_PREREQ_UNISTD): Remove macro.
26303         (gl_UNISTD_MODULE_INDICATOR): New macro.
26304         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
26305         many new variables. Don't set UNISTD_H.
26306         * modules/unistd (Description): Change.
26307         (Depends-on): Add link-warning.
26308         (configure.ac): Update.
26309         (Makefile.am): Create unistd.h always. Substitute many new variables
26310         into it.
26311
26312 2007-02-18  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
26315         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
26316         HAVE_GETSUBOPT.
26317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
26318         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
26319         * lib/getsubopt.h: Remove file.
26320         * modules/getsubopt (Files): Remove lib/getsubopt.h.
26321         (Depends-on): Add stdlib.
26322         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26323         (Includes): Use <stdlib.h> instead of getsubopt.h.
26324         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
26325         Set HAVE_GETSUBOPT.
26326         * lib/getsubopt.c: Don't include getsubopt.h.
26327
26328 2007-02-18  Bruno Haible  <bruno@clisp.org>
26329
26330         * modules/fchdir (Depends-on): Add dup2.
26331
26332 2007-02-18  Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/stdlib_.h: Handle glibc's special invocation convention
26335         specially.
26336
26337 2007-02-18  Bruno Haible  <bruno@clisp.org>
26338
26339         * modules/stdlib-tests: New file.
26340         * tests/test-stdlib.c: New file.
26341
26342         * modules/mkstemp (Files): Remove lib/mkstemp.h.
26343         (Depends-on): Add stdlib.
26344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26345         (Includes): Use <stdlib.h> instead of mkstemp.h.
26346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
26347         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
26348         * lib/mkstemp.c: Don't include mkstemp.h.
26349         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
26350         * lib/stdlib--.h: Don't include mkstemp.h.
26351
26352         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
26353         (Depends-on): Add stdlib.
26354         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26355         (Includes): Use <stdlib.h> instead of mkdtemp.h.
26356         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
26357         HAVE_MKDTEMP.
26358         * lib/mkdtemp.c: Don't include mkdtemp.h.
26359         * lib/clean-temp.c: Don't include mkdtemp.h.
26360
26361         * modules/exit (Files): Remove lib/exit.h.
26362         (Depends-on): Add stdlib.
26363         (Makefile.am): Remove lib_SOURCES.
26364         (Include): Use <stdlib.h> instead of exit.h.
26365         * lib/argmatch.c: Don't include exit.h.
26366         * lib/execute.c: Likewise.
26367         * lib/pagealign_alloc.c: Likewise.
26368         * lib/pipe.c: Likewise.
26369         * lib/wait-process.c: Likewise.
26370         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
26371         * lib/exitfail.c: Likewise.
26372         * lib/savewd.c: Likewise.
26373         * lib/xsetenv.c: Likewise.
26374
26375         * modules/stdlib: New file.
26376         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
26377         and extra comments about mkstemp().
26378         * lib/exit.h: Remove file.
26379         * lib/mkdtemp.h: Remove file.
26380         * lib/mkstemp.h: Remove file.
26381         * m4/stdlib_h.m4: New file.
26382         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
26383
26384 2007-02-18  Bruno Haible  <bruno@clisp.org>
26385
26386         * modules/math-tests: New file.
26387         * tests/test-math.c: New file.
26388
26389         * modules/math: New file.
26390         * modules/mathl (Files): Remove lib/mathl.h.
26391         (Depends-on): Add math.
26392         (Makefile.am): Don't mention mathl.h.
26393         (Include): Use <math.h> instead of mathl.h.
26394         * lib/math_.h: New file.
26395         * lib/mathl.h: Remove file.
26396         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
26397         mathl.h.
26398         * lib/asinl.c: Likewise.
26399         * lib/atanl.c: Likewise.
26400         * lib/ceill.c: Likewise.
26401         * lib/cosl.c: Likewise.
26402         * lib/expl.c: Likewise.
26403         * lib/floorl.c: Likewise.
26404         * lib/frexpl.c: Likewise.
26405         * lib/ldexpl.c: Likewise.
26406         * lib/logl.c: Likewise.
26407         * lib/sincosl.c: Likewise.
26408         * lib/sinl.c: Likewise.
26409         * lib/sqrtl.c: Likewise.
26410         * lib/tanl.c: Likewise.
26411         * lib/trigl.c: Likewise.
26412         * m4/math_h.m4: New file.
26413         * MODULES.html.sh (Mathematics): Add math.
26414
26415 2007-02-17  Bruno Haible  <bruno@clisp.org>
26416
26417         * modules/wctype-tests: New file.
26418         * tests/test-wctype.c: New file.
26419
26420         * modules/wchar-tests: New file.
26421         * tests/test-wchar.c: New file.
26422
26423         * modules/unistd-tests: New file.
26424         * tests/test-unistd.c: New file.
26425
26426         * modules/time-tests: New file.
26427         * tests/test-time.c: New file.
26428
26429         * modules/sysexits-tests: New file.
26430         * tests/test-sysexits.c: New file.
26431
26432         * modules/sys_time-tests: New file.
26433         * tests/test-sys_time.c: New file.
26434
26435         * modules/sys_stat-tests: New file.
26436         * tests/test-sys_stat.c: New file.
26437
26438         * modules/sys_socket-tests: New file.
26439         * tests/test-sys_socket.c: New file.
26440
26441         * modules/sys_select-tests: New file.
26442         * tests/test-sys_select.c: New file.
26443
26444         * modules/string-tests: New file.
26445         * tests/test-string.c: New file.
26446
26447         * modules/stdbool-tests: New file.
26448         * tests/test-stdbool.c: New file.
26449
26450         * modules/netinet_in-tests: New file.
26451         * tests/test-netinet_in.c: New file.
26452
26453         * modules/inttypes-tests: New file.
26454         * tests/test-inttypes.c: New file.
26455
26456         * modules/fcntl-tests: New file.
26457         * tests/test-fcntl.c: New file.
26458
26459         * modules/byteswap-tests: New file.
26460         * tests/test-byteswap.c: New file.
26461
26462         * modules/arpa_inet-tests: New file.
26463         * tests/test-arpa_inet.c: New file.
26464
26465 2007-02-17  Bruno Haible  <bruno@clisp.org>
26466
26467         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
26468         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
26469         if the corresponding module is not enabled. Emit link warnings if
26470         the function is used nevertheless.
26471         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
26472         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
26473         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
26474         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
26475         * modules/inttypes (Depends-on): Add link-warning.
26476         (Makefile.am): Copy the contents of build-aux/link-warning.h into
26477         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
26478         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
26479         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
26480         * modules/imaxdiv (configure.ac): Likewise.
26481         * modules/strtoimax (configure.ac): Likewise.
26482         * modules/strtoumax (configure.ac): Likewise.
26483
26484 2007-02-17  Bruno Haible  <bruno@clisp.org>
26485
26486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
26487         gl_STRING_MODULE_INDICATOR_DEFAULTS.
26488         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
26489         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
26490
26491 2007-02-17  Bruno Haible  <bruno@clisp.org>
26492
26493         * modules/link-warning: New file.
26494         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
26495         * lib/string_.h (GL_LINK_WARNING): Remove definition.
26496         * modules/string (Depends-on): Add link-warning.
26497         (Makefile.am): Copy the contents of build-aux/link-warning.h into
26498         string.h.
26499         * MODULES.html.sh (Support for building libraries and executables): Add
26500         link-warning.
26501
26502 2007-02-17  Bruno Haible  <bruno@clisp.org>
26503
26504         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
26505         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
26506         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
26507         long lines.
26508
26509 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
26510             Bruno Haible  <bruno@clisp.org>
26511
26512         * modules/tmpfile: New file.
26513         * lib/tmpfile.c: New file.
26514         * m4/tmpfile.m4: New file.
26515         * MODULES.html.sh (func_all_modules): New section "Input/output".
26516
26517 2007-02-15  Bruno Haible  <bruno@clisp.org>
26518
26519         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
26520         (supports_delete_on_close): New function.
26521         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
26522
26523 2007-02-14  Bruno Haible  <bruno@clisp.org>
26524
26525         * modules/mbspcasecmp-tests: New file.
26526         * tests/test-mbspcasecmp.sh: New file.
26527         * tests/test-mbspcasecmp.c: New file.
26528
26529         New module mbspcasecmp.
26530         * modules/mbspcasecmp: New file.
26531         * lib/mbspcasecmp.c: New file.
26532         * lib/string_.h (strncasecmp): Change warning message.
26533         (mbspcasecmp): New declaration.
26534         * m4/mbspcasecmp.m4: New file.
26535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26536         GNULIB_MBSPCASECMP.
26537         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
26538         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
26539
26540 2007-02-14  Bruno Haible  <bruno@clisp.org>
26541
26542         * modules/mbsncasecmp-tests: New file.
26543         * tests/test-mbsncasecmp.sh: New file.
26544         * tests/test-mbsncasecmp.c: New file.
26545
26546         New module mbsncasecmp.
26547         * modules/mbsncasecmp: New file.
26548         * lib/mbsncasecmp.c: New file.
26549         * lib/string_.h (mbsncasecmp): New declaration.
26550         * m4/mbsncasecmp.m4: New file.
26551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26552         GNULIB_MBSNCASECMP.
26553         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
26554         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
26555
26556 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26557
26558         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
26559         Verify that it doesn't overlap with our flags.
26560         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
26561         do not have the desired effect in multibyte locales; instead, use
26562         mbscasecmp.
26563         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
26564         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
26565         we don't require GNU fnmatch ourselves (if our users require it, they
26566         should do so explicitly).
26567
26568         Fix regex code so it doesn't rely on strcasecmp.
26569         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
26570         Otherwise, include gnulib's langinfo.h.
26571         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
26572         undesirable behavior in non-C locales.  Instead, rely on localecharset.
26573         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
26574         * modules/regex (FILES): Remove m4/codeset.m4.
26575         (Depends-on): Add localcharset.  Remove strcase.
26576
26577 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26578
26579         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
26580         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26581
26582 2007-02-13  Bruno Haible  <bruno@clisp.org>
26583
26584         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
26585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26586
26587 2007-02-12  Bruno Haible  <bruno@clisp.org>
26588
26589         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26590         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
26591         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
26592         time warning rather than a link error.
26593
26594 2007-02-12  Bruno Haible  <bruno@clisp.org>
26595
26596         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
26597         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26598         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26599
26600 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26601
26602         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
26603         args, not 2.
26604
26605 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26606
26607         New module 'time', so that apps can include <time.h> as per
26608         POSIX and GNU instead of separate include files like time_r.h
26609         and timegm.h.  This implementation tries out a simpler approach
26610         for replacing decls in standard include files (as compared to
26611         the string module), somewhat as an experiment.
26612
26613         * config/srclist.txt: Comment out mktime.c for now.
26614         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
26615         since it doesn't apply any more.  Use generic wording instead.
26616         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
26617         'time'.
26618         * lib/time_.h, m4/time_h.m4, modules/time: New files.
26619         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
26620         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
26621         Don't include <sys/types.h>; no longer needed since we assume C89.
26622         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
26623         * lib/strftime.c: Likewise.
26624         * lib/time_r.c: Likewise.
26625         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
26626         * lib/nanosleep.c: Include <time.h> first, to check interface.
26627         * lib/strptime.c: Likewise.
26628         * lib/time_r.c: Likewise.
26629         * lib/timegm.c: Likewise.
26630         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
26631         needed.
26632         * lib/timegm.c: Don't include timegm.h; no longer needed.
26633         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
26634         time.h now handles any problems in that area.
26635         (struct timespec, nanosleep): Remove; time.h now arranges for these.
26636         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
26637         that time.h defines struct timespec.
26638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
26639         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
26640         handles that.
26641         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
26642         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
26643         needed.  Set REPLACE_LOCALTIME.
26644         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
26645         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
26646         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
26647         nanosleep; time_h.m4 now does that.  Don't require
26648         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
26649         module handles this now.
26650         * modules/getdate (Depends-on): Remove timespec.  Add time.
26651         * modules/nanosleep (Depends-on): Likewise.
26652         * modules/stat-time (Depends-on): Likewise.
26653         * modules/nanosleep (Include): Include time.h, not timespec.h.
26654         * modules/strptime (Files): Remove lib/strptime.h.
26655         (Depends-on): Add extensions, time.
26656         (Include): Include time.h, not strptime.h.
26657         * modules/time_r (Files): Remove lib/time_r.h.
26658         (Depends-on): Add time.
26659         (Include): Include time.h, not time_r.h.
26660         * modules/timegm: Likewise.
26661         * modules/timespec (Description): Now does timespec-related decls
26662         of our own, instead of struct timespec itself.
26663         (Depends-on): Add time; remove extensions.
26664         (Maintainer): Add self.
26665         * modules/utimecmp (Depends-on): Add time; remove timespec.
26666         * modules/utimens (Depends-on): Likewise.
26667         * modules/xnanosleep (Depends-on): Likewise.
26668
26669 2007-02-11  Bruno Haible  <bruno@clisp.org>
26670
26671         * lib/c-strstr.c: Include allocsa.h.
26672         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26673         * lib/c-strcasestr.c: Include allocsa.h.
26674         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26675         * lib/strcasestr.c: Include allocsa.h.
26676         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26677         * lib/mbsstr.c: Include allocsa.h.
26678         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26679         allocsa/freesa instead of malloc/free.
26680         * lib/mbscasestr.c: Include allocsa.h.
26681         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26682         allocsa/freesa instead of malloc/free.
26683         * modules/c-strstr (Depends-on): Add allocsa.
26684         * modules/c-strcasestr (Depends-on): Likewise.
26685         * modules/strcasestr (Depends-on): Likewise.
26686         * modules/mbsstr (Depends-on): Likewise.
26687         * modules/mbscasestr (Depends-on): Likewise.
26688
26689 2007-02-11  Bruno Haible  <bruno@clisp.org>
26690
26691         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
26692
26693         * modules/mbsspn-tests: New file.
26694         * tests/test-mbsspn.sh: New file.
26695         * tests/test-mbsspn.c: New file.
26696
26697 2007-02-11  Bruno Haible  <bruno@clisp.org>
26698
26699         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
26700
26701         * modules/mbspbrk-tests: New file.
26702         * tests/test-mbspbrk.sh: New file.
26703         * tests/test-mbspbrk.c: New file.
26704
26705 2007-02-11  Bruno Haible  <bruno@clisp.org>
26706
26707         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
26708         unneeded cast.
26709
26710         * modules/mbscspn-tests: New file.
26711         * tests/test-mbscspn.sh: New file.
26712         * tests/test-mbscspn.c: New file.
26713
26714 2007-02-11  Bruno Haible  <bruno@clisp.org>
26715
26716         * modules/mbscasecmp-tests: New file.
26717         * tests/test-mbscasecmp.sh: New file.
26718         * tests/test-mbscasecmp.c: New file.
26719
26720 2007-02-11  Bruno Haible  <bruno@clisp.org>
26721
26722         Ensure O(n) worst-case complexity of mbscasestr.
26723         * lib/mbscasestr.c: Include stdbool.h.
26724         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26725         functions.
26726         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
26727         the bookkeeping indicates that it's worth it.
26728         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
26729
26730         * modules/mbscasestr-tests: New file.
26731         * tests/test-mbscasestr1.c: New file.
26732         * tests/test-mbscasestr2.sh: New file.
26733         * tests/test-mbscasestr2.c: New file.
26734         * tests/test-mbscasestr3.sh: New file.
26735         * tests/test-mbscasestr3.c: New file.
26736         * tests/test-mbscasestr4.sh: New file.
26737         * tests/test-mbscasestr4.c: New file.
26738         * m4/locale-tr.m4: New file.
26739
26740 2007-02-11  Bruno Haible  <bruno@clisp.org>
26741
26742         Ensure O(n) worst-case complexity of mbsstr.
26743         * lib/mbsstr.c: Include stdbool.h.
26744         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26745         functions.
26746         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
26747         bookkeeping indicates that it's worth it.
26748         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
26749
26750         * modules/mbsstr-tests: New file.
26751         * tests/test-mbsstr1.c: New file.
26752         * tests/test-mbsstr2.sh: New file.
26753         * tests/test-mbsstr2.c: New file.
26754         * tests/test-mbsstr3.sh: New file.
26755         * tests/test-mbsstr3.c: New file.
26756         * m4/locale-fr.m4: New file.
26757
26758 2007-02-11  Bruno Haible  <bruno@clisp.org>
26759
26760         * lib/mbsrchr.c (mbsrchr): Fix bug.
26761
26762         * modules/mbsrchr-tests: New file.
26763         * tests/test-mbsrchr.sh: New file.
26764         * tests/test-mbsrchr.c: New file.
26765
26766 2007-02-11  Bruno Haible  <bruno@clisp.org>
26767
26768         * lib/mbschr.c (mbschr): Fix bug.
26769
26770         * modules/mbschr-tests: New file.
26771         * tests/test-mbschr.sh: New file.
26772         * tests/test-mbschr.c: New file.
26773         * m4/locale-zh.m4: New file.
26774
26775 2007-02-11  Bruno Haible  <bruno@clisp.org>
26776
26777         Support for copying multibyte string iterators.
26778         * lib/mbiter.h: Include <string.h>.
26779         (mbiter_multi_copy): New function.
26780         (mbi_copy): New macro.
26781         * lib/mbuiter.h: Include <string.h>.
26782         (mbuiter_multi_copy): New function.
26783         (mbui_copy): New macro.
26784
26785 2007-02-11  Bruno Haible  <bruno@clisp.org>
26786
26787         New module mbslen.
26788         * modules/mbslen: New file.
26789         * lib/mbslen.c: New file.
26790         * lib/string_.h (mbslen): New declaration.
26791         * m4/mbslen.m4: New file.
26792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26793         GNULIB_MBSLEN.
26794         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
26795         * MODULES.html.sh (Internationalization functions): Add mbslen.
26796
26797 2007-02-11  Bruno Haible  <bruno@clisp.org>
26798
26799         Ensure O(n) worst-case complexity of strcasestr substitute.
26800         * lib/strcasestr.c: Include stdbool.h.
26801         (knuth_morris_pratt): New function.
26802         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26803         bookkeeping indicates that it's worth it.
26804         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
26805
26806         * modules/strcasestr-tests: New file.
26807         * tests/test-strcasestr.c: New file.
26808
26809 2007-02-11  Bruno Haible  <bruno@clisp.org>
26810
26811         Ensure O(n) worst-case complexity of c_strcasestr.
26812         * lib/c-strcasestr.c: Include stdbool.h, string.h.
26813         (knuth_morris_pratt): New function.
26814         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
26815         the bookkeeping indicates that it's worth it.
26816         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
26817
26818         * modules/c-strcasestr-tests: New file.
26819         * tests/test-c-strcasestr.c: New file.
26820
26821 2007-02-11  Bruno Haible  <bruno@clisp.org>
26822
26823         Ensure O(n) worst-case complexity of c_strstr.
26824         * lib/c-strstr.c: Include stdbool.h, string.h.
26825         (knuth_morris_pratt): New function.
26826         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26827         bookkeeping indicates that it's worth it.
26828         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
26829
26830         * lib/c-strstr.c: Complete rewrite for maintainability.
26831
26832         * modules/c-strstr-tests: New file.
26833         * tests/test-c-strstr.c: New file.
26834
26835 2007-02-11  Bruno Haible  <bruno@clisp.org>
26836
26837         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
26838         5.2.1 and earlier, whereby \055 was treated just like the range
26839         delimiter '-'.
26840         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26841
26842 2007-02-08  Bruno Haible  <bruno@clisp.org>
26843
26844         * modules/regex (Depends-on): Add stdbool.
26845         Reported by Dalibor Topic <robilad@kaffe.org>.
26846
26847 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26848
26849         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
26850         Prefer returning from main to exiting from it.
26851         Remove unnecessary parens after sizeof.
26852
26853 2007-02-05  Bruno Haible  <bruno@clisp.org>
26854
26855         New module mbssep.
26856         * modules/mbssep: New file.
26857         * lib/mbssep.c: New file.
26858         * lib/string_.h (strsep): Add a conditional link warning.
26859         (mbssep): New declaration.
26860         * m4/mbssep.m4: New file.
26861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26862         GNULIB_MBSSEP.
26863         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
26864         * MODULES.html.sh (Internationalization functions): Add mbssep.
26865
26866 2007-02-05  Bruno Haible  <bruno@clisp.org>
26867
26868         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
26869         Optimize search in case of 1 delimiter.
26870
26871 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26872
26873         * lib/acl.h: Include sys/types.h before sys/acl.h.
26874
26875 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
26876
26877         Merge upstream fix for glibc bugzilla #3957:
26878
26879         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
26880
26881         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
26882         bit for RE_HAT_LISTS_NOT_NEWLINE.
26883         (build_charclass_op): Remove bogus comment.
26884
26885 2007-02-05  Simon Josefsson  <simon@josefsson.org>
26886
26887         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
26888
26889 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26890
26891         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
26892         * lib/memmem.c [!defined _LIBC]: Include config.h.
26893
26894 2007-02-04  Bruno Haible  <bruno@clisp.org>
26895
26896         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
26897         warning message.
26898
26899 2007-02-04  Bruno Haible  <bruno@clisp.org>
26900
26901         New module mbstok_r.
26902         * modules/mbstok_r: New file.
26903         * lib/mbstok_r.c: New file.
26904         * lib/string_.h (strtok_r): Change argument names to match the
26905         comments. Add a conditional link warning.
26906         (mbstok_r): New declaration.
26907         * m4/mbstok_r.m4: New file.
26908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26909         GNULIB_MBSTOK_R.
26910         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
26911         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
26912
26913 2007-02-04  Bruno Haible  <bruno@clisp.org>
26914
26915         New module mbsspn.
26916         * modules/mbsspn: New file.
26917         * lib/mbsspn.c: New file.
26918         * lib/string_.h (strspn): Add a conditional link warning.
26919         (mbsspn): New declaration.
26920         * m4/mbsspn.m4: New file.
26921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26922         GNULIB_MBSSPN.
26923         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
26924         * MODULES.html.sh (Internationalization functions): Add mbsspn.
26925
26926 2007-02-04  Bruno Haible  <bruno@clisp.org>
26927
26928         New module mbspbrk.
26929         * modules/mbspbrk: New file.
26930         * lib/mbspbrk.c: New file.
26931         * lib/string_.h (strpbrk): Add a conditional link warning.
26932         (mbspbrk): New declaration.
26933         * m4/mbspbrk.m4: New file.
26934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26935         GNULIB_MBSPBRK.
26936         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
26937         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
26938
26939 2007-02-04  Bruno Haible  <bruno@clisp.org>
26940
26941         New module mbscspn.
26942         * modules/mbscspn: New file.
26943         * lib/mbscspn.c: New file.
26944         * lib/string_.h (strcspn): Add a conditional link warning.
26945         (mbscspn): New declaration.
26946         * m4/mbscspn.m4: New file.
26947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26948         GNULIB_MBSCSPN.
26949         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
26950         * MODULES.html.sh (Internationalization functions): Add mbscspn.
26951
26952 2007-02-04  Bruno Haible  <bruno@clisp.org>
26953
26954         New module mbscasestr, reduced goal of strcasestr.
26955         * modules/mbscasestr: New file.
26956         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
26957         (mbscasestr): Renamed from strcasestr.
26958         * lib/strcasestr.c: Don't include mbuiter.h.
26959         (strcasestr): Remove support for multibyte locales.
26960         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
26961         Change the conditional link warning.
26962         (mbscasestr): New declaration.
26963         * m4/mbscasestr.m4: New file.
26964         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
26965         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
26966         REPLACE_STRCASESTR.
26967         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
26968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26969         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26970         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
26971         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
26972         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
26973         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
26974         (Depends-on): Remove mbuiter.
26975         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
26976
26977 2007-02-04  Bruno Haible  <bruno@clisp.org>
26978
26979         Simplify handling of strncasecmp.
26980         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
26981         the conditional link warning.
26982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26983         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
26984         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
26985         * modules/strcase (configure.ac): Don't invoke
26986         gl_STRING_MODULE_INDICATOR.
26987         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
26988
26989 2007-02-04  Bruno Haible  <bruno@clisp.org>
26990
26991         New module mbscasecmp, reduced goal of strcasecmp.
26992         * modules/mbscasecmp: New file.
26993         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
26994         (mbscasecmp): Renamed from strcasecmp.
26995         * lib/strcasecmp.c: Don't include mbuiter.h.
26996         (strcasecmp): Remove support for multibyte locales.
26997         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
26998         Change the conditional link warning.
26999         (mbscasecmp): New declaration.
27000         * m4/mbscasecmp.m4: New file.
27001         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
27002         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
27003         REPLACE_STRCASECMP.
27004         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
27005         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27006         GNULIB_MBSCASECMP.
27007         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
27008         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
27009         * modules/strcase (Files): Remove m4/mbrtowc.m4.
27010         (Depends-on): Remove mbuiter.
27011         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
27012
27013 2007-02-04  Bruno Haible  <bruno@clisp.org>
27014
27015         New module mbsstr. Remove module strstr.
27016         * modules/mbsstr: New file.
27017         * modules/strstr: Remove file.
27018         * lib/mbsstr.c: Renamed from lib/strstr.c.
27019         (mbsstr): Renamed from strstr.
27020         * lib/string_.h (strstr): Remove declaration. Change the conditional
27021         link warning.
27022         (mbsstr): New declaration.
27023         * m4/mbsstr.m4: New file.
27024         * m4/strstr.m4: Remove file.
27025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27026         REPLACE_STRSTR.
27027         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
27028         Don't initialize GNULIB_STRSTR.
27029         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
27030         substitute GNULIB_STRSTR and REPLACE_STRSTR.
27031         * MODULES.html.sh (Internationalization functions): Add mbsstr.
27032         (Support for systems lacking ANSI C 89): Remove strstr.
27033
27034 2007-02-04  Bruno Haible  <bruno@clisp.org>
27035
27036         New module mbsrchr.
27037         * modules/mbsrchr: New file.
27038         * lib/mbsrchr.c: New file.
27039         * lib/string_.h (strrchr): Add a conditional link warning.
27040         (mbsrchr): New declaration.
27041         * m4/mbsrchr.m4: New file.
27042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27043         GNULIB_MBSRCHR.
27044         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
27045         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
27046
27047 2007-02-04  Bruno Haible  <bruno@clisp.org>
27048
27049         New module mbschr.
27050         * modules/mbschr: New file.
27051         * lib/mbschr.c: New file.
27052         * lib/string_.h (strchr): Add a conditional link warning.
27053         (mbschr): New declaration.
27054         * m4/mbschr.m4: New file.
27055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27056         GNULIB_MBSCHR.
27057         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
27058         * MODULES.html.sh (Internationalization functions): Add mbschr.
27059
27060 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27061
27062         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
27063
27064         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
27065
27066 2007-02-04  Bruno Haible  <bruno@clisp.org>
27067
27068         New module description section 'configure.ac-early'.
27069         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
27070         (func_get_autoconf_early_snippet): New function.
27071         (func_import, func_create_testdir): Use it. Remove special cases for
27072         modules 'extensions' and 'lock'.
27073         * modules/extensions (configure.ac-early): Require
27074         gl_USE_SYSTEM_EXTENSIONS.
27075         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
27076
27077 2007-02-04  Bruno Haible  <bruno@clisp.org>
27078
27079         Make use of gcj-4.3's -fsource and -ftarget option.
27080         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
27081         and if so try the options -fsource and -ftarget.
27082         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
27083         source_version, ftarget_option, target_version arguments.
27084         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
27085         (is_envjavac_oldgcj_14_14_usable): Renamed from
27086         is_envjavac_gcj_14_14_usable.
27087         (is_envjavac_oldgcj_14_13_usable): Renamed from
27088         is_envjavac_gcj_14_13_usable.
27089         (is_gcj_present): Update.
27090         (is_gcj_43, is_gcj43_usable): New functions.
27091         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
27092         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
27093         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
27094         try the options -fsource and -ftarget.
27095
27096 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
27099         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
27100         larger value.
27101
27102 2007-02-03  Jim Meyering  <jim@meyering.net>
27103
27104         Give tools a better chance to allocate space for very large buffers.
27105         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
27106
27107         Make pwd and readlink work also when run with an unreadable parent dir
27108         on systems with openat support.
27109         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
27110         provided getcwd function, even when we have openat support.
27111         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
27112
27113 2007-02-02  Bruno Haible  <bruno@clisp.org>
27114
27115         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27116         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
27117         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
27118         portability problems if one of these functions is only used on specific
27119         platforms.
27120         Reported by Paul Eggert.
27121
27122 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27123
27124         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
27125         is causing more trouble than it's curing.
27126         * lib/regex_internal.h (__mempcpy): Remove.
27127         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
27128         (and make the code a tad smaller to boot).
27129         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
27130
27131 2007-02-02  Jim Meyering  <jim@meyering.net>
27132
27133         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
27134         section, not in the Makefile.am: one.
27135
27136 2007-02-02  Eric Blake  <ebb9@byu.net>
27137
27138         * lib/strchrnul.c: Always include config.h first.
27139
27140         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
27141         gnulib strstr is not necessary here.
27142
27143 2007-02-02  Simon Josefsson  <simon@josefsson.org>
27144
27145         * m4/socklen.m4: Fix typo.
27146
27147 2007-02-02  Eric Blake  <ebb9@byu.net>
27148
27149         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
27150         * modules/netinet_in (Makefile.am): Likewise.
27151
27152 2007-02-01  Bruno Haible  <bruno@clisp.org>
27153
27154         * lib/string_.h (GL_LINK_WARNING): New macro.
27155         (strcasecmp, strstr, strcasestr): If provided by the system,
27156         conditionally define as a macro that leads to a warning instead of to
27157         an error.
27158         (strncasecmp): Conditionally define as a macro that leads to a warning.
27159
27160 2007-02-01  Karl Berry  <karl@gnu.org>
27161
27162         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
27163
27164 2007-02-01  Bruno Haible  <bruno@clisp.org>
27165
27166         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
27167         renamings.
27168
27169 2007-02-01  Eric Blake  <ebb9@byu.net>
27170
27171         * modules/regex (Depends-on): Revert dependence on mempcpy.
27172         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
27173         module's definition of mempcpy.
27174         Reported by Paul Eggert.
27175
27176 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27177
27178         * lib/string_.h: If the gnulib module XYZ is not present, undefine
27179         the symbol XYZ before redefining it.  This fixes a problem with
27180         programs that don't use XYZ, when compiled on systems that define
27181         XYZ to something else.
27182
27183 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27184
27185         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
27186         occurs when "mkdir -m foo" creates a setgid directory that is (1)
27187         writeable to group or other and (2) is intended to have a special
27188         mode bit that is set or cleared.  In such a case, the directory
27189         should be neither group- nor other-writeable until the special
27190         mode bits are right.
27191
27192 2007-01-31  Eric Blake  <ebb9@byu.net>
27193
27194         * modules/mountlist (Depends-on): Add strstr.
27195
27196         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
27197         bug.
27198         * modules/string (Makefile.am): Remove redundant replacement.
27199         * modules/regex (Depends-on): Add mempcpy.
27200
27201 2007-01-31  Bruno Haible  <bruno@clisp.org>
27202
27203         New module description field 'Link'.
27204         * gnulib-tool (func_usage): Document --extract-link-directive.
27205         (sed_extract_prog): Recognize 'Link' directive.
27206         (func_get_link_directive): New function.
27207         (func_import): Show summary of link directives.
27208         Handle --extract-link-directive option.
27209         * modules/acl (Link): New section.
27210         * modules/clock-time (Link): New section.
27211         * modules/euidaccess (Link): New section.
27212         * modules/gettext (Link): New section.
27213         * modules/iconv (Link): New section.
27214         * modules/lock (Link): New section.
27215         * modules/nanosleep (Link): New section.
27216         * modules/readline (Link): New section.
27217
27218 2007-01-27  Bruno Haible  <bruno@clisp.org>
27219
27220         Enforce the use of gnulib modules for unportable <string.h> functions.
27221         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
27222         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
27223         (gl_HEADER_STRING_H_BODY): Require it.
27224         * lib/string_.h: If the gnulib module XYZ is not present, redefine
27225         the symbol XYZ to one that gives a link error.
27226         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
27227         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
27228         * modules/mempcpy (configure.ac): Likewise.
27229         * modules/memrchr (configure.ac): Likewise.
27230         * modules/stpcpy (configure.ac): Likewise.
27231         * modules/stpncpy (configure.ac): Likewise.
27232         * modules/strcase (configure.ac): Likewise.
27233         * modules/strcasestr (configure.ac): Likewise.
27234         * modules/strchrnul (configure.ac): Likewise.
27235         * modules/strdup (configure.ac): Likewise.
27236         * modules/strndup (configure.ac): Likewise.
27237         * modules/strnlen (configure.ac): Likewise.
27238         * modules/strpbrk (configure.ac): Likewise.
27239         * modules/strsep (configure.ac): Likewise.
27240         * modules/strstr (configure.ac): Likewise.
27241         * modules/strtok_r (configure.ac): Likewise.
27242
27243 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
27244
27245         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
27246
27247 2007-01-30  Jim Meyering  <jim@meyering.net>
27248
27249         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
27250
27251 2007-01-29  Bruno Haible  <bruno@clisp.org>
27252
27253         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
27254         * lib/execute.c: Likewise.
27255         * lib/pipe.c: Likewise.
27256         * lib/printf-args.h: Likewise.
27257         * lib/printf-args.c: Likewise.
27258         * lib/printf-parse.c: Likewise.
27259         * lib/vasnprintf.c: Likewise.
27260
27261 2007-01-29  Eric Blake  <ebb9@byu.net>
27262
27263         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
27264         declaration.
27265
27266 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27267
27268         * lib/strptime.h (strptime): Use 'restrict' for args where
27269         POSIX requires this.
27270         * lib/strptime.c (strptime): Likewise.
27271         Change license notice from LGPL to GPL, since gnulib-tool will
27272         change this as needed.
27273         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
27274         defined.
27275         Include "strptime.h" first, to check interface.
27276         Do not #undef _LIBC and _NL_CURRENT.
27277         Do not include <stdlib.h>; no longer needed.
27278         Include "time_r.h" and declare ptime_locale_status
27279         only if _LIBC is not defined.
27280         (__P): Remove unused macro.
27281         (match_string): Bring back glibc version, but use it only if _LIBC
27282         is defined.
27283         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
27284         Remove unnecessary assertion and abort() call.
27285         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
27286         * m4/strptime.m4: Fix serial number comment.
27287         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
27288         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
27289         (Depends-on): Add time_r.
27290
27291 2007-01-29  Bruno Haible  <bruno@clisp.org>
27292
27293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27294         strptime.
27295         * modules/strptime (Depends-on): Add stdbool.
27296         * lib/strptime.h: Include <time.h> always. Add comments.
27297
27298 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27299
27300         * modules/strptime: New file.
27301         * lib/strptime.h: New file.
27302         * lib/strptime.c: New file.
27303         * m4/strptime.m4: New file.
27304
27305 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27306
27307         * MODULES.html.sh: New module mpsort.
27308         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
27309
27310         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
27311         a circularity problem with HP-UX ia64 reported by Bob Proulx in
27312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
27313         All uses changed.
27314         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
27315         All uses changed.
27316         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
27317         to _Restrict_.
27318         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
27319         the parameter matches the prototype.
27320
27321 2007-01-28  Jim Meyering  <jim@meyering.net>
27322
27323         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
27324         sys/time.h here, reverting that part of the previous patch:
27325         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
27326
27327 2007-01-28  Bruno Haible  <bruno@clisp.org>
27328
27329         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
27330         value of $(SYS_TIME_H).
27331         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
27332         remove it conditionally, too. [added by Jim Meyering]
27333         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
27334         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27335         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
27336         GETTIMEOFDAY_REPLACEMENT to 1.
27337
27338 2007-01-28  Bruno Haible  <bruno@clisp.org>
27339
27340         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
27341         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
27342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
27343         Set UNISTD_H instead of UNISTD_H2.
27344         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
27345
27346 2007-01-28  Bruno Haible  <bruno@clisp.org>
27347
27348         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
27349         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
27350
27351 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27352
27353         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
27354         (func_create_testdir): Ensure C locale for `grep' and `tr'
27355         character ranges.
27356         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
27357         ACLOCAL_AMFLAGS parsing state machine.
27358
27359 2007-01-27  Bruno Haible  <bruno@clisp.org>
27360
27361         * modules/unistr/base: Update.
27362
27363 2007-01-27  Bruno Haible  <bruno@clisp.org>
27364
27365         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
27366         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
27367         * modules/unistr/u32-mbtouc-unsafe: Renamed from
27368         modules/unistr/u32-mbtouc.
27369         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
27370         * lib/unistr.h: Update.
27371         * lib/linebreak.c: Update.
27372         * modules/unistr/u32-mbtouc: Renamed from
27373         modules/unistr/u32-mbtouc-safe.
27374         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
27375         * lib/unistr.h: Update.
27376         * lib/unistr/u32-to-u8.c: Update.
27377         * lib/unistr/u32-to-u16.c: Update.
27378
27379 2007-01-27  Bruno Haible  <bruno@clisp.org>
27380
27381         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
27382         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
27383         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
27384         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
27385         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
27386         * modules/unistr/u16-mbtouc-unsafe: Renamed from
27387         modules/unistr/u16-mbtouc.
27388         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
27389         * lib/unistr.h: Update.
27390         * lib/linebreak.c: Update.
27391         * modules/linebreak: Update.
27392         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
27393         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
27394         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
27395         * modules/unistr/u16-mbtouc: Renamed from
27396         modules/unistr/u16-mbtouc-safe.
27397         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
27398         * lib/unistr.h: Update.
27399         * lib/unistr/u16-to-u8.c: Update.
27400         * modules/unistr/u16-to-u8: Update.
27401         * lib/unistr/u16-to-u32.c: Update.
27402         * modules/unistr/u16-to-u32: Update.
27403
27404 2007-01-27  Bruno Haible  <bruno@clisp.org>
27405
27406         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
27407         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
27408         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
27409         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
27410         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
27411         * modules/unistr/u8-mbtouc-unsafe: Renamed from
27412         modules/unistr/u8-mbtouc.
27413         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
27414         * lib/unistr.h: Update.
27415         * lib/striconveh.c: Update.
27416         * modules/striconveh: Update.
27417         * lib/linebreak.c: Update.
27418         * modules/linebreak: Update.
27419         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
27420         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
27421         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
27422         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
27423         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
27424         * lib/unistr.h: Update.
27425         * lib/striconveh.c: Update.
27426         * modules/striconveh: Update.
27427         * lib/unistr/u8-to-u16.c: Update.
27428         * modules/unistr/u8-to-u16: Update.
27429         * lib/unistr/u8-to-u32.c: Update.
27430         * modules/unistr/u8-to-u32: Update.
27431
27432 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27433
27434         Sync from Libtool.
27435         * lib/argz.c: Do not include strings.h nor memory.h, include
27436         string.h unconditionally.  Patch by Simon Josefsson.
27437
27438 2007-01-27  Bruno Haible  <bruno@clisp.org>
27439
27440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
27441         from gl_HEADER_STRING_H_BODY.
27442         (gl_HEADER_STRING_H_BODY): Require it.
27443         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
27444         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
27445         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
27446         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
27447         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27448         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
27449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27450         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
27451         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
27452         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
27453         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
27454         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
27455         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
27456         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27457         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
27458
27459 2007-01-27  Bruno Haible  <bruno@clisp.org>
27460
27461         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
27462         check_PROGRAMS into noinst_PROGRAMS.
27463         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
27464         check_PROGRAMS in this case.
27465         (func_import): Set for_test to false.
27466         (func_create_testdir): Set for_test to true.
27467
27468 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27469             Bruno Haible  <bruno@clisp.org>
27470
27471         * modules/strcasestr (Files): Remove lib/strcasestr.h.
27472         (Depends-on): Add string.
27473         (Includes): Use <string.h> instead of strcasestr.h.
27474         * modules/string (Makefile.am): Also substitute the value of
27475         REPLACE_STRCASESTR.
27476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
27477         assume strcasestr is declared in <string.h> not <strings.h>. Also
27478         set REPLACE_STRCASESTR.
27479         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
27480         REPLACE_STRCASESTR.
27481         * lib/strcasestr.h: Remove file.
27482         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
27483         * lib/string_.h (strcasestr): New declaration.
27484
27485 2007-01-27  Bruno Haible  <bruno@clisp.org>
27486
27487         * lib/string_.h: Use 'extern'.
27488
27489 2007-01-27  Jim Meyering  <jim@meyering.net>
27490
27491         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
27492         of set-but-not-used local, "q".
27493
27494         * lib/mempcpy.c: Include <config.h> before <string.h>.
27495         This fixes a compilation error on HP-UX, due to the system's
27496         "restrict"-using mempcpy prototype.
27497
27498 2007-01-26  Bruno Haible  <bruno@clisp.org>
27499
27500         Small optimization.
27501         * lib/javacomp.c: Include c-strstr.h.
27502          (is_envjavac_gcj): Use c_strstr instead of strstr.
27503         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
27504
27505 2007-01-26  Bruno Haible  <bruno@clisp.org>
27506
27507         * MODULES.html.sh (Unicode string functions): Add the new modules.
27508
27509         * modules/uniconv/u32-strconv-to-locale: New file.
27510         * lib/uniconv/u32-strconv-to-locale.c: New file.
27511
27512         * modules/uniconv/u16-strconv-to-locale: New file.
27513         * lib/uniconv/u16-strconv-to-locale.c: New file.
27514
27515         * modules/uniconv/u8-strconv-to-locale: New file.
27516         * lib/uniconv/u8-strconv-to-locale.c: New file.
27517
27518         * modules/uniconv/u32-strconv-from-locale: New file.
27519         * lib/uniconv/u32-strconv-from-locale.c: New file.
27520
27521         * modules/uniconv/u16-strconv-from-locale: New file.
27522         * lib/uniconv/u16-strconv-from-locale.c: New file.
27523
27524         * modules/uniconv/u8-strconv-from-locale: New file.
27525         * lib/uniconv/u8-strconv-from-locale.c: New file.
27526
27527         * modules/uniconv/u32-strconv-to-enc: New file.
27528         * lib/uniconv/u32-strconv-to-enc.c: New file.
27529         * modules/uniconv/u32-strconv-to-enc-tests: New file.
27530         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
27531
27532         * modules/uniconv/u16-strconv-to-enc: New file.
27533         * lib/uniconv/u16-strconv-to-enc.c: New file.
27534         * lib/uniconv/u-strconv-to-enc.h: New file.
27535         * modules/uniconv/u16-strconv-to-enc-tests: New file.
27536         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
27537
27538         * modules/uniconv/u8-strconv-to-enc: New file.
27539         * lib/uniconv/u8-strconv-to-enc.c: New file.
27540         * modules/uniconv/u8-strconv-to-enc-tests: New file.
27541         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
27542
27543         * modules/uniconv/u32-strconv-from-enc: New file.
27544         * lib/uniconv/u32-strconv-from-enc.c: New file.
27545         * modules/uniconv/u32-strconv-from-enc-tests: New file.
27546         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
27547
27548         * modules/uniconv/u16-strconv-from-enc: New file.
27549         * lib/uniconv/u16-strconv-from-enc.c: New file.
27550         * modules/uniconv/u16-strconv-from-enc-tests: New file.
27551         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
27552
27553         * modules/uniconv/u8-strconv-from-enc: New file.
27554         * lib/uniconv/u8-strconv-from-enc.c: New file.
27555         * lib/uniconv/u-strconv-from-enc.h: New file.
27556         * modules/uniconv/u8-strconv-from-enc-tests: New file.
27557         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
27558
27559         * modules/uniconv/u32-conv-from-enc: New file.
27560         * lib/uniconv/u32-conv-from-enc.c: New file.
27561         * modules/uniconv/u32-conv-from-enc-tests: New file.
27562         * tests/uniconv/test-u32-conv-from-enc.c: New file.
27563
27564         * modules/uniconv/u16-conv-from-enc: New file.
27565         * lib/uniconv/u16-conv-from-enc.c: New file.
27566         * lib/uniconv/u-conv-from-enc.h: New file.
27567         * modules/uniconv/u16-conv-from-enc-tests: New file.
27568         * tests/uniconv/test-u16-conv-from-enc.c: New file.
27569
27570         * modules/uniconv/u8-conv-from-enc: New file.
27571         * lib/uniconv/u8-conv-from-enc.c: New file.
27572         * modules/uniconv/u8-conv-from-enc-tests: New file.
27573         * tests/uniconv/test-u8-conv-from-enc.c: New file.
27574
27575         * modules/uniconv/base: New file.
27576         * lib/uniconv.h: New file.
27577
27578 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27579
27580         * doc/gnulib-tool.texi (Initial import): Update to match current
27581         behavior with strdup module.
27582         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
27583         * lib/memmem.h: Remove; all uses removed.  This is now done
27584         by <string.h>.
27585         * lib/mempcpy.h: Likewise.
27586         * lib/memrchr.h: Likewise.
27587         * lib/stpcpy.h: Likewise.
27588         * lib/stpncpy.h: Likewise.
27589         * lib/strcase.h: Likewise.
27590         * lib/strchrnul.h: Likewise.
27591         * lib/strdup.h: Likewise.
27592         * lib/strndup.h: Likewise.
27593         * lib/strnlen.h: Likewise.
27594         * lib/strpbrk.h: Likewise.
27595         * lib/strsep.h: Likewise.
27596         * lib/strstr.h: Likewise.
27597         * lib/strtok_r.h: Likewise.
27598         * lib/string_.h: New file.
27599         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
27600         Rely on <string.h> instead.
27601         * lib/canon-host.c: Likewise.
27602         * lib/chdir-long.c: Likewise.
27603         * lib/concatpath.c: Likewise.
27604         * lib/exclude.c: Likewise.
27605         * lib/fchdir.c: Likewise.
27606         * lib/getaddrinfo.c: Likewise.
27607         * lib/getcwd.c: Likewise.
27608         * lib/getsubopt.c: Likewise.
27609         * lib/glob.c: Likewise.
27610         * lib/hard-locale.c: Likewise.
27611         * lib/iconvme.c: Likewise.
27612         * lib/javacomp.c: Likewise.
27613         * lib/mempcpy.c: Likewise.
27614         * lib/memrchr.c: Likewise.
27615         * lib/regex_internal.h: Likewise.
27616         * lib/stpncpy.c: Likewise.
27617         * lib/strcasecmp.c: Likewise.
27618         * lib/strchrnul.c: Likewise.
27619         * lib/strdup.c: Likewise.
27620         * lib/striconv.c: Likewise.
27621         * lib/striconveh.c: Likewise.
27622         * lib/striconveha.c: Likewise.
27623         * lib/strncasecmp.c: Likewise.
27624         * lib/strndup.c: Likewise.
27625         * lib/strnlen.c: Likewise.
27626         * lib/strsep.c: Likewise.
27627         * lib/strstr.c: Likewise.
27628         * lib/strtok_r.c: Likewise.
27629         * lib/userspec.c: Likewise.
27630         * lib/w32spawn.h: Likewise.
27631         * lib/xstrndup.c: Likewise.
27632         * lib/mountlist.c (strstr): Remove decl.
27633         * m4/string_h.m4: New file.
27634         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
27635         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
27636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
27637         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
27638         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
27639         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
27640         Set REPLACE_STRCASECMP if necessary.
27641         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
27642         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
27643         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
27644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
27645         HAVE_DECL_STRDUP if necessary.
27646         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
27647         since gl_FUNC_STRNDUP does that now.
27648         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
27649         Check for decl here...
27650         (gl_PREREQ_STRNLEN): ... not here.
27651         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
27652         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
27653         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
27654         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
27655         necessary.
27656         * modules/string: New file.
27657         * modules/memmem (Files): Remove special-purpose include file.
27658         (Depends-on): Add string.
27659         (Include): Include <string.h>, not the removed file.
27660         * modules/mempcpy: Likewise.
27661         * modules/memrchr: Likewise.
27662         * modules/stpcpy: Likewise.
27663         * modules/stpncpy: Likewise.
27664         * modules/strcase: Likewise.
27665         * modules/strchrnul: Likewise.
27666         * modules/strdup: Likewise.
27667         * modules/strndup: Likewise.
27668         * modules/strnlen: Likewise.
27669         * modules/strpbrk: Likewise.
27670         * modules/strsep: Likewise.
27671         * modules/strstr: Likewise.
27672         * modules/strtok_r: Likewise.
27673         * tests/test-dirname.c: Don't include "strdup.h", since
27674         <string.h> now suffices.
27675         * tests/test-memmem.c: Don't include "memmem.h", since
27676         <string.h> now suffices.
27677
27678 2007-01-25  Bruno Haible  <bruno@clisp.org>
27679
27680         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
27681         *resultp is 0.
27682
27683         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
27684         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
27685         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
27686         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
27687
27688         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
27689         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
27690         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
27691         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
27692         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
27693         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
27694
27695 2007-01-24  Bruno Haible  <bruno@clisp.org>
27696
27697         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
27698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
27699         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
27700         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
27701         gl_FUNC_FTS_CORE.
27702         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
27703         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
27704         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27705         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
27706         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
27707         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
27708         gl_FUNC_FCHOWNAT.
27709         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
27710         gl_FUNC_STRFTIME.
27711         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
27712         Reported by Ralf Wildenhues.
27713
27714 2007-01-24  Bruno Haible  <bruno@clisp.org>
27715
27716         Drop AC_REQUIRE calls that are redundant with the module dependencies.
27717         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
27718         gl_GETADDRINFO.
27719         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
27720         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
27721         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
27722
27723 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27724
27725         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
27726         Don't use 'exit'; just return from 'main'.
27727         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
27728
27729         * lib/fnmatch_.h: Readjust white space and comments to match
27730         glibc, to avoid spurious diffs.
27731
27732 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27733
27734         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
27735         2004-12-01 change by Jakub Jelinek, since this code won't compile
27736         if !LIBC.  Problem reported by Bob Proulx.
27737
27738 2007-01-23  Bruno Haible  <bruno@clisp.org>
27739
27740         * lib/striconveh.c: Include c-strcaseeq.h.
27741         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
27742         * modules/striconveh (Depends-on): Add c-strcaseeq.
27743
27744 2007-01-23  Bruno Haible  <bruno@clisp.org>
27745
27746         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
27747
27748         * modules/c-strcaseeq: New file.
27749         * lib/c-strcaseeq.h: New file.
27750
27751         * modules/streq: New file.
27752         * lib/streq.h: New file.
27753
27754 2007-01-23  Bruno Haible  <bruno@clisp.org>
27755
27756         * modules/striconveha-tests: New file.
27757         * tests/test-striconveha.c: New file.
27758
27759         * lib/striconveha.h: Include <stdbool.h>.
27760         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
27761         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
27762         (mem_iconveha_notranslit): Renamed from mem_iconveha.
27763         (mem_iconveha): New function.
27764         (str_iconveha_notranslit): Renamed from str_iconveha.
27765         (str_iconveha): New function.
27766         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
27767         c-strcase.
27768
27769 2007-01-23  Bruno Haible  <bruno@clisp.org>
27770
27771         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
27772         encodings without forgiving before trying any encoding with handler.
27773         (str_iconveha): Try all encodings without forgiving before trying any
27774         encoding with handler.
27775
27776 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27777
27778         Import the following changes from libc.
27779
27780         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27781
27782         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
27783
27784         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27785
27786         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
27787         normal_bracket label.
27788
27789         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
27790
27791         [BZ #361]
27792         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
27793         to normal_bracket after fetching the next character.
27794
27795 2007-01-22  Bruno Haible  <bruno@clisp.org>
27796
27797         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
27798         argument.
27799         * lib/striconveh.c (iconv_carefully_1): New function.
27800         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
27801         argument.
27802         (str_cd_iconveh): Update.
27803         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
27804         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
27805         * tests/test-striconveh.c (MAGIC): New macro.
27806         (new_offsets): New function.
27807         (main): Test call with and without offsets.
27808
27809 2007-01-22  Bruno Haible  <bruno@clisp.org>
27810
27811         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
27812         * modules/sys_select (Makefile.am): Likewise.
27813         * modules/sys_socket (Makefile.am): Likewise.
27814         * modules/sys_time (Makefile.am): Likewise.
27815
27816 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27817
27818         * modules/gettimeofday (License): Change from GPL to LGPL, since
27819         gettimeofday is a library function.
27820
27821 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27822
27823         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
27824
27825 2007-01-21  Bruno Haible  <bruno@clisp.org>
27826
27827         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
27828
27829 2007-01-21  Bruno Haible  <bruno@clisp.org>
27830
27831         * modules/striconveha: New file.
27832         * lib/striconveha.h: New file.
27833         * lib/striconveha.c: New file.
27834         * MODULES.html.sh (Internationalization functions): Add striconveha.
27835         * lib/striconv.c (str_iconv): Optimize the case of an empty input
27836         string.
27837         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
27838
27839 2007-01-21  Bruno Haible  <bruno@clisp.org>
27840
27841         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
27842         * lib/striconveh.c (str_iconveh): Likewise.
27843
27844 2007-01-21  Bruno Haible  <bruno@clisp.org>
27845
27846         * lib/striconveh.h (mem_iconveh): New declaration.
27847         * lib/striconveh.c (mem_iconveh): New function.
27848         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
27849
27850 2007-01-21  Bruno Haible  <bruno@clisp.org>
27851
27852         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
27853
27854         * lib/striconveh.h (mem_cd_iconveh): Change specification.
27855         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
27856         original result buffer.
27857         (str_cd_iconveh): Update.
27858         * tests/test-striconveh.c (main): Update.
27859
27860         * lib/striconv.h (mem_cd_iconv): Change specification.
27861         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
27862         result buffer.
27863         (str_cd_iconv): Update.
27864         * tests/test-striconv.c (main): Update.
27865
27866 2007-01-21  Bruno Haible  <bruno@clisp.org>
27867
27868         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
27869
27870 2007-01-20  Jim Meyering  <jim@meyering.net>
27871
27872         * lib/userspec.c (parse_with_separator): If a user or group string
27873         starts with "+", skip the corresponding name-to-ID look-up, since
27874         such a look-up must fail: user and group names may not include "+".
27875
27876 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
27877
27878         * lib/poll.c: Include sys/time.h and time.h unconditionally,
27879         since we now assume the sys_time module.
27880         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
27881         check for sys/time.h; no longer needed.
27882         * modules/poll (Depends-on): Depend on sys_time.
27883
27884 2007-01-18  Bruno Haible  <bruno@clisp.org>
27885
27886         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
27887         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27888
27889         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
27890         gettimeofday.
27891
27892         * tests/test-gettimeofday.c: Include <time.h>.
27893         (dummy): Remove variable.
27894
27895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
27896         gl_HEADER_SYS_TIME_H.
27897         (gl_HEADER_SYS_TIME_H): New macro.
27898
27899         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
27900         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27901         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
27902         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
27903         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
27905         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
27906         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27907         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
27908         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
27909         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27910
27911         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
27912         last change; it caused a compilation error when cross-compiling to
27913         Cygwin.
27914
27915 2007-01-18  Jim Meyering  <jim@meyering.net>
27916
27917         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
27918         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
27919         than the race-prone "test -d sys || mkdir sys".
27920         (configure.ac): Use AC_PROG_MKDIR_P.
27921         * modules/sys_select: Likewise.
27922         * modules/sys_socket: Likewise.
27923         * modules/sys_time: Likewise.
27924
27925 2007-01-18  Eric Blake  <ebb9@byu.net>
27926
27927         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
27928         replace gettimeofday.
27929         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
27930         name, to avoid infinite recursion.
27931
27932 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
27933
27934         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
27935         module sys_time.
27936         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
27937         assume timespec.h defines struct timeval.
27938         * lib/settime.c: Likewise.
27939         * lib/utimens.c: Likewise.
27940         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
27941         since we now assume the gettimeofday module.
27942         * lib/tempname.c (__gen_tempname): Likewise.
27943         * lib/gettimeofday.h: Remove.
27944         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
27945         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
27946         Include <time.h>, for 'time()'.
27947         (localtime_buffer_addr): Also use this workaround if
27948         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
27949         to simplify the uses.  All uses changed.
27950         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
27951         that #undef is inside {}, and 'const' follows type name consistently.
27952         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
27953         (gettimeofday): Do not use the maximum possible value for
27954         tv->tv_usec, since that might break usages other than ls.c.
27955         Instead, we'll leave ls.c alone.  This undoes today's patch
27956         by Bruno.  Add a compile-time warning for 1s-clock resolution;
27957         we've never observed the problem but might as well keep the
27958         canary.
27959         * lib/nanosleep.c: Include timespec.h first, for interface check.
27960         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
27961         now assume the sys_time module.
27962         * lib/tempname.c: Likewise.
27963         * lib/timespec.h: Likewise.
27964         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
27965         needed.
27966         * lib/strftime.c: Likewise.
27967         * lib/timespec.h: Likewise.
27968         * lib/posixtm.c: Include posixtm.h first, for interface check.
27969         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
27970         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
27971         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
27972         * lib/sys_time_.h: New file.
27973         * lib/timespec.h (struct timespec): Use long int, not long.
27974         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27975         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
27976         Remove obsolescent call to AC_HEADER_TIME.
27977         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27979         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
27980         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
27981         Likewise.
27982         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
27983         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
27984         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
27985         into the sys_time module.  Check for gettimeofday just once.
27986         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
27987         for gettimeofday signature to just check the signature.  Merely
27988         compile it, since linking doesn't test signature.  Improve test for
27989         whether gettimeofday.o is actually needed.
27990         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
27991         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
27992         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
27993         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
27994         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
27995         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
27996         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
27997         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
27998         than worrying about sys/time.h.
27999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28000         Don't bother worrying about TIME_WITH_SYS_TIME.
28001         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28002         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
28003         * m4/sys_time_h.m4: New file.
28004         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
28005         Don't include sys/time.h.  Return from main rather than exiting.
28006         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
28007         all uses changed.
28008         * modules/gethrxtime (Depends-on): Add sys_time.
28009         * modules/gettime (Depends-on): Likewise.
28010         * modules/gettimeofday (Depends-on): Likewise.
28011         * modules/nanosleep (Depends-on): Likewise.
28012         * modules/settime (Depends-on): Likewise.
28013         * modules/tempname (Depends-on): Likewise.
28014         * modules/utimens (Depends-on): Likewise.
28015         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
28016         (Include:) Change back to <sys/time.h>.
28017         (Maintainer:) Add self.
28018         * modules/sys_time: New file.
28019         * modules/tempname (Depends-on): Add gettimeofday.
28020         * tests/test-gettimeofday.c: Include <sys/time.h>
28021         rather than gettimeofday.h.
28022
28023 2007-01-17  Bruno Haible  <bruno@clisp.org>
28024
28025         * gnulib-tool (func_get_license): Revert last patch. Instead, let
28026         the license default to GPL.
28027         (func_create_testdir): Don't complain if a module is LGPL and its
28028         tests module depends on GPLed modules.
28029
28030 2007-01-17  Bruno Haible  <bruno@clisp.org>
28031
28032         * lib/gettimeofday.c (gettimeofday): Add code for the case
28033         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
28034         maximum possible value for tv->tv_usec, rather than the minimum one.
28035
28036 2005-10-08  Martin Lambers  <marlam@marlam.de>
28037 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28038 2007-01-16  Bruno Haible  <bruno@clisp.org>
28039
28040         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
28041         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
28042         gl_FUNC_GETTIMEOFDAY.
28043         (Include): Add gettimeofday.h.
28044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
28045         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
28046         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
28047         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
28048         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
28049         * lib/gettimeofday.h: New file.
28050         * lib/gettimeofday.c: Include <sys/timeb.h>.
28051         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
28052         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28053         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
28054         fall back on time().
28055
28056         * tests/test-gettimeofday.c: New file.
28057         * modules/gettimeofday-tests: New file.
28058
28059 2007-01-16  Eric Blake  <ebb9@byu.net>
28060
28061         * modules/fnmatch (Depends-on): Depend on wchar.
28062         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
28063         * m4/fnmatch.m4: Likewise.
28064         * modules/mbchar (Makefile.am): Assume <wchar.h>.
28065         * m4/mbchar.m4: Likewise.
28066         * modules/mbswidth (Depends-on): Depend on wchar.
28067         * lib/mbswidth.c: Assume <wchar.h>.
28068         * m4/mbswidth.m4: Likewise.
28069         * modules/quotearg (Depends-on): Depend on wchar.
28070         * lib/quotearg.c: Assume <wchar.h>.
28071         * m4/quotearg.m4: Likewise.
28072         * modules/regex (Depends-on): Depend on wchar.
28073         * lib/regex_internal.h: Assume <wchar.h>.
28074         * m4/regex.m4: Likewise.
28075         * modules/stdint (Depends-on): Depend on wchar.
28076         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
28077         * m4/stdint.m4: Likewise.
28078         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
28079         * modules/strftime (Depends-on): Depend on wchar.
28080         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
28081         * modules/strtol (Depends-on): Depend on wchar.
28082         * lib/strtol.c: Assume <wchar.h>.
28083         * modules/wcwidth (Depends-on): Depend on wchar.
28084         * lib/wcwidth.h: Assume <wchar.h>.
28085         * m4/wcwidth.m4: Likewise.
28086
28087 2007-01-16  Bruno Haible  <bruno@clisp.org>
28088
28089         * modules/csharpexec-script: New, created from...
28090         * modules/csharpexec: ... this.
28091
28092 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28093
28094         * modules/javaexec-script: New, created from...
28095         * modules/javaexec: ... this.
28096
28097 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28098
28099         * modules/poll (Dependencies): Add sys_select.
28100
28101 2007-01-15  Jim Meyering  <jim@meyering.net>
28102
28103         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
28104         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
28105         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
28106         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
28107
28108 2007-01-15  Bruno Haible  <bruno@clisp.org>
28109
28110         * modules/striconveh: New file.
28111         * lib/striconveh.h: New file.
28112         * lib/striconveh.c: New file.
28113         * MODULES.html.sh (Internationalization functions): Add striconveh.
28114
28115         * modules/striconveh-tests: New file.
28116         * tests/test-striconveh.c: New file.
28117
28118 2007-01-15  Bruno Haible  <bruno@clisp.org>
28119
28120         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
28121         not from GNU libiconv or GNU libc.
28122
28123 2007-01-15  Bruno Haible  <bruno@clisp.org>
28124
28125         * doc/gnulib-intro.texi (Copyright): Explain the different license
28126         terms for module descriptions, autoconf macros, tests, documentation.
28127
28128 2007-01-14  Bruno Haible  <bruno@clisp.org>
28129
28130         * modules/striconv-tests: New file.
28131         * tests/test-striconv.c: New file.
28132
28133 2007-01-14  Bruno Haible  <bruno@clisp.org>
28134
28135         * modules/iconv-tests: New file.
28136         * tests/test-iconv.c: New file.
28137
28138 2007-01-14  Bruno Haible  <bruno@clisp.org>
28139
28140         * gnulib-tool (func_get_license): For test modules, use the license of
28141         the main module.
28142
28143 2007-01-14  Bruno Haible  <bruno@clisp.org>
28144
28145         * modules/iconv (Include): Clarify that <iconv.h> can only be included
28146         if iconv is found to exist.
28147
28148 2007-01-14  Bruno Haible  <bruno@clisp.org>
28149
28150         * modules/c-ctype-tests: New file.
28151         * tests/test-c-ctype.c: New file.
28152
28153 2007-01-14  Bruno Haible  <bruno@clisp.org>
28154
28155         * modules/binary-io-tests: New file.
28156         * tests/test-binary-io.sh: New file.
28157         * tests/test-binary-io.c: New file.
28158
28159 2007-01-14  Bruno Haible  <bruno@clisp.org>
28160
28161         * modules/array-oset-tests: New file.
28162         * tests/test-array_oset.c: New file.
28163
28164 2007-01-14  Bruno Haible  <bruno@clisp.org>
28165
28166         * modules/array-list-tests: New file.
28167         * tests/test-array_list.c: New file.
28168
28169 2007-01-14  Bruno Haible  <bruno@clisp.org>
28170
28171         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
28172         and make.
28173         Reported by Simon Josefsson in
28174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
28175
28176 2007-01-14  Bruno Haible  <bruno@clisp.org>
28177
28178         * modules/allocsa-tests: New file.
28179         * tests/test-allocsa.c: New file.
28180
28181 2007-01-14  Bruno Haible  <bruno@clisp.org>
28182
28183         * modules/fchdir (Depends-on): Add absolute-header.
28184         * modules/unistd (Depends-on): Likewise.
28185
28186 2006-12-30  Bruno Haible  <bruno@clisp.org>
28187
28188         * modules/fchdir: New file.
28189         * modules/unistd (Files): Add lib/unistd_.h.
28190         (Makefile.am): Generate unistd.h from unistd_.h.
28191         * lib/fchdir.c: New file.
28192         * lib/dirent_.h: New file.
28193         * lib/unistd_.h: New file.
28194         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
28195         * m4/fchdir.m4: New file.
28196         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
28197         (gl_HEADER_UNISTD): Invoke it.
28198         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
28199         function.
28200         * lib/backupfile.c (opendir, closedir): Undefine.
28201         * lib/chown.c (open, close): Undefine.
28202         * lib/clean-temp.c (open, close): Undefine.
28203         * lib/copy-file.c (open, close): Undefine.
28204         * lib/execute.c (open, close): Undefine.
28205         * lib/fsusage.c (open, close): Undefine.
28206         * lib/gc-gnulib.c (open, close): Undefine.
28207         * lib/getcwd.c (opendir, closedir): Undefine.
28208         * lib/glob.c (opendir, closedir): Undefine.
28209         * lib/javacomp.c (open, close): Undefine.
28210         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
28211         * lib/openat-proc.c (open, close): Undefine.
28212         * lib/pagealign_alloc.c (open, close): Undefine.
28213         * lib/pipe.c (open, close): Undefine.
28214         * lib/progreloc.c (open, close): Undefine.
28215         * lib/savedir.c (opendir, closedir): Undefine.
28216         * lib/utime.c (open, close): Undefine.
28217         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
28218
28219 2007-01-10  Bruno Haible  <bruno@clisp.org>
28220
28221         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
28222
28223 2007-01-12  Eric Blake  <ebb9@byu.net>
28224
28225         Provide a robust <wchar.h>.  Further simplifications are now
28226         possible in other modules, but not included here.
28227         * modules/wchar: New module.
28228         * m4/wchar.m4: New file.
28229         * lib/wchar_.h: Likewise.
28230         * modules/mbchar (Depends-on): Depend on wchar, as the first use
28231         of the new module.
28232         * MODULES.html.sh (Extended multibyte and wide character utilities):
28233         New section.
28234
28235 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28236
28237         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
28238         to a reasonable default for memory allocation.
28239         (xreadlink): Don't allocate a huge buffer, to work around a buggy
28240         file system that reports garbage st_size values for symlinks.
28241         Problem reported by Liyang Hu.
28242
28243 2007-01-11  Simon Josefsson  <simon@josefsson.org>
28244
28245         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
28246         Emacs .#* auto-save files).
28247
28248 2007-01-11  Bruno Haible  <bruno@clisp.org>
28249
28250         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
28251         directory.
28252
28253 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28254
28255         Use @...@ consistently in lib/wctype_.h.
28256         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
28257         on it being set to 1 or 0.
28258         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
28259         go back to AC_SUBSTing it.
28260         * modules/wctype (Makefile.am): Undo previous change.
28261
28262 2007-01-10  Eric Blake  <ebb9@byu.net>
28263
28264         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
28265         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
28266         * modules/wctype (Makefile.am): Likewise.
28267         Reported by Chris McGuire.
28268
28269 2007-01-10  Jim Meyering  <jim@meyering.net>
28270
28271         fts.c: a small readability/maintainability improvement
28272         * lib/fts.c (fts_read): Make this code slightly more readable and
28273         maintainable by hoisting the "sp->fts_cur = p" assignments to
28274         immediately follow the statements that set P.  Derived from
28275         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
28276
28277 2007-01-10  Eric Blake  <ebb9@byu.net>
28278
28279         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
28280         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
28281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28282         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28283         Reported by Chris McGuire.
28284
28285 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28286
28287         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
28288         in sed script.
28289
28290 2007-01-09  Bruno Haible  <bruno@clisp.org>
28291
28292         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
28293         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
28294         variables.
28295         (func_module): Use them.
28296
28297 2007-01-09  Bruno Haible  <bruno@clisp.org>
28298
28299         * modules/unistr/base: New file.
28300         * lib/unistr.h: New file.
28301
28302         * modules/unistr/u8-to-u16: New file.
28303         * lib/unistr/u8-to-u16.c: New file.
28304
28305         * modules/unistr/u8-to-u32: New file.
28306         * lib/unistr/u8-to-u32.c: New file.
28307
28308         * modules/unistr/u16-to-u8: New file.
28309         * lib/unistr/u16-to-u8.c: New file.
28310
28311         * modules/unistr/u16-to-u32: New file.
28312         * lib/unistr/u16-to-u32.c: New file.
28313
28314         * modules/unistr/u32-to-u8: New file.
28315         * lib/unistr/u32-to-u8.c: New file.
28316
28317         * modules/unistr/u32-to-u16: New file.
28318         * lib/unistr/u32-to-u16.c: New file.
28319
28320         * modules/unistr/u8-check: New file.
28321         * modules/unistr/u16-check: New file.
28322         * modules/unistr/u32-check: New file.
28323         * lib/unistr/u8-check.c: New file.
28324         * lib/unistr/u16-check.c: New file.
28325         * lib/unistr/u32-check.c: New file.
28326
28327         * modules/unistr/u8-chr: New file.
28328         * modules/unistr/u16-chr: New file.
28329         * modules/unistr/u32-chr: New file.
28330         * lib/unistr/u8-chr.c: New file.
28331         * lib/unistr/u16-chr.c: New file.
28332         * lib/unistr/u32-chr.c: New file.
28333
28334         * modules/unistr/u8-cmp: New file.
28335         * modules/unistr/u16-cmp: New file.
28336         * modules/unistr/u32-cmp: New file.
28337         * lib/unistr/u8-cmp.c: New file.
28338         * lib/unistr/u16-cmp.c: New file.
28339         * lib/unistr/u32-cmp.c: New file.
28340
28341         * modules/unistr/u8-cpy: New file.
28342         * modules/unistr/u16-cpy: New file.
28343         * modules/unistr/u32-cpy: New file.
28344         * lib/unistr/u8-cpy.c: New file.
28345         * lib/unistr/u16-cpy.c: New file.
28346         * lib/unistr/u32-cpy.c: New file.
28347         * lib/unistr/u-cpy.h: New file.
28348
28349         * modules/unistr/u8-cpy-alloc: New file.
28350         * modules/unistr/u16-cpy-alloc: New file.
28351         * modules/unistr/u32-cpy-alloc: New file.
28352         * lib/unistr/u8-cpy-alloc.c: New file.
28353         * lib/unistr/u16-cpy-alloc.c: New file.
28354         * lib/unistr/u32-cpy-alloc.c: New file.
28355         * lib/unistr/u-cpy-alloc.h: New file.
28356
28357         * modules/unistr/u8-endswith: New file.
28358         * modules/unistr/u16-endswith: New file.
28359         * modules/unistr/u32-endswith: New file.
28360         * lib/unistr/u8-endswith.c: New file.
28361         * lib/unistr/u16-endswith.c: New file.
28362         * lib/unistr/u32-endswith.c: New file.
28363         * lib/unistr/u-endswith.h: New file.
28364
28365         * modules/unistr/u8-mblen: New file.
28366         * modules/unistr/u16-mblen: New file.
28367         * modules/unistr/u32-mblen: New file.
28368         * lib/unistr/u8-mblen.c: New file.
28369         * lib/unistr/u16-mblen.c: New file.
28370         * lib/unistr/u32-mblen.c: New file.
28371
28372         * modules/unistr/u8-mbtouc: New file.
28373         * modules/unistr/u16-mbtouc: New file.
28374         * modules/unistr/u32-mbtouc: New file.
28375         * lib/unistr/u8-mbtouc.c: New file.
28376         * lib/unistr/u16-mbtouc.c: New file.
28377         * lib/unistr/u32-mbtouc.c: New file.
28378
28379         * modules/unistr/u8-mbtouc-safe: New file.
28380         * modules/unistr/u16-mbtouc-safe: New file.
28381         * modules/unistr/u32-mbtouc-safe: New file.
28382         * lib/unistr/u8-mbtouc-safe.c: New file.
28383         * lib/unistr/u16-mbtouc-safe.c: New file.
28384         * lib/unistr/u32-mbtouc-safe.c: New file.
28385
28386         * modules/unistr/u8-move: New file.
28387         * modules/unistr/u16-move: New file.
28388         * modules/unistr/u32-move: New file.
28389         * lib/unistr/u8-move.c: New file.
28390         * lib/unistr/u16-move.c: New file.
28391         * lib/unistr/u32-move.c: New file.
28392         * lib/unistr/u-move.h: New file.
28393
28394         * modules/unistr/u8-next: New file.
28395         * modules/unistr/u16-next: New file.
28396         * modules/unistr/u32-next: New file.
28397         * lib/unistr/u8-next.c: New file.
28398         * lib/unistr/u16-next.c: New file.
28399         * lib/unistr/u32-next.c: New file.
28400
28401         * modules/unistr/u8-prev: New file.
28402         * modules/unistr/u16-prev: New file.
28403         * modules/unistr/u32-prev: New file.
28404         * lib/unistr/u8-prev.c: New file.
28405         * lib/unistr/u16-prev.c: New file.
28406         * lib/unistr/u32-prev.c: New file.
28407
28408         * modules/unistr/u8-set: New file.
28409         * modules/unistr/u16-set: New file.
28410         * modules/unistr/u32-set: New file.
28411         * lib/unistr/u8-set.c: New file.
28412         * lib/unistr/u16-set.c: New file.
28413         * lib/unistr/u32-set.c: New file.
28414         * lib/unistr/u-set.h: New file.
28415
28416         * modules/unistr/u8-startswith: New file.
28417         * modules/unistr/u16-startswith: New file.
28418         * modules/unistr/u32-startswith: New file.
28419         * lib/unistr/u8-startswith.c: New file.
28420         * lib/unistr/u16-startswith.c: New file.
28421         * lib/unistr/u32-startswith.c: New file.
28422         * lib/unistr/u-startswith.h: New file.
28423
28424         * modules/unistr/u8-stpcpy: New file.
28425         * modules/unistr/u16-stpcpy: New file.
28426         * modules/unistr/u32-stpcpy: New file.
28427         * lib/unistr/u8-stpcpy.c: New file.
28428         * lib/unistr/u16-stpcpy.c: New file.
28429         * lib/unistr/u32-stpcpy.c: New file.
28430         * lib/unistr/u-stpcpy.h: New file.
28431
28432         * modules/unistr/u8-stpncpy: New file.
28433         * modules/unistr/u16-stpncpy: New file.
28434         * modules/unistr/u32-stpncpy: New file.
28435         * lib/unistr/u8-stpncpy.c: New file.
28436         * lib/unistr/u16-stpncpy.c: New file.
28437         * lib/unistr/u32-stpncpy.c: New file.
28438         * lib/unistr/u-stpncpy.h: New file.
28439
28440         * modules/unistr/u8-strcat: New file.
28441         * modules/unistr/u16-strcat: New file.
28442         * modules/unistr/u32-strcat: New file.
28443         * lib/unistr/u8-strcat.c: New file.
28444         * lib/unistr/u16-strcat.c: New file.
28445         * lib/unistr/u32-strcat.c: New file.
28446         * lib/unistr/u-strcat.h: New file.
28447
28448         * modules/unistr/u8-strchr: New file.
28449         * modules/unistr/u16-strchr: New file.
28450         * modules/unistr/u32-strchr: New file.
28451         * lib/unistr/u8-strchr.c: New file.
28452         * lib/unistr/u16-strchr.c: New file.
28453         * lib/unistr/u32-strchr.c: New file.
28454
28455         * modules/unistr/u8-strcmp: New file.
28456         * modules/unistr/u16-strcmp: New file.
28457         * modules/unistr/u32-strcmp: New file.
28458         * lib/unistr/u8-strcmp.c: New file.
28459         * lib/unistr/u16-strcmp.c: New file.
28460         * lib/unistr/u32-strcmp.c: New file.
28461
28462         * modules/unistr/u8-strcpy: New file.
28463         * modules/unistr/u16-strcpy: New file.
28464         * modules/unistr/u32-strcpy: New file.
28465         * lib/unistr/u8-strcpy.c: New file.
28466         * lib/unistr/u16-strcpy.c: New file.
28467         * lib/unistr/u32-strcpy.c: New file.
28468         * lib/unistr/u-strcpy.h: New file.
28469
28470         * modules/unistr/u8-strcspn: New file.
28471         * modules/unistr/u16-strcspn: New file.
28472         * modules/unistr/u32-strcspn: New file.
28473         * lib/unistr/u8-strcspn.c: New file.
28474         * lib/unistr/u16-strcspn.c: New file.
28475         * lib/unistr/u32-strcspn.c: New file.
28476         * lib/unistr/u-strcspn.h: New file.
28477
28478         * modules/unistr/u8-strdup: New file.
28479         * modules/unistr/u16-strdup: New file.
28480         * modules/unistr/u32-strdup: New file.
28481         * lib/unistr/u8-strdup.c: New file.
28482         * lib/unistr/u16-strdup.c: New file.
28483         * lib/unistr/u32-strdup.c: New file.
28484         * lib/unistr/u-strdup.h: New file.
28485
28486         * modules/unistr/u8-strlen: New file.
28487         * modules/unistr/u16-strlen: New file.
28488         * modules/unistr/u32-strlen: New file.
28489         * lib/unistr/u8-strlen.c: New file.
28490         * lib/unistr/u16-strlen.c: New file.
28491         * lib/unistr/u32-strlen.c: New file.
28492         * lib/unistr/u-strlen.h: New file.
28493
28494         * modules/unistr/u8-strmblen: New file.
28495         * modules/unistr/u16-strmblen: New file.
28496         * modules/unistr/u32-strmblen: New file.
28497         * lib/unistr/u8-strmblen.c: New file.
28498         * lib/unistr/u16-strmblen.c: New file.
28499         * lib/unistr/u32-strmblen.c: New file.
28500
28501         * modules/unistr/u8-strmbtouc: New file.
28502         * modules/unistr/u16-strmbtouc: New file.
28503         * modules/unistr/u32-strmbtouc: New file.
28504         * lib/unistr/u8-strmbtouc.c: New file.
28505         * lib/unistr/u16-strmbtouc.c: New file.
28506         * lib/unistr/u32-strmbtouc.c: New file.
28507
28508         * modules/unistr/u8-strncat: New file.
28509         * modules/unistr/u16-strncat: New file.
28510         * modules/unistr/u32-strncat: New file.
28511         * lib/unistr/u8-strncat.c: New file.
28512         * lib/unistr/u16-strncat.c: New file.
28513         * lib/unistr/u32-strncat.c: New file.
28514         * lib/unistr/u-strncat.h: New file.
28515
28516         * modules/unistr/u8-strncmp: New file.
28517         * modules/unistr/u16-strncmp: New file.
28518         * modules/unistr/u32-strncmp: New file.
28519         * lib/unistr/u8-strncmp.c: New file.
28520         * lib/unistr/u16-strncmp.c: New file.
28521         * lib/unistr/u32-strncmp.c: New file.
28522
28523         * modules/unistr/u8-strncpy: New file.
28524         * modules/unistr/u16-strncpy: New file.
28525         * modules/unistr/u32-strncpy: New file.
28526         * lib/unistr/u8-strncpy.c: New file.
28527         * lib/unistr/u16-strncpy.c: New file.
28528         * lib/unistr/u32-strncpy.c: New file.
28529         * lib/unistr/u-strncpy.h: New file.
28530
28531         * modules/unistr/u8-strnlen: New file.
28532         * modules/unistr/u16-strnlen: New file.
28533         * modules/unistr/u32-strnlen: New file.
28534         * lib/unistr/u8-strnlen.c: New file.
28535         * lib/unistr/u16-strnlen.c: New file.
28536         * lib/unistr/u32-strnlen.c: New file.
28537         * lib/unistr/u-strnlen.h: New file.
28538
28539         * modules/unistr/u8-strpbrk: New file.
28540         * modules/unistr/u16-strpbrk: New file.
28541         * modules/unistr/u32-strpbrk: New file.
28542         * lib/unistr/u8-strpbrk.c: New file.
28543         * lib/unistr/u16-strpbrk.c: New file.
28544         * lib/unistr/u32-strpbrk.c: New file.
28545         * lib/unistr/u-strpbrk.h: New file.
28546
28547         * modules/unistr/u8-strrchr: New file.
28548         * modules/unistr/u16-strrchr: New file.
28549         * modules/unistr/u32-strrchr: New file.
28550         * lib/unistr/u8-strrchr.c: New file.
28551         * lib/unistr/u16-strrchr.c: New file.
28552         * lib/unistr/u32-strrchr.c: New file.
28553
28554         * modules/unistr/u8-strspn: New file.
28555         * modules/unistr/u16-strspn: New file.
28556         * modules/unistr/u32-strspn: New file.
28557         * lib/unistr/u8-strspn.c: New file.
28558         * lib/unistr/u16-strspn.c: New file.
28559         * lib/unistr/u32-strspn.c: New file.
28560         * lib/unistr/u-strspn.h: New file.
28561
28562         * modules/unistr/u8-strstr: New file.
28563         * modules/unistr/u16-strstr: New file.
28564         * modules/unistr/u32-strstr: New file.
28565         * lib/unistr/u8-strstr.c: New file.
28566         * lib/unistr/u16-strstr.c: New file.
28567         * lib/unistr/u32-strstr.c: New file.
28568         * lib/unistr/u-strstr.h: New file.
28569
28570         * modules/unistr/u8-strtok: New file.
28571         * modules/unistr/u16-strtok: New file.
28572         * modules/unistr/u32-strtok: New file.
28573         * lib/unistr/u8-strtok.c: New file.
28574         * lib/unistr/u16-strtok.c: New file.
28575         * lib/unistr/u32-strtok.c: New file.
28576         * lib/unistr/u-strtok.h: New file.
28577
28578         * modules/unistr/u8-uctomb: New file.
28579         * modules/unistr/u16-uctomb: New file.
28580         * modules/unistr/u32-uctomb: New file.
28581         * lib/unistr/u8-uctomb.c: New file.
28582         * lib/unistr/u16-uctomb.c: New file.
28583         * lib/unistr/u32-uctomb.c: New file.
28584
28585         * MODULES.html.sh (Unicode string functions): Add the new modules.
28586
28587 2007-01-08  Bruno Haible  <bruno@clisp.org>
28588
28589         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
28590         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
28591         subdirectories.
28592
28593 2007-01-08  Karl Berry  <karl@gnu.org>
28594
28595         * doc/error.texi: mention that main() fns must set program_name
28596         when progname is used.
28597
28598 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
28599
28600         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
28601         WCTYPE_H is empty, for the benefit of builds from non-distclean
28602         directories.  Problem reported by Eric Blake in
28603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
28604
28605 2007-01-08  Bruno Haible  <bruno@clisp.org>
28606
28607         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
28608         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
28609         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
28610         PROVIDE_CANONICALIZE_FILENAME_MODE.
28611         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
28612
28613 2007-01-08  Bruno Haible  <bruno@clisp.org>
28614
28615         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
28616         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
28617         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
28618         * lib/fts.c: Likewise.
28619         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
28620
28621 2006-12-25  Bruno Haible  <bruno@clisp.org>
28622
28623         * modules/utf8-ucs4-safe: New file.
28624         * lib/utf8-ucs4-safe.h: New file.
28625         * lib/unistr/utf8-ucs4-safe.c: New file.
28626
28627         * modules/utf16-ucs4-safe: New file.
28628         * lib/utf16-ucs4-safe.h: New file.
28629         * lib/unistr/utf16-ucs4-safe.c: New file.
28630
28631         * MODULES.html.sh (Unicode string functions): Add the new modules.
28632
28633 2007-01-08  Bruno Haible  <bruno@clisp.org>
28634
28635         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
28636         (Depends-on): Add unitypes.
28637         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28638         (u8_mbtouc_aux): Move out to separate file.
28639         (u8_mbtouc): Use ucs4_t, uint8_t types.
28640         * lib/unistr/utf8-ucs4.c: New file.
28641
28642         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
28643         (Depends-on): Add unitypes.
28644         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28645         (u16_mbtouc_aux): Move out to separate file.
28646         (u16_mbtouc): Use ucs4_t, uint16_t types.
28647         * lib/unistr/utf16-ucs4.c: New file.
28648
28649         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
28650         (Depends-on): Add unitypes.
28651         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
28652         (u8_uctomb_aux): Move out to separate file.
28653         (u8_uctomb): Use ucs4_t, uint8_t types.
28654         * lib/unistr/ucs4-utf8.c: New file.
28655
28656         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
28657         (Depends-on): Add unitypes.
28658         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
28659         (u16_uctomb_aux): Move out to separate file.
28660         (u16_uctomb): Use ucs4_t, uint16_t types.
28661         * lib/unistr/ucs4-utf16.c: New file.
28662
28663 2006-12-25  Bruno Haible  <bruno@clisp.org>
28664
28665         * modules/unitypes: New file.
28666         * lib/unitypes.h: New file.
28667         * MODULES.html.sh (func_all_modules): New section "Unicode string
28668         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
28669         this section. Add unitypes.
28670
28671 2007-01-08  Bruno Haible  <bruno@clisp.org>
28672
28673         Avoid variable names that conflict with those from libtool.
28674         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
28675         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
28676         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
28677         library_names_spec to acl_library_names_spec, hardcode_* to
28678         acl_hardcode_*.
28679         Reported by Ralf Wildenhues.
28680
28681 2007-01-08  Bruno Haible  <bruno@clisp.org>
28682
28683         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
28684         definition.
28685         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
28686         definition.
28687         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
28688         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
28689         definition.
28690         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
28691         definition.
28692         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
28693         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
28694         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
28695         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
28696         definition.
28697         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
28698         definition.
28699         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
28700         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
28701         GC_USE_<algorithm>.
28702         * lib/gc-libgcrypt.c: Likewise.
28703         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
28704         * modules/gc-arctwo (configure.ac): Likewise.
28705         * modules/gc-des (configure.ac): Likewise.
28706         * modules/gc-hmac-md5 (configure.ac): Likewise.
28707         * modules/gc-hmac-sha1 (configure.ac): Likewise.
28708         * modules/gc-md2 (configure.ac): Likewise.
28709         * modules/gc-md4 (configure.ac): Likewise.
28710         * modules/gc-md5 (configure.ac): Likewise.
28711         * modules/gc-random (configure.ac): Likewise.
28712         * modules/gc-rijndael (configure.ac): Likewise.
28713         * modules/gc-sha1 (configure.ac): Likewise.
28714
28715 2007-01-08  Bruno Haible  <bruno@clisp.org>
28716
28717         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
28718         macro definition.
28719         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
28720         definition.
28721         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
28722         definition.
28723         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
28724         * modules/fcntl-safer (configure.ac): Likewise.
28725         * modules/fopen-safer (configure.ac): Likewise.
28726         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
28727         GNULIB_FWRITEERROR macro definition.
28728
28729 2007-01-08  Bruno Haible  <bruno@clisp.org>
28730
28731         * m4/gnulib-common.m4: New file.
28732         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
28733         (func_get_filelist): Add m4/gnulib-common.m4.
28734
28735 2007-01-08  Bruno Haible  <bruno@clisp.org>
28736
28737         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
28738         command.
28739
28740 2007-01-08  Jim Meyering  <jim@meyering.net>
28741
28742         Use a more robust test for a "can't happen" condition.
28743         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
28744         narrowed the st_size value.  Presuming the "can't happen" condition
28745         is true, that narrowing could conceivably convert an invalid st_size
28746         value into a valid one.  Instead, use a change based on Matthew
28747         Woehlke's original patch.
28748
28749         Slight readability improvement: use an assert-like macro
28750         in place of literal "abort ()" uses.
28751         * lib/fts.c (fts_assert): Define.
28752         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
28753         Use this macro instead of a bare 'abort'.
28754
28755 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28756
28757         Don't worry about using IRIX 5.3's wctype.h broken definitions;
28758         simply work around them.
28759         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
28760         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
28761         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
28762         declaring.
28763         Don't bother to define as macros, since the standard doesn't require it.
28764         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
28765         longer worry about IRIX 5.3.
28766         (HAVE_WCTYPE_CTMP_BUG): Remove.
28767
28768 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28769
28770         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
28771         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
28772         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28773         Problems reported by Georg Schwarz for IRIX 5.3.
28774
28775         * gnulib-tool (autoconf_minversion): Take the maximum version number
28776         found, not the minimum.  Problem reported by James Youngman.
28777
28778 2007-01-03  Karl Berry  <karl@gnu.org>
28779
28780         * doc/error.texi: new file, explaining interaction with progname.
28781         * doc/gnulib.texi: include it.  Update copyright.
28782
28783 2007-01-03  Simon Josefsson  <simon@josefsson.org>
28784
28785         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
28786         AC_CANONICAL_HOST, to improve autobuild outputs.
28787
28788 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
28789             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28790
28791         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
28792         sockets, server sockets, and other file descriptors.  Count errors
28793         to compute the return value.  Reorder the code a bit to be easier
28794         to follow.  Don't set event bits that were not requested (except
28795         POLLERR and POLLHUP).
28796
28797 2007-01-01  Bruno Haible  <bruno@clisp.org>
28798
28799         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
28800
28801 2007-01-03  Jim Meyering  <jim@meyering.net>
28802
28803         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
28804
28805 2007-01-02  Bruno Haible  <bruno@clisp.org>
28806
28807         * modules/settime (Include): Require timespec.h.
28808         * modules/nanosleep (Include): Likewise.
28809
28810 2007-01-01  Bruno Haible  <bruno@clisp.org>
28811
28812         * gnulib-tool (func_emit_copyright_notice): Bump year.
28813         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
28814
28815 2007-01-01  Bruno Haible  <bruno@clisp.org>
28816
28817         Improve support for OpenBSD.
28818         * build-aux/config.rpath (libname_spec): Export.
28819         (library_names_spec): New variable. Export.
28820         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
28821         library_names_spec from the config.rpath output. Locate shared library
28822         through the name pattern in library_names_spec.
28823
28824 2007-01-01  Eric Blake  <ebb9@byu.net>
28825
28826         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
28827
28828 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
28831         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
28832         assume the C locale, and avoid an "eval" that could cause trouble.
28833         Problem with SORT reported by Bob Proulx.
28834
28835         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
28836         Define.  Trivial patch from Henning Nielsen Lund, originally
28837         sent to bug-grep@gnu.org today.
28838
28839 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28840
28841         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
28842         struct stat.  Problem reported by Henning Nielsen Lund.
28843         * lib/acl.c: Include acl.h first, to check interface.  Don't
28844         bother to include sys/types.h and sys/stat.h again.
28845
28846 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28847
28848         Import the following change from libc; problem reported by
28849         Sven Verdoolaege.
28850
28851         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
28852
28853         [BZ #1373]
28854         * lib/argp.h: Remove __NTH for __argp_usage inline function.
28855
28856 2006-12-28  Jim Meyering  <jim@meyering.net>
28857
28858         * build-aux/announce-gen: Do not assume that the package
28859         builds any of tar.gz, tar.bz2, and .xdelta files.
28860         Suggestion from Simon Josefsson.
28861
28862 2006-12-28  Simon Josefsson  <simon@josefsson.org>
28863
28864         * modules/announce-gen: New file.
28865
28866 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28867
28868         * lib/mbchar.h: Just include <wctype.h>; the wctype module
28869         handles its gotchas now.
28870         * lib/mbswidth.c: Likewise.
28871         * lib/wcwidth.h: Likewise.
28872         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
28873         and iswcntrl; the wctype module does this stuff now.
28874         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28876         * modules/mbchar (Depends-on): Add wctype.
28877         * modules/mbswidth (Depends-on): Likewise.
28878         * modules/wcwidth (Depends-on): Likewise.
28879
28880 2006-12-27  Eric Blake  <ebb9@byu.net>
28881
28882         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
28883         module uses more than what <wctype.h> is required to provide.
28884
28885 2006-12-26  Eric Blake  <ebb9@byu.net>
28886
28887         * gnulib-tool (sed_extract_prog): Avoid space-tab.
28888
28889 2006-12-26  Eric Blake  <ebb9@byu.net>
28890
28891         * modules/absolute-header: New module.
28892         * modules/fcntl (Depends-on): Depend on it.
28893         * modules/inttypes (Depends-on): Likewise.
28894         * modules/stdint (Depends-on): Likewise.
28895         * modules/sys_stat (Depends-on): Likewise.
28896         * modules/wctype (Depends-on): Likewise.
28897         * MODULES.html.sh (Support for building libraries and
28898         executables): Document it.
28899
28900 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28901
28902         * gnulib-tool (SED): Remove, undoing previous change.
28903         The problem was that it broke coreutils on Solaris, because
28904         "sed --posix" leaked into a makefile.
28905         (sed): New alias, if 'alias' and GNU sed.
28906
28907 2006-12-24  Jim Meyering  <jim@meyering.net>
28908
28909         Work around an fchownat bug in glibc-2.4:
28910         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
28911         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
28912         in spite of the -P option.
28913         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
28914         New macros.
28915         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
28916         * modules/openat (Files): Add lib/fchownat.c.
28917         * lib/openat.c (fchownat): Don't define here.  Move to...
28918         * lib/fchownat.c: ...this new file.
28919
28920 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28921
28922         Fix bug reported by Bruno Haible in
28923         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
28924         where quotearg.c didn't compile on Mac OS X 10.2 because it
28925         lacks <wchar.h> and wint_t.
28926         * lib/wctype_.h (__wctype_wint_t): New type.
28927         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
28928         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
28929         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
28930         Arg is now of type __wctype_wint_t, not wint_t.
28931         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
28932         substitute HAVE_WINT_T.
28933         * modules/wctype (Files): Add m4/wint_t.m4.
28934         (wctype.h): Substitute HAVE_WINT_T.
28935
28936 2006-12-23  Bruno Haible  <bruno@clisp.org>
28937
28938         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
28939
28940 2006-12-23  Bruno Haible  <bruno@clisp.org>
28941
28942         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
28943         S_ISLNK.
28944         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
28945         mingw.
28946
28947 2006-12-22  Bruno Haible  <bruno@clisp.org>
28948
28949         * lib/copy-file.c: Include acl.h.
28950         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
28951         Close the file descriptors only after being done with copy_acl.
28952         * modules/copy-file (Depends-on): Add acl.
28953
28954 2006-12-22  Bruno Haible  <bruno@clisp.org>
28955
28956         * gnulib-tool (SED): New variable.
28957         Use $SED instead of sed everywhere.
28958
28959 2006-12-22  Bruno Haible  <bruno@clisp.org>
28960
28961         * modules/no-c++: New file.
28962         * m4/no-c++.m4: New file.
28963         * MODULES.html.sh (Support for building libraries and executables):
28964         Add no-c++.
28965
28966 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28967
28968         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28969         Include <limits.h>, and use its INT_MAX to rewrite the
28970         j loop so that it does not overflow 'int'.  Problem reported by
28971         Ralf Wildenhues in
28972         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
28973         Play it safe by shifting left by 1 rather than multiplying by 2,
28974         as GCC is less likely to optimize this away when the value
28975         is signed (when it assumes overflow leads to undefined behavior).
28976         Also, don't assume time_t uses two's complement.
28977
28978 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28979
28980         * MODULES.html.sh: New module wctype.
28981         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
28982         * lib/fnmatch.c: Don't bother to include <wchar.h> before
28983         <wctype.h>, since the new wctype module should fix this.
28984         * lib/quotearg.c: Include <wctype.h> unconditionally, since
28985         the wctype module should arrange for it.
28986         * lib/regex_internal.h: Likewise.
28987         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
28988         since the wctype module should handle this now.
28989         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
28990         * modules/fnmatch (Depends-on): Add wctype.
28991         * modules/quotearg (Depends-on): Likewise.
28992         * modules/regex (Depends-on): Likewise.
28993
28994 2006-12-19  Bruno Haible  <bruno@clisp.org>
28995
28996         * lib/strdup.h [C++]: Wrap definitions in extern "C".
28997         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
28998
28999 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29000
29001         * modules/savewd (Depends-on): Fix dependency on fcntl.
29002
29003 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29004
29005         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
29006         conforms to C99, rather than relying on the user's environment
29007         setting of STDINT_H.
29008
29009 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29010         and Eric Blake  <ebb9@byu.net>
29011
29012         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
29013         This is more consistent with the other defines here.
29014         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
29015         Port to z/OS.  Problem reported by Paul Gilmartin.
29016         Change local vars to use gl_ prefix rather than ac_.
29017         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
29018         with other defines.
29019         * modules/double-slash-root: New module.
29020         * modules/dirname (Files): Remove m4/double-slash-root.m4.
29021         (Depends-on): Add double-slash-root.
29022         * MODULES.html.sh (File system functions): Mention new module.
29023
29024 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
29025
29026         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
29027         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
29028         This is for the benefit of gzip, which doesn't do i18n.
29029
29030 2006-12-12  Jim Meyering  <jim@meyering.net>
29031
29032         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
29033         Reported by Andreas Schwab <schwab@suse.de>.
29034
29035 2006-12-12  Bruno Haible  <bruno@clisp.org>
29036
29037         Merge these changes.
29038         2006-09-05  Bruno Haible  <bruno@clisp.org>
29039         * lib/iconvme.c (iconv_string): No need to save and restore errno when
29040         iconv_alloc succeeded.
29041         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
29042         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
29043         test for " && dest " at the end - dest is always != NULL there. Call
29044         iconv with 4xNULL arguments initially, to reset the state. Call iconv
29045         with 2xNULL arguments, also to flush the state storage. Handle the
29046         IRIX iconv behaviour. Realloc the final result, to throw away unused
29047         memory.
29048
29049 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
29050
29051         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
29052         and fchmodat unconditionally, since glibc 2.4 has them.
29053         Problem reported by Arkadiusz Miskiewicz.
29054
29055 2006-12-10  Bruno Haible  <bruno@clisp.org>
29056
29057         * gnulib-tool (func_import): Show the include files only for those
29058         modules that are copied and specified.
29059         Reported by Karl Berry.
29060
29061 2006-12-08  Jim Meyering  <jim@meyering.net>
29062
29063         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
29064         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
29065
29066         * build-aux/announce-gen: Add two new options, both optional:
29067         --bootstrap-tools=TOOL_LIST
29068               a comma-separated list of tools, e.g.,
29069               autoconf,automake,bison,gnulib
29070         --gnulib-snapshot-date=DATE
29071               if gnulib is in the bootstrap tool list,
29072               then report this as the snapshot date.
29073               If not specified, use the current date/time.
29074               If you specify a date here, be sure it's UTC.
29075
29076 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29077
29078         * tests/test-argp-2.sh: Fix test to match actual output.
29079         (func_compare): Fix sed script to be portable.
29080
29081 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29082
29083         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
29084         workaround for this case.  It is not autoconfigured now; offhand
29085         it's hard to see how to autoconfigure it.
29086
29087 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29088
29089         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
29090         a directory that is about to be chowned.  Such a directory's
29091         initial file permissions should permit the owner only and this
29092         should not be changed until after the chown, since the group and
29093         other bits would be incorrect if they granted permission before
29094         the chown.
29095
29096         Fix porting problem for iswctype reported by Georg Schwarz in:
29097         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
29098         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
29099         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
29100         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
29101         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29102
29103 2006-12-03  Jim Meyering  <jim@meyering.net>
29104
29105         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
29106         p->fts_statp may not yet be defined.
29107         (fts_read): Instead, set it in the caller, once p->fts_statp is
29108         sure to be defined, and corresponds to a top-level directory.
29109         This bug made du -x fail.  Here's the coreutils test case:
29110         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
29111         Reported by Mike Frysinger.
29112
29113 2006-12-01  Jim Meyering  <jim@meyering.net>
29114
29115         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
29116         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
29117         Reported by Simon Josefsson.
29118
29119 2006-11-30  Jim Meyering  <jim@meyering.net>
29120
29121         * m4/warning.m4: Use the all-permissive copyright notice
29122         recommended by RMS (rather than LGPL).
29123         * m4/vararrays.m4: Likewise.
29124         * m4/flexmember.m4: Likewise.
29125
29126 2006-11-29  Bruno Haible  <bruno@clisp.org>
29127
29128         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29129         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
29130         using +=.
29131         Reported by Simon Josefsson <simon@josefsson.org>.
29132
29133 2006-11-28  James Youngman <jay@gnu.org>
29134
29135         * README: Advise users that they might find the bug-gnulib@gnu.org
29136         and autotools-announce@gnu.org mailing lists useful.
29137
29138 2006-11-28  Bruno Haible  <bruno@clisp.org>
29139
29140         * m4/ptrdiff_max.m4: Remove file.
29141
29142 2006-11-21  Bruno Haible  <bruno@clisp.org>
29143
29144         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
29145         _AC_COMPUTE_INT.
29146         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29147         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
29148         _AC_COMPUTE_INT.
29149         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29150         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
29151         _AC_COMPUTE_INT.
29152         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29153
29154 2006-11-28  Jim Meyering  <jim@meyering.net>
29155
29156         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
29157         warning from "gcc -Wshadow" about shadowing the builtin.
29158
29159 2006-11-27  Bruno Haible  <bruno@clisp.org>
29160
29161         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
29162         _AC_COMPUTE_INT.
29163         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29164
29165 2006-11-27  Bruno Haible  <bruno@clisp.org>
29166             Paul Eggert  <eggert@cs.ucla.edu>
29167
29168         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
29169
29170 2006-11-26  Bruno Haible  <bruno@clisp.org>
29171
29172         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29173         noinst_LTLIBRARIES.
29174
29175 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29176             Bruno Haible  <bruno@clisp.org>
29177
29178         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
29179         if compiling with "gcc -ansi".
29180
29181 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29182
29183         Fix some incompatibilities with gcc -ansi -pedantic.
29184         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
29185         if compiling pedantically with GCC, unless it's C99 or later.
29186         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
29187         it mishandles gcc -ansi -pedantic as well.
29188         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
29189         if gcc -pedantic.
29190         * lib/regexec.c (check_node_accept_bytes): Don't use auto
29191         initializers for struct if -pedantic, unless it's C99 or later.
29192
29193 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
29194
29195         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
29196         Don't close an fd more than once. Identical atimes indicate
29197         success, not failure.
29198
29199 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
29200
29201         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
29202
29203 2006-11-23  Jim Meyering  <jim@meyering.net>
29204
29205         * build-aux/announce-gen: New file.  From coreutils.
29206
29207 2006-11-22  Jim Meyering  <jim@meyering.net>
29208
29209         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
29210         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
29211         (fts_read): Use a temporary to narrow the overused st_size member
29212         before using it in a switch statement.  Reported by Matthew Woehlke.
29213
29214         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
29215         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29216
29217 2006-11-20  Bruno Haible  <bruno@clisp.org>
29218
29219         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
29220         changequote instead of pairs of brackets.
29221         Reported by Andreas Schwab <schwab@suse.de>.
29222
29223 2006-11-21  Jim Meyering  <jim@meyering.net>
29224
29225         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
29226         so as to remain compatible with older compilers.
29227         Patch from Michael Deutschmann.
29228
29229 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29230
29231         * MODULES.html.sh (File system functions): Add openat.
29232
29233         * lib/openat.h (rpl_fstatat): New macro, if
29234         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
29235         (fstatat): Define to rpl_fstatat under the same conditions,
29236         unless COMPILING_FSTATAT.
29237         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
29238         seems to have the bug.
29239         * lib/fstatat.c: New file.
29240         * modules/openat (Files): Add it.
29241
29242 2006-11-20  Bruno Haible  <bruno@clisp.org>
29243
29244         * Makefile: New file.
29245
29246 2006-11-20  Jim Meyering  <jim@meyering.net>
29247
29248         The beginnings of syntax-related checks for gnulib.
29249         * lib/Makefile: New file.
29250         * lib/t-idcache: New script.  Ensure that the two halves of
29251         idcache.c stay in sync.
29252
29253         * lib/idcache.c: Adjust comments in user- and group- portions to
29254         be more accurate, and to be consistent with one another.
29255
29256 2006-11-20  Jim Meyering  <jim@meyering.net>
29257
29258         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
29259         continue using the flexible array member (thus, this module performs
29260         half as many malloc calls), with the addition that...
29261         (getgroup, getuser): Consistently record a non-match via an empty
29262         "name" string, and map an empty string match to a NULL return value.
29263         * modules/idcache (Depends-on): Re-add flexmember.
29264
29265         * lib/idcache.c (getuser): Remove all uses of the register keyword.
29266         (getuidbyname, getgroup, getgidbyname): Likewise.
29267
29268         Use cleaner syntax: NULL rather than 0.
29269         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
29270
29271 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
29274         It mishandled the case where the group was missing.
29275         Problem reported by Greg Schafer.
29276         * modules/idcache: Likewise.
29277
29278 2006-11-18  Jim Meyering  <jim@meyering.net>
29279
29280         * check-module (%exempt_header): Add exception for some
29281         conditionally-included headers.
29282
29283         * modules/i-ring (Depends-on): Add verify.
29284         (License): Change to LGPL.
29285
29286 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29287
29288         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
29289         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
29290         and inttostr.h.  Use snprintf rather than uinttostr, so that
29291         LGPLed code doesn't depend on GPLed.
29292
29293 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29294
29295         * modules/inline (License): Change from GPL to LGPL.
29296
29297 2006-11-17  Jim Meyering  <jim@meyering.net>
29298
29299         * modules/d-type (License): Switch to LGPL.
29300
29301 2006-11-15  Bruno Haible  <bruno@clisp.org>
29302
29303         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
29304
29305 2006-11-15  Eric Blake  <ebb9@byu.net>
29306
29307         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
29308         the module dependency.
29309
29310 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29311             Bruno Haible  <bruno@clisp.org>
29312
29313         * gnulib-tool (func_create_testdir): Add license consistency check.
29314
29315 2006-11-15  Eric Blake  <ebb9@byu.net>
29316
29317         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
29318         random "(cached)" in configure output.
29319
29320 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29321
29322         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
29323         test for conforming inttypes.h is both announced and cached.
29324
29325         * MODULES.html.sh (seen_modules, seen_files): New variables.
29326         (func_module): Rewrite to use a few less gnulib-tool and sed
29327         invocations.  Avoid a couple of quadratic algorithms for ...
29328         (missed_modules, missed_files): ... these, with ...
29329         (func_append, func_tmpdir): ... these new functions, from
29330         gnulib-tool.  Analogously, install traps for cleanup.
29331
29332         * tests/test-gc.c (main): Remove unused variables.
29333         * tests/test-read-file.c: Include stdlib.h, for 'free'.
29334
29335 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
29336
29337         * modules/inttostr (License): Change to LGPL.
29338
29339 2006-11-14  Eric Blake  <ebb9@byu.net>
29340
29341         * modules/tempname (License): Change to LGPL.
29342
29343 2006-11-14  Eric Blake  <ebb9@byu.net>
29344
29345         * doc/functions.texi (Function Portability): *printf functions on
29346         Cygwin now understand all POSIX size specifiers.
29347
29348 2006-11-14  Bruno Haible  <bruno@clisp.org>
29349
29350         * modules/c-ctype (License): Change to LGPL.
29351
29352 2006-11-12  Bruno Haible  <bruno@clisp.org>
29353
29354         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29355         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
29356         for GNOME libraries, for which the include files are installed in
29357         subdirectories of $prefix/include.
29358
29359 2006-11-12  Bruno Haible  <bruno@clisp.org>
29360
29361         * m4/lib-link.m4: Require at least autoconf-2.54.
29362         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
29363         name to underscores for the --with option.
29364
29365 2006-11-13  Bruno Haible  <bruno@clisp.org>
29366
29367         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
29368         the tests directory.
29369         Reported by Ralf Wildenhues.
29370
29371 2006-11-13  Bruno Haible  <bruno@clisp.org>
29372
29373         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
29374         (func_emit_initmacro_end): Undo the override here.
29375         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
29376         Works around the famous automake error in coreutils.
29377
29378 2006-11-13  Eric Blake  <ebb9@byu.net>
29379
29380         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
29381         element, not its node.
29382
29383 2006-11-12  Bruno Haible  <bruno@clisp.org>
29384
29385         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
29386         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
29387
29388 2006-11-12  Bruno Haible  <bruno@clisp.org>
29389
29390         * gnulib-tool: New option --local-symlink.
29391         (func_usage): Document it.
29392         (lsymbolic): New variable.
29393         (func_import, func_create_testdir): If --symlink was not specified,
29394         test whether --local-symlink was specified and the file comes from
29395         the local_gnulib_dir.
29396
29397 2006-11-12  Bruno Haible  <bruno@clisp.org>
29398
29399         * gnulib-tool (func_ln): New function.
29400         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
29401
29402 2006-11-12  Bruno Haible  <bruno@clisp.org>
29403
29404         Finish support for source files in subdirectories.
29405         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
29406         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
29407         AUTOMAKE_OPTIONS.
29408         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
29409
29410 2006-11-12  Bruno Haible  <bruno@clisp.org>
29411
29412         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29413         EXTRA_lib_SOURCES augmentation.
29414         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
29415
29416 2006-11-12  Jim Meyering  <jim@meyering.net>
29417
29418         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
29419         file descriptors.  This also averts a failure on systems with
29420         native openat support when a traversed directory lacks "x" access.
29421         * lib/fts_.h: Include "i-ring.h"
29422         (struct FTS) [fts_fd_ring]: New member.
29423         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
29424         (FCHDIR): Add parentheses.
29425         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
29426         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
29427         When descending, rather than simply closing the previous
29428         fts_cwd_fd value, push that file descriptor onto the ring.
29429         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
29430         (fts_open): Initialize the new fd_ring member.
29431         (fts_close): Clear the ring.
29432         (fts_safe_changedir): When possible, use our new fd_ring to skip
29433         the diropen and fstat and dev/ino comparison that would normally
29434         accompany a virtual `chdir ("..")'.
29435
29436         * modules/fts (Depends-on): Add i-ring.
29437         * modules/i-ring: New module.
29438         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
29439         * m4/i-ring.m4: New file.
29440
29441 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29442
29443         * gnulib-tool (func_create_testdir): Fix replacement of
29444         `build-aux' in configure.ac.  Run autotools in gltests
29445         subdirectory.
29446         (func_create_testdir, func_create_megatestdir, test): There is
29447         no need for '--force' in most autotool invocations in a new
29448         tree.  Actually fail the whole test if any of the tools, or the
29449         configure or make stages fail.
29450
29451         Sync from Automake.
29452         * build-aux/gnupload: Revert last change.  Add pointer to upload
29453         instructions of the GNU Maintenance Instructions.
29454         Suggestion by Karl Berry.
29455
29456 2006-11-10  Jim Meyering  <jim@meyering.net>
29457
29458         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
29459
29460 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29461
29462         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
29463         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
29464         (bind_textdomain_codeset) [! ENABLE_NLS]:
29465         Evaluate all the arguments.  That way, callers get compatible behavior
29466         if the arguments have side effects.  Also, it avoids some GCC
29467         diagnostics in some cases; Joel E. Denny reported problems when Bison
29468         was configured with --enable-gcc-warnigs.
29469
29470 2006-11-10  Jim Meyering  <jim@meyering.net>
29471
29472         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
29473         relevant options in CFLAGS (like -O, -fno-inline) are taken into
29474         account.
29475
29476 2006-11-10  Jim Meyering  <jim@meyering.net>
29477
29478         * modules/inline: New file/module.
29479         * modules/xalloc (Files): Remove m4/inline.m4.
29480         (Depends-on): Add inline, instead.
29481         * modules/oset: Likewise.
29482         * modules/list: Likewise.
29483
29484 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29485
29486         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
29487         Problem reported by Matthew Woehlke.
29488
29489 2006-11-09  Bruno Haible  <bruno@clisp.org>
29490
29491         * lib/tempname.c (gen_tempname): Remove variant that invokes
29492         __gen_tempname.
29493         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
29494         __gen_tempname.
29495
29496 2006-11-08  Bruno Haible  <bruno@clisp.org>
29497
29498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
29499         to 'yes' instead of 'cross-compiling'.
29500
29501 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
29502
29503         * lib/quotearg.h (quotearg_free): New decl.
29504         * lib/quotearg.c (quotearg_free): New function.
29505         (slot0, nslots, slotvec0, slotvec):
29506         Now file-scope so that quotearg_free can get at them.
29507
29508 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29509
29510         Sync from Automake.
29511         * build-aux/gnupload: Add missing 'gnu' to example URL.
29512         Report by Karl Berry.
29513
29514 2006-11-08  Bruno Haible  <bruno@clisp.org>
29515
29516         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
29517         Suggested by Paul Eggert.
29518
29519 2006-11-08  Jim Meyering  <jim@meyering.net>
29520
29521         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
29522         It's already included if !_LIBC.
29523         (fts_safe_changedir): Add a comment.
29524
29525 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29526
29527         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
29528         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
29529         Matthew Woehlke.
29530
29531         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
29532         definitions up, to avoid colliding with change below.
29533         (static_inline) [HAVE_INLINE]: New macro.
29534         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
29535         Provide extern decls when !HAVE_INLINE.  Do not define unless
29536         static_inline is defined, either by us or by xmalloc.c.  Use
29537         static_inline rather than static inline.
29538         (XCALLOC): Optimize sizeof(T) = 1 case.
29539         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
29540
29541 2006-11-07  Bruno Haible  <bruno@clisp.org>
29542
29543         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
29544         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
29545         AC_C_INLINE.
29546         * modules/xalloc (Files): Add m4/inline.m4.
29547
29548 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29549
29550         * README: Fix typo.
29551         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
29552         (Miscellanous Notes): ...from this.
29553
29554 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
29557         Mention that offsetof should be used instead of sizeof.
29558         From Bruno Haible.
29559
29560 2006-11-07  Bruno Haible  <bruno@clisp.org>
29561
29562         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
29563
29564 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29565
29566         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29567         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
29568         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
29569         (gl_tree_add_before, gl_tree_add_after):
29570         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
29571         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
29572         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
29573         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
29574         (gl_linked_add_after, gl_linked_add_at): Likewise.
29575         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
29576         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
29577         (gl_tree_add_before, gl_tree_add_after): Likewise.
29578         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
29579         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
29580         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29581
29582 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29583
29584         * lib/gl_oset.h: Use C comment style, not C++ comment style.
29585
29586 2006-11-06  Bruno Haible  <bruno@clisp.org>
29587
29588         * m4/inline.m4: New file.
29589         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
29590         * modules/list (Files): Add m4/inline.m4.
29591         * modules/oset (Files): Likewise.
29592
29593 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29594
29595         * lib/idcache.c: Include <stddef.h>, for offsetof.
29596         (struct userid.name): Change from char * to a flexible array member.
29597         All uses changed.
29598         * modules/idcache (Depends-on): Add flexmember.
29599
29600         * MODULES.html.sh (Core language properties): New module flexmember.
29601         * modules/flexmember, m4/flexmember.m4: New files.
29602
29603         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
29604         inline functions that are identical with the old xnmalloc_inline,
29605         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
29606         that we can avoid some unnecessary integer multiplications and
29607         divisions in the common case where the element size is known at
29608         compile time.
29609         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
29610         needed.
29611         (xnboundedmalloc): Remove.
29612         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
29613         arguments, for consistency with rest of this header.
29614         (xcharalloc): Rewrite using XNMALLOC.
29615         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
29616         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
29617         versions have been moved to lib/xalloc.h and renamed to be the
29618         non-*_inline versions.
29619         (xmalloc, xrealloc): Implement without reference to the xnmalloc
29620         and xnrealloc functions, since those functions are now inline and
29621         now call us.
29622         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
29623         renaming described above.
29624         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
29625         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
29626         captures the dependency in AC_C_INLINE.
29627
29628         New module canonicalize-lgpl, proposed by Charles Wilson in
29629         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
29630         with a few small changes afterwards.
29631         * MODULES.html.sh (File system functions): New module
29632         canonicalize-lgpl.
29633         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
29634         and canonicalize_file_name.
29635         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
29636         * modules/canonicalize-lgpl: New files.
29637
29638 2006-11-05  Bruno Haible  <bruno@clisp.org>
29639
29640         * gnulib-tool (func_import, func_create_testdir): Create directories
29641         also for files in subdirectories of lib/.
29642
29643 2006-11-05  Bruno Haible  <bruno@clisp.org>
29644
29645         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
29646         ANSI C compliant.
29647
29648 2006-11-03  Bruno Haible  <bruno@clisp.org>
29649
29650         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29651         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
29652         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
29653         (xnboundedmalloc): New inline function.
29654         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
29655         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
29656         xmalloc.
29657         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
29658         xmalloc.
29659         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
29660         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
29661         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
29662         xmalloc.
29663         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29664         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
29665         xmalloc.
29666         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
29667         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29668         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
29669         xmalloc.
29670         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29671         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
29672         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29673         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
29674         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
29675         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
29676         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
29677
29678 2006-11-03  Bruno Haible  <bruno@clisp.org>
29679
29680         * lib/c-ctype.h [C++]: Define functions without name mangling.
29681         * lib/fwriteerror.h [C++]: Likewise.
29682         * lib/gcd.h [C++]: Likewise.
29683         * lib/linebreak.h [C++]: Likewise.
29684
29685 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29686
29687         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
29688         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
29689         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
29690         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29691         Check for functions and headers just once.
29692         Check for declaration of canonicalize_file_name.
29693         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
29694
29695 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29696
29697         * gnulib-tool (func_import): Fix typo in actioncmd.
29698
29699 2006-11-02  Bruno Haible  <bruno@clisp.org>
29700
29701         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
29702         newline sequence in the Makefile.am snippet as a space, like "make"
29703         does.
29704         Reported by Roger Persson <perrog@gmail.com>.
29705
29706 2006-11-01  Bruno Haible  <bruno@clisp.org>
29707
29708         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
29709         already declared in <string.h>.
29710         * lib/strcase.h (strncasecmp): Don't declare it if yes.
29711
29712 2006-11-01  Bruno Haible  <bruno@clisp.org>
29713
29714         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
29715         * lib/strcase.h: Include <string.h>.
29716         (strcasecmp): Define to rpl_strcasecmp here.
29717
29718 2006-11-01  Bruno Haible  <bruno@clisp.org>
29719
29720         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
29721
29722 2006-11-01  Eric Blake  <ebb9@byu.net>
29723
29724         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
29725
29726         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
29727
29728 2006-10-29  Bruno Haible  <bruno@clisp.org>
29729
29730         Make it compile in C++ mode.
29731         * lib/full-write.c (full_rw): Add a cast.
29732
29733 2006-11-01  Bruno Haible  <bruno@clisp.org>
29734
29735         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
29736         be POSIX compliant.
29737         Reported by Roger Persson <perrog@gmail.com>.
29738
29739 2006-11-01  Eric Blake  <ebb9@byu.net>
29740
29741         * lib/getopt_.h: Fix comments.
29742
29743 2006-10-31  Eric Blake  <ebb9@byu.net>
29744
29745         * modules/tmpdir (Depends-on): Add sys_stat.
29746         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
29747         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
29748         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
29749         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
29750         tempname.
29751
29752 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29753
29754         Avoid some C++ diagnostics reported by Bruno Haible.
29755         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
29756         xmalloc.
29757         (quotearg_alloc): Use xcharalloc rather than xmalloc.
29758         (struct slotvec): Move to top level.
29759         (quotearg_n_options): Rewrite to avoid xmalloc.
29760         * lib/xalloc.h (xcharalloc): New function.
29761         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
29762         [defined __cplusplus]: Add function template that provides result
29763         type propagation.  This part of the change is from Bruno Haible.
29764
29765 2006-10-29  Bruno Haible  <bruno@clisp.org>
29766
29767         Make it compile in C++ mode.
29768         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
29769         * lib/strnlen1.c (strnlen1): Cast memchr result.
29770         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
29771         * lib/clean-temp.c (string_equals, string_hash): Add casts.
29772         (create_temp_dir): Rename local variable 'template'.
29773         (compile_csharp_using_sscli): Add cast.
29774         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
29775         * lib/findprog.c (find_in_path): Likewise.
29776         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
29777         * lib/wait-process.c (register_slave_subprocess): Likewise.
29778
29779 2006-10-22  Bruno Haible  <bruno@clisp.org>
29780
29781         * modules/tsearch: New file.
29782         * lib/tsearch.h: New file.
29783         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
29784         * m4/tsearch.m4: New file.
29785         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
29786
29787 2006-10-29  Eric Blake  <ebb9@byu.net>
29788
29789         * lib/arcfour.c: Assume config.h.
29790         * lib/arctwo.c: Likewise.
29791         * lib/base64.c: Likewise.
29792         * lib/check-version.c: Likewise.
29793         * lib/crc.c: Likewise.
29794         * lib/des.c: Likewise.
29795         * lib/gc-gnulib.c: Likewise.
29796         * lib/gc-libgcrypt.c: Likewise.
29797         * lib/gc-pbkdf2-sha1.c: Likewise.
29798         * lib/getaddrinfo.c: Likewise.
29799         * lib/getdelim.c: Likewise.
29800         * lib/getline.c: Likewise.
29801         * lib/hmac-md5.c: Likewise.
29802         * lib/hmac-sha1.c: Likewise.
29803         * lib/iconvme.c: Likewise.
29804         * lib/md2.c: Likewise.
29805         * lib/md4.c: Likewise.
29806         * lib/memxor.c: Likewise.
29807         * lib/read-file.c: Likewise.
29808         * lib/readline.c: Likewise.
29809         * lib/rijndael-alg-fst.c: Likewise.
29810         * lib/rijndael-api-fst.c: Likewise.
29811         * lib/xgetdomainname.c: Likewise.
29812
29813 2006-10-28  Eric Blake  <ebb9@byu.net>
29814
29815         * lib/xstrndup.c: Assume config.h.
29816
29817 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29818
29819         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
29820         stat-macros.h is now for our own macros, whereas stat_h is for
29821         macros in the <sys/stat.h> name space.
29822         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
29823         (STAT_MACROS_H): Remove.
29824         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
29825         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
29826         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
29827         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
29828         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
29829         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
29830         Move these macros to ...
29831         * lib/stat_.h: here.  Don't include stat-macros.h.
29832         * lib/canonicalize.c: Don't include stat-macros.h.
29833         * lib/chown.c: Likewise.
29834         * lib/euidaccess.c: Likewise.
29835         * lib/file-type.c: Likewise.
29836         * lib/filemode.c: Likewise.
29837         * lib/glob.c: Likewise.
29838         * lib/isapipe.c: Likewise.
29839         * lib/lchown.c: Likewise.
29840         * lib/lstat.c: Likewise.
29841         * lib/mkdir-p.c: Likewise.
29842         * lib/rmdir.c: Likewise.
29843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
29844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
29845         unless mkdir isn't declared, to speed up 'configure'.
29846         Always create sys/stat.h, since it's unlikely any real sys/stat.h
29847         would define all the S_* symbols.
29848         * modules/canonicalize (Depends-on):
29849         Depend on sys_stat, not stat-macros.
29850         * modules/chown: Likewise.
29851         * modules/euidaccess: Likewise.
29852         * modules/filemode: Likewise.
29853         * modules/file-type: Likewise.
29854         * modules/glob: Likewise.
29855         * modules/isapipe: Likewise.
29856         * modules/lchown: Likewise.
29857         * modules/lstat: Likewise.
29858         * modules/mkancesdirs: Likewise.
29859         * modules/rmdir: Likewise.
29860         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
29861         * modules/modechange: Likewise.
29862         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
29863         (configure.ac): Remove gl_STAT_MACROS.
29864         * modules/sys_stat (Depends-on): Remove stat-macros.
29865
29866 2006-10-27  Bruno Haible  <bruno@clisp.org>
29867
29868         * m4/signed.m4: Remove file.
29869         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
29870         invocation.
29871         * modules/vasnprintf (Files): Remove m4/signed.m4.
29872
29873 2006-10-27  Bruno Haible  <bruno@clisp.org>
29874
29875         Update to GNU gettext 0.16.
29876         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
29877         m4/inttypes-h.m4, m4/signed.m4.
29878         * m4/gettext.m4: Update to GNU gettext 0.16.
29879         * m4/intl.m4: New file, from GNU gettext.
29880         * m4/intldir.m4: New file, from GNU gettext.
29881         * config/srclist.txt: Update
29882
29883 2006-10-27  Eric Blake  <ebb9@byu.net>
29884
29885         * MODULES.html.sh: Document tempname.
29886         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
29887         dependencies.
29888         (Files): Move lib/tempname.c...
29889         * modules/tempname: ...to this new module.
29890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
29891         (gl_PREREQ_TEMPNAME): Move...
29892         * m4/tempname.m4: ...to this new file.
29893         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
29894         * modules/sys_stat (Depends-on): Add stat-macros.
29895         * lib/stat_.h (includes): Pick up stat macros.
29896         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
29897         if stat macros are broken.
29898         * lib/tempname.c (includes): No need to include "stat-macros.h".
29899         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
29900         (direxists, __path_search) [!_LIBC]: Don't compile these in
29901         gnulib; the tmpdir module covers that.
29902         * lib/tempname.h: New file.
29903
29904 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29905
29906         * COPYING: Explain how gnulib-tool converts licence headers.
29907         Almost all wording by Eric Blake.
29908
29909 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29910
29911         * lib/mbchar.h (is_basic_table): Make read-only.
29912         * lib/mbchar.c (is_basic_table): Likewise.
29913         Reported by John Darrington.
29914
29915 2006-10-25  Bruno Haible  <bruno@clisp.org>
29916
29917         * lib/progname.h (set_program_name): Undefine before defining.
29918
29919 2006-10-25  Bruno Haible  <bruno@clisp.org>
29920
29921         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
29922         false for non-gcc C++ compilers.
29923         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29924
29925 2006-10-24  Bruno Haible  <bruno@clisp.org>
29926
29927         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
29928         iconv implementations like Irix iconv.
29929
29930 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29931
29932         * modules/vararrays: New file.
29933         * m4/vararrays.m4: New file, taken from diffutils.
29934         * MODULES.html.sh: New module vararrays.
29935
29936 2006-10-24  Karl Berry  <karl@gnu.org>
29937
29938         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
29939         Don't call GNU Unix.
29940
29941 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29942
29943         * users.txt: Add Libtool.
29944
29945         Sync from Libtool:
29946
29947         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29948
29949         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
29950         to gnulib's policy of including config.h unconditionally.
29951
29952 2006-10-24  Bruno Haible  <bruno@clisp.org>
29953
29954         * modules/wcwidth (Files): Add m4/wint_t.m4.
29955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
29956         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
29957
29958 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29959
29960         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
29961         to pacify GCC with some -W flags enabled.  Problem reported by
29962         Bruno Haible.
29963
29964 2006-10-24  Jim Meyering  <jim@meyering.net>
29965
29966         * MODULES.html.sh: Remove uinttostr.  It's not a module.
29967         Reported by Karl Berry.
29968
29969 2006-10-23  Bruno Haible  <bruno@clisp.org>
29970
29971         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
29972
29973 2006-10-24  Bruno Haible  <bruno@clisp.org>
29974
29975         * lib/gl_list.h: Use C comment style, not C++ comment style.
29976
29977 2006-10-23  Eric Blake  <ebb9@byu.net>
29978
29979         * lib/getaddrinfo.c (includes): Add missing include.
29980
29981 2006-10-23  Bruno Haible  <bruno@clisp.org>
29982             Paul Eggert  <eggert@cs.ucla.edu>
29983
29984         Ability to rename obstack_free.
29985         * lib/obstack.h (__obstack_free): New macro. Declare instead of
29986         obstack_free.
29987         (obstack_free): Invoke the __obstack_free macro.
29988         * lib/obstack.c (obstack_free): Use __obstack_free macro.
29989
29990 2006-10-23  Bruno Haible  <bruno@clisp.org>
29991             Paul Eggert  <eggert@cs.ucla.edu>
29992
29993         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
29994         __argc, __argv from the declaration. (They are defined as macros on
29995         mingw.)
29996
29997 2006-10-22  Bruno Haible  <bruno@clisp.org>
29998
29999         * doc/gnulib-intro.texi: New file.
30000         * doc/gnulib.texi: Include it.
30001
30002 2006-10-21  Bruno Haible  <bruno@clisp.org>
30003
30004         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
30005         "Introduction", "Miscellanous Notes", "Particular Modules".
30006
30007 2006-10-21  Bruno Haible  <bruno@clisp.org>
30008
30009         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30010         Change mostlyclean-local rule to avoid sh syntax error from bash
30011         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
30012
30013 2006-10-23  Jim Meyering  <jim@meyering.net>
30014
30015         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
30016         in place of snprintf.
30017
30018         * modules/inttostr (Files): Add lib/uinttostr.c.
30019         * lib/uinttostr.c (inttostr): New file/function.
30020         * lib/inttostr.h (uinttostr): Declare.
30021         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
30022         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
30023         Add uinttostr.
30024         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
30025
30026 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30027
30028         * lib/canonicalize.c (ELOOP): Define if not already defined.
30029         Problem reported by Bruno Haible in
30030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
30031
30032 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30033
30034         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
30035         Problem reported by Perry Smith and Ville Laurikari.
30036
30037         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
30038         uses.
30039
30040 2006-10-19  Bruno Haible  <bruno@clisp.org>
30041
30042         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
30043         for mingw.
30044
30045 2006-10-19  Bruno Haible  <bruno@clisp.org>
30046
30047         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
30048         Needed for mingw.
30049
30050 2006-10-19  Bruno Haible  <bruno@clisp.org>
30051
30052         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
30053
30054 2006-10-19  Bruno Haible  <bruno@clisp.org>
30055
30056         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
30057         it.
30058
30059 2006-10-19  Bruno Haible  <bruno@clisp.org>
30060
30061         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
30062         invocation.
30063
30064 2006-10-19  Bruno Haible  <bruno@clisp.org>
30065
30066         * gnulib-tool (func_create_testdir): Don't include ftruncate and
30067         mountlist by default.
30068
30069 2006-10-16  Bruno Haible  <bruno@clisp.org>
30070
30071         * lib/c-strstr.c: Include c-strstr.h.
30072
30073 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30074
30075         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
30076         in a slash.
30077
30078 2006-10-18  Bruno Haible  <bruno@clisp.org>
30079
30080         * lib/lock.h [C++]: Wrap definitions in extern "C".
30081
30082 2006-10-18  Bruno Haible  <bruno@clisp.org>
30083
30084         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
30085         gl_LIBOBJS list.
30086
30087 2006-10-18  Bruno Haible  <bruno@clisp.org>
30088
30089         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
30090
30091 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
30092
30093         * lib/xstrtol.h: Include gettext.h.
30094         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
30095         Problem reported by Eric Blake.
30096         * modules/xstrtol (Depends-on): Add gettext-h.
30097
30098 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
30099
30100         * lib/strftime.c (advance): New macro.
30101         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
30102         incomplete type, so you can't add 0 to it.  Problem and patch
30103         reported by Eelco Dolstra for dietlibc.
30104
30105 2006-10-18  Jim Meyering  <jim@meyering.net>
30106
30107         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
30108         type for a local, and rename it: s/up/user_proc/.
30109
30110 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
30111
30112         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
30113         READ_UTMP_USER_PROCESS.
30114         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
30115
30116 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30117
30118         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
30119         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
30120
30121 2006-10-17  Eric Blake  <ebb9@byu.net>
30122
30123         * lib/sigprocmask.c (sigprocmask): Fix typo.
30124
30125         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
30126
30127         * modules/clean-temp (Makefile.am): Don't add to make output...
30128         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
30129         config.h.
30130
30131 2006-10-17  Bruno Haible  <bruno@clisp.org>
30132
30133         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
30134         differently if DEFAULT_TEXT_DOMAIN is set.
30135
30136 2006-10-16  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/clean-temp.c: Include fwriteerror.h.
30139
30140 2006-10-16  Bruno Haible  <bruno@clisp.org>
30141
30142         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
30143
30144 2006-10-16  Bruno Haible  <bruno@clisp.org>
30145
30146         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
30147         * lib/sigprocmask.h: Include <sys/types.h>.
30148         (sigset_t): Use the system's definition if present.
30149
30150 2006-10-17  Eric Blake  <ebb9@byu.net>
30151
30152         * lib/xvasprintf.c (includes): Assume config.h.
30153         * lib/xasprintf.c (includes): Likewise.
30154
30155 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30156
30157         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
30158         at least as wide as intmax_t.
30159
30160 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
30161
30162         (Imported from Automake.)
30163         * build-aux/gnupload: Update to version 1.1 of directive file.
30164
30165 2006-10-16  Eric Blake  <ebb9@byu.net>
30166
30167         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
30168         match Automake 1.10a.
30169
30170 2006-10-14  Bruno Haible  <bruno@clisp.org>
30171
30172         * modules/sigprocmask: New file.
30173         * lib/sigprocmask.h: New file.
30174         * lib/sigprocmask.c: New file.
30175         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
30176         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
30177         request sigprocmask.o.
30178         (gl_PREREQ_SIGPROCMASK): New macro.
30179         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
30180         (Depends-on): Add sigprocmask.
30181         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
30182         gt_SIGNALBLOCKING. Test for 'raise' only once.
30183         * lib/fatal-signal.c: Include sigprocmask.h.
30184         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
30185         unblock_fatal_signals): Define always.
30186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30187         sigprocmask.
30188
30189 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30190
30191         Sync from Automake.
30192         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
30193         which incorrectly sets the mode of an existing destination
30194         directory.  In some cases the unpatched install-sh could do the
30195         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
30196         system.  We hope this is rare in practice, but it's clearly worth
30197         fixing.  Problem reported by Alex Unleashed in
30198         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
30199         Also, don't bother to check for -m bugs unless we're using -m;
30200         suggested by Stepan Kasal.
30201
30202 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30203
30204         Sync from Automake.
30205         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
30206         `-c' flag, so they appear at the same position as in %FASTDEP%
30207         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
30208         which ignores unknown options only after the first non-option.
30209         Bug report against M4 by Nelson H. F. Beebe.
30210
30211 2006-10-13  Jim Meyering  <jim@meyering.net>
30212
30213         Fix a bug in yesterday's change.
30214         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
30215         p->fts_statp->st_dev would be used uninitialized.
30216         Ensures that we always call fts_stat on the very first entry.
30217         Miklos Szeredi reported that find -xdev stopped working.
30218
30219 2006-10-12  Bruno Haible  <bruno@clisp.org>
30220
30221         * gnulib-tool (func_get_automake_snippet): Append an automatically
30222         computed EXTRA_DIST augmentation.
30223         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
30224         * modules/alloca-opt (Makefile.am): Likewise.
30225         * modules/allocsa (Makefile.am): Likewise.
30226         * modules/arcfour (Makefile.am): Likewise.
30227         * modules/arctwo (Makefile.am): Likewise.
30228         * modules/argmatch (Makefile.am): Likewise.
30229         * modules/argz (Makefile.am): Likewise.
30230         * modules/atexit (Makefile.am): Likewise.
30231         * modules/backupfile (Makefile.am): Likewise.
30232         * modules/byteswap (Makefile.am): Likewise.
30233         * modules/c-strtod (Makefile.am): Likewise.
30234         * modules/c-strtold (Makefile.am): Likewise.
30235         * modules/calloc (Makefile.am): Likewise.
30236         * modules/canon-host (Makefile.am): Likewise.
30237         * modules/canonicalize (Makefile.am): Likewise.
30238         * modules/chdir-long (Makefile.am): Likewise.
30239         * modules/chdir-safer (Makefile.am): Likewise.
30240         * modules/check-version (Makefile.am): Likewise.
30241         * modules/chown (Makefile.am): Likewise.
30242         * modules/cloexec (Makefile.am): Likewise.
30243         * modules/close-stream (Makefile.am): Likewise.
30244         * modules/closeout (Makefile.am): Likewise.
30245         * modules/crc (Makefile.am): Likewise.
30246         * modules/csharpexec (Makefile.am): Likewise.
30247         * modules/cycle-check (Makefile.am): Likewise.
30248         * modules/des (Makefile.am): Likewise.
30249         * modules/dev-ino (Makefile.am): Likewise.
30250         * modules/dirfd (Makefile.am): Likewise.
30251         * modules/dirname (Makefile.am): Likewise.
30252         * modules/dup2 (Makefile.am): Likewise.
30253         * modules/eealloc (Makefile.am): Likewise.
30254         * modules/error (Makefile.am): Likewise.
30255         * modules/euidaccess (Makefile.am): Likewise.
30256         * modules/exclude (Makefile.am): Likewise.
30257         * modules/exitfail (Makefile.am): Likewise.
30258         * modules/fcntl-safer (Makefile.am): Likewise.
30259         * modules/fcntl (Makefile.am): Likewise.
30260         * modules/file-type (Makefile.am): Likewise.
30261         * modules/fileblocks (Makefile.am): Likewise.
30262         * modules/filemode (Makefile.am): Likewise.
30263         * modules/filenamecat (Makefile.am): Likewise.
30264         * modules/fnmatch (Makefile.am): Likewise.
30265         * modules/fopen-safer (Makefile.am): Likewise.
30266         * modules/fpending (Makefile.am): Likewise.
30267         * modules/fprintftime (Makefile.am): Likewise.
30268         * modules/free (Makefile.am): Likewise.
30269         * modules/fsusage (Makefile.am): Likewise.
30270         * modules/ftruncate (Makefile.am): Likewise.
30271         * modules/fts (Makefile.am): Likewise.
30272         * modules/gc-arcfour (Makefile.am): Likewise.
30273         * modules/gc-des (Makefile.am): Likewise.
30274         * modules/gc-hmac-md5 (Makefile.am): Likewise.
30275         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
30276         * modules/gc-md4 (Makefile.am): Likewise.
30277         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30278         * modules/gc-sha1 (Makefile.am): Likewise.
30279         * modules/gc (Makefile.am): Likewise.
30280         * modules/getaddrinfo (Makefile.am): Likewise.
30281         * modules/getcwd (Makefile.am): Likewise.
30282         * modules/getdelim (Makefile.am): Likewise.
30283         * modules/getdomainname (Makefile.am): Likewise.
30284         * modules/getgroups (Makefile.am): Likewise.
30285         * modules/gethostname (Makefile.am): Likewise.
30286         * modules/gethrxtime (Makefile.am): Likewise.
30287         * modules/getline (Makefile.am): Likewise.
30288         * modules/getloadavg (Makefile.am): Likewise.
30289         * modules/getlogin_r (Makefile.am): Likewise.
30290         * modules/getndelim2 (Makefile.am): Likewise.
30291         * modules/getopt (Makefile.am): Likewise.
30292         * modules/getpagesize (Makefile.am): Likewise.
30293         * modules/getpass-gnu (Makefile.am): Likewise.
30294         * modules/getpass (Makefile.am): Likewise.
30295         * modules/getsubopt (Makefile.am): Likewise.
30296         * modules/gettime (Makefile.am): Likewise.
30297         * modules/gettimeofday (Makefile.am): Likewise.
30298         * modules/getugroups (Makefile.am): Likewise.
30299         * modules/getusershell (Makefile.am): Likewise.
30300         * modules/glob (Makefile.am): Likewise.
30301         * modules/group-member (Makefile.am): Likewise.
30302         * modules/hard-locale (Makefile.am): Likewise.
30303         * modules/hash (Makefile.am): Likewise.
30304         * modules/hmac-md5 (Makefile.am): Likewise.
30305         * modules/hmac-sha1 (Makefile.am): Likewise.
30306         * modules/human (Makefile.am): Likewise.
30307         * modules/idcache (Makefile.am): Likewise.
30308         * modules/imaxabs (Makefile.am): Likewise.
30309         * modules/imaxdiv (Makefile.am): Likewise.
30310         * modules/inet_ntop (Makefile.am): Likewise.
30311         * modules/inet_pton (Makefile.am): Likewise.
30312         * modules/intprops (Makefile.am): Likewise.
30313         * modules/inttostr (Makefile.am): Likewise.
30314         * modules/inttypes (Makefile.am): Likewise.
30315         * modules/isapipe (Makefile.am): Likewise.
30316         * modules/javaversion (Makefile.am): Likewise.
30317         * modules/lchmod (Makefile.am): Likewise.
30318         * modules/lchown (Makefile.am): Likewise.
30319         * modules/localcharset (Makefile.am): Likewise.
30320         * modules/long-options (Makefile.am): Likewise.
30321         * modules/lstat (Makefile.am): Likewise.
30322         * modules/malloc (Makefile.am): Likewise.
30323         * modules/mathl (Makefile.am): Likewise.
30324         * modules/mbchar (Makefile.am): Likewise.
30325         * modules/md2 (Makefile.am): Likewise.
30326         * modules/md4 (Makefile.am): Likewise.
30327         * modules/md5 (Makefile.am): Likewise.
30328         * modules/memcasecmp (Makefile.am): Likewise.
30329         * modules/memchr (Makefile.am): Likewise.
30330         * modules/memcmp (Makefile.am): Likewise.
30331         * modules/memcoll (Makefile.am): Likewise.
30332         * modules/memcpy (Makefile.am): Likewise.
30333         * modules/memmem (Makefile.am): Likewise.
30334         * modules/memmove (Makefile.am): Likewise.
30335         * modules/mempcpy (Makefile.am): Likewise.
30336         * modules/memrchr (Makefile.am): Likewise.
30337         * modules/memset (Makefile.am): Likewise.
30338         * modules/memxor (Makefile.am): Likewise.
30339         * modules/mkancesdirs (Makefile.am): Likewise.
30340         * modules/mkdir-p (Makefile.am): Likewise.
30341         * modules/mkdir (Makefile.am): Likewise.
30342         * modules/mkdtemp (Makefile.am): Likewise.
30343         * modules/mkstemp (Makefile.am): Likewise.
30344         * modules/mktime (Makefile.am): Likewise.
30345         * modules/modechange (Makefile.am): Likewise.
30346         * modules/mountlist (Makefile.am): Likewise.
30347         * modules/nanosleep (Makefile.am): Likewise.
30348         * modules/obstack (Makefile.am): Likewise.
30349         * modules/openat (Makefile.am): Likewise.
30350         * modules/pagealign_alloc (Makefile.am): Likewise.
30351         * modules/pathmax (Makefile.am): Likewise.
30352         * modules/physmem (Makefile.am): Likewise.
30353         * modules/poll (Makefile.am): Likewise.
30354         * modules/posixtm (Makefile.am): Likewise.
30355         * modules/posixver (Makefile.am): Likewise.
30356         * modules/putenv (Makefile.am): Likewise.
30357         * modules/quote (Makefile.am): Likewise.
30358         * modules/quotearg (Makefile.am): Likewise.
30359         * modules/raise (Makefile.am): Likewise.
30360         * modules/read-file (Makefile.am): Likewise.
30361         * modules/readline (Makefile.am): Likewise.
30362         * modules/readlink (Makefile.am): Likewise.
30363         * modules/readtokens (Makefile.am): Likewise.
30364         * modules/readutmp (Makefile.am): Likewise.
30365         * modules/realloc (Makefile.am): Likewise.
30366         * modules/regex (Makefile.am): Likewise.
30367         * modules/rename-dest-slash (Makefile.am): Likewise.
30368         * modules/rename (Makefile.am): Likewise.
30369         * modules/rijndael (Makefile.am): Likewise.
30370         * modules/rmdir (Makefile.am): Likewise.
30371         * modules/rpmatch (Makefile.am): Likewise.
30372         * modules/safe-read (Makefile.am): Likewise.
30373         * modules/safe-write (Makefile.am): Likewise.
30374         * modules/same-inode (Makefile.am): Likewise.
30375         * modules/same (Makefile.am): Likewise.
30376         * modules/save-cwd (Makefile.am): Likewise.
30377         * modules/savedir (Makefile.am): Likewise.
30378         * modules/setenv (Makefile.am): Likewise.
30379         * modules/settime (Makefile.am): Likewise.
30380         * modules/sha1 (Makefile.am): Likewise.
30381         * modules/sig2str (Makefile.am): Likewise.
30382         * modules/snprintf (Makefile.am): Likewise.
30383         * modules/stat-macros (Makefile.am): Likewise.
30384         * modules/stat-time (Makefile.am): Likewise.
30385         * modules/stdbool (Makefile.am): Likewise.
30386         * modules/stdint (Makefile.am): Likewise.
30387         * modules/stdlib-safer (Makefile.am): Likewise.
30388         * modules/stpcpy (Makefile.am): Likewise.
30389         * modules/stpncpy (Makefile.am): Likewise.
30390         * modules/strcase (Makefile.am): Likewise.
30391         * modules/strcasestr (Makefile.am): Likewise.
30392         * modules/strchrnul (Makefile.am): Likewise.
30393         * modules/strcspn (Makefile.am): Likewise.
30394         * modules/strdup (Makefile.am): Likewise.
30395         * modules/strerror (Makefile.am): Likewise.
30396         * modules/strftime (Makefile.am): Likewise.
30397         * modules/strndup (Makefile.am): Likewise.
30398         * modules/strnlen (Makefile.am): Likewise.
30399         * modules/strpbrk (Makefile.am): Likewise.
30400         * modules/strsep (Makefile.am): Likewise.
30401         * modules/strstr (Makefile.am): Likewise.
30402         * modules/strtod (Makefile.am): Likewise.
30403         * modules/strtoimax (Makefile.am): Likewise.
30404         * modules/strtok_r (Makefile.am): Likewise.
30405         * modules/strtol (Makefile.am): Likewise.
30406         * modules/strtoll (Makefile.am): Likewise.
30407         * modules/strtoul (Makefile.am): Likewise.
30408         * modules/strtoull (Makefile.am): Likewise.
30409         * modules/strtoumax (Makefile.am): Likewise.
30410         * modules/strverscmp (Makefile.am): Likewise.
30411         * modules/sys_socket (Makefile.am): Likewise.
30412         * modules/sys_stat (Makefile.am): Likewise.
30413         * modules/sysexits (Makefile.am): Likewise.
30414         * modules/time_r (Makefile.am): Likewise.
30415         * modules/timegm (Makefile.am): Likewise.
30416         * modules/timespec (Makefile.am): Likewise.
30417         * modules/tmpfile-safer (Makefile.am): Likewise.
30418         * modules/trim (Makefile.am): Likewise.
30419         * modules/unistd-safer (Makefile.am): Likewise.
30420         * modules/unlinkdir (Makefile.am): Likewise.
30421         * modules/unlocked-io (Makefile.am): Likewise.
30422         * modules/userspec (Makefile.am): Likewise.
30423         * modules/utime (Makefile.am): Likewise.
30424         * modules/utimecmp (Makefile.am): Likewise.
30425         * modules/utimens (Makefile.am): Likewise.
30426         * modules/vasnprintf (Makefile.am): Likewise.
30427         * modules/vasprintf (Makefile.am): Likewise.
30428         * modules/vsnprintf (Makefile.am): Likewise.
30429         * modules/xalloc (Makefile.am): Likewise.
30430         * modules/xgetcwd (Makefile.am): Likewise.
30431         * modules/xnanosleep (Makefile.am): Likewise.
30432         * modules/xreadlink (Makefile.am): Likewise.
30433         * modules/xstrtod (Makefile.am): Likewise.
30434         * modules/xstrtol (Makefile.am): Likewise.
30435         * modules/xstrtold (Makefile.am): Likewise.
30436         * modules/yesno (Makefile.am): Likewise.
30437         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
30438
30439 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30440
30441         * modules/error (Makefile.am): Distribute files through
30442         EXTRA_DIST, not lib_SOURCES.
30443
30444 2006-10-12  Eric Blake  <ebb9@byu.net>
30445
30446         * modules/error (Makefile.am): Distribute files in /lib.
30447         * modules/obstack (Makefile.am): Likewise.
30448
30449 2006-10-12  Bruno Haible  <bruno@clisp.org>
30450
30451         * modules/acl (Makefile.am): Distribute all files in lib/ through
30452         EXTRA_DIST.
30453         * modules/arcfour (Makefile.am): Likewise.
30454         * modules/arctwo (Makefile.am): Likewise.
30455         * modules/argmatch (Makefile.am): Likewise.
30456         * modules/argz (Makefile.am): Likewise.
30457         * modules/atexit (Makefile.am): Likewise.
30458         * modules/backupfile (Makefile.am): Likewise.
30459         * modules/c-strtod (Makefile.am): Likewise.
30460         * modules/c-strtold (Makefile.am): Likewise.
30461         * modules/calloc (Makefile.am): Likewise.
30462         * modules/canon-host (Makefile.am): Likewise.
30463         * modules/canonicalize (Makefile.am): Likewise.
30464         * modules/chdir-long (Makefile.am): Likewise.
30465         * modules/chdir-safer (Makefile.am): Likewise.
30466         * modules/check-version (Makefile.am): Likewise.
30467         * modules/chown (Makefile.am): Likewise.
30468         * modules/cloexec (Makefile.am): Likewise.
30469         * modules/close-stream (Makefile.am): Likewise.
30470         * modules/closeout (Makefile.am): Likewise.
30471         * modules/crc (Makefile.am): Likewise.
30472         * modules/cycle-check (Makefile.am): Likewise.
30473         * modules/des (Makefile.am): Likewise.
30474         * modules/dirfd (Makefile.am): Likewise.
30475         * modules/dirname (Makefile.am): Likewise.
30476         * modules/dup2 (Makefile.am): Likewise.
30477         * modules/euidaccess (Makefile.am): Likewise.
30478         * modules/exclude (Makefile.am): Likewise.
30479         * modules/exitfail (Makefile.am): Likewise.
30480         * modules/fcntl-safer (Makefile.am): Likewise.
30481         * modules/file-type (Makefile.am): Likewise.
30482         * modules/fileblocks (Makefile.am): Likewise.
30483         * modules/filemode (Makefile.am): Likewise.
30484         * modules/filenamecat (Makefile.am): Likewise.
30485         * modules/fnmatch (Makefile.am): Likewise.
30486         * modules/fopen-safer (Makefile.am): Likewise.
30487         * modules/fpending (Makefile.am): Likewise.
30488         * modules/fprintftime (Makefile.am): Likewise.
30489         * modules/free (Makefile.am): Likewise.
30490         * modules/fsusage (Makefile.am): Likewise.
30491         * modules/ftruncate (Makefile.am): Likewise.
30492         * modules/fts (Makefile.am): Likewise.
30493         * modules/gc (Makefile.am): Likewise.
30494         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30495         * modules/getaddrinfo (Makefile.am): Likewise.
30496         * modules/getcwd (Makefile.am): Likewise.
30497         * modules/getdelim (Makefile.am): Likewise.
30498         * modules/getdomainname (Makefile.am): Likewise.
30499         * modules/getgroups (Makefile.am): Likewise.
30500         * modules/gethostname (Makefile.am): Likewise.
30501         * modules/gethrxtime (Makefile.am): Likewise.
30502         * modules/getline (Makefile.am): Likewise.
30503         * modules/getloadavg (Makefile.am): Likewise.
30504         * modules/getlogin_r (Makefile.am): Likewise.
30505         * modules/getopt (Makefile.am): Likewise.
30506         * modules/getpass (Makefile.am): Likewise.
30507         * modules/getpass-gnu (Makefile.am): Likewise.
30508         * modules/getsubopt (Makefile.am): Likewise.
30509         * modules/gettime (Makefile.am): Likewise.
30510         * modules/gettimeofday (Makefile.am): Likewise.
30511         * modules/getugroups (Makefile.am): Likewise.
30512         * modules/getusershell (Makefile.am): Likewise.
30513         * modules/glob (Makefile.am): Likewise.
30514         * modules/group-member (Makefile.am): Likewise.
30515         * modules/hard-locale (Makefile.am): Likewise.
30516         * modules/hash (Makefile.am): Likewise.
30517         * modules/hmac-md5 (Makefile.am): Likewise.
30518         * modules/hmac-sha1 (Makefile.am): Likewise.
30519         * modules/human (Makefile.am): Likewise.
30520         * modules/idcache (Makefile.am): Likewise.
30521         * modules/imaxabs (Makefile.am): Likewise.
30522         * modules/imaxdiv (Makefile.am): Likewise.
30523         * modules/inet_ntop (Makefile.am): Likewise.
30524         * modules/inet_pton (Makefile.am): Likewise.
30525         * modules/inttostr (Makefile.am): Likewise.
30526         * modules/isapipe (Makefile.am): Likewise.
30527         * modules/lchown (Makefile.am): Likewise.
30528         * modules/long-options (Makefile.am): Likewise.
30529         * modules/lstat (Makefile.am): Likewise.
30530         * modules/malloc (Makefile.am): Likewise.
30531         * modules/mathl (Makefile.am): Likewise.
30532         * modules/mbchar (Makefile.am): Likewise.
30533         * modules/md2 (Makefile.am): Likewise.
30534         * modules/md4 (Makefile.am): Likewise.
30535         * modules/md5 (Makefile.am): Likewise.
30536         * modules/memcasecmp (Makefile.am): Likewise.
30537         * modules/memchr (Makefile.am): Likewise.
30538         * modules/memcmp (Makefile.am): Likewise.
30539         * modules/memcoll (Makefile.am): Likewise.
30540         * modules/memcpy (Makefile.am): Likewise.
30541         * modules/memmem (Makefile.am): Likewise.
30542         * modules/memmove (Makefile.am): Likewise.
30543         * modules/mempcpy (Makefile.am): Likewise.
30544         * modules/memrchr (Makefile.am): Likewise.
30545         * modules/memset (Makefile.am): Likewise.
30546         * modules/memxor (Makefile.am): Likewise.
30547         * modules/mkancesdirs (Makefile.am): Likewise.
30548         * modules/mkdir (Makefile.am): Likewise.
30549         * modules/mkdir-p (Makefile.am): Likewise.
30550         * modules/mkdtemp (Makefile.am): Likewise.
30551         * modules/mkstemp (Makefile.am): Likewise.
30552         * modules/mktime (Makefile.am): Likewise.
30553         * modules/modechange (Makefile.am): Likewise.
30554         * modules/mountlist (Makefile.am): Likewise.
30555         * modules/nanosleep (Makefile.am): Likewise.
30556         * modules/openat (Makefile.am): Likewise.
30557         * modules/pagealign_alloc (Makefile.am): Likewise.
30558         * modules/physmem (Makefile.am): Likewise.
30559         * modules/poll (Makefile.am): Likewise.
30560         * modules/posixtm (Makefile.am): Likewise.
30561         * modules/posixver (Makefile.am): Likewise.
30562         * modules/putenv (Makefile.am): Likewise.
30563         * modules/quote (Makefile.am): Likewise.
30564         * modules/quotearg (Makefile.am): Likewise.
30565         * modules/raise (Makefile.am): Likewise.
30566         * modules/read-file (Makefile.am): Likewise.
30567         * modules/readline (Makefile.am): Likewise.
30568         * modules/readlink (Makefile.am): Likewise.
30569         * modules/readtokens (Makefile.am): Likewise.
30570         * modules/readutmp (Makefile.am): Likewise.
30571         * modules/realloc (Makefile.am): Likewise.
30572         * modules/regex (Makefile.am): Likewise.
30573         * modules/rename (Makefile.am): Likewise.
30574         * modules/rename-dest-slash (Makefile.am): Likewise.
30575         * modules/rijndael (Makefile.am): Likewise.
30576         * modules/rmdir (Makefile.am): Likewise.
30577         * modules/rpmatch (Makefile.am): Likewise.
30578         * modules/safe-read (Makefile.am): Likewise.
30579         * modules/safe-write (Makefile.am): Likewise.
30580         * modules/same (Makefile.am): Likewise.
30581         * modules/save-cwd (Makefile.am): Likewise.
30582         * modules/savedir (Makefile.am): Likewise.
30583         * modules/setenv (Makefile.am): Likewise.
30584         * modules/settime (Makefile.am): Likewise.
30585         * modules/sha1 (Makefile.am): Likewise.
30586         * modules/sig2str (Makefile.am): Likewise.
30587         * modules/snprintf (Makefile.am): Likewise.
30588         * modules/stdlib-safer (Makefile.am): Likewise.
30589         * modules/stpcpy (Makefile.am): Likewise.
30590         * modules/stpncpy (Makefile.am): Likewise.
30591         * modules/strcase (Makefile.am): Likewise.
30592         * modules/strcasestr (Makefile.am): Likewise.
30593         * modules/strchrnul (Makefile.am): Likewise.
30594         * modules/strcspn (Makefile.am): Likewise.
30595         * modules/strdup (Makefile.am): Likewise.
30596         * modules/strerror (Makefile.am): Likewise.
30597         * modules/strftime (Makefile.am): Likewise.
30598         * modules/strndup (Makefile.am): Likewise.
30599         * modules/strnlen (Makefile.am): Likewise.
30600         * modules/strpbrk (Makefile.am): Likewise.
30601         * modules/strsep (Makefile.am): Likewise.
30602         * modules/strstr (Makefile.am): Likewise.
30603         * modules/strtod (Makefile.am): Likewise.
30604         * modules/strtoimax (Makefile.am): Likewise.
30605         * modules/strtok_r (Makefile.am): Likewise.
30606         * modules/strtol (Makefile.am): Likewise.
30607         * modules/strtoll (Makefile.am): Likewise.
30608         * modules/strtoul (Makefile.am): Likewise.
30609         * modules/strtoull (Makefile.am): Likewise.
30610         * modules/strtoumax (Makefile.am): Likewise.
30611         * modules/strverscmp (Makefile.am): Likewise.
30612         * modules/time_r (Makefile.am): Likewise.
30613         * modules/timegm (Makefile.am): Likewise.
30614         * modules/tmpfile-safer (Makefile.am): Likewise.
30615         * modules/unistd-safer (Makefile.am): Likewise.
30616         * modules/unlinkdir (Makefile.am): Likewise.
30617         * modules/userspec (Makefile.am): Likewise.
30618         * modules/utime (Makefile.am): Likewise.
30619         * modules/utimecmp (Makefile.am): Likewise.
30620         * modules/utimens (Makefile.am): Likewise.
30621         * modules/vasnprintf (Makefile.am): Likewise.
30622         * modules/vasprintf (Makefile.am): Likewise.
30623         * modules/vsnprintf (Makefile.am): Likewise.
30624         * modules/xalloc (Makefile.am): Likewise.
30625         * modules/xgetcwd (Makefile.am): Likewise.
30626         * modules/xnanosleep (Makefile.am): Likewise.
30627         * modules/xreadlink (Makefile.am): Likewise.
30628         * modules/xstrtod (Makefile.am): Likewise.
30629         * modules/xstrtol (Makefile.am): Likewise.
30630         * modules/xstrtold (Makefile.am): Likewise.
30631         * modules/yesno (Makefile.am): Likewise.
30632
30633 2006-10-12  Jim Meyering  <jim@meyering.net>
30634
30635         * m4/getloadavg.m4: Revert the change below.
30636
30637         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
30638         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
30639         fail with a symlink, which is what coreutils' ./bootstrap now
30640         creates by default.
30641
30642 2006-10-12  Bruno Haible  <bruno@clisp.org>
30643
30644         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
30645         mingw.
30646         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
30647         MSVC and mingw explicitly.
30648
30649 2006-10-11  Simon Josefsson  <jas@extundo.com>
30650             Bruno Haible  <bruno@clisp.org>
30651
30652         Add support for multiple gnulib-tool invocations in the scope of a
30653         single configure.ac file.
30654         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
30655         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
30656         with the same contents as the _LIBADD variable.
30657         (func_emit_initmacro_start, func_emit_initmacro_end,
30658         func_emit_initmacro_done): New functions.
30659         (func_import, func_create_testdir): Invoke them. Allow the identifiers
30660         gl_LIBOBJS and gl_LTLIBOBJS.
30661
30662 2006-10-11  Bruno Haible  <bruno@clisp.org>
30663
30664         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
30665         (func_create_testdir): Don't create po/Makefile.am, don't invoke
30666         autoreconf. Instead, invoke autopoint explicitly but move back the
30667         *.m4 files from gnulib.
30668
30669 2006-10-11  Bruno Haible  <bruno@clisp.org>
30670
30671         * gnulib-tool (func_usage): Make module names after --create-testdir
30672         optional.
30673         (func_create_testdir): If no module was specified, use nearly all
30674         modules.
30675
30676 2006-10-12  Jim Meyering  <jim@meyering.net>
30677
30678         Big performance improvement for fts-based tools that use FTS_NOSTAT.
30679         Avoid spurious inode-mismatch problems on non-POSIX file systems.
30680         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
30681         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
30682         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
30683         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
30684         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
30685         (fts_set_stat_required): New function.
30686         (fts_open): Defer the calls to fts_stat, if possible or requested.
30687         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
30688         into fts_stat itself.
30689         (fts_read): Perform any required (deferred) fts_stat call.
30690         (fts_build): Likewise, for the directory we're about to open and read.
30691         In the readdir loop, carefully decide whether each entry will require
30692         an eventual call to fts_stat, using dirent.d_type info if available.
30693         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
30694         a command line argument into this function.  Update all callers.
30695         Map a return value of FTS_DOT to FTS_D for a command line argument.
30696         * modules/fts (Depends-on): Add d-type.  Alphabetize.
30697         Thanks to Miklos Szeredi for his tenacity and for the initial
30698         bug report about "find" failing on a FUSE-based file system.
30699
30700         * lib/fts.c (fts_open): Use consistent indentation.
30701
30702 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30703
30704         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
30705         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
30706         reported by Jim Meyering.  All uses of cache variables renamed
30707         to match Autoconf's.
30708         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
30709         the other one.
30710
30711         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30712         Fix misspelling in diagnostic.
30713
30714 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30715
30716         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
30717         defined.  Problem reported by Matthew Woehlke.
30718
30719         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
30720         Add support for Tandem NonStop R series.
30721         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
30722         Use new macro.
30723
30724         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
30725         (has_trailing_slash): Omit size arg; all callers changed.
30726         Omit 'inline', since it doesn't help performance and we'd
30727         need to configure it.
30728         Don't count //, ///, etc. as having a trailing slash.
30729         As a side effect, this removes a C99ism reported by Matthew Woehlke.
30730         (rpl_rename_dest_slash): On failure, use rename's errno rather
30731         than (in some cases) an incorrect or junk errno.
30732         Simplify code by removing need to compute length; this does
30733         cause it to make two passes instead of one over the file name,
30734         but it's worth it.
30735
30736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
30737         change, since Autoconf's version may no longer be appropriate now
30738         that we are using CVS Autoconf's version.  Add support for Tandem.
30739
30740 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30741             Bruno Haible  <bruno@clisp.org>
30742
30743         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
30744         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
30745         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
30746         gl_AC_TYPE_LONG_LONG.
30747
30748         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
30749         instead of HAVE_LONG_LONG.
30750         * lib/printf-args.c (printf_fetchargs): Likewise.
30751         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
30752         * lib/vasnprintf.c (VASNPRINTF): Likewise.
30753         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
30754         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
30755         gl_AC_TYPE_LONG_LONG.
30756
30757 2006-10-11  Bruno Haible  <bruno@clisp.org>
30758
30759         * m4/longlong.m4: Add comments.
30760         * m4/ulonglong.m4: Likewise.
30761
30762 2006-10-10  Bruno Haible  <bruno@clisp.org>
30763
30764         Make it possible to #define stpcpy, strdup to aliases.
30765         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
30766         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
30767
30768 2006-10-10  Bruno Haible  <bruno@clisp.org>
30769
30770         Make it possible to #define gcd to an alias.
30771         * lib/gcd.c: Include config.h.
30772
30773 2006-10-10  Bruno Haible  <bruno@clisp.org>
30774
30775         Make it possible to #define c_isascii to an alias.
30776         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
30777         defined. Undefine the macros before defining them, to avoid gcc
30778         warnings.
30779         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
30780         define NO_C_CTYPE_MACROS early.
30781
30782 2006-10-10  Bruno Haible  <bruno@clisp.org>
30783
30784         Make it possible to #define set_program_name to an alias.
30785         * lib/progname.c: Don't undefine set_program_name; instead, undefine
30786         ENABLE_RELOCATABLE early.
30787
30788 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30789
30790         Port to Tandem NSK OSS, which has 64-bit signed int but at most
30791         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
30792         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
30793         More generally, don't assume that 64-bit signed int is available
30794         if unsigned int is, and vice versa.
30795         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
30796         unsigned symbols, not on their signed counterparts.
30797         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
30798         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
30799         (UINT64_C, UINTMAX_C):
30800         Likewise.
30801         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
30802         unsigned counterparts.
30803         (Have_long_long, Unsigned): New macros.
30804         (Int): Renamed from INT.
30805         (strtoimax): Use the new macros.
30806         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
30807         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
30808         * modules/inttypes (inttypes.h): Substitute
30809         HAVE_UNSIGNED_LONG_LONG_INT.
30810         * modules/stdint (stdint.h): Likewise.
30811         (Files): Add m4/ulonglong.m4.
30812
30813 2006-10-10  Bruno Haible  <bruno@clisp.org>
30814
30815         Fix a gcc -Wshadow warning.
30816         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
30817         to 'bucket'.
30818         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
30819         gl_linked_indexof_from_to): Likewise.
30820         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
30821         Likewise.
30822         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
30823         Likewise.
30824         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
30825         Reported by Eric Blake.
30826
30827 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30828
30829         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
30830         for NetBSD.  Problem reported by Bruno Haible.
30831
30832 2006-10-09  Jim Meyering  <jim@meyering.net>
30833
30834         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
30835         Patch from Bruno Haible.
30836
30837 2006-10-09  Jim Meyering  <jim@meyering.net>
30838
30839         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
30840         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
30841         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
30842
30843 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30844
30845         Don't include <config.h> twice; this doesn't work in some cases,
30846         e.g., when config.h has "#define intmax_t long long int" and
30847         we include <config.h>, <inttypes.h>, <config.h> in that order.
30848         Problem reported by Matthew Woehlke in:
30849         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
30850         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
30851         * lib/fts-cycle.c: Don't include config.h.
30852         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
30853         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
30854         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
30855         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
30856         inttypes.h.
30857         * lib/xstrtoumax.c: Likewise.
30858         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
30859         __strtol and the like, so that this module is more like its siblings.
30860         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
30861         Remove; no longer needed now that we assume gnulib inttypes.h.
30862
30863 2006-10-08  Bruno Haible  <bruno@clisp.org>
30864
30865         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
30866         option.
30867
30868 2006-10-07  Jim Meyering  <jim@meyering.net>
30869
30870         * modules/inttypes (inttypes.h): Revert what seems to have been
30871         an inadvertent part of today's change: use "|", not "/" in the
30872         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
30873
30874 2006-10-07  Bruno Haible  <bruno@clisp.org>
30875
30876         * modules/sublist: New file.
30877
30878 2006-10-07  Bruno Haible  <bruno@clisp.org>
30879
30880         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
30881         * modules/argz (argz.h): Likewise.
30882         * modules/arpa_inet (arpa/inet.h): Likewise.
30883         * modules/byteswap (byteswap.h): Likewise.
30884         * modules/configmake (configmake.h): Likewise.
30885         * modules/fcntl (fcntl.h): Likewise.
30886         * modules/fnmatch (fnmatch.h): Likewise.
30887         * modules/getopt (getopt.h): Likewise.
30888         * modules/glob (glob.h): Likewise.
30889         * modules/inttypes (inttypes.h): Likewise.
30890         * modules/netinet_in (netinet/in.h): Likewise.
30891         * modules/poll (poll.h): Likewise.
30892         * modules/stdbool (stdbool.h): Likewise.
30893         * modules/stdint (stdint.h): Likewise.
30894         * modules/sys_select (sys/select.h): Likewise.
30895         * modules/sys_socket (sys/socket.h): Likewise.
30896         * modules/sys_stat (sys/stat.h): Likewise.
30897         * modules/sysexits (sysexits.h): Likewise.
30898         * modules/unistd (unistd.h): Likewise.
30899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30900         Add a "DO NOT EDIT" comment to the generated file.
30901         (func_import): Likewise for gnulib-comp.m4.
30902
30903 2006-10-07  Bruno Haible  <bruno@clisp.org>
30904
30905         * lib/gl_sublist.h: New file.
30906         * lib/gl_sublist.c: New file.
30907
30908 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30909
30910         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
30911         name (relative to the original working directory) and the file
30912         name component (relative to the temporary working directory).  All
30913         callers changed.
30914         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
30915         * lib/mkdir-p.c (make_dir_parents): Likewise.
30916         * lib/mkdir-p.h (make_dir_parents): Likewise.
30917
30918 2006-10-06  Eric Blake  <ebb9@byu.net>
30919
30920         Define several macros for use by the clean-temp module.
30921         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
30922         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
30923         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
30924
30925         * lib/clean-temp.h (close_stream_temp): New declaration.
30926         * lib/clean-temp.c (includes): Pull in headers according to what
30927         other modules are in use.
30928         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
30929
30930 2006-10-06  Bruno Haible  <bruno@clisp.org>
30931
30932         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
30933         instead of fopen, fwriteerror.
30934
30935 2006-10-06  Bruno Haible  <bruno@clisp.org>
30936
30937         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
30938         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
30939         int.
30940         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
30941         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
30942         Return an error indicator.
30943         Suggested by Eric Blake.
30944
30945 2006-10-06  Bruno Haible  <bruno@clisp.org>
30946
30947         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
30948         Reported by Eric Blake.
30949
30950 2006-10-06  Bruno Haible  <bruno@clisp.org>
30951
30952         * modules/closeout (Description): Mention stderr too.
30953
30954 2006-10-06  Bruno Haible  <bruno@clisp.org>
30955         and Paul Eggert  <eggert@cs.ucla.edu>
30956
30957         * lib/closeout.c (close_stdout): Also close stderr.
30958         * lib/closeout.h: Update comment.
30959
30960 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30961
30962         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
30963         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
30964         * lib/dirchownmod.c: Include lchown.h.
30965         * lib/lchown.c: Don't include files that lchown.h now includes.
30966         Don't declare chown, since lchown.h now does that.
30967         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
30968         (lchown): Define to rpl_chown if lchown is declared but
30969         does not exist.  Declare using a prototype if lchown is not
30970         declared.  Add a copyright notice.
30971         * lib/mkstemp.h: Include <unistd.h>.
30972         * lib/openat.c: Include lchown.h.
30973
30974         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
30975         we now test for that separately.
30976         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
30977         rather than O_NOFOLLOW, when testing whether it's possible to
30978         avoid a race condition reliably.
30979         * lib/savewd.c (savewd_chdir): Likewise.
30980
30981         Remove macros that are no longer needed now that stdint.h is
30982         reliable.
30983         * lib/fsusage.c (UINTMAX_MAX): Remove.
30984         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
30985         * lib/utimecmp.c (SIZE_MAX): Remove.
30986
30987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
30988
30989         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
30990         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
30991         O_NOATIME works.
30992
30993 2006-10-05  Bruno Haible  <bruno@clisp.org>
30994
30995         * lib/gl_list.h (gl_sortedlist_search_from_to,
30996         gl_sortedlist_indexof_from_to): New declarations.
30997         (gl_list_implementation): New fields sortedlist_search_from_to,
30998         sortedlist_indexof_from_to.
30999         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
31000         inline functions.
31001         * lib/gl_list.c (gl_sortedlist_search_from_to,
31002         gl_sortedlist_indexof_from_to): New functions.
31003         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
31004         function.
31005         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
31006         (gl_array_sortedlist_search_from_to): New function.
31007         (gl_array_list_implementation): Update.
31008         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
31009         function.
31010         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
31011         (gl_carray_sortedlist_search_from_to): New function.
31012         (gl_carray_list_implementation): Update.
31013         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
31014         gl_linked_sortedlist_indexof_from_to): New functions.
31015         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31016         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31017         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
31018         gl_tree_sortedlist_indexof_from_to): New functions.
31019         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31020         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31021         Update.
31022         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31023         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
31024         Update.
31025
31026 2006-10-05  Bruno Haible  <bruno@clisp.org>
31027
31028         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
31029         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
31030         (struct gl_list_implementation): Add fields search_from_to,
31031         indexof_from_to. Remove fields search, indexof.
31032         (gl_list_search): Use the search_from_to method.
31033         (gl_list_search_from, gl_list_search_from_to): New functions.
31034         (gl_list_indexof): Use the indexof_from_to method.
31035         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31036         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
31037         (gl_list_search_from, gl_list_search_from_to): New functions.
31038         (gl_list_indexof): Use the indexof_from_to method.
31039         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31040         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
31041         gl_array_indexof. Add start_index, end_index arguments.
31042         (gl_array_search_from_to): Renamed from gl_array_search. Add
31043         start_index, end_index arguments.
31044         (gl_array_remove, gl_array_list_implementation): Update.
31045         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
31046         gl_carray_indexof. Add start_index, end_index arguments.
31047         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
31048         start_index, end_index arguments.
31049         (gl_carray_remove, gl_carray_list_implementation): Update.
31050         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
31051         gl_linked_search. Add start_index, end_index arguments.
31052         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
31053         start_index, end_index arguments.
31054         (gl_linked_remove): Update.
31055         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31056         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31057         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
31058         field to 'size_t'.
31059         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
31060         gl_tree_search. Add start_index, end_index arguments.
31061         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31062         start_index, end_index arguments.
31063         (gl_tree_remove): Update.
31064         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31065         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31066         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
31067         function.
31068         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
31069         gl_tree_search. Add start_index, end_index arguments.
31070         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31071         start_index, end_index arguments.
31072         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31073         Update.
31074         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31075
31076 2006-10-05  Bruno Haible  <bruno@clisp.org>
31077
31078         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
31079
31080         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
31081         fwriteerror_temp): New declarations.
31082         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
31083         (descriptors): New variable.
31084         (cleanup): First, close the descriptors.
31085         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
31086         fclose_temp, fwriteerror_temp): New functions.
31087
31088 2006-10-04  Jim Meyering  <jim@meyering.net>
31089
31090         * lib/fts.c (fts_open): Tiny comment change.
31091
31092 2006-10-04  Bruno Haible  <bruno@clisp.org>
31093
31094         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
31095         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
31096         gl_LOCK_BODY.
31097         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
31098         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
31099         gl_LOCK_EARLY_BODY.
31100         (gl_LOCK): Require gl_LOCK_BODY.
31101
31102 2006-10-04  Bruno Haible  <bruno@clisp.org>
31103
31104         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
31105         (gl_oset_search_atleast): New declaration.
31106         (struct gl_oset_implementation): Add field 'search_atleast'.
31107         (gl_oset_search_atleast): New inline function.
31108         * lib/gl_oset.c (gl_oset_search_atleast): New function.
31109         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
31110         (gl_array_oset_implementation): Update.
31111         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
31112         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
31113         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
31114
31115 2006-10-04  Bruno Haible  <bruno@clisp.org>
31116
31117         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
31118
31119 2006-10-03  Bruno Haible  <bruno@clisp.org>
31120
31121         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
31122         from gl_avltreehash_list_implementation.
31123
31124 2006-10-03  Bruno Haible  <bruno@clisp.org>
31125
31126         * lib/gl_oset.c (gl_oset_add): Fix return type.
31127
31128 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
31129
31130         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
31131
31132 2006-10-02  Eric Blake  <ebb9@byu.net>
31133
31134         * modules/strnlen (Depends-on): Add extensions.
31135
31136 2006-10-02  Eric Blake  <ebb9@byu.net>
31137
31138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
31139         definition in 2.60+.
31140
31141 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
31142
31143         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
31144         checks.
31145
31146 2006-10-02  Bruno Haible  <bruno@clisp.org>
31147
31148         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
31149         to the AUTOMAKE_OPTIONS.
31150         Reported by Jim Meyering.
31151
31152 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
31153
31154         Work around bug in Solaris 10 /proc file system:
31155         /proc/self/fd/NNN/.. isn't the parent directory of
31156         the directory whose file descriptor is NNN.  This needs to
31157         be worked around at run time, not compile time, since a
31158         program might be built on Solaris 8, where things work, and
31159         run on Solaris 10.
31160         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
31161         to use the following interface instead:
31162         (OPENAT_BUFFER_SIZE): New macro.
31163         (openat_proc_name): New function.
31164         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
31165         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
31166         Likewise.
31167         * lib/openat-proc.c: New file.
31168         * modules/openat (Files): Add lib/openat-proc.c.
31169         (Depends-on): Add same-inode, stdbool.
31170         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
31171
31172 2006-09-29  Bruno Haible  <bruno@clisp.org>
31173
31174         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
31175         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
31176         argument. Set stdout_closed before testing for ferror, not after.
31177         (fwriteerror, fwriteerror_no_ebadf): New functions.
31178
31179 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31180
31181         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
31182
31183 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
31184
31185         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
31186         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
31187
31188 2006-09-28  Jim Meyering  <jim@meyering.net>
31189
31190         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
31191         Include <unistd.h>.
31192
31193 2006-09-28  Bruno Haible  <bruno@clisp.org>
31194
31195         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
31196         * modules/linkedhash-list (Depends-on): Likewise.
31197         * modules/rbtreehash-list (Depends-on): Likewise.
31198
31199 2006-09-28  Bruno Haible  <bruno@clisp.org>
31200
31201         * lib/strndup.h: Simplify the redefinition of strndup.
31202         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
31203         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
31204
31205 2006-09-28  Bruno Haible  <bruno@clisp.org>
31206
31207         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
31208         * lib/gl_linkedhash_list.c: Likewise.
31209         * lib/gl_rbtreehash_list.c: Likewise.
31210
31211 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
31212
31213         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
31214         getaddrinfo.
31215
31216         * lib/__fpending.h: Don't include <stdio_ext.h> unless
31217         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
31218         it causes <stdio_ext.h> to cause a compile-time error.
31219         Problem reported by Nelson H. F. Beebe.
31220         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
31221         of HAVE_DECL___PENDING.
31222
31223         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
31224         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
31225         declaration.
31226
31227 2006-09-27  Jim Meyering  <jim@meyering.net>
31228
31229         This file could end up with a definition for a function
31230         named __strndup, rather than rpl_strndup on a system with
31231         incomplete weak_alias support.
31232         * lib/strndup.c (strndup): Rename from __strndup.
31233         Remove #defines that used to map __strndup to strndup.
31234         Don't use K&R prototypes.
31235         Remove LIBC-related code, since this file is not sync'd with glibc.
31236         * lib/strndup.h: Revamp, accordingly.
31237         * m4/strndup.m4: Modernize.
31238
31239 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31240
31241         * modules/savewd (Depends-on): Add 'raise'.
31242         * lib/savewd.c: Include <signal.h>, for 'raise'.
31243
31244 2006-09-26  Jim Meyering  <jim@meyering.net>
31245
31246         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
31247         when we detect Darwin 8.7.0's acl_get_file bug.
31248         Rearrange to perform the new (below) run-test while $LIBS
31249         contains any acl-related library.  Set USE_ACL at the end.
31250         (gl_ACL_GET_FILE): New function.
31251
31252 2006-09-26  Eric Blake  <ebb9@byu.net>
31253
31254         * lib/verror.c: Include <config.h> unconditionally.
31255
31256 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
31257
31258         * modules/clock-time (Maintainer): Add self.
31259         * modules/getlogin_r (Depends-on): Add extensions.
31260
31261 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31262
31263         * modules/clock-time: New module.
31264         * modules/nanosleep (Depends-on): Add clock-time.
31265         * modules/gethrxtime (Depends-on): Likewise.
31266         * modules/gettime (Depends-on): Likewise.
31267         * modules/settime (Depends-on): Likewise.
31268
31269         * modules/fts-lgpl: Depend on openat.
31270         * modules/mkancesdirs: Depend on savewd.
31271         * modules/mkdir-p: Likewise.
31272
31273 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31274
31275         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
31276
31277         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
31278         `gl_have_arbitrary_file_name_length_limit' to
31279         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
31280         actually works between configure runs.
31281
31282 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31283             Bruno Haible  <bruno@clisp.org>
31284
31285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
31286
31287 2006-09-25  Jim Meyering  <jim@meyering.net>
31288
31289         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
31290         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
31291
31292 2006-09-25  Eric Blake  <ebb9@byu.net>
31293
31294         * gnulib-tool (func_import, func_create_testdir): Fix typos in
31295         exec's in 2006-09-18 patch when shuffling fds.
31296
31297 2006-09-25  Bruno Haible  <bruno@clisp.org>
31298
31299         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
31300         Reported by Jim Meyering.
31301
31302 2006-09-24  Jim Meyering  <jim@meyering.net>
31303
31304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
31305         compare a pointer against a literal "0".  That caused failures with
31306         at least HP-UX's hpcc.
31307
31308 2006-09-22  Simon Josefsson  <jas@extundo.com>
31309
31310         * modules/gc-sha1:
31311         * modules/gc-md4:
31312         * modules/gc-hmac-sha1:
31313         * modules/gc-hmac-md5:
31314         * modules/gc-des:
31315         * modules/gc-arcfour: Distribute more files.
31316
31317 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31318
31319         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
31320         (gl_linked_iterator_from_to): Initialize struct completely.
31321         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
31322         (gl_tree_iterator_from_to): Likewise
31323         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
31324         * lib/gl_array_list.c [lint] (gl_array_iterator)
31325         (gl_array_iterator_from_to): Likewise.
31326         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
31327         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
31328         (gl_carray_iterator_from_to): Likewise.
31329
31330         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
31331         * lib/md4.c (md4_process_block): Remove unused variable.
31332         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
31333         parentheses for clarity.
31334
31335 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31336
31337         * modules/bison-i18n (Depends-on): Add gettext.
31338
31339 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31340
31341         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
31342         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31343         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
31344         also add missing comma that caused broken test.
31345         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
31346         stdlib.h, for `abort'.
31347         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
31348         variables.
31349         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
31350         include unistd.h if present, for `rmdir'.
31351         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
31352         variables.
31353         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
31354         in the process include standard headers for prototypes.
31355         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
31356         gets declared on GNU/Linux.
31357         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
31358         unistd.h, for `rmdir'.
31359         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
31360
31361         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
31362         always true.
31363         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
31364
31365         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
31366
31367 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31368
31369         * gnulib-tool (func_version): Create output all at once.  This
31370         may help avoid triggering unnecessary SIGPIPEs, and at any
31371         rate it doesn't hurt.
31372
31373 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31374             Bruno Haible  <bruno@clisp.org>
31375
31376         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
31377         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31378         * m4/signed.m4 (bh_C_SIGNED): Likewise.
31379
31380         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
31381         (gl_FUNC_VASPRINTF): Invoke it.
31382
31383 2006-09-22  Bruno Haible  <bruno@clisp.org>
31384
31385         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
31386         getloadavg.c as first argument.
31387
31388 2006-09-22  Bruno Haible  <bruno@clisp.org>
31389
31390         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
31391         at the beginning of the gl_INIT macro.
31392         * modules/getloadavg (configure.ac): Pass $gl_source_base to
31393         gl_GETLOADAVG.
31394
31395 2006-09-22  Bruno Haible  <bruno@clisp.org>
31396
31397         * gnulib-tool (func_create_megatestdir): Don't include the config-h
31398         module.
31399         Suggested by Ralf Wildenhues.
31400
31401 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31402
31403         Import this patch from libc:
31404
31405         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
31406
31407         * lib/regex_internal.c (re_string_reconstruct): Handle
31408         offset < pstr->valid_raw_len && pstr->offsets_needed case.
31409         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
31410         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
31411         re_string_context_at.
31412
31413         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
31414         now requires it.
31415         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
31416         gl_REGEX now does it for us.
31417         (gl_REGEX): Add test taken from
31418         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
31419
31420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
31421         Check that large offsets work.  Modernize Autoconf usages.
31422         Prefer "yes" to mean a good thing rather than a bad.
31423         Don't put "#define mkstemp" in config.h, as this might interfere
31424         with standard system headers that "#define mkstemp mkstemp64".
31425
31426         * modules/mkstemp (Depends-on): Add extensions, so that
31427         mkstemp is visible on some platforms.
31428         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
31429         (Include): Change to "mkstemp.h" from <stdlib.h>.
31430         (Files): Add mkstemp.h.
31431
31432         * lib/mkstemp.h: New file, since some standard headers
31433         #define mkstemp.
31434         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
31435         Include "mkstemp.h".
31436         Make the _LIBC code resemble glibc original more,
31437         e.g., use K&R style.
31438         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
31439         (mkstemp): Remove, since mkstemp.h does this for us.
31440         * lib/stdlib--.h: Include mkstemp.h.
31441
31442         Import this patch from libc:
31443
31444         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
31445
31446         * lib/tempname.c (__gen_tempname): Change attempts_min
31447         into a macro.  Use preprocessor to decide how to initialize
31448         attempts [Coverity CID 67].
31449
31450 2006-09-20  Bruno Haible  <bruno@clisp.org>
31451
31452         * lib/mkdtemp.c: Import from libc.
31453         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
31454                 * sysdeps/posix/tempname.c (__gen_tempname): Change
31455                 attempts_min into a macro.  Use preprocessor to decide how to
31456                 initialize attempts [Coverity CID 67].
31457         2001-11-27  Paul Eggert  <eggert@twinsun.com>
31458                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
31459                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
31460
31461 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31462
31463         * gnulib-tool (func_exit): New function, to allow to pass the
31464         exit status portably through the trap.  Use everywhere.
31465         (--help, --version): Signal a write error.
31466         (trap): catch SIGPIPE, for write errors.
31467         Exit at the end of the trap, with the correct exit status.
31468
31469 2006-09-19  Karl Berry  <karl@gnu.org>
31470
31471         * doc/gnulib.texi: note about the license texinfo files.
31472
31473 2006-09-19  Eric Blake  <ebb9@byu.net>
31474
31475         * gnulib-tool: Avoid space-tab.
31476
31477 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31478
31479         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
31480         that prevented coreutils 6.1 from building.  Problem reported
31481         by Petter Reinholdtsen.
31482
31483 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31484
31485         * gnulib-tool (avoidlist): Fix typo that broke options like
31486         --avoid=lock that are used by coreutils bootstrap.
31487
31488 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
31489
31490         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
31491         more systematically.
31492
31493 2006-09-18  Jim Meyering  <jim@meyering.net>
31494
31495         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
31496
31497 2006-09-18  Bruno Haible  <bruno@clisp.org>
31498
31499         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
31500
31501 2006-09-18  Bruno Haible  <bruno@clisp.org>
31502
31503         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
31504         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
31505         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
31506         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
31507         * m4/gettext.m4: Require autoconf >= 2.52.
31508         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
31509         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
31510         of gl_cv_header_inttypes_h.
31511
31512 2006-09-18  Bruno Haible  <bruno@clisp.org>
31513
31514         * lib/javaversion.c: Include configmake.h.
31515
31516 2006-09-18  Bruno Haible  <bruno@clisp.org>
31517
31518         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
31519         avoid that the while loops be executed in a subshell.
31520
31521 2006-09-18  Bruno Haible  <bruno@clisp.org>
31522
31523         * MODULES.html.sh (func_module): Break long lines.
31524         Suggested by Bruce Korb <bkorb@gnu.org>.
31525
31526 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31527
31528         Speed up by a factor of 1.12.
31529         * gnulib-tool (nl): New variable.
31530         (func_import): Rewrite include directive extraction to only read each
31531         directive once.
31532
31533 2006-09-17  Bruno Haible  <bruno@clisp.org>
31534
31535         * modules/javaversion (Makefile.am): Remove DEFS setting.
31536         (Depends-on): Add configmake, for PKGDATADIR definition.
31537
31538 2006-09-17  Bruno Haible  <bruno@clisp.org>
31539
31540         * gnulib-tool (func_create_testdir): Rewrite all files at once.
31541
31542 2006-09-17  Bruno Haible  <bruno@clisp.org>
31543
31544         * gnulib-tool (func_append): New function, stolen from libtool.m4.
31545         (func_modules_transitive_closure, func_modules_add_dummy,
31546         func_modules_to_filelist, func_import, func_create_testdir,
31547         func_create_megatestdir, ...): Use it wherever possible.
31548         Suggested by Ralf Wildenhues.
31549
31550 2006-09-16  Karl Berry  <karl@gnu.org>
31551
31552         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
31553         to avoid sectioning errors.
31554         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
31555         [ifinfo]: blank line after @center-ed titles.
31556         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
31557         Spell FSF address consistently with others.
31558         (These changes approved by rms.)
31559
31560 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31561
31562         Speed up by a factor of 1.61.
31563         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
31564         already checked module names again.
31565
31566 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31567
31568         Speed up by a factor of 1.13.
31569         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
31570         for new_files, and the input to func_add_or_update.
31571
31572 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31573
31574         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
31575         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
31576
31577 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31578
31579         * modules/mkancesdirs (Depends-on): Add fcntl.
31580         * modules/savewd: New file.
31581         * MODULES.html.sh (File system functions): Add savewd.
31582
31583         * modules/configmake (Makefile.am): Add support for the
31584         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
31585
31586 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31587
31588         * m4/savewd.m4: New file.
31589
31590 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31591
31592         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
31593         (dirchownmod): New arg FD.  All callers changed.
31594         Use FD rather than opening the directory ourself, as opening is
31595         now the caller's responsibility.
31596         * lib/dirchownmod.h: Likewise.
31597         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
31598         hosts that require <sys/types.h> before <sys/stat.h>.  Include
31599         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
31600         (test_dir): Remove.
31601         (mkancesdirs): Return length of prefix of FILE that has already
31602         been made, or -2 if there is a child doing the work.  Redo
31603         algorithm so that it is O(N) rather than O(N**2).  Optimize away
31604         ".", and treat ".." specially since it might stray back into
31605         already-created areas.  Use a subprocess if necessary.  New arg
31606         WD; all users changed.  MAKE_DIR function should now return 1
31607         if it creates a directory that is not readable.  Return -2 if
31608         a child process is spun off.
31609         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
31610         Adjust signature to match code.
31611         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
31612         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
31613         all users changed.
31614         * lib/savewd.c, lib/savewd.h: New files.
31615
31616 2006-09-15  Jim Meyering  <jim@meyering.net>
31617
31618         * modules/rename-dest-slash: New module.
31619         * MODULES.html.sh (posix_compat): Add it here.
31620
31621         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
31622
31623 2006-09-15  Jim Meyering  <jim@meyering.net>
31624
31625         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
31626         file.
31627
31628         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
31629
31630 2006-09-15  Jim Meyering  <jim@meyering.net>
31631
31632         * lib/rename-dest-slash.c (has_trailing_slash): Use
31633         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
31634         (rpl_rename_dest_slash): Perform the cheaper trailing slash
31635         test before testing whether SRC is a directory.
31636         Suggestions from Bruno Haible.
31637
31638         Avoid a warning about an unused variable.
31639         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
31640         into the #ifdef block where it's used.
31641
31642         * lib/rename-dest-slash.c: New file.
31643
31644 2006-09-14  Bruno Haible  <bruno@clisp.org>
31645
31646         * lib/allocsa.c: Include <config.h> unconditionally.
31647         * lib/asnprintf.c: Likewise.
31648         * lib/asprintf.c: Likewise.
31649         * lib/c-strcasecmp.c: Likewise.
31650         * lib/c-strcasestr.c: Likewise.
31651         * lib/c-strncasecmp.c: Likewise.
31652         * lib/c-strstr.c: Likewise.
31653         * lib/classpath.c: Likewise.
31654         * lib/clean-temp.c: Likewise.
31655         * lib/concatpath.c: Likewise.
31656         * lib/copy-file.c: Likewise.
31657         * lib/csharpcomp.c: Likewise.
31658         * lib/csharpexec.c: Likewise.
31659         * lib/execute.c: Likewise.
31660         * lib/fatal-signal.c: Likewise.
31661         * lib/findprog.c: Likewise.
31662         * lib/fwriteerror.c: Likewise.
31663         * lib/gl_array_list.c: Likewise.
31664         * lib/gl_array_oset.c: Likewise.
31665         * lib/gl_avltree_list.c: Likewise.
31666         * lib/gl_avltree_oset.c: Likewise.
31667         * lib/gl_avltreehash_list.c: Likewise.
31668         * lib/gl_carray_list.c: Likewise.
31669         * lib/gl_linked_list.c: Likewise.
31670         * lib/gl_linkedhash_list.c: Likewise.
31671         * lib/gl_list.c: Likewise.
31672         * lib/gl_oset.c: Likewise.
31673         * lib/gl_rbtree_list.c: Likewise.
31674         * lib/gl_rbtree_oset.c: Likewise.
31675         * lib/gl_rbtreehash_list.c: Likewise.
31676         * lib/imaxabs.c: Likewise.
31677         * lib/imaxdiv.c: Likewise.
31678         * lib/javacomp.c: Likewise.
31679         * lib/javaexec.c: Likewise.
31680         * lib/javaversion.c: Likewise.
31681         * lib/linebreak.c: Likewise.
31682         * lib/localcharset.c: Likewise.
31683         * lib/lock.c: Likewise.
31684         * lib/mbchar.c: Likewise.
31685         * lib/mbswidth.c: Likewise.
31686         * lib/mkdtemp.c: Likewise.
31687         * lib/pipe.c: Likewise.
31688         * lib/printf-args.c: Likewise.
31689         * lib/printf-parse.c: Likewise.
31690         * lib/progname.c: Likewise.
31691         * lib/progreloc.c: Likewise.
31692         * lib/readlink.c: Likewise.
31693         * lib/sh-quote.c: Likewise.
31694         * lib/stpcpy.c: Likewise.
31695         * lib/stpncpy.c: Likewise.
31696         * lib/strcasecmp.c: Likewise.
31697         * lib/strcasestr.c: Likewise.
31698         * lib/strcspn.c: Likewise.
31699         * lib/striconv.c: Likewise.
31700         * lib/strncasecmp.c: Likewise.
31701         * lib/strnlen1.c: Likewise.
31702         * lib/strstr.c: Likewise.
31703         * lib/strtok_r.c: Likewise.
31704         * lib/tls.c: Likewise.
31705         * lib/tmpdir.c: Likewise.
31706         * lib/unicodeio.c: Likewise.
31707         * lib/unsetenv.c: Likewise.
31708         * lib/vasnprintf.c: Likewise.
31709         * lib/vasprintf.c: Likewise.
31710         * lib/wait-process.c: Likewise.
31711         * lib/xallocsa.c: Likewise.
31712         * lib/xsetenv.c: Likewise.
31713         * lib/xstriconv.c: Likewise.
31714
31715 2006-09-13  Simon Josefsson  <jas@extundo.com>
31716
31717         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
31718         that internally, suggested by Ralf Wildenhues
31719         <Ralf.Wildenhues@gmx.de>.
31720
31721 2006-09-13  Simon Josefsson  <jas@extundo.com>
31722
31723         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
31724         @LIBOBJS@.
31725         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31726
31727 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31728
31729         * lib/_fpending.c: Include <config.h> unconditionally, since we no
31730         longer worry about uses that don't define HAVE_CONFIG_H.
31731         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
31732         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
31733         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
31734         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
31735         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
31736         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
31737         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
31738         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
31739         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
31740         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
31741         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
31742         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
31743         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
31744         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
31745         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
31746         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
31747         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
31748         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
31749         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
31750         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
31751         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
31752         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
31753         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
31754         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
31755         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
31756         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
31757         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
31758         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
31759         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
31760         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
31761         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
31762         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
31763         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
31764         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
31765         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
31766         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
31767         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
31768         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
31769         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
31770         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
31771         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
31772         Likewise.
31773
31774 2006-09-13  Eric Blake  <ebb9@byu.net>
31775
31776         * lib/getopt.c: Fix typo in last commit.
31777
31778 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31779
31780         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
31781         dgettext.
31782
31783 2006-09-12  Jim Meyering  <jim@meyering.net>
31784
31785         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
31786         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
31787         Reported by Nelson H. F. Beebe.
31788
31789 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31790
31791         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
31792         program_invocation_name and program_invocation_short_name are
31793         initialized.
31794         * lib/argp-namefrob.h: Move declarations of program_invocation_name
31795         and program_invocation_short_name to argp.h, so they are visible
31796         to user programs.
31797         * lib/argp.h: Likewise
31798
31799 2006-09-10  Bruno Haible  <bruno@clisp.org>
31800
31801         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
31802         m4/inttypes_h.m4, m4/uintmax_t.m4.
31803
31804 2006-09-10  Bruno Haible  <bruno@clisp.org>
31805
31806         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
31807         gl_AC_TYPE_UINTMAX_T.
31808
31809 2006-09-10  Bruno Haible  <bruno@clisp.org>
31810
31811         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
31812
31813 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31814
31815         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
31816         convention.  Text proposed by Bruno Haible.
31817         (struct argp_option): Document the use of N_() wrappers.
31818
31819         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
31820         '\v', and translate the two parts separately, instead of feeding
31821         the whole string to gettext.  This allows to exclude
31822         '\v' from the strings visible to the translator by writing doc
31823         strings as N_("..") "\v" N_("..").
31824
31825 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
31826
31827         * config/srclist.txt: Undo latest change; the bug was fixed.
31828
31829 2006-09-09  Bruno Haible  <bruno@clisp.org>
31830
31831         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
31832         assignments if building a library without libtool.
31833         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
31834         in func_emit_lib_Makefile_am.
31835         (func_import): When building a static library libfoo.a, arrange to
31836         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
31837         (func_create_testdir): Likewise.
31838         * modules/gc (configure.ac, Makefile.am): If building statically,
31839         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
31840         * modules/iconvme (configure.ac, Makefile.am): Likewise.
31841         * modules/striconv (configure.ac, Makefile.am): Likewise.
31842         Based on a suggestion by Ralf Wildenhues.
31843
31844 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31845
31846         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31847         Check for unistd.h too, since Autoconf doesn't assume POSIX.
31848         Also:
31849
31850         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31851         Add year_2050_test to catch glibc bug 2821
31852         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31853
31854         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31855         Prefer #ifdef to #if.
31856
31857         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31858         Return from 'main' instead of calling 'exit'.
31859
31860 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31861
31862         * lib/mktime.c (guess_time_tm): Fix bug where mktime
31863         returned the maximum time_t value rather than (time_t) -1.
31864         Problem originally reported by William Bardwell
31865         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31866
31867         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31868         Moved to here ...
31869         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31870         ... from here.
31871
31872 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31873
31874         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
31875         2821 is fixed.
31876
31877 2006-09-08  Jim Meyering  <jim@meyering.net>
31878
31879         Don't make generated files read-only.  That would bother too many
31880         people.  However, do retain the ability to work when targets are
31881         read-only: remove the destination and temporary files before writing
31882         them (when generated via sed or echo), or by using the -f option for
31883         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
31884         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31885         * modules/byteswap, modules/configmake, modules/fcntl:
31886         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31887         * modules/localcharset, modules/netinet_in, modules/poll:
31888         * modules/stdbool, modules/stdint, modules/sys_select:
31889         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31890
31891 2006-09-08  Jim Meyering  <jim@meyering.net>
31892
31893         Avoid new build failure on FreeBSD 6.0.
31894         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
31895         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
31896         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
31897
31898 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31899
31900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
31901
31902 2006-09-07  Jim Meyering  <jim@meyering.net>
31903
31904         Fix global typo in last change: use chmod u-w, not chmod u-x.
31905         Spotted by Paul Eggert and Bruce Korb.
31906         * modules/alloca-opt, modules/argz, modules/arpa_inet:
31907         * modules/byteswap, modules/configmake, modules/fcntl:
31908         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
31909         * modules/localcharset, modules/netinet_in, modules/poll:
31910         * modules/stdbool, modules/stdint, modules/sys_select:
31911         * modules/sys_socket, modules/sys_stat, modules/sysexits:
31912
31913 2006-09-06  Jim Meyering  <jim@meyering.net>
31914
31915         Make generated files be read-only.
31916         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
31917         Ensure that each generated file is now read-only.
31918         * modules/argz: Likewise.
31919         * modules/arpa_inet: Likewise.
31920         * modules/byteswap: Likewise.
31921         * modules/configmake: Likewise.
31922         * modules/fcntl: Likewise.
31923         * modules/fnmatch: Likewise.
31924         * modules/getopt: Likewise.
31925         * modules/glob: Likewise.
31926         * modules/inttypes: Likewise.
31927         * modules/netinet_in: Likewise.
31928         * modules/poll: Likewise.
31929         * modules/stdbool: Likewise.
31930         * modules/stdint: Likewise.
31931         * modules/sys_select: Likewise.
31932         * modules/sys_socket: Likewise.
31933         * modules/sys_stat: Likewise.
31934         * modules/sysexits: Likewise.
31935         * modules/localcharset: Same as above, but continue using temporary
31936         file named "t-$@" (why different?) rather than the "$@-t" used
31937         everywhere else.
31938
31939         * modules/sysexits (Makefile.am): Replace literal occurrences
31940         of "sysexit.h" more readable, and more consistent, "$@".
31941
31942 2006-09-06  Bruno Haible  <bruno@clisp.org>
31943
31944         * modules/striconv: New file.
31945         * modules/xstriconv: New file.
31946         * MODULES.html.sh (Internationalization functions): Add striconv,
31947         xstriconv.
31948
31949 2006-09-06  Bruno Haible  <bruno@clisp.org>
31950
31951         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
31952         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
31953         not using libtool correctly.
31954
31955 2006-09-06  Bruno Haible  <bruno@clisp.org>
31956
31957         * lib/striconv.h: New file.
31958         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
31959         iconvstring.c.
31960         * lib/xstriconv.h: New file.
31961         * lib/xstriconv.c: New file.
31962
31963 2006-09-06  Bruno Haible  <bruno@clisp.org>
31964
31965         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31966         lib_..._LDFLAGS.
31967
31968 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31969
31970         * lib/argz_.h: Sync from Libtool.
31971
31972         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
31973                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31974
31975         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
31976
31977 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31978
31979         * modules/trim: New file.
31980
31981 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
31982
31983         * lib/trim.h: New file.
31984         * lib/trim.c: New file.
31985
31986 2006-09-05  Bruno Haible  <bruno@clisp.org>
31987
31988         * MODULES.html.sh (String handling): Add trim.
31989
31990 2006-09-04  Karl Berry  <karl@gnu.org>
31991
31992         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
31993         until next release.
31994
31995 2006-09-03  Bruno Haible  <bruno@clisp.org>
31996
31997         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
31998         correctly.
31999
32000 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32001
32002         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
32003         not gl_GETLOADAVG.  Omit unneeded semicolons.
32004         Problems reported by Ralf Wildenhues in
32005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32006         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
32007         at the end, which is the usual gnulib style.
32008
32009         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
32010         of doing all the work ourselves.
32011         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
32012         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
32013
32014 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32015
32016         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
32017         Problem reported by Ralf Wildenhues in
32018         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32019
32020         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
32021         HAVE_STRUCT_STATFS_F_FSTYPENAME.
32022
32023 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32024
32025         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
32026         yesterday's patch by changing test -n to test -z.
32027
32028 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32029
32030         * modules/getloadavg (Files): Add m4/getloadavg.m4.
32031         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
32032         the former is now obsolescent.
32033
32034         * modules/chdir-long (Depends-on): Add fcntl.
32035
32036 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32037
32038         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
32039         obsolescent, and programs should use gnulib instead.
32040         * m4/getloadavg.m4: New file, with contents taken from Autoconf
32041         but with prefixes changed.
32042
32043 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32044
32045         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
32046         or stdbool.h, because they might not exist while configuring.
32047
32048         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
32049         Don't include unistd.h or limits.h; not needed, since chdir-long.h
32050         does that for us.
32051         (O_DIRECTORY): Remove.
32052
32053 2006-08-31  Eric Blake  <ebb9@byu.net>
32054
32055         * gnulib-tool: Don't let emacs change spaces to TAB.
32056
32057 2006-08-31  Bruno Haible  <bruno@clisp.org>
32058
32059         * gnulib-tool: When calling func_import more than once, do it in a
32060         subshell.
32061         Reported by Eric Blake <ebb9@byu.net>.
32062
32063 2006-08-31  Bruno Haible  <bruno@clisp.org>
32064
32065         * gnulib-tool (nl): Remove variable.
32066         (sed_transform_lib_file): Use more robust test for config-h module.
32067         (func_import): Fix typo in 2006-08-25 patch.
32068
32069 2006-08-31  Bruno Haible  <bruno@clisp.org>
32070
32071         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
32072         specified, augment Makefile.am variables instead of assigning them.
32073
32074 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32075
32076         Work around a bug in both the Linux and SunOS 64-bit kernels:
32077         nanosleep mishandles sleeps for longer than 2**31 seconds.
32078         Problem reported by Frank v Waveren in
32079         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
32081         Check for nanosleep bug.
32082         (LIB_NANOSLEEP): Append clock_gettime library if needed.
32083
32084 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32085
32086         Work around a bug in both the Linux and SunOS 64-bit kernels:
32087         nanosleep mishandles sleeps for longer than 2**31 seconds.
32088         Problem reported by Frank v Waveren in
32089         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32090         * lib/nanosleep.c (BILLION): New constant.
32091         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
32092         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
32093         implementation.
32094
32095 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         * modules/nanosleep (Depends-on): Add gettime.
32098
32099 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32100         and Simon Josefsson  <jas@extundo.com>
32101         and Oskar Liljeblad  <oskar@osk.mine.nu>
32102
32103         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
32104         * gnulib-tool (func_import): New license type 'unmodifiable license
32105         text'.
32106         * modules/fdl: Use it.  Longer description.
32107         * module/gpl, module/lgpl: New files.
32108
32109 2006-08-30  Jim Meyering  <jim@meyering.net>
32110
32111         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
32112         shadowing the parameter.
32113
32114 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32115
32116         Sync from Libtool:
32117
32118         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32119
32120         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
32121         sharing with gnulib.  Report by Eric Blake.
32122
32123 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32124
32125         * modules/isapipe: New file.
32126         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
32127
32128 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32129
32130         * modules/configmake (Makefile.am): Add a comment, and omit
32131         the CONFIGMAKE_ prefix from generated macro names.  Suggested
32132         by Bruno Haible.
32133
32134 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32135
32136         * m4/isapipe.m4: New file.
32137
32138 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32139
32140         * lib/isapipe.c, lib/isapipe.h: New files.
32141
32142 2006-08-29  Jim Meyering  <jim@meyering.net>
32143
32144         * modules/configmake (Makefile.am): Make configmake.h depend on
32145         Makefile.  Otherwise, a stale configmake.h could hang around.
32146
32147 2006-08-29  Eric Blake  <ebb9@byu.net>
32148
32149         * lib/error.c (error_at_line, print_errno_message): Match libc, after
32150         resolution of upstream bug 3044.
32151
32152 2006-08-29  Bruno Haible  <bruno@clisp.org>
32153
32154         * modules/localcharset (Depends-on): Add configmake.
32155         (Makefile.am): Remove setting of LIBDIR through DEFS.
32156
32157 2006-08-29  Bruno Haible  <bruno@clisp.org>
32158
32159         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
32160         defined.
32161
32162 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32163
32164         * modules/fcntl: New file.
32165         * modules/chdir-safer (Depends-on): Add fcntl.
32166         * modules/fts: Likewise.
32167         * modules/mkdir-p: Likewise.
32168
32169         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
32170         This undoes the most recent change, since we're now addressing the
32171         problem in a different way.
32172
32173         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
32174         into output, since the output might be called Makefile.am even
32175         if $makefile_name is something different.
32176         (func_import): Use $makefile_am rather than
32177         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
32178         empty.
32179
32180         * modules/inttypes (Files): Add m4/inttypes-h.m4.
32181
32182 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32183
32184         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
32185         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
32186         recent change to stdint.m4, since we're now addressing the problem in a
32187         different way.
32188
32189 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32190
32191         * m4/fcntl_h.m4: New file.
32192
32193 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32194
32195         * lib/fcntl_.h: New file.
32196         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
32197         the fcntl module.
32198         * lib/dirchownmod.c: Likewise.
32199         * lib/fts.c: Likewise.
32200
32201         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
32202         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
32203         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
32204         just before including <inttypes.h>, to avoid circular inclusion.
32205
32206 2006-08-28  Jim Meyering  <jim@meyering.net>
32207
32208         * doc/visibility.texi: Actually read and correct the grammar of the
32209         sentence affected by yesterday's change.
32210
32211 2006-08-28  Eric Blake  <ebb9@byu.net>
32212
32213         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
32214         needs wrapper.
32215
32216 2006-08-28  Eric Blake  <ebb9@byu.net>
32217
32218         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
32219
32220 2006-08-28  Eric Blake  <ebb9@byu.net>
32221
32222         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
32223
32224 2006-08-28  Bruno Haible  <bruno@clisp.org>
32225
32226         * modules/c-strstr: New file, from GNU gettext.
32227         * MODULES.html.sh (String handling): Add c-strstr.
32228
32229 2006-08-28  Bruno Haible  <bruno@clisp.org>
32230
32231         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
32232         macros.
32233         Reported by Eric Blake.
32234
32235 2006-08-28  Bruno Haible  <bruno@clisp.org>
32236
32237         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
32238         (VASNPRINTF): Return a string of length > INT_MAX without failing.
32239         * lib/vasprintf.c: Include errno.h, limits.h.
32240         (EOVERFLOW): New fallback definition.
32241         (vasprintf): Test here whether the string length is > INT_MAX.
32242         * lib/vsnprintf.c: Include errno.h, limits.h.
32243         (EOVERFLOW): New fallback definition.
32244         (vsnprintf): Fix bug when generated string was too long for the buffer.
32245         Test here whether the string length is > INT_MAX.
32246
32247 2006-08-28  Bruno Haible  <bruno@clisp.org>
32248
32249         * lib/inttypes_.h (SCNX*): Remove definitions.
32250         Reported by Eric Blake.
32251
32252 2006-08-28  Bruno Haible  <bruno@clisp.org>
32253
32254         * lib/c-strstr.h: New file, from GNU gettext.
32255         * lib/c-strstr.c: New file, from GNU gettext.
32256
32257 2006-08-28  Bruno Haible  <bruno@clisp.org>
32258
32259         * gnulib-tool: Reorder some statements.
32260
32261 2006-08-28  Bruno Haible  <bruno@clisp.org>
32262
32263         * gnulib-tool: New option --makefile-name.
32264         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
32265         $makefile_name.
32266         (func_import): Write $makefile_name to the cache file, and read it from
32267         there unless explicitly specified. Use $makefile_name as file name
32268         instead of Makefile.am. Adjust the recommendations accordingly.
32269
32270 2006-08-28  Bruno Haible  <bruno@clisp.org>
32271
32272         * gnulib-tool (func_verify_module): Check against misapplying patch.
32273
32274 2006-08-28  Bruno Haible  <bruno@clisp.org>
32275
32276         * gnulib-tool (func_relativize, func_relconcat): New functions.
32277         Give an error if --local-dir is given with --update.
32278         Remove trailing slashes from $local_gnulib_dir.
32279         (func_import): Store the relativized $local_gnulib_dir in
32280         gnulib-cache.m4, and read it from there if not specified explicitly.
32281
32282 2006-08-28  Bruno Haible  <bruno@clisp.org>
32283
32284         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
32285         is the current directory. Respect also $local_gnulib_dir.
32286
32287 2006-08-28  Bruno Haible  <bruno@clisp.org>
32288             Simon Josefsson  <jas@extundo.com>
32289
32290         BeOS portability.
32291         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
32292
32293 2006-08-27  Jim Meyering  <jim@meyering.net>
32294
32295         * doc/visibility.texi: Remove duplicate word: "pointer".
32296
32297 2006-08-26  Bruno Haible  <bruno@clisp.org>
32298
32299         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
32300         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
32301         (Makefile.am): Create inttypes.h from inttypes_.h.
32302         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
32303
32304         * modules/imaxabs: New file.
32305
32306         * modules/imaxdiv: New file.
32307
32308 2006-08-26  Bruno Haible  <bruno@clisp.org>
32309
32310         * m4/inttypes.m4: New file.
32311         * m4/_inttypes_h.m4: Remove file.
32312         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
32313         PRI_MACROS_BROKEN.
32314         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
32315
32316         * m4/imaxabs.m4: New file.
32317
32318         * m4/imaxdiv.m4: New file.
32319
32320 2006-08-26  Bruno Haible  <bruno@clisp.org>
32321
32322         * lib/inttypes_.h: New file.
32323         * lib/inttypes.h: Remove file.
32324         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
32325
32326         * lib/imaxabs.c: New file.
32327
32328         * lib/imaxdiv.c: New file.
32329
32330 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32331
32332         New config-h module, so that "make" output needn't be cluttered
32333         by -DHAVE_CONFIG_H.
32334         * MODULES.html.sh (Support for building libraries and executables):
32335         Add config-h.
32336         * modules/config-h: New file.
32337         * gnulib-tool (nl, sed_transform_lib_file): New vars.
32338         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
32339         the config-h module is used.
32340
32341         New configmake module, so that "make" output needn't be cluttered
32342         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
32343         * MODULES.html.sh (Support for building libraries and executables):
32344         Add configmake.
32345         * modules/configmake: New file.
32346
32347 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32348
32349         * m4/config-h.m4: New file.
32350
32351 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32352
32353         * config/srclist.txt: Add elisp-comp.
32354
32355 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32356
32357         * MODULES.html.sh (Support for building libraries and executables):
32358         Add elisp-comp.
32359         * build-aux/elisp-comp: New file.
32360         * modules/elisp-comp: New file.
32361
32362 2006-08-24  Bruno Haible  <bruno@clisp.org>
32363
32364         * gnulib-tool (func_create_testdir): Use non-default values of
32365         sourcebase and m4base.
32366
32367 2006-08-24  Bruno Haible  <bruno@clisp.org>
32368
32369         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
32370         HTML structure.
32371
32372 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32373
32374         * modules/openat (Depends-on): Add lchown.
32375
32376 2006-08-23  Bruno Haible  <bruno@clisp.org>
32377
32378         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
32379         of gl_LOCK_EARLY instead of gl_LOCK.
32380
32381 2006-08-23  Bruno Haible  <bruno@clisp.org>
32382
32383         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
32384         on OSF/1 to no.
32385         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
32386
32387 2006-08-23  Bruno Haible  <bruno@clisp.org>
32388
32389         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
32390         as unusable.
32391
32392         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
32393         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
32394         (gl_LOCK): New macro.
32395
32396 2006-08-22  Simon Josefsson  <jas@extundo.com>
32397
32398         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
32399         to md5 module.
32400
32401 2006-08-22  Simon Josefsson  <jas@extundo.com>
32402
32403         * MODULES.html.sh: Add "Support for maintaining and release
32404         projects".
32405
32406         * build-aux/gnupload: New file, from coreutils.
32407
32408 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32409
32410         Avoid the need for AC_LIBSOURCES in m4 macros.
32411         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
32412         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
32413         * modules/check-version (EXTRA_DIST): Add check-version.h.
32414         * modules/crc (EXTRA_DIST): Add crc.h.
32415         * modules/des (EXTRA_DIST): Add des.h.
32416         * modules/gc (EXTRA_DIST): Add gc.h.
32417         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
32418         * modules/getline (EXTRA_DIST): Add getline.h.
32419         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
32420         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
32421         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
32422         * modules/md2 (EXTRA_DIST): Add md2.h.
32423         * modules/md4 (EXTRA_DIST): Add md4.h.
32424         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
32425         * modules/read-file (EXTRA_DIST): Add read-file.h.
32426         * modules/readline (EXTRA_DIST): Add readline.h.
32427         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
32428         rijndael-api-fst.h.
32429
32430 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32431
32432         * m4/rijndael.m4 (gl_ARCFOUR):
32433         * m4/arctwo.m4 (gl_ARCTWO):
32434         * m4/check-version.m4 (gl_CHECK_VERSION):
32435         * m4/crc.m4 (gl_CRC):
32436         * m4/des.m4 (gl_DES):
32437         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
32438         * m4/gc.m4 (gl_GC):
32439         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
32440         * m4/getline.m4 (gl_FUNC_GETLINE):
32441         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
32442         * m4/hmac-md5.m4 (gl_HMAC_MD5):
32443         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
32444         * m4/md2.m4 (gl_MD2):
32445         * m4/md4.m4 (gl_MD4):
32446         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
32447         * m4/read-file.m4 (gl_FUNC_READ_FILE):
32448         * m4/readline.m4 (gl_FUNC_READLINE):
32449         * m4/rijndael.m4 (gl_RIJNDAEL):
32450         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32451         to get the necessary .h files and whatnot.
32452
32453 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32454
32455         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
32456         gnulib rather than the other way around.
32457         * config/srclistvars.sh (COREUTILS): Remove.
32458
32459 2006-08-22  Jim Meyering  <jim@meyering.net>
32460
32461         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
32462
32463         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
32464
32465 2006-08-22  Eric Blake  <ebb9@byu.net>
32466
32467         * modules/regexprops-generic: New file.
32468         * MODULES.html.sh (Support for building documentation): List it.
32469
32470 2006-08-22  Eric Blake  <ebb9@byu.net>
32471
32472         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
32473         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32474         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
32475         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32476
32477 2006-08-22  Bruno Haible  <bruno@clisp.org>
32478
32479         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
32480         and lib_LTLIBRARIES like the other lib_* variables.
32481
32482 2006-08-22  Bruno Haible  <bruno@clisp.org>
32483
32484         * build-aux/x-to-1.in: New file, from GNU gettext.
32485
32486 2006-08-22  Bruno Haible  <bruno@clisp.org>
32487
32488         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
32489         <utmpx.h> exists.
32490
32491 2006-08-22  Bruno Haible  <bruno@clisp.org>
32492
32493         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
32494         <utmpx.h> exists.
32495
32496 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         BeOS portability.
32499         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
32500         exist.
32501         Problem reported by Bruno Haible.
32502
32503 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32504
32505         Avoid the need for AC_LIBSOURCES in m4 macros.
32506         * modules/acl (EXTRA_DIST): Add acl.h.
32507         * modules/argmatch (Files): Add m4/argmatch.m4.
32508         (configure.ac): Add gl_ARGMATCH.
32509         (EXTRA_DIST): Renamed from lib_SOURCES, for
32510         consistency with the other modules.  Remove argmatch.c.
32511         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
32512         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
32513         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
32514         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
32515         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
32516         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
32517         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
32518         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
32519         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
32520         * modules/closeout (EXTRA_DIST): Add closeout.h.
32521         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
32522         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
32523         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
32524         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
32525         dirname.h; remove basename.c and stripslash.c.
32526         * modules/exclude (EXTRA_DIST): Add exclude.h.
32527         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
32528         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
32529         * modules/file-type (EXTRA_DIST): Add file-type.h.
32530         * modules/filemode (EXTRA_DIST): Add filemode.h.
32531         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
32532         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32533         * modules/fpending (EXTRA_DIST): Add __fpending.h.
32534         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
32535         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
32536         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
32537         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
32538         * modules/getdate (EXTRA_DIST): Add getdate.c.
32539         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
32540         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
32541         * modules/getpass (EXTRA_DIST): Add getpass.h.
32542         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
32543         * modules/group-member (EXTRA_DIST): Add group-member.h.
32544         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
32545         * modules/hash (EXTRA_DIST): Add hash.h.
32546         * modules/human (EXTRA_DIST): Add human.h.
32547         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
32548         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
32549         * modules/lchown (EXTRA_DIST): Add lchown.h.
32550         * modules/long-options (EXTRA_DIST): Add long-options.h.
32551         * modules/lstat (EXTRA_DIST): Add lstat.h.
32552         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
32553         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
32554         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
32555         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
32556         * modules/memxor (EXTRA_DIST): Add memxor.h.
32557         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
32558         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
32559         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
32560         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
32561         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
32562         * modules/physmem (EXTRA_DIST): Add physmem.h.
32563         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
32564         * modules/posixver (EXTRA_DIST): Add posixver.h.
32565         * modules/quote (EXTRA_DIST): Add quote.h.
32566         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
32567         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
32568         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
32569         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
32570         regex_internal.h regexec.c.
32571         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
32572         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
32573         * modules/same (EXTRA_DIST): Add same.h.
32574         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
32575         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
32576         * modules/savedir (EXTRA_DIST): Add savedir.h.
32577         * modules/sha1 (EXTRA_DIST): Add sha1.h.
32578         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
32579         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
32580         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
32581         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
32582         * modules/strdup (EXTRA_DIST): Add strdup.h.
32583         * modules/strftime (EXTRA_DIST): Add strftime.h.
32584         * modules/strndup (EXTRA_DIST): Add strndup.h.
32585         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
32586         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
32587         * modules/time_r (EXTRA_DIST): Add time_r.h.
32588         * modules/timespec (EXTRA_DIST): Add timespec.h.
32589         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32590         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
32591         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
32592         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
32593         * modules/userspec (EXTRA_DIST): Add userspec.h.
32594         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
32595         * modules/utimens (EXTRA_DIST): Add utimens.h.
32596         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
32597         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
32598         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
32599         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
32600         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
32601         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
32602         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
32603         * modules/yesno (EXTRA_DIST): Add yesno.h.
32604
32605 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32606
32607         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
32608
32609         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
32610         * m4/dev-ino.m4, same-inode.m4: Remove.
32611
32612         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
32613         * m4/acl.m4 (AC_FUNC_ACL):
32614         * m4/backupfile.m4 (gl_BACKUPFILE):
32615         * m4/c-strtod.m4 (gl_C99_STRTOLD):
32616         * m4/canon-host.m4 (gl_CANON_HOST):
32617         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
32619         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
32620         * m4/cloexec.m4 (gl_CLOEXEC):
32621         * m4/close-stream.m4 (gl_CLOSE_STREAM):
32622         * m4/closeout.m4 (gl_CLOSEOUT):
32623         * m4/dirfd.m4 (gl_FUNC_DIRFD):
32624         * m4/dirname.m4 (gl_DIRNAME):
32625         * m4/exclude.m4 (gl_EXCLUDE):
32626         * m4/exitfail.m4 (gl_EXITFAIL):
32627         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
32628         * m4/file-type.m4 (gl_FILE_TYPE):
32629         * m4/filemode.m4 (gl_FILEMODE):
32630         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
32631         * m4/fpending.m4 (gl_FUNC_FPENDING):
32632         * m4/fprintftime.m4 (gl_FPRINTFTIME):
32633         * m4/fts.m4 (gl_FUNC_FTS):
32634         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
32635         * m4/getdate.m4 (gl_GETDATE):
32636         * m4/gethrxtime.m4 (gl_GETHRXTIME):
32637         * m4/getpagesize.m4 (gl_GETPAGESIZE):
32638         * m4/getpass.m4 (gl_FUNC_GETPASS):
32639         * m4/gettime.m4 (gl_GETTIME):
32640         * m4/getugroups.m4 (gl_GETUGROUPS):
32641         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
32642         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
32643         * m4/hard-locale.m4 (gl_HARD_LOCALE):
32644         * m4/hash.m4 (gl_HASH):
32645         * m4/idcache.m4 (gl_IDCACHE):
32646         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
32647         * m4/lchown.m4 (gl_FUNC_LCHOWN):
32648         * m4/long-options.m4 (gl_LONG_OPTIONS):
32649         * m4/lstat.m4 (gl_FUNC_LSTAT):
32650         * m4/md5.m4 (gl_MD5):
32651         * m4/memcasecmp.m4 (gl_MEMCASECMP):
32652         * m4/memcoll.m4 (gl_MEMCOLL):
32653         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
32654         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
32655         * m4/memxor.m4 (gl_MEMXOR):
32656         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
32657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
32658         * m4/modechange.m4 (gl_MODECHANGE):
32659         * m4/mountlist.m4 (gl_MOUNTLIST):
32660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32661         * m4/openat.m4 (gl_FUNC_OPENAT):
32662         * m4/pathmax.m4 (gl_PATHMAX):
32663         * m4/physmem.m4 (gl_PHYSMEM):
32664         * m4/posixtm.m4 (gl_POSIXTM):
32665         * m4/posixver.m4 (gl_POSIXVER):
32666         * m4/quote.m4 (gl_QUOTE):
32667         * m4/quotearg.m4 (gl_QUOTEARG):
32668         * m4/readtokens.m4 (gl_READTOKENS):
32669         * m4/readutmp.m4 (gl_READUTMP):
32670         * m4/regex.m4 (gl_REGEX):
32671         * m4/safe-read.m4 (gl_SAFE_READ):
32672         * m4/safe-write.m4 (gl_SAFE_WRITE):
32673         * m4/same.m4 (gl_SAME):
32674         * m4/save-cwd.m4 (gl_SAVE_CWD):
32675         * m4/savedir.m4 (gl_SAVEDIR):
32676         * m4/settime.m4 (gl_SETTIME):
32677         * m4/sha1.m4 (gl_SHA1):
32678         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
32679         * m4/stat-macros.m4 (gl_STAT_MACROS):
32680         * m4/stat-time.m4 (gl_STAT_TIME):
32681         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
32682         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
32683         * m4/strdup.m4 (gl_FUNC_STRDUP):
32684         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
32685         * m4/strndup.m4 (gl_FUNC_STRNDUP):
32686         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
32687         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
32688         * m4/time_r.m4 (gl_TIME_R):
32689         * m4/timespec.m4 (gl_TIMESPEC):
32690         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
32691         * m4/unlinkdir.m4 (gl_UNLINKDIR):
32692         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
32693         * m4/userspec.m4 (gl_USERSPEC):
32694         * m4/utimecmp.m4 (gl_UTIMECMP):
32695         * m4/utimens.m4 (gl_UTIMENS):
32696         * m4/xalloc.m4 (gl_XALLOC):
32697         * m4/xgetcwd.m4 (gl_XGETCWD):
32698         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
32699         * m4/xreadlink.m4 (gl_XREADLINK):
32700         * m4/xstrtod.m4 (gl_XSTRTOD):
32701         * m4/yesno.m4 (gl_YESNO):
32702         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32703         to get the necessary .h files and whatnot.
32704
32705 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
32706             Bruno Haible  <bruno@clisp.org>
32707
32708         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
32709         /bin/sh understanding of '!' conditional negation.
32710
32711 2006-08-21  Jim Meyering  <jim@meyering.net>
32712
32713         * modules/openat (Depends-on): Really alphabetize.
32714
32715         * modules/acl (Depends-on): Add error and quote.
32716
32717         * check-module (find_included_lib_files): Add at-func.c to the
32718         ok-to-include-more-than-once white list.
32719
32720         * modules/openat (Depends-on): Add lstat.  Alphabetize.
32721
32722 2006-08-21  Bruno Haible  <bruno@clisp.org>
32723
32724         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32725         Emit a pkgdata_DATA variable only if some snippets add contents to it.
32726         Reported by Martin Lambers <marlam@marlam.de>.
32727
32728 2006-08-21  Bruno Haible  <bruno@clisp.org>
32729
32730         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
32731         specify an installation location, don't emit a noinst_LIBRARIES or
32732         noinst_LTLIBRARIES assignment.
32733
32734 2006-08-21  Bruno Haible  <bruno@clisp.org>
32735
32736         BeOS portability.
32737         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
32738         BeOS has mbrtowc() but no <wctype.h>.
32739
32740 2006-08-21  Bruno Haible  <bruno@clisp.org>
32741
32742         BeOS portability.
32743         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
32744         exist.
32745
32746 2006-08-21  Bruno Haible  <bruno@clisp.org>
32747
32748         BeOS portability.
32749         * lib/mbchar.h: Include <wctype.h> only if it exists.
32750
32751 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32752
32753         Remove files that are no longer needed by their respective modules.
32754         * m4/obstack.m4: Remove.
32755         * m4/strerror_r.m4: Remove.
32756         * m4/uint32_t.m4: Remove.
32757         * m4/uintptr_t.m4: Remove.
32758         * m4/ullong_max.m4: Remove.
32759         * m4/xstrtoimax.m4: Remove.
32760         * m4/xstrtoumax.m4: Remove.
32761
32762         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
32763         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
32764         dependencies now capture this.
32765
32766         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32767         Do not use AC_LIBSOURCES, since gnulib modules now do this.
32768         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
32769         * m4/human.m4 (gl_HUMAN): Likewise.
32770         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
32771         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
32772
32773         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
32774
32775         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
32776         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
32777         stdint.
32778         * m4/human.m4 (gl_HUMAN): Likewise.
32779         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
32780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
32781         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32782         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32783         * m4/xstrtol (gl_XSTRTOL): Likewise.
32784
32785         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
32786         AC_TYPE_LONG_LONG_INT.
32787         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32788         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
32789         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
32790         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32791
32792         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
32793         on stdbool.
32794
32795         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
32796         (gl_PREREQ_XSTRTOUL): Remove.
32797
32798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
32799
32800         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
32801         mode.
32802
32803 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32804
32805         Add and change modules to make it easier for coreutils to use
32806         gnulib-tool.
32807         * modules/backupfile (Files): Remove m4/d-ino.m4.
32808         (Depends-on): Add d-ino.
32809         * modules/cycle-check (Depends-on): Add stdint.
32810         (lib_SOURCES): Add cycle-check.h.
32811         * modules/d-ino: New module.
32812         * modules/d-type: New module.
32813         * modules/error (Files): Remove m4/strerror_r.m4.
32814         * modules/filemode (Files): Add m4/st_dm_mode.m4.
32815         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32816         m4/inttypes_h.m4, m4/uintmax_t.m4.
32817         (Depends-on): Add stdint.
32818         (lib_SOURCES): Add fsusage.h.
32819         * modules/getcwd (Files): Remove d-ino.m4.
32820         (Depends-on): Add d-ino.
32821         * modules/getndelim2 (Depends-on): Add stdint.
32822         * modules/glob (Files): Remove m4/d-type.m4.
32823         (Depends-on): Add d-type.
32824         * modules/host-os: New module.
32825         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
32826         m4/inttypes_h.m4, m4/uintmax_t.m4.
32827         * Depends-on: Add stdint.
32828         (lib_SOURCES): Add human.h.
32829         * modules/inttostr (Files): Remove m4/intmax_t.m4,
32830         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
32831         m4/uintmax_t.m4, m4/ulonglong.m4.
32832         (Depends-on): Add stdint.
32833         (EXTRA_DIST): Add inttostr.h.
32834         * modules/lchmod: New module.
32835         * modules/link-follow: New module.
32836         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
32837         (Depends-on): Add lchmod.
32838         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
32839         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
32840         (Depends-on): Add stdint.
32841         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
32842         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
32843         (Depends-on): Add stdint.
32844         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
32845         * modules/perl: New module.
32846         * modules/regex (Depends-on): Add stdint.
32847         * modules/rmdir-errno: New module.
32848         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32849         m4/intmax_t.m4.
32850         (Depends-on): Add stdint.
32851         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32852         m4/uintmax_t.m4.
32853         (Depends-on): Add stdint.
32854         * modules/unlink-busy: New module.
32855         * modules/utimecmp (Depends-on): Add stdint.
32856         * modules/uptime: New module.
32857         * modules/winsz-ioctl: New module.
32858         * modules/winsz-termios: New module.
32859         * modules/xnanosleep (Depends-on): Add nanosleep.
32860         * modules/ullong_max: Remove.
32861         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
32862         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
32863         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
32864         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
32865         (Depends-on): Add inttypes.
32866         (lib_SOURCES): Add xstrtol.h.
32867         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
32868         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
32869         * MODULES.html.sh: Move 'assert' into the assert section.
32870         Move 'dummy' into the linking section.
32871         Remove ullong_max.
32872         Add section for compatibility checks for POSIX:2001 functions,
32873         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
32874         winsz-ioctl, and winsz-termios into it.
32875         Add lchmod.
32876         Add top-level Misc section and put host-os, perl, and uptime
32877         into it.
32878
32879 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32880
32881         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
32882         now assume the stdint module.  Do not include inttypes.h.
32883         * lib/fsusage.h: Likewise.
32884         * lib/getndelim2.c: Likewise.
32885         * lib/human.h: Likewise.
32886         * lib/inttostr.h: Likewise.
32887         * lib/obstack.c: Likewise.
32888         * lib/regex_internal.h: Likewise.
32889         * lib/tempname.c: Likewise.
32890         * lib/utimecmp.c: Likewise.
32891         * lib/xstrtol.h: Likewise.
32892
32893         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
32894
32895         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
32896         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
32897         * lib/xtime.h: Likewise.
32898
32899 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32900
32901         * modules/openat (Files): Add lib/fchmodat.c.
32902         Fixes problem reported by Jay Youngman.
32903
32904 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
32905
32906         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
32907         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
32908
32909 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
32910             Bruno Haible  <bruno@clisp.org>
32911
32912         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
32913         and is a script that invokes bison. Tighten the code. Add comments.
32914
32915 2006-08-18  Jim Meyering  <jim@meyering.net>
32916
32917         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
32918         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
32919         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
32920         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
32921
32922 2006-08-18  Bruno Haible  <bruno@clisp.org>
32923
32924         * modules/bison-i18n: New file.
32925         * MODULES.html.sh (Internationalization functions): Add it.
32926
32927 2006-08-18  Bruno Haible  <bruno@clisp.org>
32928
32929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
32930         sys/statvfs.h. When getmntinfo was found, check its declaration and
32931         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
32932
32933 2006-08-18  Bruno Haible  <bruno@clisp.org>
32934
32935         * m4/bison-i18n.m4: New file, from bison.
32936
32937 2006-08-18  Bruno Haible  <bruno@clisp.org>
32938
32939         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
32940         (ME_DUMMY): Treat "kernfs" as a dummy.
32941         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
32942
32943 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32944
32945         Update from coreutils.
32946
32947         2006-08-15  Jim Meyering  <jim@meyering.net>
32948
32949         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
32950
32951         2006-01-17  Jim Meyering  <jim@meyering.net>
32952
32953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
32954
32955         2006-01-11  Jim Meyering  <jim@meyering.net>
32956
32957         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
32958         Check for the lchmod function.
32959
32960 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
32961
32962         Update from coreutils.
32963
32964         * lib/__fpending.h: Add copyright notice.
32965         * lib/fprintftime.h: Likewise.
32966         * lib/savedir.c: Use (C) in copyright notice.
32967         * lib/savedir.h: Likewise.
32968
32969         2006-08-15  Jim Meyering  <jim@meyering.net>
32970
32971         * lib/at-func.c: New file, with the logic of all emulated at-functions.
32972         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
32973         in support of the EXPECTED_ERRNO macro.
32974         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
32975         definitions.  Instead, define the appropriate symbols and include
32976         "at-func.c".
32977         * lib/mkdirat.c (mkdirat): Likewise.
32978         * lib/fchmodat.c (fchmodat): Likewise.
32979         (ENOSYS): Remove definition.
32980         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
32981         it.  Don't include "unistd--.h" -- it wasn't ever used.
32982
32983         2006-01-17  Jim Meyering  <jim@meyering.net>
32984
32985         Rewrite fts.c not to change the current working directory,
32986         by using openat, fstatat, fdopendir, etc..
32987
32988         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
32989         (HAVE_OPENAT_SUPPORT): Define.
32990         [_LIBC] (fchdir): Don't undef or define; no longer used.
32991         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
32992         Now, this `function' always succeeds, and consumes its file descriptor
32993         parameter -- so callers must not close such FDs.  Update callers.
32994         (diropen_fd, opendirat, cwd_advance_fd): New functions.
32995         (diropen): Add parameter, SP.  Adjust all callers.
32996         Implement using diropen_fd, rather than open.
32997         (fts_open): Initialize new member, fts_cwd_fd.
32998         Remove fts_rft-setting code.
32999         (fts_close): Close fts_cwd_fd, if necessary.
33000         (__opendir2): Define in terms of opendir or opendirat,
33001         depending on whether the FST_NOCHDIR flag is set.
33002         (fts_build): Since fts_safe_changedir consumes its FD, and since
33003         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
33004         and close the dup'd file descriptor upon failure.
33005         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
33006         (fts_safe_changedir): Tweak semantics to reflect that this function
33007         now calls cwd_advance_fd and hence consumes its FD argument.
33008         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
33009         [struct FTS] (fts_rft): Remove now-unused member.
33010         [struct FTS] (fts_cycle.state): Improve comment.
33011
33012         * lib/openat.c (openat_needs_fchdir): New function.
33013         * lib/openat.h (openat_needs_fchdir): Declare it.
33014
33015 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
33016
33017         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
33018         Problem and fix reported by Pádraig Brady in
33019         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
33020
33021 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33022
33023         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
33024
33025 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33026
33027         * lib/memcoll.c (memcoll): Optimize for the common case where the
33028         arguments are bytewise equal.
33029
33030 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33031
33032         * doc/regexprops-generic.texi: Add a copyright notice.
33033
33034 2006-08-15  Bruno Haible  <bruno@clisp.org>
33035
33036         * modules/tmpdir (License): Change to LGPL.
33037
33038 2006-08-15  Bruno Haible  <bruno@clisp.org>
33039
33040         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
33041         module.
33042
33043 2006-08-14  Simon Josefsson  <jas@extundo.com>
33044
33045         * config/srclist.txt: Add gnupload.
33046
33047 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33048
33049         Change copyright notice from LGPL 2 to GPL 2, since that's the
33050         standard form used in the gnulib repository.
33051         * tests/test-lock.c: Likewise.
33052         * tests/test-stdint.c: Likewise.
33053         * tests/test-tls.c: Likewise.
33054
33055         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
33056         prelude-manager.  User shorter URLs for GNU projects, without '?'.
33057         Add copyright notice.
33058
33059         * check-module: Add copyright notice.  Output a copyright
33060         notice if "--version" is specified.
33061         * modules/COPYING: New file.
33062         * tests/test-getaddrinfo.c: Add copyright notice.
33063         * tests/test-verify.c: Likewise.
33064
33065 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33066
33067         Change copyright notice from LGPL 2 to GPL 2, since that's the
33068         standard form used in the gnulib repository.
33069         * lib/lock.c: LGPL -> GPL.
33070         * lib/lock.h: Likewise.
33071         * lib/strnlen1.c: Likewise.
33072         * lib/strnlen1.h: Likewise.
33073         * lib/tls.c: Likewise.
33074         * lib/tls.h: Likewise.
33075         * lib/tmpdir.c: Likewise.
33076
33077         * lib/TODO: Remove; this belongs only in coreutils.
33078
33079 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33080
33081         Add copyright notices to long-enough files that lack them, since
33082         otherwise the files aren't clearly free.  Use the same notice that
33083         getdate.texi already uses.
33084         * doc/alloca-opt.texi: Add copyright notice.
33085         * doc/alloca.texi: Likewise.
33086         * doc/ctime.texi: Likewise.
33087         * doc/functions.texi: Likewise.
33088         * doc/gcd.texi: Likewise.
33089         * doc/gnulib-tool.texi: Likewise.
33090         * doc/inet_ntoa.texi: Likewise.
33091         * doc/visibility.texi: Likewise.
33092
33093         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
33094         * doc/quote.texi: Add copyright notice.
33095
33096         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
33097         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
33098         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
33099         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
33100         is now obsolete, and give a pointer to the Sun list.
33101         Add copyright notice.
33102
33103 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         * config/srclistvars.sh: Add copyright notice.
33106
33107 2006-08-14  Eric Blake  <ebb9@byu.net>
33108
33109         Import the following change from libc:
33110
33111         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
33112
33113         Upstream bug 2997.
33114         * lib/misc/error.c: Add space between program name and message if file
33115         name is missing.
33116
33117 2006-08-12  Karl Berry  <karl@gnu.org>
33118
33119         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
33120         remove, these originate in gnulib now.
33121
33122 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33123
33124         * doc/Makefile (standards.info standards.html standards.dvi):
33125         Also depend on make-stds.texi.
33126
33127 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33128
33129         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
33130         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
33131
33132         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
33133         in wchar_t.  Problem reported by Eric Blake.
33134
33135         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
33136         LEN is smaller than SIZE.  Suggested by Bruno Haible.
33137         Also, help the compiler to keep LEN in a register.
33138
33139 2006-08-11  Eric Blake  <ebb9@byu.net>
33140
33141         * users.txt: Sort.  Add tar.
33142
33143 2006-08-11  Bruno Haible  <bruno@clisp.org>
33144
33145         * users.txt: New file.
33146
33147 2006-08-11  Bruno Haible  <bruno@clisp.org>
33148
33149         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
33150         before <wchar.h>. Needed for OSF/1 and BSD/OS.
33151
33152 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33153
33154         * modules/snprintf (Depends-on): Remove minmax.
33155         (Maintainer): Add self and Bruno.
33156
33157 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33158
33159         * lib/.cppi-disable: Add snprintf.h, socket_.h.
33160         * lib/snprintf.c: Include <errno.h> and <limits.h>.
33161         (EOVERFLOW): Define if the system does not.
33162         Do not include "minmax.h"; it wasn't used.
33163         (snprintf): Don't assume size_t promotes to an unsigned type.
33164         Fix bug when generated string was too long for the buffer: the
33165         buffer's contents are supposed to be the initial prefix of the
33166         output.  Don't assume vasnprintf returns EOVERFLOW if the size
33167         exceeds INT_MAX; do the check ourselves.
33168
33169         Import the following changes from libc:
33170
33171         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
33172
33173         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
33174         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
33175         set wc to the byte which couldn't be converted.
33176         (re_string_reconstruct): Don't clear valid_raw_len before calling
33177         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
33178         tip_context using re_string_context_at.
33179
33180         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
33181
33182         * lib/posix/regex.h: g++ still cannot handled [restrict].
33183
33184         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
33185
33186         * lib/posix/regex.h: Remove special handling for VMS.
33187
33188 2006-08-10  Jim Meyering  <jim@meyering.net>
33189
33190         * modules/same-inode: New module.
33191         * modules/dev-ino: New module.
33192         * modules/cycle-check: Depend on these modules, rather than simply
33193         including their .h files.
33194         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
33195         required via m4/cycle-check.m4.
33196         * modules/same: Depend on new same-inode module, rather than
33197         including same-inode.h.
33198         * modules/chdir-safer: New file.
33199
33200         * modules/chown (Depends-on): Add stat-macros.
33201
33202 2006-08-10  Jim Meyering  <jim@meyering.net>
33203
33204         * m4/cycle-check.m4: New file.
33205         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
33206         * m4/dev-ino.m4, m4/same-inode.m4: New files.
33207
33208 2006-08-10  Eric Blake  <ebb9@byu.net>
33209
33210         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
33211         in from original proposal.
33212
33213 2006-08-10  Eric Blake  <ebb9@byu.net>
33214         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33215
33216         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
33217         namespace.
33218
33219 2006-08-10  Bruno Haible  <bruno@clisp.org>
33220
33221         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
33222         as well.
33223
33224 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33225
33226         Sync from coreutils.
33227
33228         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
33229
33230         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
33231         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
33232
33233 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33234
33235         * modules/restrict: Remove; no longer needed now that we assume
33236         Autoconf 2.59 or later.
33237         * MODULES.html.sh: Remove 'restrict'.
33238         * modules/argp (Depends-on): Remove 'restrict'.
33239         * modules/base64 (Depends-on): Likewise.
33240         * modules/gc (Depends-on): Likewise.
33241         * modules/getaddrinfo (Depends-on): Likewise.
33242         * modules/glob (Depends-on): Likewise.
33243         * modules/inet_ntop (Depends-on): Likewise.
33244         * modules/inet_pton (Depends-on): Likewise.
33245         * modules/memxor (Depends-on): Likewise.
33246         * modules/regex (Depends-on): Likewise.
33247         * modules/strtok_r (Depends-on): Likewise.
33248         * modules/time_r (Depends-on): Likewise.
33249
33250 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33251
33252         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
33253         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
33254         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33255         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
33256         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
33257         * m4/memxor.m4 (gl_MEMXOR): Likewise.
33258         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
33259         gl_C_RESTRICT replaced by AC_C_RESTRICT.
33260
33261         Merge from coreutils.
33262         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
33263         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
33264         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33265         * m4/time_r.m4 (gl_TIME_R): Likewise.
33266
33267 2006-08-09  Karl Berry  <karl@gnu.org>
33268
33269         * config/srclist.txt: no more gettext-tools, per Bruno.
33270
33271 2006-08-08  Eric Blake  <ebb9@byu.net>
33272
33273         * modules/verror: New module.
33274         * MODULES.html.sh: Document it.
33275
33276 2006-08-08  Eric Blake  <ebb9@byu.net>
33277
33278         * lib/verror.h, lib/verror.c: New files.
33279
33280 2006-08-08  Eric Blake  <ebb9@byu.net>
33281
33282         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
33283         verror_at_line output complies with GNU Coding Standards even when
33284         file is NULL.
33285
33286 2006-08-07  Bruno Haible  <bruno@clisp.org>
33287
33288         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
33289         versions of AIX.
33290         Reported by Ralf Wildenhues.
33291
33292 2006-08-07  Bruno Haible  <bruno@clisp.org>
33293
33294         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
33295         in an AC_DEFUN. Needed so that the autoconf snippets can use
33296         AC_REQUIRE.
33297
33298 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33299
33300         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33301         Initialize pkgdata_DATA.
33302         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
33303         overriding it.
33304
33305 2006-08-06  Eric Blake  <ebb9@byu.net>
33306
33307         * lib/error.h: Fold in some upstream changes from glibc.
33308         * lib/error.c: Likewise.
33309
33310 2006-08-04  Bruno Haible  <bruno@clisp.org>
33311
33312         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33313         Make the mostlyclean-local rule depend on mostlyclean-generic.
33314         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
33315
33316 2006-07-31  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
33319         <stdlib.h>, <string.h>.
33320
33321 2006-07-30  Bruno Haible  <bruno@clisp.org>
33322
33323         * modules/readlink (License): Change to LGPL.
33324
33325 2006-07-30  Bruno Haible  <bruno@clisp.org>
33326
33327         * modules/javaversion (Makefile.am): Distribute javaversion.java and
33328         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
33329         set PKGDATADIR to point to it.
33330
33331 2006-07-30  Bruno Haible  <bruno@clisp.org>
33332
33333         * modules/csharpexec (configure.ac): Comment out macro invocation.
33334         * modules/javaexec (configure.ac): Likewise.
33335         * modules/javacomp-script (configure.ac): Likewise.
33336
33337         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
33338
33339 2006-07-30  Bruno Haible  <bruno@clisp.org>
33340
33341         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
33342         linked-list.
33343
33344 2006-07-30  Bruno Haible  <bruno@clisp.org>
33345
33346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
33347
33348 2006-07-30  Bruno Haible  <bruno@clisp.org>
33349
33350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33351         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
33352         get removed.
33353
33354 2006-07-29  Bruno Haible  <bruno@clisp.org>
33355
33356         Make it possible for gnulib-tool to work with locally modified or
33357         augmented gnulib repositories.
33358         * gnulib-tool (func_usage): Document --local-dir option.
33359         (local_gnulib_dir): New variable.
33360         Handle --local-dir option.
33361         (func_lookup_file): New function.
33362         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
33363         (func_get_description, func_get_filelist, func_get_description,
33364         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
33365         func_get_automake_snippet, func_get_include_directive,
33366         func_get_license, func_get_maintainer): Use func_lookup_file.
33367         (func_import, func_create_testdir): Use func_lookup_file.
33368
33369 2006-07-29  Bruno Haible  <bruno@clisp.org>
33370
33371         * modules/setenv (Depends-on): Add unistd.
33372
33373 2006-07-29  Bruno Haible  <bruno@clisp.org>
33374
33375         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
33376
33377 2006-07-29  Bruno Haible  <bruno@clisp.org>
33378
33379         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
33380
33381 2006-07-29  Bruno Haible  <bruno@clisp.org>
33382
33383         * gnulib-tool (import, update): If there is no Makefile.am, look at
33384         aclocal.m4, instead of bailing out.
33385
33386 2006-07-29  Bruno Haible  <bruno@clisp.org>
33387
33388         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
33389         Categorize the options by when they are useful.
33390
33391 2006-07-29  Bruno Haible  <bruno@clisp.org>
33392
33393         * gnulib-tool (func_usage): Document option --no-libtool.
33394         Handle option --no-libtool.
33395         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
33396         for changed semantics of $libtool variable.
33397         (func_import): Likewise. If libtool is not used, show this through
33398         an option --no-libtool.
33399         (func_create_testdir): Update.
33400
33401 2006-07-29  Bruno Haible  <bruno@clisp.org>
33402
33403         * gnulib-tool (func_import): Extend error message about missing
33404         --doc-base.
33405
33406 2006-07-29  Bruno Haible  <bruno@clisp.org>
33407
33408         * gnulib-tool (func_import): Don't create the $docbase directory if
33409         there is no file to store there.
33410
33411 2006-07-29  Bruno Haible  <bruno@clisp.org>
33412
33413         * gnulib-tool (autoconf_minversion): If a --dir option is given and
33414         relevant, look for configure.ac there, not in the current directory.
33415         Also use a simple search for AC_PREREQ, not "autoconf --trace".
33416
33417 2006-07-29  Bruno Haible  <bruno@clisp.org>
33418
33419         * gnulib-tool (SORT): New variable.
33420         (func_usage): Undocument --assume-autoconf option.
33421         Remove --assume-autoconf option handling.
33422         (autoconf_minversion): Determine from the contents of configure.ac.
33423         (func_import): Remove autoconf_minversion handling.
33424         Suggested by Eric Blake.
33425
33426 2006-07-29  Bruno Haible  <bruno@clisp.org>
33427
33428         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
33429
33430 2006-07-29  Bruno Haible  <bruno@clisp.org>
33431
33432         * config/srclist.txt (*setenv.[ch]): Remove rules.
33433
33434 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33435
33436         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
33437
33438 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33439
33440         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
33441         arpa/inet.h.
33442
33443 2006-07-28  Simon Josefsson  <jas@extundo.com>
33444
33445         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
33446         * modules/inet_pton (Depends-on): Likewise.
33447
33448 2006-07-28  Simon Josefsson  <jas@extundo.com>
33449
33450         * m4/netinet_in_h.m4: New file.
33451
33452 2006-07-28  Simon Josefsson  <jas@extundo.com>
33453
33454         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
33455         #include's.
33456
33457 2006-07-28  Simon Josefsson  <jas@extundo.com>
33458
33459         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
33460         #include's.
33461
33462 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
33463
33464         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
33465         setgid on directories only if they set these bits.
33466         * lib/modechange.h: Remove obsolete comment about masks.
33467
33468 2006-07-28  Eric Blake  <ebb9@byu.net>
33469
33470         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
33471         macro expansion.
33472
33473 2006-07-28  Bruno Haible  <bruno@clisp.org>
33474
33475         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
33476
33477 2006-07-28  Bruno Haible  <bruno@clisp.org>
33478
33479         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
33480
33481 2006-07-28  Bruno Haible  <bruno@clisp.org>
33482
33483         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33484         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33485         Define fallbacks.
33486         Avoids link error on FreeBSD 4.x.
33487         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33488
33489         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
33490         encoding.
33491         * lib/mbswidth.c (iswcntrl): Likewise.
33492
33493 2006-07-27  Bruno Haible  <bruno@clisp.org>
33494
33495         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
33496         test.
33497
33498 2006-07-27  Bruno Haible  <bruno@clisp.org>
33499
33500         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
33501         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
33502         defined.
33503
33504 2006-07-26  Eric Blake  <ebb9@byu.net>
33505
33506         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
33507
33508 2006-07-26  Eric Blake  <ebb9@byu.net>
33509
33510         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
33511         like mingw that lack mkstemp.
33512         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
33513         avoid compilation warning on mingw.
33514
33515 2006-07-26  Bruno Haible  <bruno@clisp.org>
33516
33517         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
33518         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
33519         INT_FAST*_MIN, INTPTR_MIN.
33520
33521 2006-07-25  Bruno Haible  <bruno@clisp.org>
33522
33523         * modules/version-etc (Depends-on): Add stdarg.
33524
33525 2006-07-25  Bruno Haible  <bruno@clisp.org>
33526
33527         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
33528         complex commands.
33529
33530 2006-07-25  Bruno Haible  <bruno@clisp.org>
33531
33532         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
33533         defined in <stdarg.h> or config.h.
33534
33535 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33536
33537         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
33538         (gl_STDIO_SAFER): Remove.
33539
33540 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33541
33542         * MODULES.html.sh (File stream based Input/Output):
33543         Add fopen-safer, tmpfile-safer; remove stdio-safer.
33544         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
33545         * modules/fopen-safer, modules/tmpfile-safer: New files.
33546         * modules/stdio-safer: Remove.
33547
33548 2006-07-24  Bruno Haible  <bruno@clisp.org>
33549
33550         * modules/tmpdir: New file.
33551         * MODULES.html.sh (File system functions): Add it.
33552
33553 2006-07-24  Bruno Haible  <bruno@clisp.org>
33554
33555         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
33556         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
33557
33558 2006-07-24  Bruno Haible  <bruno@clisp.org>
33559
33560         * modules/clean-temp: New file.
33561
33562 2006-07-24  Bruno Haible  <bruno@clisp.org>
33563
33564         * m4/tmpdir.m4: New file, from GNU gettext.
33565
33566 2006-07-24  Bruno Haible  <bruno@clisp.org>
33567
33568         * lib/tmpdir.h: New file, from GNU gettext.
33569         * lib/tmpdir.c: New file, from GNU gettext.
33570
33571 2006-07-24  Bruno Haible  <bruno@clisp.org>
33572
33573         * lib/clean-temp.h: New file, from GNU gettext.
33574         * lib/clean-temp.c: New file, from GNU gettext.
33575
33576 2006-07-23  Eric Blake  <ebb9@byu.net>
33577
33578         * modules/stdio-safer (Files): Add tmpfile-safer.c.
33579         (Depends-on): Add binary-io.
33580
33581 2006-07-23  Eric Blake  <ebb9@byu.net>
33582
33583         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
33584
33585 2006-07-23  Eric Blake  <ebb9@byu.net>
33586
33587         * lib/tmpfile-safer.c: New file.
33588         * lib/stdio-safer.h (fopen_safer): Add prototype.
33589         * lib/stdio--.h (tmpfile): Make safer.
33590
33591 2006-07-23  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
33594         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
33595         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
33596         gl_linked_remove_at): Use it.
33597
33598 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33599         and Simon Josefsson <jas@extundo.com>
33600
33601         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
33602
33603         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
33604
33605 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33606
33607         * modules/close-stream: New file.
33608         * modules/closeout (Description): Make it clear that it exits
33609         with a diagnostic on error.
33610         (Depends-on): Add close-stream.  Remove fpending, stdbool.
33611         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
33612
33613 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33614
33615         * m4/close-stream.m4: New file.
33616
33617 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33618
33619         * lib/close-stream.c, lib/close-stream.h: New files.
33620
33621 2006-07-22  Bruno Haible  <bruno@clisp.org>
33622
33623         Merge from GNU gettext 0.15.
33624
33625         2006-05-01  Bruno Haible  <bruno@clisp.org>
33626
33627                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
33628
33629         2006-07-22  Bruno Haible  <bruno@clisp.org>
33630
33631                 * modules/javaversion: New file.
33632                 * MODULES.html.sh (Java): Add javaversion.
33633
33634         2006-03-12  Bruno Haible  <bruno@clisp.org>
33635
33636                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
33637
33638         2005-12-04  Bruno Haible  <bruno@clisp.org>
33639
33640                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
33641                 (untested).
33642
33643         2006-06-21  Bruno Haible  <bruno@clisp.org>
33644
33645                 Avoid warnings from recent versions of mcs.
33646                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
33647                 -o, -L, -r any more. Use options documented since mcs-1.0
33648                 instead. Similarly for -g.
33649
33650         2005-12-04  Bruno Haible  <bruno@clisp.org>
33651
33652                 * build-aux/csharpcomp.sh.in: Suffix for resources is
33653                 .resources, not .resource.
33654
33655         2005-07-09  Bruno Haible  <bruno@clisp.org>
33656
33657                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
33658                 add a .dll suffix.
33659                 Reported by Mark Junker <mjscod@gmx.de>.
33660
33661         2006-07-22  Bruno Haible  <bruno@clisp.org>
33662
33663                 * modules/gettext: Upgrade to gettext-0.15.
33664                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
33665                 m4/visibility.m4.
33666                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
33667
33668 2006-07-22  Bruno Haible  <bruno@clisp.org>
33669
33670         Merge from GNU gettext 0.15.
33671
33672         2006-03-25  Bruno Haible  <bruno@clisp.org>
33673
33674                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
33675
33676         2006-07-21  Bruno Haible  <bruno@clisp.org>
33677
33678                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
33679                 "1.1".
33680
33681         2006-05-09  Bruno Haible  <bruno@clisp.org>
33682
33683                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
33684                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
33685                 for the conftestver execution.
33686
33687         2006-05-01  Bruno Haible  <bruno@clisp.org>
33688
33689                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
33690                 optional target-version argument. Verify that the compiler
33691                 groks source of the specified source-version, or add -source
33692                 option as necessary. Verify that the compiler produces
33693                 bytecode in the specified target-version, or add -target and
33694                 -source options as necessary. Make the result of the test
33695                 available as variable CONF_JAVAC. Also log error output in
33696                 config.log.
33697
33698         2006-03-11  Bruno Haible  <bruno@clisp.org>
33699
33700                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
33701
33702         2006-05-09  Bruno Haible  <bruno@clisp.org>
33703
33704                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
33705                 CLASSPATH_SEPARATOR to a semicolon.
33706
33707         2006-03-12  Bruno Haible  <bruno@clisp.org>
33708
33709                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
33710                 available as variable CONF_JAVA, for subsequent autoconf
33711                 tests. Also log error output in config.log.
33712
33713         2006-07-19  Bruno Haible  <bruno@clisp.org>
33714
33715                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
33716                 that getline works on glibc2 systems. Needed to avoid trouble
33717                 in relocatable.c.
33718                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
33719
33720         2005-12-04  Bruno Haible  <bruno@clisp.org>
33721
33722                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
33723                 launcher (untested).
33724
33725         2005-12-04  Bruno Haible  <bruno@clisp.org>
33726
33727                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
33728
33729         2006-07-22  Bruno Haible  <bruno@clisp.org>
33730
33731                 * gettext.m4: Update from GNU gettext-0.15.
33732                 * nls.m4: Likewise.
33733                 * po.m4: Likewise.
33734                 * inttypes-pri.m4: Likewise.
33735                 * inttypes-h.m4: Renamed from inttypes.m4.
33736                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
33737
33738 2006-07-22  Bruno Haible  <bruno@clisp.org>
33739
33740         Merge from GNU gettext 0.15.
33741
33742         2005-07-05  Bruno Haible  <bruno@clisp.org>
33743
33744                 * printf-args.c (printf_fetchargs): Work around broken
33745                 definition of wint_t on mingw.
33746
33747         2005-02-12  Bruno Haible  <bruno@clisp.org>
33748
33749                 * xallocsa.h: Add extern "C" for C++.
33750
33751         2006-05-17  Bruno Haible  <bruno@clisp.org>
33752
33753                 Cygwin portability.
33754                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
33755
33756         2006-04-30  Bruno Haible  <bruno@clisp.org>
33757
33758                 * progreloc.c: Include <mach-o/dyld.h> if available.
33759                 (find_executable): Use _NSGetExecutablePath when possible.
33760
33761         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
33762
33763                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
33764                 function.
33765
33766         2005-12-29  Bruno Haible  <bruno@clisp.org>
33767
33768                 * progreloc.c (set_program_name_and_installdir): Fix
33769                 compilation error.
33770
33771         2005-12-04  Bruno Haible  <bruno@clisp.org>
33772
33773                 Cygwin portability.
33774                 * progreloc.c: Include <windows.h> also on Cygwin.
33775                 (find_executable): Add support for Cygwin.
33776                 (set_program_name_and_installdir): Handle also platforms with
33777                 nonempty EXEEXT.
33778
33779         2006-07-11  Bruno Haible  <bruno@clisp.org>
33780
33781                 * javacomp.c: Fix a comment.
33782                 Reported by Jim Meyering.
33783
33784         2006-04-30  Bruno Haible  <bruno@clisp.org>
33785
33786                 * javacomp.h (compile_java_class): Add source_version,
33787                 target_version arguments.
33788                 * javacomp.c: Rewritten to choose only a compiler that
33789                 respects the specified source_version and target_version.
33790
33791         2006-06-27  Bruno Haible  <bruno@clisp.org>
33792
33793                 Assume correct S_ISDIR macro.
33794                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
33795
33796         2006-07-22  Bruno Haible  <bruno@clisp.org>
33797
33798                 * javaversion.h: New file, from GNU gettext.
33799                 * javaversion.c: New file, from GNU gettext.
33800                 * javaversion.java: New file, from GNU gettext.
33801                 * javaversion.class: New file, from GNU gettext.
33802
33803         2006-05-17  Bruno Haible  <bruno@clisp.org>
33804
33805                 Cygwin portability.
33806                 * javaexec.c (execute_java_class): Test for jview program
33807                 also on Cygwin.
33808
33809         2006-04-09  Bruno Haible  <bruno@clisp.org>
33810
33811                 * fatal-signal.c: Don't include string.h.
33812                 (at_fatal_signal): Use a copying loop instead of memcpy.
33813
33814         2005-12-04  Bruno Haible  <bruno@clisp.org>
33815
33816                 * csharpexec.c: Add support for 'clix' launcher (untested).
33817                 (execute_csharp_using_sscli): New function.
33818                 (execute_csharp_program): Call it.
33819
33820         2006-06-21  Bruno Haible  <bruno@clisp.org>
33821
33822                 Avoid warnings from recent versions of mcs.
33823                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
33824                 -o, -L, -r any more. Use options documented since mcs-1.0
33825                 instead. Similarly for -g.
33826
33827         2005-07-09  Bruno Haible  <bruno@clisp.org>
33828
33829                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
33830                 add a .dll suffix.
33831                 Reported by Mark Junker <mjscod@gmx.de>.
33832
33833         2006-06-17  Bruno Haible  <bruno@clisp.org>
33834
33835                 * config.charset: Update for NetBSD 3.0.
33836
33837         2006-05-17  Bruno Haible  <bruno@clisp.org>
33838
33839                 Cygwin portability.
33840                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
33841
33842         2006-05-16  Bruno Haible  <bruno@clisp.org>
33843
33844                 * localcharset.c [CYGWIN]: Include <windows.h>.
33845                 (get_charset_aliases): For Cygwin, return the same CPxxx
33846                 aliases list as under WIN32.
33847                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
33848                 the environment variables. Fall back to GetACP().
33849
33850         2006-04-05  Bruno Haible  <bruno@clisp.org>
33851
33852                 * config.charset: Update Juan Manuel Guerrero's address.
33853
33854         2005-02-12  Bruno Haible  <bruno@clisp.org>
33855
33856                 * allocsa.h: Add extern "C" for C++.
33857
33858         2005-02-10  Bruno Haible  <bruno@clisp.org>
33859
33860                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
33861                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
33862
33863         2006-07-22  Bruno Haible  <bruno@clisp.org>
33864
33865                 * gettext.h: Update to GNU gettext-0.15.
33866
33867 2006-07-22  Bruno Haible  <bruno@clisp.org>
33868
33869         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
33870         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
33871         lib-prefix.m4, longdouble.m4, ssize_t.m4.
33872
33873 2006-07-21  Eric Blake  <ebb9@byu.net>
33874
33875         * modules/stdlib-safer: New file.
33876         * MODULES.html.sh (File stream based Input/Output): Add
33877         stdlib-safer.
33878
33879 2006-07-21  Eric Blake  <ebb9@byu.net>
33880
33881         * lib/stdlib-safer.h: New file from coreutils, required by
33882         stdlib--.h.
33883
33884 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33885
33886         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
33887
33888 2006-07-20  Bruno Haible  <bruno@clisp.org>
33889
33890         * gnulib-tool: Recognize new option --assume-autoconf.
33891         (autoconf_minversion): New variable.
33892         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
33893
33894 2006-07-20  Bruno Haible  <bruno@clisp.org>
33895
33896         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
33897
33898 2006-07-19  Derek R. Price  <derek@ximbiot.com>
33899
33900         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
33901         Reindent and repaginate.
33902
33903 2006-07-19  Derek Price  <derek@ximbiot.com>
33904
33905         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
33906         Correct grammar.
33907
33908 2006-07-17  Bruno Haible  <bruno@clisp.org>
33909
33910         * modules/list: New file.
33911         * modules/array-list: New file.
33912         * modules/carray-list, modules/carray-list-tests: New files.
33913         * modules/linked-list, modules/linked-list-tests: New files.
33914         * modules/avltree-list, modules/avltree-list-tests: New files.
33915         * modules/rbtree-list, modules/rbtree-list-tests: New files.
33916         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
33917         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
33918         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
33919         * modules/oset: New file.
33920         * modules/array-oset: New file.
33921         * modules/avltree-oset, modules/avltree-oset-tests: New files.
33922         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
33923         * tests/test-carray_list.c: New file.
33924         * tests/test-linked_list.c: New file.
33925         * tests/test-avltree_list.c: New file.
33926         * tests/test-rbtree_list.c: New file.
33927         * tests/test-linkedhash_list.c: New file.
33928         * tests/test-avltreehash_list.c: New file.
33929         * tests/test-rbtreehash_list.c: New file.
33930         * tests/test-avltree_oset.c: New file.
33931         * tests/test-rbtree_oset.c: New file.
33932         * MODULES.html.sh (Container data structures): New section.
33933
33934 2006-07-17  Bruno Haible  <bruno@clisp.org>
33935
33936         * m4/gl_list.m4: New file.
33937
33938 2006-07-17  Bruno Haible  <bruno@clisp.org>
33939
33940         * lib/gl_list.h: New file.
33941         * lib/gl_list.c: New file.
33942         * lib/gl_array_list.h: New file.
33943         * lib/gl_array_list.c: New file.
33944         * lib/gl_carray_list.h: New file.
33945         * lib/gl_carray_list.c: New file.
33946         * lib/gl_linked_list.h: New file.
33947         * lib/gl_linked_list.c: New file.
33948         * lib/gl_anylinked_list1.h: New file.
33949         * lib/gl_anylinked_list2.h: New file.
33950         * lib/gl_avltree_list.h: New file.
33951         * lib/gl_avltree_list.c: New file.
33952         * lib/gl_anyavltree_list1.h: New file.
33953         * lib/gl_anyavltree_list2.h: New file.
33954         * lib/gl_rbtree_list.h: New file.
33955         * lib/gl_rbtree_list.c: New file.
33956         * lib/gl_anyrbtree_list1.h: New file.
33957         * lib/gl_anyrbtree_list2.h: New file.
33958         * lib/gl_anytree_list1.h: New file.
33959         * lib/gl_anytree_list2.h: New file.
33960         * lib/gl_linkedhash_list.h: New file.
33961         * lib/gl_linkedhash_list.c: New file.
33962         * lib/gl_anyhash_list1.h: New file.
33963         * lib/gl_anyhash_list2.h: New file.
33964         * lib/gl_avltreehash_list.h: New file.
33965         * lib/gl_avltreehash_list.c: New file.
33966         * lib/gl_rbtreehash_list.h: New file.
33967         * lib/gl_rbtreehash_list.c: New file.
33968         * lib/gl_anytreehash_list1.h: New file.
33969         * lib/gl_anytreehash_list2.h: New file.
33970
33971         * lib/gl_oset.h: New file.
33972         * lib/gl_oset.c: New file.
33973         * lib/gl_array_oset.h: New file.
33974         * lib/gl_array_oset.c: New file.
33975         * lib/gl_avltree_oset.h: New file.
33976         * lib/gl_avltree_oset.c: New file.
33977         * lib/gl_rbtree_oset.h: New file.
33978         * lib/gl_rbtree_oset.c: New file.
33979         * lib/gl_anytree_oset.h: New file.
33980
33981 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33982
33983         * m4/mkancesdirs.m4: New file.
33984         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
33985         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
33986         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
33987         it.
33988
33989 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
33990
33991         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
33992         * lib/mkancesdirs.h: New files.
33993         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
33994         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
33995         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
33996         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
33997         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
33998         callers changed.  Revamp internals significantly, by not
33999         attempting to create directories that are temporarily more
34000         permissive than the final results.  Do not attempt to use
34001         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
34002         This removes some race conditions, fixes some bugs, and simplifies
34003         things.  Use new dirchownmod function to do owner and mode changes.
34004         * lib/mkdir-p.h: Likewise.
34005         * lib/modechange.c (octal_to_mode): New function.
34006         (struct mode_change): New member mentioned.
34007         (make_node_op_equals): New arg mentioned.  All callers changed.
34008         (mode_compile): Keep track of which mode bits the user has explicitly
34009         mentioned.
34010         (mode_adjust): New arg DIR, so that we implement the X op correctly.
34011         New arg PMODE_BITS, to keep track of which mode bits the user
34012         mentioned; it treats S_ISUID and S_ISGID speciall.
34013         All callers changed.
34014         * lib/modechange.h: Likewise.
34015
34016 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34017
34018         * MODULES.html.sh: Add mkancestors.
34019         * modules/mkancesdirs: New module.
34020         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
34021         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
34022         The chdir-safer and afs files are now orphans; I'll remove them
34023         unless someone speaks up.
34024         Add lib/dirchownmod.c, lib/dirchownmod.h.
34025         (Depends-on): Remove alloca, chown, save-cwd, dirname.
34026         Add lchown, mkancesdirs.
34027         (Maintainer): Add self.
34028
34029 2006-07-15  Karl Berry  <karl@gnu.org>
34030
34031         * gnulib-tool: help message wording/arrangement.
34032
34033 2006-07-14  Simon Josefsson  <jas@extundo.com>
34034
34035         * doc/gnulib.texi (Libtool and Windows): New section.
34036
34037 2006-07-12  Simon Josefsson  <jas@extundo.com>
34038
34039         * modules/gendocs (License): Fix license, approved by Karl.
34040
34041 2006-07-12  Eric Blake  <ebb9@byu.net>
34042
34043         * MODULES.html.sh: Add gendocs.
34044
34045 2006-07-11  Eric Blake  <ebb9@byu.net>
34046
34047         * modules/fdl: New module, to install doc/fdl.texi.
34048         * MODULES.html.sh: Add new section for documentation modules.
34049         * gnulib-tool: Avoid space-tab.
34050         (--doc-base): New option, to manage files from doc.
34051
34052 2006-07-11  Eric Blake  <ebb9@byu.net>
34053
34054         * m4/absolute-header.m4: Fix comments to match recent change.
34055
34056 2006-07-11  Eric Blake  <ebb9@byu.net>
34057
34058         * gnulib-tool: List --doc-base before --tests-base.
34059
34060 2006-07-11  Derek R. Price  <derek@ximbiot.com>
34061
34062         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
34063
34064 2006-07-11  Bruno Haible  <bruno@clisp.org>
34065
34066         * README: Mention where to put documentation.
34067
34068 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34069
34070         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
34071
34072 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34073
34074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
34075         to stdint.m4.
34076
34077 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34078
34079         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
34080         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
34081         "no/such/file/stdint.h" when there is no such file, so that
34082         the resulting C code can be parsed by dodgy compilers.
34083         Problems reported by Bob Proulx.
34084
34085 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34086
34087         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
34088         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34089         macros into the GNU _D_EXACT_NAMLEN.
34090         * lib/savedir.c:  Likewise.
34091         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
34092
34093 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34094         and Paul Eggert  <eggert@cs.ucla.edu>
34095
34096         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
34097         * m4/savedir.m4:
34098         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34099         macros into the GNU _D_EXACT_NAMLEN.
34100
34101 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34102
34103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
34104         around the absolute name, to work around a problem with the HP-UX
34105         11.23 native C compiler, reported by Bob Proulx.
34106
34107 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34108
34109         * doc/maintain.texi, make-stds.texi: Sync from
34110         <http://savannah.gnu.org/projects/gnustandards>.
34111
34112 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34113
34114         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
34115
34116 2006-07-09  Jim Meyering  <jim@meyering.net>
34117
34118         * m4/glob.m4: Remove a doubled word in a comment.
34119
34120 2006-07-09  Jim Meyering  <jim@meyering.net>
34121
34122         * lib/argp-pv.c: Remove a doubled word in a comment.
34123         * lib/check-version.c (check_version): Likewise.
34124         * lib/javacomp.c (compile_java_class): Likewise.
34125
34126 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34127
34128         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
34129         for the benefit of people using Autoconf 2.60.  If you want to
34130         support older Autoconf versions you can copy m4/onceonly_2_57.m4
34131         (or m4/onceonly.m4, if pre-2.57) manually.
34132
34133 2006-07-08  Jim Meyering  <jim@meyering.net>
34134
34135         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
34136         comment.
34137         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
34138         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
34139         comment.
34140
34141 2006-07-08  Jim Meyering  <jim@meyering.net>
34142
34143         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
34144
34145 2006-07-07  Simon Josefsson  <jas@extundo.com>
34146
34147         * tests/test-crc.c: Change expected crc value, the test vector
34148         were probably computed using the old broken crc.c?
34149
34150 2006-07-06  Simon Josefsson  <jas@extundo.com>
34151
34152         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
34153         now the canonical place for the M4 file).
34154
34155         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
34156         from the sys_socket dependency now.
34157
34158         * modules/inet_pton (Files): Ditto.
34159
34160         * modules/inet_ntop (Files): Ditto.
34161
34162 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34163
34164         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
34165         not gl_PREREQ_GETUSERSHELL.
34166
34167 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34168
34169         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
34170         with only one argument, for Autoconf 2.60.
34171         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
34172         expand to nothing, so add a shell command to avoid syntax error.
34173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
34174
34175 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34176
34177         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
34178
34179 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34180
34181         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
34182         no longer needed.  Check for isblank decl.
34183         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
34184         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
34185         of existence.
34186
34187 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34188
34189         * lib/getloadavg.c: Use __VMS, not VMS.
34190         * lib/getopt.c: Likewise.
34191         * lib/getpagesize.h: Likewise.
34192         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
34193         and probably does not work.
34194
34195 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34196
34197         * lib/.cppi-disable: Add wcwidth.
34198         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
34199         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
34200         (ISGRAPH): Remove.  All uses changed to isgraph.
34201         (FOLD) [!defined _LIBC]: Remove special case.
34202         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
34203         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
34204         HAVE_ISBLANK.
34205         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
34206         case.
34207
34208 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34209
34210         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
34211         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
34212         brackets.  Other minor changes to suppress some compiler
34213         warnings.
34214
34215 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34216         and Paul Eggert  <eggert@cs.ucla.edu>
34217
34218         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
34219         of invoking obsolescent AC_HEADER_DIRENT macro.
34220         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
34221         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
34222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34224         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
34225         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34226         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
34227         * m4/readdir.m4: Remove; no longer needed.
34228
34229 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34230         and Paul Eggert  <eggert@cs.ucla.edu>
34231
34232         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
34233         Don't worry about this obsolete case any more.
34234         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
34235         directories.
34236         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
34237         worry about this obsolete case any more.
34238         * lib/fts.c: Likewise.
34239         * lib/getcwd.c: Likewise.
34240         * lib/glob.h: Likewise.
34241         * lib/savedir.c: Likewise.
34242
34243 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34244
34245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
34246         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
34247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
34248         needed.
34249         All uses removed.
34250         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34251         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34252         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
34253         needed.
34254         * m4/getdate.m4 (gl_GETDATE): Likewise.
34255         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34256         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34257         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34258         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34259         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34260         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34261         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
34262         needed.
34263
34264 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34265
34266         * lib/memcasecmp.c: Include <limits.h>.
34267         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
34268         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
34269         Don't assume isdigit succeeds only on '0' through '9'.
34270
34271 2006-07-05  Eric Blake  <ebb9@byu.net>
34272
34273         * modules/getaddrinfo (Depends-on): Add snprintf.
34274
34275 2006-07-05  Eric Blake  <ebb9@byu.net>
34276
34277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
34278         to avoid 'header present but could not be compiled' on cygwin.
34279
34280 2006-07-05  Eric Blake  <ebb9@byu.net>
34281
34282         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
34283         missing from netdb.h.
34284         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
34285
34286 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34287
34288         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
34289         no longer needed.
34290         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
34291         * m4/getdate.m4 (gl_GETDATE): Likewise.
34292         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34293         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34294         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34295         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34296         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34297
34298 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34299
34300         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
34301         All uses of is_space replaced by isspace.
34302         * lib/exit.h: Don't talk about STDC_HEADERS.
34303         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
34304         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
34305         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
34306         replaced by isprint etc.
34307         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
34308         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34309         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
34310         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
34311         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
34312         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34313
34314 2006-07-05  Bruno Haible  <bruno@clisp.org>
34315
34316         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
34317         the function exists, before testing against AIX.
34318         Reported by Martin Lambers <marlam@marlam.de>.
34319
34320 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34321
34322         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
34323         From Mark D. Baushke.
34324
34325 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34326
34327         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
34328         to the absolute name, not just one, to bypass Sun C 5.8's
34329         "warning: #include of /usr/include/... may be non-portable".
34330
34331 2006-07-04  Eric Blake  <ebb9@byu.net>
34332
34333         * modules/dirname-tests: New test module.
34334         * tests/test-dirname.c: New file, replacing dirname.c
34335         TEST_DIRNAME section that was recently deleted.
34336
34337 2006-07-04  Bruno Haible  <bruno@clisp.org>
34338
34339         Assume ANSI C header files and <ctype.h> functions.
34340         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
34341         (mbsnwidth): Use isprint, iscntrl instead.
34342
34343 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34344
34345         Merge from coreutils.
34346         * MODULES.html.sh: Add xstrtold.
34347         * modules/xstrtold: New file.
34348         * modules/cycle-check (Files): Add lib/same-inode.h.
34349         * modules/dirname (Files): Add m4/double-slash-root.m4.
34350         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
34351         * modules/mkdir-p (Files): Add lib/same-inode.h.
34352         * modules/same (Files): Add lib/same-inode.h.
34353
34354 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34355
34356         * m4/absolute-header.m4: Renamed from full-header-path.m4.
34357         This is to keep the terminology clean; POSIX talks about
34358         "absolute pathnames", not "full pathnames", but the GNU
34359         Coding Standards say to use "path" for something else;
34360         so use "absolute" to keep both sides happy.
34361         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
34362         Set gl_absolute_header, not gl_full_header_path.
34363         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
34364         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
34365         All uses changed.
34366
34367         Merge from coreutils.
34368
34369         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34370
34371         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
34372         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
34373         want to require the building of c-strtod.o.
34374         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
34375         needs -lm directly.
34376         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
34377
34378         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
34379
34380         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
34381         --as-needed option if available.  Problem reported by Albert Chin in
34382         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
34383         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
34384         cc merely issues a bunch of annoying warnings for --as-needed
34385         (this problem was reported by Bob Proulx).  Also, try linking with
34386         -lm to detect a bug in binutils 2.16 (this problem was reported
34387         by Ralf Wildenhues).
34388
34389         2006-06-18  Jim Meyering  <jim@meyering.net>
34390
34391         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
34392         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
34393         macro.
34394         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
34395         also check for glibc-2.4's abort-inducing bug.
34396
34397         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
34398         Low-probability clean-up should be to use rmdir to get rid of
34399         the just-created directory, not unlink.
34400
34401         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
34402         configure fail, and request a bug report to inform us about it.
34403         Add a comment that, barring reports to the contrary, in 2007 we'll
34404         assume ftruncate is universally available.
34405
34406         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34407
34408         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
34409
34410         2006-03-12  Jim Meyering  <jim@meyering.net>
34411
34412         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
34413         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
34414         * m4/same.m4 (gl_SAME): Likewise.
34415         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
34416
34417         2006-03-11  Eric Blake  <ebb9@byu.net>
34418
34419         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
34420         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
34421         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
34422         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
34423
34424 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34425
34426         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
34427         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
34428         reported by Mark D. Baushke, one in
34429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
34430
34431         Merge from coreutils.
34432
34433         * lib/.cppi-disable: Add stdint_.h.
34434         * lib/.cvsignore: Add stdint.h.
34435
34436         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34437
34438         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
34439         both double and long double versions.
34440         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
34441         * lib/xstrtold.c: New file.
34442         * lib/xstrtod.h (xstrtold): New decl.
34443
34444         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34445
34446         * lib/filemode.c (setst): Remove.
34447         (strmode): Rewrite to avoid setst.  This makes the code shorter,
34448         (arguably) clearer, and the generated code is a bit smaller on my
34449         Debian GNU/Linux stable x86 host.
34450
34451         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34452
34453         * lib/filemode.c: Include "filemode.h" first, to test the interface.
34454         Assume that filemode.h includes sys/types.h and sys/stat.h.
34455         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
34456         (ftypelet): Reorder to put common cases first, for efficiency.
34457         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
34458         to do 'M'.
34459         (strmode): Renamed from mode_string, and now stores 12 bytes instead
34460         of 10, for compatibility with FreeBSD.  All callers changed.
34461         (filemodestring): Now stores 12 bytes instead of 10, and sets file
34462         types that can't be deduced solely from st_mode.  First arg is now a
34463         const pointer.
34464         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
34465         (strmode): Renamed from mode_string.
34466         (filemodestring): New decl.
34467         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
34468         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
34469         needed.
34470         (S_ISPORT, S_ISWHT): New macros, if not already defined.
34471
34472         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34473
34474         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
34475         fsusage.h now does that.  Include fsusage.h first, to test interface.
34476         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
34477         at most one method (the old code could have generated decls that
34478         didn't conform to C89, not that this was ever exercised).
34479         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
34480
34481         2006-03-19  Jim Meyering  <jim@meyering.net>
34482
34483         Work even in a chroot where d_ino values for entries in "/"
34484         don't match the stat.st_ino values for the same names.
34485         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
34486         number, iterate through all entries again, using lstat instead.
34487         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
34488         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
34489
34490         * lib/getcwd.c (__getcwd): Clarify a comment.
34491         Use memcpy in place of a call to strcpy.
34492
34493         2006-03-12  Jim Meyering  <jim@meyering.net>
34494
34495         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
34496         matches that of the current directory (which we're about to chdir ".."
34497         out of), then save the dev-ino of the parent, instead.
34498
34499         * lib/same-inode.h (SAME_INODE): New file/macro.
34500         * lib/chdir-safer.c (SAME_INODE): Remove definition.
34501         Include "same-inode.h", instead.
34502         * lib/same.c: Likewise.
34503         * lib/cycle-check.h: Include "same-inode.h".
34504         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
34505         * lib/cycle-check.c (SAME_INODE): Remove definition.
34506         * lib/root-dev-ino.h: Include "same-inode.h".
34507
34508         2006-03-11  Eric Blake  <ebb9@byu.net>
34509
34510         * lib/same.c (same_name): s/base_name/last_component/
34511         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
34512         * lib/filenamecat.c (file_name_concat): Likewise.
34513
34514         2006-03-11  Eric Blake  <ebb9@byu.net>,
34515                     Paul Eggert  <eggert@cs.ucla.edu>
34516
34517         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
34518         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
34519         drive prefix.
34520         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
34521         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
34522         (last_component): New method.
34523         * lib/dirname.c (dir_len): Determine when drive letters need a
34524         subsequent slash.  Preserve // when it is special.
34525         (dir_name): Don't append dot when drive letter is absolute.
34526         [TEST_DIRNAME]: Move into a full-blown gnulib test.
34527         * lib/basename.c (base_name): New semantics - malloc the result.
34528         Preserve // when it is special.  Preserve relative files that look
34529         like drive letters.
34530         (base_len): Preserve // when it is special.
34531         (last_component): New method, similar to old base_name semantics.
34532         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
34533         base_name.  Strip redundant slashes from ///.
34534
34535 2006-07-03  Jim Meyering  <jim@meyering.net>
34536
34537         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
34538         macro is used before the first cycle_check call.
34539
34540 2006-07-03  Eric Blake  <ebb9@byu.net>
34541
34542         * modules/dirname (Depends-on): Add xstrndup.
34543
34544 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34545
34546         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
34547         test cases, so that config.log is a bit easier to follow.
34548
34549 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34550
34551         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
34552         both are 64 bits, since this seems to be the tradition, and this
34553         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
34554         we ever run into a host that prefers long long to long in this
34555         case, we'll need another configure-time test.  Problem reported by
34556         Jim Meyering.
34557
34558 2006-07-02  Eric Blake  <ebb9@byu.net>
34559
34560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
34561
34562 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34563
34564         * modules/inttypes (Depends-on): No longer depends on stdint.
34565         * modules/stdint (Description): Say more about assumptions.
34566         Say that the fast types might differ.  Say macros are used.
34567         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
34568         (Makefile.am): Revise list of substituted symbols to match
34569         new stdint.m4.
34570         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
34571         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
34572         * tests/test-stdint.c (verify_same_types)
34573         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
34574         the code conforms to C99/C89.
34575         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
34576         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
34577
34578 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34579
34580         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
34581         but fix a bug, by requiring at least 64 bits.
34582         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34583         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
34584         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
34585         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
34586
34587         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
34588         changes.  Make 2.59 a prerequisite.  Check and substitute for
34589         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
34590         inttypes.h.  Do not use special include files; just use the
34591         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
34592         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
34593         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
34594         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
34595         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
34596         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
34597         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
34598         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
34599         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
34600         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
34601         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
34602         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
34603         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
34604         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
34605         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
34606         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
34607         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
34608         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
34609         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
34610         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
34611         WINT_MAX.  Check for C99 conformance more strictly, by detecting
34612         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
34613         not check for things that C99 does not require, e.g., int8_t.  If
34614         a test isn't needed unless <stdint.h> isn't working, and is
34615         unlikely to be needed for any other reason, then don't do it
34616         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
34617         size_t, since we assume C89 freestanding at least.  Do not check
34618         for sig_atomic_t, wchar_t, or wint_t, since the code now does
34619         the right thing even if the types are not defined.  Instead use:
34620         (gl_STDINT_TYPE_PROPERTIES): New macro.
34621         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
34622         testing whether <sys/types.h> clashes, as Autoconf does this for
34623         us now.  All uses removed.
34624         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
34625         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
34626         (gl_CHECK_TYPE_SAME):
34627         Remove; no longer needed.
34628         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
34629         exists, since we'll return 0 anyway in that case.
34630         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
34631
34632 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34633
34634         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
34635         possible collision with system files.
34636         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
34637         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
34638         WCHAR_MIN and WCHAR_MAX in this case.
34639         (<stddef.h>): Do not include; no longer needed.
34640         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
34641         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
34642         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
34643         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
34644         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
34645         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
34646         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
34647         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
34648         !defined(__c99))]: Include in this case too, since it's harmless
34649         now.
34650         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
34651         dangerous to do so.
34652         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
34653         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
34654         (_STDINT_MIN, _STDINT_MAX): New macros.
34655         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
34656         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
34657         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
34658         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
34659         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
34660         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
34661         macros, not typedefs; this simplifies things quite a bit.
34662         Use long int for all types narrower than int64_t.
34663         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
34664         Define in terms of long long int or int64_t or long int,
34665         not int64_t or int32_t.  This saves some compile-time testing.
34666         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
34667         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
34668         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
34669         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
34670         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
34671         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
34672         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
34673         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34674         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
34675         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
34676         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34677         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34678         undef any previous version and define our own version, for
34679         simplicity and consistency with the new macros for types.
34680         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34681         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34682         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
34683         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
34684         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
34685         @WINT_T_SUFFIX@ to keep things simple here.
34686         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
34687         Simplify by assuming typical 8/16/32/64 host, since we're
34688         already doing that elsewhere anyway.
34689         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
34690         and assume long long int is 64 bits if available.  This
34691         speeds up 'configure'.
34692
34693 2006-07-01  Eric Blake  <ebb9@byu.net>
34694
34695         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
34696         Reported by Andreas Buening.
34697
34698 2006-07-01  Eric Blake  <ebb9@byu.net>
34699
34700         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
34701
34702 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34703
34704         * lib/getaddrinfo.c: fixed typo
34705
34706 2006-06-29  Jim Meyering  <jim@meyering.net>
34707
34708         * modules/strftime (Maintainer): Add my name, since with the
34709         FPRINTFTIME changes strftime.c has forked from glibc.
34710
34711 2006-06-29  Eric Blake  <ebb9@byu.net>
34712
34713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
34714
34715 2006-06-29  Eric Blake  <ebb9@byu.net>
34716
34717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
34718
34719 2006-06-29  Eric Blake  <ebb9@byu.net>
34720
34721         * lib/stat_.h: New file.
34722
34723 2006-06-29  Eric Blake  <ebb9@byu.net>
34724
34725         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
34726         unused static function.
34727
34728 2006-06-29  Eric Blake  <ebb9@byu.net>
34729
34730         * doc/functions.texi (Function Portability): Document missing lstat
34731         on mingw.
34732
34733 2006-06-29  Eric Blake  <ebb9@byu.net>
34734
34735         * MODULES.html.sh: Add sys_stat.
34736         * modules/sys_stat: New module.
34737         * modules/mkstemp (Depends-on): Add sys_stat.
34738
34739 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34740
34741         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
34742
34743 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34744
34745         * m4/c-bs-a.m4: Removed.
34746
34747 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34748
34749         * lib/strftime.c: Assume strftime() exists.
34750
34751 2006-06-29  Derek Price  <derek@ximbiot.com>
34752
34753         * modules/c-bs-a: Removed - \a is C89.
34754         * MODULES.html.sh: Remove c-bs-a.
34755
34756 2006-06-29  Bruno Haible  <bruno@clisp.org>
34757
34758         * modules/wcwidth (License): Change to LGPL.
34759
34760 2006-06-28  Simon Josefsson  <jas@extundo.com>
34761
34762         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
34763         on _WIN32.
34764
34765         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
34766         getnameinfo.
34767
34768 2006-06-28  Simon Josefsson  <jas@extundo.com>
34769
34770         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
34771
34772 2006-06-28  Simon Josefsson  <jas@extundo.com>
34773
34774         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
34775         functions there.  It will succeed on Windows XP, but on Windows
34776         2000 and (presumably) earlier, it will fail, and use the internal
34777         re-implementation.
34778         (use_win32_p): New function.
34779         (getaddrinfo): Use strtoul on servname, to support numeric ports.
34780         Support AI_NUMERICSERV to disable getservbyname.
34781         (getnameinfo): New function, only supports
34782         NI_NUMERICHOST|NI_NUMERICSERV for now.
34783
34784         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
34785         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
34786         getnameinfo.
34787
34788 2006-06-28  Eric Blake  <ebb9@byu.net>
34789
34790         * modules/wcwidth: New file.
34791         * modules/mbchar (Depends-on): Add wcwidth.
34792         * modules/mbswidth (Depends-on): Add wcwidth.
34793         * MODULES.html.sh: Add wcwidth.
34794
34795 2006-06-28  Eric Blake  <ebb9@byu.net>
34796
34797         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
34798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
34799
34800 2006-06-28  Eric Blake  <ebb9@byu.net>
34801
34802         * lib/xvasprintf.h: Fix comments.
34803
34804 2006-06-28  Eric Blake  <ebb9@byu.net>
34805
34806         * lib/mbchar.h (wcwidth): Include wcwidth.h.
34807         * lib/mbswidth.c (wcwidth): Move from here...
34808         * lib/wcwidth.h: ...to this new file.
34809
34810 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34811
34812         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
34813
34814         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
34815         it's obsolete.
34816         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
34817
34818 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34819
34820         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
34821         Autoconf 2.60 says this stuff was obsolete.
34822
34823 2006-06-28  Bruno Haible  <bruno@clisp.org>
34824
34825         * modules/wcwidth (Files): Add m4/wchar_t.m4.
34826
34827 2006-06-28  Bruno Haible  <bruno@clisp.org>
34828
34829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
34830         gt_TYPE_WCHAR_T.
34831
34832 2006-06-28  Bruno Haible  <bruno@clisp.org>
34833
34834         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
34835         declaration for wcwidth.
34836         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
34837
34838 2006-06-28  Bruno Haible  <bruno@clisp.org>
34839
34840         * lib/mkdtemp.c [MINGW]: Include <io.h>.
34841         (mkdir): Define using _mkdir.
34842
34843 2006-06-28  Bruno Haible  <bruno@clisp.org>
34844
34845         * lib/getaddrinfo.h: Fix POSIX URL.
34846         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
34847         _WIN32.
34848         (use_win32_p): Make static.
34849         (getaddrinfo): Reject service name if it is empty or does not consist
34850         solely of decimal digits, or if its value is > 65535.
34851         (getnameinfo): Remove useless casts.
34852
34853 2006-06-27  Simon Josefsson  <jas@extundo.com>
34854
34855         * modules/sys_select: New file, suggested by Bruno Haible, Paul
34856         Eggert and Martin Lambers.
34857
34858 2006-06-27  Simon Josefsson  <jas@extundo.com>
34859
34860         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
34861         Eggert and Martin Lambers.
34862
34863 2006-06-27  Bruno Haible  <bruno@clisp.org>
34864
34865         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
34866         result to 0, not to empty.
34867         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
34868
34869 2006-06-27  Bruno Haible  <bruno@clisp.org>
34870
34871         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
34872
34873 2006-06-26  Simon Josefsson  <jas@extundo.com>
34874
34875         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
34876         present.
34877
34878 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34879
34880         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
34881         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
34882         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
34883
34884 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
34885
34886         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
34887
34888 2006-06-26  Bruno Haible  <bruno@clisp.org>
34889
34890         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
34891
34892 2006-06-26  Bruno Haible  <bruno@clisp.org>
34893
34894         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
34895
34896 2006-06-26  Bruno Haible  <bruno@clisp.org>
34897
34898         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
34899         SGI C compiler in pre-C99 mode.
34900         Suggested by Mark D. Baushke and Larry Jones.
34901
34902 2006-06-26  Bruno Haible  <bruno@clisp.org>
34903
34904         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
34905         WCHAR_MAX.
34906         Reported by Mark D. Baushke and Larry Jones.
34907
34908 2006-06-26  Bruno Haible  <bruno@clisp.org>
34909
34910         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
34911         in pre-C99 mode.
34912         Suggested by Mark D. Baushke and Larry Jones.
34913
34914 2006-06-23  Simon Josefsson  <jas@extundo.com>
34915             Bruno Haible  <bruno@clisp.org>
34916
34917         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
34918         Emit mostlyclean-local rule.
34919         (func_emit_tests_Makefile_am): Likewise.
34920         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
34921
34922 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
34923
34924         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
34925
34926 2006-06-23  Bruno Haible  <bruno@clisp.org>
34927
34928         * tests/test-stdint.c: Update to match ISO C 99 Technical
34929         Corrigendum 1.
34930
34931 2006-06-23  Bruno Haible  <bruno@clisp.org>
34932
34933         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
34934
34935 2006-06-23  Bruno Haible  <bruno@clisp.org>
34936
34937         * lib/stdint_.h: Treat IRIX like OpenBSD.
34938
34939 2006-06-23  Bruno Haible  <bruno@clisp.org>
34940
34941         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
34942         ISO C 99 Technical Corrigendum 1.
34943
34944 2006-06-22  Simon Josefsson  <jas@extundo.com>
34945
34946         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
34947         MinGW.
34948
34949 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34950
34951         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
34952         needed.  Some compiler complained about some of them.  Problem reported
34953         by Larry Jones in
34954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
34955
34956 2006-06-21  Simon Josefsson  <jas@extundo.com>
34957
34958         * tests/test-getaddrinfo.c: New file.
34959
34960         * modules/getaddrinfo-tests: New file.
34961
34962         * MODULES.html.sh: Add inet_pton.
34963
34964         * modules/inet_pton: New file.
34965
34966 2006-06-21  Simon Josefsson  <jas@extundo.com>
34967
34968         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
34969         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
34970         of using the (limited) gnulib implementation on Windows XP.
34971
34972         * m4/inet_pton.m4: New file.
34973
34974 2006-06-21  Simon Josefsson  <jas@extundo.com>
34975
34976         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
34977         variable.
34978
34979         * lib/socket_.h: Don't define WINVER.
34980
34981         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
34982         slightly modified to work in gnulib.
34983
34984 2006-06-21  Simon Josefsson  <jas@extundo.com>
34985
34986         * doc/gnulib.texi (Windows sockets): Add.
34987
34988 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34989
34990         * lib/read-file.c (fread_file): Start with buffer allocation of
34991         0 bytes rather than 1 byte; this simplifies the code.
34992         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
34993         code to free buffer and save/restore errno.
34994         (internal_read_file): Remove unused local.
34995
34996 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34997
34998         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
34999         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
35000         Problem reported by Denis Excoffier in
35001         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
35002
35003 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35004
35005         * modules/sys_socket, modules/socklen: Include sys/types since
35006         FreeBSD 4.x's sys/socket.h needs it.
35007
35008 2006-06-19  Simon Josefsson  <jas@extundo.com>
35009
35010         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
35011
35012 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35013
35014         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
35015
35016 2006-06-19  Bruno Haible  <bruno@clisp.org>
35017
35018         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
35019         and FULL_PATH_INTTYPES_H in angle brackets.
35020         Reported by Mark D. Baushke <mdb@gnu.org>.
35021
35022 2006-06-17  Eric Blake  <ebb9@byu.net>
35023
35024         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
35025         errno.
35026
35027 2006-06-17  Bruno Haible  <bruno@clisp.org>
35028
35029         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
35030         <sys/inttypes.h>.
35031
35032 2006-06-17  Bruno Haible  <bruno@clisp.org>
35033
35034         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
35035         whether errno is declared. Assume <errno.h> declares errno.
35036
35037 2006-06-17  Bruno Haible  <bruno@clisp.org>
35038
35039         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
35040
35041 2006-06-17  Bruno Haible  <bruno@clisp.org>
35042
35043         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
35044         problem on Solaris 2.5.1.
35045
35046 2006-06-16  Eric Blake  <ebb9@byu.net>
35047
35048         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
35049         * lib/unicodeio.c [!defined errno]: Likewise.
35050         * lib/strtol.c [!defined errno]: Likewise.
35051         * lib/strtod.c [!defined errno]: Likewise.
35052
35053 2006-06-15  Eric Blake  <ebb9@byu.net>
35054
35055         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
35056
35057 2006-06-15  Eric Blake  <ebb9@byu.net>
35058
35059         * config/srclist.txt (ssize_t.m4): Lose sync.
35060
35061 2006-06-15  Bruno Haible  <bruno@clisp.org>
35062
35063         * modules/stdint (Files): Include m4/full-header-path.m4,
35064         m4/size_max.m4, m4/wchar_t.m4.
35065         (Makefile.am): Many more substitutions.
35066         * modules/stdint-tests: New file.
35067         * tests/test-stdint.c: New file.
35068
35069 2006-06-15  Bruno Haible  <bruno@clisp.org>
35070
35071         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
35072         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
35073         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
35074         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
35075         gl_CHECK_TYPE_SAME): New macros.
35076
35077 2006-06-15  Bruno Haible  <bruno@clisp.org>
35078
35079         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
35080
35081 2006-06-15  Bruno Haible  <bruno@clisp.org>
35082
35083         * lib/stdint_.h: Rewritten to be fully auto-configured.
35084         Fixes bug on HP-UX/IA64.
35085
35086 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35087
35088         * lib/getdate.y (__attribute__): Don't define if already defined.
35089         Problem reported by Larry Jones.
35090         * lib/utimens.c (__attribute__): Likewise.
35091
35092 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
35093
35094         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
35095         reported by Andreas Schwab.
35096
35097 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35098             Bruno Haible  <bruno@clisp.org>
35099
35100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
35101         check for the declaration of strnlen and a run test that exposes the
35102         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
35103         rpl_strndup.
35104
35105 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35106             Bruno Haible  <bruno@clisp.org>
35107
35108         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
35109
35110 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35111
35112         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
35113         compile test, for Tru64 4.0D.
35114
35115 2006-05-28  Karl Berry  <karl@gnu.org>
35116
35117         * config/srclist.txt (printf-args.c): lose sync.
35118
35119 2006-05-26  Martin Lambers  <marlam@marlam.de>
35120
35121         * lib/getpass.c: Updates the test for the native W32 API, and adds
35122         missing includes, thus fixing compilation warnings.
35123
35124 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35125
35126         * lib/exclude.c (exclude_fnmatch): New function.
35127         (excluded_file_name): Call exclude_fnmatch.
35128         * lib/exclude.h (excluded_file_name): New prototype
35129
35130 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
35131
35132         * lib/tempname.c (small_open, large_open): New macros.
35133         (__open, __open64) [!_LIBC]: Remove.
35134         (__gen_tempname): Use small_open and large_open instead of __open
35135         and __open64.  This fixes a portability bug on HP-UX 11.11i
35136         reported by Simon Wing-Tang in
35137         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
35138
35139 2006-05-24  Bruno Haible  <bruno@clisp.org>
35140
35141         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
35142         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
35143         Reported by Thorsten Maerz <torte@netztorte.de> via
35144         Aaron Stone <aaron@serendipity.cx>.
35145
35146 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35147
35148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
35149         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
35150         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
35151         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
35152         not really conditional on the cache.
35153         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
35154
35155 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35156
35157         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
35158         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
35159         (my_usleep): Don't mishandle maximum value.
35160
35161 2006-05-19  Jim Meyering  <jim@meyering.net>
35162
35163         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
35164
35165 2006-05-17  Bruno Haible  <bruno@clisp.org>
35166
35167         Cygwin portability.
35168         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
35169
35170 2006-05-17  Bruno Haible  <bruno@clisp.org>
35171
35172         * lib/stdint_.h: Fix recognition of Cygwin.
35173
35174 2006-05-15  Bruno Haible  <bruno@clisp.org>
35175
35176         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
35177         on libtool patch by Ralf Wildenhues.
35178
35179 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35180
35181         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
35182         test for C99 conformance; (bool) 0.5 is an integer constant
35183         expression, but (bool) -0.5 is not.  Problem reported by Fedor
35184         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
35185
35186 2006-05-11  Simon Josefsson  <jas@extundo.com>
35187
35188         * m4/xvasprintf.m4: Fix obvious typo.
35189
35190 2006-05-11  Jim Meyering  <jim@meyering.net>
35191
35192         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
35193         James Lemley.
35194
35195 2006-05-10  Simon Josefsson  <jas@extundo.com>
35196
35197         * lib/md4.c: Typo fix, update copyright years.
35198         (K1, K2): Don't use L because it turn computations into 64-bit on
35199         64-bit platforms.
35200
35201 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35202
35203         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
35204         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
35205         unwanted sign propagation, e.g., on hosts with 64-bit int.
35206         There still are some problems with reeelly weird theoretical hosts
35207         (e.g., 33-bit int) but it's not worth worrying about now.
35208         * lib/sha1.c (rol): Likewise.
35209         (K1, K2, K3, K4): Remove unnecessary L suffix.
35210
35211 2006-05-10  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/des.c: Cast to avoid warnings.
35214
35215 2006-05-09  Bruno Haible  <bruno@clisp.org>
35216
35217         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
35218         (Depends-on): Depend also on xsize, stdarg.
35219         (configure.ac): Add gl_XVASPRINTF.
35220
35221 2006-05-09  Bruno Haible  <bruno@clisp.org>
35222
35223         * m4/xvasprintf.m4: New file.
35224
35225 2006-05-09  Bruno Haible  <bruno@clisp.org>
35226
35227         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
35228         (EOVERFLOW): Define fallback value.
35229         (xstrcat): New function.
35230         (xvasprintf): Recognize the special case of a string concatenation.
35231
35232 2006-05-08  Eric Blake  <ebb9@byu.net>
35233
35234         * gnulib-tool (func_version): Base copyright year on CVS date.
35235         (func_emit_copyright_notice): New function.
35236         (func_emit_lib_Makefile_am): Use it.
35237         (func_emit_tests_Makefile_am): Likewise.
35238         (func_import): Likewise.
35239
35240 2006-05-08  Bruno Haible  <bruno@clisp.org>
35241
35242         * modules/stdarg: New file.
35243         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
35244
35245 2006-05-08  Bruno Haible  <bruno@clisp.org>
35246
35247         * m4/stdarg.m4: New file, from GNU gettext.
35248
35249 2006-05-08  Bruno Haible  <bruno@clisp.org>
35250
35251         * config/srclist.txt (build-aux/config.rpath): different from latest
35252         release.
35253
35254 2006-05-08  Bruno Haible  <bruno@clisp.org>
35255
35256         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
35257
35258 2006-05-05  Jim Meyering  <jim@meyering.net>
35259
35260         * m4/warning.m4: New file, derived from bison's file by the same name.
35261
35262 2006-05-03  Bruno Haible  <bruno@clisp.org>
35263
35264         * lib/stdint_.h: Shorter URL.
35265         * lib/inttypes.h: Likewise.
35266
35267 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
35270
35271 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35272
35273         * lib/verify.h: Document the internals better.  Most of this change
35274         was written by Bruno Haible.
35275
35276 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35277
35278         * doc/verify.texi: New file, partly based on a proposal by
35279         Bruno Haible.
35280
35281 2006-05-02  Bruno Haible  <bruno@clisp.org>
35282
35283         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
35284         test from here...
35285         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
35286
35287 2006-04-29  Bruno Haible  <bruno@clisp.org>
35288
35289         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
35290         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
35291
35292 2006-04-29  Bruno Haible  <bruno@clisp.org>
35293
35294         * gnulib-tool: Make --update option actually work.
35295
35296 2006-04-29  Bruno Haible  <bruno@clisp.org>
35297
35298         * doc/gcd.texi: New file.
35299         * doc/gnulib.texi: Include it.
35300
35301 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
35302
35303         * lib/getdate.y (get_date): When adding relative date, start with the
35304         initial time, not with the result of the first mktime call.
35305
35306 2006-04-25  Bruno Haible  <bruno@clisp.org>
35307
35308         * gnulib-tool (func_import): Output the include directives in three
35309         blocks, sorted separately.
35310         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35311
35312 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35313
35314         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
35315         to define main with arguments, for C++.  Reported by Eric Blake.
35316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35317         Prefer 'int main ()' to 'int main (void)', for C++.
35318         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
35319         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
35320         for 'main', for C99 and C++.
35321
35322 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35323
35324         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
35325         Don't assume that exit status -1 is valid.
35326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35327         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35328         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35329         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
35330         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
35331         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
35332         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
35333         functions can be used without declaring them, or that you can
35334         exit with status -1.
35335         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35336
35337 2006-04-24  Karl Berry  <karl@gnu.org>
35338
35339         * config/srclist.txt (longdouble.m4): sync lost.
35340
35341 2006-04-24  Eric Blake  <ebb9@byu.net>
35342
35343         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
35344
35345 2006-04-24  Bruno Haible  <bruno@clisp.org>
35346
35347         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
35348         poll() implementation in AIX.
35349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35350
35351 2006-04-24  Bruno Haible  <bruno@clisp.org>
35352
35353         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
35354         assigned exactly once.
35355
35356 2006-04-23  Claudio Fontana  <claudio@gnu.org>
35357             Bruno Haible  <bruno@clisp.org>
35358
35359         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
35360         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
35361         for AM_CPPFLAGS.
35362
35363 2006-04-23  Bruno Haible  <bruno@clisp.org>
35364
35365         * modules/copy-file: Depend on unistd.
35366         * modules/execute: Likewise.
35367         * modules/fatal-signal: Likewise.
35368         * modules/findprog: Likewise.
35369         * modules/mkdtemp : Likewise.
35370         * modules/pipe: Likewise.
35371         * modules/wait-process: Likewise.
35372
35373 2006-04-23  Bruno Haible  <bruno@clisp.org>
35374
35375         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
35376         condition was already detected.
35377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35378
35379 2006-04-23  Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/copy-file.c: Include <unistd.h> unconditionally.
35382         * lib/execute.c: Likewise.
35383         * lib/fatal-signal.c: Likewise.
35384         * lib/findprog.c: Likewise.
35385         * lib/mkdtemp.c: Likewise.
35386         * lib/pipe.h: Likewise.
35387         * lib/pipe.c: Likewise.
35388         * lib/wait-process.h: Likewise.
35389
35390 2006-04-23  Bruno Haible  <bruno@clisp.org>
35391
35392         * gnulib-tool (func_usage): Fix --import description. Document
35393         --update.
35394         (func_import): Create temporary file in a temporary directory, if
35395         --dry-run is specified. Silence errors from 'grep' when there are no
35396         m4 files in $m4dir.
35397         (func_create_testdir): Silence errors from 'grep' when there are no
35398         m4 files in $m4dir.
35399         Reported by Karl Berry <karl@freefriends.org>.
35400
35401 2006-04-20  Bruno Haible  <bruno@clisp.org>
35402
35403         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
35404         one argument, so that the code will be portable to Autoconf 2.60.
35405         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
35406         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35407         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
35408
35409 2006-04-19  Derek Price  <derek@ximbiot.com>
35410             Eric Blake  <ebb9@byu.net>
35411
35412         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
35413         rather than "/full/path.h".  Update comment to match.  Shorten &
35414         generalize m4_translit call via AS_TR_CPP.
35415
35416 2006-04-19  Derek Price  <derek@ximbiot.com>
35417             Eric Blake  <ebb9@byu.net>
35418
35419         * lib/inttypes.h: Correct grammar in comment.
35420
35421 2006-04-18  Derek Price  <derek@ximbiot.com>
35422             Paul Eggert  <eggert@cs.ucla.edu>
35423
35424         * modules/inttypes: New file.
35425         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
35426
35427 2006-04-18  Derek Price  <derek@ximbiot.com>
35428             Paul Eggert  <eggert@cs.ucla.edu>
35429
35430         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
35431         New files.
35432
35433 2006-04-18  Derek Price  <derek@ximbiot.com>
35434             Paul Eggert  <eggert@cs.ucla.edu>
35435
35436         * lib/inttypes.h: New file.
35437         * lib/strtoimax.c: Assume <inttypes.h>.
35438
35439 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
35440
35441         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
35442         isn't mounted.  Problem reported by Kir Kolyshkin.
35443
35444 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35445
35446         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
35447         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
35448         Derek R. Price.
35449         * lib/regex.h (RE_DUP_MAX): Update comment to match current
35450         implementation.
35451
35452 2006-04-12  Eric Blake  <ebb9@byu.net>
35453
35454         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
35455         is now done automatically by the corresponding Autoconf macro.
35456
35457 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
35458
35459         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
35460         time_r.h.
35461
35462 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35463
35464         Merge regex changes from libc, removing some of our
35465         POSIX-conformance changes that were rejected and redoing them in a
35466         less-intrusive way.
35467
35468         * lib/regcomp.c (re_compile_internal, init_dfa):
35469         Length arg is now size_t, not Idx.  All uses changed.
35470         (peek_token): Forward decl now says internal_function.
35471         (__re_error_msgid, __re_error_msgid_idx):
35472         Now static rather than extern with attribute_hidden.
35473         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
35474         For some reason libc prefers K&R style defns for external functions.
35475         (regerror) [!defined _LIBC]: Likewise.
35476         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
35477         (seek_collating_symbol_entry, lookup_collation_sequence_value):
35478         (build_range_exp, build_collating_symbol):
35479         Use K&R-style defn.
35480         (re_compile_fastmap): Use '\0' to memset, not 0.
35481         (utf8_sb_map): Make the calculations more obvious.
35482         (init_dfa, parse_bracket_exp, build_charclass_op):
35483         Call calloc and cast result, as glibc does.
35484         (init_word_char, fetch_token, peek_token, peek_token_bracket):
35485         (build_range_exp, build_collating_symbol):
35486         Now internal functions.
35487
35488         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
35489
35490         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
35491         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
35492         Don't depend on VMS; depend on __VMS instead, for POSIX
35493         namespace cleanness.
35494         (regoff_t): Define to ssize_t, not long int.
35495
35496         Remove the REG_ macros named below.  Instead, make the old names
35497         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
35498         __USE_GNU_REGEX.
35499         (REG_BACKSLASH_ESCAPE_IN_LISTS):
35500         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
35501         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
35502         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
35503         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
35504         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
35505         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
35506         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
35507         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
35508         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
35509         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
35510         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
35511         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
35512         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
35513         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
35514         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
35515         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
35516         (REG_NREGS):
35517         Remove.  All uses replaced by the old RE_* names.
35518         (RE_BACKSLASH_ESCAPE_IN_LISTS):
35519         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
35520         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
35521         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
35522         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
35523         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
35524         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
35525         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
35526         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
35527         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
35528         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
35529         Don't bother having these macros be independent of each others'
35530         values, since they no longer exist in the POSIX name space.
35531
35532         Rename the following member names back to their old names,
35533         unless !__USE_GNU_REGEX.  All uses changed back.
35534         (buffer): Renamed from re_buffer.
35535         (allocated): Renamed from re_allocated.
35536         (used): Renamed from re_used.
35537         (syntax): Renamed from re_syntax.
35538         (fastmap): Renamed from re_fastmap.
35539         (translate): Renamed from re_translate.
35540         (can_be_null): Renamed from re_can_be_null.
35541         (regs_allocated): Renamed from re_regs_allocated.
35542         (fastmap_accurate): Renamed from re_fastmap_accurate.
35543         (no_sub): Renamed from re_no_sub.
35544         (not_bol): Renamed from re_not_bol.
35545         (not_eol): Renamed from re_not_eol.
35546         (newline_anchor): Renamed from re_newline_anchor.
35547         (num_regs): Renamed from rm_num_regs.
35548         (start): Renamed from rm_start.
35549         (end): Renamed from rm_end.
35550
35551         (free_state): Move up a bit.
35552
35553         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
35554         #define to be empty.
35555         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
35556         when that is what is intended.
35557         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
35558         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
35559         (MAX): New macro.
35560         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
35561         All uses changed back to re_malloc, etc.  It's now the caller's
35562         responsibility to check for overflow; all callers changed.
35563         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
35564         (re_x2nrealloc): Remove.
35565         (free_state): Remove decl.
35566
35567         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
35568         (re_set_registers, re_exec):
35569         Use K&R-style defn.
35570
35571         2006-01-31  Roland McGrath  <roland@redhat.com>
35572
35573         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
35574         Reported by Mike Frysinger <vapier@gentoo.org>.
35575
35576         2006-01-15  Andreas Jaeger  <aj@suse.de>
35577
35578         [BZ #1950]
35579         * lib/regex_internal.c (re_string_reconstruct): Adjust for
35580         build_wcs_upper_buffer change.
35581         (build_wcs_upper_buffer): Change return type.
35582
35583         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
35584
35585         * lib/regex_internal.h: Include <stdint.h> if available.
35586
35587         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
35588
35589         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
35590
35591         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35592
35593         * lib/regcomp.c: Adjust for changed secondary hash function.
35594
35595         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
35596
35597         * lib/regex.h: Pretty printing.
35598         Clean up namespace a bit.
35599
35600         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
35601
35602         * lib/regexec.c (update_cur_sifted_state, check_arrival,
35603         check_arrival_add_next_nodes): Avoid using uninitialized variable.
35604
35605         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35606                     Ulrich Drepper  <drepper@redhat.com>
35607
35608         [BZ #1302]
35609         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
35610         changed.
35611         (bitset_word_t): Renamed from bitset_word.  All uses changed.
35612
35613         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
35614
35615         [BZ #281]
35616         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
35617         * lib/regcomp.c: Remove unnecessary uses of
35618         unsigned RE_TRANSLATE_TYPE.
35619         * lib/regex_internal.h: Likewise.
35620         * lib/regex_internal.c: Likewise.
35621         * lib/regexec.c: Likewise.
35622         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
35623
35624         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
35625
35626         * lib/regexec.c (find_recover_state): Remove unnecessary
35627         initialization.
35628         (transit_state_bkref): Make DFA a const pointer.
35629         (get_subexp): Likewise.
35630         (check_arrival): Likewise.
35631         (update_cur_sifted_state): Likewise.
35632         (re_search_internal): Likewise.
35633         (prune_impossible_nodes): Likewise.
35634         (acquire_init_state_context): Likewise.
35635         (proceed_next_node): Likewise.
35636         (set_regs): Likewise.
35637         (free_fail_stack_return): Likewise.
35638         (check_arrival_expand_ecl): Mark DFA parameter as const.
35639         (check_arrival_expand_ecl_sub): Likewise.
35640         (check_subexp_limits): Likewise.
35641         (sub_epsilon_src_nodes):  Likewise.
35642         (add_epsilon_src_nodes):  Likewise.
35643         (merge_state_array): Likewise.
35644         (update_regs): Likewise.
35645         (build_trtable): Likewise.
35646         (sift_states_backward): Mark MCTX parameter as const.
35647         (build_sifted_states): Likewise.
35648         (update_cur_sifted_state): Likewise.
35649         (sift_states_mkref): Likewise.
35650         (check_arrival_expand_ecl): Mark eclosure as const.
35651         (check_dst_limits_calc_pos_1): Likewise.
35652         * lib/regex_internal.h (re_match_context_t): Make dfa a const
35653         pointer.
35654
35655         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
35656
35657         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
35658         (transit_state_sb): Likewise.
35659         (transit_state_mb): Likewise.
35660         (sift_states_iter_mb): Likewise.
35661         (check_arrival_add_next_nodes): Likewise.
35662         (check_node_accept_bytes): Change first parameter to pointer-to-const.
35663         [_LIBC] (re_search_2_stub): Use mempcpy.
35664
35665         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
35666         mbrtowc for very simple UTF-8 case.
35667
35668         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
35669         a pointer-to-const.
35670         (re_acquire_state_context): Likewise.
35671         * lib/regex_internal.h: Adjust prototypes.
35672
35673         * lib/regex.c: Prevent using C++ compilers.
35674
35675         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
35676         (re_acquire_state_context): Likewise.
35677
35678 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35679
35680         * modules/regex (Depends-on): Add ssize_t.
35681
35682 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35683
35684         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
35685         translation table.
35686
35687 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35688
35689         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
35690
35691 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
35692             Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
35695         <sys/types.h> and <inttypes.h>.
35696
35697 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35698
35699         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
35700         `__error_t_defined', so argp.h will not typedef the former.
35701
35702 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35703
35704         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
35705         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
35706         glibc names.  Even if glibc is changed to conform to POSIX, the
35707         traditional names will be available anyway, since regex depends on
35708         the extensions module.  Also, fix a longstanding typo in the
35709         implementation of Spencer ERE test #75 from grep 2.3.  Problems
35710         reported by Emanuele Giaquinta.  Also, change sense of cached
35711         variable, so that the message makes sense.
35712
35713 2006-03-24  Simon Josefsson  <jas@extundo.com>
35714
35715         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
35716         including some doc fixes.
35717         (base64_encode_alloc): Fix +1 bug on allocation failures.
35718
35719 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35720
35721         * lib/base64.c (base64_encode): Do not read past end of array with
35722         unsanitized input on systems with CHAR_BIT > 8.
35723
35724 2006-03-24  Eric Blake  <ebb9@byu.net>
35725
35726         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
35727
35728 2006-03-22  Karl Berry  <karl@gnu.org>
35729
35730         * config/srclist.txt (*setenv.[ch]): get from coreutils.
35731         * config/srclistvars.sh (COREUTILS): new var.
35732
35733 2006-03-17  Jim Meyering  <jim@meyering.net>
35734
35735         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
35736         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
35737
35738 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35739
35740         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
35741         no longer needs it.  Instead, check that regoff_t is as least
35742         as wide as ptrdiff_t.
35743
35744         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
35745         so that our regex.h stays compatible with the installed regex.
35746         This is helpful for installers who configure --without-included-regex.
35747         Problem reported by Emanuele Giaquinta.
35748
35749 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35750
35751         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
35752         Typedef to long int, not to off_, as POSIX will likely change
35753         in that direction.
35754
35755 2006-03-15  Eric Blake  <ebb9@byu.net>
35756
35757         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
35758
35759 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35760
35761         * lib/argp-help.c (validate_uparams): Fix typo
35762         * lib/argp-parse.c (argp_default_options): Consistently begin help
35763         messages with a lowercase letter.
35764
35765 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
35766
35767         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
35768         overrun buffers and shouldn't be used (much as gets shouldn't be
35769         used).
35770         * lib/time_r.c (asctime_r, ctime_r): Likewise.
35771
35772 2006-03-08  Simon Josefsson  <jas@extundo.com>
35773
35774         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
35775         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35776
35777 2006-03-08  Simon Josefsson  <jas@extundo.com>
35778
35779         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
35780         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35781
35782 2006-03-08  Simon Josefsson  <jas@extundo.com>
35783
35784         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
35785         signal that configure disabled the device.
35786
35787 2006-03-08  Simon Josefsson  <jas@extundo.com>
35788
35789         * build-aux/maint.mk: Fix refresh-po, to handle no translated
35790         languages.
35791
35792 2006-03-07  Simon Josefsson  <jas@extundo.com>
35793
35794         * modules/getopt (Depends-on): Add unistd.
35795
35796         * modules/unistd: New file.
35797
35798 2006-03-07  Simon Josefsson  <jas@extundo.com>
35799
35800         * modules/gc-random: New file.
35801
35802 2006-03-07  Simon Josefsson  <jas@extundo.com>
35803
35804         * m4/unistd_h.m4: New file.
35805
35806 2006-03-07  Simon Josefsson  <jas@extundo.com>
35807
35808         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
35809         test to be side-effect free by storing the result in the cache
35810         variable gl_cv_lib_readline, and moving the assignment of
35811         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
35812         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35813
35814 2006-03-07  Simon Josefsson  <jas@extundo.com>
35815
35816         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
35817         error on missing devices (the functions will return an error).
35818
35819         * m4/gc.m4: Move random stuff to gc-random.m4
35820
35821 2006-03-07  Simon Josefsson  <jas@extundo.com>
35822
35823         * lib/unistd_.h: New file.
35824
35825 2006-03-07  Simon Josefsson  <jas@extundo.com>
35826
35827         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
35828
35829 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35830
35831         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
35832         Problem reported by Juan Manuel Guerrero.
35833
35834 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35835
35836         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
35837         the unistd module.
35838         * lib/getlogin_r.c: Likewise.
35839         * lib/getlogin_r.h: Likewise.
35840         * lib/glob.c: Likewise.
35841         * lib/pagealign_alloc.c: Likewise.
35842         * lib/unistd_.h: Remove; no longer needed.
35843
35844 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35845
35846         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35847         Add unistd.
35848         * modules/c-stack (Depends-on): Add unistd.
35849         * modules/getlogin_r: Likewise.
35850         * modules/glob: Likewise.
35851         * modules/pagealign_alloc: Likewise.
35852         * modules/unistd (Files): Remove lib/unistd_.h.
35853         (EXTRA_DIST): Remove.
35854         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
35855         need unistd_.h.
35856         (MOSTLYCLEANFILES): Remove unistd.h-t.
35857
35858 2006-03-03  Simon Josefsson  <jas@extundo.com>
35859
35860         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
35861
35862 2006-03-03  Simon Josefsson  <jas@extundo.com>
35863
35864         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
35865         libidn and bison.
35866
35867 2006-03-03  Simon Josefsson  <jas@extundo.com>
35868
35869         * build-aux/maint.mk: Add indent target.
35870
35871 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
35872
35873         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
35874         our replacement poll.h in any case, to avoid a differing
35875         declaration from a system header.  Seen on AIX.
35876
35877 2006-03-01  Simon Josefsson  <jas@extundo.com>
35878
35879         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
35880         <kasal@ucw.cz>.
35881
35882 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35883
35884         * modules/gettime (Depends-on): Add extensions module.
35885         * modules/nanosleep (Depends-on): Likewise.
35886         * modules/settime (Depends-on): Likewise.
35887
35888 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
35889
35890         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
35891         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
35892         pedantically.
35893         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35894         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
35895
35896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
35897         not "==".  Reported by Ralf Wildenhues.
35898
35899 2006-03-01  Karl Berry  <karl@gnu.org>
35900
35901         * doc/Copyright/request-*: new files, synced from gnuorg.
35902
35903 2006-03-01  Karl Berry  <karl@gnu.org>
35904
35905         * config/srclist.txt (Copyright/*): new entries.
35906
35907 2006-02-28  Simon Josefsson  <jas@extundo.com>
35908
35909         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
35910
35911 2006-02-27  Simon Josefsson  <jas@extundo.com>
35912
35913         * lib/base64.h: Indent #define's.  From Jim Meyering
35914         <jim@meyering.net>.
35915
35916 2006-02-27  Jim Meyering  <jim@meyering.net>
35917
35918         Revert the change of 2006-02-24, so these files can continue
35919         to be sync'd from gettext.
35920         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
35921         of `config.h'.
35922
35923 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
35924
35925         * modules/intprops: New file.
35926         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35927         Add intprops.
35928         * modules/getloadavg (Files): Remove lib/intprops.h.
35929         (Depends-on): Add intprops.
35930         * modules/human: Likewise.
35931         * modules/inttostr: Likewise.
35932         * modules/openat: Likewise.
35933         * modules/sig2str: Likewise.
35934         * modules/userspec: Likewise.
35935         * modules/utimecmp: Likewise.
35936         * modules/xnanosleep: Likewise.
35937         * modules/xstrtol: Likewise.
35938
35939 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
35940
35941         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
35942         * modules/lock-tests (TESTS): Use $(EXEEXT).
35943         * modules/tls-tests: Likewise.
35944         * modules/argp-tests: Likewise.
35945         (check_PROGRAMS): New var, replacing...
35946         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
35947
35948 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35949
35950         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
35951         `config.h'.
35952
35953 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
35954
35955         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
35956
35957 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35958
35959         Sync from coreutils.
35960         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
35961         gl_CHDIR_SAFER.
35962
35963 2006-02-22  Jim Meyering  <jim@meyering.net>
35964
35965         Sync from coreutils.
35966         * m4/chdir-safer.m4: New file.
35967
35968 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35969
35970         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
35971         AT_FDCWD exceeds INT_MAX.
35972         * lib/openat.h (AT_FDCWD): Likewise.
35973
35974 2006-02-17  Eric Blake  <address@hidden>
35975
35976         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
35977
35978 2006-02-16  Simon Josefsson  <jas@extundo.com>
35979
35980         * modules/getaddrinfo (Depends-on): Add sys_socket.
35981
35982 2006-02-15  Simon Josefsson  <jas@extundo.com>
35983
35984         * build-aux/maint.mk: Add dsyntax-check rule.
35985
35986 2006-02-15  Eric Blake  <ebb9@byu.net>
35987
35988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
35989         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
35990         'present but cannot compile' warnings on cygwin.
35991         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
35992         use ws2tcpip.h if sys/socket.h works.
35993         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
35994         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
35995
35996 2006-02-14  Simon Josefsson  <jas@extundo.com>
35997
35998         * modules/maintainer-makefile (Files): Rename.
35999
36000         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
36001         and (the local) Makefile.cfg to maint-cfg.mk.
36002
36003         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
36004         to the latter.
36005
36006         * modules/maintainer-makefile: New module.
36007
36008         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
36009         severaly stripped to make it possible to build it up from scratch
36010         with reliable tests.
36011
36012         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
36013         fixes to permit overriding the default actions when configure and
36014         makefile are not available.
36015
36016 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36017
36018         Sync from coreutils.
36019         * modules/lstat (Depends-on): Don't depend on xalloc.
36020         (License): Change from GPL to LGPL, since this is now simply a
36021         replacement for a libc function.
36022
36023 2006-02-14  Jim Meyering  <jim@meyering.net>
36024
36025         Sync from coreutils.
36026
36027         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
36028         failure on deficient systems, and simplify gnulib lgpl dependencies.
36029         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
36030         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
36031
36032         * lib/xalloc-die.c: Remove unused definition of N_.
36033
36034 2006-02-14  Jim Meyering  <jim@meyering.net>
36035
36036         Sync from coreutils.
36037         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
36038         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
36039         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
36040         double-quote uses of that variable, to accommodate the rare case in
36041         which getmntent is available in none of the libraries checked.  This
36042         happens at least on FreeBSD 5.0.
36043
36044 2006-02-13  Simon Josefsson  <jas@extundo.com>
36045
36046         * gnulib-tool (Usage): Fix --import, from
36047         karl@freefriends.org (Karl Berry).
36048
36049 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36050
36051         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
36052
36053 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
36054
36055         * lib/argp-namefrob.h: Restore changes accidentally lost during the
36056         "autoupdate" on 2005-12-12.
36057
36058 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36059
36060         * modules/closeout (Depends-on): Remove atexit.
36061
36062 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36063
36064         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
36065         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
36066
36067 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36068
36069         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
36070         __EXTENSIONS__ if this causes compilation to fail.  Problem
36071         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
36072         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
36073
36074 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36075
36076         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
36077         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
36078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
36079         All uses changed.
36080
36081 2006-01-26  Simon Josefsson  <jas@extundo.com>
36082
36083         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
36084         prototype is visible on mingw32.
36085
36086         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
36087         for mingw32.
36088
36089         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
36090         mingw32).
36091
36092 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
36093
36094         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
36095         attempt to open for write; this always fails, at least on POSIX
36096         hosts.  This reinstates the 2006-01-09 change, which was
36097         inadvertently removed.
36098
36099 2006-01-26  Bruno Haible  <bruno@clisp.org>
36100
36101         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
36102         Reported by Paul Eggert.
36103
36104 2006-01-26  Bruno Haible  <bruno@clisp.org>
36105             Paul Eggert  <eggert@cs.ucla.edu>
36106
36107         * lib/stdbool_.h (_Bool)
36108         [(! (defined __cplusplus || defined __BEOS__)
36109           && !defined __GNUC__
36110           && !(defined __HP_cc || defined __xlc__
36111                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
36112                || defined __sgi))]:
36113         #define to signed char in these cases too; this simplifies
36114         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
36115         etc., separately) and makes it more conservative.
36116
36117 2006-01-25  Simon Josefsson  <jas@extundo.com>
36118
36119         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
36120         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
36121         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
36122
36123 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36124
36125         * lib/argp-namefrob.h: Bugfix. Remove stray #
36126
36127 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36128
36129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
36130         so that we test the test.
36131         Check for yet another HP-UX cc bug involving *bool |= bool.
36132
36133 2006-01-25  Karl Berry  <karl@gnu.org>
36134
36135         * config/srclist.txt (vasnprintf.c): sync lost.
36136
36137 2006-01-25  Jim Meyering  <jim@meyering.net>
36138
36139         Sync from the stable (b5) branch of coreutils:
36140
36141         * lib/fts.c (fts_children): Don't let close() clobber errno from
36142         failed fchdir().
36143
36144         * lib/fts.c (fts_stat): When following a symlink-to-directory,
36145         don't necessarily interpret stat-fails+lstat-succeeds as indicating
36146         a dangling symlink.  That can also happen at least for ELOOP.
36147         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
36148         FYI, this bug predates the inclusion of fts.c in coreutils.
36149
36150         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
36151         in their own block, so pre-c99 compilers don't object.
36152
36153         Avoid the double-free (first in fts_read, second in fts_close) that
36154         would occur when an `active' directory is made inaccessible (e.g.,
36155         via chmod a-x) during a traversal.
36156         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36157         before returning.  Reproduce this failure by
36158         mkdir -p a/b; cd a; chmod a-x . b
36159         Reported by Stavros Passas.
36160
36161 2006-01-25  Jim Meyering  <jim@meyering.net>
36162
36163         * lib/fileblocks.c: Remove more useless parentheses.
36164         * lib/readutmp.h: Likewise.
36165
36166 2006-01-25  Bruno Haible  <bruno@clisp.org>
36167
36168         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
36169         warnings.
36170         Reported by Paul Eggert.
36171
36172 2006-01-25  Bruno Haible  <bruno@clisp.org>
36173
36174         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
36175         rid of a trap command. For Solaris sh.
36176         Reported by Mark D. Baushke <mdb@gnu.org>.
36177
36178 2006-01-24  Simon Josefsson  <jas@extundo.com>
36179
36180         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
36181         Bruno.
36182
36183 2006-01-24  Karl Berry  <karl@gnu.org>
36184
36185         * config/srclist.txt (argp-namefrob.h): sync lost.
36186
36187 2006-01-24  Jim Meyering  <jim@meyering.net>
36188
36189         * modules/openat (Files): Add lib/intprops.h.
36190         From Mark D. Baushke.
36191
36192 2006-01-24  Jim Meyering  <jim@meyering.net>
36193
36194         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
36195         Reported by Mark D. Baushke.
36196
36197 2006-01-24  Jim Meyering  <jim@meyering.net>
36198
36199         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
36200
36201 2006-01-24  Bruno Haible  <bruno@clisp.org>
36202
36203         * modules/strnlen (Maintainer): Change from glibc to all.
36204
36205 2006-01-24  Bruno Haible  <bruno@clisp.org>
36206
36207         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
36208         Patch by Paul Eggert.
36209
36210 2006-01-24  Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
36213         already has it.
36214         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
36215         2005-11-26.
36216
36217         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
36218         'signed char' to avoid problems with the built-in _Bool type.
36219         Reported by Paul Eggert on 2005-11-26.
36220
36221 2006-01-24  Bruno Haible  <bruno@clisp.org>
36222
36223         * gnulib-tool (func_import): Avoid constructing complicated sed
36224         expressions inside backquote.
36225         Report and solution by Mark D. Baushke <mdb@gnu.org>.
36226
36227 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
36228
36229         These changes imported from libc.
36230         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
36231         test and two separate function calls.
36232         * lib/strndup.c (__strndup): Add libc_hidden_def.
36233
36234 2006-01-23  Simon Josefsson  <jas@extundo.com>
36235
36236         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
36237         Remove the test_*_SOURCES variable: automake infers it by default.
36238         * modules/tls-tests: Likewise.
36239
36240 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36241
36242         Work around porting bugs reported by Dieter in
36243         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
36244         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
36245         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
36246         Include "getopt.h" first, to check interface.
36247         (getenv): Declare only if defined HAVE_DECL_GETENV &&
36248         !HAVE_DECL_GETENV.
36249         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
36250         (__strndup): Revert to K&R-style function dfns, the glibc style.
36251         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
36252         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
36253         Include strnlen.h first, to get prototype properly.
36254         (strnlen): Renamed from __strnlen.
36255         Remove weak alias.
36256
36257 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36258
36259         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
36260
36261 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36262
36263         * config/srclist.txt: Adjust to reflect glibc reorganization.
36264         This affects only comments.
36265
36266 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36267
36268          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
36269          Reported by Bruce Korb <bkorb@gnu.org>.
36270
36271 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36272
36273         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
36274         to pacify gcc -Wswitch-default.
36275
36276 2006-01-22  Bruno Haible  <bruno@clisp.org>
36277
36278         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
36279         temporary buffer for sprintf, take into account the precision also
36280         for 'd', 'i', 'u', 'o', 'x', 'X'.
36281
36282 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36283
36284         * modules/argp-tests: New module
36285         * tests/test-argp.c: New file
36286         * tests/test-argp-2.sh: New file
36287
36288 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36289
36290         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
36291         (__argp_base_name): Removed
36292         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
36293         typo.
36294         (__argp_base_name): Provide macro definition or extern declaration
36295         depending on the configuration
36296
36297 2006-01-20  Simon Josefsson  <jas@extundo.com>
36298
36299         * modules/inet_ntop (Depends-on): Depend on sys_socket.
36300
36301 2006-01-20  Simon Josefsson  <jas@extundo.com>
36302
36303         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
36304
36305 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
36306
36307         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
36308         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
36309         Suggested by Bruno Haible.
36310
36311 2006-01-20  Karl Berry  <karl@gnu.org>
36312
36313         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
36314         until changes propagate, I guess.
36315
36316 2006-01-19  Simon Josefsson  <jas@extundo.com>
36317
36318         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
36319
36320 2006-01-19  Simon Josefsson  <jas@extundo.com>
36321
36322         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
36323
36324 2006-01-19  Simon Josefsson  <jas@extundo.com>
36325
36326         * gnulib-tool: Set check_PROGRAMS.
36327
36328         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36329         modules/des-tests, modules/gc-arcfour-tests,
36330         modules/gc-arctwo-tests, modules/gc-des-tests,
36331         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36332         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36333         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36334         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36335         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
36336         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
36337         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
36338         test_*_SOURCES.
36339
36340 2006-01-18  Simon Josefsson  <jas@extundo.com>
36341
36342         * modules/socklen (Depends-on): Depend on sys_socket.
36343
36344 2006-01-18  Simon Josefsson  <jas@extundo.com>
36345
36346         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36347         modules/des-tests, modules/gc-arcfour-tests,
36348         modules/gc-arctwo-tests, modules/gc-des-tests,
36349         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36350         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36351         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36352         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36353         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
36354         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
36355         $(EXEEXT) to automake TESTS variable, for mingw32.
36356
36357 2006-01-17  Simon Josefsson  <jas@extundo.com>
36358
36359         * modules/socklen (Include): Need sys/socket.h.
36360
36361 2006-01-17  Bruno Haible  <bruno@clisp.org>
36362
36363         * modules/ssize_t (Include): Add <sys/types.h>.
36364
36365 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36366
36367         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
36368         it's not portable and it doesn't work with cross-compiles.
36369         Problem reported by Bruno Haible.  Fix missing-$ typo in
36370         'test "gl_cv_ignore_unused_libraries" ...' that prevented
36371         -zignore from being used with Sun's C compiler.
36372
36373 2006-01-12  Simon Josefsson  <jas@extundo.com>
36374
36375         * lib/base64.c: Fix warning, reported by Bruno Haible
36376         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
36377
36378 2006-01-12  Bruno Haible  <bruno@clisp.org>
36379
36380         * modules/ldd: New file.
36381         * build-aux/ldd.sh.in: New file.
36382         * MODULES.html.sh (Support for building libraries and executables): Add
36383         ldd.
36384
36385 2006-01-12  Bruno Haible  <bruno@clisp.org>
36386
36387         * m4/ldd.m4: New file.
36388
36389 2006-01-12  Bruno Haible  <bruno@clisp.org>
36390
36391         * gnulib-tool (func_import, func_create_testdir): Don't go into an
36392         endless loop while replacing $auxdir with build-aux.
36393
36394 2006-01-11  Simon Josefsson  <jas@extundo.com>
36395
36396         * lib/stdint_.h (SIZE_MAX): Add missing (.
36397
36398 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
36399
36400         Sync from coreutils.
36401         * lib/md5.c: Fix commentary typos.
36402         (alignof, UNALIGNED_P): No need for a GCC-specific version.
36403         * lib/md5.h (__attribute__): Remove; unused.
36404         * lib/sha1.c: Fix commentary to match md5 better.
36405         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
36406         so that we don't need to worry about alignment.  All uses changed.
36407         This merges the 2005-10-28 md5 change into sha1.
36408
36409 2006-01-11  Jim Meyering  <jim@meyering.net>
36410
36411         Sync from coreutils.
36412         * lib/md5.c (OP): Fix spacing.
36413
36414 2006-01-11  Bruno Haible  <bruno@clisp.org>
36415
36416         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36417         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
36418         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
36419
36420 2006-01-11  Bruno Haible  <bruno@clisp.org>
36421
36422         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36423         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
36424         the "early" section as well.
36425
36426 2006-01-11  Bruno Haible  <bruno@clisp.org>
36427
36428         Avoid "ar: no archive members specified" error on MacOS X.
36429         * gnulib-tool (func_modules_add_dummy): New function.
36430         (func_import, func_create_testdir): Invoke it.
36431
36432 2006-01-11  Bruno Haible  <bruno@clisp.org>
36433
36434         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
36435         with $auxdir in AC_CONFIG_FILES statements.
36436
36437 2006-01-11  Bruno Haible  <bruno@clisp.org>
36438
36439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36440         Initialize also noinst_HEADERS to empty.
36441
36442 2006-01-11  Bruno Haible  <bruno@clisp.org>
36443
36444         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
36445         variables.
36446         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
36447         autoreconf.
36448
36449 2006-01-11  Bruno Haible  <bruno@clisp.org>
36450
36451         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
36452         overridable by the user.
36453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36454
36455 2006-01-10  Simon Josefsson  <jas@extundo.com>
36456
36457         * modules/sys_socket: New file.
36458
36459 2006-01-10  Simon Josefsson  <jas@extundo.com>
36460
36461         * m4/sys_socket_h.m4: New file.
36462
36463 2006-01-10  Simon Josefsson  <jas@extundo.com>
36464
36465         * lib/socket_.h: New file.
36466
36467 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36468
36469         * modules/readutmp (Maintainer): Add myself.
36470
36471 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36472
36473         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
36474         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
36475         People who are still concerned with buggy memcmp implementations
36476         can invoke gl_FUNC_MEMCMP themselves.
36477
36478 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36479
36480         * lib/regex_internal.h (BITSET_WORD_BITS):
36481         Work around a bug in 64-bit PGC (before version 6.1-2), where the
36482         preprocessor mishandles large unsigned values as if they were signed.
36483         Problem reported by Claudio Fontana in
36484         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
36485
36486 2006-01-10  Jim Meyering  <jim@meyering.net>
36487
36488         Avoid the double-free (first in fts_read, second in fts_close) that
36489         would occur when an `active' directory is made inaccessible (e.g.,
36490         via chmod a-x) during a traversal.
36491         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36492         before returning.  Reproduce this failure by
36493         mkdir -p a/b; cd a; chmod a-x . b
36494         Reported by Stavros Passas.
36495
36496         Sync from coreutils.
36497         * lib/sha1.c: Tweak grammar in a comment.
36498
36499 2006-01-10  Jim Meyering  <jim@meyering.net>
36500
36501         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
36502         Patch by Joerg Sonnenberger.
36503
36504 2006-01-10  Bruno Haible  <bruno@clisp.org>
36505
36506         * modules/readutmp: Depend on module free.
36507         * modules/strtok_r: Depend on module restrict.
36508
36509 2006-01-10  Bruno Haible  <bruno@clisp.org>
36510
36511         * modules/gettext (configure.ac): Add an invocation of
36512         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
36513
36514 2006-01-10  Bruno Haible  <bruno@clisp.org>
36515
36516         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
36517         Reported by Werner Lemberg <wl@gnu.org>.
36518
36519 2006-01-10  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/localcharset.c: Update from GNU gettext.
36522
36523 2006-01-10  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/argp.h (__const): Remove macro. Use const instead.
36526         * lib/argp-fmtstream.h (__const): Likewise.
36527         * lib/glob_.h (__const): Remove macro.
36528         * lib/glob-libc.h: Use const instead of __const.
36529
36530 2006-01-10  Bruno Haible  <bruno@clisp.org>
36531
36532         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
36533         variable.
36534         Needed to avoid an automake error regarding the 'gettext' module.
36535
36536 2006-01-09  Simon Josefsson  <jas@extundo.com>
36537
36538         * modules/inet_ntop (Depends-on): Add restrict.
36539
36540 2006-01-09  Simon Josefsson  <jas@extundo.com>
36541
36542         * modules/gc-rijndael-tests (License): Put under LGPL.
36543
36544         * modules/gc-des-tests (License): Likewise.
36545
36546         * modules/gc-arcfour-tests (License): Likewise.
36547
36548         * modules/gc-arctwo-tests (License): Likewise.
36549
36550         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
36551
36552         * modules/gc-hmac-sha1-tests (Files): Likewise.
36553
36554         * modules/gc-hmac-md5-tests (License): Likewise.
36555
36556         * modules/gc-sha1-tests (License): Likewise.
36557
36558         * modules/gc-md5-tests (License): Likewise.
36559
36560         * modules/gc-md4-tests (License): Likewise.
36561
36562         * modules/gc-md2-tests (License): Likewise.
36563
36564         * modules/gc-tests (License): Likewise.
36565
36566         * modules/des-tests (License): Likewise.
36567
36568         * modules/md4-tests (License): Likewise.
36569
36570         * modules/md2-tests (License): Likewise.
36571
36572 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36573
36574         Sync from coreutils:
36575
36576         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
36577         * modules/lib-ignore: New file.
36578         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
36579         chdir-safer.m4, lchmod.m4.
36580         * modules/openat: Add mkdirat.c, openat-priv.h.
36581
36582 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36583
36584         Sync from coreutils.
36585         * m4/lib-ignore.m4: New file.
36586         * m4/lchmod.m4: New file.
36587
36588 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36589
36590         Sync from coreutils.
36591         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
36592         for write access: POSIX says that must fail.
36593         * lib/fts.c (diropen): Likewise.
36594         * lib/save-cwd.c (save_cwd): Likewise.
36595         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
36596         well, for minor improvements on hosts that lack O_DIRECTORY.
36597         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
36598         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
36599         Fall back on chown if open failed with EACCES.
36600
36601         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
36602         Report an error at compile-time if only a 1-second nominal clock
36603         resolution is found.
36604
36605         * lib/lchmod.h: New file.
36606         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
36607         (make_dir_parents): Use lchown rather than chown, and
36608         lchmod rather than chmod.
36609
36610         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
36611         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
36612         "proc" reported by n0dalus.
36613
36614         * lib/mountlist.c: Include <limits.h>.
36615         (dev_from_mount_options)
36616         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
36617         New function.  It no longer assumes "dev=" has the System V meaning
36618         on Linux (since it doesn't).  It also parses "dev=" more carefully.
36619         (read_file_system_list)
36620         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
36621         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
36622         dev= in that case.
36623
36624         * lib/posixtm.h (PDS_PRE_2000): New macro.
36625         * lib/posixtm.c (year): Arg is now syntax_bits rather than
36626         allow_century.  All usages changed.  Reject dates outside the range
36627         1969-1999 if PDS_PRE_2000 is used.
36628
36629 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36630
36631         Sync from coreutils.
36632         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
36633         (Time of day items): Mention the possibility of leap seconds.
36634         Problem reported by Dr. David Alan Gilbert.
36635
36636 2006-01-09  Jim Meyering  <jim@meyering.net>
36637
36638         Sync from coreutils.
36639
36640         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
36641
36642         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
36643
36644         * lib/modechange.c (mode_compile): Reject an invalid mode string
36645         that starts with an octal digit.  From Andreas Gruenbacher.
36646
36647         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
36648         and dup to open_safer and dup_safer, respectively.
36649         (openat_permissive): Fix typo in comment.
36650
36651         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
36652         "gettext.h"; either no longer needed or are guaranteed by openat.h.
36653         (_): Remove; no longer needed.
36654         (openat): Renamed from rpl_openat; no need for rpl_openat
36655         since openat.h renames openat for us.
36656         Replace most of the body with a call to openat_permissive,
36657         to avoid duplicate code.
36658         Port to (probably hypothetical) environments were mode_t is
36659         wider than int.
36660         (openat_permissive): Require mode arg, so that we can check
36661         types better.  Put it just after flags.  Change cwd failure
36662         indicator from pointer-to-bool to pointer-to-errno-value.
36663         All callers changed.
36664         Invoke openat_save_fail and/or openat_restore_fail if
36665         cwd_errno is null, so that openat can call us.
36666         (openat_permissive, fdopendir, fstatat, unlinkat):
36667         Simplify errno handling to avoid some duplicate code,
36668         as it's OK to set errno on success.
36669         * lib/openat.h: Revamp code so that function macros depend on
36670         __OPENAT_PREFIX only, not also on AT_FDCWD.
36671         (openat_ro): Remove.  Caller changed to use openat_permissive.
36672         (openat_permissive): Now a macro, if not a function.
36673         (openat_restore_fail, openat_save_fail): Now always functions,
36674         since mkdirat needs them even if __OPENAT_PREFIX is defined.
36675
36676         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
36677         and openat.c.
36678         * lib/mkdirat.c: Include openat-priv.h.
36679         Remove definitions of macros defined therein.
36680         * lib/openat.c: Likewise.
36681
36682         * lib/mkdirat.c (mkdirat): New file and function.
36683         * lib/openat.h (mkdirat): Declare.
36684
36685         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
36686
36687         * lib/openat.h (openat_permissive): Declare.
36688         (openat_ro): Define.
36689
36690         * lib/openat.c (EXPECTED_ERRNO): New macro.
36691         (openat_permissive): New function -- used in remove.c rewrite.
36692         (all functions): Set errno just before returning, only if there
36693         was an actual failure.
36694         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
36695
36696         Emulate openat-family functions using Linux's procfs, if possible.
36697         Idea and some code based on Ulrich Drepper's glibc changes.
36698
36699         * lib/openat.c: (BUILD_PROC_NAME): New macro.
36700         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
36701         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
36702         before falling back on save_cwd and restore_cwd.
36703         (fdopendir, fstatat, unlinkat): Likewise.
36704
36705         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
36706         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
36707
36708         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
36709         as second argument to va_arg.  Otherwise, some versions of gcc
36710         warn that `if this code is reached, the program will abort'.
36711
36712 2006-01-09  Jim Meyering  <jim@meyering.net>
36713
36714         Sync from coreutils.
36715         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
36716         Require openat-priv.h.
36717
36718 2006-01-09  Bruno Haible  <bruno@clisp.org>
36719
36720         * modules/strnlen (Include): Use strnlen.h.
36721
36722 2006-01-09  Bruno Haible  <bruno@clisp.org>
36723
36724         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
36725
36726 2006-01-09  Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/sysexit_.h (EX_OK): New macro.
36729         Suggested by Martin Lambers <marlam@marlam.de>.
36730
36731 2006-01-09  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
36734         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
36735
36736 2006-01-09  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
36739         numbers.
36740
36741 2006-01-09  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
36744         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
36745         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
36746         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
36747
36748 2006-01-09  Bruno Haible  <bruno@clisp.org>
36749
36750         * build-aux/javacomp.sh.in: New file, moved from lib/.
36751         * modules/javacomp-script (Files): Update.
36752         (configure.ac): Add AC_CONFIG_FILES invocation.
36753         (EXTRA_DIST): Remove variable.
36754
36755         * build-aux/javaexec.sh.in: New file, moved from lib/.
36756         * modules/javaexec (Files): Update.
36757         (configure.ac): Add AC_CONFIG_FILES invocation.
36758         (EXTRA_DIST): Remove javaexec.sh.in.
36759
36760         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
36761         * modules/csharpcomp-script (Files): Update.
36762         (configure.ac): Add AC_CONFIG_FILES invocation.
36763         (EXTRA_DIST): Remove variable.
36764
36765         * build-aux/csharpexec.sh.in: New file, moved from lib/.
36766         * modules/csharpexec (Files): Update.
36767         (configure.ac): Add AC_CONFIG_FILES invocation.
36768         (EXTRA_DIST): Remove csharpexec.sh.in.
36769
36770 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36771
36772         Sync from coreutils.
36773
36774         Add POSIX ACL support
36775         * lib/acl.h (copy_acl, set_acl): Add declarations.
36776         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
36777         systems other than Linux.
36778         (chmod_or_fchmod): New function: use fchmod when possible,
36779         and chmod otherwise.
36780         (file_has_acl): Add a POSIX ACL implementation, with a
36781         Linux-specific subcase.
36782         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
36783         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
36784         acls are unsupported.
36785         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
36786         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
36787         are unsupported.
36788
36789 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36790
36791         Sync from coreutils.
36792         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
36793
36794 2006-01-07  Bruno Haible  <bruno@clisp.org>
36795
36796         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
36797         gl_EARLY.
36798
36799 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36800
36801         * lib/strftime.c (tzname): Don't declare if it is already #defined.
36802         Problem reported for Mingw by Mark Junker.
36803
36804 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36805
36806         * README: Gnulib normally doesn't generate a tarball.
36807
36808 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36809
36810         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
36811         long int, not int, for nanosecond counts, so that people who are
36812         used to POSIX struct timespec won't be surprised.  Reported by Jim
36813         Meyering.
36814
36815 2005-12-28  Bruno Haible  <bruno@clisp.org>
36816
36817         * build-aux/config.rpath: Update from GNU gettext.
36818
36819 2005-12-16  Jim Meyering  <jim@meyering.net>
36820
36821         * modules/fprintftime: New module.
36822         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
36823
36824 2005-12-16  Jim Meyering  <jim@meyering.net>
36825
36826         * m4/fprintftime.m4: New file.
36827
36828 2005-12-16  Jim Meyering  <jim@meyering.net>
36829
36830         * lib/fprintftime.c, lib/fprintftime.h: New files.
36831
36832 2005-12-15  Simon Josefsson  <jas@extundo.com>
36833
36834         * modules/socklen (configure.ac): Fix M4 macro name, to align with
36835         new m4/socklen.m4.
36836
36837 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36838
36839         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
36840         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
36841
36842 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36843
36844         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
36845         * lib/argp-help.c (fill_in_uparams): Check if the constructed
36846         struct uparams is valid. Fall back to the default values if it is
36847         not.
36848
36849 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36850
36851         * modules/argp (Files): Add argp-pin.c
36852         (Depends-on): dirname
36853         (lib_SOURCES): Add argp-pin.c
36854
36855 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36856
36857         * m4/argp.m4:  Check if program_invocation_name and
36858         program_invocation_short_name are declared and define appropriate
36859         macros if they are not.
36860
36861 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36862
36863         * lib/argp-help.c (__argp_base_name): New function
36864         (__argp_short_program_name): Rewrite using __argp_base_name
36865         * lib/argp-namefrob.h: Define program_invocation_name and
36866         program_invocation_short_name if requested
36867         (__argp_base_name): Add prototype
36868         * lib/argp-parse.c (argp_def): Use gettext wrappers
36869         (argp_default_parser): Use __argp_base_name
36870         * lib/argp-pin.c: New file. Defines program_invocation_name and
36871         program_invocation_short_name on systems that lack them.
36872
36873 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36874
36875         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
36876         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36877         porting problem reported by Georg Schwarz in
36878         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36879
36880 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36881
36882         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
36883         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
36884         porting problem reported by Georg Schwarz in
36885         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
36886
36887 2005-12-05  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
36890         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
36891         Reported by Mark Junker <mjscod@gmx.de>.
36892
36893 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
36894
36895         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
36896         Use implementation from Albert Chin, with some
36897         comments/corrections by Stepan Kasal and myself.
36898
36899 2005-12-02  Bruno Haible  <bruno@clisp.org>
36900
36901         * gnulib-tool (func_import): Accept GPLed build tool modules when
36902         --lgpl is given.
36903         * modules/csharpcomp-script: New file.
36904         * modules/csharpcomp: Depend on it.
36905         * modules/javacomp-script: New file.
36906         * modules/javacomp: Depend on it.
36907         Suggested by Simon Josefsson.
36908
36909 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
36910
36911         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
36912         statement, to work around an HP-UX 10.20 compiler bug reported by
36913         Peter O'Gorman.
36914
36915 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36916
36917         * modules/savedir (Depends-on): Add openat.
36918
36919 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36920
36921         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
36922         (uintmax_t) [defined uintmax_t]: Do not declare.
36923         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
36924         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
36925         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
36926         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
36927         sake of portability to weird hosts that C allows (though we don't
36928         know of any practical examples).
36929
36930         * lib/savedir.h (fdsavedir): New decl.
36931         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
36932         contains most of the former guts of savedir.
36933         (savedir): Use savedirstream.
36934         Include "openat.h".
36935
36936 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
36937
36938         * modules/obstack (Files): Add m4/ulonglong.m4.
36939         Problem reported by Davide Angelocola.
36940
36941 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36942
36943         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
36944         coreutils no longer futzes with rounding modes.
36945
36946 2005-11-14  Jim Meyering  <jim@meyering.net>
36947
36948         * lib/mkstemp-safer.c: Include <config.h>, required for possible
36949         replacement of mkstemp.
36950
36951 2005-11-10  Simon Josefsson  <jas@extundo.com>
36952
36953         * lib/readline.c: Remove EOL.
36954
36955 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36956
36957         * modules/gethrxtime (Depends-on): Add gettime.
36958
36959 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36960
36961         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
36962         or gettimeofday; no longer needed.
36963
36964 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
36965
36966         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
36967         time business.
36968         (gethrxtime) [! (HAVE_NANOUPTIME
36969         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
36970         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
36971         our own approximation.
36972
36973 2005-11-08  Eric Blake  <ebb9@byu.net>
36974
36975         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36976
36977 2005-11-08  Eric Blake  <ebb9@byu.net>
36978
36979         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
36980
36981 2005-11-04  Bruno Haible  <bruno@clisp.org>
36982
36983         * gnulib-tool: Implement --update mode.
36984
36985 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36986
36987         Fix porting problem reported by Theodoros V. Kalamatianos.
36988         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
36989         Don't assume that futimes failing means we must fail.
36990
36991 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36992
36993         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
36994         variables to suggest the intended function of the PATH_MAX check.
36995
36996 2005-10-30  Kean Johnston  <jkj@sco.com>
36997
36998         Trivial changes to support SCO systems.
36999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
37000         as PATH_MAX.
37001         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
37002         where __ptr is null when no I/O is pending.
37003
37004 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
37005
37006         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
37007         leave errno alone.  Problem reported by Dmitry V. Levin.
37008
37009 2005-10-28  Simon Josefsson  <jas@extundo.com>
37010
37011         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
37012         Test more.
37013
37014         * tests/test-gc-md2.c, tests/test-md2.c: New files.
37015
37016         * modules/md2, modules/md2-tests: New files.
37017
37018 2005-10-28  Simon Josefsson  <jas@extundo.com>
37019
37020         * m4/inet_ntop.m4: More tests.
37021
37022         * m4/gc-md2.m4, md2.m4: New file.
37023
37024 2005-10-28  Simon Josefsson  <jas@extundo.com>
37025
37026         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
37027         "restrict" keywords, as per POSIX.  Protect the function
37028         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
37029         Don't use K&R prototypes.  Check the sprintf return values.
37030         Re-define EAFNOSUPPORT if not present.  Indent.
37031
37032         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
37033         suggested by Bruno Haible <bruno@clisp.org>.
37034
37035         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
37036
37037         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
37038
37039         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
37040         libgcrypt).
37041
37042         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
37043
37044         * lib/md2.h, lib/md2.c: New files.
37045
37046 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
37047
37048         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
37049         errno alone.  Problem reported by Frederic Jolliton.
37050
37051 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37052
37053         * modules/verify (License): Change from GPL to LGPL.  This is a
37054         tiny module and there are apparently near-equivalents that are
37055         under the BSD license.
37056
37057 2005-10-24  Simon Josefsson  <jas@extundo.com>
37058
37059         * modules/sha1: Relicense to LGPL.
37060
37061 2005-10-24  Simon Josefsson  <jas@extundo.com>
37062
37063         * lib/md4.h: Shrink buffer size, now that we changed the type.
37064
37065 2005-10-23  Simon Josefsson  <jas@extundo.com>
37066
37067         * gnulib-tool (func_import): Fix --tests-base.
37068
37069 2005-10-22  Simon Josefsson  <jas@extundo.com>
37070
37071         * modules/arcfour (Depends-on): Need stdint.
37072
37073 2005-10-22  Simon Josefsson  <jas@extundo.com>
37074
37075         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
37076         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
37077
37078 2005-10-22  Simon Josefsson  <jas@extundo.com>
37079
37080         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
37081         suggested by Bruno Haible <bruno@clisp.org>.
37082
37083 2005-10-22  Simon Josefsson  <jas@extundo.com>
37084
37085         * lib/crc.h: Include stddef.h, for size_t.
37086
37087 2005-10-22  Simon Josefsson  <jas@extundo.com>
37088
37089         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
37090         arcfour_context struct (simplify test vector testing in GNU
37091         Shishi).
37092
37093 2005-10-21  Simon Josefsson  <jas@extundo.com>
37094
37095         * modules/des, modules/des-tests: New files.
37096
37097         * modules/gc-des, modules/gc-des-tests: New files.
37098
37099         * tests/test-des.c, tests/test-gc-des.c: New file.
37100
37101 2005-10-21  Simon Josefsson  <jas@extundo.com>
37102
37103         * modules/arctwo, modules/arctwo-tests: New files.
37104
37105         * tests/test-arctwo.c: New file.
37106
37107         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
37108
37109         * tests/test-gc-arctwo.c: New file.
37110
37111 2005-10-21  Simon Josefsson  <jas@extundo.com>
37112
37113         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
37114         Bruno Haible <bruno@clisp.org>.
37115
37116         * m4/gc-des.m4: New file.
37117
37118 2005-10-21  Simon Josefsson  <jas@extundo.com>
37119
37120         * m4/arctwo.m4: New file.
37121
37122         * m4/gc-arctwo.m4: New file.
37123
37124 2005-10-21  Simon Josefsson  <jas@extundo.com>
37125
37126         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
37127         block.
37128
37129 2005-10-21  Simon Josefsson  <jas@extundo.com>
37130
37131         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
37132         <bruno@clisp.org>.
37133
37134         * lib/hmac-sha1.c (hmac_sha1): Likewise.
37135
37136         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
37137         Bruno Haible <bruno@clisp.org>.
37138
37139         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
37140         <bruno@clisp.org>.
37141
37142 2005-10-21  Simon Josefsson  <jas@extundo.com>
37143
37144         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
37145
37146 2005-10-21  Simon Josefsson  <jas@extundo.com>
37147
37148         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
37149
37150 2005-10-21  Simon Josefsson  <jas@extundo.com>
37151
37152         * lib/des.h, lib/des.c: New files.
37153
37154         * lib/gc-gnulib.c: Support DES.c
37155
37156 2005-10-21  Simon Josefsson  <jas@extundo.com>
37157
37158         * lib/arctwo.h, lib/arctwo.c: New files.
37159
37160         * lib/gc-gnulib.c: Support ARCTWO.
37161
37162 2005-10-21  Simon Josefsson  <jas@extundo.com>
37163
37164         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
37165         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37166
37167 2005-10-21  Simon Josefsson  <jas@extundo.com>
37168
37169         * gnulib-tool (func_import, func_create_testdir): Define automake
37170         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
37171         Makefile.am snippet),
37172         suggested by Bruno Haible <bruno@clisp.org>.
37173
37174         * modules/gc (Makefile.am): Use it.
37175
37176 2005-10-21  Bruno Haible  <bruno@clisp.org>
37177
37178         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
37179         patch.
37180
37181 2005-10-19  Simon Josefsson  <jas@extundo.com>
37182
37183         * tests/test-gc-rijndael.c: New file.
37184
37185         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
37186
37187 2005-10-19  Simon Josefsson  <jas@extundo.com>
37188
37189         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
37190         interface too.
37191
37192 2005-10-19  Simon Josefsson  <jas@extundo.com>
37193
37194         * tests/test-gc-arcfour.c: New file.
37195
37196         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
37197
37198 2005-10-19  Simon Josefsson  <jas@extundo.com>
37199
37200         * modules/gc-md4, modules/gc-md4-tests: New file.
37201
37202         * tests/test-gc-md4.c: New file.
37203
37204 2005-10-19  Simon Josefsson  <jas@extundo.com>
37205
37206         * m4/gc-md4.m4: New file.
37207
37208 2005-10-19  Simon Josefsson  <jas@extundo.com>
37209
37210         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
37211         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
37212         <kasal@ucw.cz>.
37213
37214 2005-10-19  Simon Josefsson  <jas@extundo.com>
37215
37216         * m4/gc-arcfour.m4: New file.
37217
37218         * m4/gc-rijndael.m4: New file.
37219
37220 2005-10-19  Simon Josefsson  <jas@extundo.com>
37221
37222         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
37223
37224 2005-10-19  Simon Josefsson  <jas@extundo.com>
37225
37226         * lib/gc-gnulib.c: Support ARCFOUR.
37227
37228 2005-10-19  Simon Josefsson  <jas@extundo.com>
37229
37230         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
37231         support.
37232
37233         * lib/gc.h: Add ECB enum type.
37234
37235         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
37236
37237 2005-10-18  Simon Josefsson  <jas@extundo.com>
37238
37239         * tests/test-md5.c: New file.
37240
37241         * modules/md5-tests: New file.
37242
37243 2005-10-18  Simon Josefsson  <jas@extundo.com>
37244
37245         * tests/test-md4.c: New file.
37246
37247         * modules/md4, modules/md4-tests: New files.
37248
37249 2005-10-18  Simon Josefsson  <jas@extundo.com>
37250
37251         * m4/md4.m4: New file.
37252
37253 2005-10-18  Simon Josefsson  <jas@extundo.com>
37254
37255         * lib/md4.h, lib/md4.c: New files, based on md5.?.
37256
37257 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
37258
37259         * gnulib-tool (func_create_testdir): Omit the second check whether
37260         BUILT_SOURCES in nonempty.
37261
37262 2005-10-17  Simon Josefsson  <jas@extundo.com>
37263
37264         * tests/test-rijndael.c: New file.
37265
37266 2005-10-17  Simon Josefsson  <jas@extundo.com>
37267
37268         * modules/sha1: Depend on stdint instead of md5.
37269
37270         * modules/md5: Depend on stdint, remove uint32_t.
37271
37272 2005-10-17  Simon Josefsson  <jas@extundo.com>
37273
37274         * modules/gc-sha1-tests: New file.
37275
37276         * tests/test-gc-sha1.c: New file.
37277
37278 2005-10-17  Simon Josefsson  <jas@extundo.com>
37279
37280         * m4/md5.m4: Remove call to uint32_t.m4.
37281
37282 2005-10-17  Simon Josefsson  <jas@extundo.com>
37283
37284         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
37285
37286         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
37287         md5.h.
37288
37289         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
37290
37291         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
37292
37293 2005-10-17  Simon Josefsson  <jas@extundo.com>
37294
37295         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
37296
37297 2005-10-17  Simon Josefsson  <jas@extundo.com>
37298
37299         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
37300
37301 2005-10-17  Simon Josefsson  <jas@extundo.com>
37302
37303         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
37304
37305         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
37306
37307 2005-10-17  Bruno Haible  <bruno@clisp.org>
37308
37309         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
37310         that it can also be used in a test.
37311
37312 2005-10-16  Bruno Haible  <bruno@clisp.org>
37313
37314         * gnulib-tool (func_emit_tests_Makefile_am): Also define
37315         TESTS_ENVIRONMENT, so that individual tests can augment it.
37316
37317         * gnulib-tool (func_create_testdir): Use an intermediate target for
37318         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
37319         macros, like $(ALLOCA_H), which cannot be passed through the command
37320         line.
37321
37322 2005-10-15  Simon Josefsson  <jas@extundo.com>
37323
37324         * modules/rijndael-tests: New file.
37325
37326         * modules/rijndael: New file.
37327
37328 2005-10-15  Simon Josefsson  <jas@extundo.com>
37329
37330         * m4/rijndael.m4: New file.
37331
37332 2005-10-15  Simon Josefsson  <jas@extundo.com>
37333
37334         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
37335
37336         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
37337
37338 2005-10-14  Simon Josefsson  <jas@extundo.com>
37339
37340         * tests/test-arcfour.c: New file.
37341
37342         * modules/arcfour, modules/arcfour-tests: New files.
37343
37344 2005-10-14  Simon Josefsson  <jas@extundo.com>
37345
37346         * m4/arcfour.m4: New file.
37347
37348 2005-10-14  Simon Josefsson  <jas@extundo.com>
37349
37350         * lib/arcfour.h, lib/arcfour.c: New files.
37351
37352 2005-10-14  Roland McGrath  <roland@redhat.com>
37353
37354         Import from libc.  [BZ #1331]
37355         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
37356         macro argument.
37357         Reported by Matej Vela <vela@debian.org>.
37358
37359 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37360
37361         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
37362         include <wchar.h>; no longer needed.
37363
37364 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37365
37366         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
37367
37368 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
37369         and  Ulrich Drepper  <drepper@redhat.com>
37370
37371         Import from libc.
37372         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
37373         instead of inline stream orientation test and two separate
37374         function calls.  Pay no attention to USE_IN_LIBIO.
37375
37376 2005-10-13  Simon Josefsson  <jas@extundo.com>
37377
37378         * modules/gc-hmac-md5-tests: New file.
37379
37380         * tests/test-gc-hmac-sha1.c: New file.
37381
37382         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
37383
37384         * modules/gc-hmac-md5-tests: New file.
37385
37386         * tests/test-gc-md5.c: New file.
37387
37388         * modules/gc-md5-tests: New file.
37389
37390 2005-10-13  Simon Josefsson  <jas@extundo.com>
37391
37392         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
37393         Move memory allocation outside of loop.
37394
37395 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
37396
37397         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
37398         intermediate directory is in a read-only file system.  Problem
37399         reported by Eric Blake.
37400
37401 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
37402
37403         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
37404
37405 2005-10-12  Simon Josefsson  <jas@extundo.com>
37406
37407         * tests/test-hmac-sha1.c: New file.
37408
37409         * modules/hmac-sha1-tests: New file.
37410
37411         * modules/hmac-sha1: New file.
37412
37413 2005-10-12  Simon Josefsson  <jas@extundo.com>
37414
37415         * modules/gc-sha1: New file.
37416
37417 2005-10-12  Simon Josefsson  <jas@extundo.com>
37418
37419         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
37420
37421         * tests/test-gc-pbkdf2-sha1.c: New file.
37422
37423 2005-10-12  Simon Josefsson  <jas@extundo.com>
37424
37425         * modules/gc-md5, modules/gc-hmac-md5: New files.
37426
37427         * modules/gc (Files): Remove md5, memxor and hmac files.
37428
37429 2005-10-12  Simon Josefsson  <jas@extundo.com>
37430
37431         * m4/gc-pbkdf2-sha1.m4: New file.
37432
37433         * m4/gc-hmac-sha1.m4: New file.
37434
37435         * m4/gc-sha1: New file.
37436
37437         * m4/hmac-sha1.m4: New file.
37438
37439 2005-10-12  Simon Josefsson  <jas@extundo.com>
37440
37441         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
37442
37443         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
37444
37445 2005-10-12  Simon Josefsson  <jas@extundo.com>
37446
37447         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
37448         suggested by Bruno Haible <bruno@clisp.org>.
37449
37450 2005-10-12  Simon Josefsson  <jas@extundo.com>
37451
37452         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
37453
37454 2005-10-12  Simon Josefsson  <jas@extundo.com>
37455
37456         * lib/gc-pbkdf2-sha1.c: New file.
37457
37458         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
37459
37460 2005-10-12  Simon Josefsson  <jas@extundo.com>
37461
37462         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
37463
37464         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
37465
37466 2005-10-12  Simon Josefsson  <jas@extundo.com>
37467
37468         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
37469         GC_USE_HMAC_MD5, respectively.
37470
37471         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
37472         (gc_md5): Fix typo.
37473
37474         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
37475
37476         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
37477
37478         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
37479
37480 2005-10-12  Bruno Haible  <bruno@clisp.org>
37481
37482         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
37483         Reported by Stepan Kasal <kasal@ucw.cz>.
37484
37485 2005-10-11  Simon Josefsson  <jas@extundo.com>
37486
37487         * tests/test-crc.c: New file.
37488
37489         * modules/crc, modules/crc-tests: New files.
37490
37491 2005-10-11  Simon Josefsson  <jas@extundo.com>
37492
37493         * m4/crc.m4: New file.
37494
37495 2005-10-11  Simon Josefsson  <jas@extundo.com>
37496
37497         * lib/gc.h: Add gc_hash and gc_hash_buffer.
37498
37499         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
37500
37501         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
37502
37503 2005-10-11  Simon Josefsson  <jas@extundo.com>
37504
37505         * lib/crc.h, lib/crc.c: New files.
37506
37507         * lib/gc.h (gc_hash_buffer): Add doc.
37508
37509 2005-10-11  Bruno Haible  <bruno@clisp.org>
37510
37511         * modules/c-strcasestr: New file.
37512         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
37513
37514 2005-10-11  Bruno Haible  <bruno@clisp.org>
37515
37516         * modules/c-strcase: New file.
37517         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
37518
37519 2005-10-11  Bruno Haible  <bruno@clisp.org>
37520
37521         * lib/strcasecmp.c: Include limits.h.
37522         (strcasecmp): Avoid integer overflow on exotic platforms.
37523         * lib/strncasecmp.c: Include limits.h.
37524         (strncasecmp): Avoid integer overflow on exotic platforms.
37525         Reported by Paul Eggert.
37526
37527 2005-10-11  Bruno Haible  <bruno@clisp.org>
37528
37529         * lib/c-strcasestr.h: New file, from GNU gettext.
37530         * lib/c-strcasestr.c: New file, from GNU gettext.
37531
37532 2005-10-11  Bruno Haible  <bruno@clisp.org>
37533
37534         * lib/c-strcase.h: New file, from GNU gettext.
37535         * lib/c-strcasecmp.c: New file, from GNU gettext.
37536         * lib/c-strncasecmp.c: New file, from GNU gettext.
37537
37538 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
37539
37540         * modules/mempcpy (License): GPL -> LGPL.
37541         * modules/strchrnul (License): Likewise.
37542         * modules/sysexits (License): Likewise.
37543
37544 2005-10-08  Simon Josefsson  <jas@extundo.com>
37545
37546         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
37547
37548 2005-10-07  Simon Josefsson  <jas@extundo.com>
37549
37550         * m4/memxor.m4: Remove gl_C_RESTRICT call.
37551
37552 2005-10-06  Simon Josefsson  <jas@extundo.com>
37553
37554         * tests/test-hmac-md5.c: New file.
37555
37556         * modules/hmac-md5-tests: New file.
37557
37558         * modules/hmac-md5: New file.
37559
37560 2005-10-06  Simon Josefsson  <jas@extundo.com>
37561
37562         * m4/hmac-md5.m4: New file.
37563
37564         * m4/memxor.m4: Require gl_C_RESTRICT.
37565
37566 2005-10-06  Simon Josefsson  <jas@extundo.com>
37567
37568         * lib/memxor.c (memxor): Avoid casts and warnings.
37569
37570 2005-10-06  Simon Josefsson  <jas@extundo.com>
37571
37572         * lib/hmac-md5.c: New file.
37573
37574         * lib/hmac.h: New file.
37575
37576 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
37577
37578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
37579         promotes to int, not unsigned int, to catch the AIX 5.3
37580         compiler bug.
37581
37582 2005-10-05  Simon Josefsson  <jas@extundo.com>
37583
37584         * modules/memxor: New file.
37585
37586         * modules/iconv (Files): Move config.rpath to havelib, it is used
37587         there.
37588
37589         * modules/havelib (Files): Add config.rpath.
37590
37591 2005-10-05  Simon Josefsson  <jas@extundo.com>
37592
37593         * m4/memxor.m4: New file.
37594
37595 2005-10-05  Simon Josefsson  <jas@extundo.com>
37596
37597         * lib/memxor.c (memxor): Fix compiler error.
37598
37599         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
37600         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
37601
37602         * lib/memxor.h, lib/memxor.c: New files.
37603
37604         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
37605         we assume all systems have it, suggested by Jim Meyering
37606         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
37607         any systems lack sys/socket.h; mingw32 is known to lack it, but we
37608         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
37609         same reasons.
37610
37611 2005-10-05  Simon Josefsson  <jas@extundo.com>
37612
37613         * config/srclist.txt: Add glibc bug 1423 for md5.h.
37614
37615 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
37616
37617         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
37618         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
37619         needed, since the source code now assumes these .h files.
37620
37621 2005-10-05  Derek Price  <derek@ximbiot.com>
37622
37623         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
37624
37625 2005-10-05  Bruno Haible  <bruno@clisp.org>
37626
37627         * modules/stdint (License): Change to LGPL.
37628
37629 2005-10-04  Simon Josefsson  <jas@extundo.com>
37630
37631         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
37632         D. Baushke" <mdb@gnu.org>.
37633
37634 2005-10-04  Bruno Haible  <bruno@clisp.org>
37635
37636         * lib/verify.h (verify_true): Provide alternative definition for C++.
37637
37638 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
37639
37640         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
37641         (SSIZE_MAX): New macro, if not already defined.
37642         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
37643         than 2 GiB.
37644
37645 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37646
37647         Sync from coreutils.
37648         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
37649         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
37650         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
37651         ULLONG_MAX doesn't work with 2.7.2.1.
37652
37653 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37654
37655         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
37656         From Ben Pfaff.
37657
37658         * modules/exclude (Depends-on): Depend on verify.
37659         * modules/strtoimax (Depends-on): Likewise.
37660         * modules/utimecmp (Depends-on): Likewise.
37661
37662 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37663
37664         * lib/exclude.c: Include verify.h.
37665         (verify): Remove.  All callers changed to use verify.h's version.
37666         * lib/strtoimax.c: Likewise.
37667         * lib/utimecmp.c: Likewis.e
37668
37669         Sync from coreutils.
37670         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
37671         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
37672         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
37673         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
37674         bother returning ENOSYS if settimeofday or stime fails; just let
37675         them return whatever errno they want to return.
37676         * lib/utimens.c: Include unistd.h, for dup2.
37677         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
37678         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
37679
37680 2005-10-02  Jim Meyering  <jim@meyering.net>
37681
37682         Sync from coreutils.
37683         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
37684         from glibc-2.2.5 that fails for read-only files.
37685
37686 2005-10-02  Jim Meyering  <jim@meyering.net>
37687
37688         Sync from coreutils.
37689         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
37690         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
37691         `#if HAVE_CONFIG_H'.
37692         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
37693         Remove AT_FDCWD test.
37694         Do not consume the fd unless successful.
37695         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
37696         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
37697         block, so that we don't even try to compile it if settimeofday is
37698         available.  This works around a compilation failure on OSF1 V5.1,
37699         due to stime requiring a `long int*' while tv_sec is `int'.
37700
37701 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
37702
37703         Sync from coreutils.
37704         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
37705         against `yes', rather than just testing for nonempty.
37706
37707 2005-10-01  Simon Josefsson  <jas@extundo.com>
37708
37709         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
37710         and Darwin.
37711
37712         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
37713         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
37714         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
37715         freeaddrinfo and gai_strerror are declared by the POSIX headers.
37716         Check if struct addrinfo is declared.
37717
37718 2005-10-01  Simon Josefsson  <jas@extundo.com>
37719
37720         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
37721         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
37722         AI_* and EAI_* definitions.  Protect function declarations.
37723
37724 2005-10-01  Jim Meyering  <jim@meyering.net>
37725
37726         Sync from coreutils.
37727
37728         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
37729         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
37730         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
37731         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37732         in the inet and nsl libraries.  Required on Solaris 5.7.
37733
37734 2005-10-01  Jim Meyering  <jim@meyering.net>
37735
37736         Sync from coreutils.
37737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37738         in the inet and nsl libraries.  Required on Solaris 5.7.
37739
37740 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
37741
37742         * lib/getdelim.c (getdelim): Remove unused variables.
37743
37744 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
37745
37746         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
37747         so that the code works even with ancient cpp.  Portability problem
37748         with GCC 2.7.2.1 reported by Thomas M.Ott.
37749
37750 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
37751
37752         * modules/regex (Depends-on): Add strcase.
37753
37754         * modules/gethostname (Licence): Change from GPL to LGPL, since
37755         gethostname.c is a trivial implementation of a standard library
37756         function.
37757         * modules/poll (License): Change from GPL to LGPL, since it's
37758         derived from LGPL code.
37759
37760 2005-09-27  Jim Meyering  <jim@meyering.net>
37761
37762         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
37763         HAVE_CONFIG_H.
37764
37765         * lib/intprops.h (signed_type_or_expr__): Define.
37766         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
37767         for unsigned types.
37768
37769 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37770
37771         * lib/verify.h (verify_expr): Remove, replacing with:
37772         (verify_true): New macro that returns true instead of void.
37773         (verify_type__): Remove.
37774         (verify): Use verify_true rather than verify_type__.
37775
37776 2005-09-26  Bruno Haible  <bruno@clisp.org>
37777
37778         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
37779         is necessary.
37780         (lib_SOURCES): Remove mbchar.c.
37781         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
37782         (Files): Add m4/mbrtowc.m4.
37783         * modules/mbiter: Likewise.
37784         * modules/mbuiter: Likewise.
37785
37786 2005-09-26  Bruno Haible  <bruno@clisp.org>
37787
37788         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
37789         compile mbchar.c if they are not both present.
37790         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
37791         * m4/mbiter.m4 (gl_MBITER): Likewise.
37792         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
37793         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
37794         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
37795
37796 2005-09-25  Jim Meyering  <jim@meyering.net>
37797
37798         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
37799         also uses socklen_t.
37800
37801 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37802
37803         * lib/utimens.c (ENOSYS): Define if not already defined.
37804         (futimens): Support having a null PATH if the file descriptor
37805         is nonnegative.
37806
37807         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
37808         Remove.
37809         (__attribute): Define to empty unless GCC 3.1 or later.
37810         This works around a core dump on OpenBSD 3.4, which has GCC
37811         2.95.3, which dumps core when given __attribute__(()).  It also
37812         simplifies other tests, since we really don't want to bother with
37813         worrying about which ancient version of GCC supported what.
37814         Original problem reported by Yoann Vandoorselaere, with part of
37815         the fix suggested by Derek Price.
37816
37817 2005-09-24  Jim Meyering  <jim@meyering.net>
37818
37819         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
37820         so we can once again use a positive bitfield width of 1 -- now we
37821         don't have to explain why we were using a bitfield width of 2.
37822
37823 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37824
37825         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
37826         and similarly for the other external symbols.  Problem reported
37827         by James Gallager.
37828
37829         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
37830         bug reported by Jim Meyering.
37831
37832         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
37833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
37834         not needed, since socklen is a prerequisite module.
37835
37836 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37837
37838         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
37839         Problem reported by Eric Blake.
37840         (getaddrinfo): Initialize se so that it's not garbage.
37841         Redo internal storage allocation so that it doesn't make unportable
37842         assumptions about alignment.
37843         Fix a memory leak.
37844
37845         * lib/utimens.c (futimens): Use futimesat if available.
37846         Prefer it to futimes since it doesn't have the futimes bug.
37847
37848         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
37849         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
37850         Instead, declare a function that returns a pointer to an array,
37851         and use verify_type__ to declare the size of the array.
37852         Problem and germ of a solution reported by Bruno Haible.
37853         (verify_type__): Use 2, not 1, for bitfield size, to avoid
37854         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
37855
37856 2005-09-23  Jim Meyering  <jim@meyering.net>
37857
37858         Sync from coreutils.
37859         Correct build failure (socklen_t not defined) on at least
37860         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
37861         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
37862
37863 2005-09-23  Jim Meyering  <jim@meyering.net>
37864
37865         * modules/getaddrinfo (Depends-on): Add socklen.
37866
37867 2005-09-23  Bruno Haible  <bruno@clisp.org>
37868
37869         * tests/test-verify.c: New file.
37870
37871 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37872
37873         Sync from coreutils.
37874
37875         * modules/argmatch (Depends-on): Add verify.
37876         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
37877         unistd-safer.
37878         * modules/save-cwd (Depends-on): Likewise.
37879
37880         * modules/openat (Files): Add lib/openat-die.c.
37881         (Depends-on): Remove error, exitfail.
37882         Add dirname.
37883
37884         * modules/verify: New file.
37885         * MODULES.html.sh (Diagnostics <assert.h>): New section,
37886         with "verify" module.
37887
37888 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37889
37890         Sync from coreutils.
37891
37892         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
37893         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
37894         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
37895         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
37896         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
37897         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
37898         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
37899         Don't bother checking for string.h, stdlib.h, unistd.h.
37900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
37901         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
37902         module's job.
37903         * m4/jm-macros.m4 (gl_MACROS): Likewise.
37904         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
37905
37906         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
37907         (gl_GETDATE): Use it.
37908
37909         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
37910
37911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37912
37913         Sync from coreutils.
37914
37915         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
37916         stat-time.h.
37917         * lib/argmatch.h: Include verify.h
37918         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
37919         (ARGMATCH_ASSERT): Remove; unused.
37920         * lib/canonicalize.c: Assume STDC_HEADERS.
37921         * lib/exclude.c: Include "strcase.h".
37922         * lib/regex_internal.h [!defined _LIBC]: Likewise.
37923         * lib/getusershell.c: Include stdio--.h rather than stdio.h
37924         and stdio-safer.h.
37925         (getusershell): Call fopen, not fopen_safer.
37926         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
37927         Do not include unistd-safer.h.
37928         (save_cwd): Don't call fd_safer; no longer needed
37929         now that we include fcntl--.h.
37930
37931         * lib/getdate.y (relative_time): New type.
37932         (RELATIVE_TIME_0): New constant.
37933         (parser_control): Use relative_time instead of doing it ourselves.
37934         (%union): Add new relative_time rel member.
37935         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
37936         Now typeless.
37937         (relunit, relunit_snumber): Now of type rel.
37938         (zone, rel, relunit, get_date): Adjust to above changes.
37939
37940         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
37941         Do not include unistd-safer.h.
37942         (getloadavg): Don't call fd_safer; no longer needed
37943         now that we include fcntl--.h.
37944
37945         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
37946         (make_dir_parents): Treat ENOSYS like EEXIST.
37947
37948         Improve quality of diagnostics on restore_cwd failure.
37949         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
37950         (make_dir_parents): Last arg is now int * (for errno), not bool *.
37951         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
37952         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
37953         each time through the loop.  Do not diagnose restore_cwd failure;
37954         that is the caller's job (and perhaps the caller does not care).
37955
37956         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
37957         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
37958         If the file already exists but is not a directory, don't bother
37959         to try to make its parents.
37960         Close potential file descriptor leak if we can't chdir("/") (!).
37961         Don't always return true if chdir($PWD) fails; return true only
37962         if the requested action was done successfully (except for the
37963         chdir($PWD)).
37964         Don't log final directory unless we actually made it.
37965         Refactor to avoid duplicate code to fix up permissions.
37966         Don't attempt to fix up parent permissions if chdir($PWD) fails.
37967
37968         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
37969         to make it a bit faster and (I hope) clearer.
37970         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
37971         Fix bug in formats like %2N.
37972
37973         * lib/verify.h: New file.
37974
37975 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         Sync from coreutils.
37978         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
37979
37980 2005-09-22  Jim Meyering  <jim@meyering.net>
37981
37982         Sync from coreutils.
37983
37984         * m4/lstat.m4 (gl_FUNC_LSTAT):
37985         Use AC_LIBSOURCES to require lstat.c and lstat.h.
37986         Remove obsolete comment.
37987         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
37988         * m4/xstrtod.m4: Likewise.
37989
37990         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
37991
37992 2005-09-22  Jim Meyering  <jim@meyering.net>
37993
37994         Sync from coreutils.
37995
37996         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
37997
37998         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
37999         the .tm_year member, since otherwise gcc-4.0 would now warn about
38000         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
38001
38002         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
38003         order to avoid an unsuppressible warning from gcc on 64-bit systems.
38004
38005         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
38006         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
38007         when run in a time zone for which daylight savings time is in effect
38008         for the starting date.
38009
38010         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
38011         stop us from restricting permissions of just-created absolute-named
38012         directories.
38013         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
38014         to restore initial working directory.
38015         * lib/mkdir-p.c (make_dir_parents): New parameter:
38016         different_working_dir, to tell caller if/when we change the working
38017         directory and are unable to return to the initial one.
38018         * lib/mkdir-p.h (make_dir_parents): Update prototype.
38019         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
38020         `return false'.  This fixes a bug introduced on 2004-07-30.
38021
38022         * lib/openat.c (fdopendir): Be sure to close the supplied
38023         file descriptor before returning.  This makes our replacement
38024         implementation a little closer to Solaris's, where fdopendir
38025         ties the file descriptor to the returned DIR* pointer.
38026         * lib/openat.c (unlinkat): New function.
38027         * lib/openat.h (unlinkat): Add prototype.
38028         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
38029         (openat_restore_fail): Rename from openat_restore_die.
38030         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
38031
38032         Provide an alternative to exiting immediately upon save_cwd or
38033         restore_cwd failure.  Now, an application can arrange e.g.,
38034         to perform a longjump in that case.
38035         * lib/openat.c: Include dirname.h.
38036         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
38037         (rpl_openat, fdopendir, fstatat): Call openat_save_die
38038         and openat_restore_die rather than calling error directly.
38039         Don't include "error.h" or "exitfail.h"; they're no longer needed.
38040
38041         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
38042         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
38043         define.
38044
38045         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
38046         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
38047                             int utc, int nanoseconds);
38048         Background:
38049         date should not have to allocate a megabyte of virtual memory to
38050         handle a format argument like +%1048575T.  When implemented with
38051         strftime, it must allocate such a buffer, use strftime to fill it
38052         in, print it, then free it.
38053         With fprintftime, it simply prints everything and exits.
38054         With no need for memory allocation, that's one fewer way to fail.
38055         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
38056         optional field width, not before, so we accept %9:z, not %:9z.
38057         (my_strftime): Be sure to use L_('x') for literals.
38058
38059         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
38060         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
38061         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
38062         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
38063         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
38064         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
38065         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
38066         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
38067         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
38068         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
38069         * lib/xgethostname.c, lib/xreadlink.c:
38070         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
38071
38072         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
38073         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
38074         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
38075         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
38076         and don't include <sys/file.h>).
38077
38078 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
38079
38080         Sync from coreutils.
38081
38082         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
38083         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
38084         [!LDAV_DONE]: Avoid unused variable warning.
38085
38086 2005-09-21  Bruno Haible  <bruno@clisp.org>
38087
38088         * lib/unicodeio.h (unicode_to_mb): New declaration.
38089
38090 2005-09-20  Derek Price  <derek@ximbiot.com>
38091
38092         * lib/getaddrinfo.c: Don't include <netdb.h> included from
38093         getaddrinfo.h.
38094
38095 2005-09-20  Bruno Haible  <bruno@clisp.org>
38096
38097         * gnulib-tool: Remove trailing slashes from the values specified for
38098         --source-base, --m4-base, --tests-base, --aux-dir.
38099         Suggested by Simon Josefsson <jas@extundo.com>.
38100
38101 2005-09-20  Bruno Haible  <bruno@clisp.org>
38102
38103         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
38104         func_modules_to_filelist, func_import, func_create_testdir): Make all
38105         sorting results locale-independent, so that gnulib-cache.m4 doesn't
38106         change when gnulib-tool is invoked in a different locale.
38107
38108 2005-09-19  Simon Josefsson  <jas@extundo.com>
38109
38110         * m4/socklen.m4: Fix typo.
38111
38112 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38113
38114         Use a consistent style for including <config.h>.
38115         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
38116         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
38117         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
38118         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
38119         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
38120         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
38121         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
38122         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
38123         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
38124         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
38125         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
38126         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
38127         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
38128         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
38129         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
38130         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
38131         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
38132         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
38133         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
38134         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
38135         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
38136         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
38137         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
38138         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
38139         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
38140         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
38141         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
38142         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
38143         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
38144         lib/xstrtoumax.c, lib/yesno.c:
38145         Standardize inclusion of config.h.
38146         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
38147         lib/inttostr.h:  Removed inclusion of config.h from header files.
38148         * lib/inttostr.c:  Adjusted in-tree users.
38149         * lib/timespec.h: Remove superfluous warning to include config.h.
38150         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
38151         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
38152         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
38153         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
38154         config.h with HAVE_CONFIG_H.
38155
38156 2005-09-19  Jim Meyering  <jim@meyering.net>
38157
38158         * modules/pathmax (License): Change to LGPL.
38159
38160 2005-09-19  Derek Price  <derek@ximbiot.com>
38161
38162         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
38163
38164 2005-09-19  Bruno Haible  <bruno@clisp.org>
38165
38166         * gnulib-tool (import): Provide default for --tests-base.
38167
38168 2005-09-19  Bruno Haible  <bruno@clisp.org>
38169
38170         * doc/quote.texi: New file, extracted from gnulib.texi.
38171         * doc/ctime.texi: New file, extracted from gnulib.texi.
38172         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
38173         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
38174         * doc/gnulib.texi: Include them.
38175
38176 2005-09-18  Bruno Haible  <bruno@clisp.org>
38177
38178         Portability fix.
38179         * gnulib-tool (func_readlink): New function.
38180         (func_ln_if_changed): Use it.
38181
38182 2005-09-18  Bruno Haible  <bruno@clisp.org>
38183
38184         * gnulib-tool: Support --with-tests also with --import.
38185         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
38186         (func_import): Use variables $testsbase and $inctests. Emit a
38187         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
38188         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
38189         SUBDIRS += $testsdir.
38190         (func_create_testdir): Update.
38191
38192 2005-09-18  Bruno Haible  <bruno@clisp.org>
38193
38194         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
38195         instead of $dry_run.
38196         (func_cp_if_changed, func_mv_if_changed): Remove functions.
38197         (func_ln_if_changed): Don't handle dry-run here.
38198         (func_import): In dry-run mode, detect more precisely which actions
38199         would be performed, and don't use "...ing" verbs.
38200
38201 2005-09-18  Bruno Haible  <bruno@clisp.org>
38202
38203         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
38204         (func_import): Use join on two temporary files instead of three nested
38205         loops, in order to determine which files are new or old.
38206
38207 2005-09-18  Bruno Haible  <bruno@clisp.org>
38208
38209         * gnulib-tool (func_import): Comment out code that spits out the
38210         new files with --dry-run.
38211
38212 2005-09-18  Bruno Haible  <bruno@clisp.org>
38213
38214         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
38215
38216 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38217
38218         * lib/stat-time.h: New file.
38219         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
38220         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
38221         in a different way.
38222         (timespec_cmp): New function.
38223         * lib/utimecmp.c: Include stat-time.h.
38224         (SYSCALL_RESOLUTION): Depend on whether various struct stat
38225         members exist, not on the obsolescent ST_MTIM_NSEC.
38226         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
38227
38228 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38229
38230         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
38231
38232 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38233
38234         * MODULES.html.sh (File system functions): Add stat-time.
38235         * modules/stat-time: New file.
38236         * modules/timespec (Files): Remove m4/st_mtim.m4; this
38237         is now done in a different way, by the stat-time module.
38238         * modules/utimecmp (Depends-on): Add stat-time.
38239
38240 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
38241
38242         * m4/st_mtim.m4: Remove.  Superseded by...
38243         * m4/stat-time.m4: New file.
38244         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
38245         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
38246
38247 2005-09-15  Derek Price  <derek@ximbiot.com>
38248
38249         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
38250
38251 2005-09-15  Derek Price  <derek@ximbiot.com>
38252
38253         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
38254         * lib/regex_internal.c: Ditto, using this...
38255         (__GNUC_PREREQ): ...new macro.
38256         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
38257         using...
38258         (__GNUC_PREREQ): ...this new macro.
38259
38260         * lib/strstr.h: Include string.h. Define strstr as a macro here.
38261
38262 2005-09-15  Derek Price  <derek@ximbiot.com>
38263             Paul Eggert  <eggert@cs.ucla.edu>
38264
38265         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
38266         changes, consolidating in...
38267         * lib/regex_internal.h: ...this file.
38268
38269 2005-09-13  Jim Meyering  <jim@meyering.net>
38270
38271         * lib/canon-host.c: Filter through gnu indent and reword comments
38272         slightly.
38273         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
38274
38275 2005-09-13  Derek Price  <derek@ximbiot.com>
38276
38277         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
38278         failure.
38279         Reported by Jim Meyering  <jim@meyering.net>.
38280
38281 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
38282
38283         * lib/base64.c: Typo.
38284         (base64_encode): Put b64str in initialized data section.
38285
38286 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
38287
38288         Merge glibc and coreutils changes into gnulib, plus a few
38289         extra fixes.
38290         * lib/md5.c: Use #error rather than a string.
38291         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
38292         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
38293         (__attribute__): Define to empty for non recent-GCC.
38294         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
38295         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
38296         Renamed from their non-__ counterparts, with new macros replacing
38297         them if not _LIBC.  Add __THROW attribute.
38298         (rol): Remove.
38299         (struct md5_ctx): Align buffer if using GCC.
38300         * lib/sha1.h (struct sha1_ctx): Likewise.
38301         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
38302         The old name was backwards.
38303         (NOTSWAP): Remove; not used.
38304         (rol): New macro, moved here from md5.h.
38305         (sha1_process_block): Remove a FIXME that doesn't make sense.
38306
38307 2005-09-12  Derek Price  <derek@ximbiot.com>
38308
38309         Return usable errors from canon-host.
38310         * lib/canon-host.h: New file.
38311         * lib/canon-host.c (canon_host): Wrap...
38312         (canon_host_r): ...this new function, which now relies exclusively on
38313         getaddrinfo.
38314         (ch_strerror): New function.
38315         (last_cherror): New global.
38316         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
38317         interface.
38318         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
38319         void *.
38320         (freeaddrinfo): Free ai->ai_canonname when set.
38321
38322 2005-09-12  Derek Price  <derek@ximbiot.com>
38323
38324         Make canon-host require getaddrinfo.
38325         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
38326         AC_LIBSOURCE canon-host.h.  Call...
38327         (gl_PREREQ_CANON_HOST): ...this new function, which requires
38328         gl_GETADDRINFO.
38329         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
38330
38331 2005-09-12  Derek Price  <derek@ximbiot.com>
38332
38333         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
38334         LGPL.
38335         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
38336
38337 2005-09-12  Derek Price  <derek@ximbiot.com>
38338
38339         * lib/gai_strerror.c: Include config.h when available.  Include
38340         getaddrinfo.h before other headers to test interface.
38341         Reported by Larry Jones <lawrence.jones@ugs.com>.
38342
38343 2005-09-12  Derek Price  <derek@ximbiot.com>
38344             Paul Eggert  <eggert@cs.ucla.edu>
38345
38346         * modules/glob (Files): Add glob-libc.h.
38347
38348 2005-09-12  Derek Price  <derek@ximbiot.com>
38349             Paul Eggert  <eggert@cs.ucla.edu>
38350
38351         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
38352         glob_.h, glob-libc.h.
38353         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
38354
38355 2005-09-12  Derek Price  <derek@ximbiot.com>
38356             Paul Eggert  <eggert@cs.ucla.edu>
38357
38358         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
38359         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
38360         protecting things that should be done only in gnulib contexts.
38361         * lib/glob_.h: New file, containing only the glob things needed for
38362         gnulib.
38363         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
38364         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
38365         (glob, globfree, glob_pattern_p): Now defined simply in terms of
38366         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
38367         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
38368         and to respect the namespace rules better.
38369
38370 2005-09-08  Simon Josefsson  <jas@extundo.com>
38371
38372         * modules/socklen: New file.
38373
38374 2005-09-08  Simon Josefsson  <jas@extundo.com>
38375
38376         * m4/socklen.m4: New file.
38377
38378 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38379
38380         * modules/utimens (Files): Add m4/utimbuf.m4, since
38381         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
38382         Reported by Sergey Poznyakoff.
38383
38384 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38385
38386         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
38387         definitions, since that's the preferred style in glibc.
38388         Fix a minor spacing issue, and update copyright notice to match
38389         glibc's.
38390
38391 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38392
38393         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
38394
38395 2005-09-06  Simon Josefsson  <jas@extundo.com>
38396
38397         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
38398         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
38399
38400 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38401
38402         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
38403         warning.
38404
38405 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38406
38407         * config/srclist.txt: Add glibc bug 1302.
38408
38409 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
38410
38411         Change bitset word type from unsigned int to unsigned long int,
38412         as this has better performance on typical 64-bit hosts.
38413         Port bitset code to hosts with unusual word sizes.
38414         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
38415         (build_collating_symbol):
38416         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
38417         argument is a bitset.  This is merely a style issue, but it makes
38418         it clearer that an entire array is expected.
38419         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
38420         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
38421         Port to the case where bitset_word is not the same as unsigned int.
38422         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38423         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
38424         Likewise.
38425         * lib/regexec.c (check_dst_limits_calc_pos_1,
38426         check_subexp_matching_top):
38427         (build_trtable, group_nodes_into_DFAstates):
38428         Likewise.
38429         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
38430         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
38431         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
38432         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
38433         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
38434         * lib/regcomp.c (optimize_subexps, lower_subexp):
38435         Work even if bitset_word has holes in its bitwise representation.
38436         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
38437         * lib/regexec.c (check_dst_limits_calc_pos_1,
38438         check_subexp_matching_top):
38439         Likewise.
38440         * lib/regex_internal.c (re_string_reconstruct):
38441         Don't assume UCHAR_MAX == 255.
38442         * lib/regex_internal.h (bitset_set_all): Likewise.
38443         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
38444         All uses changed.
38445         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
38446         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
38447         All uses changed.
38448         (BITSET_WORD_MAX): New macro.
38449         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
38450         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
38451         (bitset_empty, bitset_copy):
38452         Prefer sizeof (bitset) to multiplying it out ourselves.
38453         (bitset_not_merge): Remove; unused.
38454         (bitset_contain): Return bool, not unsigned int with one bit on.
38455         All callers changed.
38456         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
38457         alignment than re_node_set; do this by defining a new internal
38458         type struct dests_alloc and using it to allocate memory.
38459
38460 2005-09-05  Bruno Haible  <bruno@clisp.org>
38461
38462         * gnulib-tool (func_import): Fix comparison in handling of symbolic
38463         links.
38464
38465 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
38466
38467         * modules/size_max (Makefile.am): Add size_max.h
38468
38469 2005-09-04  Derek Price  <derek@ximbiot.com>
38470
38471         * gnulib-tool (func_import): Fix reversed $symbolic logic.
38472
38473 2005-09-03  Simon Josefsson  <jas@extundo.com>
38474
38475         * gnulib-tool: Fix typo.
38476
38477 2005-09-03  Simon Josefsson  <jas@extundo.com>
38478
38479         * config/srclist.txt: Add glibc bug 1293.
38480
38481 2005-09-03  Derek Price  <derek@ximbiot.com>
38482
38483         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
38484         From Larry Jones <lawrence.jones@ugs.com>.
38485
38486 2005-09-02  Simon Josefsson  <jas@extundo.com>
38487
38488         * modules/socklen: New file.
38489
38490 2005-09-02  Simon Josefsson  <jas@extundo.com>
38491
38492         * modules/havelib: New module.
38493
38494         * modules/gettext, modules/iconv, modules/lock, modules/readline:
38495         Use havelib.
38496
38497 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
38498
38499         Check for arithmetic overflow when calculating sizes, to prevent
38500         some buffer-overflow issues.  These patches are conservative, in the
38501         sense that when I couldn't determine whether an overflow was possible,
38502         I inserted a run-time check.
38503         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
38504         macros.
38505         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
38506         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
38507         (re_xnrealloc, re_x2nrealloc): New inline functions.
38508         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
38509         parse_bracket_exp):
38510         (build_equiv_class, build_charclass): Check for arithmetic overflow
38511         in size expression calculations.
38512         * lib/regex_internal.c (re_string_realloc_buffers):
38513         (build_wcs_upper_buffer, re_node_set_add_intersect):
38514         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
38515         (re_dfa_add_node, register_state): Likewise.
38516         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
38517         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
38518         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
38519         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
38520
38521 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
38522
38523         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
38524         m4/ulonglong.m4.  Problem reported by Martin Lambers.
38525
38526 2005-09-02  Bruno Haible  <bruno@clisp.org>
38527
38528         Support for lib vs. lib64 distinction on biarch platforms.
38529         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
38530         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
38531         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
38532
38533 2005-09-02  Bruno Haible  <bruno@clisp.org>
38534
38535         * gnulib-tool (import): In the other first-use case, provide defaults
38536         as well.
38537
38538 2005-09-02  Bruno Haible  <bruno@clisp.org>
38539
38540         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
38541         patches not yet found in the latest gettext release.
38542
38543 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38544
38545         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
38546         to avoid a collision with bits/local_lim.h in glibc.
38547         All uses changed.  Problem reported by Dmitry V. Levin in
38548         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
38549
38550         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
38551         bugs in int versus size_t comparisons.
38552         (re_string_context_at): Fix bug where the code assumed that
38553         Idx is signed.
38554
38555         Use bool where appropriate.
38556         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
38557         All callers changed.
38558         (calc_eclosure_iter): Likewise, for ROOT arg.
38559         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
38560         (build_charclass_op): Likewise, for NON_MATCH arg.
38561         * lib/regex_internal.c (re_string_allocate, re_string_construct):
38562         (re_string_construct_common): Likewise, for ICASE arg.
38563         * lib/regexec.c (re_search_2_stub, re_search_stub):
38564         Likewise, for RET_LEN arg.
38565         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
38566         (set_regs): Likewise, for FL_BACKTRACK arg.
38567         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
38568         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
38569         (calc_eclosure_iter, parse_bracket_exp):
38570         Use bool for internal variables that are booleans.
38571         * lib/regexec.c (re_search_internal, check_matching,
38572         proceed_next_node):
38573         (set_regs, build_sifted_states, sift_states_bkref):
38574         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
38575         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
38576         (find_collation_sequence_value):
38577         Likewise.
38578         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
38579         (re_node_set_compare):
38580         Return bool, not int. All callers changed.
38581         * lib/regexec.c (check_halt_node_context, check_dst_limits):
38582         (build_trtable, check_node_accept): Likewise.
38583         * lib/regex_internal.h: Include stdbool.h.
38584
38585         Fix bugs uncovered when converting to bool.
38586         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
38587         failure instead of charging ahead blindly.
38588         * lib/regex_internal.c (register_state): Likewise.
38589         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
38590         for freeing internal storage.
38591         (group_nodes_into_DFA_states): Use unsigned int, not int, for
38592         bitset pieces used as boolean, to avoid undefined behavior
38593         on hosts that do int overflow checking.
38594
38595 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38596
38597         * config/srclist.txt: Add glibc bugs 1285-1287.
38598
38599 2005-09-01  Jim Meyering  <jim@meyering.net>
38600
38601         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
38602         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
38603         Require gl_STAT_MACROS, too.
38604
38605 2005-09-01  Bruno Haible  <bruno@clisp.org>
38606
38607         * gnulib-tool (import): In the first-use case, provide defaults.
38608
38609 2005-09-01  Bruno Haible  <bruno@clisp.org>
38610
38611         * gnulib-tool (func_import): Remove the .tmp files.
38612
38613 2005-09-01  Bruno Haible  <bruno@clisp.org>
38614
38615         * gnulib-tool (func_import): Fix handling of symbolic links.
38616
38617 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38618
38619         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
38620         old glibc regex code mishandles strings longer than 2**31 bytes.
38621         This patch fixes this when the regex code is used in gnulib
38622         (i.e., outside glibc).
38623
38624         This patch should not affect the use of the regex code inside
38625         glibc.  No doubt this problem also needs to be handled for glibc
38626         as well, but the result will be an incompatible change to the
38627         glibc ABI, and the old ABI will have to be supported too.  That
38628         can be the the subject for another patch.
38629
38630         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
38631         governing whether the rest of this patch is active.  By default,
38632         the macro is disabled and the patch has no effect.
38633         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
38634         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
38635         (struct re_pattern_buffer, re_search, re_search_2, re_match):
38636         (re_match_2, re_set_registers): Use the new types.
38637         * lib/regex_internal.h (Idx, re_hashval_t): New types.
38638         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
38639         New macros.
38640         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
38641         (re_string_context_at, bin_tree_t, re_dfastate_t):
38642         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
38643         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
38644         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
38645         (re_string_char_size_at, re_string_wchar_at):
38646         (re_string_elem_size_at):
38647         Use the new types and macros to port to 64-bit hosts.
38648         Use unsigned types for internal values, so that the code
38649         mostly works even for arrays larger than SSIZE_MAX.
38650         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
38651         (search_duplicated_node, calc_eclosure_iter, fetch_number):
38652         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38653         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
38654         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
38655         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
38656         (calc_inveclosure, parse_dup_op, build_range_exp):
38657         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
38658         (fetch_number, create_token_tree, mark_opt_subexp):
38659         Likewise.
38660         * lib/regex_internal.c (re_string_construct_common,
38661         create_ci_newstate):
38662         (create_cd_newstate, re_string_allocate, re_string_construct):
38663         (re_string_realloc_buffers, build_wcs_upper_buffer):
38664         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38665         (re_string_reconstruct, re_string_peek_byte_case):
38666         (re_string_fetch_byte_case, re_string_context_at):
38667         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38668         (re_node_set_init_copy, re_node_set_add_intersect):
38669         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38670         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38671         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38672         (re_acquire_state, re_acquire_state_context, register_state):
38673         Likewise.
38674         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
38675         search_cur_bkref_entry):
38676         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
38677         (re_search_internal, re_search_2_stub, re_search_stub)
38678         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
38679         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
38680         (update_cur_sifted_state, check_dst_limits):
38681         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38682         (check_subexp_limits, sift_states_bkref, merge_state_array):
38683         (check_subexp_matching_top, get_subexp, get_subexp_sub):
38684         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
38685         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38686         (expand_bkref_cache, check_node_accept_bytes):
38687         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
38688         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
38689         (acquire_init_state_context, check_halt_node_context):
38690         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
38691         (sift_states_backward, clean_state_log_if_needed):
38692         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
38693         (find_recover_state, transit_state_sb, transit_state_mb):
38694         (transit_state_bkref, build_trtable, match_ctx_clean):
38695         Likewise.
38696         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
38697         to work around an assumption that REG_MISSING is negative.
38698
38699         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
38700         (seek_collating_symbol_entry) [defined _LIBC]:
38701         (lookup_collation_sequence_value) [defined _LIBC]:
38702         (build_range_exp, build_collating_symbol) [defined _LIBC]:
38703         Use prototypes rather than old-style function definitions.
38704         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
38705         (transit_state_sb) [0]:
38706         (find_collation_sequence_value) [defined _LIBC]: Likewise.
38707
38708         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
38709         rm_eo.
38710
38711         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
38712         (optimize_subexps, lower_subexp):
38713         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
38714         since the signed shift might overflow.  Use 1u<<31 instead.
38715         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38716         Likewise.
38717         * lib/regexec.c (check_dst_limits_calc_pos_1,
38718         check_subexp_matching_top): Likewise.
38719
38720         * lib/regcomp.c (optimize_subexps, lower_subexp):
38721         Use CHAR_BIT rather than 8, for clarity.
38722         * lib/regexec.c (check_dst_limits_calc_pos_1):
38723         (check_subexp_matching_top): Likewise.
38724         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
38725         have to worry about portability issues when shifting it left.
38726         Remove no-longer-needed test for table_size > 0.
38727         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
38728         in a word, as the resulting behavior is undefined.
38729         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
38730         in one case, a <= should have been an <, and in another case the
38731         whole test was missing.
38732         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
38733         the standard name CHAR_BIT.
38734         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
38735         this is not true on one's complement and signed-magnitude hosts.
38736
38737         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
38738         next_last_offset.
38739         (struct re_dfa_t): Remove unused member states_alloc.
38740         * lib/regcomp.c (init_dfa): Don't initialize unused members.
38741
38742 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38743
38744         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
38745         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
38746         and large-file glibc and in 32-bit large-file Solaris.
38747
38748 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38749
38750         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
38751         lengths fit in regoff_t; this isn't true if regoff_t is the same
38752         width as size_t.
38753         * lib/regex.c (re_search_internal): 5th arg is LAST_START
38754         (= START + RANGE) instead of RANGE.  This avoids overflow
38755         problems when regoff_t is the same width as size_t.
38756         All callers changed.
38757         (re_search_2_stub): Check for overflow when adding the
38758         sizes of the two strings.
38759         (re_search_stub): Check for overflow when adding START
38760         to RANGE; if it occurs, substitute the extreme value.
38761
38762 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38763
38764         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
38765
38766 2005-08-31  Jim Meyering  <jim@meyering.net>
38767
38768         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
38769         a pointer-to-const.
38770         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
38771         (register_state): Likewise.
38772         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
38773         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38774         (group_nodes_into_DFAstates): Likewise.
38775
38776 2005-08-31  Jim Meyering  <jim@meyering.net>
38777
38778         * check-module: Add a FIXME comment.
38779
38780 2005-08-31  Eric Blake  <ebb9@byu.net>
38781
38782         * modules/unistd-safer (Files): Add unistd--.h.
38783         * modules/stdio-safer (Files): Add stdio--.h.
38784
38785 2005-08-31  Derek Price  <derek@ximbiot.com>
38786
38787         * lib/getdelim.c (getdelim): Return EOF on EOF.
38788         Reported by Larry Jones <lawrence.jones@ugs.com>.
38789
38790 2005-08-31  Bruno Haible  <bruno@clisp.org>
38791
38792         Avoid unnecessary diffs in the generated lib/Makefile.am.
38793         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
38794         the generated files.
38795         (func_import): Don't set cmd.
38796
38797 2005-08-31  Bruno Haible  <bruno@clisp.org>
38798
38799         * lib/strstr.c: Include <stddef.h>, for NULL.
38800         * lib/strcasestr.c: Likewise.
38801         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38802
38803 2005-08-31  Bruno Haible  <bruno@clisp.org>
38804
38805         * gnulib-tool: New option --macro-prefix.
38806         (func_import): Use macro_prefix.
38807         (import): Handle option --macro-prefix.
38808
38809 2005-08-31  Bruno Haible  <bruno@clisp.org>
38810
38811         * gnulib-tool (import): Rename most ac_* variables to cached_*.
38812         Also use new variables cached_lgpl, cached_libtool.
38813
38814 2005-08-31  Bruno Haible  <bruno@clisp.org>
38815
38816         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
38817         always instantiating them.
38818
38819 2005-08-31  Bruno Haible  <bruno@clisp.org>
38820
38821         * gnulib-tool (func_import): Read the previous cached settings
38822         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
38823         earlier added by gnulib but are now dropped. Warn when a gnulib file
38824         overwrites a non-gnulib file.
38825
38826 2005-08-31  Bruno Haible  <bruno@clisp.org>
38827
38828         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
38829         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
38830         projects that don't keep autogenerated files in CVS. Put into
38831         actioncmd only the specified modules, not the transitive closure.
38832
38833 2005-08-31  Bruno Haible  <bruno@clisp.org>
38834
38835         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
38836         Create directories that shall be filled.
38837         (import): Don't look for gl_* macros in configure.ac. Recurse across
38838         all directories containing a gnulib-cache.m4 files, if meaningful.
38839
38840 2005-08-31  Bruno Haible  <bruno@clisp.org>
38841
38842         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
38843         (import): Set seen_libtool when we see gl_LIBTOOL.
38844
38845 2005-08-31  Bruno Haible  <bruno@clisp.org>
38846
38847         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
38848         declaration macro definitions from generated gnulib.m4.
38849
38850 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
38851
38852         * lib/iconvme.h: Add prototype for iconv_alloc.
38853
38854 2005-08-29  Simon Josefsson  <jas@extundo.com>
38855
38856         * lib/iconvme.c: Fix errno.
38857
38858 2005-08-29  Bruno Haible  <bruno@clisp.org>
38859
38860         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
38861         that it works when the directory contains spaces.
38862
38863 2005-08-29  Bruno Haible  <bruno@clisp.org>
38864
38865         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
38866
38867 2005-08-29  Bruno Haible  <bruno@clisp.org>
38868
38869         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
38870         Emit more advice.
38871
38872 2005-08-29  Bruno Haible  <bruno@clisp.org>
38873         and Stepan Kasal  <kasal@ucw.cz>
38874
38875         * check-module: If more parameters are given, check each of them
38876         separately; add more exceptions, as noted by Jim Meyering.
38877         (check_module): New procedure.
38878         (%exempt_header): Now contains all exceptions.
38879
38880 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
38881
38882         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
38883
38884 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
38885
38886         * lib/iconvme.c: Split iconv_string into iconv_alloc.
38887
38888 2005-08-28  Bruno Haible  <bruno@clisp.org>
38889
38890         * m4/gnulib-tool.m4: New file.
38891
38892 2005-08-27  Jim Meyering  <jim@meyering.net>
38893
38894         * modules/unistd-safer (Files): Add pipe-safer.c.
38895         * modules/fcntl-safer (Files): Add creat-safer.c.
38896
38897 2005-08-27  Jim Meyering  <jim@meyering.net>
38898
38899         * m4/stdlib-safer.m4: New file.  From coreutils.
38900         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
38901         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
38902         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
38903         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
38904         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
38905
38906 2005-08-27  Jim Meyering  <jim@meyering.net>
38907
38908         * lib/fopen-safer.c: Merge minor changes from coreutils.
38909         * lib/dup-safer.c: Likewise.
38910         * lib/fd-safer.c: Likewise.
38911
38912         Merge from coreutils.
38913         * lib/stdio--.h: New file.
38914         * lib/stdlib--.h: New file.
38915         * lib/mkstemp-safer.c: New file.
38916
38917         GNU tar needs these.
38918         * lib/pipe-safer.c: New file.
38919         * lib/creat-safer.c: New file.
38920         * lib/fcntl--.h (creat): Define to creat_safer.
38921         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
38922         * lib/unistd--.h (pipe): Define to pipe_safer.
38923         * lib/unistd-safer.h: Declare pipe_safer.
38924
38925 2005-08-26  Simon Josefsson  <jas@extundo.com>
38926
38927         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
38928         Haible <bruno@clisp.org>.
38929
38930 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
38931
38932         * lib/regex_internal.h: Remove all references to
38933         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
38934         or better.
38935         (bitset_not, bitset_merge, bitset_not_merge):
38936         (bitset_mask, re_string_allocate, re_string_construct):
38937         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
38938         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
38939         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
38940         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
38941         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38942         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38943         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
38944         (re_acquire_state_context):
38945         Remove unnecessary forward decls.
38946         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
38947         Put __attribute at function definition,
38948         now that the function decl has been removed.
38949         * lib/regex_internal.c (re_string_peek_byte_case):
38950         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
38951         Likewise.
38952
38953 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
38954
38955         * m4/regex.m4: Add AC_PREREQ(2.50).
38956         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
38957
38958 2005-08-25  Simon Josefsson  <jas@extundo.com>
38959
38960         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
38961         __fsetlocking.
38962
38963 2005-08-25  Simon Josefsson  <jas@extundo.com>
38964
38965         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
38966         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
38967         GLIBC specific code.
38968
38969 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38970
38971         Make regex safe for g++.  This fixes one real bug (an "err"
38972         that should have been "*err").  g++ problem reported by
38973         Sam Steingold.
38974         * lib/regex_internal.h (re_calloc): New macro, consistent with
38975         re_malloc etc.  All callers of calloc changed to use re_calloc.
38976         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
38977         not int.  All callers changed.
38978         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
38979         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
38980         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
38981         (find_recover_state): Change "err" to "*err"; this fixes what
38982         appears to be a real bug.
38983         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
38984         versus int.
38985
38986 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38987
38988         * modules/regex (Depends-on): Add malloc, since the code
38989         assumes that !malloc(0) means failure.
38990
38991 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
38992
38993         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
38994
38995         alloca modernization/simplification for regex.
38996         * lib/regex.c: Remove portability cruft for alloca.  This no longer
38997         needs to be at the start of the file, and can be moved into
38998         regex_internal.h and simplified.
38999         * lib/regex_internal.h: Include <alloca.h>.
39000         (__libc_use_alloca) [!defined _LIBC]: New macro.
39001         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
39002         now works outside glibc.
39003
39004 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39005
39006         * config/srclist.txt: Add glibc bugs 1241, 1245.
39007
39008 2005-08-25  Jim Meyering  <jim@meyering.net>
39009
39010         * lib/open-safer.c: Include <config.h>.
39011         Otherwise, we'd lose LARGEFILE support in any file using
39012         e.g. "fcntl--.h"
39013
39014 2005-08-25  Bruno Haible  <bruno@clisp.org>
39015
39016         * m4/minmax.m4: Require autoconf 2.52.
39017         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
39018         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
39019         alternatives of translit over the alphabet.
39020         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
39021
39022 2005-08-24  Simon Josefsson  <jas@extundo.com>
39023
39024         * tests/test-getpass.c: New file.
39025
39026 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39027
39028         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
39029         for GNU regex features.
39030
39031 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39032
39033         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
39034         * lib/regex.h (regerror): Likewise.
39035
39036         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
39037         requires this.  (The code never needed it.)
39038
39039         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
39040         All uses of recently-renamed identifiers changed to use the new,
39041         POSIX-compliant names.  The code will build and run just fine
39042         without these changes, but it's better to eat our own dog food
39043         and use the standard-conforming names.
39044
39045         * lib/regex.h: Fix a multitude of POSIX name space violations.
39046         These changes have an effect only for programs that define
39047         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
39048         do not change anything for programs compiled in the normal way.
39049         Also, there is no effect on the ABI.
39050
39051         (_REGEX_SOURCE): New macro.
39052         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
39053         defined and _GNU_SOURCE is not; this fixes a name space violation.
39054
39055         Rename the following macros to obey POSIX requirements.
39056         The old names are still visible as macros if _REGEX_SOURCE is defined.
39057         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
39058         RE_BACKSLASH_ESCAPE_IN_LISTS.
39059         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
39060         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
39061         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
39062         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
39063         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
39064         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
39065         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
39066         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
39067         (REG_INTERVALS): renamed from RE_INTERVALS.
39068         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
39069         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
39070         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
39071         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
39072         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
39073         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
39074         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
39075         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
39076         RE_UNMATCHED_RIGHT_PAREN_ORD.
39077         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
39078         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
39079         (REG_DEBUG): renamed from RE_DEBUG.
39080         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
39081         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
39082         unusual, since we can't clash with the POSIX REG_ICASE.
39083         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
39084         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
39085         (REG_NO_SUB): renamed from RE_NO_SUB.
39086         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
39087         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
39088         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
39089         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
39090         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
39091         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
39092         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
39093         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
39094         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
39095         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
39096         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
39097         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
39098         RE_SYNTAX_POSIX_MINIMAL_BASIC.
39099         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
39100         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
39101         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
39102         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
39103         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
39104         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
39105         (REG_FIXED): Renamed from REGS_FIXED.
39106         (REG_NREGS): Renamed from RE_NREGS.
39107
39108         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
39109         of other REG_* macros, since POSIX says the user is allowed to
39110         #undef these macros selectively.
39111
39112         (reg_errcode_t): Update comment stating what other tables need
39113         to be consistent.
39114
39115         Rename the following enum values to obey POSIX requirements.
39116         The old names are still visible as macros.
39117         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
39118         is not defined, since GNU is supposed to be a superset of POSIX as
39119         much as possible, and since we want reg_errcode_t to be a signed
39120         type for implementation consistency.
39121         (_REG_NOERROR): Renamed from REG_NOERROR.
39122         (_REG_NOMATCH): Renamed from REG_NOMATCH.
39123         (_REG_BADPAT): Renamed from REG_BADPAT.
39124         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
39125         (_REG_ECTYPE): Renamed from REG_ECTYPE.
39126         (_REG_EESCAPE): Renamed from REG_EESCAPE.
39127         (_REG_ESUBREG): Renamed from REG_ESUBREG.
39128         (_REG_EBRACK): Renamed from REG_EBRACK.
39129         (_REG_EPAREN): Renamed from REG_EPAREN.
39130         (_REG_EBRACE): Renamed from REG_EBRACE.
39131         (_REG_BADBR): Renamed from REG_BADBR.
39132         (_REG_ERANGE): Renamed from REG_ERANGE.
39133         (_REG_ESPACE): Renamed from REG_ESPACE.
39134         (_REG_BADRPT): Renamed from REG_BADRPT.
39135         (_REG_EEND): Renamed from REG_EEND.
39136         (_REG_ESIZE): Renamed from REG_ESIZE.
39137         (_REG_ERPAREN): Renamed from REG_ERPAREN.
39138         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
39139         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
39140         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
39141         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
39142
39143         (_REG_RE_NAME, _REG_RM_NAME): New macros.
39144         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
39145         changed.  But support the old name if the new one is not defined
39146         and if _REGEX_SOURCE.
39147
39148         Change the following member names in struct re_pattern_buffer.
39149         The old names are still supported if !_REGEX_SOURCE.
39150         The new names are always supported, regardless of _REGEX_SOURCE.
39151         (re_buffer): Renamed from buffer.
39152         (re_allocated): Renamed from allocated.
39153         (re_used): Renamed from used.
39154         (re_syntax): Renamed from syntax.
39155         (re_fastmap): Renamed from fastmap.
39156         (re_translate): Renamed from translate.
39157         (re_can_be_null): Renamed from can_be_null.
39158         (re_regs_allocated): Renamed from regs_allocated.
39159         (re_fastmap_accurate): Renamed from fastmap_accurate.
39160         (re_no_sub): Renamed from no_sub.
39161         (re_not_bol): Renamed from not_bol.
39162         (re_not_eol): Renamed from not_eol.
39163         (re_newline_anchor): Renamed from newline_anchor.
39164
39165         Change the following member names in struct re_registers.
39166         The old names are still supported if !_REGEX_SOURCE.
39167         The new names are always supported, regardless of _REGEX_SOURCE.
39168         (rm_num_regs): Renamed from num_regs.
39169         (rm_start): Renamed from start.
39170         (rm_end): Renamed from end.
39171
39172         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
39173         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
39174         Prepend __ to parameter names.
39175
39176         Undo yesterday's changes.
39177
39178 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39179
39180         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
39181         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
39182         lib/regex.c.
39183
39184 2005-08-24  Jim Meyering  <jim@meyering.net>
39185
39186         Sync from coreutils.
39187         * m4/fcntl-safer.m4: New file.
39188
39189         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
39190         and object files for this module.
39191
39192 2005-08-24  Jim Meyering  <jim@meyering.net>
39193
39194         Sync from coreutils.
39195         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
39196
39197 2005-08-24  Jim Meyering  <jim@meyering.net>
39198
39199         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
39200         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
39201
39202 2005-08-24  Jim Meyering  <jim@meyering.net>
39203
39204         * modules/fcntl-safer: New module.
39205         * modules/fts (Depends-on): Add fcntl-safer.
39206         * MODULES.html.sh (File descriptor based Input/Output):
39207         Add fcntl-safer.
39208
39209 2005-08-24  Bruno Haible  <bruno@clisp.org>
39210
39211         Support for unit test modules.
39212         * modules/README: Mention tests modules.
39213         * modules/TEMPLATE-TESTS: New file.
39214         * gnulib-tool: New options --extract-tests-module, --with-tests and
39215         --tests-base (unused for the moment).
39216         (testsbase, inctests): New variables.
39217         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
39218         (func_verify_module): Exclude TEMPLATE-TESTS.
39219         (func_verify_nontests_module, func_verify_tests_module): New functions.
39220         (func_get_dependencies): Add implicit dependency for tests modules.
39221         (func_get_tests_module): New function.
39222         (func_modules_transitive_closure): When --with-tests was specified,
39223         include the unit tests as well, unless explicitly avoided.
39224         (func_emit_lib_Makefile_am): Ignore the tests modules here.
39225         (func_emit_tests_Makefile_am): New function.
39226         (func_create_testdir): When --with-tests was specified, emit a
39227         tests/ directory.
39228         * MODULES.html.sh (Future developments): Update.
39229
39230 2005-08-24  Bruno Haible  <bruno@clisp.org>
39231
39232         * modules/tls-tests: New file.
39233         * tests/test-tls.c: New file, from GNU gettext.
39234
39235 2005-08-24  Bruno Haible  <bruno@clisp.org>
39236
39237         * modules/lock-tests: New file.
39238         * tests/test-lock.c: New file, from GNU gettext.
39239
39240 2005-08-24  Bruno Haible  <bruno@clisp.org>
39241
39242         * lib/lock.h: Add multiple inclusion guard.
39243         * lib/tls.h: Add multiple inclusion guard.
39244
39245 2005-08-24  Bruno Haible  <bruno@clisp.org>
39246
39247         * gnulib-tool: Add support for the --aux-dir option to
39248         --create-testdir, --create-megatestdir, --test, --megatest.
39249         (func_create_testdir, func_create_megatestdir): Optionally emit a
39250         AC_CONFIG_AUX_DIR directive.
39251         (create-testdir, create-megatestdir, test, megatest): Provide a
39252         default value for $auxdir.
39253
39254 2005-08-24  Bruno Haible  <bruno@clisp.org>
39255
39256         * gnulib-tool (import): Use compound statement instead of subshell
39257         where possible.
39258
39259 2005-08-24  Bruno Haible  <bruno@clisp.org>
39260
39261         * gnulib-tool (import): Change --aux-dir default to "build-aux".
39262
39263 2005-08-24  Bruno Haible  <bruno@clisp.org>
39264
39265         * gnulib-tool (func_version): Update.
39266
39267 2005-08-24  Bruno Haible  <bruno@clisp.org>
39268
39269         * gnulib-tool (func_import, func_create_testdir,
39270         func_create_megatestdir): Quote all autoconf macro arguments.
39271
39272 2005-08-24  Bruno Haible  <bruno@clisp.org>
39273
39274         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
39275         option --force, because --force causes the aclocal.m4 of each
39276         subdirectory to be newer than the corresponding config.h.in.
39277
39278 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39279
39280         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
39281         All contents moved to gl_REGEX.
39282         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
39283         assume that it does.
39284
39285 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39286
39287         * lib/regex.h (REG_NOSYS)
39288         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
39289         Define, since POSIX requires it as of 2001.
39290         (_REG_ENOSYS)
39291         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
39292         New private symbol, used to keep the enum signed in all cases.
39293         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
39294         Youngman in
39295         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
39296
39297         * lib/regex_internal.c (re_string_skip_chars, register_state):
39298         (calc_state_hash):
39299         Remove forward decls; no longer needed now that we use prototypes.
39300         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
39301         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
39302         (clean_state_log_if_needed): Likewise.
39303
39304 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39305
39306         * config/srclist.txt: Add glibc bugs 1231-1233.
39307
39308 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39309
39310         Fix problems reported by Sam Steingold in
39311         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
39312         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
39313         assumed that reg_errcode_t is a signed type, which is not
39314         necessarily true if _XOPEN_SOURCE is not defined.
39315         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
39316         since some compilers warn about it otherwise.
39317
39318 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39319
39320         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
39321         (init_word_char, create_initial_state, duplicate_node_closure):
39322         (fetch_token, peek_token_bracket, build_range_exp):
39323         (build_collating_symbol): Remove forward decls; no longer needed
39324         now that we use prototypes.
39325
39326         * lib/regcomp.c:
39327         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
39328         (re_compile_fastmap_iter, regcomp, regerror, regfree):
39329         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
39330         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
39331         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
39332         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
39333         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
39334         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
39335         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
39336         (build_range_exp, build_collating_symbol, parse_bracket_exp):
39337         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
39338         (build_charclass, build_charclass_op, fetch_number, create_tree):
39339         (create_token_tree, mark_opt_subexp, duplicate_tree):
39340         Use prototypes rather than old-style definitions.
39341
39342         * lib/regex_internal.c:
39343         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
39344         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
39345         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39346         (re_string_reconstruct, re_string_peek_byte_case):
39347         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
39348         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39349         (re_node_set_init_copy, re_node_set_add_intersect):
39350         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39351         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39352         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39353         (re_acquire_state, re_acquire_state_context, register_state):
39354         (create_ci_newstate, create_cd_newstate, free_state):
39355         Likewise.
39356         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
39357         re_search_2):
39358         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
39359         (re_search_internal, prune_impossible_nodes):
39360         (acquire_init_state_context, check_matching, static):
39361         (check_halt_node_context, check_halt_state_context, proceed_next_node):
39362         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
39363         (update_regs, sift_states_backward, build_sifted_states):
39364         (clean_state_log_if_needed, merge_state_array):
39365         (update_cur_sifted_state, add_epsilon_src_nodes):
39366         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
39367         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
39368         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
39369         (find_recover_state, check_subexp_matching_top, transit_state_mb):
39370         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
39371         (check_arrival, check_arrival_add_next_nodes):
39372         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39373         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39374         (check_node_accept_bytes, check_node_accept, extend_buffers):
39375         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
39376         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
39377         (sift_ctx_init):
39378         Likewise.
39379
39380         * lib/regex_internal.h:
39381         (re_string_allocate, re_string_construct, re_string_reconstruct):
39382         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
39383         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
39384         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
39385         (re_string_context_at, re_string_peek_byte_case):
39386         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
39387         is defined, since we now use prototypes always.
39388
39389         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
39390         C89 or better.  All uses removed.
39391
39392 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39393
39394         * config/srclist.txt: Add glibc bugs 1220-1227.
39395
39396 2005-08-20  Jim Meyering  <jim@meyering.net>
39397
39398         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
39399         of unused local, dfa.
39400
39401 2005-08-20  Bruno Haible  <bruno@clisp.org>
39402
39403         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
39404
39405 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39406
39407         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
39408         (re_node_set_insert_last, re_dfa_add_node):
39409         Rename local variables to avoid GCC shadowing warnings.
39410
39411 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39412
39413         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
39414         [defined lint]: Suppress bogus uninitialized-variable warnings.
39415
39416         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
39417         and let the caller return REG_ESPACE if out of space.  This
39418         removes an uninitialied-variable warning with GCC 4.0.1, and also
39419         avoids taking the address of a local variable.  All callers
39420         changed.
39421
39422 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39423
39424         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
39425         $LIBCSRC/posix/regexec.c.
39426         Add glibc bug 1217 for regcomp.c.
39427
39428 2005-08-19  Jim Meyering  <jim@meyering.net>
39429
39430         * lib/regexec.c (proceed_next_node): Redo local variables to
39431         avoid GCC shadowing warnings.
39432
39433 2005-08-18  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/strstr.c (strstr): Fix return value in multibyte case.
39436         * lib/strcasestr.c (strcasestr): Likewise.
39437
39438 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
39439
39440         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
39441
39442 2005-08-17  Jim Meyering  <jim@meyering.net>
39443
39444         Make the %s format (seconds since the epoch) work for a negative
39445         number and when used with a zero-padded field width, e.g. %015s.
39446
39447         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
39448         label so that it precedes the code to set `digits'.  Otherwise,
39449         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
39450         print `00-22'.  Now, it prints `-0022', as it should.
39451
39452 2005-08-17  Bruno Haible  <bruno@clisp.org>
39453
39454         * modules/strstr (Files): Add m4/mbrtowc.m4.
39455         (Depends-on): Add mbuiter.
39456
39457 2005-08-17  Bruno Haible  <bruno@clisp.org>
39458
39459         * modules/strcasestr: New file.
39460         * MODULES.html.sh (String handling, based on ANSI C 89): Add
39461         strcasestr.
39462
39463 2005-08-17  Bruno Haible  <bruno@clisp.org>
39464
39465         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
39466
39467 2005-08-17  Bruno Haible  <bruno@clisp.org>
39468
39469         * modules/mbuiter: New file.
39470         * MODULES.html.sh (Extended multibyte and wide character utilities):
39471         Add mbuiter.
39472
39473 2005-08-17  Bruno Haible  <bruno@clisp.org>
39474
39475         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
39476         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
39477
39478 2005-08-17  Bruno Haible  <bruno@clisp.org>
39479
39480         * m4/strcasestr.m4: New file.
39481
39482 2005-08-17  Bruno Haible  <bruno@clisp.org>
39483
39484         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
39485         * lib/strstr.c: Completely rewritten, with multibyte locale support.
39486
39487 2005-08-17  Bruno Haible  <bruno@clisp.org>
39488
39489         * lib/strcasestr.h: New file.
39490         * lib/strcasestr.c: New file.
39491
39492 2005-08-17  Bruno Haible  <bruno@clisp.org>
39493
39494         * lib/strcasecmp.c: Use mbuiter.h.
39495
39496 2005-08-17  Bruno Haible  <bruno@clisp.org>
39497
39498         * lib/mbuiter.h: New file.
39499
39500 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
39501
39502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
39503         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
39504         and gl_GETOPT are both invoked via different paths (as happens
39505         with GNU tar CVS because it uses both argp and getopt), the former
39506         wins.
39507
39508 2005-08-16  Bruno Haible  <bruno@clisp.org>
39509
39510         * modules/tls: New file.
39511         * MODULES.html.sh (Multithreading): Add tls.
39512
39513 2005-08-16  Bruno Haible  <bruno@clisp.org>
39514
39515         * modules/strnlen1: New file.
39516         * MODULES.html.sh (String handling): Add strnlen1.
39517
39518 2005-08-16  Bruno Haible  <bruno@clisp.org>
39519
39520         * modules/strcase (Files): Add m4/mbrtowc.m4.
39521         (Depends-on): Add strnlen1, mbchar.
39522
39523 2005-08-16  Bruno Haible  <bruno@clisp.org>
39524
39525         * modules/mbiter: New file.
39526         * MODULES.html.sh (Extended multibyte and wide character utilities):
39527         Add mbiter.
39528
39529 2005-08-16  Bruno Haible  <bruno@clisp.org>
39530
39531         * modules/mbfile: New file.
39532         * MODULES.html.sh (Extended multibyte and wide character utilities):
39533         Add mbfile.
39534
39535 2005-08-16  Bruno Haible  <bruno@clisp.org>
39536
39537         * modules/mbchar: New file.
39538         * MODULES.html.sh (Extended multibyte and wide character utilities):
39539         New section.
39540
39541 2005-08-16  Bruno Haible  <bruno@clisp.org>
39542
39543         * m4/tls.m4: New file, from GNU gettext.
39544
39545 2005-08-16  Bruno Haible  <bruno@clisp.org>
39546
39547         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
39548         always.
39549         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
39550
39551 2005-08-16  Bruno Haible  <bruno@clisp.org>
39552
39553         * m4/mbiter.m4: New file.
39554
39555 2005-08-16  Bruno Haible  <bruno@clisp.org>
39556
39557         * m4/mbfile.m4: New file.
39558
39559 2005-08-16  Bruno Haible  <bruno@clisp.org>
39560
39561         * m4/mbchar.m4: New file.
39562
39563 2005-08-16  Bruno Haible  <bruno@clisp.org>
39564
39565         * lib/tls.h: New file, from GNU gettext.
39566         * lib/tls.c: New file, from GNU gettext.
39567
39568 2005-08-16  Bruno Haible  <bruno@clisp.org>
39569
39570         * lib/strnlen1.h: New file.
39571         * lib/strnlen1.c: New file.
39572
39573 2005-08-16  Bruno Haible  <bruno@clisp.org>
39574
39575         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
39576         (mbi_init): Update.
39577         (mbi_avail, mbi_advance): Let the iteration end before the terminating
39578         NUL byte, not after it.
39579
39580 2005-08-16  Bruno Haible  <bruno@clisp.org>
39581
39582         * lib/strcase.h (strcasecmp): Add note in comments.
39583         * lib/strncasecmp.c: Use code from strcasecmp.c.
39584         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
39585         (strcasecmp): Work correctly in multibyte locales.
39586
39587 2005-08-16  Bruno Haible  <bruno@clisp.org>
39588
39589         * lib/mbiter.h: New file.
39590
39591 2005-08-16  Bruno Haible  <bruno@clisp.org>
39592
39593         * lib/mbfile.h: New file.
39594
39595 2005-08-16  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/mbchar.h: New file.
39598         * lib/mbchar.c: New file.
39599
39600 2005-08-16  Bruno Haible  <bruno@clisp.org>
39601
39602         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
39603         the valid ones. Makes the comparison operations transitive:
39604         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
39605         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
39606
39607 2005-08-15  Simon Josefsson  <jas@extundo.com>
39608
39609         * modules/ssize_t (License): Change to 'unlimited'.
39610
39611         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
39612
39613 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39614
39615         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
39616         Add comments for each pending glibc patch.
39617
39618 2005-08-15  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/regex.h (__restrict_arr): Don't define to __restrict if
39621         __cplusplus is defined.
39622
39623 2005-08-14  Jim Meyering  <jim@meyering.net>
39624
39625         Sync from coreutils.
39626
39627         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
39628         Use the hash-table-based cycle-detection code not just when
39629         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
39630         Reported by James Youngman in
39631         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
39632         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
39633         FTS_TIGHT_CYCLE_CHECK.
39634         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
39635         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
39636         once again.
39637         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
39638         * lib/fts.c (fd_safer): Remove decl.
39639         Include fcntl--.h rather than unistd-safer.h
39640         (fts_safe_changedir): Don't call fd_safer; no longer needed
39641         now that we include fcntl--.h.
39642
39643 2005-08-12  Simon Josefsson  <jas@extundo.com>
39644
39645         * modules/getndelim2: Use ssize_t module.
39646         * modules/getnline: Likewise.
39647         * modules/safe-read: Likewise.
39648         * modules/xreadlink: Likewise.
39649
39650         * modules/ssize_t: New file.
39651
39652 2005-08-12  Simon Josefsson  <jas@extundo.com>
39653
39654         * m4/readline.m4: Look for termcap, curses or ncurses if required.
39655
39656 2005-08-12  Simon Josefsson  <jas@extundo.com>
39657
39658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39659         ssize_t.
39660
39661 2005-08-12  Simon Josefsson  <jas@extundo.com>
39662
39663         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
39664         readline, getdelim and check_version.
39665         (Support for systems lacking ISO C 99: Sizes of integer types):
39666         Add size_max.
39667
39668 2005-08-12  Bruno Haible  <bruno@clisp.org>
39669
39670         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
39671
39672 2005-08-11  Simon Josefsson  <jas@extundo.com>
39673
39674         * modules/readline: New file.
39675
39676         * modules/strnlen (Files): Add strnlen.h.
39677
39678 2005-08-11  Simon Josefsson  <jas@extundo.com>
39679
39680         * m4/readline.m4: New file.
39681
39682 2005-08-11  Simon Josefsson  <jas@extundo.com>
39683
39684         * lib/readline.h, readline.c: New file.
39685
39686 2005-08-11  Simon Josefsson  <jas@extundo.com>
39687
39688         * doc/gnulib.texi (Initial import, Finishing touches): Mention
39689         gl_AVOID.
39690
39691 2005-08-11  Bruno Haible  <bruno@clisp.org>
39692
39693         * lib/strnlen.h (strnlen): Change parameter name to match comment.
39694
39695 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
39696
39697         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
39698
39699 2005-08-10  Simon Josefsson  <jas@extundo.com>
39700
39701         * tests/test-iconvme.c: New file.
39702
39703 2005-08-10  Simon Josefsson  <jas@extundo.com>
39704
39705         * m4/strnlen.m4: New file.
39706
39707         * m4/strndup.m4: Don't check for strnlen declaration, done in
39708         strnlen.m4.
39709
39710 2005-08-10  Simon Josefsson  <jas@extundo.com>
39711
39712         * lib/strndup.c: Use strnlen.h.
39713
39714         * lib/strnlen.h: New file.
39715
39716 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39717
39718         * README: Typos.
39719
39720 2005-08-02  Simon Josefsson  <jas@extundo.com>
39721
39722         * modules/readline: New file.
39723
39724 2005-08-02  Simon Josefsson  <jas@extundo.com>
39725
39726         * modules/getdelim: New file.
39727
39728         * modules/getline: Rewrite, don't use getndelim2.
39729
39730 2005-08-02  Simon Josefsson  <jas@extundo.com>
39731
39732         * m4/getline.m4: Separate out getdelim stuff into separate module.
39733
39734         * m4/getdelim.m4: New file.
39735
39736 2005-08-02  Simon Josefsson  <jas@extundo.com>
39737
39738         * lib/getline.h, getline.c: Rewrite.
39739
39740         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
39741
39742 2005-07-31  Bruno Haible  <bruno@clisp.org>
39743
39744         * lib/lock.h (gl_lock_initializer): New macro.
39745         (gl_lock_define_initialized): Use it.
39746         (gl_rwlock_initializer): New macro.
39747         (gl_rwlock_define_initialized): Use it.
39748         (gl_recursive_lock_initializer): New macro.
39749         (gl_recursive_lock_define_initialized): Use it.
39750
39751 2005-07-30  Karl Berry  <karl@gnu.org>
39752
39753         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
39754         Report from Ben Pfaff, regarding getopt.
39755
39756 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
39757
39758         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
39759         normal way.
39760         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
39761         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
39762         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
39763         (gl_GETOPT): Use the new macros.  Most of the implementation
39764         is moved to the new macros.  This is for programs like Emacs
39765         that don't want all the functionality of gl_GETOPT.
39766
39767 2005-07-26  Bruno Haible  <bruno@clisp.org>
39768
39769         * m4/lock.m4: Update from GNU gettext.
39770
39771 2005-07-26  Bruno Haible  <bruno@clisp.org>
39772
39773         * lib/lock.h: Update from GNU gettext.
39774         * lib/lock.c: Update from GNU gettext.
39775
39776 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39777
39778         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
39779         obsolescent AC_TRY_RUN.  Include the default includes files, for
39780         'exit'.
39781
39782 2005-07-24  Bruno Haible  <bruno@clisp.org>
39783
39784         * modules/visibility: New file.
39785         * MODULES.html.sh (Misc): Add visibility.
39786
39787 2005-07-24  Bruno Haible  <bruno@clisp.org>
39788
39789         * m4/visibility.m4: New file.
39790
39791 2005-07-24  Bruno Haible  <bruno@clisp.org>
39792
39793         * doc/visibility.texi: New file.
39794
39795 2005-07-22  Bruno Haible  <bruno@clisp.org>
39796
39797         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
39798         $(ALLOCA_H), redundant through BUILT_SOURCES.
39799         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
39800         redundant through BUILT_SOURCES.
39801         * modules/byteswap (Makefile.am): Remove explicit dependency on
39802         $(BYTESWAP_H), redundant through BUILT_SOURCES.
39803         * modules/fnmatch (Makefile.am): Remove explicit dependency on
39804         $(FNMATCH_H), redundant through BUILT_SOURCES.
39805         * modules/getopt (Makefile.am): Remove explicit dependency on
39806         $(GETOPT_H), redundant through BUILT_SOURCES.
39807         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
39808         redundant through BUILT_SOURCES.
39809         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
39810         redundant through BUILT_SOURCES.
39811         * modules/stdbool (Makefile.am): Remove explicit dependency on
39812         $(STDBOOL_H), redundant through BUILT_SOURCES.
39813         * modules/stdint (Makefile.am): Remove explicit dependency on
39814         $(STDINT_H), redundant through BUILT_SOURCES.
39815         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
39816         Remove explicit dependency on $(SYSEXITS_H).
39817         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
39818
39819 2005-07-18  Simon Josefsson  <jas@extundo.com>
39820
39821         * lib/check-version.c (check_version): Accept identical versions too.
39822
39823 2005-07-18  Bruno Haible  <bruno@clisp.org>
39824
39825         * modules/lock: New file.
39826         * MODULES.html.sh (Multithreading): New section.
39827
39828 2005-07-18  Bruno Haible  <bruno@clisp.org>
39829
39830         * m4/lock.m4: New file, from GNU gettext.
39831
39832 2005-07-18  Bruno Haible  <bruno@clisp.org>
39833
39834         * lib/lock.h: New file, from GNU gettext.
39835         * lib/lock.c: New file, from GNU gettext.
39836
39837 2005-07-18  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/lock.h (gl_once_t): New type.
39840         (gl_once_define, gl_once): New macros.
39841         * lib/lock.c (fresh_once): New variable.
39842         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
39843         functions.
39844
39845 2005-07-16  Simon Josefsson  <jas@extundo.com>
39846
39847         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
39848         workaround, suggested by Bruno.
39849
39850 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39851
39852         * modules/xalloc (Depends-on): Add xalloc-die.
39853         * modules/xvasprintf (Depends-on): Add xalloc-die.
39854
39855 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39856
39857         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
39858         with a minor change.
39859
39860 2005-07-15  Bruno Haible  <bruno@clisp.org>
39861
39862         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
39863         When using lib/poll.c, define poll as rpl_poll.
39864
39865 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
39866
39867         * modules/argp (Depends-on): Remove unlocked-io.
39868
39869 2005-07-14  Derek Price  <derek@ximbiot.com>
39870
39871         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
39872         for glob symlink bug.
39873
39874 2005-07-14  Bruno Haible  <bruno@clisp.org>
39875
39876         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
39877         Instead, test for *_unlocked function declarations directly.
39878
39879 2005-07-11  Simon Josefsson  <jas@extundo.com>
39880
39881         * modules/size_max: New file.
39882
39883         * modules/xsize: Depend on size_max module for size_max.m4.
39884
39885 2005-07-11  Simon Josefsson  <jas@extundo.com>
39886
39887         * lib/size_max.h: New file.
39888
39889 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
39890
39891         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
39892         copyright symbol and the year.
39893         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
39894         (version_etc_va): Use parameterized copyright notice.
39895         Reword to conform to the current GNU coding standards.
39896
39897 2005-07-11  Karl Berry  <karl@gnu.org>
39898
39899         * doc/gnulib.texi (Quoting): new node.
39900         (Initial import): more info, from Patrice.
39901
39902 2005-07-11  Bruno Haible  <bruno@clisp.org>
39903
39904         * gnulib-tool (func_usage): Document option --avoid.
39905         (Command line options): Handle --avoid.
39906         (func_acceptable): New function.
39907         (func_modules_transitive_closure): Use it.
39908
39909 2005-07-11  Bruno Haible  <bruno@clisp.org>
39910
39911         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
39912         Reported by Jim Meyering.
39913
39914 2005-07-10  Bruno Haible  <bruno@clisp.org>
39915
39916         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
39917         Needed when size_t is smaller than 'unsigned int'.
39918         Reported by Paul Eggert.
39919
39920 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39921
39922         * modules/argp (Depends-on): Add unlocked-io
39923
39924 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39925
39926         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
39927         block of defines.
39928
39929 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
39930
39931         * config/srclist.txt: Comment out regcomp.c, since we have a porting
39932         fix now.
39933
39934 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
39935         and Paul Eggert  <eggert@cs.ucla.edu>
39936
39937         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
39938         in wint_t, not wchar_t.  Remove now-unnecessary cast.
39939
39940 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39941
39942         * modules/regex (Files): Add lib/regex_internal.c,
39943         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
39944         (Depends-on): Add extensions.
39945         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
39946
39947 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
39950         pathconf.
39951         * m4/same.m4 (gl_SAME): Likewise.
39952         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
39953
39954         * m4/regex.m4: Adjust to new libc regex implementation.
39955         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
39956         all the .c and .h parts of (the new) regex.
39957         Quote the m4 stuff better.
39958         Check for RE_ICASE bug of old gnulib.
39959         Check for REG_STARTEND of recent libc.
39960         Rename local variables from jm_* to gl_*.
39961         Quote operand of "test -f".
39962         Say "recent enough" version of libc, not "version 2".
39963         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
39964         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
39965         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
39966         Remove check for btowc, isascii.
39967         Require AM_LANGINFO_CODESET.
39968
39969 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39970
39971         * lib/regex.c, regex.h: Sync from libc.
39972         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
39973         * lib/regexec.c:
39974         New files, synced from libc, except that regex_internal.h
39975         currently has a small porting fix.
39976
39977 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
39978
39979         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
39980         regex_internal.c, regexec.c.
39981         Add regex_internal.h too, but as a comment, since the libc version
39982         is currently broken in gnulib mode.
39983
39984 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
39985
39986         Support programs like Emacs that use gnulib but not gettext.
39987         * MODULES.html.sh (Internationalization functions): Add gettext-h.
39988         * modules/gettext-h: New file.
39989         * modules/gettext (Files): Remove lib/gettext.h.
39990         (Depends-on): Add gettext-h.
39991         (Makefile.am): Remove lib_SOURCES.
39992         * modules/argmatch, modules/c-stack, modules/closeout:
39993         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
39994         * modules/execute, modules/file-type, modules/getaddrinfo:
39995         * modules/getopt, modules/human, modules/javacomp:
39996         * modules/javaexec, modules/mkdir-p, modules/obstack:
39997         * modules/openat, modules/pagealign_alloc, modules/pipe:
39998         * modules/quotearg, modules/regex, modules/rpmatch:
39999         * modules/unicodeio, modules/userspec, modules/version-etc:
40000         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
40001         * modules/xsetenv:
40002         Depend on gettext-h, not gettext.
40003
40004 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40005
40006         * gnulib-tool (func_import): Add support for 'public domain' license.
40007         * modules/alloca, modules/atexit, modules/memmove:
40008         Now public domain, not GPL.
40009         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
40010         * modules/realloc, modules/strerror, modules/strtod:
40011         Now LGPL, not GPL.
40012
40013 2005-07-05  Bruno Haible  <bruno@clisp.org>
40014
40015         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
40016         autoconf CVS. Needed for mingw.
40017
40018 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40019
40020         Remove the dependency of the strftime module on the tzset module.
40021         * modules/strftime (Depends-on): Remove dependency on tzset.
40022
40023 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40024
40025         Remove the dependency of the strftime module on the tzset module.
40026         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
40027         gl_FUNC_TZSET_CLOBBER.
40028
40029 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40030
40031         Remove the dependency of the strftime module on the tzset module.
40032         * lib/strftime.c (my_strftime)
40033         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
40034         Copy the input structure, to work around some of the bug with
40035         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
40036         Solaris releases, you should also use the tzset module, but we won't
40037         require it as a dependency any more since we don't want LGPLed code
40038         to depend on GPLed code.
40039
40040 2005-07-02  Jim Meyering  <jim@meyering.net>
40041
40042         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
40043         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
40044         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
40045         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
40046
40047 2005-07-02  Jim Meyering  <jim@meyering.net>
40048
40049         * lib/backupfile.c (backup_args): Change a `0' to NULL.
40050
40051 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40052
40053         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
40054         declares only 'struct timespec;' (!).
40055
40056 2005-07-01  Jim Meyering  <jim@meyering.net>
40057
40058         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
40059         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
40060         * lib/save-cwd.c, tempname.c:
40061         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40062         and don't include <sys/file.h>).
40063
40064 2005-06-29  Jim Meyering  <jim@meyering.net>
40065
40066         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
40067         type name.  Use the variable name instead.
40068         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
40069         Likewise.
40070
40071 2005-06-28  Simon Josefsson  <jas@extundo.com>
40072
40073         * modules/check-version (Files): Add check-version.m4.
40074
40075 2005-06-28  Simon Josefsson  <jas@extundo.com>
40076
40077         * m4/check-version.m4: New file, suggested by Jim Meyering
40078         <jim@meyering.net>.
40079
40080 2005-06-28  Simon Josefsson  <jas@extundo.com>
40081
40082         * lib/check-version.h, lib/check-version.c: New files.
40083
40084 2005-06-28  Simon Josefsson  <jas@extundo.com>
40085
40086         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
40087         collision with global variable.  Better indentation.  Don't
40088         increment buffer pointer beyond buffer end.  Based on comments
40089         from Paul Eggert <eggert@cs.ucla.edu>.
40090
40091         * lib/base64.h: Indent.
40092
40093 2005-06-28  Simon Josefsson  <jas@extundo.com>
40094
40095         * doc/gnulib.texi (Library version handling): New section.
40096
40097 2005-06-28  Jim Meyering  <jim@meyering.net>
40098
40099         * check-module (find_included_lib_files): Hard-code another
40100         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
40101         but modules/fts-lgpl (correctly) does not list those files.
40102
40103         * modules/canonicalize (Files): Add lib/pathmax.h.
40104
40105 2005-06-25  Simon Josefsson  <jas@extundo.com>
40106
40107         * modules/check-version: New file.
40108
40109 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
40110
40111         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
40112         initializer of struct addrinfo, as an indication that we don't
40113         care how many members the structure has.
40114
40115 2005-06-24  Derek Price  <derek@ximbiot.com>
40116         and Bruno Haible  <bruno@clisp.org>
40117
40118         Remove stat module & update lstat.
40119         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
40120         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40121         * m4/stat.m4: Remove this file.
40122
40123 2005-06-24  Derek Price  <derek@ximbiot.com>
40124         and Bruno Haible  <bruno@clisp.org>
40125
40126         Remove stat module & update lstat.
40127         * lib/stat.c: Remove this file...
40128         (slash_aware_lstat): ...moving this content and its support...
40129         * lib/lstat.c (rpl_lstat): ...into here.
40130         * lib/lstat.h: New file.
40131
40132 2005-06-24  Derek Price  <derek@ximbiot.com>
40133         and Bruno Haible  <bruno@clisp.org>
40134
40135         Remove stat module & update lstat.
40136         * config/srclist.txt (libc sources): Remove stat.
40137
40138 2005-06-24  Derek Price  <derek@ximbiot.com>
40139         and Bruno Haible  <bruno@clisp.org>
40140
40141         Remove stat module & update lstat.
40142         * MODULES.html.sh (stat): Remove.
40143         * MODULES.html: Regenerated.
40144         * modules/lstat (Description): Correct function name.
40145         (Files): Add "lstat.h".
40146         (Depends-on): Remove stat, add xalloc, stat-macros.
40147         * modules/stat: Remove this file.
40148         (Include): Add "lstat.h", remove <sys/stat.h>.
40149
40150 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40151
40152         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
40153         (ranged_convert): Don't save conversion in a temporary struct.
40154         This causes a warning with GCC 4.0.0, and anyway in the typical
40155         case it's not worth the extra 100 bytes or so of code.
40156         (ranged_convert, __mktime_internal): When calling a function via a
40157         pointer P, use P () rather than (*P) (), as we now assume C89 or
40158         better.
40159
40160 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40161
40162         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
40163         "who -r" failed to give output.  Problem reported by Tim Waugh.
40164
40165         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
40166         (xcalloc): Use it to avoid needless tests.
40167         Problem reported by Jim Meyering.
40168
40169 2005-06-20  Derek Price  <derek@ximbiot.com>
40170
40171         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
40172         unnecessary for Autoconfs > 2.59c.
40173
40174 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40175
40176         * lib/argp.h (__option_is_short): Check upper limit of
40177         __key. Isprint() requires its argument to have the value
40178         of an unsigned char or EOF.
40179
40180 2005-06-16  Jim Meyering  <jim@meyering.net>
40181
40182         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
40183         when either N or S is zero.
40184
40185 2005-06-16  Derek Price  <derek@ximbiot.com>
40186
40187         * m4/bison.m4: Declare YACC & YFLAGS precious.
40188
40189 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
40190
40191         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
40192         multibyte string or pattern, fall back on unibyte matching.
40193         Problem reported by James Youngman.
40194
40195 2005-06-08  Bruno Haible  <bruno@clisp.org>
40196
40197         * modules/csharpcomp: New file.
40198         * MODULES.html.sh (C#): Add csharpcomp.
40199
40200 2005-06-08  Bruno Haible  <bruno@clisp.org>
40201
40202         * m4/csharpcomp.m4: New file, from GNU gettext.
40203
40204 2005-06-08  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/csharpcomp.h: New file, from GNU gettext.
40207         * lib/csharpcomp.c: New file, from GNU gettext.
40208         * lib/csharpcomp.sh.in: New file, from GNU gettext.
40209
40210 2005-06-08  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
40213         warning on mingw.
40214
40215 2005-06-07  Derek Price  <derek@ximbiot.com>
40216
40217         Sync from CVS.
40218         * lib/glob_.h: Indent nested #ifdef.
40219
40220 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40221
40222         Sync from coreutils.
40223         Use "file name" when talking about file names, instead of "filename"
40224         or "path", as per the GNU coding standards.
40225         * lib/mkdir-p.c: Renamed from makepath.c.
40226         (make_dir_parents): Renamed from make_path.  All callers changed.
40227         * lib/mkdir-p.h: Likewise.  All includers changed.
40228         * lib/filenamecat.c: Renamed from path-concat.c.
40229         (file_name_concat): Renamed from path_concat.  All callers changed.
40230         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
40231         * lib/filenamecat.h: Likewise.  All includers changed.
40232         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
40233         in comments or local variable names.
40234         * lib/basename.c: Likewise.
40235         * lib/canonicalize.c, canonicalize.h: Likewise.
40236         * lib/dirname.c, dirname.h: Likewise.
40237         * lib/euidaccess.c: Likewise.
40238         * lib/exclude.c: Likewise
40239         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
40240         * lib/fsusage.c, fsuage.h: Likewise.
40241         * lib/fts.c, fts_.h: Likewise.
40242         * lib/getcwd.c: Likewise.
40243         * lib/getloadavg.c: Likewise.
40244         * lib/mkstemp.c: Likewise.
40245         * lib/mountlist.c, mountlist.h: Likewise.
40246         * lib/openat.c, openat.h: Likewise.
40247         * lib/readlink-stub.c: Likewise.
40248         * lib/readutmp.c, readutmp.h: Likewise.
40249         * lib/rename.c: Likewise.
40250         * lib/rmdir.c: Likewise.
40251         * lib/same.c: Likewise.
40252         * lib/savedir.c: Likewise.
40253         * lib/stripslash.c: Likewise.
40254         * lib/tempname.c: Likewise.
40255         * lib/xreadlink.c: Likewise.
40256         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
40257         All uses changed.
40258         * lib/exclude.h: Likewise.
40259
40260         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
40261         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40262         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
40263         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40264         * lib/pathmax.h: Include <limits.h> unconditionally, since other
40265         files have been getting away with it for years (MORE/BSD 4.3
40266         is extinct now).
40267         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
40268         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40269
40270         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
40271         Define to 256, not 255, as per modern POSIX.
40272
40273 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40274
40275         Sync from coreutils.
40276         Use "file name" when talking about file names, instead of "filename"
40277         or "path", as per the GNU coding standards.
40278         * MODULES.html.sh: mkdir-p renamed from makepath.
40279         filenamecat renamed from path-concat.
40280         * modules/filenamecat: Renamed from modules/path-concat.
40281         (Files): filenamecat.h and filenamecat.c renamed from
40282         path-concat.h and path-concat.c.
40283         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
40284         (Include): filenamecat.h, not path-concat.h.
40285         * modules/mkdir-p: Renamed from modules/makepath.
40286         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
40287         makepath.c.
40288         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
40289         (Include): mkdir-p.h, not makepath.h.
40290
40291 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40292
40293         Sync from coreutils.
40294         * m4/mkdir-p.m4: Renamed from makepath.m4.
40295         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
40296         Rename files from makepath.c to mkdir-p.c, and from
40297         makepath.h to mkdir-p.h.
40298         * m4/filenamecat.m4: Renamed from path-concat.m4.
40299         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
40300         Rename files from path-concat.c to filenamecat.c,
40301         and from path-concat.h to filenamecat.h.
40302         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
40303         "file name" in local variables or comments.
40304         * m4/rename.m4: Likewise.
40305
40306 2005-06-01  Bruno Haible  <bruno@clisp.org>
40307
40308         * modules/csharpexec: New file.
40309         * MODULES.html.sh (C#): New section.
40310
40311 2005-06-01  Bruno Haible  <bruno@clisp.org>
40312
40313         * m4/csharp.m4: New file, from GNU gettext.
40314         * m4/csharpexec.m4: New file, from GNU gettext.
40315
40316 2005-06-01  Bruno Haible  <bruno@clisp.org>
40317
40318         * lib/csharpexec.h: New file, from GNU gettext.
40319         * lib/csharpexec.c: New file, from GNU gettext.
40320         * lib/csharpexec.sh.in: New file, from GNU gettext.
40321
40322 2005-05-31  Derek Price  <derek@ximbiot.com>
40323             Paul Eggert  <eggert@cs.ucla.edu>
40324
40325         Sync from cvs.
40326         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40327
40328 2005-05-31  Derek Price  <derek@ximbiot.com>
40329             Paul Eggert  <eggert@cs.ucla.edu>
40330
40331         Sync from cvs.
40332         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40333
40334 2005-05-29  Derek Price  <derek@ximbiot.com>
40335
40336         * config/srclist.txt (glob_.h, glob.c): Add these files.
40337
40338 2005-05-29  Derek Price  <derek@ximbiot.com>
40339
40340         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
40341         * modules/glob: New file.
40342         * modules/getlogin_r: Add link to POSIX spec in description.
40343
40344 2005-05-29  Derek Price  <derek@ximbiot.com>
40345             Paul Eggert  <eggert@cs.ucla.edu>
40346
40347         * m4/glob.m4: New file.
40348
40349 2005-05-29  Derek Price  <derek@ximbiot.com>
40350             Paul Eggert  <eggert@cs.ucla.edu>
40351
40352         * lib/glob_.h, lib/glob.c: New files.
40353
40354 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40355
40356         * modules/fts (Files): Remove m4/inttypes-pri.m4.
40357         * modules/fts-lgpl (Depends-on): Remove gettext.
40358
40359 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40360
40361         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
40362         and don't require gt_INTTYPES_PRI.
40363
40364 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40365
40366         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
40367
40368         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
40369         the configuration hassle isn't worth it.
40370         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
40371         (LONGEST_MODIFIER, PRIuMAX): Remove.
40372
40373 2005-05-27  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/getlogin_r.h: Remove second include of <stddef.h>.
40376
40377 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
40378
40379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
40380         _POSIX_PTHREAD_SEMANTICS for Solaris.
40381
40382 2005-05-25  Derek Price  <derek@ximbiot.com>
40383
40384         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
40385
40386 2005-05-25  Derek Price  <derek@ximbiot.com>
40387             Paul Eggert  <eggert@cs.ucla.edu>
40388
40389         * modules/getlogin_r, m4/getlogin_r.m4: New files.
40390         * lib/getlogin_r.c, getlogin_r.h: New files.
40391
40392 2005-05-25  Bruno Haible  <bruno@clisp.org>
40393             Derek Price  <derek@ximbiot.com>
40394
40395         * lib/getlogin_r.h: Simplify API documentation.
40396
40397 2005-05-23  Derek Price  <derek@ximbiot.com>
40398
40399         * modules/minmax (Files): Add m4/minmax.m4.
40400         (configure.ac): Add gl_MINMAX.
40401
40402 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
40403
40404         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
40405         so that unistd-safer.h (GPL'ed code) need not be included.
40406
40407 2005-05-22  Bruno Haible  <bruno@clisp.org>
40408
40409         * m4/minmax.m4: New file.
40410         Based on a patch by Derek Price <derek@ximbiot.com>.
40411
40412 2005-05-22  Bruno Haible  <bruno@clisp.org>
40413
40414         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
40415         (INT64_MIN): Fix definition.
40416         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
40417
40418         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
40419         NEED_SIGNED_INT_TYPES.
40420
40421         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
40422         HAVE_SYSTEM_INTTYPES.
40423
40424 2005-05-22  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
40427         Also include <sys/param.h> if it defines MIN, MAX.
40428         Based on a patch by Derek Price <derek@ximbiot.com>.
40429
40430 2005-05-21  Jim Meyering  <jim@meyering.net>
40431
40432         * modules/fts (Files): Add m4/inttypes-pri.m4.
40433         (Depends-on): Add lstat and remove gettext.  Alphabetize.
40434
40435 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40436
40437         New fts module.
40438         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
40439         (setup_dir, free_dir): New functions.
40440         (enter_dir, leave_dir): Define trivial
40441         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
40442         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
40443         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
40444         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
40445         Move to fts-cycle.c.
40446         (fts_open): Use setup_dir.
40447         (fts_close): Use free_dir.
40448         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
40449         This adds a label and some gotos, but the alternatives were messier.
40450         Check for memory allocation failure when entering a dir.
40451         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
40452         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
40453         (FTS): New member fts_cycle, that is a union that contains the
40454         old active_dir_ht and cycle_state.  All uses changed to mention
40455         fts_cycle.ht and fts_cycle.state.
40456         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
40457         fts.c, with the following changes:
40458         (setup_dir, free_dir): New functions.
40459         (enter_dir): Now returns bool.  Return true if successful, false
40460         if memory exhausted.  All callers changed.
40461         Do not bother partly cleaning up on
40462         memory allocation failure; that is free_dir's job.
40463         However, free ad if hash_insert fails, to avoid memory leak.
40464         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
40465         fts->fts_options to see which union member to use.
40466
40467 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40468
40469         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
40470         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
40471
40472 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40473
40474         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
40475
40476 2005-05-20  Jim Meyering  <jim@meyering.net>
40477
40478         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
40479         Now a macro, to pacify GCC.
40480
40481 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
40482
40483         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
40484         of -1.
40485
40486 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
40487
40488         * lib/chown.c (rpl_chown): Return -1 on failure.
40489
40490 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
40491
40492         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
40493         Don't check for stddef.h.
40494         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
40495         don't use its results.
40496         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
40497         since we include them unconditionally.  Don't require
40498         AM_STDBOOL_H, since stdbool is a prerequisite.
40499         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
40500         since we assume C89 or better.
40501         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
40502         as we don't use their results.
40503         Don't check for fchdir, memmove, memset, strrchr, as we use
40504         them unconditionally.
40505         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
40506         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
40507
40508 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
40509
40510         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
40511         Include <stddef.h> unconditionally, since we assume C89 now.
40512         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
40513         * lib/fts.c: Include fts_.h first, to check interface.
40514         Do not include intprops.h; no longer needed.
40515         Include cycle-check.h and hash.h, since fts_.h no longer does.
40516         Remove unnecessary casts of closedir to void.
40517         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
40518         decide whether to decrement nlinks.
40519         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
40520         (FTS): Use struct hash_table * instead of Hash_table, so that
40521         we no longer need to include hash.h here.
40522
40523 2005-05-18  Jim Meyering  <jim@meyering.net>
40524
40525         * modules/dirfd (License): Change to LGPL.  Most of the code
40526         is already in the public domain.
40527
40528 2005-05-18  Jim Meyering  <jim@meyering.net>
40529
40530         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
40531         Reported by Yoann Vandoorselaere.
40532
40533 2005-05-17  Jim Meyering  <jim@meyering.net>
40534
40535         * m4/fts.m4: New file, from coreutils.
40536
40537 2005-05-17  Jim Meyering  <jim@meyering.net>
40538
40539         * lib/fts.c, lib/fts_.h: New files, from coreutils.
40540
40541 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40542
40543         Sync from coreutils.
40544         * m4/unlinkdir.m4: New file.
40545
40546 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40547
40548         Sync from coreutils.
40549         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
40550         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
40551         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
40552         White space changes only.
40553         * lib/makepath.c (make_path): Port to hosts where leading "//" is
40554         special.
40555         * lib/yesno.c: Include getline.h, not ctype.h.
40556         (yesno): Don't remove leading white space; POSIX doesn't allow it.
40557         Use getline to remove arbitrary restriction on response length.
40558
40559 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40560
40561         * config/srclist-update: Spell out "Street" in FSF postal
40562         mail address; this is the style the FSF seems to prefer.
40563
40564         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
40565         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
40566         this updates FSF postal mail address.
40567
40568         Sync from coreutils.
40569         * modules/unlinkdir: New file.
40570         * modules/yesno (Depends-on): Add getline.
40571         * MODULES.html.sh (File system functions): Add unlinkdir.
40572
40573 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40574
40575         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
40576         lib/strsep.h:
40577         Change the initial comment to refer to GPL, not LGPL.
40578         gnulib-tool will change it to LGPL as needed.
40579
40580         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
40581         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
40582         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
40583         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
40584         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
40585         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
40586         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
40587         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
40588         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
40589         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
40590         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
40591         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
40592         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
40593         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
40594         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
40595         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
40596         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
40597         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
40598         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
40599         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
40600         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
40601         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
40602         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
40603         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
40604         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
40605         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
40606         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
40607         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
40608         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
40609         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
40610         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
40611         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
40612         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
40613         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
40614         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
40615         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
40616         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
40617         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
40618         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
40619         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
40620         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
40621         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
40622         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
40623         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
40624         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
40625         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
40626         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
40627         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
40628         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
40629         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
40630         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40631         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
40632         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
40633         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
40634         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
40635         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
40636         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
40637         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
40638         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
40639         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
40640         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
40641         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
40642         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
40643         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
40644         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
40645         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
40646         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
40647         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
40648         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
40649         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
40650         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
40651         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
40652         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
40653         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
40654         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
40655         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
40656         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
40657         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
40658         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
40659         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
40660         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
40661         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
40662         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
40663         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
40664         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
40665         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
40666         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
40667         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
40668         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
40669         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
40670         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
40671         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
40672         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
40673         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
40674         lib/yesno.c, lib/yesno.h:
40675         Update FSF postal mail address.
40676
40677 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40678
40679         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
40680         tests/test-memmem.c, tests/test-stpncpy.c:
40681         Update FSF postal mail address.
40682
40683 2005-05-13  Bruno Haible  <bruno@clisp.org>
40684
40685         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
40686         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
40687         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
40688         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
40689         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
40690         Add support for 64-bit integers in the MSVC compiler.
40691
40692 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40693
40694         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
40695
40696 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
40697
40698         * gnulib-tool (func_import): Sort and uniquify recommended includes.
40699
40700 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
40701
40702         * doc/getdate.texi (General date syntax): Don't say that date
40703         date --iso-8601=ns generates acceptable dates; it doesn't yet.
40704         Problem reported by Nic Ferrier.
40705
40706 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40707
40708         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
40709         specified in ai_socktype. Fix invalid ai_protocol
40710         check. ai_protocol is usually set to 0 or depending on
40711         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
40712         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
40713         ai_socktype / ai_protocol in the returned addrinfo structure.
40714
40715 2005-05-10  Simon Josefsson  <jas@extundo.com>
40716
40717         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
40718         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40719
40720 2005-05-10  Karl Berry  <karl@gnu.org>
40721
40722         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
40723         (from http://www.gnu.org/licenses).
40724         * doc/COPYING.LIB: also rename to COPYING.LESSER.
40725         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
40726         fdl.texi suffices.
40727
40728 2005-05-10  Karl Berry  <karl@gnu.org>
40729
40730         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
40731         (COPYING.DOC): remove.
40732
40733         * config/srclist-update: new FSF address.
40734
40735 2005-05-10  Derek Price  <derek@ximbiot.com>
40736
40737         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
40738         possible.
40739
40740 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40741             Bruno Haible  <bruno@clisp.org>
40742
40743         * modules/inet_ntop: New file.
40744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40745         inet_ntop.
40746
40747 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40748             Bruno Haible  <bruno@clisp.org>
40749
40750         * m4/inet_ntop.m4: New file.
40751
40752 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40753             Bruno Haible  <bruno@clisp.org>
40754
40755         * lib/inet_ntop.h: New file.
40756         * lib/inet_ntop.c: New file, from glibc with modifications.
40757
40758 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
40759
40760         * modules/time_r (License): Change to LGPL.
40761         * modules/extensions (License): Change to LGPL.  Actually,
40762         the license is more permissive than that, but currently gnulib-tool
40763         doesn't know how to handle more-permissive licenses.
40764
40765         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
40766         Problem reported by Dave Love.
40767
40768 2005-05-08  Jim Meyering  <jim@meyering.net>
40769
40770         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
40771         blank.
40772
40773 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40774
40775         * modules/argmatch (Depends-on): Add stdbool.
40776         * modules/backupfile (Depends-on): Likewise.
40777         * modules/chdir-long (Depends-on): Likewise.
40778         * modules/closeout (Depends-on): Likewise.
40779         * modules/cycle-check (Depends-on): Likewise.
40780         * modules/dirname (Depends-on): Likewise.
40781         * modules/fnmatch (Depends-on): Likewise.
40782         * modules/fsusage (Depends-on): Likewise.
40783         * modules/fwriteerror (Depends-on): Likewise.
40784         * modules/getcwd (Depends-on): Likewise.
40785         * modules/getloadavg (Depends-on): Likewise.
40786         * modules/hard-locale (Depends-on): Likewise.
40787         * modules/makepath (Depends-on): Likewise.
40788         * modules/mountlist (Depends-on): Likewise.
40789         * modules/nanosleep (Depends-on): Likewise.
40790         * modules/posixtm (Depends-on): Likewise.
40791         * modules/quotearg (Depends-on): Likewise.
40792         * modules/readtokens (Depends-on): Likewise.
40793         * modules/readtokens0 (Depends-on): Likewise.
40794         * modules/readutmp (Depends-on): Likewise.
40795         * modules/save-cwd (Depends-on): Likewise.
40796         * modules/strftime (Depends-on): Likewise.
40797         * modules/userspec (Depends-on): Likewise.
40798         * modules/utimecmp (Depends-on): Likewise.
40799         * modules/xgetcwd (Depends-on): Likewise.
40800         * modules/xnanosleep (Depends-on): Likewise.
40801         * modules/xstrtod (Depends-on): Likewise.
40802         * modules/yesno (Depends-on): Likewise.
40803
40804 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40805
40806         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
40807         needless checks.
40808
40809 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40810
40811         Merge from coreutils.  Among other things,
40812         add bulletproofing for cases where stdin, stdout, or stderr are closed.
40813         * lib/fd-safer.c: New file.
40814         * lib/fcntl-safer.h, open-safer.c: Remove.
40815         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
40816         * lib/dup-safer.c: Include unistd-safer.h first.
40817         Don't include errno.h.
40818         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
40819         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
40820         * lib/file-type.c: Rely on file-type.h change.
40821         * lib/getloadavg.c: Include unistd-safer.h.
40822         (getloadavg): Use safer open.
40823         * lib/getusershell.c: Include "stdio-safer.h".
40824         (getusershell): Use safer fopen.
40825         * lib/long-options.c (long_options): Use NULL rather than 0.
40826         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
40827         'free'.
40828         * lib/modechange.c: Likewise.
40829         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
40830         (MODE_DONE): New constant.
40831         (struct mode_change): Remove 'next' member.
40832         (make_node_op_equals): New function; like the old one of the
40833         same name, except it allocates an array.
40834         (mode_compile, mode_create_from_ref): Use it.
40835         (mode_compile): Allocate result as an array, not a linked list.
40836         Parse octal string ourself, so that we catch mistakes like "+0".
40837         (mode_adjust): Arg is an array, not a linked list.
40838         * lib/modechange.c: Include stat-macros.h, xalloc.h.
40839         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
40840         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
40841         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
40842         Remove.  This is now stat-macros.h's job.
40843         (talloc): Remove.  All callers replaced by xalloc, so that
40844         our invokers don't have to worry about reporting memory failures.
40845         (make_node_op_equals): Remove.
40846         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40847         New constants.
40848         (struct mode_change): Moved here from modechange.h.
40849         (mode_append_entry): Remove.
40850         (mode_compile): Remove MASKED_OPS arg, since it encouraged
40851         apps to have incorrect behavior.  Use simpler algorithm for head
40852         and tail.  Don't futz with umask; that's now the job of mode_adjust.
40853         Detect more invalid usages rather than having somewhat-random behavior.
40854         Don't insert an "a=" action, as that leads to incorrect behavior.
40855         (mode_compile, mode_create_from_ref): Return NULL on error instead
40856         of an enum, since now there's only one way to have an error.  All
40857         callers changed.
40858         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
40859         at the correct time.  Simplify calculation of "+u" and its ilk.
40860         Don't mishandle "+X".
40861         (mode_free): Remove "register" and localize decls.
40862         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40863         (struct mode_change): Move to modechange.c; callers don't
40864         need to see this stuff.
40865         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
40866         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
40867         (mode_change, mode_adjust): Reflect the new signatures noted above.
40868         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
40869         that might redefine system include files.
40870         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
40871         (my_usleep): Use NULL rather than (void *) 0.
40872         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
40873         Use siginterrupt to specify that system calls should be interrupted.
40874         (rpl_nanosleep): Move initialization of suspended closer to call of
40875         my_usleep.
40876         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
40877         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
40878         (desirable_utmp_entry): New function.
40879         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
40880         using x2nrealloc, to simplify logic.
40881         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
40882         size calculation.  Do not assume utmp file is a regular file.
40883         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
40884         (READ_UTMP_CHECK_PIDS): New constant.
40885         * lib/save-cwd.c: Include unistd-safer.h.
40886         (save_cwd): Use fd_safer.
40887         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
40888         [!_LIBC] Include "stat-macros.h" instead.
40889         * lib/unistd-safer.h (fd_safer): New decl.
40890
40891 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40892
40893         * modules/getloadavg (Depends-on): Add unistd-safer.
40894         * modules/getusershell (Depends-on): Add stdio-safer.
40895         * modules/lstat (Depends-on): Remove xalloc.
40896         * modules/mkstemp (Depends-on): Add stat-macros.
40897         * modules/modechange (Depends-on): Remove xstrtol.
40898         Add stat-macros, xalloc.
40899         * modules/save-cwd (Depends-on): Add unistd-safer.
40900         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
40901         * modules/unistd-safer (Files): Add lib/fd-safer.c
40902         (Makefile.am): Remove lib_SOURCES.
40903
40904         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
40905         Remove fcntl-safer; unistd-safer supersedes it.
40906
40907 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40908
40909         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
40910         AC_HEADER_STAT.
40911         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
40912         (gl_PREREQ_CHOWN): Remove.
40913         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
40914         it.  Don't require AC_HEADER_STAT.
40915         (gl_PREREQ_LSTAT): Remove.
40916         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
40917         Don't require AC_HEADER_STAT.
40918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
40919         (gl_PREREQ_RMDIR): Remove.
40920         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
40921         mention stat-macros.h or AC_HEADER_STAT, since we'll make
40922         the stat-macros module a prerequisite.
40923         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
40924         * m4/filemode.m4 (gl_FILEMODE): Likewise.
40925         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
40926         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
40927         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
40928         variable names.
40929         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
40930         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
40931         variable prefixes.
40932         * m4/fcntl-safer.m4: Remove.
40933         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
40934         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
40935         Invoke gl_PREREQ_FD_SAFER.
40936         (gl_PREREQ_FD_SAFER): New macro.
40937         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
40938         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
40939         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
40940         Remove duplicate call to AC_LIBOBJ(readutmp).
40941         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
40942
40943         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
40944         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
40945
40946 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40947
40948         * MODULES.html.sh (Misc): Add byteswap.
40949
40950 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40951
40952         * modules/getcwd (Depends-on): Add extensions.
40953         * modules/openat (Depends-on): Likewise.
40954
40955 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40956
40957         * modules/byteswap: New file.
40958
40959 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40960
40961         * m4/byteswap.m4: New file.
40962
40963 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
40964
40965         * lib/byteswap_.h: New file.
40966
40967 2005-04-25  Karl Berry  <karl@gnu.org>
40968
40969         * m4/gettext.m4: Update from GNU gettext 0.14.4.
40970
40971 2005-04-25  Albert Chin  <china@thewrittenword.com>
40972
40973         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
40974         Toolkit C bug.
40975
40976 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
40977
40978         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
40979         (func_ln_if_changed) Remove forcibly for no error message
40980         in case file does not exist.
40981
40982 2005-04-19  Simon Josefsson  <jas@extundo.com>
40983
40984         * gnulib-tool (Options): Make --symlink mean --symbolic.
40985
40986 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
40987
40988         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
40989
40990 2005-04-16  Simon Josefsson  <jas@extundo.com>
40991
40992         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
40993
40994 2005-04-15  Simon Josefsson  <jas@extundo.com>
40995
40996         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
40997
40998 2005-04-15  Simon Josefsson  <jas@extundo.com>
40999
41000         * gnulib-tool: Rename --symlink to --symbolic.
41001
41002 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
41003
41004         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
41005         symbolic links to files instead of copying/moving.  Add --aux-dir,
41006         specifying directory relative --dir where auxiliary build tools
41007         are placed.
41008
41009 2005-04-14  Bruno Haible  <bruno@clisp.org>
41010
41011         * modules/allocsa (License): Change to LGPL.
41012         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41013
41014 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41015
41016         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
41017         that "UTC +1 second" continues to work.  Problem reported
41018         by Dmitry V. Levin.
41019         (relunit_snumber): New rule.
41020         (relunit): Use it.
41021
41022 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
41023
41024         * lib/getdate.y (universal_time_zone_table): New constant.
41025         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
41026         universal_time_zone_table.
41027         (lookup_zone): Prefer universal_time_zone_table to
41028         local_time_zone_table, so that "GMT" time stamps are allowed in
41029         London during the summer.  Problem reported by Ian Abbott.
41030
41031 2005-04-12  Jim Meyering  <jim@meyering.net>
41032
41033         * lib/human.c (humblock): Set *options even when returning due to
41034         xstrtoumax conversion failure.  Thanks to a used-uninitialized
41035         warning from gcc-4.
41036
41037 2005-04-09  Jim Meyering  <jim@meyering.net>
41038
41039         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
41040         -Wuninitialized: initialize tm0.tm_year.
41041
41042 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41043
41044         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
41045         count, since there's no maximum.  All uses changed.
41046         Add member dsts_seen.
41047         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
41048         not being INT_MAX.
41049         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
41050         Use pc_rels_seen to decide whther a date is absolute.
41051
41052         * lib/getdate.y (number): Don't overwrite year.
41053         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
41054         check.
41055
41056 2005-04-02  Simon Josefsson  <jas@extundo.com>
41057
41058         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
41059         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
41060
41061 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
41062
41063         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
41064         where no absolute path name can be longer than PATH_MAX.
41065
41066 2005-03-27  Jim Meyering  <jim@meyering.net>
41067
41068         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
41069
41070 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
41071
41072         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
41073         "one's complement" -> "ones' complement" in comment, as per Knuth.
41074         "value of type" -> "type or expression" in comment.
41075         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
41076
41077 2005-03-26  Jim Meyering  <jim@meyering.net>
41078
41079         Comment nits.
41080         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
41081         Correct typos: s/or/of/.
41082
41083 2005-03-26  Jim Meyering  <jim@meyering.net>
41084
41085         * modules/check-include-files: Move to ../ and rename to...
41086         * check-module: ...this.
41087
41088 2005-03-25  Jim Meyering  <jim@meyering.net>
41089
41090         * modules/xvasprintf (Files): Add xalloc.h.
41091
41092 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41093
41094         * modules/gettext (Files): config/config.rpath ->
41095         build-aux/config.rpath
41096         * modules/iconv (Files): Likewise.
41097         Problem reported by Oskar Liljeblad.
41098
41099 2005-03-23  Jim Meyering  <jim@meyering.net>
41100
41101         * modules/check-include-files: New script to check for
41102         missing dependencies, multiple includes, etc.
41103
41104         * modules/c-strtold (Depends-on): Add xalloc.
41105         * modules/c-strtod (Depends-on): Add xalloc.
41106         * modules/hash (Depends-on): Add xalloc.
41107         (Files): Remove lib/xalloc.h.
41108
41109         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
41110         * modules/userspec (Files): Add lib/inttostr.h.
41111
41112 2005-03-23  Jim Meyering  <jim@meyering.net>
41113
41114         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
41115
41116 2005-03-22  Jim Meyering  <jim@meyering.net>
41117
41118         * modules/stat-macros: New module.
41119         * modules/canonicalize, modules/euidaccess, modules/file-type,
41120         * modules/filemode, modules/lchown, modules/makepath,
41121         * modules/rmdir, modules/stat: Depend on new stat-macros module
41122         rather than listing lib/stat-macros.h manually.
41123         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
41124
41125 2005-03-22  Jim Meyering  <jim@meyering.net>
41126
41127         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
41128
41129 2005-03-22  Bruno Haible  <bruno@clisp.org>
41130
41131         * config/srclist.txt: Replace target directory 'config' with
41132         'build-aux'.
41133         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
41134         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
41135         ../build-aux/.
41136
41137 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
41138
41139         * modules/chdir-long (Depends-on): Add mempcpy.
41140
41141         * modules/acl, modules/backupfile, modules/c-strtod,
41142         modules/c-strtold, modules/canon-host, modules/canonicalize,
41143         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
41144         modules/exclude, modules/exitfail, modules/file-type,
41145         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
41146         modules/getdate, modules/getline, modules/getpagesize,
41147         modules/getpass, modules/getugroups, modules/group-member,
41148         modules/hard-locale, modules/hash, modules/human, modules/idcache,
41149         modules/inttostr, modules/long-options, modules/makepath,
41150         modules/md5, modules/memcasecmp, modules/memcoll,
41151         modules/modechange, modules/mountlist, modules/path-concat,
41152         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
41153         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
41154         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
41155         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
41156         modules/strftime, modules/strndup, modules/strverscmp,
41157         modules/timespec, modules/unlocked-io, modules/userspec,
41158         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
41159         modules/yesno:
41160         Remove lib_SOURCES line from Makefile.am section, as this is now
41161         done automatically by the corresponding Autoconf macro.
41162
41163 2005-03-21  Jim Meyering  <jim@meyering.net>
41164
41165         Changes imported from coreutils.
41166
41167         * lib/cycle-check.c: Don't include xalloc.h.
41168
41169         * lib/path-concat.c: Don't include assert.h.
41170         (path_concat): Remove assertion that would have triggered
41171         for ABASE starting with more than one slash.
41172         Reported by Andreas Schwab.
41173
41174         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
41175         properly when ABASE is an absolute file name.
41176         Correct the description of this function.
41177         Include <assert.h>.
41178         Add an assertion and a test driver.
41179         This fixes a bug introduced on 2004-07-02.
41180         Andreas Schwab reported the resulting failure of cp --parents:
41181         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
41182
41183 2005-03-21  Jim Meyering  <jim@meyering.net>
41184
41185         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
41186         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
41187
41188 2005-03-21  Jim Meyering  <jim@meyering.net>
41189         and  Paul Eggert  <eggert@cs.ucla.edu>
41190
41191         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
41192         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
41193         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
41194         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
41195         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
41196         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
41197         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
41198         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
41199         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
41200         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
41201         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
41202         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
41203         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
41204         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
41205         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
41206         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
41207         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
41208         for these modules.
41209
41210 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
41211
41212         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
41213         (which shouldn't happen), generate nothing instead of returning 0
41214         immediately, so that nstrftime (NULL, ...) doesn't return 0.
41215
41216 2005-03-16  Bruno Haible  <bruno@clisp.org>
41217
41218         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
41219         HAVE_LONGLONG_64BIT.
41220
41221 2005-03-16  Bruno Haible  <bruno@clisp.org>
41222
41223         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
41224         HAVE_LONGLONG_64BIT.
41225
41226 2005-03-16  Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
41229         HAVE_LONGLONG_64BIT.
41230
41231 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41232
41233         * lib/strftime.c (my_strftime): Prepend space to format so that we can
41234         reliably distinguish strftime failure from empty output on POSIX
41235         hosts.
41236
41237 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41238
41239         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
41240         (iconv_string): Don't guess a size-zero buffer, as that might cause
41241         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
41242         result would be 'too large', where 'too large' is (heuristically)
41243         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
41244         overflow concerns.  This will prevent some unwanted malloc failures
41245         when the inputs are very large.
41246
41247 2005-03-15  Karl Berry  <karl@gnu.org>
41248
41249         * config/srclist.txt (config.rpath): from gettext.
41250         * config/config.rpath: update.
41251
41252 2005-03-15  Bruno Haible  <bruno@clisp.org>
41253
41254         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
41255         to 'negate'.
41256
41257         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
41258         variable.
41259
41260         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
41261         results.
41262
41263 2005-03-14  Simon Josefsson  <jas@extundo.com>
41264
41265         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
41266         <fx@gnu.org>.
41267
41268 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
41271         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
41272         intprops.h.
41273         * lib/strtol.c: Likewise.
41274
41275 2005-03-14  Jim Meyering  <jim@meyering.net>
41276
41277         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
41278         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
41279         to be nonzero so that we (and caller) can detect the difference
41280         between a valid zero-length expansion and an error return, even
41281         when the underlying strftime fails before writing anything into
41282         that location.
41283
41284 2005-03-14  Bruno Haible  <bruno@clisp.org>
41285
41286         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
41287         Update from GNU gettext 0.14.3.
41288
41289 2005-03-10  Jim Meyering  <jim@meyering.net>
41290
41291         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
41292
41293 2005-03-10  Jim Meyering  <jim@meyering.net>
41294
41295         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
41296         so that this module works on systems without fchdir.
41297
41298 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
41299
41300         Factor int-properties macros into a single file, except for
41301         glibc-related files.
41302         * lib/intprops.h: New file.
41303         * lib/getloadavg.c: Include it instead of limits.h.
41304         (INT_STRLEN_BOUND): Remove.
41305         * lib/human.c: Include intprops.h.
41306         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
41307         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
41308         302/1000.
41309         * lib/inttostr.h: Include intprops.h instead of limits.h.
41310         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
41311         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
41312         for consistency with intprops.h.
41313         (time_t_is_integer, twos_complement_arithmetic): Use them.
41314         * lib/sig2str.h: Include <signal.h>, intprops.h.
41315         (INT_STRLEN_BOUND): Remove.
41316         * lib/strftime.c (TYPE_SIGNED): Remove.
41317         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
41318         * lib/strtol.c: Adjust comments to match intprops.h.
41319         * lib/userspec.c: Include intprops.h.
41320         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
41321         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
41322         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
41323         instead of rolling our own expressions.
41324         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
41325
41326         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
41327         instead of int.
41328         (my_strftime): Do not mishandle years close to INT_MAX, by doing
41329         the right thing even if adding 1900 would overflow.  Similarly
41330         for tm_mon + 1 and tm_yday + 1.
41331         Make %Y always equivalent to %C%y, and similarly for %G and %g.
41332         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
41333         (DO_SIGNED_NUMBER): New macro.
41334         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
41335
41336 2005-03-07  Bruno Haible  <bruno@clisp.org>
41337
41338         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
41339
41340 2005-03-07  Bruno Haible  <bruno@clisp.org>
41341
41342         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
41343
41344 2005-03-04  Derek R. Price  <derek@ximbiot.com>
41345
41346         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
41347         (func_import): Only replace files via --import when they have actually
41348         changed.
41349
41350 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41351
41352         * m4/mmap-anon.m4: New file.
41353         * m4/pagealign_alloc.m4: New file.
41354
41355 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41356             Bruno Haible  <bruno@clisp.org>
41357
41358         * modules/pagealign_alloc: New file.
41359         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
41360
41361 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41362             Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/pagealign_alloc.h: New file.
41365         * lib/pagealign_alloc.c: New file.
41366
41367 2005-03-03  Bruno Haible  <bruno@clisp.org>
41368
41369         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
41370         Use an all-permissive copyright notice, recommended by RMS.
41371
41372 2005-03-02  Bruno Haible  <bruno@clisp.org>
41373
41374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
41375         of AIX, the replacement has to be done only after <string.h> is
41376         included, therefore not in config.h. stpncpy.h does the replacement,
41377         and stpncpy.c uses it.
41378
41379 2005-03-02  Bruno Haible  <bruno@clisp.org>
41380
41381         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
41382         stpncpy.c uses it.
41383
41384 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41385
41386         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
41387         The workaround isn't strictly needed for POSIX conformance, and
41388         it's too much of a pain to configure and maintain.  We'll ask
41389         people to fix their kernels instead.
41390         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
41391         (NANOSLEEP_BUG_WORKAROUND): Remove.
41392         (xnanosleep): Remove the workaround.
41393
41394 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41395
41396         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
41397         Reported by Derek Price.
41398         (Include): Add "timespec.h".
41399
41400         * modules/xnanosleep (Depends-on): Remove gethrxtime.
41401
41402 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41403
41404         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
41405         to detect nanosleep bug.
41406
41407 2005-03-01  Bruno Haible  <bruno@clisp.org>
41408
41409         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
41410
41411 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         * modules/gethrxtime: New file.
41414         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
41415         (Depends-on): Add gethrxtime.
41416         (configure.ac): Add gl_XNANOSLEEP.
41417         (Makefile.am): Remove lib_SOURCES line.
41418
41419 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41420
41421         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
41422         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
41423
41424 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41425
41426         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
41427         * lib/timespec.h (gettime): Return void, since it always
41428         succeeds now.  All uses changed.
41429         * lib/gettime.c (gettime) Likewise.
41430         [HAVE_NANOTIME]: Prefer nanotime.
41431         Assume gettimeofday succeeds, as POSIX requires.
41432         Assime time () succeeds, since other code already does.
41433         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
41434         (timespec_subtract): Remove.
41435         (NANOSLEEP_BUG_WORKAROUND): New constant.
41436         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
41437         things considerably.  Use it only on GNU/Linux hosts, since the
41438         workaround shouldn't be needed elsewhere.
41439
41440 2005-02-24  Bruno Haible  <bruno@clisp.org>
41441
41442         * modules/gettext (Files): Add m4/glibc2.m4.
41443
41444 2005-02-24  Bruno Haible  <bruno@clisp.org>
41445
41446         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
41447         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
41448         * m4/progtest.m4:
41449         Update from GNU gettext 0.14.2.
41450         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
41451
41452 2005-02-24  Bruno Haible  <bruno@clisp.org>
41453
41454         * lib/localcharset.c: Update from GNU gettext 0.14.2.
41455         * lib/config.charset: Update from GNU gettext 0.14.2.
41456
41457 2005-02-24  Bruno Haible  <bruno@clisp.org>
41458
41459         * lib/gettext.h: Update from GNU gettext 0.14.2.
41460
41461 2005-02-23  Simon Josefsson  <jas@extundo.com>
41462
41463         * m4/iconvme.m4: New file.
41464
41465 2005-02-23  Jim Meyering  <jim@meyering.net>
41466
41467         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
41468         change.
41469         Thanks to Bruno Haible for catching it.
41470
41471 2005-02-22  Simon Josefsson  <jas@extundo.com>
41472
41473         * modules/iconvme: New file.
41474
41475         * MODULES.html.sh: Add iconvme.
41476
41477 2005-02-22  Simon Josefsson  <jas@extundo.com>
41478
41479         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
41480
41481 2005-02-22  Simon Josefsson  <jas@extundo.com>
41482
41483         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
41484
41485 2005-02-22  Jim Meyering  <jim@meyering.net>
41486
41487         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
41488         s/ifndef/ifdef/.
41489
41490 2005-02-20  Neil Conway  <neilc@samurai.com>
41491
41492         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
41493         returned by OSX/Darwin if the specified buffer is not large
41494         enough for the hostname.
41495
41496 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41497
41498         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
41499         pass it to _help, otherwise the latter coredumps trying to
41500         dereference state.root_argp.
41501
41502 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41503
41504         * modules/chdir-long (Depends-on): Add memrchr.
41505         * modules/memrchr (Files): Add lib/memrchr.h.
41506         (Include): "memrchr.h".
41507
41508 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41509
41510         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
41511
41512 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41513
41514         * lib/memrchr.h: New file.
41515         * lib/chdir-long.c: Include it.
41516         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
41517         Don't bother including stddef.h.
41518
41519 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
41520
41521         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
41522         inclusion.
41523         Include <sys/types.h>, for dev_t.
41524         (ME_DUMMY, ME_REMOTE): Move from here....
41525         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
41526         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
41527         Dmitry V. Levin.
41528         Include mountlist.h first, to test the interface.
41529
41530 2005-01-29  Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/progname.c (program_name): Initialize.
41533         Needed when linking statically on MacOS X.
41534
41535 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41536
41537         Sync from coreutils.
41538         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
41539         (Depends-on): Add c-strtod.
41540         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
41541
41542 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41543
41544         Sync from coreutils.
41545         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
41546
41547         Remove files that are specific to coreutils.
41548         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
41549
41550 2005-01-28  Bruno Haible  <bruno@clisp.org>
41551
41552         * modules/javacomp: New file.
41553         * MODULES.html.sh (Java): Add javacomp.
41554
41555 2005-01-28  Bruno Haible  <bruno@clisp.org>
41556
41557         * m4/javacomp.m4: New file, from GNU gettext.
41558
41559 2005-01-28  Bruno Haible  <bruno@clisp.org>
41560
41561         * lib/javacomp.sh.in: New file, from GNU gettext.
41562         * lib/javacomp.h: New file, from GNU gettext.
41563         * lib/javacomp.c: New file, from GNU gettext.
41564
41565 2005-01-26  Simon Josefsson  <jas@extundo.com>
41566
41567         * lib/gai_strerror.c: Use GPL in header.
41568
41569 2005-01-26  Bruno Haible  <bruno@clisp.org>
41570
41571         * modules/javaexec: New file.
41572         * MODULES.html.sh (Java): Add javaexec.
41573
41574 2005-01-26  Bruno Haible  <bruno@clisp.org>
41575
41576         * m4/javaexec.m4: New file, from GNU gettext.
41577
41578 2005-01-26  Bruno Haible  <bruno@clisp.org>
41579
41580         * lib/javaexec.sh.in: New file, from GNU gettext.
41581         * lib/javaexec.h: New file, from GNU gettext.
41582         * lib/javaexec.c: New file, from GNU gettext.
41583
41584 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41585
41586         * modules/lchown (Depends-on): Remove lchown.h
41587
41588 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41589
41590         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
41591         must be defined if the header file was not found, in order
41592         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
41593
41594 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41595
41596         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
41597         initializers for struct pentry_state.
41598         (__argp_error): Check return value of __asprintf
41599         (__argp_failure): Translate error message
41600
41601         * lib/argp-parse.c: Removed braces around the expansion of N_()
41602
41603 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41604
41605         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
41606         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
41607         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
41608         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
41609         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
41610         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
41611         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
41612         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
41613         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
41614         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
41615         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
41616         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
41617         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
41618         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
41619         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
41620         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
41621         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
41622         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
41623         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
41624         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
41625         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
41626         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
41627         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
41628         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
41629         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
41630         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
41631         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
41632         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
41633         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
41634         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
41635         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
41636         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
41637         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
41638         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
41639         xstrtol.m4, xstrtoumax.m4, yesno.m4:
41640         Use an all-permissive copyright notice, recommended by RMS.
41641
41642 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41643
41644         * modules/chdir-long (Depends-on): Remove mempcpy.
41645
41646 2005-01-21  Jim Meyering  <jim@meyering.net>
41647
41648         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
41649         same value as for Solaris 9.
41650
41651         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
41652         component length.  This included changing the parameter to be
41653         of type `char *' rather than `char const *'.
41654         * lib/chdir-long.h (chdir_long): Update prototype.
41655
41656         * lib/openat.c (fdopendir, fstatat): New functions.
41657         * lib/openat.h: Include headers required for use of DIR and struct
41658         stat.
41659         [AT_SYMLINK_NOFOLLOW]: Define.
41660         (fdopendir, fstatat): Add prototypes.
41661
41662 2005-01-21  Bruno Haible  <bruno@clisp.org>
41663
41664         * modules/classpath: New file.
41665         * MODULES.html.sh (Java): Add classpath.
41666
41667 2005-01-21  Bruno Haible  <bruno@clisp.org>
41668
41669         * lib/classpath.h: New file, from GNU gettext.
41670         * lib/classpath.c: New file, from GNU gettext.
41671
41672 2005-01-20  Simon Josefsson  <jas@extundo.com>
41673
41674         * modules/version-etc-fsf: New file.
41675
41676 2005-01-20  Simon Josefsson  <jas@extundo.com>
41677
41678         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
41679         * lib/version-etc.c: Remove version_etc_copyright.
41680         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
41681         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
41682
41683 2005-01-20  Simon Josefsson  <jas@extundo.com>
41684
41685         * lib/base64.h (isbase64): Add.
41686
41687         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
41688         using a unsigned prototype, don't inline.
41689         (base64_decode): Use it.
41690
41691 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41692
41693         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
41694         it.
41695
41696 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41697
41698         * lib/save-cwd.c (save_cwd): Remove code to support the case
41699         where fchdir is missing or flaky.
41700
41701 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41702
41703         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
41704
41705 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41706
41707         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
41708         AC_LIBSOURCES now does this.
41709         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
41710         with new ullong_max module.
41711
41712 2005-01-19  Bruno Haible  <bruno@clisp.org>
41713
41714         * modules/sh-quote: New file.
41715         * MODULES.html.sh (Executing programs): Add sh-quote.
41716
41717 2005-01-19  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/sh-quote.h: New file, from GNU gettext.
41720         * lib/sh-quote.c: New file, from GNU gettext.
41721
41722 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         Merge from coreutils.
41725         * m4/ullong_max.m4: New file.
41726         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
41727         (gl_MACROS): Assume localeconv exists.
41728
41729 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41730
41731         Merge changes from coreutils, as described below in several
41732         changelogs dated today.
41733
41734         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
41735         (O_DIRECTORY): Remove; not needed here, since "." must be
41736         a directory.  All uses removed.
41737         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
41738         universal on Suns, and we also need to test for IRIX.
41739         Revamp code to use 'if' rather than '#if'.
41740         Avoid unnecessary comparison of cwd->desc to 0.
41741
41742         * lib/utimens.c (futimens): Robustify the previous patch, by checking
41743         for known valid error numbers rather than observed invalid ones.
41744
41745 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41746
41747         * modules/ullong_max: New file.
41748
41749         * modules/chdir-long, modules/openat: New files.
41750         * modules/save-cwd (Depends-on): Depend on chdir-long.
41751         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
41752
41753 2005-01-18  Jim Meyering  <jim@meyering.net>
41754
41755         Merge from coreutils.
41756         * m4/chdir-long.m4, m4/openat.m4: New files.
41757         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
41758         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
41759         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
41760         is sane and DOES follow symlinks.  Besides, testing 20 different
41761         systems found no broken chown implementations.
41762         Prompted by a change in rsync's copy of this macro.
41763         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
41764
41765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
41766
41767         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
41768         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
41769         NULL-means-set-to-current-time semantics.
41770         Remove temporary file immediately, rather than waiting
41771         for configure's at-exit trap code to do it.
41772
41773 2005-01-18  Jim Meyering  <jim@meyering.net>
41774
41775         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41776
41777         * lib/utimens.c (futimens): Account for the fact that futimes
41778         can also fail with errno == ENOSYS or errno == ENOENT.
41779         Patch from Dmitry V. Levin.
41780
41781         Change the name of the robust chdir function from chdir to chdir_long.
41782         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
41783         (restore_cwd): Use chdir_long, not chdir.
41784         * lib/chdir-long.c: Renamed from chdir.c.
41785         * lib/chdir-long.h: Renamed from chdir.h.
41786         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
41787         Hurd.
41788
41789 2005-01-18  Bruno Haible  <bruno@clisp.org>
41790
41791         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
41792         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
41793         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
41794         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
41795         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
41796         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
41797         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
41798         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
41799         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
41800         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
41801         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
41802         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
41803         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
41804         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
41805         Use an all-permissive copyright notice, recommended by RMS.
41806
41807 2005-01-18  Bob Proulx  <bob@proulx.com>
41808
41809         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
41810         simplify offsetof() macro construct to avoid compile failure with
41811         native HP-UX 11.0 ANSI C compiler.
41812
41813 2005-01-17  Bruno Haible  <bruno@clisp.org>
41814
41815         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
41816         redundant because stpncpy.m4 takes care of it.
41817
41818 2005-01-17  Bruno Haible  <bruno@clisp.org>
41819
41820         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
41821
41822 2005-01-17  Bruno Haible  <bruno@clisp.org>
41823
41824         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
41825         used.
41826
41827 2005-01-17  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/fwriteerror.h (fwriteerror): Change specification to include
41830         fclose.
41831         * lib/fwriteerror.c: Include <stdbool.h>.
41832         (fwriteerror): At the end, close the file stream. Record whether
41833         stdout was already closed.
41834
41835 2005-01-17  Bruno Haible  <bruno@clisp.org>
41836
41837         * lib/execute.c (environ): Declare if needed.
41838         * lib/pipe.c (environ): Likewise.
41839         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
41840
41841 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41842
41843         * modules/argp: Depend on vsnprintf
41844
41845 2005-01-10  Jim Meyering  <jim@meyering.net>
41846
41847         * modules/closeout (Depends-on): Add atexit.
41848
41849 2005-01-06  Bruno Haible  <bruno@clisp.org>
41850
41851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
41852
41853 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41854
41855         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
41856         definitions to be after all include files, to avoid collisions.
41857         Problem reported by Bob Proulx.
41858
41859 2005-01-04  Jim Meyering  <jim@meyering.net>
41860
41861         Changes imported from coreutils.
41862         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
41863         as the mkstemp template, use a temporary directory and an
41864         8.3-friendly template to avoid trouble on systems like DJGPP.
41865         Reported by Juan M. Guerrero via Stepan Kasal.
41866         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
41867         close. Remove the temporary directory right away, rather than waiting
41868         for configure's at-exit trap code to do it.
41869         Suggestion from Stepan Kasal.
41870
41871 2005-01-01  Simon Josefsson  <jas@extundo.com>
41872
41873         * gnulib-tool: Print #include directives when --import'ing.
41874
41875 2004-12-28  Simon Josefsson  <jas@extundo.com>
41876
41877         * tests/test-base64.c: Include required header files.  Remove
41878         unused variables.
41879
41880 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41881
41882         * modules/error (Depends-on): Remove gettext.
41883
41884 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41885
41886         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
41887         not needed.  This removes a dependency on the gettext module.
41888         [defined _LIBC]: Do not include <libintl.h>; not needed.
41889
41890 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41891
41892         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
41893         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
41894
41895 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
41896
41897         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
41898         HAVE_DECL_STRTOLD.
41899
41900 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41901
41902         * modules/getdate (Depends-on): Remove alloca-opt.
41903
41904 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41905
41906         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
41907
41908 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41909
41910         * lib/argp-parse.c: Include <stddef.h>.
41911         (alignof, alignto): New macros.
41912         (parser_init): Don't assume that void * is aligned sufficiently
41913         for struct option.
41914
41915         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
41916         need to extend the stack.
41917         (YYINITDEPTH): New macro, so that the initial stack isn't overly
41918         large.
41919
41920 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41921
41922         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
41923
41924 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41925
41926         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
41927         (2004-10-24) change.  Apparently this was a false alarm.
41928
41929         * modules/getdate: Depend on alloca-opt, not alloca.
41930
41931 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41932
41933         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
41934         Remove now-obsolete comment about AIX.
41935         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
41936         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
41937         (YYMAXDEPTH): New macro.
41938
41939 2004-12-18  Simon Josefsson  <jas@extundo.com>
41940
41941         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
41942
41943 2004-12-18  Bruno Haible  <bruno@clisp.org>
41944
41945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
41946
41947 2004-12-18  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/fatal-signal.c (fatal_signals): Make non-const.
41950         (init_fatal_signals): New function.
41951         (uninstall_handlers, install_handlers): Ignore signals that were set to
41952         SIG_IGN.
41953         (at_fatal_signal): Call init_fatal_signals.
41954         (init_fatal_signal_set): Likewise. Ignore signals that were set to
41955         SIG_IGN.
41956         Reported by Paul Eggert.
41957
41958 2004-12-18  Bruno Haible  <bruno@clisp.org>
41959
41960         * doc/alloca.texi: New file.
41961         * doc/alloca-opt.texi: New file.
41962
41963 2004-12-17  Jim Meyering  <jim@meyering.net>
41964
41965         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
41966         Otherwise, install-sh could exit with improper exit status when
41967         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
41968
41969 2004-12-16  Simon Josefsson  <jas@extundo.com>
41970
41971         * tests/test-base64.c: Add license.
41972
41973 2004-12-15  Stepan Kasal  <address@hidden>
41974
41975         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
41976
41977 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41978
41979         * modules/getcwd (Files): Add m4/d-ino.m4.
41980         Suggested by Mark D. Baushke.
41981
41982 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41983
41984         * lib/getdate.y (textint): New member "negative".
41985         (time_zone_hhmm): New function.
41986         Expect 14 shift-reduce conflicts, not 13.
41987         (o_colon_minutes): New rule.
41988         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
41989         (yylex): Set the "negative" member of signed numbers.
41990
41991 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
41992
41993         * doc/getdate.texi (Time of day items, Time zone items):
41994         Describe new formats +00:00, UTC+00:00.
41995
41996 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
41997
41998         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
41999         spurious "-l"s.  Problem reported by Stepan Kasal.
42000
42001 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
42002
42003         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
42004         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
42005
42006 2004-12-04  Simon Josefsson  <jas@extundo.com>
42007
42008         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
42009         Vandoorselaere <yoann@prelude-ids.org>.
42010
42011 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42012
42013         Changes imported from coreutils.
42014         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
42015         exist.
42016         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
42017
42018 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42019
42020         Changes imported from coreutils.
42021         * lib/hard-locale.c: Assume <locale.h> exists.
42022         Include "strdup.h".
42023         (GLIBC_VERSION): New macro.
42024         (hard_locale): Assume setlocale exists.
42025         Rewrite to avoid #ifdef.
42026         Use strdup rather than malloc + strcpy.
42027         * lib/human.c: Assume <locale.h> exists.
42028         (human_readable): Assume localeconv exists.
42029
42030 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42031
42032         * modules/hard-locale (Depends-on): Add strdup.
42033
42034 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42035
42036         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
42037         convert T2, not T.  (Imported from libc.)
42038
42039 2004-11-30  Simon Josefsson  <jas@extundo.com>
42040
42041         * modules/restrict (License): Change to LGPL.
42042
42043 2004-11-30  Simon Josefsson  <jas@extundo.com>
42044
42045         * m4/restrict.m4: Add copyright and copying conditions.
42046
42047 2004-11-30  Simon Josefsson  <jas@extundo.com>
42048
42049         * m4/base64.m4: New file.
42050
42051 2004-11-30  Simon Josefsson  <jas@extundo.com>
42052
42053         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
42054         base64.
42055
42056         * tests/test-base64.c: New file.
42057
42058         * modules/base64: New file.
42059
42060 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42061
42062         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
42063         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
42064
42065         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
42066
42067 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42068
42069         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
42070         (__getcwd.c): Don't restore errno; glibc doesn't.
42071         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
42072         first, falling back to our code only if its results look suspicious.
42073         Ensure that the resulting buffer is only as large as necessary.
42074
42075         * lib/readutmp.c: Include readutmp.h first.
42076         Include <errno.h>, since readutmp.h no longer does that.
42077         * lib/readutmp.h: Don't include <errno.h>,
42078         <sys/param.h>, <time.h>; not needed to establish interface.
42079         (errno): Remove decl.
42080         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
42081         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
42082         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
42083
42084 2004-11-28  Simon Josefsson  <jas@extundo.com>
42085
42086         * lib/base64.h, base64.c: New file.
42087
42088 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
42089
42090         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
42091
42092 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
42093
42094         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
42095         (Depends-on): Remove pathmax, same.  Add mempcpy.
42096         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
42097         (Makefile.am): Append getcwd.h to lib_SOURCES.
42098         (Include): Add getcwd.h.
42099         (Maintainer): Change from Jim Meyering to "all, glibc",
42100         since getdate now uses intended-for-glibc code.
42101         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
42102         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
42103
42104 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42105
42106         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
42107         HP's ANSI C compiler.
42108         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
42109         Declaring int functions causes warnings on some modern systems and
42110         shouldn't be needed to compile on ancient ones.
42111         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
42112         defined.
42113
42114         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
42115         with the following changes.
42116         (__set_errno): Parenthesize properly.
42117         Include <stdbool.h>.
42118         (MIN, MAX, MATCHING_INO): New macros.
42119         (__getcwd): Define with prototype, not K&R form.
42120         Use heuristics to allocate default buffer on stack if possible.
42121         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
42122         behavior, and to avoid the PATH_MAX limit when computing
42123         ../../../../...
42124         Use MATCHING_INO to compare inode number to file.
42125         Check for arithmetic overflow in size calculations.
42126         Fix bug in reallocation of dot array that caused getcwd to fail
42127         on directories nested deeper than 75.
42128         Be more careful about saving errno on error.
42129         Do not use realloc; use only free+malloc, as this is a bit
42130         more flexible and avoids a needless copy operation.
42131         Do not inspect st_dev and st_ino for symbolic links; POSIX
42132         doesn't specify the latter.
42133         Check for closedir errors.
42134         Avoid needless casts.
42135         Use "#ifdef weak_alias" around weak_alias, to be like other
42136         glibc code.
42137         The following changes to getcwd.c have effect only when used in
42138         gnulib; they have no effect inside glibc proper.
42139         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
42140         as alloca isn't used.
42141         (alloca, __alloca): Likewise.
42142         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
42143         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42144         unconditionally, as gnulib assumes C89 or better.
42145         Do not include <sys/param.h>.
42146         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
42147         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
42148         better.
42149         (NULL) [!defined NULL]: Remove; we assume C89 or better.
42150         Include <dirent.h> in a way that is compatible with modern Autoconf.
42151         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
42152         New macros, if not already defined.
42153         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
42154         Use "_LIBC", not "defined _LIBC", for consistency.
42155         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
42156         a mempcpy module.
42157         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
42158         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
42159         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
42160         credit only to Jim Meyering and adjust the copyright dates.
42161         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
42162         <stdlib.h>, <unistd.h>, "pathmax.h".
42163         Instead, include "xgetcwd.h" (first) and "getcwd.h".
42164         (INITIAL_BUFFER_SIZE): Remove.
42165         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
42166
42167 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42168
42169         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
42170         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
42171         Use the _ONCE methods, for efficiency.
42172         Check for fcntl.h.  In test program, include <errno.h>
42173         and <fcntl.h> if available.  Remove old K&R cruft from
42174         test program.  Check for common errors in GNU/Linux,
42175         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
42176         don't do AC_LIBOBJ, as that's getcwd.m4's job.
42177         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
42178         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
42179         name accordingly.
42180         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
42181         accommodate new getcwd.c.
42182         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
42183         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
42184         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
42185         that's all we need now.
42186
42187 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42188
42189         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
42190         argp-parse.c depends on getopt internals, that means we should
42191         always use our getopt, to be on the safe side.
42192         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
42193         order not to spoil the result of an eventual previous invocation
42194         of gl_GETOPT_SUBSTITUTE.
42195
42196 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42197
42198         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
42199         redefinition warnings. To avoid them, include the defines
42200         in `#if !defined __need_getopt ... #endif'. The only place
42201         where __getopt_argv_const is used is in definitions
42202         of getopt_long and getopt_long_only below, which are as well
42203         protected by `#ifndef __need_getopt'.
42204         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
42205         __need_getopt after including <stdio.h> and <unistd.h> These
42206         headers might have defined it.
42207
42208 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42209
42210         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
42211
42212 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42213
42214         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
42215         (futimens): New function, which uses futimes if available.
42216         (futimens, utimens): Support timespec==NULL, with same semantics
42217         as utime and utimens.
42218         * lib/utimens.h (futimens): New decl.
42219
42220 2004-11-23  Jim Meyering  <jim@meyering.net>
42221
42222         * lib/getopt_.h: Remove trailing blanks.
42223
42224 2004-11-23  Jim Meyering  <jim@meyering.net>
42225
42226         * lib/__fpending.c: Add comment.
42227
42228 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
42229
42230         * modules/canonicalize (Depends-on): Add xreadlink.
42231         Problem reported by James Youngman.
42232
42233 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42234
42235         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
42236         New macros.
42237         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
42238         optopt): Use them instead of invoking ## directly; otherwise, the
42239         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
42240
42241 2004-11-19  Bruno Haible  <bruno@clisp.org>
42242
42243         * lib/strtok_r.c: Move comments from here...
42244         * lib/strtok_r.h: ... to here.
42245
42246 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42247
42248         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
42249         implementations that mishandle size_t overflow.
42250
42251 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42252
42253         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
42254         might fail.  Problem reported by Yoann Vandoorselaere.
42255         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
42256         implementations that mishandle size_t overflow.
42257
42258 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42259
42260         * modules/canon-host (Depends-on): Add strdup.
42261
42262 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42263
42264         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
42265
42266 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42267
42268         * lib/canon-host.c: Include "strdup.h".
42269         (canon_host): Use getaddrinfo if available, so that IPv6 works.
42270         Use strdup instead of malloc/strcpy to duplicate strings.
42271
42272         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
42273         (human_space_before_unit): New constant.
42274         * lib/human.c (human_readable): Support it.
42275
42276         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
42277         (xgetcwd): Set errno correctly when failing.
42278         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
42279         the failure is actually due to a PATH_MAX problem.
42280
42281         Further getopt changes to make it more likely that glibc will
42282         buy the changes back.
42283         * lib/getopt.c (POSIXLY_CORRECT): New constant.
42284         (getopt): Use it, so to preserve glibc semantic
42285         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
42286         when compiling for libc.
42287         * lib/getopt_.h (__getopt_argv_const): Bring it back.
42288         (getopt_long, getopt_long_only): Use it.
42289
42290         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42291         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
42292         (getopt): Argv is now char * const *, as per standard.
42293         (_getopt_internal_r, _getopt_internal): Argv is now char **,
42294         not char *__getopt_argv_const *.
42295         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42296         _getopt_long_only_r): Likewise.
42297         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
42298         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42299         _getopt_long_r, _getopt_long_only_r): Likewise.
42300         * lib/getopt_.h (__getopt_argv_const): Remove.
42301         (getopt): Argv is now char * const *, as per standard.
42302
42303         * lib/getdate.y (tORDINAL): New token.
42304         (day, relunit): Allow it for relative times.
42305         (relative_time_table): Use tORDINAL for ordinals.
42306
42307 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42308
42309         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
42310         Document that "second" isn't allowed as an ordinal number.
42311
42312 2004-11-16  Jim Meyering  <jim@meyering.net>
42313
42314         * modules/closeout (Depends-on): Add fpending.
42315
42316 2004-11-15  Jim Meyering  <jim@meyering.net>
42317
42318         * lib/closeout.c: Include "__fpending.h" once again.
42319         Include <stdbool.h>.
42320         (close_stdout): Don't fail just because stdout was closed initially,
42321         since some programs don't write to stdout in the normal course of
42322         operation (other than --version and --help), and we don't want this
42323         function to make e.g. `touch file >&-' fail.
42324         But do fail if it was closed and someone has tried to write to it.
42325         E.g., `printf foo >&-' must fail.
42326
42327 2004-11-13  Jim Meyering  <jim@meyering.net>
42328
42329         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
42330
42331 2004-11-12  Simon Josefsson  <jas@extundo.com>
42332
42333         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
42334         small doc fix is still pending.
42335
42336 2004-11-11  Simon Josefsson  <jas@extundo.com>
42337
42338         * modules/strtok_r: New file.
42339
42340         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42341         strtok_r.
42342
42343 2004-11-11  Simon Josefsson  <jas@extundo.com>
42344
42345         * m4/strtok_r.m4: New file.
42346
42347         * m4/getopt.m4: Replace opterr.
42348
42349 2004-11-11  Simon Josefsson  <jas@extundo.com>
42350
42351         * lib/strtok_r.h, strtok_r.c: New file.
42352
42353 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42354
42355         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
42356         of replacing opterr, getopt, etc.  This should handle the
42357         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
42358
42359 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42360
42361         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
42362         we can stop lying to compilers about the constness of argv when we
42363         are compiled outside glibc.
42364         (getopt, getopt_long, getopt_long_only): Use it.
42365         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42366         _getopt_internal, getopt): Likewise.
42367         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42368         _getopt_long_only_r): Likewise.
42369         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42370         _getopt_long_r, _getopt_long_only_r): Likewise.
42371
42372         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
42373         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
42374         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
42375         the other external symbols.
42376         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
42377         declaration, since the above renaming now works around collisions.
42378
42379 2004-11-11  Jim Meyering  <jim@meyering.net>
42380
42381         * lib/linebreak.c: Remove trailing blanks.
42382         * lib/alloca_.h: Likewise.
42383         * lib/acosl.c: Likewise.
42384         * lib/euidaccess.c: Likewise.
42385         * lib/allocsa.h: Likewise.
42386
42387 2004-11-10  Simon Josefsson  <jas@extundo.com>
42388
42389         * m4/getaddrinfo.m4: New file.
42390
42391 2004-11-10  Simon Josefsson  <jas@extundo.com>
42392
42393         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
42394
42395 2004-11-10  Simon Josefsson  <jas@extundo.com>
42396
42397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42398         getaddrinfo.
42399
42400         * modules/getaddrinfo: New file.
42401
42402 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42403
42404         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
42405
42406 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42407
42408         * lib/mktime.c (SHR): New macro, which is a portable
42409         substitute for >> that should work even on Crays.
42410         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
42411         Problem reported by Mark D. Baushke in
42412         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
42413         * lib/getdate.y (SHR): Likewise.
42414         (tm_diff): Use it.
42415         * lib/strftime.c (SHR): Likewise.
42416         (tm_diff): Use it.
42417         * lib/quotearg.c (struct quoting_options): Use unsigned int for
42418         quote_these_too, so that right shifts are well defined.  All uses
42419         changed.
42420
42421 2004-11-10  Jim Meyering  <jim@meyering.net>
42422
42423         Ensure that no close failure goes unreported.
42424         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
42425         return early when it seems there's nothing to flush.
42426         Don't include __fpending.h.
42427
42428 2004-11-10  Jim Meyering  <jim@meyering.net>
42429
42430         * modules/closeout (Depends-on): Remove fpending.
42431
42432 2004-11-10  Jim Meyering  <jim@meyering.net>
42433
42434         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
42435
42436 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42437
42438         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
42439         gl_FUNC_STRFTIME.
42440         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
42441         and AC_REQUIRE when possible, to avoid duplicate checks.
42442         Check for <wchar.h>.
42443
42444 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42445
42446         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
42447
42448 2004-11-09  Bruno Haible  <bruno@clisp.org>
42449
42450         * m4/sockpfaf.m4: New file.
42451
42452 2004-11-05  Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
42455         Reported by Mark D. Baushke <mdb@cvshome.org>.
42456
42457 2004-11-04  Bruno Haible  <bruno@clisp.org>
42458
42459         2004-09-11  Bruno Haible  <bruno@clisp.org>
42460                 * allocsa.valgrind: New file.
42461         2004-02-06  Bruno Haible  <bruno@clisp.org>
42462                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
42463                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
42464                 Reported by Christopher Seip <chris.seip@hp.com>.
42465
42466 2004-11-04  Bruno Haible  <bruno@clisp.org>
42467
42468         * modules/allocsa (Files): Add lib/allocsa.valgrind.
42469         (Makefile.am): Distribute it.
42470
42471 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42472
42473         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
42474         with errno == ERANGE if the buffer is too small.
42475         Problem reported by Mark D. Baushke.
42476
42477 2004-11-03  Albert Chin  <china@thewrittenword.com>
42478             Paul Eggert  <eggert@cs.ucla.edu>
42479
42480         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
42481         equivalent, substitute $ac_type for equivalent type rather than
42482         blindly using uint32_t *always* which won't work if uint32_t is not
42483         available.  Define _UINT32_T to work around typedef of uint32_t if
42484         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
42485         2.5.1.
42486
42487 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42488
42489         * m4/jm-macros.m4: Sync from coreutils.
42490         (gl_MACROS): Check for mbrlen, for pathchk.
42491         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
42492
42493 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42494
42495         * lib/xreadlink.c (MAXSIZE): New macro.
42496         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
42497         size does not exceed MAXSIZE.  Avoid cast.
42498         As suggested by Mark D. Baushke in
42499         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
42500         if readlink fails with buffer size just under MAXSIZE, try again
42501         with MAXSIZE.
42502
42503 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42504
42505         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
42506
42507 2004-11-02  Derek R. Price  <derek@ximbiot.com>
42508         and  Paul Eggert  <eggert@cs.ucla.edu>
42509
42510         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
42511         (get_date): Overparenthesize to avoid GCC warning.
42512
42513 2004-11-02  Bruno Haible  <bruno@clisp.org>
42514
42515         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
42516         returns void.
42517
42518 2004-11-02  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
42521         function returns void.
42522
42523 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42524
42525         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
42526         fflush_unlocked, flockfile, funlockfile, funlockfile,
42527         fputs_unlocked, putc_unlocked.
42528
42529 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42530
42531         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42532         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
42533         already declared.
42534
42535 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42536
42537         * modules/getdate (Files): Add doc/getdate.texi.
42538         (Depends-on): Add setenv, xalloc.
42539
42540 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42541
42542         * lib/getdate.y: Add support for TZ="foo" within a date string.
42543         Fix some bugs near time_t boundaries.  Reject dates with
42544         out-of-range components, e.g., "Sept 31".
42545         Include <stdlib.h>, "setenv.h", "xalloc.h".
42546         (ISDIGIT_LOCALE): Remove; unused.
42547         Note that the TZ and time functions used here are not reentrant.
42548         (mktime_ok, get_tz): New functions.
42549         (TZBUFSIZE): New constant.
42550         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
42551         This requires that we sometimes generate our own TZ="XXX..." setting.
42552
42553 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42554
42555         * doc/getdate.texi: New file, from coreutils with modifications for
42556         the new TZ parsing.
42557
42558 2004-10-27  Derek R. Price  <derek@ximbiot.com>
42559
42560         * lib/mktime.c (not_equal_tm): Remove redundant check.
42561
42562 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42563
42564         * modules/regex (lib_SOURCES): Add regex.c.
42565         Reported by James Youngman in
42566         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
42567
42568 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42569
42570         * lib/getdate.y: Use Bison 1.875 features, and some minor
42571         code cleanups.  This change does not affect semantics.
42572         Don't include <stdlib.h>; no longer needed.
42573         Don't include unlocked-io.h; only the "#if TEST" code uses
42574         stdio, and performance isn't crucial there.
42575         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
42576         Bison 1.875 features as described below.
42577         All uses of "PC." replaced by "pc->".
42578         (YYSTYPE): Add a forward declaration.
42579         (yylex, yyerror): Use full prototypes in forward decls.
42580         Use "%pure-parser" rather than obsolescent "%pure_parser".
42581         Use %parse-param and %lex-param instead of obsolescent
42582         YYPARSE_PARAM and YYLEX_PARAM.
42583         (meridian_table, month_and_day_table, time_units_table,
42584         relative_time_table, time_zone_table, military_table,
42585         lookup_zone, lookup_word, get_date):
42586         Use NULL instead of 0 where appropriate.
42587         (to_hour): Avoid abort (), to avoid a dependency on
42588         stdlib.h.
42589         (yyerror, yylex): Now accepts parser_control * arg.
42590         (main) [TEST]: Use '\0' rather than 0 for char.
42591
42592 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42593
42594         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
42595
42596 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42597
42598         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
42599         It's now the caller's responsibility to handle the case where
42600         !HAVE_GETPAGESIZE && !defined getpagesize.
42601
42602         * lib/mktime.c (leapyear): Arg is long int, not int.
42603
42604 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
42605
42606         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
42607
42608 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42609
42610         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
42611         missing.  Problem reported by James Youngman.
42612
42613 2004-10-16  Simon Josefsson  <jas@extundo.com>
42614
42615         * gnulib-tool: Fix comments.  Fix parse problem.
42616         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
42617
42618 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
42619
42620         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
42621         implementation of getopt_long.  Problem reported by Alexander Taler in:
42622         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
42623
42624 2004-10-15  Bruno Haible  <bruno@clisp.org>
42625
42626         * gnulib-tool: Untabify. Initialize supplied_libname.
42627         (func_usage): More homogenous output.
42628         (func_modules_transitive_closure, func_modules_to_filelist,
42629         func_emit_lib_Makefile_am): New functions.
42630         (func_import): New function, extracted from big case statement. Use
42631         func_get_license, func_modules_transitive_closure,
42632         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
42633         opt_lgpl. Don't use test -a, as it's not portable.
42634         (func_create_testdir): Use func_modules_transitive_closure,
42635         func_modules_to_filelist, func_emit_lib_Makefile_am.
42636
42637 2004-10-15  Bruno Haible  <bruno@clisp.org>
42638
42639         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
42640
42641 2004-10-15  Bruno Haible  <bruno@clisp.org>
42642
42643         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
42644         the portions belonging to each module.
42645         Suggested by Derek Robert Price <derek@ximbiot.com>.
42646
42647 2004-10-12  Simon Josefsson  <jas@extundo.com>
42648
42649         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42650         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
42651         to real functions.
42652
42653 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42654
42655         * modules/vsnprintf: New file.
42656
42657 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42658
42659         * m4/vsnprintf.m4: New file.
42660
42661 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42662
42663         * lib/vsnprintf.h: New file.
42664         * lib/vsnprintf.c: New file.
42665
42666 2004-10-11  Bruno Haible  <bruno@clisp.org>
42667
42668         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
42669         vsnprintf.
42670
42671 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42672
42673         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
42674
42675 2004-10-07  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
42678         fits into the provided buffer.
42679
42680 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42681
42682         * lib/diacrit.c, diacrit.h: Add GPL notice.
42683
42684         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
42685         notice.
42686         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
42687         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
42688         This avoids a potential constant-folding bug.
42689
42690 2004-10-05  Bruno Haible  <bruno@clisp.org>
42691
42692         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
42693         for the declaration of strsep.
42694
42695 2004-10-05  Bruno Haible  <bruno@clisp.org>
42696
42697         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
42698
42699 2004-10-04  Simon Josefsson  <jas@extundo.com>
42700
42701         * modules/memmem: New file.
42702         * tests/test-memmem.c: New file.
42703         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
42704
42705 2004-10-04  Simon Josefsson  <jas@extundo.com>
42706
42707         * m4/memmem.m4: New file.
42708
42709 2004-10-04  Simon Josefsson  <jas@extundo.com>
42710
42711         * lib/memmem.h: New file.
42712         * lib/memmem.c: New file, taken from glibc.
42713
42714 2004-10-04  Simon Josefsson  <jas@extundo.com>
42715
42716         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
42717         '#ifdef USE_UNLOCKED_IO'.
42718
42719 2004-10-04  Simon Josefsson  <jas@extundo.com>
42720
42721         * config/srclist.txt: Add memmem from glibc.
42722
42723 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42724
42725         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
42726
42727         * modules/argmatch, modules/argp, modules/closeout, modules/error,
42728         modules/exclude, modules/getdate, modules/getline,
42729         modules/getndelim2, modules/getpass, modules/getpass-gnu,
42730         modules/getusershell, modules/linebuffer, modules/md5,
42731         modules/mountlist, modules/posixtm, modules/readtokens,
42732         modules/readutmp, modules/regex, modules/sha1,
42733         modules/version-etc, modules/yesno:
42734         Remove dependency on unlocked-io.
42735
42736 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42737
42738         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
42739
42740         * m4/unlocked-io.m4: Add copyright notice.
42741         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
42742
42743 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42744
42745         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
42746         * lib/xmalloc.c (xmemdup): Likewise.
42747         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
42748         XFREE): Remove these long-obsolescent macros.
42749         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
42750         * lib/xstrdup.c: Remove.
42751
42752         * lib/regex.c (re_comp): Cast gettext return value to char *,
42753         Problem reported by Martin Neitzel via Mark D. Baushke.
42754
42755 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42756
42757         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
42758         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
42759         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
42760         regex.c, sha1.c, version-etc.c, yesno.c:
42761         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
42762         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
42763         the includer's responsibility.
42764
42765         Sync from coreutils.
42766
42767         * lib/modechange.c (mode_compile): Don't decrement a pointer that
42768         points to the start of a string, as the C Standard says the
42769         resulting behavior is undefined.
42770
42771         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
42772         simple -> simple_backups, numbered_existing ->
42773         numbered_existing_backups, numbered -> numbered_backups
42774         to avoid shadowing problems.  All uses changed.
42775         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
42776         * lib/backupfile.c (check_extension, numbered_backup):
42777         Rename locals to avoid shadowing 'basename'.
42778         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
42779         once.
42780
42781         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
42782         * lib/.cvsignore: Add getopt.h.
42783
42784 2004-10-04  Bruno Haible  <bruno@clisp.org>
42785
42786         * modules/README: New file.
42787         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
42788         not a module.
42789
42790 2004-10-02  Jim Meyering  <jim@meyering.net>
42791
42792         * lib/dirfd.h, getpagesize.h: Add copyright notice.
42793
42794 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42795
42796         * modules/strsep: New file.
42797
42798 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42799
42800         * m4/strsep.m4: New file.
42801
42802 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42803
42804         * lib/strsep.h: New file.
42805         * lib/strsep.c: New file.
42806
42807 2004-10-01  Simon Josefsson  <jas@extundo.com>
42808
42809         * lib/snprintf.c (snprintf): Handle size==0.
42810
42811 2004-10-01  Simon Josefsson  <jas@extundo.com>
42812             Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
42815         (snprintf): Declare 'args'.
42816
42817 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         * lib/snprintf.c: Remove comments as to why each header is needed.
42820
42821 2004-10-01  Bruno Haible  <bruno@clisp.org>
42822
42823         * MODULES.html.sh: Add strsep.
42824
42825 2004-09-30  Simon Josefsson  <jas@extundo.com>
42826
42827         * modules/snprintf: New file.
42828
42829 2004-09-30  Simon Josefsson  <jas@extundo.com>
42830
42831         * m4/snprintf.m4: New file.
42832
42833 2004-09-30  Simon Josefsson  <jas@extundo.com>
42834
42835         * lib/snprintf.h, lib/snprintf.c: New files.
42836
42837 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42838
42839         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
42840         (hol_entry_help): Never translate an empty string.
42841         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
42842         * lib/argp.h (OPTION_NO_TRANS): New option.
42843
42844 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42845
42846         * modules/argp (Maintainer): Replace Simon Josefsson
42847         by Sergey Poznyakoff.
42848
42849 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42850
42851         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
42852         changes merged back into glibc.
42853
42854 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42855
42856         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
42857
42858 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
42859
42860         * lib/xvasprintf.c: Include xalloc.h.
42861         (xvasprintf): Use xalloc_die, not xmalloc_die.
42862
42863 2004-09-29  Bruno Haible  <bruno@clisp.org>
42864
42865         * modules/alloca-opt: New file, derived from modules/alloca.
42866         * modules/allocsa: Depend on alloca-opt instead of alloca.
42867         * modules/setenv: Likewise.
42868         * modules/vasnprintf: Likewise.
42869         * MODULES.html.sh: Add alloca-opt.
42870
42871 2004-09-28  Simon Josefsson  <jas@extundo.com>
42872
42873         * gnulib-tool: New parameter --lgpl, to asseert that modules are
42874         LGPL, and to replace license template from GPL to LGPL.
42875
42876 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42877
42878         * modules/dummy: Change license to LGPL.
42879
42880 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
42881
42882         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
42883
42884 2004-09-24  Simon Josefsson  <jas@extundo.com>
42885
42886         * modules/minmax (License): Change from GPL to LGPL.
42887
42888 2004-09-23  Simon Josefsson  <jas@extundo.com>
42889
42890         * gnulib-tool (--import): Typo.
42891
42892 2004-09-23  Simon Josefsson  <jas@extundo.com>
42893
42894         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
42895
42896 2004-09-22  Bruno Haible  <bruno@clisp.org>
42897
42898         * modules/*: Add 'License' field.
42899         * gnulib-tool: Accept --extract-license option.
42900         (func_get_license): New function.
42901
42902 2004-09-21  Bruno Haible  <bruno@clisp.org>
42903
42904         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
42905         Reported by Simon Josefsson.
42906
42907 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42908
42909         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
42910         gl_AC_TYPE_LONG_LONG.
42911
42912 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
42913
42914         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
42915
42916 2004-09-18  Simon Josefsson  <jas@extundo.com>
42917         and  Paul Eggert  <eggert@cs.ucla.edu>
42918
42919         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
42920         calls with autoreconf.  Define GL_LIB.
42921
42922 2004-09-14  Karl Berry  <karl@gnu.org>
42923
42924         * config/srclist.txt: unsync setenv.c, sigh.
42925
42926 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42927
42928         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
42929         Problem reported by Bruno Haible in:
42930         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
42931
42932 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         * config/srclist.txt: Comment out argp-pvh.c.
42935
42936 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
42937
42938         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
42939         in case some system header has #define'd it.  Problem reported by
42940         Soeren D. Schulze in
42941         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
42942
42943 2004-09-09  Karl Berry  <karl@gnu.org>
42944
42945         * regex.[ch]: delete from the root.  These were supposed to be
42946                 synced with emacs cvs, but this has not happened for about
42947                 a year, and anyway nothing else uses emacs regex.[ch].
42948                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
42949                 lib/regex[.ch] is untouched.
42950
42951 2004-09-09  Bruno Haible  <bruno@clisp.org>
42952
42953         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
42954
42955 2004-09-09  Bruno Haible  <bruno@clisp.org>
42956
42957         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
42958         modifications.
42959         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
42960
42961 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42962
42963         * modules/xvasprintf: New file.
42964         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
42965
42966 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
42967
42968         * lib/xvasprintf.h: New file.
42969         * lib/xvasprintf.c: New file.
42970         * lib/xasprintf.c: New file.
42971
42972 2004-09-08  Bruno Haible  <bruno@clisp.org>
42973
42974         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
42975
42976 2004-09-08  Bruno Haible  <bruno@clisp.org>
42977
42978         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
42979         length is > INT_MAX.
42980         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
42981         more.
42982
42983 2004-09-08  Bruno Haible  <bruno@clisp.org>
42984
42985         * lib/stdint_.h: New file, taken from GNU clisp.
42986
42987 2004-09-08  Bruno Haible  <bruno@clisp.org>
42988             Oskar Liljeblad  <oskar@osk.mine.nu>
42989
42990         * modules/stdint: New file.
42991         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
42992
42993 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42994
42995         Import from coreutils.
42996         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
42997         strings on unbounded length.  alloca's performance benefits aren't
42998         that important here.
42999         (V_STRDUP): Remove.
43000         (parse_with_separator): New function, with most of the internals
43001         of the old parse_user_spec.  Allow user to omit both user and group,
43002         for compatibility with FreeBSD.
43003         Clone only the user name, not the entire spec.
43004         Do not set *uid, *gid unless entirely successful.
43005         Avoid memory leak in some failing cases.
43006         Fix regression for USER.GROUP reported by Dmitry V. Levin in
43007         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
43008         (parse_user_spec): Rewrite to use parse_with_separator.
43009
43010 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43011
43012         * modules/userspec: Don't depend on alloca.
43013
43014 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43015
43016         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
43017
43018 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43019
43020         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
43021         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
43022         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
43023
43024 2004-08-16  Simon Josefsson  <jas@extundo.com>
43025
43026         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
43027         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
43028         Add --dry-run for --import.
43029         Let user provided command line parameters override configure.ac
43030         settings.
43031
43032 2004-08-12  Simon Josefsson  <jas@extundo.com>
43033
43034         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
43035         as discussed with Paul Eggert in threads rooted at
43036         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
43037         and
43038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
43039         Before, the test was empty, and relied on ELIDE_CODE in source
43040         code.)
43041         (gl_PREREQ_GETOPT): New macro.
43042         (gl_GETOPT): Use them.
43043
43044 2004-08-12  Simon Josefsson  <jas@extundo.com>
43045
43046         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
43047         * lib/getopt_.h: Renamed from getopt.h.
43048
43049 2004-08-12  Simon Josefsson  <jas@extundo.com>
43050
43051         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
43052         Change default library name from libfoo to libgnu.
43053         Now, if you have a configure.ac that says:
43054                 gl_SOURCE_BASE(gl)
43055                 gl_M4_BASE(gl/m4)
43056                 gl_MODULES(error getopt etcetera)
43057                 gl_INIT
43058         you can import all you need by running:
43059                 ../gnulib/gnulib-tool --import
43060
43061         * modules/getopt (Files): Rename getopt.h to getopt_.h.
43062         (Makefile.am): Rewrite, use logic from argz.
43063         (Include): Use <getopt.h> instead of "getopt.h".
43064
43065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43066
43067         * modules/argp (Files): Add m4/unlocked-io.m4.
43068         (Depends-on): Add extensions.
43069
43070 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43071
43072         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
43073         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
43074         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
43075         Check for program_invocation_name, program_invocation_short_name,
43076         flockfile, funlockfile, features.h, _getopt_long_only_r.
43077
43078 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43079
43080         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
43081         its complicated substitute.
43082         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
43083         and program_invocation_name.
43084         (__argp_basename) [!_LIBC]: Remove; the only use was
43085         replaced by its body.
43086         (__argp_short_program_name): Change condition from
43087         !defined __argp_short_program_name to
43088         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
43089         to match argp-namefrob.h.
43090         (__argp_failure): Don't assume strerror_r returns char *.
43091         * lib/argp-parse.c (N_): Define unconditionally.
43092         (argp_default_options): Fill out initializers with 0 to avoid
43093         gcc warnings.
43094
43095 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43096
43097         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
43098         getopt1.c.
43099
43100 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43101
43102         Merge from coreutils.
43103
43104         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
43105
43106         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
43107         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
43108
43109 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43110
43111         Merge from coreutils.
43112
43113         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
43114         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
43115         for Reliant Unix 5.43.
43116
43117         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
43118         (union fooround): Use uintmax_t, not long int.
43119         The rest is a merge from libc:
43120         [defined _LIBC]: Include <shlib-compat.h>.
43121         (_obstack) [defined _LIBC]: Remove after 2.3.4.
43122
43123         * lib/settime.c (settime): Recode to avoid warning with
43124         Sun Forte C 6U2.
43125
43126         * lib/strverscmp.c: Convert to UTF-8.
43127
43128 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43129
43130         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
43131         m4/uintmax_t.m4.
43132
43133 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43134
43135         * modules/xalloc-die: New file.
43136         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
43137
43138         * modules/md5 (Files): Add m4/uint32_t.m4.
43139         * modules/sha1: Renamed from modules/sha.
43140         (Files):
43141         Rename lib/sha.h to lib/sha1.h.
43142         Rename lib/sha.c to lib/sha1.c.
43143         Rename m4/sha.m4 to m4/sha1.m4.
43144         (lib_SOURCES): Likewise.
43145         (configure.ac): Rename gl_SHA to gl_SHA1.
43146         (Include): sha.h -> sha1.h.
43147
43148 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43149
43150         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
43151         * m4/sha1.m4: Renamed from sha.m4.
43152         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
43153
43154 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43155
43156         * lib/obstack.h (obstack_empty_p):
43157         Don't assume that chunk->contents is suitably aligned.
43158         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
43159         Likewise. Problem reported by Benno in
43160         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
43161
43162         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
43163         readable.  This could be improved further but it'd take some work.
43164
43165 2004-08-08  Simon Josefsson  <jas@extundo.com>
43166
43167         * modules/xgethostname (Depends-on): Remove exit and error (not
43168         used).
43169
43170         * modules/getpass-gnu: Add getpass.h.
43171         (Depends-on): Add stdbool.
43172         * modules/getpass: Add getpass.h.
43173
43174 2004-08-08  Simon Josefsson  <jas@extundo.com>
43175
43176         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
43177         Check getpass declaration.
43178
43179 2004-08-08  Simon Josefsson  <jas@extundo.com>
43180
43181         * lib/xgethostname.c: Don't include error.h (not used).
43182
43183         * lib/getpass.h: Add.
43184         * lib/getpass.c: Include getpass.h first.
43185
43186 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
43187
43188         * lib/xalloc-die.c: New file.
43189         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
43190         All uses removed.
43191         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
43192         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
43193         xalloc-die.c.
43194         (_, N_, xalloc_die): Move to xalloc-die.c.
43195         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
43196         so that we needn't mess with xalloc_msg_memory_exhausted.
43197
43198         * lib/sha1.h: Renamed from sha.h.
43199         (SHA1_H): Renamed from _SHA_H.
43200         (sha1_ctx): Renamed from sha_ctx.
43201         (sha1_init_ctx): Renamed from sha_init_ctx.
43202         (sha1_process_block): Renamed from sha_process_block.
43203         (sha1_process_bytes): Renamed from sha_process_bytes.
43204         (sha1_finish_ctx): Renamed from sha_finish_ctx.
43205         (sha1_read_ctx): Renamed from sha_read_ctx.
43206         (sha1_stream): Renamed from sha_stream.
43207         (sha1_buffer): Renamed from sha_buffer.
43208         * lib/sha1.c: Likewise; renamed from sha.c.
43209         Do not include <sys/types.h>.
43210         Include <stddef.h> rather than <stdlib.h>.
43211
43212 2004-08-08  Bruno Haible  <bruno@clisp.org>
43213
43214         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
43215         FILESYSTEM_PREFIX_LEN.
43216         * lib/progreloc.c: Likewise.
43217         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
43218
43219 2004-08-06  Simon Josefsson  <jas@extundo.com>
43220
43221         * modules/progname (Depends-on): Don't depend on stdbool.
43222
43223 2004-08-06  Simon Josefsson  <jas@extundo.com>
43224
43225         * modules/getsubopt: New file.
43226         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43227         getsubopt.
43228
43229 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43230
43231         More merge from coreutils.
43232
43233         * m4/utimens.m4, m4/utimecmp.m4: New files.
43234         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
43235         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
43236         prereq.m4, sha.m4: Import changes from coreutils.
43237
43238 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43239
43240         More merge from coreutils.
43241         * modules/raise, modules/readtokens0, modules/utimens:
43242         * modules/utimecmp, module/xnanosleep: New files.
43243         * modules/strftime: Add lib/strftime.h.
43244         Change include from <time.h> to "strftime.h".
43245         * modules/yesno: Add lib/yesno.h.
43246         * modules/backupfile: Remove lib/addext.c.
43247         * modules/euidaccess: Add stat-macros.h.
43248         * modules/canonicalize, modules/euidaccess,
43249         modules/filemode, modules/lchown, modules/makepath,
43250         modules/rmdir, modules/stat: Likewise.
43251
43252 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43253
43254         Merge from tar.
43255         * lib/argp-help.c (make_hol, hol_append): Don't assume that
43256         SIZE_MAX is a valid preprocessor constant.
43257         (__argp_basename): Change from "#ifndef _LIBC"
43258         to "#ifndef __argp_short_program_name", so that
43259         we don't compile these functions for tar.
43260
43261         More merges from coreutils.
43262         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
43263         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
43264         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
43265         * lib/addext.c: Remove; no longer needed.
43266         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
43267         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
43268         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
43269         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
43270         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
43271         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
43272         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
43273         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
43274         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
43275         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43276         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
43277         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
43278         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
43279         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
43280         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
43281         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
43282         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
43283         Import changes from coreutils.
43284
43285 2004-08-05  Simon Josefsson  <jas@extundo.com>
43286
43287         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
43288
43289 2004-08-05  Simon Josefsson  <jas@extundo.com>
43290
43291         * m4/getsubopt.m4: New file.
43292
43293 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43294
43295         Merge from coreutils.
43296
43297         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
43298         * m4/getcwd-path-max.m4: New files.
43299
43300         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
43301         FILESYSTEM_PREFIX_LEN ->
43302         FILE_SYSTEM_PREFIX_LEN.
43303         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
43304         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
43305         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
43306         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
43307
43308         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
43309         prerequisite modules now handle the DOS stuff.
43310         Don't check for unistd.h.
43311
43312 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43313
43314         Merge from coreutils.
43315
43316         * lib/.gdb-history: Remove; this doesn't belong here.
43317
43318         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
43319         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
43320         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
43321         * lib/getcwd.c: New files.
43322
43323         * lib/dirname.h: Include <stdbool.h>.
43324         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
43325         for consistency with POSIX terminology.  All uses changed.
43326         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
43327         (strip_trailing_slashes): Use bool for booleans.
43328         * lib/stripslash.c (strip_trailing_slashes): Likewise.
43329
43330         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
43331         sometimes returns a positive errno value even when it succeeds.
43332         (print_errno_message) [!LIBC]: Fall back on strerror if
43333         __strerror_r fails.
43334
43335         * lib/path-concat.c (mempcpy): Don't define if a system header defines
43336         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
43337         (longest_relative_suffix): New function.
43338         (path_concat): Use it.  Assume first argument is not NULL.
43339         Port to DOS.  Omit redundant separators.
43340         Report an error instead of returning NULL.
43341         Use mempcpy instead of memcpy.
43342         (xpath_concat): Remove: not declared or used.
43343
43344         * lib/same.h: Include <stdbool.h>
43345         (same_name): Return bool, not int.
43346         * lib/same.c (same_name): Likewise.
43347         (errno): Don't declare; we assume C89 or better now.
43348
43349         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
43350         if not already defined.
43351
43352         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
43353         * lib/dup-safer.c (errno): Likewise.
43354
43355 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43356
43357         Merge from coreutils.
43358         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
43359         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
43360         * modules/path-concat: Don't depend on strdup.
43361
43362 2004-08-03  Simon Josefsson  <jas@extundo.com>
43363
43364         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
43365         * lib/progname.h: Don't include stdbool.h.
43366
43367 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43368
43369         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
43370         * MODULES.html.sh (func_all_modules): Remove fatal.
43371
43372 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43373
43374         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
43375
43376 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43377
43378         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
43379         working.
43380
43381 2004-08-02  Simon Josefsson  <jas@extundo.com>
43382
43383         * lib/getsubopt.h: New file, with comments from Bruno Haible.
43384         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
43385         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
43386
43387 2004-08-01  Simon Josefsson  <jas@extundo.com>
43388
43389         * lib/xgetdomainname.c: Include stdlib.h, for free().
43390
43391 2004-07-19  Bruno Haible  <bruno@clisp.org>
43392
43393         * MODULES.html.sh (func_all_modules): Add dummy.
43394
43395 2004-07-16  Simon Josefsson  <jas@extundo.com>
43396
43397         * modules/dummy: New file.
43398
43399 2004-07-16  Simon Josefsson  <jas@extundo.com>
43400
43401         * lib/dummy.c: New file.
43402
43403 2004-07-16  Bruno Haible  <bruno@clisp.org>
43404
43405         * lib/backupfile.h: Add extern "C" for C++.
43406         * lib/closeout.h: Likewise.
43407         * lib/copy-file.h: Likewise.
43408         * lib/findprog.h: Likewise.
43409         * lib/full-write.h: Likewise.
43410         * lib/pathname.h: Likewise.
43411         * lib/progname.h: Likewise.
43412         * lib/stpcpy.h: Likewise.
43413         * lib/stpncpy.h: Likewise.
43414         * lib/strcase.h: Likewise.
43415         * lib/strstr.h: Likewise.
43416         * lib/xalloc.h: Likewise.
43417
43418         * lib/mbswidth.h: Add extern "C" for C++.
43419         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
43420
43421 2004-07-13  Robert Millan  <robertmh@gnu.org>
43422
43423         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
43424
43425 2004-07-09  Simon Josefsson  <jas@extundo.com>
43426
43427         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
43428         failed without this.)
43429
43430 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43431
43432         * modules/chown (Files): Add lib/fchown-stub.c, since
43433         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
43434
43435 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43436
43437         * lib/fchown-stub.c: New file.
43438
43439 2004-06-24  Jim Meyering  <jim@meyering.net>
43440
43441         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
43442
43443 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         * modules/argz: Omit "#include".
43446
43447         * MODULES.html.sh (func_all_modules): Add calloc, to match
43448         2004-06-01 addition of calloc module.
43449
43450 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43451
43452         * m4/argz.m4: New file, which is autoupdated from libtool.
43453
43454 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43455
43456         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
43457         libtool.
43458
43459 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43460
43461         * config/srclist-update: Don't insist on "USA." before the
43462         close-comment, as libtool omits the period and puts the */ on a
43463         separate line.
43464         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
43465         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
43466
43467 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
43468
43469         * modules/argz: New file.
43470         * MODULES.html.sh (func_all_modules): Add argz.
43471
43472 2004-06-12  Jim Meyering  <jim@meyering.net>
43473         and  Paul Eggert  <eggert@cs.ucla.edu>
43474
43475         * modules/hash (Files): Add lib/xalloc.h.
43476         * modules/pipe (Depends-on): Add wait-process.
43477         * modules/stat (Depends-on): Add xalloc.
43478         * modules/userspec (Files): Add lib/userspec.h.
43479         * modules/xstrto
43480
43481         Upgrade from gettext-0.13.
43482         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
43483         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
43484         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
43485
43486 2004-06-10  Jim Meyering  <jim@meyering.net>
43487
43488         * lib/calloc.c: New file.
43489
43490 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43491
43492         * lib/getdate.y (yylex): Allow space between sign and number.
43493         Problem reported by Dan Jacobson.
43494
43495 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
43496
43497         Merge from coreutils CVS.
43498
43499         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
43500         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
43501         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
43502         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
43503         xstrtol.m4: Fix copyright date and/or serial number.
43504
43505         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
43506         See if we need an fchown replacement.
43507         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
43508         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
43509         and use the replacement function if we detect either defect.
43510
43511         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
43512         gl_UTIMECMP.
43513
43514 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
43515         and  Jim Meyering  <jim@meyering.net>
43516
43517         Merge from coreutils CVS.
43518
43519         * lib/stat-macros.h: New file, with contents from file-type.h
43520         and coreutils' system.h.
43521         * lib/file-type.c: Include "stat-macros.h".
43522         * lib/file-type.h (file_type): Move all macro definitions to new file,
43523         stat-macros.h.
43524
43525         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
43526         Wrap old code with this conditional.
43527         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
43528         function that does not dereference symlinks.
43529         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
43530
43531         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
43532         dependency problems.
43533         (xreadlink): Accept new arg SIZE, for efficiency.
43534         All decls and uses changed.
43535         * lib/xreadlink.h: Include <stddef.h>, for size_t.
43536
43537         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
43538         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
43539
43540         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
43541         sysexits.h.
43542
43543 2004-06-01  Jim Meyering  <jim@meyering.net>
43544
43545         * m4/calloc.m4: New file.
43546
43547 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
43548
43549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
43550         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
43551         Also, fix a typo in a diagnostic.
43552
43553 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
43554
43555         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
43556         or AC_FUNC_REALLOC.
43557
43558 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
43559
43560         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
43561         macros to be defined.
43562         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
43563         the allocator returns NULL because the requested size is zero.
43564
43565 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43566
43567         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
43568         var.  Add comment explaining why libc still defines it.  This
43569         merges the following patch from glibc:
43570         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
43571
43572 2004-05-20  Andreas Schwab  <schwab@suse.de>
43573
43574         * m4/free.m4: Replace free if it not known to work, not the other
43575         way round.
43576
43577 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43578
43579         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
43580         present in glibc since revision 1.1 of this file.
43581         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
43582         obstack_alignment_mask, obstack_alloc, obstack_base,
43583         obstack_blank, obstack_blank_fast, obstack_chunk_size,
43584         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
43585         obstack_grow0, obstack_init, obstack_int_grow,
43586         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
43587         obstack_next_free, obstack_object_size, obstack_ptr_grow,
43588         obstack_ptr_grow_fast, obstack_room): Remove declarations of
43589         nonexistent functions.
43590
43591 2004-05-18  Karl Berry  <karl@gnu.org>
43592
43593         * config/srclist.txt: break link for vasnprintf.c.
43594
43595 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43596
43597         Port obstack to the AS/400, where pointers are 16 bytes wide and
43598         you cannot cast an integer to a valid pointer.  This patch is
43599         currently waiting to be integrated into glibc; see
43600         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
43601
43602         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
43603         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
43604         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
43605         (struct obstack): temp member is now a union of a pointer and
43606         an integer, instead of an integer.  All integer uses changed.
43607         This does not affect the physical layout of struct obstack,
43608         except on hosts (like the AS/400) where the size or alignment of
43609         void * is greater than that of ptrdiff_t.
43610         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
43611         __STDC__)]: Store temporary in pointer member of union, not
43612         integer member.
43613         * lib/obstack.c: Include <stddef.h>, for offsetof.
43614         (struct fooalign): Remove; it doesn't need a name.
43615         (union fooround): Change double to long double, and add void *.
43616         (DEFAULT_ALIGNMENT): Use offsetof to compute.
43617         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
43618         not a macro.  Hence the values are always int; so remove all
43619         casts-to-int in uses.
43620
43621 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43622
43623         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
43624         we can get this patch merged into glibc.
43625
43626 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43627             Paul Eggert  <eggert@cs.ucla.edu>
43628
43629         * m4/argp: Depend on alloca.
43630
43631 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43632             Paul Eggert  <eggert@cs.ucla.edu>
43633
43634         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
43635         freecoding.
43636
43637 2004-05-17  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
43640         precision that consists of a '.' followed by an empty digit string.
43641         Patch by Tor Lillqvist <tml@iki.fi>.
43642
43643 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43644
43645         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
43646         for backward compatibility with older code.  We need our own
43647         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
43648         it under some other name, and our alloca.h will define it.
43649
43650 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43651             Derek Price  <derek@ximbiot.com>
43652
43653         * lib/alloca.c: Include <alloca.h>, to get our interface.
43654         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
43655         include <alloca.h> first.  Use C89 prototype for alloca; this
43656         requires including <stddef.h> for size_t.  Use extern "C" if C++.
43657         Use #elif for simplicity, since we can assume C89 now.
43658         Don't try to source the system alloca.h since it will not be found
43659         and to prevent recursively including its replacement.
43660         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
43661         * lib/regex.c: Likewise.
43662
43663 2004-05-16  Derek Price  <derek@ximbiot.com>
43664             Paul Eggert  <eggert@cs.ucla.edu>
43665
43666         getline cleanup.  This changes the getndelim2 API: both order of
43667         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
43668         no delimiter).
43669
43670         * lib/getline.c: Don't include stddef.h or stdio.h, since our
43671         interface does that.
43672         (getline): Always use getdelim, so that we don't have two
43673         copies of this code.
43674         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
43675         if available.
43676         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
43677         (GETNDELIM2_MAXIMUM): New macro.
43678         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
43679         instead of the old practice of delim2==0.  All callers changed.
43680         Return -1 on overflow, instead of returning junk.
43681         Do not set *linesize unless allocation succeeds.
43682         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
43683         that we include sys/types.h.
43684         * lib/getnline.h: Likewise.
43685         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
43686         (getndelim2): Reorder arguments.
43687         * lib/getnline.c (getnline, getndelim):
43688         Don't discard the NMAX argument.
43689         (getnline): Invoke getndelim, to avoid code duplication.
43690         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
43691         of (size_t) -1 by callers of the getnline family.
43692
43693 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43694
43695         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
43696         Check for gettimeofday.
43697         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
43698         Check for settimeofday, stime.
43699
43700 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43701
43702         * lib/nanosleep.c (suspended): Change its type from int to
43703         sig_atomic_t volatile.
43704         (first_call): Make it private to rpl_nanosleep, and have it
43705         be zero initially as that's a bit faster.
43706         (my_usleep): Round up fractional times instead of truncating them,
43707         as this is the usual meaning for 'sleep'.
43708
43709         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
43710         doesn't work.
43711         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
43712         (ENOSYS): Define if not defined.
43713         (settime): Fall back on stime if it exists and settimeofday fails.
43714         But don't bother with fallbacks if a method fails with errno == EPERM.
43715
43716 2004-05-11  Jim Meyering  <jim@meyering.net>
43717
43718         Prior to this change, the save_cwd caller required read access to the
43719         current directory on most systems (ones with the fchdir function).
43720
43721         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
43722         fails, try write-only, and finally, resort to using xgetcwd.
43723
43724 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43725
43726         * lib/obstack.c, obstack.h: Import changes from libc.
43727
43728 2004-04-28  Bruno Haible  <bruno@clisp.org>
43729
43730         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
43731         also implicitly appends .exe to executables.
43732         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
43733         accepts Windows pathnames.
43734         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43735         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43736         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43737         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43738         Reported by Derek Robert Price <derek@ximbiot.com>.
43739
43740 2004-04-21  Karl Berry  <karl@gnu.org>
43741
43742         * config/srclist.txt (localcharset.c): break sync.
43743
43744 2004-04-20  Paul Eggert  <eggert@twinsun.com>
43745
43746         * m4/host-os.m4: Add a copyright notice.
43747
43748 2004-04-20  Jim Meyering  <jim@meyering.net>
43749
43750         Change UTILS_ to gl_ in AC_DEFINE'd names.
43751         Change utils_- and jm_-prefixed variables, too.
43752         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
43753         UTILS_FUNC_MKDIR_TRAILING_SLASH.
43754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
43755
43756         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
43757         Don't emit trailing blanks.
43758         Also rename jm_-prefixed variables to have gl_ prefix.
43759
43760         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
43761         Also rename jm_-prefixed variables to have gl_ prefix.
43762
43763         * m4/jm-macros.m4: Reflect the renamings.
43764         * m4/prereq.m4: Likewise.
43765
43766 2004-04-20  Jim Meyering  <jim@meyering.net>
43767
43768         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
43769         memory.
43770
43771 2004-04-20  Jim Meyering  <jim@meyering.net>
43772             Bruno Haible  <bruno@clisp.org>
43773
43774         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
43775         memory when realloc fails.
43776
43777 2004-04-19  Jim Meyering  <jim@meyering.net>
43778
43779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
43780         now that readutmp.c may call `free (0)'.
43781
43782 2004-04-19  Bruno Haible  <bruno@clisp.org>
43783
43784         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
43785         * m4/inttypes_h.m4: Likewise.
43786         * m4/stdint_h.m4: Likewise.
43787         * m4/intmax_t.m4: Likewise.
43788         * m4/uintmax_t.m4: Likewise.
43789
43790 2004-04-18  Jim Meyering  <jim@meyering.net>
43791
43792         * m4/prereq.m4: Don't forbid jm_ prefix.
43793
43794         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
43795         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
43796         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
43797         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
43798         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
43799         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
43800         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
43801         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
43802         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
43803         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
43804         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
43805         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
43806         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
43807         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
43808         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
43809         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
43810         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
43811         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
43812         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
43813
43814 2004-04-18  Jim Meyering  <jim@meyering.net>
43815
43816         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
43817         failure, don't leak memory and do call END_UTMP_ENT.
43818
43819 2004-04-16  Jim Meyering  <jim@meyering.net>
43820
43821         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
43822         coreutils' stat program.
43823         (gl_PREREQ): Don't require jm_PREREQ_STAT.
43824
43825 2004-04-11  Paul Eggert  <eggert@twinsun.com>
43826
43827         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
43828         C89.
43829         (CHAR_BIT): Remove, since we assume C89.
43830         Include <stdint.h> if available, as per current Autoconf CVS advice.
43831
43832 2004-03-31  Jim Meyering  <jim@meyering.net>
43833
43834         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
43835         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
43836         * m4/xalloc.m4: Likewise.
43837
43838 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43839
43840         Merge from coreutils.
43841
43842         * m4/inttostr.m4: New file.
43843         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
43844         Require AM_STDBOOL_H and gl_TIMESPEC instead.
43845         Require gl_CLOCK_TIME.
43846         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
43847
43848 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43849
43850         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
43851         not bool, to be more consistent with Unix conventions.
43852         Suggested by Bruno Haible.
43853
43854         Merge from coreutils.
43855
43856         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
43857         * lib/umaxtostr.c: New files.
43858
43859         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
43860         the usual <time.h> dance.
43861         (get_date): Change signature to support fractional time stamps.
43862         All callers changed.
43863         * lib/getdate.y: Include "getdate.h" first, as we can now
43864         assume C89 and don't need to worry about 'const'.
43865         Similarly, include "unlocked-io.h" near start, not in middle.
43866         Include <limits.h>.
43867         (textint.value): Use long int rather than int.
43868         (textint.digits): Use size_t rather than int.
43869         (BILLION, LOG10_BILLION): New constants.
43870         (parser_control): New member rel_ns.  Members day_ordinal,
43871         time_zone, month, day, hour, minutes, rel_year, rel_month,
43872         rel_day, rel_hour, rel_minutes, rel_seconds
43873         are now long int, not int.  Member seconds is now struct timespec,
43874         not int.  New member timespec_seen.  Members dates_seen, days_seen,
43875         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
43876         not int.
43877         (%union.intval): Now long int, not int.
43878         New member timespec.
43879         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
43880         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
43881         (spec): Now is a timespec or an item list.
43882         (timespec, items): New nonterminals.
43883         (time, rel, relunit, number, get_date):
43884         Add support for fractional seconds.
43885         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
43886         (gmtime, localtime, mktime): Remove decls; not needed with C89.
43887         (to_hour): First arg is now long int, not int.
43888         (to_year): Returns long int, not int.
43889         Don't treat year -70 like 70.
43890         (tm_diff): Returns long int, not int.
43891         (lookup_word): Use bool instead of int when appropriate.
43892         (yylex): Use size_t for count, not int.
43893         Detect overflow when parsing large integer constants.
43894         Add support for fractions.
43895         (get_date): Make pointers 'const' if possible.
43896         Use more-portable code to detect integer overflow.
43897         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
43898         Don't use ctime; it's not reliable if the year has >4 digits.
43899
43900         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
43901         This is for compatibility with BSD.
43902
43903         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
43904         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
43905         From coreutils' system.h.
43906
43907         * lib/userspec.c: Don't include "posixver.h".
43908         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
43909         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
43910         compatible extension.  Simplify code by removing a boolean int
43911         that was always nonzero if a string was nonnull.
43912
43913 2004-03-30  Jim Meyering  <jim@meyering.net>
43914
43915         Merge from coreutils.
43916
43917         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
43918         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
43919         on some systems one must include <grp.h> before it.
43920         Reported by Christian Krackowizer.
43921
43922 2004-03-30  Jim Meyering  <jim@meyering.net>
43923
43924         Merge from coreutils.
43925
43926         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
43927
43928         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
43929         an empty input stream.
43930
43931         * lib/readtokens.c: Include <stdbool.h>.
43932         (readtoken): Use `size_t' rather than int/long.
43933         All callers adjusted.
43934         Use `bool' rather than `int' where appropriate.
43935         Use memset rather than an explicit loop.
43936         Use x2nrealloc rather than xrealloc.
43937         Allow the use of `\0' as a delimiter.
43938         (readtokens): Likewise.
43939         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
43940
43941 2004-03-30  Jim Meyering  <jim@meyering.net>
43942
43943         * m4/realloc.m4: Remove file, since now it does no more than
43944         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
43945         the `configure.ac' section of module/realloc.
43946         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
43947
43948 2004-03-30  Bruno Haible  <bruno@clisp.org>
43949
43950         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
43951         nonnull.
43952
43953 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43954
43955         Merge changes to getloadavg.c from coreutils and Emacs.
43956
43957         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
43958         Define to an expression, not to the empty string.
43959         Include cloexec.h and xalloc.h.
43960         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
43961         Use set_cloexec_flag rather than rolling our own.
43962         * lib/cloexec.c, lib/cloexec.h: New files.
43963
43964 2004-03-29  Paul Eggert  <eggert@twinsun.com>
43965
43966         * m4/cloexec.m4: New file.
43967
43968 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43969
43970         * lib/getopt.h: Sync with libc CVS.
43971
43972 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43973             Bruno Haible  <bruno@clisp.org>
43974
43975         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
43976         mbswidth.
43977
43978 2004-03-18  Paul Eggert  <eggert@twinsun.com>
43979             Bruno Haible  <bruno@clisp.org>
43980
43981         * lib/mbswidth.h: Include <wchar.h> only if
43982         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
43983         <wchar.h>.
43984         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
43985
43986 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43987
43988         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
43989         Sync with libc CVS.
43990         * lib/getopt_int.h: New file, also synced from libc.
43991
43992 2004-03-09  Paul Eggert  <eggert@twinsun.com>
43993
43994         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
43995         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
43996         Bring back getopt.c, getopt.h, getopt1.c.
43997
43998 2004-03-07  Paul Eggert  <eggert@twinsun.com>
43999
44000         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
44001         All uses changed.  Check for sa_sigaction member; this fixes
44002         a bug first reported by Jason Andrade in
44003         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44004
44005 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44006
44007         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
44008         '#if' expressions.  Unlike the code it replaces, it does not
44009         depend on (defined _SC_PAGESIZE).  However, it does depend on
44010         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
44011         first reported by Jason Andrade in
44012         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44013
44014 2004-02-25  Simon Josefsson  <jas@extundo.com>
44015
44016         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
44017
44018 2004-02-25  Simon Josefsson  <jas@extundo.com>
44019
44020         * lib/strdup.h: New file.
44021         * lib/strdup.c: Include it.
44022         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
44023         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
44024
44025 2004-02-23  Karl Berry  <karl@gnu.org>
44026
44027         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
44028         (from fencepost.gnu.org:/gd/gnuorg).
44029
44030 2004-02-23  Karl Berry  <karl@gnu.org>
44031
44032         * config/srclistvars.sh (GNUORG) [karl]: redefine.
44033         * config/srclist.txt: add maintain/standards documents.
44034
44035 2004-02-18  Bruno Haible  <bruno@clisp.org>
44036
44037         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
44038         Reported by Derek Robert Price <derek@ximbiot.com>.
44039
44040 2004-02-16  Karl Berry  <karl@gnu.org>
44041
44042         * config/mkinstalldirs, install-sh: update from automake.
44043
44044 2004-02-06  Karl Berry  <karl@gnu.org>
44045
44046         * m4/po.m4: update from gettext 0.14.1.
44047
44048 2004-02-06  Karl Berry  <karl@gnu.org>
44049
44050         * lib/config.charset: update from gettext 0.14.1.
44051
44052 2004-02-05  Paul Eggert  <eggert@twinsun.com>
44053
44054         Add comments and code, prompted by suggestions from Bruno Haible
44055         for sh-quote.
44056         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
44057         describing the enum quoting_style values.
44058         * lib/quotearg.c (quotearg_alloc): New function.
44059         (quotearg_buffer_restyled): Treat lone { and } as special.
44060         Treat = as special.  Work around bug with older shells
44061         that "see" a '\' that is really the 2nd byte of a multibyte char.
44062         Quote empty string with shell_quoting_style.
44063
44064 2004-02-03  Bruno Haible  <bruno@clisp.org>
44065
44066         * m4/pipe.m4: New file, from GNU gettext.
44067
44068 2004-02-03  Bruno Haible  <bruno@clisp.org>
44069
44070         * lib/pipe.h: New file, from GNU gettext.
44071         * lib/pipe.c: New file, from GNU gettext.
44072
44073 2004-01-27  Bruno Haible  <bruno@clisp.org>
44074
44075         * m4/execute.m4: New file, from GNU gettext.
44076
44077 2004-01-27  Bruno Haible  <bruno@clisp.org>
44078
44079         * lib/execute.h: New file, from GNU gettext.
44080         * lib/execute.c: New file, from GNU gettext.
44081         * lib/w32spawn.h: New file, from GNU gettext.
44082
44083 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44084
44085         Merge from diffutils.
44086
44087         * lib/file-type.c (file_type): Add typed memory objects.
44088         * lib/file-type.h (S_TYPEISTMO): New macro.
44089
44090         * lib/c-stack.h (c_stack_action): Remove argv argument.
44091         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
44092         (die): Don't calculate message unless segv_action returns.
44093         (get_stack_location, min_address_from_argv, max_address_from_argv,
44094         volatile stack_base, volatile_stack_size): Remove.
44095         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
44096         that every segmentation violation is a stack overflow.  (Ouch!)
44097         See Debian bug 136249 (still outstanding) for more info about why
44098         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
44099
44100 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44101
44102         Exit-status fix from coreutils.
44103
44104         Use exit_failure consistently in place of EXIT_FAILURE,
44105         so that program exit statuses are consistent on failure.
44106
44107         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
44108         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
44109         * lib/argmatch.h: Comment fix to match the above.
44110         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
44111         Now a macro referring to exit_failure, instead of a separate
44112         variable.  Include "exitfail.h" to get it.
44113         * lib/xstrtol.h: Include "exitfail.h".
44114         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
44115
44116         * lib/long-options.c (parse_long_options): Use prototype
44117         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
44118         for clarity.
44119
44120 2004-01-21  Jim Meyering  <jim@meyering.net>
44121
44122         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
44123         so as not to conflict with a different-sized __mktime_internal
44124         function in GNU libc.
44125         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
44126         Problem building statically-linked `ls' reported by Michael Brunnbauer.
44127
44128 2004-01-20  Karl Berry  <karl@gnu.org>
44129
44130         * config/config.guess: update from config.
44131
44132         * config/srclistvars.sh: GNUWWWLICENSES for karl.
44133
44134 2004-01-20  Bruno Haible  <bruno@clisp.org>
44135
44136         Safer stack allocation.
44137         * lib/setenv.c: Include allocsa.h.
44138         (alloca): Remove fallback definition.
44139         (freea): Remove macro.
44140         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
44141         instead of freea.
44142
44143 2004-01-20  Bruno Haible  <bruno@clisp.org>
44144
44145         * m4/eealloc.m4: New file, from GNU gettext.
44146
44147 2004-01-20  Bruno Haible  <bruno@clisp.org>
44148
44149         * m4/allocsa.m4: New file, from GNU gettext.
44150
44151 2004-01-20  Bruno Haible  <bruno@clisp.org>
44152
44153         * lib/xallocsa.h: New file, from GNU gettext.
44154         * lib/xallocsa.c: New file, from GNU gettext.
44155
44156 2004-01-20  Bruno Haible  <bruno@clisp.org>
44157
44158         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
44159
44160 2004-01-20  Bruno Haible  <bruno@clisp.org>
44161
44162         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
44163         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
44164         specially.
44165
44166 2004-01-20  Bruno Haible  <bruno@clisp.org>
44167
44168         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
44169         patch.
44170
44171 2004-01-20  Bruno Haible  <bruno@clisp.org>
44172
44173         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
44174
44175 2004-01-20  Bruno Haible  <bruno@clisp.org>
44176
44177         * lib/eealloc.h: New file.
44178
44179 2004-01-20  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/binary-io.h: Avoid warnings on Cygwin.
44182
44183 2004-01-20  Bruno Haible  <bruno@clisp.org>
44184
44185         * lib/allocsa.h: New file, from GNU gettext.
44186         * lib/allocsa.c: New file, from GNU gettext.
44187
44188 2004-01-18  Karl Berry  <karl@gnu.org>
44189
44190         * doc/gpl.texi, doc/lgpl.texi: new files.
44191
44192 2004-01-18  Karl Berry  <karl@gnu.org>
44193
44194         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
44195         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
44196
44197 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44198
44199         Merge from coreutils.
44200
44201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
44202         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
44203         (gl_DEFAULT_POSIX2_VERSION): Move
44204         the documentation from 'configure' into 'config.hin',
44205         so that 'configure --help' isn't burdened by it and
44206         we don't have to worry about its formatting there.
44207         Reword the documentation so that it's more succinct
44208         and can be run together into a single paragraph.
44209         * m4/same.m4 (gl_SAME): Check for pathconf.
44210
44211 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44212
44213         Merge from coreutils.
44214
44215         * lib/posixver.c: Include posixver.h.
44216
44217         * lib/same.c: Include <stdbool.h>, <limits.h>.
44218         (_POSIX_NAME_MAX): Define if not defined.
44219         (MIN): New macro.
44220         (same_name): If file names are silently truncated, report
44221         that the file names are the same if they are the same after
44222         the silent truncation.
44223
44224         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
44225         conversion function.
44226         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
44227         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
44228         longer needed.
44229
44230 2004-01-15  Jim Meyering  <jim@meyering.net>
44231
44232         Merge from coreutils.
44233
44234         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
44235         if no library is required.
44236         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
44237         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
44238         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
44239         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
44240         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
44241         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
44242         value, $ac_cv_search_crypt, if it's "none required".
44243         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
44244         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
44245         not gl_FUNC_GETLOADAVG.
44246         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
44247         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
44248
44249 2004-01-15  Jim Meyering  <jim@meyering.net>
44250
44251         Merge from coreutils.
44252
44253         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
44254         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
44255         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
44256
44257         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
44258         optional configure-time default.
44259
44260         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44261
44262         * lib/xreadlink.c (xreadlink): Correct outdated comment.
44263
44264 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
44265
44266         Merge from coreutils.
44267
44268         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
44269         value, $ac_cv_search_nanosleep, if it's "none required".
44270
44271 2004-01-14  Paul Eggert  <eggert@twinsun.com>
44272
44273         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
44274         with like-named macro in fnmatch.c.
44275         (EXT): Use an internal constant instead.
44276
44277         Merge fnmatch patches from glibc.
44278         * lib/fnmatch.c (mbsinit): Remove define.
44279         Add libc_hidden_ver (__fnmatch, fnmatch).
44280         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
44281         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
44282
44283 2004-01-14  Karl Berry  <karl@gnu.org>
44284
44285         * config/install-sh: update from automake.
44286
44287 2004-01-13  Karl Berry  <karl@gnu.org>
44288
44289         * config/install-sh: update from automake.
44290
44291 2004-01-09  Karl Berry  <karl@gnu.org>
44292
44293         * config/install-sh: update from automake.
44294
44295 2004-01-05  Karl Berry  <karl@gnu.org>
44296
44297         * config/config.{sub,guess}: update from config.
44298
44299 2003-12-31  Karl Berry  <karl@gnu.org>
44300
44301         * config/depcomp: update from automake.
44302
44303 2003-12-14  Karl Berry  <karl@gnu.org>
44304
44305         * lib/config.charset: update from gettext-runtime.
44306
44307 2003-12-03  Paul Eggert  <eggert@twinsun.com>
44308
44309         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
44310         Bug reported by Alfred M. Szmidt.
44311
44312 2003-12-03  Bruno Haible  <bruno@clisp.org>
44313
44314         * m4/gettext.m4: Upgrade from gettext-0.13.
44315         * m4/po.m4: Upgrade from gettext-0.13.
44316         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
44317         * m4/intmax.m4: New file, from gettext-0.13.
44318         * m4/printf-posix.m4: New file, from gettext-0.13.
44319
44320 2003-11-29  Karl Berry  <karl@gnu.org>
44321
44322         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
44323
44324 2003-11-25  Paul Eggert  <eggert@twinsun.com>
44325             Bruno Haible  <bruno@clisp.org>
44326
44327         * lib/printf-parse.h: Don't include sys/types.h.
44328         (ARG_NONE): New macro.
44329         (char_directive): Change type of *arg_index fields to size_t.
44330         * lib/printf-parse.c: Don't include sys/types.h.
44331         (SSIZE_MAX): Remove macro.
44332         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
44333         Remove unnecessary overflow check.
44334         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
44335         fields.
44336
44337 2003-11-25  Bruno Haible  <bruno@clisp.org>
44338
44339         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
44340
44341 2003-11-25  Bruno Haible  <bruno@clisp.org>
44342
44343         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
44344         gt_TYPE_SSIZE_T.
44345
44346 2003-11-24  Paul Eggert  <eggert@twinsun.com>
44347
44348         * modules/alloca: Remove dependency on xalloc.
44349
44350 2003-11-24  Paul Eggert  <eggert@twinsun.com>
44351
44352         * lib/alloca.c: Remove dependency on xalloc module.
44353         (xalloc_die): Remove.
44354         (memory_full) [!defined emacs]: New macro.
44355         [!defined emacs]: Don't include xalloc.h.
44356         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
44357         address arithmetic overflows.  Change datatypes a bit to avoid
44358         unnecessary casts.
44359
44360 2003-11-22  Jim Meyering  <jim@meyering.net>
44361
44362         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
44363         s/size/size_t/.
44364
44365 2003-11-21  Karl Berry  <karl@gnu.org>
44366
44367         * config/config.{sub,guess}: update from config.
44368
44369 2003-11-18  Karl Berry  <karl@gnu.org>
44370
44371         * config/config.{sub,guess}: update from config.
44372
44373         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
44374
44375 2003-11-17  Paul Eggert  <eggert@twinsun.com>
44376
44377         * README: Mention that S+T cannot overflow if S is the size of
44378         an existing object and T is sufficiently small.
44379
44380 2003-11-17  Jim Meyering  <jim@meyering.net>
44381
44382         On systems without utime and without a utimes function capable of
44383         dealing with a NULL struct utimbuf* argument, this utime replacement
44384         could -- in unusual circumstances -- leak a file descriptor.
44385         * lib/utime.c: Include <unistd.h> and <errno.h>.
44386         (utime_null): Be sure to close `fd' and to preserve errno.
44387         Reported by Geoff Collyer via Arnold Robbins.
44388
44389 2003-11-17  Bruno Haible  <bruno@clisp.org>
44390
44391         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
44392         (Depends-on): Add xsize.
44393
44394 2003-11-17  Bruno Haible  <bruno@clisp.org>
44395
44396         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
44397
44398 2003-11-17  Bruno Haible  <bruno@clisp.org>
44399
44400         * lib/vasnprintf.c (alloca): Remove fallback definition.
44401         (freea): Remove definition.
44402         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
44403         Reported by Paul Eggert.
44404
44405 2003-11-16  Paul Eggert  <eggert@twinsun.com>
44406             Bruno Haible  <bruno@clisp.org>
44407
44408         Protect against address arithmetic overflow.
44409         * lib/printf-args.h: Include stddef.h.
44410         (arguments): Change type of field 'count' to size_t.
44411         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
44412         'unsigned int' where appropriate.
44413         * lib/printf-parse.h: Include sys/types.h.
44414         (char_directive): Change type of *arg_index fields to ssize_t.
44415         (char_directives): Change type of fields 'count', max_*_length to
44416         size_t.
44417         * lib/printf-parse.c: Include sys/types.h and xsize.h.
44418         (SSIZE_MAX): Define fallback value.
44419         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
44420         instead of 'int' where appropriate. Check a_allocated, d_allocated
44421         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
44422         * lib/vasnprintf.c: Include xsize.h.
44423         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
44424         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
44425         overflow. Avoid wraparound when converting a width or precision from
44426         decimal to binary.
44427
44428 2003-11-16  Bruno Haible  <bruno@clisp.org>
44429
44430         Update from GNU gettext.
44431         * lib/printf-parse.c: Generalize to it can be compiled for wide
44432         strings.
44433         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
44434         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
44435         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
44436         SNPRINTF): New macros.
44437         Don't include <alloca.h> if the file is used inside libintl.
44438         (local_wcslen): New function, for Solaris 2.5.1.
44439         (VASNPRINTF): Use it instead of wcslen.
44440
44441 2003-11-16  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/xsize.h (xmax): New function.
44444         (xsum, xsum3, xsum4): Declare as "pure" functions.
44445
44446 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44447
44448         * modules/xalloc (Files): Undo latest change, since xalloc.h
44449         no longer needs SIZE_MAX or PTRDIFF_MAX.
44450
44451 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44452
44453         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
44454         gl_PTRDIFF_MAX.
44455
44456 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44457
44458         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
44459         "return", to pacify some unknown compiler.  Problem reported
44460         by Joerg Schilling.
44461
44462 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44463
44464         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
44465         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
44466         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
44467         heuristic is just as accurate as far as we know, and it removes a
44468         dependency on size_max.m4 and ptrdiff_max.m4.
44469
44470 2003-11-11  Bruno Haible  <bruno@clisp.org>
44471
44472         * modules/xsize (Files): Add m4/size_max.m4.
44473         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
44474
44475 2003-11-11  Bruno Haible  <bruno@clisp.org>
44476
44477         * m4/size_max.m4: New file.
44478         * m4/ptrdiff_max.m4: New file.
44479         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
44480         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
44481         (gl_XALLOC): Invoke it.
44482
44483 2003-11-11  Bruno Haible  <bruno@clisp.org>
44484
44485         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
44486         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
44487         defined.
44488
44489 2003-11-10  Paul Eggert  <eggert@twinsun.com>
44490
44491         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
44492         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
44493         rejected some allocations of exactly SIZE_MAX - 2 bytes.
44494         From Bruno Haible.
44495         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
44496         not (size_t) -1, since it's defined here.
44497
44498 2003-11-09  Karl Berry  <karl@gnu.org>
44499
44500         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
44501
44502 2003-11-06  Paul Eggert  <eggert@twinsun.com>
44503
44504         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
44505         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
44506         Reject sizes of exactly SIZE_MAX bytes.
44507         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
44508         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
44509
44510 2003-11-05  Bruno Haible  <bruno@clisp.org>
44511
44512         * lib/xsize.h: Include limits.h, to avoid a possible collision with
44513         SIZE_MAX defined in <limits.h> on Solaris.
44514
44515 2003-11-04  Jim Meyering  <jim@meyering.net>
44516
44517         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
44518         variable names, rather than @VAR@.
44519         * modules/poll: Likewise.
44520
44521 2003-11-04  Bruno Haible  <bruno@clisp.org>
44522
44523         * modules/xsize: New file.
44524         * modules/linebreak: Depend on xsize.
44525         * MODULES.html.sh (func_all_modules): Add xsize.
44526
44527 2003-11-04  Bruno Haible  <bruno@clisp.org>
44528
44529         * m4/xsize.m4: New file.
44530
44531 2003-11-04  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/xsize.h: New file.
44534         * lib/linebreak.c: Include xsize.h.
44535         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
44536         argument for overflow.
44537         Suggested by Paul Eggert.
44538
44539 2003-11-03  Karl Berry  <karl@gnu.org>
44540
44541         * config/config.{guess,sub}: update from config.
44542
44543 2003-11-03  Jim Meyering  <jim@meyering.net>
44544
44545         * modules/userspec (lib_SOURCES): Add userspec.h.
44546         (Include): Add "userspec.h".
44547         Improve description.
44548
44549 2003-11-03  Jim Meyering  <jim@meyering.net>
44550
44551         * lib/userspec.c: Include "userspec.h".
44552         * lib/userspec.h: New file.
44553
44554 2003-11-03  Bruno Haible  <bruno@clisp.org>
44555
44556         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
44557
44558 2003-11-03  Bruno Haible  <bruno@clisp.org>
44559
44560         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
44561         available, to avoid (extremely rare) race condition.
44562         Suggested by Paul Eggert.
44563
44564 2003-11-02  Karl Berry  <karl@gnu.org>
44565
44566         * config/srclist.txt (vasprintf.c): sync broken, sigh.
44567
44568 2003-10-31  Paul Eggert  <eggert@twinsun.com>
44569
44570         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
44571         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
44572         (read_filesystem_list): Set and use me_type_malloced.
44573         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
44574         whatever the type happens to be), for brevity and consistency.
44575         Check for size calculation overflow on Alphas running OSF/1.
44576
44577 2003-10-31  Jim Meyering  <jim@meyering.net>
44578
44579         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
44580
44581         * lib/linebuffer.c: Include <string.h> for declaration of memset.
44582
44583 2003-10-30  Paul Eggert  <eggert@twinsun.com>
44584             Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
44587         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
44588
44589 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44590
44591         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
44592         netbsd*-gnu*.  Suggested by Robert Millan.
44593
44594 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44595
44596         * modules/group-member: Depend on stdbool.
44597
44598 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44599
44600         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
44601
44602 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44603
44604         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
44605         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
44606         after the 'gnu' in these cases.  This fixes some bugs in the
44607         previous change, and is based on suggestions by Robert Millan.
44608
44609 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44610
44611         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
44612         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
44613         no longer needed.
44614         * lib/quotearg.c (quotearg_n_options): Use it.
44615         * lib/group-member.c: Include <stdbool.h>.
44616         (free_group_info): Arg is now const *; don't free arg.
44617         (get_group_info): Now returns bool and accepts struct group_info *,
44618         rather than returning a malloc'ed struct group_info *.
44619         All uses changed.  Check for overflow in internal size calculation.
44620
44621         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
44622         rather than xmalloc/xrealloc.
44623         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
44624         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
44625         conformance bug: the old code used a pointer after freeing the
44626         storage that it addressed.
44627         * lib/hash.c (hash_initialize): Simplify the code by using
44628         xalloc_oversized rather than doing it by hand.
44629         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
44630         the buffer preserved.  Use free and xmalloc instead.
44631         * lib/quotearg.c (quotearg_n_options): Likewise.
44632         Use a simpler test for size overflow.  Don't use xalloc_oversized
44633         because unsigned int might be wider than size_t (!); this suggests
44634         that we should switch from unsigned int to size_t for slot numbers.
44635
44636 2003-10-28  Paul Eggert  <eggert@twinsun.com>
44637
44638         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
44639         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
44640         NetBSD kernels.  Requested by Richard Stallman.
44641
44642 2003-10-27  Paul Eggert  <eggert@twinsun.com>
44643
44644         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
44645         to allocate the returned structure.  Do not allocate a subarray,
44646         as x2nrealloc will do that.
44647         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
44648         instead of xnrealloc.
44649         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
44650
44651 2003-10-27  Bruno Haible  <bruno@clisp.org>
44652
44653         * lib/stdbool_.h: Better support for BeOS.
44654
44655 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44656
44657         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
44658         now uses inline.
44659
44660 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44661
44662         * lib/xalloc.h (xalloc_oversized): New static inline function, for
44663         callers that want to do their own size-overflow checking.  Include
44664         <stdbool.h>, since xalloc_oversized returns bool.
44665         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
44666         to use xalloc_oversized.
44667
44668         Add two functions x2realloc, x2nrealloc, for programs that grow
44669         arrays dynamically by doubling their sizes.
44670         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
44671         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
44672         New functions.
44673
44674         Port to C99 semantics for 'inline' of external functions.
44675         Bug reported by Bruno Haible.
44676         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
44677         with the old contents of xnmalloc.
44678         (xnmalloc, xmalloc): Use it.
44679         (xnrealloc_inline): New static inline function,
44680         with the old contents of xnrealloc.
44681         (xnrealloc, xrealloc): Use it.
44682
44683         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
44684         that.
44685
44686 2003-10-26  Karl Berry  <karl@gnu.org>
44687
44688         * config/srclist.txt (COPYING.DOC): no longer available from
44689         /gd/gnuorg; don't know where the ultimate source is.
44690
44691 2003-10-25  Paul Eggert  <eggert@twinsun.com>
44692
44693         Fix several address-calculation bugs in the hash modules,
44694         plus some minor code cleanup.
44695
44696         * lib/hash.h: Include <stdbool.h>, for bool.
44697         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
44698         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
44699         hash_get_n_entries, hash_get_max_bucket_length,
44700         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
44701         hash_rehash): Use size_t rather than unsigned.
44702         * lib/hash.c (struct hash_table, hash_get_n_buckets,
44703         hash_get_n_buckets_used, hash_get_n_entries,
44704         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
44705         hash_get_entries, hash_do_for_each, hash_string, is_prime,
44706         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
44707         Likewise.
44708         (SIZE_MAX): Define if not defined.
44709         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
44710         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
44711         hash_print):
44712         Use const * when possible.
44713         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
44714         (check_tuning): Fix bug: if tuning parameters were very close to
44715         0 or 1, rounding errors could have caused subscript violations.
44716         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
44717         (hash_initialize): Add 'fail:' label
44718         to free table and return NULL, and use it to simplify code.
44719         Use calloc rather than clearing the storage ourself.
44720         (hash_initialize, hash_rehash): Check for arithmetic overflow in
44721         buffer size calculations.
44722         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
44723         Include <stddef.h>, for size_t.
44724         * lib/hash-pjw.c (hash_pjw): Likewise.
44725         Switch to method described by Bruno Haible.
44726         Include <limits.h>, for CHAR_BIT.
44727         (SIZE_BITS): New macro.
44728
44729 2003-10-23  Paul Eggert  <eggert@twinsun.com>
44730
44731         * m4/getline.m4 (AM_FUNC_GETLINE):
44732         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
44733         hosts.  Problem reported by Derek Robert Price in
44734         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
44735         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
44736         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
44737
44738 2003-10-21  Paul Eggert  <eggert@twinsun.com>
44739
44740         * lib/getndelim2.c (getndelim2): When size calculation overflows,
44741         ceiling the allocation at NMAX bytes rather than silently
44742         discarding input bytes before NMAX is reached.  This makes
44743         a difference only if NMAX exceeds SIZE_MAX / 2.
44744
44745         * lib/obstack.c: Merge from glibc.
44746         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
44747         Add libc_hidden_def (_obstack_newchunk).
44748         (_obstack_free) [! defined _LIBC]: Remove.
44749         [defined _LIBC]: Make a strong alias from obstack_free, rather than
44750         a clone of the function body.
44751         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
44752         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
44753
44754         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
44755         glibc.
44756         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
44757         arg to memcpy.
44758
44759         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
44760         (obstack_ptr_grow_fast, obstack_int_grow_fast):
44761         Don't use lvalue casts, as GCC plans to remove support for them
44762         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
44763         was also present in the non-GCC version, indicating that this
44764         code had always been buggy and had never been widely used.
44765         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
44766         Use the fast variant of each macro, rather than copying the
44767         definiens of the fast variant; that way, we'll be more likely to
44768         catch future bugs in the fast variants.
44769
44770 2003-10-20  Bruno Haible  <bruno@clisp.org>
44771
44772         * modules/wait-process: New file.
44773         * MODULES.html.sh (func_all_modules): Add wait-process.
44774
44775 2003-10-20  Bruno Haible  <bruno@clisp.org>
44776
44777         * m4/wait-process.m4: New file.
44778
44779 2003-10-20  Bruno Haible  <bruno@clisp.org>
44780
44781         * lib/wait-process.h: New file, from GNU gettext.
44782         * lib/wait-process.c: New file, from GNU gettext.
44783
44784 2003-10-19  Jim Meyering  <jim@meyering.net>
44785
44786         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
44787         HPUX 10.20.
44788
44789 2003-10-18  Karl Berry  <karl@gnu.org>
44790
44791         * config/config.guess: update from config.
44792
44793 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44794
44795         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
44796         (getgroups): First arg is int, not size_t.
44797         Don't let 'free' mangle errno.
44798
44799 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44800
44801         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
44802
44803 2003-10-16  Karl Berry  <karl@gnu.org>
44804
44805         * config/config.{guess,sub}: update from config.
44806
44807 2003-10-16  Jim Meyering  <jim@meyering.net>
44808
44809         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
44810         memcpy.
44811
44812 2003-10-15  Paul Eggert  <eggert@twinsun.com>
44813
44814         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
44815         (SIZE_MAX): Remove.
44816         (new_exclude, add_exclude_file): Initial size no longer needs to
44817         be a power of 2.
44818         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
44819         our own address arithmetic overflow checking.
44820
44821         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
44822         (fnmatch): Do not alloca more than 2000 wide characters;
44823         instead, use malloc for large buffers.
44824         Check for address arithmetic overflow, and return -1
44825         with errno set to ENOMEM in that case.
44826         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
44827         (NEW_PATTERN): Do not alloca more than 8000 bytes;
44828         instead, return -1.  Check for address arithmetic overflow.
44829
44830 2003-10-14  Paul Eggert  <eggert@twinsun.com>
44831
44832         Handle invalid suffixes and overflow independently, so that
44833         callers can treat them independently as needed.  Fix some bugs in
44834         suffix handling, e.g., "100k@" was not diagnosed as an invalid
44835         suffix for a human-readable blocksize.  The major caller-visible
44836         change is the addition of a new
44837         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
44838         that both overflow and suffix chars were found.
44839
44840         * lib/human.c (humblock): Don't check separately for invalid suffix
44841         char; that is xstrtoumax's job (now that its bug is fixed).
44842         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
44843         INTMAX_MAX]: New macros.
44844         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
44845         TYPE_MAXIMUM): New macros.
44846         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
44847         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
44848         if overflow occurs, as it's what __strtol does and it's more useful
44849         in practice.
44850         (__xstrtol): If __strtol reports some error other than ERANGE,
44851         reflect it to the caller as LONGINT_INVALID.  If it reports
44852         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
44853         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
44854         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
44855         value.
44856         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
44857         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
44858         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
44859         [defined UINTMAX_MAX]: New macros.
44860
44861 2003-10-14  Bruno Haible  <bruno@clisp.org>
44862
44863         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
44864
44865 2003-10-14  Bruno Haible  <bruno@clisp.org>
44866
44867         * m4/sig_atomic_t: New file, from GNU gettext.
44868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
44869
44870 2003-10-14  Bruno Haible  <bruno@clisp.org>
44871
44872         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
44873         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
44874         Also use volatile where needed.
44875
44876 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44877
44878         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
44879         Change maintainer from Bruno Haible to 'all'.
44880
44881 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44882
44883         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
44884
44885 2003-10-12  Paul Eggert  <eggert@twinsun.com>
44886
44887         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
44888         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
44889         and define in terms of the other primitives.
44890         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
44891         (SIZE_MAX): Define if not already defined.
44892         (array_size_overflow): New function.
44893         (xalloc_die): Abort instead of exiting if 'error' returns.
44894         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
44895         (xmalloc, xrealloc): Use them.
44896         (xcalloc): Check for address arithmetic overflow.
44897         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
44898         a bit faster than strcpy.
44899
44900 2003-10-10  Simon Josefsson  <jas@extundo.com>
44901
44902         * modules/argp (Depends-on): Add restrict and strcase.
44903
44904 2003-10-10  Simon Josefsson  <jas@extundo.com>
44905
44906         * m4/argp.m4: Add AC_C_INLINE.
44907
44908 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44909
44910         Merge getpass from libc, plus a few fixes.
44911
44912         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
44913         Include <stdbool.h>.
44914         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
44915         __fsetlocking to empty.
44916         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
44917         do include <bits/libc-lock.h>.
44918         Do not include <fcntl.h>; not needed.
44919         [_LIBC]: Include <wchar.h>.
44920         (NOTCANCEL_MODE): New macro.
44921         (flockfile, funlockfile) [_LIBC]: New macros.
44922         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
44923         [!_LIBC]: New macros.
44924         (call_fclose): New function.
44925         (getpass): Use it.  Save tty stream separately; this simplifies the
44926         code and makes it more reliable if stdin happens to equal stdout.
44927         Invoke __fsetlocking on tty.
44928         Handle thread cancellation if needed.
44929         Namespace cleanup (use __tcgetattr, __getline).
44930         Use bool for Booleans.
44931         [USE_IN_LIBIO]: Handle wide streams.
44932         [!_LIBC]: Unconditionally do the fseek, since we don't know what
44933         stream might go where.
44934
44935         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
44936         doesn't have to include <stdio.h> before us.
44937         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
44938         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
44939         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
44940         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
44941         if not declared, so that we can use getpass.c code from libc without
44942         rewriting it.
44943         (flockfile, ftrylockfile, funlockfile): New macros.
44944
44945 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44946
44947         * modules/getpass: Depend on stdbool.
44948
44949 2003-10-08  Paul Eggert  <eggert@twinsun.com>
44950
44951         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
44952
44953 2003-10-07  Karl Berry  <karl@gnu.org>
44954
44955         * config/config.{guess,sub}: update from config.
44956
44957 2003-10-06  Jim Meyering  <jim@meyering.net>
44958             Bruno Haible  <bruno@clisp.org>
44959
44960         This lets translators provide better translations for the
44961         "Written by ..." part of --version output.
44962         * lib/version-etc.h: Include stdarg.h.
44963         (version_etc_copyright): Declare as readonly.
44964         (version_etc): Make this function variadic with a NULL-terminated list
44965         of author name strings.
44966         (version_etc_va): New declaration.
44967         * lib/version-etc.c: Include stdarg.h, stdlib.h.
44968         (version_etc_copyright): Declare as readonly.
44969         (version_etc_va): New function. Provide a different translatable string
44970         for each possible number of authors < 10. Abbreviate when there are 10
44971         authors or more.
44972         (version_etc): Make this function variadic. Call version_etc_va.
44973         Suggestion from Gary V. Vaughan.
44974
44975         * lib/long-options.h (parse_long_options): Change prototype: the
44976         authors string is moved to the end and becomes variadic.
44977         * lib/long-options.c: Include stdarg.h.
44978         (parse_long_options): Make this function variadic, too.
44979         Call version_etc_va, not version_etc.
44980
44981 2003-10-06  Bruno Haible  <bruno@clisp.org>
44982
44983         * modules/version-etc-2: Remove file.
44984         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
44985
44986 2003-10-06  Bruno Haible  <bruno@clisp.org>
44987
44988         * modules/fatal-signal: New file.
44989         * MODULES.html.sh (func_all_modules): Add fatal-signal.
44990
44991 2003-10-06  Bruno Haible  <bruno@clisp.org>
44992
44993         * m4/fatal-signal.m4: New file.
44994         * m4/signalblocking.m4: New file, from GNU gettext.
44995
44996 2003-10-06  Bruno Haible  <bruno@clisp.org>
44997
44998         * lib/version-etc-2.h: Remove file.
44999         * lib/version-etc-2.c: Remove file.
45000
45001 2003-10-06  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/fatal-signal.h: New file, from GNU gettext.
45004         * lib/fatal-signal.c: New file, from GNU gettext.
45005
45006 2003-10-05  Paul Eggert  <eggert@twinsun.com>
45007
45008         * README: Rework advice for preventing empty .o files.
45009         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
45010         not <sys/types.h>.
45011
45012 2003-10-04  Karl Berry  <karl@gnu.org>
45013
45014         * lib/argp*: update from libc.
45015
45016 2003-10-04  Karl Berry  <karl@gnu.org>
45017
45018         * config/config.{guess,sub}: update from config.
45019
45020 2003-10-02  Bruno Haible  <bruno@clisp.org>
45021
45022         * modules/lchown (Include): Add lchown.h.
45023         * modules/time_r (Include): Use "..." syntax.
45024         * modules/xgetdomainname (Include): Add xgetdomainname.h.
45025
45026 2003-10-01  Simon Josefsson  <jas@extundo.com>
45027
45028         * MODULES.html.sh (func_all_modules): Move gethostname from section
45029         'based on' to section 'lacking' POSIX:2001.
45030
45031 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
45032
45033         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
45034         to output mode on the same stream.
45035
45036 2003-09-29  Paul Eggert  <eggert@twinsun.com>
45037
45038         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
45039         Fix arg typo in previous patch.
45040
45041 2003-09-28  Jim Meyering  <jim@meyering.net>
45042
45043         * lib/error.c: Correct cpp indentation.
45044
45045 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45046
45047         * modules/free: New file.
45048
45049 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45050
45051         * m4/free.m4: New file.
45052
45053 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45054
45055         * lib/minmax.h (MIN, MAX)
45056         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
45057         Omit the special code that used __typeof__, since we worry that
45058         it could be more trouble than it's worth.  See:
45059         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
45060         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
45061
45062         * lib/free.c: New file.
45063
45064 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
45065
45066         Trivial fixes to Makefile.am parts of module listings.
45067         * modules/strstr: Append strstr.h to lib_SOURCES.
45068         * modules/strcase: Likewise, for strcase.h.
45069
45070 2003-09-27  Karl Berry  <karl@gnu.org>
45071
45072         * config/mkinstalldirs: update from automake.
45073
45074 2003-09-26  Paul Eggert  <eggert@twinsun.com>
45075
45076         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
45077         (error_tail): Do not loop, reallocating temporary buffer, since
45078         the output cannot contain more wide characters than the input
45079         contains bytes, the size must be big enough already.  This avoids
45080         one potential size overflow calculation.  Check for size overflow
45081         when calculating temporary buffer size.  Free temporary buffer
45082         when done, if it was allocated with malloc; this plugs a memory
45083         leak.  Remove casts from void * to pointers, that are no longer
45084         needed now that we're assuming C89 or better.
45085
45086         Merge error changes from glibc.
45087
45088         * lib/error.c, error.h: Update copyright notice header to match glibc.
45089         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
45090         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
45091         Disable cancellation while printing error.
45092         * lib/error.h: Prepend __ to parameter names.
45093
45094 2003-09-26  Jim Meyering  <jim@meyering.net>
45095
45096         * lib/error.c (error_tail): Move some declarations
45097         into inner scope where the local variables are used.
45098
45099 2003-09-26  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
45102         stpncpy().
45103         Don't define stpncpy through config.h; it's now done through stpncpy.h.
45104
45105 2003-09-26  Bruno Haible  <bruno@clisp.org>
45106
45107         * lib/stpncpy.h (gnu_stpncpy): New declaration.
45108         (stpncpy): Define as alias for gnu_stpncpy.
45109         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
45110
45111 2003-09-25  Simon Josefsson  <jas@extundo.com>
45112
45113         * lib/xgetdomainname.h: New file.
45114         * lib/xgetdomainname.c: New file.
45115
45116 2003-09-25  Simon Josefsson  <jas@extundo.com>
45117             Bruno Haible  <bruno@clisp.org>
45118
45119         * modules/getdomainname: New file.
45120         * modules/xgetdomainname: New file.
45121         * MODULES.html.sh (func_all_modules): Add getdomainname,
45122         xgetdomainname.
45123
45124 2003-09-25  Simon Josefsson  <jas@extundo.com>
45125             Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/getdomainname.m4: New file.
45128
45129 2003-09-25  Simon Josefsson  <jas@extundo.com>
45130             Bruno Haible  <bruno@clisp.org>
45131
45132         * lib/getdomainname.h: New file.
45133         * lib/getdomainname.c: New file.
45134
45135 2003-09-25  Karl Berry  <karl@gnu.org>
45136
45137         * lib/argp-fmtstream.c, argp-help.c: update from libc.
45138
45139 2003-09-25  Karl Berry  <karl@gnu.org>
45140
45141         * config/install-sh: update from automake.
45142
45143 2003-09-25  Bruno Haible  <bruno@clisp.org>
45144
45145         * modules/version-etc-2: New file, from modules/version-etc with
45146         modifications.
45147         * MODULES.html.sh (func_all_modules): Add version-etc-2.
45148
45149 2003-09-25  Bruno Haible  <bruno@clisp.org>
45150
45151         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
45152         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
45153
45154 2003-09-24  Simon Josefsson  <jas@extundo.com>
45155
45156         * modules/xgethostname: Add xgethostname.h.
45157
45158 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45159
45160         * lib/linebuffer.c (freebuffer): Don't free the argument, just
45161         the buffer associated with the argument.  Bug reported by
45162         Simon Josefsson.
45163
45164 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45165
45166         * README: Document assumptions that 'int' is at least 32 bits
45167         wide, that integer arithmetic is 2's complement without overflow,
45168         that there are no holes in integer values, that adding sizes of
45169         two nonoverlapping objects can't overflow, and that all-bits-zero
45170         yields scalar zero.  Fix spelling and capitalization typos.
45171
45172 2003-09-19  Karl Berry  <karl@gnu.org>
45173
45174         * lib/argp.h: update from libc.
45175
45176 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45177
45178         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
45179         to avoid spurious warnings like "AC_RUN_IFELSE was called before
45180         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
45181
45182 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45183
45184         * gnulib-tool: Use "test -h", not "test -L", for portability
45185         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
45186         (tags_regexp): Remove, since \| doesn't conform to POSIX.
45187         (sed_extract_prog): Issue s commands one-by-one, rather than
45188         using \| in one s command.
45189
45190 2003-09-16  Paul Eggert  <eggert@twinsun.com>
45191
45192         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
45193         input error, instead of returning NULL the next time we are called
45194         (and therefore losing track of errno).
45195
45196 2003-09-16  Bruno Haible  <bruno@clisp.org>
45197
45198         * gnulib-tool (func_create_testdir): Warn about duplicated
45199         dependencies.
45200
45201 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45202
45203         * modules/argmatch, modules/fatal, modules/obstack,
45204         modules/xalloc, modules/xgethostname: Sort dependencies by
45205         importance, not alphabetically.
45206
45207 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45208
45209         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
45210         fails, so that the caller gets the proper errno.
45211
45212         * lib/readutmp.c (read_utmp): Likewise.
45213         Check for fstat error.  Close stream and free storage
45214         when failing.
45215
45216 2003-09-14  Karl Berry  <karl@gnu.org>
45217
45218         * config/srclist.txt (strdup.c): disable for c89 changes.
45219
45220 2003-09-14  Jim Meyering  <jim@meyering.net>
45221
45222         * lib/getloadavg.c: Correct cpp indentation.
45223         * lib/strdup.c: Likewise.
45224         * lib/vasnprintf.c: Likewise.
45225
45226 2003-09-14  Bruno Haible  <bruno@clisp.org>
45227
45228         * modules/fwriteerror: New file.
45229         * MODULES.html.sh (func_all_modules): Add fwriteerror.
45230
45231 2003-09-14  Bruno Haible  <bruno@clisp.org>
45232
45233         * lib/fwriteerror.h: New file.
45234         * lib/fwriteerror.c: New file.
45235
45236 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45237
45238         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
45239         modules/xgethostname, modules/xalloc: Depend on exit.
45240
45241 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45242
45243         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
45244
45245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
45246         and AC_MINIX, too, so that their extensions are available.
45247
45248         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
45249         This macro has been superseded by gl_BACKUPFILE.
45250
45251         More patches to assume C89 or better.
45252
45253         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
45254
45255         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
45256         unconditionally.
45257         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
45258         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
45259         Include <string.h>, <stdlib.h> unconditionally.
45260         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
45261         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
45262         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
45263         headers or for string.h.
45264         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
45265         or strtoul.
45266
45267         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
45268         headers.
45269         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
45270         * m4/userspec.m4 (gl_USERSPEC): Likewise.
45271         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
45272         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
45273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45274         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
45275         memcpy, memset.
45276         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
45277         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
45278         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
45279         strtol.
45280         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
45281         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
45282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
45283         strtoul.
45284
45285 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45286
45287         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
45288         * lib/obstack.c [!defined _LIBC]: Likewise.
45289         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
45290         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
45291         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
45292
45293         More changes to assume C89 or better.
45294
45295         * lib/error.c (error_tail): Assume vprintf.
45296
45297         * lib/argmatch.c (getenv): Remove decl.
45298         * lib/progreloc.c (get_full_program_name): Define via prototype.
45299         * lib/setenv.c (clearenv): Likewise.
45300         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
45301         needed.
45302         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
45303         (malloc, memcpy): Remove decls.
45304         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
45305         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
45306         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45307         (memcpy): Remove macro.
45308         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
45309         (__P): Remove.  All uses removed.
45310         (PTR): Remove.  All uses changed to void *.
45311         (CHAR_BIT, NULL): Remove.
45312         (spaces, zeros, memset_space, memset_zero)
45313         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
45314         Remove.
45315         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
45316         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
45317         Define with prototype.
45318         Remove now-unnecessary prototype decl.
45319         (extra_args_spec): Assume ANSI C.  All uses changed.
45320         (extra_args_spec_iso): Remove.
45321         (my_strftime, emacs_strftimeu): Define via prototype.
45322         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
45323         unconditionally.
45324         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
45325         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
45326         (strtoul, strtol): Remove decls.
45327         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
45328         LONG_MAX): Remove.
45329         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45330         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
45331         (LOCALE_PARAM_PROTO): New macro.
45332         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
45333         (INTERNAL (strtol), strtol): Define with a prototype.
45334         (PARAMS): Remove.  All uses removed.
45335         * lib/tempname.c: Include <string.h> unconditionally.
45336         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
45337         * lib/xgethostname.c (main): Define with a prototype.
45338         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
45339         Include <stdlib.h> unconditionally.
45340         (calloc, malloc, realloc, free): Remove decls.
45341         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
45342         Include <stdlib.h> unconditionally.  Sort include file names.
45343         (strtod): Remove.
45344         (xstrtod): Define with a prototype.
45345         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
45346         (strtol, strtoul): Remove decls.
45347
45348 2003-09-11  Paul Eggert  <eggert@twinsun.com>
45349
45350         More patches to assume C89 or better.
45351         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
45352         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
45353         string.h, memchr, STDC_HEADERS.
45354
45355 2003-09-11  Paul Eggert  <eggert@twinsun.com>
45356
45357         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
45358         Include <stdlib.h>, <string.h> unconditionally.
45359         Remove now-unnecessary cast to char *.
45360         * lib/strnlen.c: Include <string.h> unconditionally.
45361         * lib/yesno.c (yesno): Define with a prototype.
45362
45363 2003-09-11  Bruno Haible  <bruno@clisp.org>
45364
45365         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
45366
45367 2003-09-10  Jim Meyering  <jim@meyering.net>
45368
45369         * lib/error.c: Correct indentation of cpp directives.
45370
45371 2003-09-10  Bruno Haible  <bruno@clisp.org>
45372
45373         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
45374         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
45375         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
45376         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
45377         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
45378         <stdlib.h> and <string.h> checks.
45379         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
45380         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
45381
45382 2003-09-10  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/strcspn.c: Include <string.h> unconditionally.
45385         * lib/strpbrk.c: Include <string.h> unconditionally.
45386         * lib/strstr.c: Include <string.h> unconditionally.
45387         * lib/unicodeio.c: Include <string.h> unconditionally.
45388         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
45389         * lib/unsetenv.c: Likewise.
45390         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
45391         * lib/yesno.c: Include <stdlib.h> unconditionally.
45392         (rpmatch): Add prototype.
45393
45394 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45395
45396         More patches to assume C89 or better.
45397         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
45398         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
45399         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
45400         or for string.h.
45401         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
45402         stdlib.h.
45403         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
45404         C headers.
45405         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
45406         string.h.
45407         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
45408         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
45409         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
45410         or for string.h.
45411         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
45412         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
45413         C headers.
45414         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
45415         memcpy.
45416         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
45417         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
45418         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
45419         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
45420         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
45421         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
45422         string.h, free.
45423         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
45424         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
45425         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
45426         C headers, or for string.h.
45427         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
45428         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
45429         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
45430         headers, memory.h, stdlib.h, string.h, strings.h.
45431         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
45432         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
45433         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
45434         strchr.
45435         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
45436         headers, memory.h, string.h.
45437         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
45438         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
45439         free.
45440         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
45441         headers.
45442         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
45443         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
45444         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
45445         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
45446         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
45447
45448 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45449
45450         More K&R removal.
45451
45452         * lib/acosl.c (main): Use a prototype.
45453         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
45454         tanl.c: Likewise.
45455
45456         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
45457
45458         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
45459         (getopt, etopt_long, getopt_long_only, _getopt_internal)
45460         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
45461         with a prototype.
45462         * lib/getopt.c (const): Remove macro.
45463         Include <string.h> unconditionally.
45464         (my_index): Remove; all uses changed to strchr.
45465         (strlen): Remove decl.
45466         (exchange): Remove forward decl; no longer needed.
45467         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
45468         Define with prototype.
45469         * lib/getopt1.c (const): Remove macro.
45470         (getopt_long, getopt_long_only, main): Define with prototype.
45471
45472         * lib/getugroups.c: Include <string.h> unconditionally.
45473
45474         * lib/getusershell.c: Include <stdlib.h> unconditionally.
45475         (getusershell, setusershell, endusershell, readname, main):
45476         Define with prototypes.
45477
45478         * lib/group-member.c: Include group-member.h first.
45479         Include <stdlib.h> unconditionally.
45480
45481         * lib/hard-locale.c: Include hard-locale.h first.
45482         Include <stdlib.h>, <string.h> unconditionally.
45483
45484         * lib/hash.c (free, malloc): Remove decls.
45485         Include <stdlib.h> unconditionally.
45486
45487         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
45488         (getenv): Do not declare.
45489
45490         * lib/idcache.c: Include <string.h> unconditionally.
45491
45492         * lib/long-options.c: Include long-options.h first, to test interface.
45493         Include <stdlib.h> unconditionally.
45494
45495         * lib/makepath.c: Include makepath.h first, to test interface.
45496         Include <stdlib.h> and <string.h> unconditionally.
45497
45498         * lib/linebuffer.c: Include <stdlib.h>.
45499         (free): Remove decl.
45500
45501         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
45502         stddef.h. rpl_malloc returns void *, not char *.
45503         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
45504         prototype.
45505
45506         * lib/md5.h: Include <limits.h> unconditionally.
45507         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
45508         (__P): Remove; all uses removed.
45509         * lib/md5.c: Include "md5.h" first.
45510         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
45511         md5_buffer, md5_process_bytes, md5_process_block):
45512         Define with prototypes.
45513         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
45514         * lib/sha.c: Include "sha.h" first.
45515         Include <stdlib.h>, <string.h> unconditionally.
45516
45517         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
45518         * lib/memcmp.c (__ptr_t): Likewise.
45519         * lib/memrchr.c (__ptr_t): Likewise.
45520         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
45521         Include <string.h> unconditionally.
45522         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
45523         * lib/memchr.c: Include <stdlib.h> unconditionally.
45524         * lib/memchr.c (LONG_MAX): Remove.
45525         * lib/memrchr.c (LONG_MAX): Likewise.
45526         * lib/memchr.c (__memchr): Define via a prototype.
45527         * lib/memrchr.c (__memrchr): Likewise.
45528         * lib/memcmp.c (__P): Remove, and remove all uses.
45529         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
45530         Remove forward decls; no longer needed.
45531         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
45532         Use types required by C89 in prototype.
45533
45534         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
45535         * lib/savedir.c: Likewise.
45536         * lib/mkdir.c (free): Remove decl.
45537         * lib/rmdir.c (rmdir): Define with a prototype.
45538         * lib/savedir.c: Include savedir.h first, to test interface.
45539
45540         * lib/mktime.c (STDC_HEADERS): Remove.
45541         Include <stdlib.h>, <string.h> unconditionally.
45542
45543         * lib/modechange.c: Include <stdlib.h> unconditionally.
45544         (malloc): Remove decl.
45545
45546         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
45547         (free): Remove decl.
45548
45549         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
45550         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
45551         (This type really should be intptr_t, but that's a C99ism.)
45552         (_obstack_memcpy): Remove: all uses changed to memcpy.
45553         Include <string.h> unconditionally.
45554         (struct obstack): Assume __STDC__ for types of members
45555         chunkfun, freefun, extra_arg.
45556         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
45557         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
45558         obstack_begin, obstack_specify_allocation,
45559         obstack_specify_allocation_with_arg, obstack_chunkfun,
45560         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
45561         Remove unprototyped decls and the macros that use them.
45562         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
45563         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
45564         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
45565         (defined __STDC__ && __STDC__)]:
45566         Remove nonprototyped code.
45567         Include <stdlib.h> unconditionally.
45568         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
45569         _obstack_allocated_p, _obstack_free, obstack_free,
45570         _obstack_memory_used, print_and_abort):
45571         Define using prototypes.
45572         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
45573         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
45574         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
45575         obstack_next_free, obstack_object_size, obstack_room) [0]:
45576         Remove unused, unprototyped code.
45577
45578         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
45579
45580         * lib/physmem.c (physmem_total, physmem_available, main): Define
45581         with prototypes.
45582
45583         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
45584         (main): Define with a prototype.
45585
45586         * lib/posixver.c (getenv): Remove decl.
45587
45588         * lib/putenv.c (malloc): Returns void *, not char *.
45589         Include <string.h> unconditionally.
45590         (strchr, memcpy, NULL): Do not define.
45591
45592         * lib/readtokens.c: Include readtokens.h first, to test interface.
45593         Include <stdlib.h>, <string.h> unconditionally.
45594         (init_tokenbuffer): Define with a prototype.
45595
45596         * lib/regex.c (PARAMS): Remove.  All uses removed.
45597         All uses of _RE_ARGS removed, too.
45598         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
45599         unconditionally.
45600         (bzero): Assume memset exists.
45601         (memcmp, memcpy, NULL): Remove.
45602         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
45603         char, or assignments to local vars of type signed char.
45604         (init_syntax_once, PREFIX(extract_number_and_incr),
45605         PREFIX(print_partial_compiled_pattern),
45606         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
45607         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
45608         PREFIX(regex_grow_registers), PREFIX(regex_compile),
45609         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
45610         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
45611         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
45612         wcs_compile_range, byte_compile_range, truncate_wchar,
45613         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
45614         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
45615         count_mbs_length, wcs_re_match_2_internal,
45616         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
45617         PREFIX(alt_match_null_string_p),
45618         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
45619         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
45620         regfree, PREFIX(extract_number)): Define with prototype.  Remove
45621         now-unnecessary declaration, if any.
45622         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
45623         regcomp, regexec):
45624         Remove now-unnecessary casts among pointer types.
45625         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
45626
45627         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
45628         (free): Remove decl.
45629
45630         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
45631
45632         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
45633         (free): Remove decl.
45634
45635         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
45636         * lib/xgetcwd.c: Likewise.
45637
45638         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
45639         (free): Remove decl.
45640
45641         * lib/strchrnul.c (strchrnul): Define with a prototype.
45642         Fix bug: c_in was not converted to char before searching.
45643
45644         The following changes are not K&R related:
45645
45646         * lib/group-member.h: Include <sys/types.h>, so that this file is
45647         self-contained.
45648         * lib/makepath.h: Likewise.
45649
45650         * lib/getusershell.c (readname, default_index, line_size, readname):
45651         Use size_t, not int, for sizes.
45652         (readname): If the size overflows, report an error instead of
45653         looping forever.
45654
45655 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45656
45657         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
45658         libc.
45659
45660 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45661
45662         * README: New section: portability guidelines.
45663
45664 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45665
45666         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
45667         C89 spec.
45668
45669 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45670
45671         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
45672
45673 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45674
45675         Assume C89 or better; remove K&R cruft.
45676         A few of these changes were first proposed by Derek Robert Price
45677         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
45678
45679         * lib/addext.c: Include <string.h> unconditionally.
45680         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
45681         Don't declare getenv or malloc.
45682
45683         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
45684         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
45685         (NULL): Remove.
45686         (find_stack_direction, alloca): Use prototypes.
45687
45688         * lib/atexit.c (atexit): Define using a prototype.
45689
45690         * lib/basename.c, dirname.c, stripslash.c:
45691         Include <string.h> unconditionally.
45692
45693         * lib/bcopy.c: Include <stddef.h>.
45694         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
45695
45696         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
45697
45698         * lib/error.h (error, error_at_line, error_print_progname)
45699         [! (defined (__STDC__) && __STDC__)]: Remove decls.
45700         * lib/error.c: Include error.h first, to check interface.
45701         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45702         (VA_START): Remove; all uses changeed to va_start.
45703         (exit, strerror): Remove decls.
45704         (error_print_progname): Prototype uncondionally.
45705         Don't include <errno.h>; no longer needed.
45706         (private_strerror): Remove.
45707         (error_tail): Always define.
45708         (error, error_at_line): Assume C89 or better; always use prototypes.
45709         * lib/fatal.c: Include "fatal.h" first, to test interface.
45710         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45711         (VA_START): Remove; all uses changed to va_start.
45712         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
45713         this case.
45714         (exit): Remove decl.
45715         (fatal): Prototype unconditionally.  Assume va_start works.
45716         Abort at end, to pacify gcc.
45717
45718         * lib/euidaccess.c (main): Define with a prototype.
45719
45720         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
45721
45722         * lib/exitfail.c: Include <stdlib.h> unconditionally.
45723
45724         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
45725         prototypes.
45726         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
45727         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
45728         (getenv): Remove decl.
45729         (fnmatch): Define using a prototype.
45730         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
45731         (FCT): Define using a prototype.
45732
45733         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
45734
45735         * lib/gethostname.c: Include <stddef.h>.
45736         (gethostname): Define with prototype.  Length is size_t, not int.
45737
45738 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45739
45740         Assume C89 or better; remove K&R cruft.
45741         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
45742         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
45743         string.h, getenv, malloc.
45744         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
45745         headers.
45746         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
45747         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
45748         do not check for strerror.
45749         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
45750         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
45751         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
45752         do not check for doprnt or vprintf.
45753         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
45754         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
45755
45756 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45757
45758         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
45759         getversion.c should have been removed then, but was accidentally
45760         preserved.
45761
45762         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
45763         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
45764
45765 2003-09-08  Karl Berry  <karl@gnu.org>
45766
45767         * config/config.sub, config.guess, srclistvars.sh: update from savannah
45768                 config, forget about prep.
45769
45770         * config/depcomp, missing: update from automake.
45771
45772 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45773
45774         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
45775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45776
45777 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45778
45779         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
45780         copy_tm_result.  Bug reported by Simon Josefsson in
45781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45782
45783 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45784
45785         * m4/time_r.m4: New file.
45786         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
45787         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
45788         is. Check for timegm declaration.
45789         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
45790         Do not check for gmtime_r.
45791         Replace mktime if __mktime_internal does not exist and if mktime
45792         hasn't been replaced already.
45793
45794 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45795
45796         * lib/time_r.c, lib/time_r.h: New files.
45797
45798         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
45799         __localtime_r.
45800         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
45801         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
45802
45803         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
45804         __gmtime_r.
45805         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
45806         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
45807         Include <time_r.h>.
45808
45809         * lib/timegm.c: Switch to glibc implementation, with the following
45810         changes:
45811         [defined HAVE_CONFIG_H]: Include <config.h>.
45812         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
45813         (__mktime_internal) [!defined _LIBC]: New decl.
45814         (__gmtime_r) [!defined _LIBC]: New macro and function.
45815         (timegm): Use a prototype, since gnulib assumes C89.
45816         Do not bother declaring tmp to be const, as it's not really usefu.
45817         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
45818         (timegm): Declare only if HAVE_DECL_TIMEGM.
45819
45820 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45821
45822         * MODULES.html.sh (func_all_modules): Add time_r.
45823         * modules/time_r: New file.
45824         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
45825         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
45826
45827 2003-09-03  Paul Eggert  <eggert@twinsun.com>
45828
45829         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
45830         Bug reported by Lute Kamstra in
45831         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
45832
45833         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
45834         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
45835         course with correspondingly smaller numbers for tomorrow and
45836         yesterday.  From Tadayoshi Funaba.  Originally installed into
45837         sh-utils on 1999-08-07, but the patch got lost (I guess during the
45838         coreutils merge?).
45839
45840 2003-08-31  Simon Josefsson  <jas@extundo.com>
45841
45842         * modules/timegm: New file.
45843         * MODULES.html.sh (func_all_modules): Add timegm.
45844
45845 2003-08-31  Simon Josefsson  <jas@extundo.com>
45846
45847         * m4/timegm.m4: New file.
45848
45849 2003-08-31  Simon Josefsson  <jas@extundo.com>
45850
45851         * lib/timegm.h: New file.
45852         * lib/timegm.c: New file.  Based on
45853         wget-1.8.2/src/http.c:mktime_from_utc.
45854
45855 2003-08-31  Karl Berry  <karl@gnu.org>
45856
45857         * lib/argp.h: update from libc.
45858
45859 2003-08-28  Bruno Haible  <bruno@clisp.org>
45860
45861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
45862         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
45863         followed by '#define fnmatch fnmatch_posix' gives an error.
45864
45865 2003-08-28  Bruno Haible  <bruno@clisp.org>
45866
45867         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
45868         warning on QNX, which defines O_BINARY to 000000.
45869
45870 2003-08-27  Jim Meyering  <jim@meyering.net>
45871
45872         * m4/mkstemp.m4: Require that the system mkstemp be able to create
45873         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
45874         would fail after 32.  Reported by Danny Levinson.  Details here:
45875         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
45876
45877 2003-08-24  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
45880         MSVC7 <stdio.h> is included later.
45881
45882 2003-08-22  Simon Josefsson  <jas@extundo.com>
45883
45884         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
45885
45886 2003-08-20  Karl Berry  <karl@gnu.org>
45887
45888         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
45889
45890 2003-08-20  Bruno Haible  <bruno@clisp.org>
45891
45892         * modules/progname: New file.
45893         * MODULES.html.sh (func_all_modules): Add progname.
45894
45895 2003-08-20  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/progname.h: New file, from GNU gettext.
45898         * lib/progname.c: New file, from GNU gettext.
45899         * lib/progreloc.c: New file, from GNU gettext.
45900
45901 2003-08-19  Jim Meyering  <jim@meyering.net>
45902
45903         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
45904         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
45905
45906 2003-08-19  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
45909         more.
45910
45911 2003-08-19  Bruno Haible  <bruno@clisp.org>
45912
45913         * lib/xstrdup.c: Assume <string.h> exists.
45914
45915 2003-08-18  Paul Eggert  <eggert@twinsun.com>
45916
45917         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
45918         in makefile rules.
45919
45920 2003-08-18  Jim Meyering  <jim@meyering.net>
45921
45922         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
45923         * m4/lib-ld.m4: Likewise.
45924
45925 2003-08-18  Jim Meyering  <jim@meyering.net>
45926
45927         * lib/setenv.h: Indent nested cpp directive.
45928         * lib/vasnprintf.c: Remove trailing blanks.
45929
45930 2003-08-17  Simon Josefsson  <jas@extundo.com>
45931
45932         * modules/xstrndup: New file.
45933         * MODULES.html.sh (func_all_modules): Add xstrndup.
45934
45935 2003-08-17  Simon Josefsson  <jas@extundo.com>
45936
45937         * modules/argp: Fix autoconf macro name. Add more dependencies.
45938
45939 2003-08-17  Simon Josefsson  <jas@extundo.com>
45940
45941         * m4/xstrndup.m4: New file.
45942
45943 2003-08-17  Simon Josefsson  <jas@extundo.com>
45944
45945         * m4/argp.m4: New file.
45946
45947 2003-08-17  Simon Josefsson  <jas@extundo.com>
45948             Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/xstrndup.h: New file.
45951         * lib/xstrndup.c: New file.
45952
45953 2003-08-17  Bruno Haible  <bruno@clisp.org>
45954
45955         * modules/strndup (Files, Include): Add lib/strndup.h.
45956
45957 2003-08-17  Bruno Haible  <bruno@clisp.org>
45958
45959         * modules/euidaccess (Files): Add lib/euidaccess.h.
45960
45961 2003-08-17  Bruno Haible  <bruno@clisp.org>
45962
45963         * lib/strndup.h: New file.
45964
45965 2003-08-17  Bruno Haible  <bruno@clisp.org>
45966
45967         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
45968         like AC_GNU_SOURCE.
45969         * modules/extensions (configure.ac): Comment out the invocation of
45970         gl_USE_SYSTEM_EXTENSIONS.
45971
45972 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45973
45974         Merges from coreutils, etc.
45975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
45976         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
45977         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
45978         fixing a typo.
45979         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
45980         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
45981
45982 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45983
45984         Document merge from coreutils.
45985         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
45986         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
45987         * modules/utime: Add m4/utimes-null.m4.
45988
45989 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45990
45991         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
45992         space, undoing this 2003-08-12 change:
45993         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
45994
45995 2003-08-16  Paul Eggert  <eggert@twinsun.com>
45996
45997         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
45998         strtoul.c from libc, undoing this 2003-08-12 change:
45999         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46000
46001 2003-08-16  Jim Meyering  <jim@meyering.net>
46002
46003         Merges from coreutils.
46004         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
46005         prefix.  Adjust cache variables similarly.  Create 500 rather than
46006         just 300 files, to exercise bug on Darwin6.5, too.
46007         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
46008         $missing_dir.
46009         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
46010         AM_SYS_POSIX_TERMIOS.
46011         Reported by mkc@mathdogs.com.
46012         Also change use of $am_cv_sys_posix_termios
46013         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
46014         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
46015         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
46016         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
46017         in /proc/mounts until it finds one with matching device number.  This
46018         is unnecessary when the FILE argument *is* a mount point.  No stat call
46019         is necessary in that case.  So, disable the statvfs-testing code on
46020         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
46021         as RedHat bug# 84846.
46022         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46023         to 1MB, so as not to render systems with no stack size limit (e.g.,
46024         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46025         Include <unistd.h>.  On some systems,
46026         it is required for the definition of _SC_PAGESIZE.
46027
46028 2003-08-16  Jim Meyering  <jim@meyering.net>
46029
46030         Merge from coreutils.
46031         * lib/xstrtoimax.c: #else #if -> #elif.
46032         * lib/xstrtoumax.c: Likewise.
46033
46034 2003-08-16  Jim Meyering  <jim@meyering.net>
46035
46036         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
46037         * m4/utimes.m4: Removed.
46038         * m4/utimes-null.m4: Renamed from utimes.m4.
46039
46040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46041         to 1MB, so as not to render systems with no stack size limit (e.g.,
46042         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46043         Include <unistd.h>.  On some systems,
46044         it is required for the definition of _SC_PAGESIZE.
46045
46046 2003-08-16  Jim Meyering  <jim@meyering.net>
46047         and Paul Eggert  <eggert@cs.ucla.edu>
46048
46049         Merges from coreutils, etc.
46050
46051         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
46052         using the latest version from cvs.  This avoids problems with #line
46053         directives using a vendor (Sun) compiler.
46054         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
46055         Don't set GETGROUPS_LIB here; now it's
46056         done via getgroups.m4's wrapper function.
46057         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
46058         rather than just in sh-util/configure.in, so that the
46059         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
46060         same.
46061         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
46062         AC_FUNC_GETLOADAVG where to find getloadavg.c.
46063         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
46064         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
46065         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
46066         Remove code that is now done by the newly-required macros.
46067         Append $(EXEEXT) to DF_PROG.
46068         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
46069         Do not invoke or require the following here,
46070         since prereq.m4 or some gnulib .m4 now does this for us:
46071         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
46072         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
46073         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
46074         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
46075         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
46076         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
46077         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
46078         AC_FUNC_OBSTACK.
46079         Do not replace the following functions, as this is now the job
46080         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
46081         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
46082         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
46083         atexit getpass, strdup, getpagesize.
46084         Replace 'raise'.
46085         Do not check for the following functions, as this is now the job
46086         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
46087         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
46088         setregid.
46089         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
46090         Check for sys/sysctl.h.
46091         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
46092         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
46093         of checking for ssize_t ourselves.
46094
46095         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
46096         Require every macro that gnulib/modules/* suggests for us.
46097         (jm_PREREQ_ADDEXT): New macro.
46098         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
46099         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
46100
46101         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
46102         (gl_PHYSMEM): Use it.
46103         Also check for `table' function.
46104         Check for new headers and functions.
46105         Add check for sys/sysmp.h.
46106         With suggestions from Kaveh Ghazi.
46107         Ignore headers that are present but cannot be compiled.  This
46108         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
46109         C 5.4.
46110
46111 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46112
46113         Document merge from coreutils.
46114         * modules/userspec: Depend on posixver.
46115         * modules/strftime: Depend on tzset.
46116
46117 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46118
46119         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
46120         rather than tab, after '#' in shell-script copyright notices.
46121         Suggested by Bruno Haible.
46122
46123 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46124
46125         * config/srclist-update: Use three spaces, rather than tab, after '#'
46126         in shell-script copyright notices.  Suggested by Bruno Haible.
46127         Remove unnecessary parenthesization in regular expression.
46128
46129 2003-08-15  Jim Meyering  <jim@meyering.net>
46130
46131         Merge from coreutils.
46132         * lib/xgethostname.c: Include <stdlib.h>.
46133         (xghostname): Don't exit for anything other than memory-related
46134         failure; just return NULL.
46135         * lib/userspec.c: Include "posixver.h".
46136         (parse_user_spec): Accept `.' as a separator only
46137         in pre-POSIX-200112 mode.
46138         * lib/strtoimax.c: Use #elif rather than #else #if.
46139         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
46140         Remove function, now that we can rely on a working tzset function.
46141         [!_LIBC]: Ensure that the required autoconf test has been run.
46142         [!defined _NL_CURRENT && HAVE_STRFTIME]:
46143         Use underlying_strftime for %r.
46144         * lib/sha.c: Merge in some clean-up and optimization changes from
46145         glibc.
46146         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
46147         Ensure that it is a multiple of 64.
46148         Rearrange loop exit tests so as to avoid performing an
46149         additional fread after encountering an error or EOF.
46150         * lib/realloc.c: Update copyright date.
46151
46152 2003-08-15  Jim Meyering  <jim@meyering.net>
46153         and Paul Eggert  <eggert@twinsun.com>
46154
46155         Merge from coreutils.
46156         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
46157         member but strut utmpx does not.  Needed for AIX 4.3.3.
46158         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
46159
46160 2003-08-15  Jim Meyering  <jim@meyering.net>
46161         and Paul Eggert  <eggert@cs.ucla.edu>
46162
46163         Merges from coreutils, etc.
46164         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
46165         Require gl_FUNC_TZSET_CLOBBER.
46166         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
46167         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
46168         members.
46169
46170 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46171
46172         Help the merge from coreutils.
46173         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
46174         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
46175         * m4/tzset.m4: Use it too.
46176
46177 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46178
46179         * modules/tzset: New file.
46180
46181 2003-08-14  Jim Meyering  <jim@meyering.net>
46182
46183         Merges from coreutils.
46184         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
46185         variable names, rather than @FNMATCH_H@.
46186         * modules/alloca: Likewise for $(ALLOCA_H).
46187
46188         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
46189         the three copies of the literal target, `fnmatch.h'.
46190         * modules/alloca (alloca.h): Likewise.
46191
46192 2003-08-14  Jim Meyering  <jim@meyering.net>
46193
46194         Merge from coreutils.
46195         * m4/tzset.m4: New file.
46196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
46197         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
46198         otherwise, AIX 5.1 systems would end up using the latter.
46199         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
46200         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
46201         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
46202         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
46203
46204 2003-08-14  Jim Meyering  <jim@meyering.net>
46205
46206         Merge from coreutils.
46207         * lib/obstack.h: Whitespace changes.
46208         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
46209         and xcalloc return values.
46210         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
46211         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
46212         hang on OSF/1 5.1 for DIR on both local and remote file systems.
46213         Reported by (and fix confirmed by) Nelson H. F. Beebe.
46214         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46215         error from mntctl.
46216         Use mntctl's return value to drive the entry-processing loop, since
46217         we can't rely on the value of the vmt_length member in the last
46218         entry.  On some systems doing so could result in exhausting
46219         virtual memory.  Based in part on a patch from Mike Jetzer.
46220
46221 2003-08-14  Jim Meyering  <jim@meyering.net>
46222         and Paul Eggert  <eggert@twinsun.com>
46223
46224         Merges from coreutils, plus other fixes.
46225         * lib/physmem.c: Merge in portability changes from gcc/libiberty
46226         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
46227         for credits and details.  Thanks to Kaveh Ghazi for helping
46228         to keep these files in sync.
46229         (ARRAY_SIZE): Define it.
46230         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
46231         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
46232         (memcasecmp): Don't assume size_t fits in unsigned int.
46233         Remove casts and duplicate code.
46234         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
46235         (memcpy): Remove definition.
46236         Merge in some clean-up and optimization changes from glibc.
46237         [BLOCKSIZE]: Move definition to top of file.
46238         Ensure that it is a multiple of 64.
46239         Rearrange loop exit tests so as to avoid performing an
46240         additional fread after encountering an error or EOF.
46241         * lib/md5.h (md5_uintptr): Define.
46242         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
46243         return to the initial working directory.  Preserve errno
46244         for caller.
46245         * lib/idcache.c: Include "xalloc.h".
46246         (xmalloc, xrealloc): Remove decls.
46247         (getuser): Remove casts no longer required in C89.
46248         * lib/human.c: Include stdio.h, for sprintf.
46249         * lib/group-member.c: Include "xalloc.h".
46250         (xmalloc, xrealloc): Remove decls.
46251         (get_group_info): Remove casts no longer required in C89.
46252         * lib/getusershell.c (readname): Remove casts no longer required in
46253         C89.
46254         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
46255         * lib/getline.c: Whitespace fix, from coreutils.
46256
46257 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46258
46259         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
46260         Check for isascii.
46261
46262         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46263         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46264         Undo previous (whitespace-only) change.
46265
46266 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46267
46268         * lib/exclude.c: Include <ctype.h>
46269         (IN_CTYPE_DOMAIN): New macro.
46270         (is_space): New fn.
46271         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
46272         and empty lines.
46273
46274         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46275         Undo previous (whitespace-only) change.
46276
46277 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46278
46279         * config/srclist-update: Change update back to the old behavior,
46280         leaving whitespace alone.  Use one 'sed' command rather than a
46281         pipeline.
46282         (fixlicense): Now a variable, not a function.
46283         (remove_trailing_blanks): Remove.
46284         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
46285         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46286         Undo previous (whitespace-only) change.
46287
46288 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46289
46290         Merge from coreutils.
46291         * modules/euidaccess: Add lib_SOURCES, include for new
46292         file euidaccess.h
46293
46294 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46295
46296         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46297         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46298         Normalize leading white space and remove trailing white space.
46299
46300         Merge from coreutils
46301         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
46302
46303         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
46304         0.12.1.  These files are now being upgraded automatically by
46305         ../config/srclist-update.
46306
46307 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46308
46309         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46310         Normalize leading white space and remove trailing white space.
46311         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
46312         notice, as per ../config/srclist-update.
46313
46314         Merge from coreutils.
46315         * lib/euidaccess.h: New file.
46316         * lib/euidaccess.c: Include it.
46317         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
46318         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
46319         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
46320
46321 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46322
46323         * config/srclist-update: Add copyright notice.
46324         (remove_id_lines, remove_trailing_blanks): New constants.
46325         (fixfile): Use them to normalize spacing a bit in copied files.
46326         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46327         Normalize leading white space and remove trailing white space.
46328
46329         * config/texinfo.tex: Sync with texinfo.
46330
46331         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
46332         strtoul.c from libc, to merge coreutils whitespace changes.
46333
46334         * config/srclist.txt: Get the following m4 files from gettext:
46335         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
46336         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
46337         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
46338         wint_t.m4.
46339
46340 2003-08-12  Karl Berry  <karl@gnu.org>
46341
46342         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
46343         been made.
46344
46345 2003-08-11  Paul Eggert  <eggert@twinsun.com>
46346
46347         * modules/gnu-source, m4/gnu-source.m4:
46348         Remove; we're assuming Autoconf 2.54 or later now.
46349         Suggested by Bruno Haible.
46350         * MODULES.html.sh (func_all_modules): Remove gnu-source.
46351
46352 2003-08-11  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
46355
46356 2003-08-11  Bruno Haible  <bruno@clisp.org>
46357
46358         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
46359         (vasnprintf): Use it instead of wcslen.
46360
46361 2003-08-11  Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
46364         value to ensure that _Bool promotes to int. Use #define for _Bool when
46365         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
46366
46367 2003-08-10  Karl Berry  <karl@gnu.org>
46368
46369         * lib/regex.h: update from libc (whitespace fix).
46370
46371 2003-08-09  Paul Eggert  <eggert@twinsun.com>
46372
46373         Merge some files from coreutils.  These changes were
46374         originally made by Jim Meyering.
46375         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
46376         many older Unixes require this.
46377         * lib/alloca.c (alloca): Remove cast to argument of free;
46378         no longer needed in C89.
46379         * lib/alloca_.h, regex.h: Fix white space to match
46380         what GNU indent does.
46381
46382 2003-08-09  Paul Eggert  <eggert@twinsun.com>
46383
46384         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
46385         apparently Emacs's Unicode mode got confused before my 2003-08-05
46386         checkin.
46387
46388 2003-08-08  Paul Eggert  <eggert@twinsun.com>
46389
46390         * m4/extensions.m4: New file.
46391         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
46392         Require gl_USE_SYSTEM_EXTENSIONS.
46393         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
46394         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
46395
46396 2003-08-08  Paul Eggert  <eggert@twinsun.com>
46397
46398         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
46399         * modules/extensions, modules/gnu-source: New files.
46400         * modules/timespec, modules/unlocked-io: Depend on extensions.
46401
46402 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46403
46404         * modules/restrict: New file.
46405         * MODULES.html.sh (func_all_modules): Add restrict.
46406         * modules/regex: Depend on restrict.
46407
46408 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46409
46410         * m4/restrict.m4: New file.
46411         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
46412
46413 2003-08-07  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
46416         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
46417
46418 2003-08-07  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
46421         makes the module 'getndelim2' compatible with the module 'getline'.
46422
46423 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46424
46425         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
46426         byte with "\201" to avoid glitches when editing that source file
46427         with multi-gnome-terminal.
46428
46429 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46430
46431         * lib/bumpalloc.h: Remove.
46432
46433 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46434
46435         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
46436         * modules/bumpalloc: Remove.
46437
46438 2003-08-04  Paul Eggert  <eggert@twinsun.com>
46439
46440         * lib/getloadavg.c: Change copyright notice and spacing to conform to
46441         GNU coding style.
46442
46443         Merge from coreutils.
46444         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
46445         1. From glibc.
46446         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
46447         from Karl Berry, implemented by Jim Meyering.
46448         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
46449         from Dmitry V. Levin.
46450         Remove anachronistic cast of xrealloc.
46451         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
46452         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
46453         type. Otherwise, it wouldn't compile with at least /bin/cc on
46454         ymp-cray-unicos9.0.2.X.
46455         Combine two mostly-identical uses of alloca into one.
46456         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
46457
46458 2003-08-04  Dave Love  <d.love@dl.ac.uk>
46459
46460         [From Emacs.]
46461
46462         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
46463         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
46464         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
46465         obsolete NLIST_NAME_UNION.
46466         [__GNU__]: Undef BSD and FSCALE.
46467         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
46468
46469 2003-08-03  Paul Eggert  <eggert@twinsun.com>
46470
46471         * lib/stdbool_.h (_Bool): Make it signed char, instead of
46472         an enum type, so that it's guaranteed to promote to int.  See:
46473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
46474
46475 2003-08-03  Karl Berry  <karl@gnu.org>
46476
46477         * config/depcomp: update from automake.
46478
46479 2003-07-31  Paul Eggert  <eggert@twinsun.com>
46480
46481         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
46482         (strerror): Don't assume that a printable int fits in 14 bytes.
46483
46484 2003-07-31  Bruno Haible  <bruno@clisp.org>
46485
46486         * modules/getpass-gnu: New file.
46487         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
46488
46489 2003-07-31  Bruno Haible  <bruno@clisp.org>
46490
46491         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
46492
46493 2003-07-24  Karl Berry  <karl@gnu.org>
46494
46495         * config/missing: update from automake.
46496
46497 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
46498             Bruno Haible  <bruno@clisp.org>
46499
46500         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
46501         * lib/getline.c (getline, getdelim): Likewise.
46502         Remove _GNU_SOURCE define; now it's defined in config.h through
46503         m4/getline.m4.
46504
46505 2003-07-23  Karl Berry  <karl@gnu.org>
46506
46507         * config/config.sub: update from prep.
46508
46509 2003-07-22  Paul Eggert  <eggert@twinsun.com>
46510
46511         * modules/xalloc (Depends-on): Add exitfail.
46512         * modules/xmemcoll: Likewise.
46513
46514 2003-07-22  Paul Eggert  <eggert@twinsun.com>
46515
46516         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
46517         over-parenthesization in macros.
46518
46519         Sync with coreutils.
46520
46521         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
46522         required by C99.
46523
46524         Use `exit_failure' for xalloc and xmemcoll instead of their own
46525         private exit-failure variables.
46526         * lib/xalloc.h (xalloc_exit_failure): Remove.
46527         * lib/xmalloc.c: Likewise.  Include exitfail.h.
46528         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
46529         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
46530         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
46531         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
46532
46533 2003-07-20  Jim Meyering  <jim@meyering.net>
46534
46535         * modules/closeout (Depends-on): Add exitfail.
46536         Suggestion from Bruno Haible.
46537
46538 2003-07-19  Karl Berry  <karl@gnu.org>
46539
46540         * config/config.sub: update from prep.
46541
46542 2003-07-18  Paul Eggert  <eggert@twinsun.com>
46543
46544         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
46545         Remove.
46546         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
46547         to test that it can stand by itself.  Include "exitfail.h".
46548         Clients should set exit_failure instead.
46549         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
46550
46551 2003-07-18  Bruno Haible  <bruno@clisp.org>
46552
46553         * modules/getndelim2: New file.
46554         * modules/getline: Share files with module getndelim2.
46555         * modules/getnline: Depend on getndelim2 instead of sharing files with
46556         it. Add getnline.c to lib_SOURCES.
46557         * MODULES.html.sh (func_all_modules): Add getndelim2.
46558
46559 2003-07-18  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/getndelim2.m4: New file.
46562         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
46563         invoke gl_PREREQ_GETNDELIM2.
46564         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
46565         gl_PREREQ_GETNDELIM2.
46566         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
46567         gl_GETNDELIM2.
46568
46569 2003-07-18  Bruno Haible  <bruno@clisp.org>
46570
46571         * lib/getndelim2.h: New file.
46572         * lib/getndelim2.c: Make into a module of its own. Include config.h,
46573         getndelim2.h.
46574         (getndelim2): Make non-static. Change return type to ssize_t.
46575         * lib/getline.h: Change argument names.
46576         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
46577         * lib/getnline.c: Include getndelim2.h.
46578
46579 2003-07-18  Andreas Schwab  <schwab@suse.de>
46580
46581         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
46582
46583 2003-07-17  Karl Berry  <karl@gnu.org>
46584
46585         * config/config.sub: update from prep.
46586
46587 2003-07-17  Bruno Haible  <bruno@clisp.org>
46588
46589         * modules/getnline: New file.
46590         * modules/getline: Add lib/getndelim2.c to source file list.
46591         * MODULES.html.sh (func_all_modules): Add getnline.
46592
46593 2003-07-17  Bruno Haible  <bruno@clisp.org>
46594
46595         * m4/getnline.m4: New file.
46596
46597 2003-07-17  Bruno Haible  <bruno@clisp.org>
46598
46599         * m4/Makefile.am.in: Remove file.
46600         * m4/Makefile.am: Remove file.
46601         * m4/Makefile.in: Remove file.
46602
46603 2003-07-17  Bruno Haible  <bruno@clisp.org>
46604
46605         * lib/getnline.h: New file.
46606         * lib/getnline.c: New file.
46607         * lib/getndelim2.c: New file, extracted from getline.c.
46608         (getndelim2): Renamed from getdelim2, with added nmax argument.
46609         * lib/getline.c: Include getndelim2.c.
46610         (getdelim2): Moved out to getndelim2.c.
46611         (getline, getdelim): Update.
46612
46613 2003-07-17  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/Makefile.am: Remove file.
46616         * lib/Makefile.in: Remove file.
46617
46618 2003-07-17  Bruno Haible  <bruno@clisp.org>
46619
46620         * configure.in: Remove file.
46621         * Makefile.in: Remove file.
46622
46623 2003-07-17  Bruno Haible  <bruno@clisp.org>
46624
46625         * MODULES.html.sh: Put the </BODY> right before </HTML>.
46626
46627 2003-07-16  Karl Berry  <karl@gnu.org>
46628
46629         * config/srclist-update: was running fixlicense twice, which caused
46630                 texinfo.tex to be nullified for some reason.  Simplify,
46631                 $gplsrc is no longer needed as far as I can see?
46632
46633 2003-07-16  Jim Meyering  <jim@meyering.net>
46634
46635         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
46636
46637 2003-07-15  Paul Eggert  <eggert@twinsun.com>
46638
46639         * config/srclist.txt: Get the following files from gettext-runtime/intl
46640         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
46641         ref-del.sin.  From Bruno Haible.
46642         * config/srclist-update (fixfile): Change grep pattern again, since the
46643         previous fix didn't work (there was another trailing $).  Use
46644         '[$]' to escape the $s.
46645
46646 2003-07-15  Karl Berry  <karl@gnu.org>
46647
46648         * lib/vasnprintf.c: update from gettext.
46649
46650 2003-07-15  Karl Berry  <karl@gnu.org>
46651
46652         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
46653         gets expanded when surrounded by '$'.
46654
46655 2003-07-15  Jim Meyering  <jim@meyering.net>
46656
46657         * modules/save-cwd: Don't depend on error.  From Derek Price.
46658
46659 2003-07-15  Jim Meyering  <jim@meyering.net>
46660
46661         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
46662
46663 2003-07-14  Simon Josefsson  <jas@extundo.com>
46664
46665         * modules/mempcpy: New file.
46666         * MODULES.html.sh (func_all_modules): Add mempcpy.
46667
46668 2003-07-14  Simon Josefsson  <jas@extundo.com>
46669
46670         * m4/mempcpy.m4: New file.
46671
46672 2003-07-14  Simon Josefsson  <jas@extundo.com>
46673
46674         * lib/mempcpy.h: New file.
46675         * lib/mempcpy.c: New file.
46676
46677 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46678
46679         * modules/getdate, modules/posixtm: Depend on mktime.
46680
46681 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46682
46683         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
46684         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
46685         unicodeio.c, unicodeio.h, unlocked-io.h:
46686         Switch from LGPL to GPL.
46687
46688 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46689
46690         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
46691         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
46692         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
46693         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
46694         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
46695         updated automatically by ../config/srclist-update.  This changes
46696         their license from LPGL to GPL.
46697
46698 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46699
46700         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
46701         assumed to refer to the root of the most recent stable gettext version.
46702         * config/srclistvars.sh: Add defaults for eggert.
46703         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
46704         Match "This program" as well as "The program".  This is needed
46705         for gettext.
46706
46707 2003-07-14  Jim Meyering  <jim@meyering.net>
46708
46709         Don't emit diagnostics.  Let callers do that.
46710         * lib/save-cwd.c: Don't include "error.h".
46711         (save_cwd): Don't call error.  Ensure that errno is valid
46712         when returning nonzero.
46713
46714         * lib/save-cwd.h (restore_cwd): Update prototype.
46715         * lib/save-cwd.c (restore_cwd): Remove two parameters.
46716         Simplify.  Don't call error upon failure.  Let callers do that.
46717         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
46718         when auditing is enabled.  But don't bother updating the #if.
46719
46720 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
46721
46722         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
46723         it breaks C++ compilation.
46724         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
46725
46726 2003-07-10  Simon Josefsson  <jas@extundo.com>
46727
46728         * modules/strchrnul (Makefile.am): Add strchrnul.h.
46729
46730 2003-07-10  Jim Meyering  <jim@meyering.net>
46731
46732         * m4/clock_time.m4: Remove trailing blank.
46733         * m4/intmax_t.m4: Likewise.
46734
46735 2003-07-10  Jim Meyering  <jim@meyering.net>
46736
46737         * lib/vasnprintf.c: Remove trailing blanks.
46738         Make cpp indentation consistent.
46739
46740 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46741
46742         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
46743         posixver.c, strftime.c, strnlen.c, strverscmp.c:
46744         Switch from LGPL to GPL.
46745
46746 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46747
46748         * config/srclist.txt: Sort sublists.  Add
46749         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
46750         that differ from gnulib for one reason or another; we'd like this list
46751         to be smaller but for now let's document what we have.
46752
46753 2003-07-08  Paul Eggert  <eggert@twinsun.com>
46754
46755         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
46756         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
46757         and sweeter "eval x=$x".
46758         * config/srclist.txt: Get lib/argp* from glibc.
46759
46760 2003-07-07  Paul Eggert  <eggert@twinsun.com>
46761
46762         * lib/mktime.c: Fix some boundary cases and remove need for floating
46763         point.
46764
46765         Issue a compile-time diagnostic if time_t is floating point, or if
46766         two's complement arithmetic is not in effect, or if arithmetic
46767         right shift does not propagate the sign.  These assumptions were
46768         all in the original code but they weren't checked.
46769
46770         (TIME_T_MIDPOINT, verify): New macros.
46771         (__isleap): Remove; it has integer overflow problems.
46772         (leapyear): New function, without those problems.
46773         (ydhms_tm_diff): Remove; splitting into two parts.
46774         (ydhms_diff): New function, containing the arithmetic part of
46775         the old ydhms_tm_diff function.  Issue a compile-time
46776         diagnostic if we are not using C99 integer division.
46777         Avoid casts when possible.
46778         (guess_time_tm): New function, containing the checking part of
46779         the old ydhms_tm_diff function.  Return the new value, rather than
46780         the difference between it and the old.  Accept a new argument T
46781         so that *T specifies the old value.  Check for overflow in the result.
46782
46783         (__mktime_internal): Use a time_t offset, not a long int offset.
46784         This undoes the 2003-06-04 change, which is no longer needed now
46785         that we have better overflow checking.
46786         (localtime_offset): Likewise.
46787
46788         (__mktime_internal): Avoid harmful overflow on hosts where time_t
46789         and long are 64-bit but int is only 32-bit.
46790         (ydhms_diff): Use long int to store year1 and yday1.
46791         Issue a compile-time diagnostic if long int is not wide enough.
46792
46793         (__mktime_internal): Use long int to store adjusted year and yday.
46794         Use plain C rather than preprocessor commands, if that doesn't
46795         affect efficiency.
46796         Check for overflow (and try to repair) after each probe
46797         rather than checking only at the very end.  This avoids some bugs
46798         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
46799         does not equal GMT offset at maximum time).
46800         Use integer to check for overflow rather than floating point; this
46801         is more portable to non-IEEE hosts, and is a tad faster.
46802         When we detect that we are oscillating between two values,
46803         don't check whether tm_isdst has the requested value, since
46804         we already know the answer.  When tm_isdst has the wrong value,
46805         use a different heuristic to find the right one, based on the
46806         extreme values actually observed in practice in tz2003a,
46807         rather than the (overly optimistic) "previous 3 calendar quarters".
46808
46809         (not_equal_tm, print_tm, check_result): Use "const T" rather than
46810         "T const" to accommodate glibc style.
46811         (check_result): Use less-confusing report format.  "long" -> "long int.
46812         (main): Likewise.
46813         Don't loop if the iteration overflows time_t.
46814         Allow a negative step in the iteration.
46815
46816 2003-07-06  Karl Berry  <karl@gnu.org>
46817
46818         * config/depcomp: update from automake.
46819         * config/config.sub: update from prep.
46820
46821 2003-07-03  Karl Berry  <karl@gnu.org>
46822
46823         * config/config.guess: update from prep.
46824
46825 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46826
46827         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
46828         xreadlink.c now includes it unconditionally.
46829
46830 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46831
46832         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
46833         having it depend on HAVE_SYS_TYPES_H.
46834
46835 2003-07-01  Bruno Haible  <bruno@clisp.org>
46836
46837         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
46838         <sys/types.h> should be sufficient.
46839         Reported by Paul Eggert.
46840
46841 2003-06-26  Karl Berry  <karl@gnu.org>
46842
46843         * config/depcomp: update from automake.
46844
46845 2003-06-26  Bruno Haible  <bruno@clisp.org>
46846
46847         * modules/human: Depend on module stdbool.
46848
46849 2003-06-25  Bruno Haible  <bruno@clisp.org>
46850
46851         * modules/readlink: New file.
46852         * modules/xreadlink: Depend on it.
46853         * MODULES.html.sh (func_all_modules): Add readlink.
46854
46855 2003-06-25  Bruno Haible  <bruno@clisp.org>
46856
46857         * m4/readlink.m4: New file.
46858
46859 2003-06-25  Bruno Haible  <bruno@clisp.org>
46860
46861         * lib/readlink.c: New file.
46862
46863 2003-06-22  Karl Berry  <karl@gnu.org>
46864
46865         * config/srclist.txt: update mkinstalldirs from automake.
46866         * config/mkinstalldirs: update.
46867
46868 2003-06-22  Bruno Haible  <bruno@clisp.org>
46869
46870         Portability to mingw32.
46871         * m4/ssize_t.m4: New file, from GNU gettext.
46872         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
46873         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
46874
46875 2003-06-22  Bruno Haible  <bruno@clisp.org>
46876
46877         * modules/safe-read: Add m4/ssize_t.m4.
46878         * modules/xreadlink: Add m4/ssize_t.m4.
46879
46880 2003-06-20  Bruno Haible  <bruno@clisp.org>
46881
46882         Assume C89, so PARAMS isn't needed.
46883         * lib/unicodeio.h (PARAMS): Remove.
46884         * lib/unicodeio.c: Don't use PARAMS.
46885
46886 2003-06-18  Karl Berry  <karl@gnu.org>
46887
46888         * config/config.{guess,sub}: update from prep.
46889
46890 2003-06-18  Jim Meyering  <jim@meyering.net>
46891
46892         Merge changes from coreutils.
46893         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
46894         Remove explicit declarations of xmalloc and realloc.
46895         Include xalloc.h.
46896         (read_utmp): Remove anachronistic cast of xmalloc.
46897
46898 2003-06-17  Paul Eggert  <eggert@twinsun.com>
46899
46900         Assume C89, so PARAMS isn't needed.
46901         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
46902         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
46903         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
46904         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
46905         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
46906         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
46907         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
46908         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
46909         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
46910         lib/xstrtod.h, lib/xstrtol.h: Likewise.
46911         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
46912         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
46913         no longer needed. Anyway, config.h should always be included before any
46914         other file.
46915
46916 2003-06-11  Simon Josefsson  <jas@extundo.com>
46917
46918         * modules/sysexits: New file.
46919         * MODULES.html.sh (func_all_modules): Add sysexits.
46920
46921 2003-06-11  Simon Josefsson  <jas@extundo.com>
46922
46923         * lib/sysexit_.h: New file.
46924
46925 2003-06-11  Derek Price  <derek@ximbiot.com>
46926
46927         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
46928         necessary.
46929
46930 2003-06-11  Bruno Haible  <bruno@clisp.org>
46931
46932         * m4/sysexits.m4: New file.
46933
46934 2003-06-10  Simon Josefsson  <jas@extundo.com>
46935
46936         * lib/argp.h: New file, from glibc.
46937         * lib/argp-ba.c: New file, from glibc.
46938         * lib/argp-eexst.c: New file, from glibc.
46939         * lib/argp-fmtstream.c: New file, from glibc.
46940         * lib/argp-fmtstream.h: New file, from glibc.
46941         * lib/argp-fs-xinl.c: New file, from glibc.
46942         * lib/argp-help.c: New file, from glibc.
46943         * lib/argp-namefrob.h: New file, from glibc.
46944         * lib/argp-parse.c: New file, from glibc.
46945         * lib/argp-pv.c: New file, from glibc.
46946         * lib/argp-pvh.c: New file, from glibc.
46947         * lib/argp-xinl.c: New file, from glibc.
46948
46949 2003-06-10  Simon Josefsson  <jas@extundo.com>
46950
46951         * modules/strchrnul: New file.
46952
46953 2003-06-10  Simon Josefsson  <jas@extundo.com>
46954
46955         * modules/argp: New file.
46956
46957 2003-06-10  Simon Josefsson  <jas@extundo.com>
46958
46959         * m4/strchrnul.m4: New file.
46960
46961 2003-06-10  Simon Josefsson  <jas@extundo.com>
46962
46963         * lib/strchrnul.h: New file.
46964         * lib/strchrnul.c: New file.
46965
46966 2003-06-10  Bruno Haible  <bruno@clisp.org>
46967
46968         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
46969
46970 2003-06-07  Karl Berry  <karl@gnu.org>
46971
46972         * config/config.{guess,sub}: update from prep.
46973
46974 2003-06-07  Jim Meyering  <jim@meyering.net>
46975
46976         * modules/strtod: Use $(...) notation, not @...@ for
46977         AC_REPLACE'd variables.
46978         * modules/localcharset: Likewise.
46979
46980 2003-06-07  Jim Meyering  <jim@meyering.net>
46981
46982         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
46983         in place of my name in the copyright comment.
46984         Remove definition and uses of __P.
46985
46986         From coreutils.
46987         * lib/stat.c: Don't declare xmalloc explicitly.
46988         Instead, include "xalloc.h".
46989         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
46990         xrealloc, and xcalloc return values.
46991         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
46992         Improve comment.
46993         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
46994
46995 2003-06-07  Bruno Haible  <bruno@clisp.org>
46996
46997         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
46998         avoid AC_CONFIG_LINKS.
46999         * modules/fnmatch (Makefile.am): Use explicit creation rule for
47000         fnmatch.h, to avoid AC_CONFIG_LINKS.
47001         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
47002
47003 2003-06-07  Bruno Haible  <bruno@clisp.org>
47004
47005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
47006         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
47007         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47008         directory.
47009         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
47010         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47011         directory.
47012
47013 2003-06-06  Jim Meyering  <jim@meyering.net>
47014
47015         Merge from coreutils.
47016         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
47017         Consolidate declarations and initializations of *_base* locals.
47018
47019         Merge from coreutils.
47020         This avoids a core dump on systems without GNU putenv,
47021         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
47022         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
47023         (unsetenv): New static function, from GNU libc.
47024         (rpl_putenv): Use it.
47025
47026         * lib/modechange.c: Remove trailing blanks.
47027
47028         Merge from coreutils.
47029         * lib/fsusage.c: Remove declaration of statfs.
47030         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
47031
47032         * lib/posixtm.c: Include <stdbool.h> unconditionally.
47033
47034 2003-06-06  Jim Meyering  <jim@meyering.net>
47035
47036         * lib/stdbool_.h: Renamed from stdbool.h.in.
47037
47038 2003-06-06  Jim Meyering  <jim@meyering.net>
47039             Bruno Haible  <bruno@clisp.org>
47040
47041         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
47042         Adjust Makefile.am snippet not to redirect directly to target.
47043         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
47044
47045 2003-06-05  Paul Eggert  <eggert@twinsun.com>
47046
47047         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
47048         mismatch, look in future quarters as well as past.  This fixes a
47049         bug when processing fall-backwards gaps immediately after a long
47050         period of daylight-saving time.
47051
47052         * lib/mktime.c: Assume freestanding C89 or better.
47053         (HAVE_LIMITS_H): Remove.  Assume it's 1.
47054         (__P): Remove; not used.
47055         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
47056         (mktime, not_equal_tm, print_tm, check_result,
47057         main): Use prototypes.  Use const * where appropriate.
47058         (main): Fix typo in testing code that uncovered by above changes.
47059         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
47060
47061 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47062
47063         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
47064         locale.h, localeconv.  This merges changes from coreutils.
47065
47066         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
47067         It can be removed after the next Autoconf is released.
47068         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
47069         needed.
47070
47071 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47072
47073         * lib/mktime.c: Fix Debian bug 177940
47074         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
47075         (localtime_offset): Now long int, not time_t, because we want it
47076         to be guaranteed to be signed.  All uses changed.
47077         (__mktime_internal): If overflow would occur when adding offset,
47078         don't add it.
47079
47080         Merge 'human' changes from coreutils.  Rewrite to support
47081         locale-specific notations like thousands separators.
47082         * lib/human.c: Simplify authorship notice.
47083         Include human.h immediately after config.h.
47084         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
47085         <limits.h>: Do not include, since human.h does.
47086         (SIZE_MAX, UINTMAX_MAX): New macros.
47087         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
47088         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
47089         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
47090         (power_letter): Renamed from suffixes.
47091         (generate_suffix_backwards): Remove.
47092         (adjust_value): Now takes int style (because of human.h changes)
47093         and long double value (for greater precision on some platforms).
47094         (group_number): New function.
47095         (human_readable): Use it.  Use integer options, not enum.
47096         Put the options before the sizes in the arg list.
47097         Support all the new options.
47098         The old human_readable function has been removed;
47099         use inttostr.h instead.
47100         (human_readable, default_block_size, humblock):
47101         Use uintmax_t, not int, for block sizes.
47102         (human_readable_inexact, block_size_types): Remove.
47103         (block_size_opts): New constant.
47104         (human_options): Renamed from human_block_size, with new signature
47105         that allows block sizes up to UINTMAX_MAX.  All callers changed.
47106         * lib/human.h: Add copyright and authorship notice.
47107         Include <limits.h> and <stdbool.h> unconditionally.
47108         (PARAMS): Remove.  All uses removed.
47109         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
47110         (enum human_inexact_style): Remove tag; now a nameless enum.
47111         (human_floor, human_ceiling, human_round_to_even): Now have
47112         values 2, 0, 1 rather than -1, 1, 0.
47113         (human_group_digits, human_suppress_point_zero, human_autoscale,
47114         human_base_1024, human_SI, human_B): New constants.
47115         (human_readable_inexact, human_block_size): Remove.
47116         (human_readable): Size args are now uintmax_t, not int.
47117         (human_options): New decl.
47118
47119         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
47120         unnecessary now that we assume C89 or better.  This change
47121         imported from coreutils.
47122
47123         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47124         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
47125         in the 2003-05-30 sync from glibc.
47126
47127         .h files should stand alone, but we shouldn't include <sys/types.h>
47128         if we can get away with just <stddef.h>.
47129
47130         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
47131         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
47132         rather than <sys/types.h>, as we merely need size_t.
47133         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
47134         to get size_t.
47135         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
47136         Include <stdio.h>, to get FILE.
47137         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
47138         memcasecmp.h has included <stddef.h> and all we need is size_t.
47139         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
47140         our interface, instead of including <sys/types.h>
47141
47142 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47143
47144         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
47145         now, as glibc mktime is buggy on non-glibc systems.
47146
47147 2003-06-03  Karl Berry  <karl@gnu.org>
47148
47149         * config/config.sub: update from prep.
47150
47151 2003-06-02  Paul Eggert  <eggert@twinsun.com>
47152
47153         [from coreutils]
47154         Fix some minor time-related bugs with POSIX time arguments.
47155         Some valid time stamps were being rejected (notably -1, and
47156         time stamps before 1900 on 64-bit hosts).  And some invalid
47157         time stamps were being accepted, e.g. September 31.
47158
47159         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
47160         that we can return (time_t) -1 successfully.
47161         * lib/posixtm.c: Likewise.
47162         [HAVE_STDBOOL_H]: Include <stdbool.h>.
47163         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
47164         (t): Remove static var.
47165         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
47166         of static var.  All uses changed.
47167         (year): Do not reject years before 1900; they can occur with
47168         64-bit time_t.
47169         (posix_time_parse): Do not check for out-of-range components;
47170         that is now the caller's responsibility, since our checks were
47171         only approximations.
47172         (posixtime): Use mktime to check for out-of-range components,
47173         since it knows them exactly.
47174         If mktime returns (time_t) -1, check whether an error actually occurred
47175         by invoking localtime on -1.
47176         (main) [TEST_POSIXTIME]: Check for input data errors, and report
47177         posixtime failures better.
47178         Improve the test data (in comments only).
47179
47180 2003-06-02  Karl Berry  <karl@gnu.org>
47181
47182         * config/mkinstalldirs (version): new variable.
47183         (--version): new option.
47184         (usage): improve message.
47185
47186 2003-05-30  Karl Berry  <karl@gnu.org>
47187
47188         * lib/mktime.c: update from libc.
47189
47190 2003-05-30  Bruno Haible  <bruno@clisp.org>
47191
47192         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
47193         * config/config.rpath: Upgrade to gettext-0.12.1.
47194
47195 2003-05-30  Bruno Haible  <bruno@clisp.org>
47196
47197         * m4/gettext.m4: Upgrade to gettext-0.12.1.
47198         * m4/nls.m4: New file, from gettext-0.12.1.
47199         * m4/po.m4: New file, from gettext-0.12.1.
47200         * m4/progtest.m4: Upgrade to gettext-0.12.1.
47201
47202 2003-05-30  Bruno Haible  <bruno@clisp.org>
47203
47204         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
47205         * lib/localcharset.h: Likewise.
47206         * lib/localcharset.c: Likewise.
47207
47208 2003-05-29  Karl Berry  <karl@gnu.org>
47209
47210         * config/config.rpath: update from gettext.
47211
47212 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47213
47214         Assume the headers required for C89 freestanding compilers.
47215         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
47216         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
47217         * m4/human.m4 (gl_HUMAN): Likewise.
47218         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
47219         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
47220         * m4/userspec.m4 (gl_USERSPEC): Likewise.
47221         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
47222         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47223         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
47224
47225 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47226
47227         Assume the headers required for C89 freestanding compilers.
47228         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
47229         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
47230         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
47231         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
47232         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
47233         define, since <limits.h> is guaranteed to do that.
47234         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
47235         * lib/exclude.c: Include <stdbool.h> unconditionally.
47236         * lib/tempname.c: Include <stddef.h> unconditionally.
47237         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
47238         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
47239         <stddef.h> does that.
47240         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
47241         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
47242         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
47243         needed.
47244         * lib/xstrtol.c: Likewise.
47245         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
47246         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
47247
47248         * lib/addext.c (addext): Use assignment rather than cast, to avoid
47249         warnings on some platforms.
47250
47251         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47252         arbitrarily.
47253
47254 2003-05-26  Jim Meyering  <jim@meyering.net>
47255
47256         Merge in a change from coreutils:
47257         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
47258         that is guaranteed to be `no'.  Use `no_such_member' to indicate
47259         that condition, rather than `-1' which is slightly misleading.
47260         Change the name of the cache variable to have the gl_ prefix.
47261         Prompted by a patch from Richard Dawe for DJGPP.
47262
47263 2003-05-24  Karl Berry  <karl@gnu.org>
47264
47265         * config/config.guess: update from prep.
47266
47267 2003-05-22  Karl Berry  <karl@gnu.org>
47268
47269         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
47270
47271 2003-05-20  Karl Berry  <karl@gnu.org>
47272
47273         * config/config.guess: update from prep.
47274
47275 2003-05-18  Karl Berry  <karl@gnu.org>
47276
47277         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
47278         might actually be set by the user.
47279
47280         * config/depcomp, install-sh, mdate-sh: update from automake.
47281
47282 2003-05-17  Bruno Haible  <bruno@clisp.org>
47283
47284         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
47285         invalid expansion for AC_EGREP_CPP.
47286         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47287         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47288         Suggested by Akim Demaille <akim@epita.fr> in
47289         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
47290
47291 2003-05-12  Jim Meyering  <jim@meyering.net>
47292
47293         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
47294         the space-padded-by-default conversion specifiers, %e, %k, %l.
47295
47296 2003-05-12  Bruno Haible  <bruno@clisp.org>
47297
47298         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
47299         the string is longer than 4 KB.
47300
47301 2003-05-11  Karl Berry  <karl@gnu.org>
47302
47303         * config/config.{guess,sub}: update from prep.
47304
47305 2003-05-09  Bruno Haible  <bruno@clisp.org>
47306
47307         * modules/error: Add m4/strerror_r.m4 to file list.
47308
47309 2003-05-03  Bruno Haible  <bruno@clisp.org>
47310
47311         Upgrade to Unicode-4.0.
47312         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
47313         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
47314         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
47315         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
47316         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
47317         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
47318         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
47319         Change width of U+E0100..U+E01EF from 1 to 0.
47320
47321 2003-04-25  Jim Meyering  <jim@meyering.net>
47322
47323         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
47324         of type size_t, not int.
47325
47326 2003-04-25  Bruno Haible  <bruno@clisp.org>
47327
47328         * lib/copy-file.c: Include <stddef.h>, for size_t.
47329
47330 2003-04-21  Paul Eggert  <eggert@twinsun.com>
47331
47332         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
47333         code which expansion is under static control.  Patch imported from
47334         Akim Demaille's patch to Bison; see
47335         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
47336
47337 2003-04-14  Bruno Haible  <bruno@clisp.org>
47338
47339         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
47340
47341 2003-04-11  Jim Meyering  <jim@meyering.net>
47342
47343         Merge changes from Coreutils.
47344
47345         2003-03-22  Jim Meyering  <jim@meyering.net>
47346
47347         * lib/strftime.c (widen): Cast alloca return value to proper type.
47348
47349         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
47350
47351         From GNU libc.
47352         * lib/strftime.c (my_strftime): Handle very large width
47353         specifications for numeric values correctly.  Improve checks for
47354         overflow.
47355
47356         2003-01-19  Jim Meyering  <jim@meyering.net>
47357
47358         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
47359         definitions.
47360         (nl_get_alt_digit) [! defined my_strftime]: Define.
47361         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
47362         _nl_get_alt_digit and _nl_get_walt_digit.
47363
47364         * lib/strftime.c (my_strftime): Merge in locale-related changes from
47365         libc. These changes have no effect outside of _LIBC.
47366
47367 2003-04-10  Bruno Haible  <bruno@clisp.org>
47368
47369         * modules/findprog: New file.
47370         * MODULES.html.sh (func_all_modules): Add it.
47371
47372 2003-04-10  Bruno Haible  <bruno@clisp.org>
47373
47374         * m4/findprog.m4: New file.
47375         * m4/eaccess.m4: New file.
47376
47377 2003-04-10  Bruno Haible  <bruno@clisp.org>
47378
47379         * lib/findprog.h: New file, from GNU gettext.
47380         * lib/findprog.c: New file, from GNU gettext.
47381
47382 2003-04-05  Jim Meyering  <jim@meyering.net>
47383
47384         Merge changes from Coreutils.
47385
47386         * lib/exclude.h (PARAMS): Remove definition and uses.
47387         * lib/exclude.c: Remove uses of `PARAMS'.
47388
47389         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
47390         Add test-cases for DOS filenames. Declare program_name.
47391         (main): Set up program_name.  Patch by Rich Dawe.
47392
47393         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
47394         error from mntctl.
47395         Use mntctl's return value to drive the entry-processing loop, since
47396         we can't rely on the value of the vmt_length member in the last
47397         entry.  On some systems doing so could result in exhausting
47398         virtual memory.  Based in part on a patch from Mike Jetzer.
47399
47400 2003-04-04  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/linebreak: New file.
47403         * MODULES.html.sh (func_all_modules): Add it.
47404
47405 2003-04-04  Bruno Haible  <bruno@clisp.org>
47406
47407         * m4/linebreak.m4: New file.
47408
47409 2003-04-04  Bruno Haible  <bruno@clisp.org>
47410
47411         * lib/linebreak.h: New file, from GNU gettext.
47412         * lib/linebreak.c: New file, from GNU gettext with slight
47413         modifications.
47414         * lib/lbrkprop.h: New file, from GNU gettext.
47415
47416 2003-04-03  Bruno Haible  <bruno@clisp.org>
47417
47418         * modules/utf8-ucs4: New file.
47419         * modules/utf16-ucs4: New file.
47420         * modules/ucs4-utf8: New file.
47421         * modules/ucs4-utf16: New file.
47422         * MODULES.html.sh (func_all_modules): Add them.
47423
47424 2003-04-03  Bruno Haible  <bruno@clisp.org>
47425
47426         * m4/utf-ucs4.m4: New file.
47427         * m4/ucs4-utf.m4: New file.
47428
47429 2003-04-03  Bruno Haible  <bruno@clisp.org>
47430
47431         * lib/utf8-ucs4.h: New file, from GNU gettext.
47432         * lib/utf16-ucs4.h: New file, from GNU gettext.
47433         * lib/ucs4-utf8.h: New file, from GNU gettext.
47434         * lib/ucs4-utf16.h: New file, from GNU gettext.
47435
47436 2003-04-02  Bruno Haible  <bruno@clisp.org>
47437
47438         * modules/binary-io: New file.
47439         * MODULES.html.sh (func_all_modules): Add it.
47440
47441 2003-04-02  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/binary-io.h: New file, from GNU gettext.
47444
47445 2003-04-01  Bruno Haible  <bruno@clisp.org>
47446
47447         * modules/pathname: New file.
47448         * MODULES.html.sh (func_all_modules): Add it.
47449
47450 2003-04-01  Bruno Haible  <bruno@clisp.org>
47451
47452         * lib/pathname.h: New file, from GNU gettext.
47453         * lib/concatpath.c: New file, from GNU gettext.
47454
47455 2003-03-30  Bruno Haible  <bruno@clisp.org>
47456
47457         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
47458
47459 2003-03-30  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
47462         function chown() doesn't exist.
47463
47464 2003-03-28  Bruno Haible  <bruno@clisp.org>
47465
47466         * modules/copy-file: New file.
47467         * MODULES.html.sh (func_all_modules): Add it.
47468
47469 2003-03-28  Bruno Haible  <bruno@clisp.org>
47470
47471         * m4/copy-file.m4: New file.
47472
47473 2003-03-28  Bruno Haible  <bruno@clisp.org>
47474
47475         * lib/copy-file.h: New file, from GNU gettext.
47476         * lib/copy-file.c: New file, from GNU gettext.
47477
47478 2003-03-18  Jim Meyering  <jim@meyering.net>
47479
47480         * lib/quote.c (quote_n): Fix typo in comment.
47481
47482 2003-03-18  Bruno Haible  <bruno@clisp.org>
47483
47484         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
47485         checking.
47486         * m4/onceonly_2_57.m4: Likewise.
47487
47488 2003-03-17  Bruno Haible  <bruno@clisp.org>
47489
47490         * m4/onceonly.m4: Require autoconf 2.54 or newer.
47491         (m4_quote): Remove macro.
47492         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
47493
47494 2003-03-14  Jim Meyering  <jim@meyering.net>
47495
47496         Merge changes from Coreutils.
47497         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
47498         to be const, in order to avoid warnings.
47499         (obstack_room): Likewise.
47500         (obstack_empty_p): Likewise.
47501
47502 2003-03-14  Bruno Haible  <bruno@clisp.org>
47503
47504         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
47505         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
47506
47507 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47508
47509         Merge changes from Bison.
47510         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
47511         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
47512         when compiling Bison 1.875's `bitset bset = obstack_alloc
47513         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
47514         * lib/hash.c: Include <stdbool.h> unconditionally.
47515
47516 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47517
47518         * m4/onceonly.m4 (m4_quote): New macro.
47519         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
47520         Quote AC_FOREACH variable-expansions properly.
47521
47522 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47523
47524         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
47525
47526 2003-03-09  Paul Eggert  <eggert@twinsun.com>
47527
47528         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
47529         Reported by Bruce Becker; see:
47530         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
47531
47532 2003-03-03  Paul Eggert  <eggert@twinsun.com>
47533             Bruno Haible  <bruno@clisp.org>
47534
47535         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
47536         Reported by John Hughes, see
47537         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
47538
47539 2003-02-20  Bruno Haible  <bruno@clisp.org>
47540
47541         * MODULES.html.sh (func_all_modules): Add poll.
47542
47543 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47544
47545         * modules/poll: New file.
47546
47547 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47548
47549         * lib/poll_.h: New file.
47550         * lib/poll.c: New file.
47551
47552 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47553
47554         * m4/poll.m4: New file.
47555
47556 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47557
47558         * modules/mathl: New file.
47559
47560 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47561
47562         * lib/mathl.h: New file.
47563         * lib/acosl.c: New file.
47564         * lib/asinl.c: New file.
47565         * lib/atanl.c: New file.
47566         * lib/ceill.c: New file.
47567         * lib/cosl.c: New file.
47568         * lib/expl.c: New file.
47569         * lib/floorl.c: New file.
47570         * lib/frexpl.c: New file.
47571         * lib/ldexpl.c: New file.
47572         * lib/logl.c: New file.
47573         * lib/sincosl.c: New file.
47574         * lib/sinl.c: New file.
47575         * lib/sqrtl.c: New file.
47576         * lib/tanl.c: New file.
47577         * lib/trigl.c: New file.
47578         * lib/trigl.h: New file.
47579
47580 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47581
47582         * m4/mathl.m4: New file.
47583
47584 2003-02-18  Bruno Haible  <bruno@clisp.org>
47585
47586         * MODULES.html.sh (func_all_modules): Add mathl.
47587
47588 2003-02-17  Bruno Haible  <bruno@clisp.org>
47589
47590         * modules/mkdtemp: New module.
47591         * MODULES.html.sh (func_all_modules): Add it.
47592
47593 2003-02-17  Bruno Haible  <bruno@clisp.org>
47594
47595         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
47596
47597 2003-02-17  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/mkdtemp.h: New file, from GNU gettext.
47600         * lib/mkdtemp.c: New file, from GNU gettext.
47601
47602 2003-02-02  Jim Meyering  <jim@meyering.net>
47603
47604         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
47605         e.g. glibc-2.2.93.
47606
47607 2003-01-31  Bruno Haible  <bruno@clisp.org>
47608
47609         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
47610         'rpl_rename'.
47611         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
47612         'rpl_strnlen'.
47613         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
47614         'rpl_strtod'.
47615         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
47616         'rpl_utime'.
47617
47618 2003-01-31  Bruno Haible  <bruno@clisp.org>
47619
47620         * lib/rename.c: #undef rename before defining rpl_rename.
47621         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
47622
47623 2003-01-30  Bruno Haible  <bruno@clisp.org>
47624
47625         * modules/vasnprintf, modules/vasprintf: New modules.
47626         * MODULES.html.sh (func_all_modules): Add them.
47627
47628 2003-01-30  Bruno Haible  <bruno@clisp.org>
47629
47630         * m4/signed.m4: New file, from GNU gettext.
47631         * m4/longdouble.m4: New file, from GNU gettext.
47632         * m4/wchar_t.m4: New file, from GNU gettext.
47633         * m4/wint_t.m4: New file, from GNU gettext.
47634         * m4/vasnprintf.m4: New file.
47635         * m4/vasprintf.m4: New file.
47636
47637 2003-01-30  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/printf-args.h: New file, from GNU gettext.
47640         * lib/printf-args.c: New file, from GNU gettext.
47641         * lib/printf-parse.h: New file, from GNU gettext.
47642         * lib/printf-parse.c: New file, from GNU gettext.
47643         * lib/vasnprintf.h: New file, from GNU gettext.
47644         * lib/vasnprintf.c: New file, from GNU gettext.
47645         * lib/asnprintf.c: New file, from GNU gettext.
47646         * lib/vasprintf.h: New file, from GNU gettext with modifications.
47647         * lib/vasprintf.c: New file, from GNU gettext.
47648         * lib/asprintf.c: New file, from GNU gettext.
47649
47650 2003-01-29  Bruno Haible  <bruno@clisp.org>
47651
47652         * modules/stpncpy: New module.
47653         * MODULES.html.sh (func_all_modules): Add it.
47654
47655 2003-01-29  Bruno Haible  <bruno@clisp.org>
47656
47657         * m4/stpncpy.m4: New file.
47658
47659 2003-01-29  Bruno Haible  <bruno@clisp.org>
47660
47661         * lib/stpncpy.h: New file, from GNU gettext with modifications.
47662         * lib/stpncpy.c: New file, from GNU gettext with modifications.
47663
47664 2003-01-28  Bruno Haible  <bruno@clisp.org>
47665
47666         * modules/c-ctype: New module.
47667         * MODULES.html.sh (func_all_modules): Add it.
47668
47669 2003-01-28  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
47672         Paul Eggert.
47673         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
47674         Paul Eggert.
47675
47676 2003-01-27  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/xsetenv: New module.
47679         * MODULES.html.sh (func_all_modules): Add it.
47680
47681 2003-01-27  Bruno Haible  <bruno@clisp.org>
47682
47683         * lib/xsetenv.h: New file, from GNU gettext.
47684         * lib/xsetenv.c: New file, from GNU gettext.
47685
47686 2003-01-23  Jim Meyering  <jim@meyering.net>
47687
47688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
47689         from working on systems without dirfd (at least Irix and OSF1/Tru64).
47690
47691 2003-01-23  Bruno Haible  <bruno@clisp.org>
47692
47693         * modules/minmax: New module.
47694         * MODULES.html.sh (func_all_modules): Add it.
47695
47696 2003-01-23  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
47699         Eggert.
47700
47701 2003-01-22  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/exit: New module.
47704         * MODULES.html.sh (func_all_modules): Add it.
47705
47706 2003-01-22  Bruno Haible  <bruno@clisp.org>
47707
47708         * lib/exit.h: New file, from GNU gettext.
47709
47710 2003-01-19  Bruno Haible  <bruno@clisp.org>
47711
47712         * gnulib-tool: Recognize option --extract-maintainer.
47713         (func_get_maintainer): New function.
47714         * modules/*: Add Maintainer entry.
47715
47716 2003-01-16  Jim Meyering  <jim@meyering.net>
47717
47718         * m4/regex.m4: The `regex' struct is both input and output.
47719         Initialize it before each use.  Patch by Tim Waugh.
47720
47721 2003-01-16  Bruno Haible  <bruno@clisp.org>
47722
47723         * MODULES.html.sh: Add a table of contents. Add the module name as
47724         leftmost column. Add hyperlinks.
47725
47726 2003-01-15  Bruno Haible  <bruno@clisp.org>
47727
47728         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
47729
47730 2003-01-15  Bruno Haible  <bruno@clisp.org>
47731
47732         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
47733         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
47734         suffix.
47735
47736 2003-01-15  Bruno Haible  <bruno@clisp.org>
47737
47738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
47739
47740 2003-01-15  Bruno Haible  <bruno@clisp.org>
47741
47742         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
47743         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
47744
47745 2003-01-14  Jim Meyering  <jim@meyering.net>
47746
47747         * lib/same.c (same_name): Tweak a comment.
47748
47749 2003-01-14  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
47752         when a string comparison is sufficient.
47753
47754 2003-01-14  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
47757         'unsigned int'.
47758
47759 2003-01-14  Bruno Haible  <bruno@clisp.org>
47760
47761         * lib/hash-pjw.c: Add comment about low quality of this function.
47762
47763 2003-01-13  Bruno Haible  <bruno@clisp.org>
47764
47765         * modules/stpcpy: Distribute lib/stpcpy.h.
47766         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
47767
47768 2003-01-13  Bruno Haible  <bruno@clisp.org>
47769
47770         * modules/*: Add a description.
47771         * modules/strpbrk: Fix Makefile.am snippet.
47772         * modules/strtoimax: Fix dependencies.
47773         * modules/strtoumax: Likewise.
47774
47775 2003-01-13  Bruno Haible  <bruno@clisp.org>
47776
47777         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
47778         * modules/alloca (Makefile.am): All object files depend on alloca.h.
47779         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
47780
47781 2003-01-13  Bruno Haible  <bruno@clisp.org>
47782
47783         * gnulib-tool (func_create_testdir): Store config/* files in the main
47784         directory.
47785         * config.rpath: Move to ...
47786         * config/config.rpath: ... here.
47787         * modules/gettext: Contains config/config.rpath, not config.rpath.
47788         * modules/iconv: Likewise.
47789
47790 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47791
47792         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47793         to avoid collisions with libcurses and libreadline.
47794
47795         * m4/getstr.m4: Remove.
47796         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
47797
47798 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47799
47800         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47801         to avoid collisions with libcurses and libreadline.
47802
47803         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
47804         * lib/getstr.h, getstr.c: Remove.
47805         * lib/getline.c: Include "getline.h", to check interface.
47806         Move body of old getstr.c here: this defines MIN_CHUNK and
47807         declares getdelim2, which is renamed from getstr.
47808         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
47809
47810         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
47811         All uses changed.
47812         * lib/linebuffer.h: Likewise.
47813         (readline): Remove backward-compatibility macro.
47814
47815 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47816
47817         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47818         to avoid collisions with libcurses and libreadline.
47819         * getstr: Remove.
47820         * MODULES.html.sh: Remove getstr.
47821         * modules/getline: Depend on unlocked-io, not getstr.
47822
47823 2003-01-12  Jim Meyering  <jim@meyering.net>
47824
47825         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
47826
47827 2003-01-10  Bruno Haible  <bruno@clisp.org>
47828
47829         * modules/alloca: Change Makefile.am requirements. Simplify Include
47830         requirements. Add lib/alloca_.h to file list.
47831
47832 2003-01-10  Bruno Haible  <bruno@clisp.org>
47833
47834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
47835
47836 2003-01-10  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/alloca_.h: New file.
47839         * lib/getdate.y: Unconditionally include alloca.h.
47840         * lib/makepath.c: Likewise.
47841         * lib/setenv.c: Likewise.
47842         * lib/userspec.c: Likewise.
47843
47844 2003-01-09  Karl Berry  <karl@gnu.org>
47845
47846         * MODULES.html.sh: include `dirname $0` in PATH, to find
47847         gnulib-tool.
47848
47849 2003-01-09  Bruno Haible  <bruno@clisp.org>
47850
47851         * modules/stdbool: Change configure.ac, Makefile.am requirements.
47852         Simplify Include requirements. Add lib/stdbool.h.in to file list.
47853
47854 2003-01-09  Bruno Haible  <bruno@clisp.org>
47855
47856         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
47857
47858 2003-01-09  Bruno Haible  <bruno@clisp.org>
47859
47860         * lib/stdbool.h.in: New file.
47861
47862 2003-01-09  Bruno Haible  <bruno@clisp.org>
47863
47864         * gnulib-tool (func_all_modules): Ignore files ending in ~.
47865         * MODULES.html.sh: Likewise.
47866
47867 2003-01-08  Jim Meyering  <jim@meyering.net>
47868
47869         * lib/full-write.c: Undefine and define-away `const' after inclusion
47870         of errno.h, not before.  Suggestion from Bruno Haible.
47871
47872 2003-01-08  Bruno Haible  <bruno@clisp.org>
47873
47874         * modules/full-read: Depend on full-write.
47875
47876 2003-01-08  Bruno Haible  <bruno@clisp.org>
47877
47878         * lib/safe-read.c: Include specification header first, to ensure its
47879         selfcontainedness.
47880         * lib/full-write.c: Likewise.
47881
47882 2003-01-07  Jim Meyering  <jim@meyering.net>
47883
47884         * lib/full-write.c: Rework so that it may serve to define full_read,
47885         too.
47886         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
47887
47888 2003-01-07  Bruno Haible  <bruno@clisp.org>
47889
47890         * lib/strtoimax.c: Include <stdint.h> as an alternative to
47891         <inttypes.h>.
47892         * lib/xstrtol.h: Likewise.
47893         * lib/xstrtoimax.c: Likewise.
47894         * lib/xstrtoumax.c: Likewise.
47895         * lib/human.h: Likewise.
47896
47897         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
47898         on systems that have <inttypes.h> but not <stdint.h>.
47899
47900 2003-01-07  Bruno Haible  <bruno@clisp.org>
47901
47902         * MODULES.html.sh: Add copyright notice.
47903         (missed_files): Omit CVS directory entries.
47904         (func_module): Make it work with sed-3.02.
47905         * MODULES.txt: Remove file.
47906
47907 2003-01-06  Jim Meyering  <jim@meyering.net>
47908
47909         * lib/version-etc.c: Update year in translatable copyright string.
47910
47911 2003-01-03  Karl Berry  <karl@gnu.org>
47912
47913         * config/config.{guess,sub}: update from prep.
47914
47915 2003-01-02  Karl Berry  <karl@gnu.org>
47916
47917         * doc/COPYING.DOC: belatedly updated to 1.2.
47918
47919 2003-01-01  Karl Berry  <karl@gnu.org>
47920
47921         * gnulib-tool (func_verify_module): report module name $module in
47922         error message, not $1.
47923         * gnulib-tool (create-testdir): don't complain if destdir couldn't
47924         be created, only if it doesn't exist.
47925         * gnulib-tool (last_checkin_date): don't expand the $Date here.
47926
47927 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47928
47929         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
47930
47931 2002-12-31  Paul Eggert  <eggert@twinsun.com>
47932
47933         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
47934         memcmp if strcoll doesn't work.
47935
47936 2002-12-31  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/utime.c (utime_null): No need to call ftruncate if the file was
47939         nonempty.
47940
47941 2002-12-31  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/memcoll.c (STRCOLL): New macro.
47944         (memcoll): Use it.
47945
47946 2002-12-31  Bruno Haible  <bruno@clisp.org>
47947
47948         * lib/localcharset.h: New file.
47949         * lib/localcharset.c: Include it.
47950         * lib/unicodeio.c: Likewise.
47951
47952 2002-12-31  Bruno Haible  <bruno@clisp.org>
47953
47954         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
47955         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
47956
47957 2002-12-31  Bruno Haible  <bruno@clisp.org>
47958
47959         * lib/getline.h: Include <stddef.h>, for size_t.
47960
47961         * lib/unicodeio.h: Include <stddef.h>, for size_t.
47962         * lib/unicodeio.c: Don't include <stddef.h>.
47963
47964 2002-12-31  Bruno Haible  <bruno@clisp.org>
47965
47966         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
47967         HAVE_TM_ZONE.
47968
47969 2002-12-24  Karl Berry  <karl@gnu.org>
47970
47971         * config/config.guess: update from prep.
47972
47973 2002-12-24  Bruno Haible  <bruno@clisp.org>
47974
47975         General infrasructure.
47976         * m4/README: Rewritten.
47977         * m4/onceonly.m4: New file.
47978         * m4/onceonly_2_57.m4: New file.
47979
47980         Module atexit.
47981         * m4/atexit.m4: New file.
47982
47983         Module strtod.
47984         * m4/strtod.m4: New file.
47985
47986         Module strtol.
47987         * m4/strtol.m4: New file.
47988
47989         Module strtoul.
47990         * m4/strtoul.m4: New file.
47991
47992         Module memchr.
47993         * m4/memchr.m4: New file.
47994
47995         Module memcmp.
47996         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
47997         (jm_FUNC_MEMCMP): Invoke it.
47998
47999         Module memcpy.
48000         * m4/memcpy.m4: New file.
48001
48002         Module memmove.
48003         * m4/memmove.m4: New file.
48004
48005         Module memset.
48006         * m4/memset.m4: New file.
48007
48008         Module strcspn.
48009         * m4/strcspn.m4: New file.
48010
48011         Module strpbrk.
48012         * m4/strpbrk.m4: New file.
48013
48014         Module strstr.
48015         * m4/strstr.m4: New file.
48016
48017         Module strerror.
48018         * m4/strerror.m4: New file.
48019
48020         Module mktime.
48021         * m4/mktime.m4: Renamed from jm-mktime.m4.
48022         (gl_PREREQ_MKTIME): New macro.
48023         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
48024
48025         Module malloc.
48026         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
48027         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
48028         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
48029
48030         Module realloc.
48031         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
48032         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
48033         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
48034
48035         Module strftime.
48036         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
48037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
48038         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
48039         gl_TM_GMTOFF.
48040         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
48041
48042         Module xalloc.
48043         * m4/xalloc.m4: New file.
48044
48045         Module alloca.
48046         * m4/alloca.m4: New file.
48047
48048         Module putenv.
48049         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
48050         (jm_FUNC_PUTENV): Invoke it.
48051
48052         Module setenv.
48053         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
48054         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
48055         when invoked twice.
48056         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
48057         gt_FUNC_SETENV.
48058
48059         Module memrchr.
48060         * m4/memrchr.m4: New file.
48061
48062         Module stpcpy.
48063         * m4/stpcpy.m4: New file.
48064
48065         Module strcase.
48066         * m4/strcase.m4: New file.
48067
48068         Module strdup.
48069         * m4/strdup.m4: New file.
48070
48071         Module strnlen.
48072         * m4/strnlen.m4: New file.
48073
48074         Module strndup.
48075         * m4/strndup.m4: New file.
48076
48077         Module xstrtod.
48078         * m4/xstrtod.m4: New file.
48079
48080         Module xstrtol.
48081         * m4/xstrtol.m4: New file.
48082
48083         Module getdate.
48084         * m4/getdate.m4: New file.
48085
48086         Module unlocked-io.
48087         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
48088         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
48089         * m4/jm-glibc-io.m4n: Remove file.
48090
48091         Module long-options.
48092         * m4/long-options.m4: New file.
48093
48094         Module md5.
48095         * m4/md5.m4: New file.
48096
48097         Module sha.
48098         * m4/sha.m4: New file.
48099
48100         Module getstr.
48101         * m4/getstr.m4: New file.
48102
48103         Module getline.
48104         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
48105         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
48106         <sys/types.h>, for size_t. Use the function name gnu_getline, not
48107         simply getline. Infoke gl_PREREQ_GETLINE.
48108
48109         Module obstack.
48110         * m4/obstack.m4: New file.
48111
48112         Module hash.
48113         * m4/hash.m4: New file.
48114
48115         Module readtokens.
48116         * m4/readtokens.m4: New file.
48117
48118         Module strverscmp.
48119         * m4/strverscmp.m4: New file.
48120
48121         Module stdbool.
48122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
48123         OSF/1.
48124
48125         Module strtoll.
48126         * m4/strtoll.m4: New file.
48127
48128         Module strtoull.
48129         * m4/strtoull.m4: New file.
48130
48131         Module strtoimax.
48132         * m4/strtoimax.m4: New file.
48133
48134         Module strtoumax.
48135         * m4/strtoumax.m4: New file.
48136
48137         Module xstrtoimax.
48138         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
48139         jm_AC_PREREQ_XSTRTOIMAX.
48140         Moved the strtol prerequisites to strtol.m4.
48141         Moved the strtoll prerequisites to strtoll.m4.
48142         Moved the strtoimax prerequisites to strtoimax.m4.
48143
48144         Module xstrtoumax.
48145         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
48146         jm_AC_PREREQ_XSTRTOUMAX.
48147         Moved the strtoul prerequisites to strtoul.m4.
48148         Moved the strtoull prerequisites to strtoull.m4.
48149         Moved the strtoumax prerequisites to strtoumax.m4.
48150
48151         Module chown.
48152         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
48153         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
48154
48155         Module dup2.
48156         * m4/dup2.m4: New file.
48157
48158         Module ftruncate.
48159         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
48160         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
48161
48162         Module getgroups.
48163         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
48164         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
48165
48166         Module gettimeofday.
48167         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
48168         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
48169         gl_PREREQ_GETTIMEOFDAY.
48170
48171         Module mkdir.
48172         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
48173         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
48174
48175         Module mkstemp.
48176         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
48177         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
48178         jm_AC_TYPE_UINTMAX_T.
48179         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
48180
48181         Module stat.
48182         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
48183         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
48184
48185         Module lstat.
48186         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
48187         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
48188
48189         Module timespec.
48190         * m4/timespec.m4 (gl_TIMESPEC): New macro.
48191         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
48192         * m4/st_mtim.m4: Indentation.
48193
48194         Module nanosleep.
48195         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
48196         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
48197         gl_PREREQ_NANOSLEEP.
48198
48199         Module regex.
48200         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
48201         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
48202         (gl_REGEX): New macro.
48203
48204         Module rename.
48205         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
48206         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
48207
48208         Module rmdir.
48209         * m4/rmdir.m4: New file.
48210
48211         Module utime.
48212         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
48213         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
48214         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
48215
48216         Module dirname.
48217         * m4/dirname.m4: New file.
48218
48219         Module getopt.
48220         * m4/getopt.m4: New file.
48221
48222         Module unistd-safer.
48223         * m4/unistd-safer.m4: New file.
48224
48225         Module fnmatch.
48226         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
48227         declaration.
48228         (gl_PREREQ_FNMATCH_EXTRA): New macro.
48229         (gl_FUNC_FNMATCH_POSIX): New macro.
48230         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
48231         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
48232         simply fnmatch.
48233
48234         Module exclude.
48235         * m4/exclude.m4: New file.
48236
48237         Module human.
48238         * m4/human.m4: New file.
48239
48240         Module acl.
48241         * m4/acl.m4: Nop.
48242
48243         Module backupfile.
48244         * m4/backupfile.m4: New file.
48245         * m4/d-ino.m4: Indentation.
48246
48247         Module fsusage.
48248         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
48249         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
48250         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
48251
48252         Module dirfd.
48253         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
48254         requirements.
48255
48256         Module euidaccess.
48257         * m4/euidaccess.m4: New file.
48258
48259         Module file-type.
48260         * m4/file-type.m4: New file.
48261
48262         Module fileblocks.
48263         * m4/fileblocks.m4: New file.
48264
48265         Module filemode.
48266         * m4/filemode.m4: New file.
48267
48268         Module isdir.
48269         * m4/isdir.m4: New file.
48270
48271         Module lchown.
48272         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
48273         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
48274
48275         Module makepath.
48276         * m4/makepath.m4: New file.
48277
48278         Module modechange.
48279         * m4/modechange.m4: New file.
48280
48281         Module mountlist.
48282         * m4/mountlist.m4: New file.
48283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
48284         Indentation.
48285
48286         Module path-concat.
48287         * m4/path-concat.m4: New file.
48288
48289         Module pathmax.
48290         * m4/pathmax.m4: New file.
48291
48292         Module same.
48293         * m4/same.m4: New file.
48294
48295         Module save-cwd.
48296         * m4/save-cwd.m4: New file.
48297
48298         Module savedir.
48299         * m4/savedir.m4: New file.
48300
48301         Module xgetcwd.
48302         * m4/xgetcwd.m4: New file.
48303         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
48304
48305         Module xreadlink.
48306         * m4/xreadlink.m4: New file.
48307
48308         Module safe-read.
48309         * m4/safe-read.m4: New file.
48310
48311         Module safe-write.
48312         * m4/safe-write.m4: New file.
48313
48314         Module closeout.
48315         * m4/closeout.m4: New file.
48316
48317         Module stdio-safer.
48318         * m4/stdio-safer.m4: New file.
48319
48320         Module getpass.
48321         * m4/getpass.m4: New file.
48322
48323         Module getugroups.
48324         * m4/getugroups.m4: New file.
48325
48326         Module group-member.
48327         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
48328         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
48329
48330         Module idcache.
48331         * m4/idcache.m4: New file.
48332
48333         Module userspec.
48334         * m4/userspec.m4: New file.
48335
48336         Module gettime.
48337         * m4/clock_time.m4: New file.
48338         * m4/gettime.m4: New file.
48339
48340         Module settime.
48341         * m4/settime.m4: New file.
48342
48343         Module posixtm.
48344         * m4/posixtm.m4: New file.
48345
48346         Module gethostname.
48347         * m4/gethostname.m4: New file.
48348
48349         Module canon-host.
48350         * m4/canon-host.m4: New file.
48351
48352         Module gettext.
48353         * m4/codeset.m4: New file, from gettext-0.11.5.
48354         * m4/gettext.m4: New file, from gettext-0.11.5.
48355         * m4/glibc21.m4: New file, from gettext-0.11.5.
48356         * m4/iconv.m4: New file, from gettext-0.11.5.
48357         * m4/intdiv0.m4: New file, from gettext-0.11.5.
48358         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
48359         * m4/inttypes.m4: New file, from gettext-0.11.5.
48360         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
48361         * m4/isc-posix.m4: New file, from gettext-0.11.5.
48362         * m4/lcmessage.m4: New file, from gettext-0.11.5.
48363         * m4/lib-ld.m4: New file, from gettext-0.11.5.
48364         * m4/lib-link.m4: New file, from gettext-0.11.5.
48365         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
48366         * m4/progtest.m4: New file, from gettext-0.11.5.
48367         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
48368         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
48369         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
48370
48371         Module localcharset.
48372         * m4/localcharset.m4: New file.
48373
48374         Module hard-locale.
48375         * m4/hard-locale.m4: New file.
48376
48377         Module mbswidth.
48378         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
48379         onceonly macros.
48380         * m4/mbrtowc.m4: Add comment.
48381
48382         Module memcasecmp.
48383         * m4/memcasecmp.m4: New file.
48384
48385         Module memcoll.
48386         * m4/memcoll.m4: New file.
48387
48388         Module unicodeio.
48389         * m4/unicodeio.m4: New file.
48390
48391         Module rpmatch.
48392         * m4/rpmatch.m4: New file.
48393
48394         Module yesno.
48395         * m4/yesno.m4: New file.
48396
48397         Module exitfail.
48398         * m4/exitfail.m4: New file.
48399
48400         Module c-stack.
48401         * m4/c-stack.m4 (gl_C_STACK): New macro.
48402         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
48403
48404         Module error.
48405         * m4/error.m4 (gl_ERROR): New macro.
48406         (jm_PREREQ_ERROR): Use onceonly macros.
48407
48408         Module fatal.
48409         * m4/fatal.m4: New file.
48410
48411         Module getloadavg.
48412         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
48413         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
48414
48415         Module getpagesize.
48416         * m4/getpagesize.m4: New file.
48417
48418         Module getusershell.
48419         * m4/getusershell.m4: New file.
48420
48421         Module physmem.
48422         * m4/physmem.m4: New file.
48423
48424         Module posixver.
48425         * m4/posixver.m4: New file.
48426
48427         Module quotearg.
48428         * m4/quotearg.m4: New file.
48429
48430         Module quote.
48431         * m4/quote.m4: New file.
48432
48433         Module readutmp.
48434         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
48435
48436         Module sig2str.
48437         * m4/sig2str.m4: New file.
48438
48439         Other.
48440         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
48441         ulonglong.m4.
48442         * m4/intmax_t.m4: New file.
48443         * m4/d-type.m4: Indentation.
48444         * m4/jm-macros.m4: Update.
48445         * m4/prereq.m4 (jm_PREREQ): Update.
48446         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
48447         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
48448         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
48449         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
48450         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
48451         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
48452         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
48453         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
48454         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
48455         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
48456         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
48457         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
48458         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
48459         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
48460         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
48461         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
48462         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
48463         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
48464         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
48465
48466 2002-12-24  Bruno Haible  <bruno@clisp.org>
48467
48468         * MODULES.txt: Update according to m4/ changes.
48469
48470         Module gettext.
48471         * config.rpath: New file, from gettext-0.11.5.
48472
48473         * modules/*: New module descriptions.
48474         * gnulib-tool: New file.
48475         * MODULES.html.sh: New file.
48476
48477 2002-12-21  Karl Berry  <karl@gnu.org>
48478
48479         * doc/fdl.texi: update to version 1.2.
48480
48481 2002-12-19  Karl Berry  <karl@gnu.org>
48482
48483         * config/config.guess: update from prep.
48484
48485 2002-12-18  Bruno Haible  <bruno@clisp.org>
48486
48487         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
48488         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
48489
48490 2002-12-17  Bruno Haible  <bruno@clisp.org>
48491
48492         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
48493         stdlib.h, string.h.
48494
48495 2002-12-17  Bruno Haible  <bruno@clisp.org>
48496
48497         * lib/canon-host.c (strdup): Remove unused declaration.
48498
48499         * lib/fsusage.c: Include full_read.h.
48500         (get_fs_usage): Use full_read instead of safe_read.
48501
48502         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
48503
48504 2002-12-12  Karl Berry  <karl@gnu.org>
48505
48506         * config/config.guess: update from prep.
48507
48508 2002-12-11  Bruno Haible  <bruno@clisp.org>
48509
48510         * m4/setenv.m4: New file, from gettext-0.11.5.
48511
48512 2002-12-11  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
48515         not unsetenv().
48516         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
48517         modifications:
48518
48519         2002-12-11  Bruno Haible  <bruno@clisp.org>
48520
48521                 * setenv.c (alloca): Fall back to malloc.
48522                 (freea): New macro.
48523                 (setenv): Use freea() to free memory allocated with alloca().
48524
48525         2002-11-13  Bruno Haible  <bruno@clisp.org>
48526
48527                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
48528                 function declarations.
48529                 * unsetenv.c (unsetenv): Likewise.
48530
48531         2002-03-04  Bruno Haible  <bruno@clisp.org>
48532
48533                 Portability to AIX 4.3.3.
48534                 * unsetenv.c: New file, extracted from setenv.c.
48535                 * setenv.c: Move the unsetenv() function to unsetenv.c.
48536
48537         2001-12-20  Bruno Haible  <bruno@clisp.org>
48538
48539                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
48540                 use malloc instead. For SunOS 4.
48541
48542         2001-12-11  Bruno Haible  <bruno@clisp.org>
48543
48544                 * setenv.c: Declare alloca.
48545                 (compar_fn_t): New typedef.
48546                 (KNOWN_VALUE, STORE_VALUE): Use it.
48547
48548         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
48549         setenv.h.
48550
48551 2002-12-10  Paul Eggert  <eggert@twinsun.com>
48552
48553         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
48554         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
48555         Choose values that are less likely to collide with system fnmatch
48556         options.
48557         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
48558         defined (e.g., a pure POSIX system).
48559         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
48560         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
48561
48562 2002-12-06  Paul Eggert  <eggert@twinsun.com>
48563
48564         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
48565         a pain in practice to deal with generated m4 files.  This change
48566         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
48567
48568         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
48569         and jm-glibc-io.m4, as they are no longer a special case.
48570         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
48571         kludge and the auto-generation stuff.  Check only whether the
48572         functions are declared, not whether they exist, since older hosts
48573         that don't declare the functions can't use the optimization anyway.
48574
48575 2002-12-06  Jim Meyering  <jim@meyering.net>
48576
48577         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
48578
48579         Merge in changes from libc's misc/error.c, in preparation
48580         for the merge of gnulib's changes back into libc.
48581
48582         * lib/error.c (_): Define only if not already defined.
48583         Move definition to follow all #include directives.
48584         Include unlocked-io.h only if !_LIBC.
48585         [_LIBC]: Include <libio/libioP.h>.
48586         [USE_IN_LIBIO]: Include <libio/iolibio.h>
48587         (fflush): Tweak definition to use INTUSE.
48588         (putc): Define.
48589
48590 2002-12-05  Paul Eggert  <eggert@twinsun.com>
48591
48592         * lib/alloca.c [defined emacs]: Include "lisp.h".
48593         (xalloc_die) [defined emacs]: New macro.
48594         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
48595         [! defined emacs]: Include <xalloc.h>.
48596         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
48597         (pointer): Typedef to POINTER_TYPE *.
48598         (malloc): Remove decl; we now always use xmalloc.
48599         (alloca): Use old-style definition, since Emacs needs this.
48600         Check for arithmetic overflow when computing combined size.
48601
48602 2002-12-04  Paul Eggert  <eggert@twinsun.com>
48603
48604         Do not generate unlocked-io.h automatically, since it's easier to
48605         maintain it by hand.
48606
48607         * lib/unlocked-io.h: New file, from GNU diffutils,
48608         but with proper copyright notice and attribution.
48609         * lib/gen-uio: Remove.
48610         * lib/Makefile.am: Add copyright notice.
48611         (libfetish_a_SOURCES): Add unlocked-io.h.
48612         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
48613         (DISTCLEANFILES, io_functions): Remove macros.
48614         (EXTRA_DIST): Remove gen_uio.
48615         (unlocked-io.h): Remove rule.
48616
48617 2002-12-04  Jim Meyering  <jim@meyering.net>
48618
48619         Reflect the fact that stat.c and lstat.c are no longer generated.
48620         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
48621         (DISTCLEANFILES): Likewise.
48622         (EXTRA_DIST): Likewise.
48623         (all_local): Don't depend on stat.c or lstat.c.
48624         (stat.c, lstat.c): Remove rules.
48625         (EXTRA_DIST): Remove xstat.in.
48626
48627         * lib/xstat.in: Remove file.  Contents moved into stat.c.
48628         * lib/stat.c: New file.  Contents mostly from xstat.in.
48629         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
48630         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
48631
48632         * lib/safe-read.c: Rework so that it may serve to define safe_write,
48633         too.
48634         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
48635
48636 2002-12-03  Jim Meyering  <jim@meyering.net>
48637
48638         * lib/safe-read.c, safe-write.c: Change variable names and comments,
48639         but not semantics, to minimize the differences between these two files.
48640         (safe_read): Change comment to mention SAFE_READ_ERROR.
48641
48642         * lib/safe-read.c (IS_EINTR): Define.
48643         (safe_read): Use IS_EINTR in place of in-function cpp directives.
48644
48645 2002-12-02  Jim Meyering  <jim@meyering.net>
48646
48647         * lib/safe-read.c (EINTR): Define.
48648         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48649         (INT_MAX): Provide fallback.
48650         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
48651
48652         * lib/safe-read.h (SAFE_READ_ERROR): Define.
48653
48654 2002-12-02  Bruno Haible  <bruno@clisp.org>
48655
48656         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
48657         Define, taken from safe-read.c.
48658         (INT_MAX): Provide fallback.
48659         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
48660         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
48661
48662         * lib/safe-read.c (EINTR): Remove definition.
48663         (safe_read): Don't use EINTR if it is absent.
48664
48665 2002-12-01  Jim Meyering  <jim@meyering.net>
48666
48667         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
48668         zero.
48669         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
48670
48671 2002-11-27  Paul Eggert  <eggert@twinsun.com>
48672
48673         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
48674         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
48675         with `if (! (value < limit)) abort ();', for readability.
48676
48677 2002-11-26  Karl Berry  <karl@gnu.org>
48678
48679         * lib/strdup.c: copy from libc again, with jim's ok.
48680         * lib/.cppi-disable: re-add strdup.c
48681
48682 2002-11-25  Karl Berry  <karl@gnu.org>
48683
48684         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
48685         instead of "strtol.c".
48686
48687 2002-11-25  Karl Berry  <karl@gnu.org>
48688
48689         * config/install-sh: update from automake for variable quoting, $0 in
48690         error msgs, etc.
48691
48692         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
48693         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
48694         entry.
48695
48696 2002-11-25  Jim Meyering  <jim@meyering.net>
48697
48698         * lib/mktime.c: Sync from libc, now that it has the latest fix.
48699
48700 2002-11-24  Karl Berry  <karl@gnu.org>
48701
48702         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
48703         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
48704
48705 2002-11-24  Jim Meyering  <jim@meyering.net>
48706
48707         Update from coreutils:
48708
48709         * lib/mktime.c: Merge in changes from libc.
48710
48711         Avoid a link-time failure on some Linux systems.
48712         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
48713         (otherwise).
48714         (__mon_yday): Declare with the STATIC attribute.
48715         (__mktime_internal): Likewise.
48716         Based on a report from Greg Schafer.
48717
48718 2002-11-23  Jim Meyering  <jim@meyering.net>
48719
48720         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
48721         Use `unsigned', not `int', as type of index.
48722
48723         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
48724
48725         * lib/fsusage.c: Remove unneeded parentheses around operands of
48726         `defined'.
48727
48728 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48729
48730         * lib/quotearg.h: Allow multiple inclusion by surrounding with
48731         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
48732         so that we can be included first.
48733         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
48734         * lib/quotearg.c: Include quotearg.h immediately after config.h.
48735         No need to include stddef.h or sys/types.h any more.
48736         Surround local include files with "", not "<>".
48737         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
48738         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
48739         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
48740         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
48741         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
48742         (ISPRINT): Remove; no longer needed now that we assume C89.
48743
48744         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
48745         Preserve errno.
48746
48747         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
48748         quotearg_char): Use SIZE_MAX rather than
48749         (size_t) -1 when we are talking about "infinity".
48750
48751         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
48752
48753 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48754
48755         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
48756         hint that one should use `if (! x) abort ();' rather than `assert
48757         (x);', and anyway it's one less thing to worry about configuring.
48758         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
48759         hash_rehash, hash_insert): Use abort rather than assert.
48760
48761 2002-11-22  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/safe-read.h: Assume C89. Add comments.
48764         (safe_read): Change return type to size_t.
48765         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
48766         byte counts > SSIZE_MAX correctly.
48767         * lib/safe-write.h: New file.
48768         * lib/safe-write.c: New file.
48769         * lib/full-read.h: New file.
48770         * lib/full-read.c: New file.
48771         * lib/full-write.h: Assume C89. Add comments.
48772         * lib/full-write.c: Include safe-write.h.
48773         (full_write): Rewritten to use safe_write.
48774         Suggested by Jim Meyering and Paul Eggert.
48775
48776 2002-11-21  Jim Meyering  <jim@meyering.net>
48777
48778         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
48779
48780         Merge in changes from the coreutils.
48781
48782         2002-09-25  Paul Eggert  <eggert@twinsun.com>
48783         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
48784         <stdint.h>.
48785         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
48786         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
48787         int.  Work more efficiently if X is the same width as uintmax_t.
48788         Do not compare X to -1, to avoid bogus compiler warning.
48789         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
48790         Don't assume that f_frsize and f_bsize are the same type.
48791
48792         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
48793         warning on FreeBSD.
48794
48795         * lib/makepath.c (make_path): Restore umask *before* creating the final
48796         component.
48797         (make_path): Minor reformatting.
48798
48799         * lib/xmalloc.c: Adjust to work with new autoconf macros,
48800         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
48801         HAVE_MALLOC/HAVE_REALLOC.
48802
48803         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
48804         dummy ones.  At least on GNU/Linux systems, `auto' means something
48805         else.
48806         From Michael Stone.
48807
48808 2002-11-21  Bruno Haible  <bruno@clisp.org>
48809
48810         Remove case insensitive option matching.
48811         * lib/argmatch.h (argcasematch): Remove declaration.
48812         (ARGCASEMATCH): Remove macro.
48813         (__xargmatch_internal): Remove case_sensitive argument.
48814         (XARGMATCH): Update.
48815         (XARGCASEMATCH): Remove macro.
48816         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
48817         case_sensitive argument.
48818         (argcasematch): Remove function.
48819         (__xargmatch_internal): Remove case_sensitive argument.
48820         (main): Use XARGMATCH instead of XARGCASEMATCH.
48821
48822         * lib/xmalloc.c: Change compile-time error message. Add comment about
48823         required autoconf version.
48824
48825 2002-11-20  Paul Eggert  <eggert@twinsun.com>
48826
48827         Merge argmatch cleanups from Bison.  Assume C89.
48828
48829         * lib/argmatch.c: Include config.h here, not in argmatch.h.
48830         Include stdlib.h, for EXIT_FAILURE.
48831         Always include <string.h>, since we assume C89.
48832         (EXIT_FAILURE): Remove pre-C89 bug workaround.
48833         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
48834         Include <stddef.h> instead, since it's all we need for size_t.
48835         (PARAMS): Remove.  All uses removed.
48836         (ARRAY_CARDINALITY): Do not bother to #undef.
48837         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
48838         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48839         Remove unnecessary parentheses.
48840         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48841         Insert necessary parentheses.
48842         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
48843         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
48844
48845 2002-11-19  Bruno Haible  <bruno@clisp.org>
48846
48847         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
48848         * lib/mbswidth.h: Include <stddef.h>, for size_t.
48849
48850         * lib/mbswidth.h (PARAMS): Remove macro.
48851         (mbswidth, mbsnwidth): Use ANSI C function declarations.
48852         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
48853
48854         * lib/gcd.h (PARAMS): Remove macro.
48855         (gcd): Use ANSI C function declarations.
48856         * lib/gcd.c (gcd): Likewise.
48857
48858 2002-11-15  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/strcspn.c: Include <stddef.h>.
48861         (strcspn): Use ANSI C function declaration. Change return type to
48862         size_t. Use NULL.
48863         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
48864         (strpbrk): Use NULL.
48865         * lib/strpbrk.h (PARAMS): Remove macro.
48866         (strpbrk): Use ANSI C function declaration.
48867         * lib/strstr.c: Don't include <sys/types.h>.
48868         * lib/strstr.h (PARAMS): Remove macro.
48869         (strstr): Use ANSI C function declarations.
48870
48871 2002-11-14  Karl Berry  <karl@gnu.org>
48872
48873         * config/mkinstalldirs: `do' on separate line, instead of
48874         `for var; do'.
48875
48876 2002-11-06  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
48879         * lib/gcd.c (gcd): Likewise.
48880
48881 2002-11-05  Bruno Haible  <bruno@clisp.org>
48882
48883         * lib/gcd.h: New file, from gettext-0.11.5.
48884         * lib/gcd.c: New file, from gettext-0.11.5.
48885
48886 2002-11-05  Bruno Haible  <bruno@clisp.org>
48887
48888         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48889         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48890         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48891         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
48892
48893         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
48894         <libintl.h>.
48895         * lib/makepath.c: Include gettext.h instead of <locale.h> and
48896         <libintl.h>.
48897
48898         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
48899         * lib/human.c: Include gettext.h instead of <libintl.h>.
48900         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
48901         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
48902         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
48903         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
48904         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
48905         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
48906         (textdomain): Remove definition.
48907         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
48908
48909         * lib/long-options.c: Remove include of <libintl.h> and definition of
48910         _.
48911         * lib/same.c: Remove include of <libintl.h> and definition of _.
48912
48913 2002-11-04  Owen Taylor  <otaylor@redhat.com>
48914
48915         * lib/config.charset: A few additions for Solaris.
48916
48917 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48918
48919         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
48920         * lib/localcharset.c (locale_charset): Declare as extern "C".
48921
48922 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
48923
48924         * lib/config.charset: msdos in uk_UA uses CP1125.
48925
48926 2002-11-04  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
48929         * lib/strcase.h: New file, from GNU gettext-0.11.5.
48930         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
48931         * lib/strstr.h: New file, from GNU gettext-0.11.5.
48932         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
48933
48934 2002-11-04  Bruno Haible  <bruno@clisp.org>
48935
48936         * lib/localcharset.c (locale_charset): Don't return an empty string.
48937
48938 2002-11-04  Bruno Haible  <bruno@clisp.org>
48939
48940         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
48941         aliases.
48942
48943 2002-11-04  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/config.charset: Update for newest glibc. Add canonical names
48946         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
48947
48948 2002-11-04  Bruno Haible  <bruno@clisp.org>
48949
48950         * lib/config.charset: Add support for NetBSD.
48951
48952 2002-11-04  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
48955
48956 2002-11-01  Bruno Haible  <bruno@clisp.org>
48957
48958         * configure.in: Add AC_CONFIG_AUX_DIR call.
48959         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
48960         test/Makefile.
48961         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
48962
48963 2002-09-28  Karl Berry  <karl@gnu.org>
48964
48965         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
48966         installed automake until the next release, since changes have been
48967         made.
48968
48969 2002-09-25  Karl Berry  <karl@gnu.org>
48970
48971         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
48972         * lib/getopt*: copy from libc/posix.
48973         * lib/gettext.h: copy from gettext.
48974         * lib/.cppi-disable: add strdup.c, gettext.h.
48975
48976 2002-09-25  Karl Berry  <karl@gnu.org>
48977
48978         * config/srclist.txt: enable gettext.h check.
48979         * config/config.{guess,sub}: update from prep.
48980         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
48981                 from automake 1.6.3.
48982         See srclist*.
48983
48984 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
48985
48986         * regex.c (PATFETCH): Remove the translating fetch.
48987         (PATFETCH_RAW): Rename to PATFETCH.
48988         (set_image_of_range): New fun.
48989         (SET_RANGE_TABLE_WORK_AREA): Use it.
48990         (regex_compile): Don't translate the pattern chars so eagerly.
48991         Only do it when inserting an `exactn' bytecode or when handling
48992         a char-range.
48993         (mutually_exclusive_p): Avoid empty statement.
48994
48995 2002-07-06  Jim Meyering  <meyering@lucent.com>
48996
48997         * m4/README: Don't mention Makefile.am.in.
48998         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
48999
49000 2002-07-01  Jim Meyering  <meyering@lucent.com>
49001
49002         * lib/c-stack.c: Include sys/time.h.
49003         From Volker Borchert.
49004
49005 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49006
49007         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
49008
49009 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49010
49011         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
49012         New macro.  Use it uniformly instead of
49013         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
49014         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
49015         reported by Vin Shelton.
49016
49017 2002-06-22  Paul Eggert  <eggert@twinsun.com>
49018
49019         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
49020         Do not assume SA_SIGINFO behavior.
49021         Bug reported by Jim Meyering on NetBSD 1.5.2.
49022
49023 2002-06-22  Jim Meyering  <meyering@lucent.com>
49024
49025         * m4/c-stack.m4: New file, from diffutils-2.8.2.
49026         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
49027
49028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
49029         now that configure.ac uses AC_GNU_SOURCE.
49030         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
49031         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
49032
49033         Update to latest tools.  Suggestions from Paul Eggert.
49034         * m4/stdbool.m4: New file, from diffutils-2.8.2.
49035         * m4/gnu-source.m4: Update from diffutils-2.8.2.
49036         * m4/fnmatch.m4: Likewise.
49037         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
49038         to AC_HEADER_STDBOOL
49039
49040 2002-06-22  Jim Meyering  <meyering@lucent.com>
49041
49042         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
49043         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
49044
49045 2002-06-22  Jim Meyering  <meyering@lucent.com>
49046
49047         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
49048
49049         * lib/exitfail.c, exitfail.h: Likewise.
49050         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
49051
49052         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
49053         of fnmatch.h.
49054         (EXTRA_DIST): Add fnmatch_loop.c.
49055         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
49056
49057         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
49058         * lib/fnmatch.c: Update from diffutils-2.8.2.
49059         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
49060         * lib/fnmatch.h: Remove file.
49061
49062 2002-06-21  Jim Meyering  <meyering@lucent.com>
49063
49064         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
49065         * m4/mbrtowc.m4: Likewise.
49066
49067         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
49068         * m4/mbswidth.m4: Reflect name change:
49069         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
49070         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
49071
49072         * m4/lib-link.m4: Update from gettext-0.11.2.
49073         * m4/gettext.m4: Likewise.
49074
49075         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
49076         From Alfred M. Szmidt.
49077
49078 2002-06-18  Paul Eggert  <eggert@twinsun.com>
49079
49080         * lib/file-type.h: Report an error if neither S_ISREG nor
49081         S_IFREG is defined, instead of using a test specific to glibc
49082         2.2.  This should be safe, since POSIX requires S_ISREG and
49083         Unix Version 7 had S_IFREG.  We don't need to check for
49084         <sys/types.h> since we don't use any symbols that it defines.
49085
49086 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
49087
49088         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
49089         $@-t, so that each temporary file name is unique and valid in the first
49090         8 characters, for operation under DOS.
49091
49092 2002-06-15  Paul Eggert  <eggert@twinsun.com>
49093
49094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
49095
49096 2002-06-15  Jim Meyering  <meyering@lucent.com>
49097
49098         Work even with DJGPP 2.03, which lacks support for symlinks.
49099         From Richard Dawe.
49100         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
49101         is defined.
49102         * lib/lchown.c (S_ISLNK): Likewise.
49103
49104 2002-06-15  Jim Meyering  <meyering@lucent.com>
49105
49106         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
49107         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
49108         have been included before this file.
49109
49110 2002-06-14  Jim Meyering  <meyering@lucent.com>
49111
49112         * lib/file-type.h: Use the version from diffutils-2.8.2.
49113         * lib/file-type.c: Likewise.
49114
49115 2002-06-07  Jim Meyering  <meyering@lucent.com>
49116
49117         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
49118         They're needed at least for NetBSD 1.5.2.
49119         ($statxfs_includes): Include those same headers.
49120         ($statxfs_includes): Include sys/vfs.h if available.
49121         ($statxfs_includes): Likewise for sys/statvfs.h.
49122         Check for the following members in both structs statfs and statvfs:
49123         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
49124
49125 2002-06-01  Jim Meyering  <meyering@lucent.com>
49126
49127         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
49128         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
49129
49130 2002-05-28  Jim Meyering  <meyering@lucent.com>
49131
49132         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
49133         Reported by Volker Borchert.
49134
49135 2002-05-27  Jim Meyering  <meyering@lucent.com>
49136
49137         Fix a problem seen only on nonconforming systems whereby ls.c's
49138         use of localtime, and then of gettimeofday would cause trouble:
49139         the localtime call used to initialize rpl_gettimeofday's save
49140         mechanism would clobber ls's current local time information so
49141         that in any long listing the first file would always be listed
49142         with date 1970-01-01.  Analysis by Volker Borchert.
49143
49144         * lib/gettimeofday.c (localtime): Undefine.
49145         (rpl_localtime): New function.
49146
49147 2002-05-27  Jim Meyering  <meyering@lucent.com>
49148
49149         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
49150         localtime.
49151
49152         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
49153         use the replacement function; it wouldn't resolve at link time.
49154         Reported by Volker Borchert.
49155
49156 2002-05-22  Jim Meyering  <meyering@lucent.com>
49157
49158         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
49159         file-type.h.
49160         * lib/file-type.h: New file.
49161         * lib/file-type.c (file_type): New file/function.  Extracted from
49162         diffutils.
49163
49164 2002-04-30  Jim Meyering  <meyering@lucent.com>
49165
49166         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
49167
49168 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49169
49170         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
49171
49172 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49173
49174         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
49175         Do not check for alloca.h (no longer used) or stdbool.h (was never
49176         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
49177
49178 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49179
49180         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
49181
49182 2002-04-29  Jim Meyering  <meyering@lucent.com>
49183
49184         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
49185         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
49186         Use AC_FUNC_STRNLEN here instead.
49187
49188         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
49189         With autoconf-2.53a, it's part of AC_PROG_CC.
49190
49191 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49192
49193         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
49194         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
49195
49196 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49197
49198         * lib/sig2str.h, lib/sig2str.c: New files.
49199         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
49200
49201 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49202
49203         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
49204         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
49205         of 127, since 64 is the largest conceivable number for ancient
49206         nonstandard hosts.
49207         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
49208
49209 2002-04-28  Jim Meyering  <meyering@lucent.com>
49210
49211         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
49212
49213 2002-04-24  Jim Meyering  <meyering@lucent.com>
49214
49215         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
49216         (jm_PREREQ): Use it.
49217
49218         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
49219         mach/mach.h fcntl.h.
49220         Check for this function: setlocale.
49221
49222 2002-04-24  Jim Meyering  <meyering@lucent.com>
49223
49224         * lib/gettext.h: New file, from Gettext.
49225         * lib/Makefile.am (INCLUDES): Remove -I../intl.
49226         (libfetish_a_SOURCES): Add gettext.h.
49227
49228 2002-04-16  Jim Meyering  <meyering@lucent.com>
49229
49230         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
49231         ut_pid, ut_id, ut_exit.
49232
49233 2002-04-16  Jim Meyering  <meyering@lucent.com>
49234
49235         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
49236         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
49237         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
49238
49239 2002-04-12  Jim Meyering  <meyering@lucent.com>
49240
49241         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
49242         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
49243         existence of the getmntinfo function.  Needed for Darwin 5.3.
49244
49245         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
49246         This is necessary at least on Darwin 5.3.
49247
49248         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
49249         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
49250         strnlen.o in the library, and that makes some versions of ranlib
49251         object.
49252
49253 2002-04-12  Jim Meyering  <meyering@lucent.com>
49254
49255         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
49256
49257 2002-04-09  Jim Meyering  <meyering@lucent.com>
49258
49259         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
49260         to be more precise.  Rather than saying we're checking whether the
49261         function `works', say what we're testing.
49262         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
49263         Reported by Bruno Haible.
49264
49265 2002-03-10  Jim Meyering  <meyering@lucent.com>
49266
49267         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
49268         Suggestion from Santiago Vila.
49269
49270 2002-03-08  Jim Meyering  <meyering@lucent.com>
49271
49272         * lib/rename.c: Mention that this wrapper is needed also on
49273         mips-dec-ultrix4.4 systems.
49274
49275 2002-03-02  Jim Meyering  <meyering@lucent.com>
49276
49277         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
49278         not HAVE_CLOCK_SETTIME.
49279
49280 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49281
49282         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
49283         Check for clock_settime.
49284
49285 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49286
49287         * lib/nanosleep.h: Rename to....
49288         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
49289
49290         * lib/gettime.c: New file.
49291         * lib/settime.c: New file.
49292         * lib/stime.c: Remove.
49293
49294         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
49295         timespec.h.  Remove nanosleep.h.
49296
49297 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49298
49299         * m4/acl.m4: New file.
49300         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
49301         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
49302
49303 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49304
49305         * lib/acl.c, lib/acl.h: New files.
49306         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
49307
49308 2002-02-24  Jim Meyering  <meyering@lucent.com>
49309
49310         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
49311         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
49312         cause trouble.  Reported by Nelson Beebe.
49313
49314 2002-02-23  Paul Eggert  <eggert@twinsun.com>
49315
49316         * lib/path-concat.c (xpath_concat): Reorder code to pacify
49317         compilers that don't know that xalloc_die never returns.
49318
49319 2002-02-20  Jim Meyering  <meyering@lucent.com>
49320
49321         * lib/getdate.c: Regenerate using bison-1.33.
49322
49323 2002-02-17  Jim Meyering  <meyering@lucent.com>
49324
49325         * config/config.guess (main): Don't use `head -1'; it's no longer
49326         portable. Use `sed 1q' instead.
49327
49328 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
49329
49330         * m4/codeset.m4: Upgrade to gettext-0.11.
49331         * m4/gettext.m4: Upgrade to gettext-0.11.
49332         * m4/glibc21.m4: Upgrade to gettext-0.11.
49333         * m4/iconv.m4: Upgrade to gettext-0.11.
49334         * m4/isc-posix.m4: Upgrade to gettext-0.11.
49335         * m4/lcmessage.m4: Upgrade to gettext-0.11.
49336         * m4/lib-ld.m4: New file, from gettext-0.11.
49337         * m4/lib-link.m4: New file, from gettext-0.11.
49338         * m4/lib-prefix.m4: New file, from gettext-0.11.
49339         * m4/progtest.m4: Upgrade to gettext-0.11.
49340
49341 2002-02-15  Paul Eggert  <eggert@twinsun.com>
49342
49343         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
49344         (jm_PREREQ): Use it.
49345
49346 2002-02-15  Paul Eggert  <eggert@twinsun.com>
49347
49348         * lib/posixver.c, lib/posixver.h: New files.
49349         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
49350
49351 2002-02-02  Paul Eggert  <eggert@twinsun.com>
49352             Bruno Haible  <bruno@clisp.org>
49353
49354         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
49355         (fwrite_success_callback): New declaration.
49356         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
49357         print_unicode_char. Call failure callback instead of error.
49358         (fwrite_success_callback): New function.
49359         (exit_failure_callback): New function.
49360         (fallback_failure_callback): New function.
49361         (print_unicode_char): Call unicode_to_mb.
49362
49363 2002-01-26  Jim Meyering  <meyering@lucent.com>
49364
49365         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
49366         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
49367
49368 2002-01-26  Jim Meyering  <meyering@lucent.com>
49369
49370         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
49371
49372 2002-01-22  Paul Eggert  <eggert@twinsun.com>
49373
49374         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
49375
49376 2002-01-22  Jim Meyering  <meyering@lucent.com>
49377
49378         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
49379         Otherwise, some versions of automake would omit the rule that makes
49380         Makefile from Makefile.in.
49381
49382 2002-01-21  Paul Eggert  <eggert@twinsun.com>
49383
49384         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
49385         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
49386         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
49387         (memcoll): Set errno to zero if there is no error.
49388
49389         * lib/quotearg.c (quotearg_buffer_restyled):
49390         Fix bug with quoting buffers containing NUL when backslashing escapes.
49391         This bug was exposed by the other changes in this patch.
49392         (quotearg_n_options): New arg ARGSIZE.
49393         All callers changed.
49394         (quoting_options_from_style): New function.
49395         (quotearg_n_style): Use it.
49396         (quotearg_n_style_mem): New function.
49397
49398         * lib/quotearg.h (quotearg_n_style_mem): New function.
49399
49400 2002-01-19  Jim Meyering  <meyering@lucent.com>
49401
49402         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
49403         Remove useless quotes: DF_PROG="df".
49404         * m4/strnlen.m4: New file.
49405
49406 2002-01-16  Paul Eggert  <eggert@twinsun.com>
49407
49408         * lib/backupfile.c (ISDIGIT): Comment fix.
49409         * lib/getdate.y (ISDIGIT): Likewise.
49410         * lib/posixtm.c (ISDIGIT, year): Likewise.
49411         * lib/strverscmp.c (ISDIGIT): Likewise.
49412         * lib/userspec.c (ISDIGIT): Likewise.
49413
49414 2002-01-16  Jim Meyering  <meyering@lucent.com>
49415
49416         * lib/getdate.y: Add three semicolons, each just before a closing
49417         brace. Bison (as of version 1.31) no longer papers over that mistake.
49418
49419 2002-01-05  Jim Meyering  <meyering@lucent.com>
49420
49421         * lib/version-etc.c (version_etc_copyright): Update copyright year.
49422
49423 2001-12-19  Paul Eggert  <eggert@twinsun.com>
49424
49425         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
49426         not silently exit merely because the output buffer happens to
49427         have nothing pending.
49428
49429 2001-12-18  Paul Eggert  <eggert@twinsun.com>
49430
49431         See the big note in ../ChangeLog.
49432         * lib/human.c (suffixes): Prefer K to k for 1024.
49433         (generate_suffix_backwards): New function.
49434         (human_readable_inexact): Use it.
49435         * lib/xstrtol.c (__xstrtol): If there is no number but there
49436         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
49437         Accept 'K' as well as 'k'.
49438
49439 2001-12-15  Jim Meyering  <meyering@lucent.com>
49440
49441         * lib/regex.h (__restrict_arr): Update from libc.
49442
49443         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
49444         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
49445         (STREQ): Define.
49446
49447 2001-12-14  Jim Meyering  <meyering@lucent.com>
49448
49449         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
49450         Suggestion from Bruno Haible.
49451
49452 2001-12-10  Jim Meyering  <meyering@lucent.com>
49453
49454         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
49455         xrealloc, Instead, include "xalloc.h".
49456         (initbuffer): Don't cast xmalloc return value to char*.
49457         (readline): Reword comment.
49458         Don't cast xrealloc return value to char*
49459         Return NULL, not 0.
49460
49461 2001-12-09  Jim Meyering  <meyering@lucent.com>
49462
49463         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
49464         about `signed and unsigned type in conditional expression'.
49465         * lib/posixtm.c (posix_time_parse): Likewise.
49466
49467         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
49468
49469         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
49470         to avoid a pedantic warning.
49471
49472         * lib/getstr.c: Don't include assert.h.
49473         (getstr): Remove warning-evoking assertions.
49474         Return -1 if offset parameter is out of bounds.
49475         Change the type of a local from int to size_t.
49476
49477         * lib/strftime.c (my_strftime_localtime_r): Include this function
49478         definition in the `#if ! HAVE_TM_GMTOFF' block.
49479
49480         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
49481         Include xalloc.h instead.
49482
49483 2001-12-02  Jim Meyering  <meyering@lucent.com>
49484
49485         * lib/tempname.c: Don't declare getenv, thus reverting the change of
49486         2001-11-18.  It's no longer necessary, now that stdlib.h is always
49487         included.
49488
49489         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
49490         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
49491
49492 2001-11-30  Akim Demaille  <akim@epita.fr>
49493
49494         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
49495         before being defined.
49496
49497 2001-11-27  Paul Eggert  <eggert@twinsun.com>
49498
49499         * lib/quotearg.h (quotearg_n, quotearg_n_style):
49500         First arg is int, not unsigned.
49501         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
49502         (SIZE_MAX, UINT_MAX): New macros.
49503         (quotearg_n_options): Abort if N is negative.
49504         Avoid overflow check on hosts where size_t is 64 bits and int
49505         is 32 bits, as overflow is impossible there.
49506         Fix off-by-one typo that caused unnecessary reallocation.
49507
49508 2001-11-27  Jim Meyering  <meyering@lucent.com>
49509
49510         * lib/tempname.c: Merge with version from libc.
49511         * lib/regex.c: Likewise.
49512
49513         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
49514         systems for which STDC_HEADERS is 0, it was not included, resulting in
49515         a warning about an integer-to-pointer conversion problem with getenv.
49516         Reported by Volker Borchert.
49517
49518 2001-11-26  Jim Meyering  <meyering@lucent.com>
49519
49520         * lib/gtod.h: Remove file.
49521         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
49522         * lib/gettimeofday.c: Don't include gtod.h.
49523         (GTOD_init): Remove function.
49524         (rpl_gettimeofday): Do its job here instead, rather than aborting.
49525         Suggestion from Volker Borchert.
49526
49527 2001-11-23  Jim Meyering  <meyering@lucent.com>
49528
49529         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
49530         it.
49531         * lib/hash.c (struct hash_table): Define it here instead.
49532
49533 2001-11-22  Jim Meyering  <meyering@lucent.com>
49534
49535         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
49536
49537 2001-11-20  Jim Meyering  <meyering@lucent.com>
49538
49539         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
49540         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
49541
49542 2001-11-19  Jim Meyering  <meyering@lucent.com>
49543
49544         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
49545         directory.  Use "conftestXXXXXX" as the template.
49546         Suggestion from Paul Eggert.
49547
49548         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
49549         immediately, so the test doesn't mistakenly hit the max-open-files
49550         limit.
49551
49552 2001-11-18  Paul Eggert  <eggert@twinsun.com>
49553
49554         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
49555         (TEMPORARIES): New macro.
49556         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
49557         removes an artificial limitation (e.g. HP-UX 10.20, where
49558         TMP_MAX is 17576).
49559
49560 2001-11-18  Jim Meyering  <meyering@lucent.com>
49561
49562         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
49563
49564 2001-11-18  Jim Meyering  <meyering@lucent.com>
49565
49566         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
49567         on SunOS 4.
49568
49569         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
49570         files will be created before anything else.
49571
49572 2001-11-17  Paul Eggert  <eggert@twinsun.com>
49573
49574         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
49575         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
49576
49577 2001-11-17  Jim Meyering  <meyering@lucent.com>
49578
49579         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
49580         Prompted by a report from Bob Proulx.
49581
49582         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
49583         Instead, require UTILS_FUNC_MKSTEMP.
49584
49585 2001-11-17  Jim Meyering  <meyering@lucent.com>
49586
49587         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
49588         Now, that's done as part of AC_FUNC_STRTOD.
49589
49590 2001-11-17  Jim Meyering  <meyering@lucent.com>
49591
49592         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
49593         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
49594         rather than group writable.  Patch by Juan F. Codagnone.
49595
49596         * lib/readtokens.c: Remove explicit declarations of xmalloc and
49597         xrealloc, Instead, include "xalloc.h".
49598
49599         * lib/mountlist.c: Include unlocked-io.h after all system headers.
49600         Remove explicit declarations of xmalloc, xrealloc,
49601         and xstrdup.  Instead, include "xalloc.h".
49602
49603         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
49604         unlocked-io.h.
49605         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
49606         Likewise.
49607         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
49608
49609         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
49610         Reported by Padraig Brady.
49611
49612         * lib/mkstemp.c: #undef mkstemp.
49613         Include config.h.
49614         (rpl_mkstemp): Rename from mkstemp.
49615         Protoize.
49616
49617 2001-11-16  Jim Meyering  <meyering@lucent.com>
49618
49619         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
49620         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
49621         determine the amount of total physical memory, use pstat_getstatic.
49622         HPUX-11 doesn't define _SC_PHYS_PAGES.
49623         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
49624         If sysconf couldn't be used to determine the amount of available
49625         physical memory, use both pstat_getstatic and pstat_getdynamic.
49626         Based on a patch from Bob Proulx.
49627
49628 2001-11-10  Jim Meyering  <meyering@lucent.com>
49629
49630         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
49631         (jm_PREREQ): Use it.
49632
49633 2001-11-09  Jim Meyering  <meyering@lucent.com>
49634
49635         * m4/jm-macros.m4: Require autoconf-2.52f.
49636         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
49637         Use these AC_-prefixed names, not the AM_-prefixed ones.
49638
49639         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
49640
49641 2001-11-05  Jim Meyering  <meyering@lucent.com>
49642
49643         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
49644
49645 2001-11-04  Jim Meyering  <meyering@lucent.com>
49646
49647         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
49648         $DEFS.
49649
49650 2001-11-03  Jim Meyering  <meyering@lucent.com>
49651
49652         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
49653         of AC_DEFUN.
49654
49655         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
49656         know the name of the variable in the macro definition.
49657
49658 2001-11-03  Jim Meyering  <meyering@lucent.com>
49659
49660         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
49661         in argmatch_to_argument call.
49662
49663         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
49664         argument.
49665
49666         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
49667         e.g., a fault due to an attempt to free a NULL pointer.
49668
49669 2001-11-01  Jim Meyering  <meyering@lucent.com>
49670
49671         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
49672         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
49673
49674 2001-11-01  Jim Meyering  <meyering@lucent.com>
49675
49676         * lib/dirfd.c, lib/dirfd.h: New files.
49677         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
49678
49679         * lib/hash.c (hash_print) [TESTING]: Clean up.
49680
49681 2001-10-22  Paul Eggert  <eggert@twinsun.com>
49682
49683         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
49684         to avoid a warning if -Wall.
49685
49686 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
49687
49688         * README: New file
49689         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
49690         (per RMS's instructions, this is now the canonical source)
49691         * lgpl/, gpl/: New directories.
49692
49693 2001-10-21  Paul Eggert  <eggert@twinsun.com>
49694
49695         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
49696
49697 2001-10-21  Jim Meyering  <meyering@lucent.com>
49698
49699         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
49700         this code would end up calling gettext even in packages built
49701         with --disable-nls.
49702         * lib/getopt.c (_): Likewise.
49703         * lib/regex.c (_): Likewise.
49704
49705 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49706
49707         * m4/error.m4 (jm_PREREQ_ERROR):
49708         Do not invoke AC_CHECK_FUNCS with strerror_r, as
49709         AC_FUNC_STRERROR_R does that.
49710         Check for strerror declaration.
49711
49712         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
49713         are supposed to have them these days.
49714         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
49715         Merge changes from latest Autoconf CVS.
49716         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
49717         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
49718         POSIX decided to standardize on the int flavor of strerror_r.
49719
49720 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49721
49722         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
49723         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
49724         Use strerror_r that is only a macro, even if it is not a function.
49725         (strerror): Check for HAVE_DECL_STRERROR before declaring.
49726         (private_strerror): Use prototypes, not old-style function definition.
49727         (print_errno_message): New function.
49728         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
49729         char*-flavored one.
49730         (error_tail, error, error_at_line): Use it.
49731
49732 2001-10-11  Jim Meyering  <meyering@lucent.com>
49733
49734         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
49735         and quote_n (1, ... to avoid clobbering a buffer.
49736
49737 2001-10-05  Jim Meyering  <meyering@lucent.com>
49738
49739         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
49740         hash-pjw.h.
49741         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
49742         * lib/hash-pjw.h: New file.
49743
49744 2001-09-30  Jim Meyering  <meyering@lucent.com>
49745
49746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
49747         `struct fsstat' has the `f_fstypename' member.
49748         Use that to define FS_TYPE, which is now used to make
49749         the getfsstat link test tighter.
49750
49751 2001-09-30  Jim Meyering  <meyering@lucent.com>
49752
49753         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
49754         Include <sys/ucred.h>, for Apple Darwin.
49755         Include sys/mount.h and sys/fs_types.h only if available.
49756         (FS_TYPE): Define.
49757         (read_filesystem_list): Use FS_TYPE.
49758
49759 2001-09-29  Paul Eggert  <eggert@twinsun.com>
49760
49761         * lib/exclude.c (excluded_filename): 0 -> false, since it's
49762         a boolean context.
49763
49764 2001-09-29  Jim Meyering  <meyering@lucent.com>
49765
49766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49767         [one-argument getmntent function]): Include stdio.h before mntent.h.
49768         SunOS 4.1.x needs it for the declaration of `FILE'.
49769         Patch by Volker Borchert.
49770
49771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49772         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
49773         sys/fs_types.h, and make the link-test for getfsstat guard #include
49774         directives with appropriate #if HAVE_*_H tests so that we can
49775         detect getfsstat on Apple Darwin1.3.7 systems.
49776         Reported by Nelson Beebe.
49777         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
49778
49779 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49780
49781         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49782         #defines strtoimax.  Also treat the other strto* functions
49783         like strtoimax.
49784
49785         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49786         Check for strtoul and strtoumax,
49787         as those declarations are made even in the signed case.
49788         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
49789         Likewise, for strtol and strtoimax.
49790
49791 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49792
49793         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49794         #defines strtoimax.  Also treat the other strto* functions
49795         like strtoimax.
49796
49797         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
49798         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
49799         (strtoimax, strtoumax): Do not declare if already defined as a macro.
49800
49801 2001-09-26  Jim Meyering  <meyering@lucent.com>
49802
49803         Most macros in unlocked-io.h had the wrong number of arguments.
49804         * lib/gen-uio: New script.
49805         (USE_UNLOCKED_IO): Define to 1 if not already defined.
49806         * lib/unlocked-io.hin: Remove file.
49807         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
49808         rather than trying to embed it here.
49809         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
49810         Reported by Padraig Brady.
49811
49812 2001-09-25  Volker Borchert  <bt@teknon.de>
49813
49814         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
49815         `result'.
49816
49817 2001-09-24  Jim Meyering  <meyering@lucent.com>
49818
49819         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
49820
49821 2001-09-23  Jim Meyering  <meyering@lucent.com>
49822
49823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
49824         instead of the mere test for existence of mntent.h.  The latter
49825         would get a false-positive on AIX 3.4 systems.
49826         In the outer getmntent if-block, don't die if neither of the getmntent
49827         tests succeeds.  Instead, just fall through and continue with the
49828         remaining tests.
49829
49830 2001-09-23  Jim Meyering  <meyering@lucent.com>
49831
49832         * lib/mountlist.c: Remove useless parentheses in #if directives.
49833         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
49834         the deprecated MOUNTED symbol is no longer defined in mntent.h.
49835
49836 2001-09-22  Jim Meyering  <meyering@lucent.com>
49837
49838         * m4/gettext.m4: New file.  From gettext.
49839         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
49840         * m4/progtest.m4: Likewise
49841         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
49842         * m4/glibc21.m4: Likewise.
49843
49844         * m4/libintl.m4: Remove.  No longer used.
49845
49846 2001-09-22  Jim Meyering  <meyering@lucent.com>
49847
49848         * lib/localcharset.c: Update from latest gettext.
49849         * lib/config.charset: Likewise.
49850
49851 2001-09-20  Jim Meyering  <meyering@lucent.com>
49852
49853         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
49854         strtoimax.
49855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
49856         strtoumax.
49857
49858 2001-09-20  Jim Meyering  <meyering@lucent.com>
49859
49860         * lib/xstrtol.c (strtoimax): Guard declaration with
49861         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
49862         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
49863         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
49864         (strtoumax): Likewise, for completeness (it wasn't necessary).
49865
49866 2001-09-17  Paul Eggert  <eggert@twinsun.com>
49867
49868         * lib/strtoimax.c (HAVE_LONG_LONG):
49869         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
49870         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
49871         to work around bug in IBM C compiler.
49872
49873 2001-09-17  Jim Meyering  <meyering@lucent.com>
49874
49875         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
49876         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
49877         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
49878         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
49879         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
49880         whenever the right hand side need not be expanded by the shell.
49881
49882 2001-09-16  Paul Eggert  <eggert@twinsun.com>
49883
49884         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
49885         library.  It's not correct, as some older glibcs are buggy.
49886         fnmatch wasn't fixed until glibc 2.2.
49887
49888         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
49889         special shell magic here.
49890
49891 2001-09-16  Jim Meyering  <meyering@lucent.com>
49892
49893         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
49894         * m4/jm-macros.m4: Require it.
49895
49896 2001-09-16  Jim Meyering  <meyering@lucent.com>
49897
49898         * lib/mkdir.c: New file.
49899
49900 2001-09-15  Jim Meyering  <meyering@lucent.com>
49901
49902         * m4/jm-macros.m4: Check for help2man.
49903
49904 2001-09-11  Jim Meyering  <meyering@lucent.com>
49905
49906         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
49907         The body, by Paul Eggert, was moved here from configure.in.
49908         * m4/jm-macros.m4: Require UTILS_HOST_OS.
49909
49910 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49911
49912         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
49913         (jm_PREREQ): Use it.
49914
49915 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49916
49917         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
49918         Use ssize_t, not int, to store result of readlink.
49919         Check for ssize_t overflow as well as size_t overflow,
49920         as POSIX says the result of readlink is implementation-defined
49921         when ssize_t overflows.
49922         Remove unnecessary cast to char*.
49923         Use free+malloc instead of realloc, as the storage doesn't need
49924         to be preserved and it's clearer and can be more efficient that way.
49925         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
49926         * lib/xreadlink.h (xreadlink): Update prototype.
49927
49928 2001-09-04  Paul Eggert  <eggert@twinsun.com>
49929
49930         * lib/xgetcwd.c: Revert some of the previous change; intead,
49931         fix the HAVE_GETCWD_NULL code to behave more like the
49932         !HAVE_GETCWD_NULL code used to.
49933
49934         Include "xalloc.h".
49935         (xgetcwd): Do not return NULL when memory is exhausted; instead,
49936         invoke xalloc_die.
49937
49938 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49939
49940         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
49941         sys/param.h, as pathmax.h includes them.
49942
49943 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49944
49945         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
49946         (jm_PREREQ_XGETCWD): New macro.
49947
49948         * m4/getcwd.m4: New file.
49949
49950 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49951
49952         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
49953         like the HAVE_GETCWD_NULL code.
49954         Include pathmax.h if not HAVE_GETCWD.
49955         Do not include xalloc.h.
49956         (INITIAL_BUFFER_SIZE): New symbol.
49957         Do not use xmalloc / xrealloc, since the caller is responsible for
49958         handling errors.  Preserve errno around `free' during failure.
49959         Do not overrun buffer when using getwd.
49960
49961 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49962
49963         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
49964         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
49965         getcwd (NULL, 0).
49966
49967 2001-09-03  Paul Eggert  <eggert@twinsun.com>
49968
49969         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
49970         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
49971         spotted by Jim Meyering.
49972
49973 2001-09-03  Jim Meyering  <meyering@lucent.com>
49974
49975         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
49976         failure.
49977
49978 2001-09-02  Jim Meyering  <meyering@lucent.com>
49979
49980         * lib/error.c: Update from GNU libc.
49981
49982 2001-09-01  Jim Meyering  <meyering@lucent.com>
49983
49984         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
49985         Used by df.
49986
49987 2001-09-01  Jim Meyering  <meyering@lucent.com>
49988
49989         * lib/xreadlink.c: New file.
49990         * lib/xreadlink.h: New file.
49991         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
49992         xreadlink.h.
49993
49994         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
49995         doesn't conflict with sparc Solaris 7's definition in
49996         /usr/include/sys/int_types.h.
49997
49998         * lib/exclude.c: Use `""', not `<>' to #include non-system header
49999         files.
50000         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
50001         and strncasecmp as r-values.  Unixware didn't have declarations.
50002
50003 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50004
50005         * lib/xstrtol.h: Add copyright notice.
50006         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
50007         LONGINT_INVALID_SUFFIX_CHAR.
50008
50009 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50010
50011         * lib/xstrtol.c (strtoimax): New decl.
50012
50013 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50014
50015         * lib/xgetcwd.c: Don't include pathmax.h.
50016         Include stdlib.h and unistd.h if available.
50017         Include xalloc.h.
50018         (xmalloc, xstrdup, free): Remove decls.
50019         (xgetcwd): Don't assume sizes fit in unsigned.
50020         Check for overflow when computing sizes.
50021         Simplify reallocation code.
50022
50023 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50024
50025         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
50026         a directory's st_size can have an arbitrary value, so the old
50027         usage could waste an arbitrary amount of memory.  All uses
50028         changed.
50029         * lib/savedir.h: Update prototype.
50030
50031 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50032
50033         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
50034
50035         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
50036         old strtoimax.c.
50037
50038         Also, make the following further changes to make this file's
50039         configuration more similar to that of strtol.c:
50040         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
50041         (strtoumax, uintmax_t, strtoull, strtol): Remove.
50042         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
50043         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
50044         changed to signed values.
50045
50046         And make the following changes as well:
50047         Fix copyright notice, as 1999 was missing.
50048         (verify): New macro.
50049         (strtoimax): Check sizes at compile-time, not run-time.
50050         Prefer strtol to strtoll if both work.
50051         (main): Remove; it was not that useful and was a pain to maintain.
50052
50053         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
50054
50055 2001-08-31  Jim Meyering  <meyering@lucent.com>
50056
50057         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
50058         Use an initial, malloc'd, buffer of length 128 rather than
50059         a statically allocated one of length 1024.
50060
50061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50062
50063         Simplify code, partly by assuming autoconf 2.52 semantics.
50064
50065         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
50066
50067         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
50068         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
50069         All uses removed.
50070         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
50071         Move AC_REQUIRE to next-to-top level, to avoid confusion.
50072         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
50073         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
50074         jm_AC_HEADER_INTTYPES_H.
50075         * m4/jm-macros.m4 (jm_MACROS): Likewise.
50076
50077         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
50078
50079         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50080         Quote first arg of AC_DEFUN.
50081         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
50082         since they are needed to parse the include file even if we need
50083         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
50084         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
50085         but with opposite signedness.
50086
50087 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50088
50089         Merge 'exclude' changes from tar 1.13.22.
50090         This fixes one or two unlikely storage allocation overflow bugs,
50091         but doesn't change user-visible behavior otherwise.
50092
50093 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50094
50095         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
50096         (jm_PREREQ_EXCLUDE): New macro.
50097
50098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50099
50100         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
50101         tm to be declared.
50102
50103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50104
50105         * lib/hash.c: Remove '2001' from copyright notice.
50106
50107 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50108
50109         * lib/full-write.h: New file.
50110         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
50111         * lib/full-write.c: Correct credits, as cccp.c no longer
50112         exists and anyway it was so heavily changed from the old cccp
50113         code as to be unrecognizable.  Include full-write.h.
50114         (full_write) Return size_t, with short writes meaning failure.
50115         All callers changed.  This fixes a bug with large buffers
50116         on 64-bit hosts.
50117         * lib/utime.c: Include full-write.h.
50118
50119 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50120
50121         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
50122         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
50123         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
50124         Include if available.
50125         (<xalloc.h>): Include
50126         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
50127         (verify): New macro.  Use it to verify that EXCLUDE macros do not
50128         collide with FNM macros.
50129         (struct patopts): New struct.
50130         (struct exclude): Use it, as exclude patterns now come with options.
50131         (new_exclude): Support above changes.
50132         (new_exclude, add_exclude_file):
50133         Initial size must now be a power of two to simplify overflow checking.
50134         (free_exclude, fnmatch_no_wildcards): New function.
50135         (excluded_filename): No longer requires options arg, as the options
50136         are determined by add_exclude.  Now returns bool, not int.
50137         (excluded_filename, add_exclude):
50138         Add support for the fancy new exclusion options.
50139         (add_exclude, add_exclude_file): Now takes int options arg.
50140         Check for arithmetic overflow when computing sizes.
50141         (add_exclude_file): xrealloc might modify errno, so don't
50142         realloc until after errno might be used.
50143
50144         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
50145         New macros.
50146         (free_exclude): New decl.
50147         (add_exclude, add_exclude_file): Now takes int options arg.
50148         (excluded_filename): No longer requires options arg, as the options
50149         are determined by add_exclude.  Now returns bool, not int.
50150
50151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50152
50153         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
50154
50155 2001-08-27  Jim Meyering  <meyering@lucent.com>
50156
50157         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
50158
50159         * lib/version-etc.c (N_): Remove definition.
50160         Revert most of last change.
50161         Instead, simply don't mark the `Copyright...' string for translation.
50162         Based on advice from Paul Eggert.
50163
50164         * lib/strtoxmax.c: Tweak comment.
50165
50166 2001-08-26  Jim Meyering  <meyering@lucent.com>
50167
50168         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
50169
50170         * m4/xstrtoimax.m4: New file.
50171         * m4/xstrtoumax.m4: Add comments explaining why we
50172         AC_REPLACE_FUNCS(strtol).
50173
50174 2001-08-26  Jim Meyering  <meyering@lucent.com>
50175
50176         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
50177         of copyright with `%s' so translators don't get an untranslated
50178         message in 2002.
50179         (COPYRIGHT_YEAR): Define.
50180         (version_etc): Use fprintf rather than fputs.
50181         Suggestion from Ulrich Drepper.
50182
50183         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
50184
50185         * lib/strtoll.c: New file, from GNU libc.
50186         * lib/xstrtoimax.c: New file.
50187
50188         * lib/xstrtol.h: Add xstrtoimax.
50189         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
50190         * lib/strtoimax.c: New file.  Likewise, but first define
50191         STRTOUXMAX_SIGNED.
50192
50193         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
50194         ...
50195         * lib/strtoxmax.c: ... then renamed to this.
50196
50197 2001-08-18  Paul Eggert  <eggert@twinsun.com>
50198
50199         * m4/inttypes.m4: Add AC_PREREQ(2.13).
50200         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
50201         (jm_AC_TYPE_INTMAX_T): New macro.
50202         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
50203
50204         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
50205
50206         * m4/longlong.m4: Renamed from ulonglong.m4.
50207         * m4/inttypes.m4: Renamed from inttypes_h.m4.
50208         * m4/uintmax_t.m4: Removed.
50209
50210 2001-08-13  Paul Eggert  <eggert@twinsun.com>
50211
50212         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
50213         Port to Solaris 8, where 'sed' requires a space after the 'r'
50214         command, and where sh dislikes "$/".  Clean up the spacing a bit.
50215         Redirect output to $tmp just once.
50216
50217 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
50218
50219         * lib/addext.c (<errno.h>): Include.
50220         (errno): Declare if not defined.
50221         (addext): Work correctly when pathconf returns -1 and leaves
50222         errno alone because there is no limit.  Also, work even if
50223         pathconf returns a value greater than SIZE_MAX.
50224
50225 2001-08-12  Jim Meyering  <meyering@lucent.com>
50226
50227         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
50228         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
50229         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
50230         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
50231         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
50232         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
50233         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
50234         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
50235         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
50236         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
50237         utime.m4, utimes.m4, xstrtoumax.m4:
50238         Quote the first argument in each use of AC_DEFUN.
50239
50240 2001-08-12  Jim Meyering  <meyering@lucent.com>
50241
50242         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
50243         Simply `return getcwd (NULL, 0);'.
50244         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
50245         Use 1300 as initial value for length, not PATH_MAX.
50246
50247         * lib/pathmax.h: Clean up cpp syntax.
50248
50249 2001-08-12  Jim Meyering  <meyering@lucent.com>
50250
50251         * lib/gettimeofday.c: New file.
50252         * lib/gtod.h: New file.
50253         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
50254
50255 2001-08-05  Jim Meyering  <meyering@lucent.com>
50256
50257         * m4/jm-macros.m4: Require autoconf-2.52.
50258
50259 2001-08-04  Jim Meyering  <meyering@lucent.com>
50260
50261         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
50262         stmt, to get in sync with glibc.
50263
50264 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50265
50266         The following changes are from gettext 0.10.39 as maintained by
50267         Bruno Haible.
50268
50269         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
50270         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
50271         with inverted sense.  All uses changed.
50272
50273         * lib/mbswidth.c: Don't include <limits.h>.
50274         Include <stdlib.h> and <string.h> unconditionally.
50275         (iswcntrl, mbsinit, ISCNTRL): New macros.
50276         (mbsnwidth): Use K&R style function declarations.
50277         Don't bother checking for MB_LEN_MAX == 1, since the compiler
50278         can optimize it when MB_CUR_MAX == 1.
50279         The width of control characters is zero, not 1.
50280
50281 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50282
50283         The following changes are from gettext 0.10.39 as maintained by
50284         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
50285
50286         * m4/codeset.m4: Upgrade to serial AM1.
50287         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
50288         all uses changed.  Quote first arg of AC_DEFUN.
50289         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
50290
50291         * m4/iconv.m4: Upgrade to serial AM2.
50292         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
50293         Add --with-libconv-prefix.
50294         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
50295         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
50296         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
50297         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
50298         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
50299
50300         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
50301         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
50302         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
50303         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
50304         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
50305         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
50306         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50307         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
50308         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
50309
50310         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
50311         string.h any more.
50312
50313         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
50314         not the default value.
50315
50316         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
50317         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
50318         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
50319         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
50320         Also check for iswcntrl, used for wcwidth fallback.
50321         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
50322         to Autoconf 2.13.
50323
50324 2001-08-03  Jim Meyering  <meyering@lucent.com>
50325
50326         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
50327         as it was in the original.  Reported by Paul Eggert.
50328
50329 2001-07-16  Jim Meyering  <meyering@lucent.com>
50330
50331         * m4/gettimeofday.m4: New file.
50332         Prompted by a report from Bernhard Baehr.
50333
50334 2001-07-15  Jim Meyering  <meyering@lucent.com>
50335
50336         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
50337         stuff. Now it's in ../Makefile.cfg.
50338
50339 2001-07-15  Jim Meyering  <meyering@lucent.com>
50340
50341         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
50342         (BUILT_SOURCES): Add unlocked-io.h.
50343         (io_functions): Define.
50344         (unlocked-io.h): New rule.
50345         (DISTCLEANFILES): Add unlocked-io.h.
50346         (all-local): Depend on unlocked-io.h, to ensure it is created.
50347
50348         * lib/unlocked-io.hin: New file
50349
50350         * lib/regex.c: Update from glibc.
50351
50352 2001-07-05  Jim Meyering  <meyering@lucent.com>
50353
50354         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
50355         recommendation.
50356         (libfetish_a_SOURCES): Put all .h files here instead.
50357         Remove a thus-exposed (better checks in automake) duplicate and
50358         two unnecessary .h files.
50359
50360 2001-07-04  Jim Meyering  <meyering@lucent.com>
50361
50362         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
50363         that generates jm-glibc-io.m4 so that it doesn't trigger any make
50364         distcheck failure.
50365
50366 2001-07-02  Jim Meyering  <meyering@lucent.com>
50367
50368         The following changes were prompted by suggestions from Bruno Haible.
50369
50370         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
50371         is now generated.
50372         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
50373         definition of EXTRA_DIST.
50374         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
50375         ensure that the generated file is created/updated whenever the list
50376         of $(unlocked_functions) is changed.
50377         (jm-glibc-io.m4): New rule.
50378         (unlocked-io.h): New rule -- currently unused.
50379
50380 2001-06-24  Jim Meyering  <meyering@lucent.com>
50381
50382         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
50383         unmatched right bracket, rather than kludging it with an extra,
50384         falsely-matching quote in a comment.  Patch by Akim Demaille.
50385
50386 2001-06-11  Jim Meyering  <meyering@lucent.com>
50387
50388         * lib/regex.c: Update from GNU libc.
50389
50390 2001-05-27  Jim Meyering  <meyering@lucent.com>
50391
50392         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
50393         Check for ut_type in struct utmp.
50394
50395 2001-05-27  Jim Meyering  <meyering@lucent.com>
50396
50397         * lib/readutmp.h (UT_TYPE): Define.
50398
50399 2001-05-24  Jim Meyering  <meyering@lucent.com>
50400
50401         * lib/argmatch.c: Include "quote.h".
50402         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
50403         quote function.  Reported by Göran Uddeborg.
50404
50405 2001-05-22  Jim Meyering  <meyering@lucent.com>
50406
50407         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
50408         now that we use the package-supplied version unconditionally.
50409         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
50410
50411 2001-05-21  Jim Meyering  <meyering@lucent.com>
50412
50413         * m4/regex.m4: Change a couple backticks to single quotes to avoid
50414         shell syntax errors.
50415
50416 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50417
50418         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
50419
50420 2001-05-20  Paul Eggert  <eggert@twinsun.com>
50421
50422         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
50423         Don't bother to check library strftime, since
50424         we'll be using our own my_strftime function anyway.
50425         Define my_strftime instead of strftime.
50426
50427 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
50428
50429         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
50430         which is not yet declared.
50431
50432 2001-05-15  Jim Meyering  <meyering@lucent.com>
50433
50434         * m4/regex.m4: Use proper quoting so brackets appear in the test
50435         program.
50436         Reported by, and with help from, Bruno Haible.
50437
50438 2001-05-13  Jim Meyering  <meyering@lucent.com>
50439
50440         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
50441         undefined.
50442
50443 2001-05-11  Paul Eggert  <eggert@twinsun.com>
50444
50445         dirname code cleanup.  base_name now behaves more compatibly
50446         with POSIX basename when given file names that have trailing
50447         slashes, and similarly for dir_name.  Add new primitives
50448         base_len and dir_len.  Put the directory-name-related decls
50449         into dirname.h.
50450
50451         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
50452         * lib/backupfile.c (base_name): Likewise.
50453         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
50454         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
50455         * lib/makepath.c (strip_trailing_slashes): Likewise.
50456         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
50457         ISSLASH): Likewise.
50458         * lib/rename.c (strip_trailing_slashes): Likewise.
50459         * lib/same.c (base_name): Likewise.
50460         * lib/stripslash.c (ISSLASH): Likewise.
50461
50462         * lib/addext.c: Include <dirname.h> after size_t is defined.
50463         * lib/backupfile.c: Likewise.
50464
50465         * lib/addext.c (addext): Use base_len to trim redundant
50466         trailing slashes instead of doing it ourselves.
50467         But do not trim the last slash if it is not redundant.
50468
50469         * lib/backupfile.c (find_backup_file_name,
50470         max_backup_version): Use base_len instead of rolling it ourselves.
50471         Handle the case of "" and (on DOS) "C:" correctly.
50472
50473         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
50474         needed. Include <string.h>, <dirname.h>.
50475         (base_name): Allow file names ending in slashes, other than names
50476         that are all slashes.  In this case, return the basename followed
50477         by the slashes.  This is more general, and can be used in places
50478         where the original base_name purposely had an assertion failure.
50479         (base_len): New function.
50480
50481         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
50482         Do not include <assert.h>; no longer needed.
50483         Include xalloc.h.
50484         (memrchr): Remove decl.
50485         (dir_name_r): Remove.
50486         (dir_len): Renamed from dirlen.  All callers changed.
50487         Rewrite in terms of base_name, for simplicity and consistency.
50488         (dir_name): Never return NULL.  All callers changed.
50489         Do not include <stdlib.h> in test program; no longer needed.
50490         return 0; is fine for test program.
50491
50492         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
50493         New macros.
50494         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
50495
50496         * lib/path-concat.c (path_concat): Use base_len to compute
50497         base length, not strlen; this means we cannot rely on memcpy
50498         to null-terminate.
50499
50500         * lib/same.c (STREQ): Remove.
50501         (same_name): Handle the case where the basename ends in trailing '/'.
50502
50503         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
50504         a slash was stripped.  Do not strip the last slash after a
50505         file system prefix.
50506
50507 2001-05-11  Paul Eggert  <eggert@twinsun.com>
50508
50509         * lib/Makefile.am (libfetish_a_SOURCES):
50510         Add strftime.c, since we now compile it on all hosts.
50511
50512         * lib/strftime.c (my_strftime):
50513         Define to nstrftime if emacs, but only if my_strftime is not defined.
50514         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
50515         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
50516         Add one more extra argument: a nanoseconds value.
50517         All uses changed.
50518         (ns): New macro.
50519         (my_strftime function): Add %N format.
50520         (emacs_strftimeu): Renamed from emacs_strftime,
50521         with extra ut argument.
50522
50523 2001-05-09  Paul Eggert  <eggert@twinsun.com>
50524
50525         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
50526
50527 2001-04-21  Jim Meyering  <meyering@lucent.com>
50528
50529         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
50530         doesn't interfere.
50531
50532 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50533
50534         * m4/ftruncate.m4: Check for chsize.
50535         Link with ftruncate.o unconditionally if ftruncate is missing.
50536         This was required when cross-compiling to i586-mingw32msvc.
50537
50538 2001-04-08  Jim Meyering  <meyering@lucent.com>
50539
50540         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
50541         recomputed; that's necessary when the offset spans a DST transition.
50542         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
50543
50544 2001-04-02  Jim Meyering  <meyering@lucent.com>
50545
50546         * lib/regex.h, regex.c: Update from GNU libc.
50547
50548 2001-03-24  Jim Meyering  <meyering@lucent.com>
50549
50550         * m4/jm-macros.m4: Require autoconf-2.49d.
50551
50552 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
50553
50554         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
50555
50556 2001-03-19  Paul Eggert  <eggert@twinsun.com>
50557
50558         * lib/version-etc.c (version_etc_copyright): Update to 2001.
50559
50560 2001-03-17  Jim Meyering  <meyering@lucent.com>
50561
50562         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
50563         now that the version in autoconf is equivalent.
50564         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
50565
50566         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
50567         Suggestion from Akim Demaille.
50568
50569         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
50570         (jm_PREREQ_TEMPNAME): New function.
50571
50572 2001-03-16  Paul Eggert  <eggert@twinsun.com>
50573
50574         * lib/tempname.c (uint64_t): Define to uintmax_t if
50575         not defined, and if UINT64_MAX is not defined.
50576         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
50577         Reported by John David Anglin.
50578
50579 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
50580
50581         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
50582         resolve alias if codeset is empty.
50583         * lib/config.charset (BeOS): Use wildcard syntax.
50584
50585 2001-03-13  Jim Meyering  <meyering@lucent.com>
50586
50587         * lib/path-concat.c (path_concat)
50588         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
50589         concatenating e.g., `C:' and `foo'.
50590         From Bruno Haible.
50591
50592 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50593
50594         * lib/localcharset.c (locale_charset): Don't use
50595         setlocale(LC_CTYPE,NULL). Don't return NULL.
50596         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
50597
50598 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50599
50600         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
50601         support for DOS/DJGPP.
50602
50603 2001-03-01  Paul Eggert  <eggert@twinsun.com>
50604
50605         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
50606         lacks mkstemp.  Compile our own tempname.c if we compile our own
50607         mkstemp.c, as mkstemp relies on tempname.
50608
50609 2001-03-01  Jim Meyering  <meyering@lucent.com>
50610
50611         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
50612         AH_VERBATIM really does output its argument verbatim.
50613
50614 2001-02-28  Paul Eggert  <eggert@twinsun.com>
50615
50616         * lib/Makefile.am (libfetish_a_SOURCES):
50617         Add dup-safer.c, fopen-safer.c.
50618         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
50619
50620         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
50621         * lib/unistd-safer.h: New files.
50622
50623 2001-02-25  Paul Eggert  <eggert@twinsun.com>
50624
50625         The mkstemp replacement is taken from glibc 2.2.2, with some
50626         portability fixes for use outside glibc, as follows:
50627
50628         * lib/tempname.c (struct_stat64): New macro.
50629         (direxists, __gen_tempname): Use it.
50630         This avoids a portability problem with Solaris 8.
50631
50632         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
50633         (<stddef.h>, <stdint.h>, <string.h>):
50634         Include only if STDC_HEADERS || _LIBC.
50635         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
50636         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
50637         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
50638         (__set_errno): Define this macro if <errno.h> doesn't.
50639         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
50640         Define these macros if <stdio.h> doesn't.
50641         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
50642         Define these macros if <sys/stat.h>
50643         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
50644         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
50645         __xstat64): Define if not _LIBC.
50646         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
50647         (__gen_tempname): Invoke gettimeofday only if
50648         HAVE_GETTIMEOFDAY || _LIBC;
50649         otherwise, fall back on plain "time".
50650         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
50651
50652         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
50653
50654         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
50655
50656 2001-02-18  Paul Eggert  <eggert@twinsun.com>
50657
50658         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
50659
50660 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50661
50662         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
50663         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
50664         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
50665         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50666
50667 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50668
50669         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
50670         Remove workaround macros for hosts that have mbrtowc but not
50671         mbstate_t, as we now insist on proper declarations for both
50672         before using mbrtowc.
50673
50674 2001-02-17  Jim Meyering  <meyering@lucent.com>
50675
50676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
50677         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
50678         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
50679         UnixWare 7.1.1.
50680
50681         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
50682         rather than AC_CACHE_VAL.
50683
50684 2001-02-17  Jim Meyering  <meyering@lucent.com>
50685
50686         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
50687         around included file name.
50688
50689         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
50690
50691         * lib/strftime.c: Update from GNU libc (the only changes were to
50692         comments).
50693
50694 2001-02-17  Jim Meyering  <meyering@lucent.com>
50695
50696         * lib/regex.c: Update from libc.
50697
50698 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
50699
50700         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
50701         clash.
50702
50703 2001-02-16  Paul Eggert  <eggert@twinsun.com>
50704
50705         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
50706         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
50707         Reported by Mark Hounschell via Paul Eggert.
50708
50709 2001-02-07  Jim Meyering  <meyering@lucent.com>
50710
50711         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
50712
50713 2001-02-05  Jim Meyering  <meyering@lucent.com>
50714
50715         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
50716         it includes the patch required for `large file' support with at least
50717         HP-UX's 10.20 /bin/cc.
50718
50719 2001-02-03  Jim Meyering  <meyering@lucent.com>
50720
50721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
50722         AS_IF, now that it works once again (mysteriously).
50723         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50724
50725 2001-01-30  Jim Meyering  <meyering@lucent.com>
50726
50727         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
50728         * m4/chown.m4: Rename conftestchown to conftest.chown.
50729         * m4/rename.m4: s/conftestdir/conftest.d1/ and
50730         s/conftestdir2/conftest.d2/.
50731         * m4/utimes.m4: s/conftestdata/conftest.data/
50732         Inspired by Pavel Roskin's change in autoconf.
50733
50734 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
50735
50736         * lib/config.charset: Update for FreeBSD 4.2.
50737
50738 2001-01-27  Jim Meyering  <meyering@lucent.com>
50739
50740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
50741         a use of AS_IF.
50742         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50743
50744 2001-01-26  Jim Meyering  <meyering@lucent.com>
50745
50746         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
50747         quotearg.c includes it.
50748
50749 2001-01-26  Jim Meyering  <meyering@lucent.com>
50750
50751         * lib/quotearg.c: Include stddef.h.
50752         * lib/quote.c: Include stddef.h.
50753         Reported by Axel Kittenberger.
50754
50755         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
50756         line in double quotes so that it evokes a better diagnostic.
50757         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
50758         Reported by Axel Kittenberger.
50759
50760 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
50761
50762         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
50763         as if it was a `charset'.
50764
50765 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50766
50767         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
50768         has const.
50769
50770 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50771
50772         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
50773         to avoid a warning.  Add back 'const' to inptr.
50774
50775 2001-01-20  Jim Meyering  <meyering@lucent.com>
50776
50777         Be sure that headers are checked before used in code compiled
50778         for the type checks.
50779         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
50780         In place of that, invoke jm_CHECK_ALL_TYPES.
50781         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
50782         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
50783         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
50784         The check for ssize_t was mistakenly run before the test for unistd.h.
50785
50786         The configure-time check for stdbool.h was missing.
50787         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
50788         (jm_PREREQ_HASH): New function.
50789
50790 2001-01-17  Jim Meyering  <meyering@lucent.com>
50791
50792         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
50793         for autoconf-2.49c.
50794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
50795
50796 2001-01-16  Jim Meyering  <meyering@lucent.com>
50797
50798         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
50799         From Bruno Haible.
50800
50801 2001-01-14  Jim Meyering  <meyering@lucent.com>
50802
50803         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
50804         foo and bar.  Create conftestdir/ in the script, not in the C code.
50805         Remove directories in the script, not in the C code.
50806         Remove conftestdir{,2} before trying to create the directory.
50807         Make the entire configure script fail if the mkdir fails.
50808
50809 2001-01-14  Jim Meyering  <meyering@lucent.com>
50810
50811         * lib/rename.c: New file.  From Volker Borchert.
50812         Include stdlib.h, string.h or strings.h, and xalloc.h.
50813         Use strip_trailing_slashes rather than open-coding it.
50814
50815 2001-01-03  Paul Eggert  <eggert@twinsun.com>
50816
50817         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
50818
50819 2001-01-03  Jim Meyering  <meyering@lucent.com>
50820
50821         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
50822         of local `inptr' to avoid warning with some system declarations of
50823         iconv.
50824
50825 2001-01-02  Volker Borchert  <bt@teknon.de>
50826
50827         * m4/rename.m4: New file.
50828         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
50829
50830 2001-01-01  Jim Meyering  <meyering@lucent.com>
50831
50832         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
50833         even on systems with utmpx.h.  It's necessary for the declaration of
50834         utmp's ut_user member.  Reported by Andreas Jaeger.
50835
50836         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
50837         available. They are required for the declarations of getgrgid and
50838         getpwuid resp.
50839         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
50840         Reported by Andreas Jaeger.
50841
50842 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
50843
50844         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
50845         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
50846         so `make install' also works in VPATH builds.
50847
50848 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
50849
50850         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
50851         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
50852         can be used in subdirectories.
50853
50854 2000-12-29  Paul Eggert  <eggert@twinsun.com>
50855
50856         * lib/modechange.c: Do not assume that mode_t uses the
50857         traditional octal encoding.  E.g. "chmod 1 FOO" should set
50858         the other-execute bit of FOO even if S_IXOTH != 1.
50859
50860         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
50861         WOTH, XOTH, ALLM): New macros.
50862         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
50863          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
50864         Use them.
50865         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
50866         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
50867         (mode_compile):
50868         No need to use uintmax_t; unsigned long is long enough.
50869         Don't bother to get suffix since we don't use it.
50870
50871 2000-12-26  Jim Meyering  <meyering@lucent.com>
50872
50873         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
50874         better with autoheader.
50875
50876 2000-12-24  Jim Meyering  <meyering@lucent.com>
50877
50878         * lib/hash.c (is_prime): Return explicit boolean values.
50879         (hash_get_first): Return NULL to appease Irix5.6's 89.
50880         Reported by Nelson Beebe.
50881
50882 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
50883
50884         * lib/localcharset.c (locale_charset): Add support for Win32.
50885
50886 2000-12-18  Paul Eggert  <eggert@twinsun.com>
50887
50888         * lib/physmem.h, lib/physmem.c: New files.
50889
50890         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
50891         (noinst_HEADERS): Add physmem.h.
50892
50893         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
50894         't' for compatibility with Solaris 8 sort.
50895
50896 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
50897
50898         * lib/config.charset: Add support for BeOS.
50899
50900 2000-12-17  Jim Meyering  <meyering@lucent.com>
50901
50902         * m4/dos.m4 (jm_AC_DOS): New file and macro.
50903         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
50904
50905 2000-12-16  Jim Meyering  <meyering@lucent.com>
50906
50907         This bug had a serious impact on chown: `chown N:M FILE' (for integer
50908         N and M) would have treated it like `chown N:N FILE'.
50909
50910         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
50911
50912 2000-12-16  Jim Meyering  <meyering@lucent.com>
50913
50914         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
50915         SHELLS_FILE to a file name that's useful on djgpp systems.
50916         Include stdlib.h.
50917         (ADDITIONAL_DEFAULT_SHELLS): Define.
50918         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
50919         Based mostly on a patch from Prashant TR.
50920
50921 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
50922
50923         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
50924         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
50925         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
50926
50927 2000-12-08  Andreas Schwab  <schwab@suse.de>
50928
50929         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
50930         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
50931
50932 2000-12-07  Jim Meyering  <meyering@lucent.com>
50933
50934         * lib/stripslash.c (ISSLASH): Define.
50935         (strip_trailing_slashes): Use ISSLASH rather than comparing against
50936         `/'.
50937         From Prashant TR.
50938
50939         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
50940         (dir_name_r): Declare this function as static.
50941         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
50942         manifest itself on a name containing a mix of slashes and
50943         backslashes.
50944         Make this function work with names starting with a DOS-style
50945         drive letter and colon prefix.
50946         (dir_name): Append `.' if necessary.
50947         Based mostly on patches from Prashant TR and Eli Zaretskii.
50948
50949         * lib/dirname.h (dir_name_r): Remove prototype.
50950
50951 2000-12-06  Paul Eggert  <eggert@twinsun.com>
50952
50953         * m4/off_t-format.m4: Remove this file.
50954         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
50955
50956 2000-12-06  Jim Meyering  <meyering@lucent.com>
50957
50958         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
50959         replacement strtoull, we may well need the replacement strtoul, too.
50960         Check for declarations of strtoul and strtoull.
50961         Check for strtol.  Mainly as a cue to cause automake to include
50962         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
50963         Check for limits.h -- strtol.c needs it.
50964
50965 2000-12-05  Jim Meyering  <meyering@lucent.com>
50966
50967         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
50968
50969 2000-12-04  Jim Meyering  <meyering@lucent.com>
50970
50971         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
50972         Also include memory.h, stdlib.h, unistd.h if appropriate.
50973         Reported by Andreas Jaeger (conflicting declaration of malloc).
50974
50975 2000-12-02  Jim Meyering  <meyering@lucent.com>
50976
50977         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
50978         * m4/jm-macros.m4 (jm_MACROS): require it.
50979
50980 2000-12-02  Jim Meyering  <meyering@lucent.com>
50981
50982         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
50983
50984 2000-12-01  Paul Eggert  <eggert@twinsun.com>
50985
50986         * lib/memrchr.c: Include <config.h> before any system include file.
50987
50988 2000-11-30  Jim Meyering  <meyering@lucent.com>
50989
50990         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
50991
50992 2000-11-30  Jim Meyering  <meyering@lucent.com>
50993
50994         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
50995
50996 2000-11-29  Paul Eggert  <eggert@twinsun.com>
50997
50998         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
50999
51000 2000-11-26  Jim Meyering  <meyering@lucent.com>
51001
51002         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
51003
51004 2000-11-22  Paul Eggert  <eggert@twinsun.com>
51005
51006         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
51007         size of (size_t) -1; it's not portable.
51008
51009 2000-11-17  Jim Meyering  <meyering@lucent.com>
51010
51011         * lib/strstr.c: Update from GNU libc.
51012
51013 2000-11-17  Akim Demaille  <akim@epita.fr>
51014
51015         * lib/obstack.h: Formatting changes.
51016         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
51017         prevent type checking.
51018         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
51019         cast the value to (void *): assigning a `foo *' to a `void *'
51020         variable is valid.
51021         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
51022
51023 2000-11-16  Jim Meyering  <meyering@lucent.com>
51024
51025         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
51026
51027 2000-11-11  Jim Meyering  <meyering@lucent.com>
51028
51029         * lib/error.c: Add a couple #includes, merging from GNU libc version.
51030
51031 2000-11-10  Jim Meyering  <meyering@lucent.com>
51032
51033         * lib/obstack.h: Update from GNU libc.
51034         * lib/obstack.c: Likewise.
51035
51036 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
51037
51038         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
51039
51040 2000-11-06  Paul Eggert  <eggert@twinsun.com>
51041
51042         * lib/getusershell.c (setusershell): Use rewind rather than
51043         fseek/fseeko, to avoid configuration hassles with fseeko.
51044         Don't bother opening SHELLS_FILE if shellstream is NULL;
51045         it's not necessary.
51046
51047 2000-11-05  Jim Meyering  <meyering@lucent.com>
51048
51049         * lib/makepath.h (make_dir): Declare.
51050         * lib/makepath.c (make_dir): Remove `static' attribute.
51051         Tweak a comment.
51052
51053 2000-11-04  Jim Meyering  <meyering@lucent.com>
51054
51055         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
51056
51057 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
51058
51059         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
51060         last one in a bucket, advance to the next bucket.
51061
51062 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
51063
51064         * lib/fnmatch.c: Do not comment out all the code if we are using
51065         the GNU C library, because in some cases we are replacing buggy
51066         code in the GNU C library itself.
51067
51068 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
51069
51070         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
51071         (regex_compile): Catch bogus \(\1\).
51072
51073 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51074
51075         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
51076         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
51077         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
51078
51079 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51080
51081         * lib/error.h, getline.h, modechange.h:
51082         Remove "2000" from Copyright line, as the file hasn't been
51083         changed this year other than in the copyright notice.
51084
51085         * lib/xalloc.h: Add "2000" to Copyright line, as this file
51086         was changed this year.
51087
51088 2000-10-29  Jim Meyering  <meyering@lucent.com>
51089
51090         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
51091         renaming.
51092         * m4/ls-mntd-fs.m4: Likewise
51093
51094 2000-10-29  Jim Meyering  <meyering@lucent.com>
51095
51096         * lib/xstat.in: Fix grammar in comment.
51097
51098 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
51099
51100         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
51101         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
51102         doesn't define __restrict_arr.
51103
51104 2000-10-28  Jim Meyering  <meyering@lucent.com>
51105
51106         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
51107         (jm_PREREQ_MEMCHR): New function.
51108
51109 2000-10-28  Jim Meyering  <meyering@lucent.com>
51110
51111         * lib/memchr.c: Update from libc.
51112         Adjust for portability:
51113         [HAVE_STDLIB_H]: Include stdlib.h.
51114         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
51115         Undef __memchr, too.
51116         [!weak_alias]: Define __memchr to memchr.
51117
51118         * lib/regex.c: Update from libc.
51119         * lib/regex.h: Likewise.
51120         * lib/getopt1.c: Likewise.
51121         * lib/memcmp.c: Likewise.
51122
51123         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
51124         Avoid using fseek, when possible -- it's broken by design.
51125         Patch by Ulrich Drepper.
51126
51127 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
51128
51129         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
51130         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
51131         Giving in to popular pressure to shut up the compiler with casts.
51132
51133 2000-10-26  Jim Meyering  <meyering@lucent.com>
51134
51135         * lib/strftime.c: Update from libc.
51136
51137 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
51138
51139         * regex.c: More `unsigned char' -> `re_char' changes.
51140         Also change several `int' into `re_wchar_t'.
51141         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
51142         (PUSH_FAILURE_POINTER): Don't cast any more.
51143         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
51144         We want GCC to complain, since this piece of code makes
51145         re_match non-reentrant, which *should* be fixed.
51146         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
51147         (EXTEND_BUFFER): Use RETALLOC.
51148         (SET_LIST_BIT): Don't cast.
51149         (re_wchar_t): New type.
51150         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
51151         that those two functions will always properly return.
51152         (IMMEDIATE_QUIT_CHECK): Cast to void.
51153         (analyse_first): Use recursion rather than an explicit stack.
51154         (re_compile_fastmap): Can't fail anymore.
51155         (re_search_2): Don't check re_compile_fastmap for failure.
51156         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
51157         Now also sets the new value (passed in a new argument).
51158         (re_match_2_internal): Use it.
51159         Also, use a new var `reg' of type size_t when looping through regs
51160         rather than reuse the inappropriate `mcnt'.
51161
51162 2000-10-25  Jim Meyering  <meyering@lucent.com>
51163
51164         * lib/obstack.c: Update from libc.
51165
51166 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
51167
51168         * regex.c (regex_compile): Change the way of handling a range from
51169         a char less than 256 to a char not less than 256.
51170
51171 2000-10-24  Andrew Innes  <andrewi@gnu.org>
51172
51173         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
51174         NT-Emacs only.
51175         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
51176         so that re_search functions only quit when callers expect them to.
51177
51178 2000-10-23  Jim Meyering  <meyering@lucent.com>
51179
51180         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
51181         wrong.  That set_locale call must not have any side effects.
51182         From Paul Eggert.
51183
51184 2000-10-22  Jim Meyering  <meyering@lucent.com>
51185
51186         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
51187         [CYCLIC]: Remove now-unused definition.
51188
51189         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
51190         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
51191         Suggestion from Ulrich Drepper.
51192
51193 2000-10-21  Jim Meyering  <meyering@lucent.com>
51194
51195         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
51196         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
51197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
51198
51199 2000-10-21  Jim Meyering  <meyering@lucent.com>
51200
51201         * lib/dirname.c (memrchr): Declare if necessary.
51202         (dir_name): Remove the restriction that there be no
51203         trailing slashes.  Now, this code skips past them, effectively
51204         ignoring them.
51205         [TEST_DIRNAME] (main): New unit tests.
51206
51207         * lib/memrchr.c: New file from GNU libc.
51208         Undef __memrchr, too.
51209         [!weak_alias]: Define __memrchr to memrchr.
51210         Guard weak_alias use with `#ifdef weak_alias'.
51211
51212 2000-10-21  Jim Meyering  <meyering@lucent.com>
51213
51214         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
51215         (dir_name): Use dir_name_r.
51216         * lib/dirname.h (dir_name_r): Declare it.
51217
51218 2000-10-17  Jim Meyering  <meyering@lucent.com>
51219
51220         * lib/quote.h (PARAMS): Define and use.
51221         Reported by Akim Demaille.
51222
51223         * lib/getopt.c: Update from libc.
51224
51225 2000-10-16  Jim Meyering  <meyering@lucent.com>
51226
51227         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
51228         setlocale.
51229         From Jan Fedak.
51230
51231 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
51232
51233         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
51234
51235 2000-09-25  Jim Meyering  <meyering@lucent.com>
51236
51237         * lib/md5.h (rol): Define (from GnuPG).
51238
51239         * lib/sha.c: Give credit (GnuPG) where due.
51240         (M): Use rol rather than open-coding it.
51241         Add a FIXME comment.
51242
51243 2000-09-21  Jim Meyering  <meyering@lucent.com>
51244
51245         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
51246         Reported by Michael Stone.
51247
51248 2000-09-20  Jim Meyering  <meyering@lucent.com>
51249
51250         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
51251         (noinst_HEADERS): Add sha.h.
51252         Based on code from Scott G. Miller and from GnuPG.
51253
51254 2000-09-18  Jim Meyering  <meyering@lucent.com>
51255
51256         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
51257         LIBS. Otherwise, everyone ends up linking with -lelf for some
51258         configurations.
51259         Reported by Mike Stone.
51260
51261 2000-09-15  Jim Meyering  <meyering@lucent.com>
51262
51263         * lib/regex.c: Update from libc.
51264
51265 2000-09-10  Jim Meyering  <meyering@lucent.com>
51266
51267         * lib/getopt.c (_getopt_internal): Update from glibc.
51268
51269 2000-09-09  Jim Meyering  <meyering@lucent.com>
51270
51271         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
51272         think it should be used as a general replacement for isascii.
51273         * lib/fnmatch.c: Likewise.
51274         * lib/mbswidth.c: Likewise
51275         * lib/regex.c: Likewise.
51276
51277         Don't use atoi.
51278         * lib/userspec.c: Include sys/param.h and limits.h.
51279         Include xstrtol.h.
51280         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51281         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
51282         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
51283         UID, GID.  Check range.
51284
51285 2000-09-06  Jim Meyering  <meyering@lucent.com>
51286
51287         * lib/getopt.c (_getopt_internal): Update from glibc.
51288
51289 2000-08-30  Jim Meyering  <meyering@lucent.com>
51290
51291         * lib/strftime.c: Merge in changes from GNU libc.
51292
51293 2000-08-26  Jim Meyering  <meyering@lucent.com>
51294
51295         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
51296         * m4/fpending.m4: New file.
51297
51298 2000-08-26  Jim Meyering  <meyering@lucent.com>
51299
51300         * lib/closeout.c: Include "__fpending.h".
51301         (close_stdout_status): Return right away if there's nothing to flush.
51302
51303         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
51304         * lib/__fpending.c: New file.
51305         * lib/__fpending.h: New file.
51306
51307 2000-08-20  Jim Meyering  <meyering@lucent.com>
51308
51309         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
51310         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
51311         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
51312
51313 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
51314
51315         Improve fileutils installation on systems where running
51316         programs (like install) can't be unlinked.
51317         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
51318         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
51319
51320 2000-08-07  Paul Eggert  <eggert@twinsun.com>
51321
51322         Standardize on "memory exhausted" instead of "Memory exhausted"
51323         or "virtual memory exhausted".
51324         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
51325         "virtual memory exhausted".
51326         * lib/same.c (same_name): Invoke xalloc_die instead of printing
51327         our own message.
51328         * lib/userspec.c (parse_user_spec): Likewise.
51329         * lib/bumpalloc.h: comment fix
51330         * lib/same.c, userspec.c: Include xalloc.h.
51331
51332         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
51333         not char *const and pointing to a constant array.
51334         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
51335         (xrealloc): Comment fix.
51336
51337         * lib/userspec.c (parse_user_spec):
51338         Don't translate a message until just before returning,
51339         to avoid unnecessary translation.
51340
51341 2000-08-07  Jim Meyering  <meyering@lucent.com>
51342
51343         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
51344         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
51345         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
51346         getgroups.c, gethostname.c, getopt.h, group-member.c,
51347         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
51348         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
51349         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
51350         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
51351         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
51352         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
51353         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
51354         yesno.c: Back out Copyright date changes for each file with no change
51355         this year.  This eases coordination with other programs using the same
51356         source code modules.  From Paul Eggert.
51357
51358 2000-08-06  Paul Eggert  <eggert@twinsun.com>
51359
51360         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
51361         not char, for compatibility with glibc 2.1.3 strftime.c.
51362
51363 2000-08-03  Greg McGary  <greg@mcgary.org>
51364
51365         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
51366         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
51367         (EXTEND_BUFFER): Use them.
51368
51369 2000-08-01  Jim Meyering  <meyering@lucent.com>
51370
51371         * lib/dirname.c (ISSLASH): Define.
51372         (BACKSLASH_IS_PATH_SEPARATOR): Define.
51373         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
51374         both `\' and `/' may be use as path separators.
51375         Based on a patch from Prashant TR.
51376
51377 2000-07-31  Paul Eggert  <eggert@twinsun.com>
51378
51379         * lib/quotearg.c (quotearg_n_options): Don't make the initial
51380         slot vector a constant, since it might get modified.
51381
51382 2000-07-31  Jim Meyering  <meyering@lucent.com>
51383
51384         * lib/xmalloc.c: Use `virtual memory exhausted', not
51385         `Memory exhausted'.
51386         * lib/obstack.c (print_and_abort): Likewise.
51387
51388 2000-07-30  Paul Eggert  <eggert@twinsun.com>
51389
51390         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
51391         buffer, so that the caller can always quote one small
51392         component of a "memory exhausted" message in slot 0.
51393         From a suggestion by Jim Meyering.
51394
51395 2000-07-30  Jim Meyering  <meyering@lucent.com>
51396
51397         * lib/makepath.c (make_path): Quote the other instance, too.
51398
51399         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
51400         (STATIC_BUF_SIZE): Define.
51401         (quotearg_n_options): Use only statically allocated storage when
51402         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
51403         than STATIC_BUF_SIZE.
51404
51405 2000-07-29  Jim Meyering  <meyering@lucent.com>
51406
51407         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
51408         * lib/dirname.c (dir_name): Likewise.
51409
51410         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
51411         `/'.
51412
51413         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
51414         (dir_name): Assert that there are no trailing slashes.
51415
51416 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
51417
51418         * lib/mbswidth.h (mbswidth): Add a flags argument.
51419         (mbswidth): New declaration.
51420         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
51421         * lib/mbswidth.c (mbswidth): Add a flags argument.
51422         (mbsnwidth): New function.
51423
51424 2000-07-24  Jim Meyering  <meyering@lucent.com>
51425
51426         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
51427
51428 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51429
51430         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
51431
51432 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51433
51434         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
51435         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
51436         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
51437         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
51438         invoke multibyte primitives.
51439
51440 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51441
51442         * lib/quotearg.c:
51443         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
51444         so that mbstate_t is always defined.
51445
51446         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
51447         be 1 in at least one GCC installation, and this configuration
51448         error is likely to be common.  Ignoring MB_LEN_MAX hurts
51449         performance on hosts that have mbrtowc but have only unibyte
51450         locales, but I assume these hosts are rare.
51451
51452 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51453
51454         * lib/mbswidth.c (_XOPEN_SOURCE):
51455         Don't define; this causes problems on Solaris 7.
51456         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
51457
51458 2000-07-23  Jim Meyering  <meyering@lucent.com>
51459
51460         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
51461         too: getgrgid, getpwuid, getuid.
51462
51463 2000-07-23  Jim Meyering  <meyering@lucent.com>
51464
51465         * lib/basename.c (base_name): Add an assertion.
51466
51467 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
51468
51469         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
51470         shadow its mbsinit function.
51471
51472 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
51473
51474         * lib/mbswidth.h: New file.
51475         * lib/mbswidth.c: New file.
51476         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
51477         (noinst_HEADERS): Add mbswidth.h.
51478
51479 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
51480
51481         * lib/config.charset: Add support for FreeBSD. Improve support for
51482         HP-UX and IRIX 6.
51483
51484 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
51485
51486         * m4/mbswidth.m4: New file.
51487         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
51488
51489 2000-07-15  Jim Meyering  <meyering@lucent.com>
51490
51491         * lib/makepath.c: Include quote.h.
51492         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
51493         corresponding argument in a `quote (...)' call.
51494         Give better diagnostics.
51495
51496         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
51497         (noinst_HEADERS): Add quote.h.
51498
51499         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
51500         from tar's src/misc.c.
51501         * lib/quote.h: New file.  Prototypes for same.
51502
51503 2000-07-14  Paul Eggert  <eggert@twinsun.com>
51504
51505         From a suggestion by Bruno Haible.
51506         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
51507         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
51508         to decide whether to define the BeOS workaround macro;
51509         this adjusts to the change to AC_MBSTATE_T.
51510
51511 2000-07-14  Jim Meyering  <meyering@lucent.com>
51512
51513         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
51514         jm_AC_TYPE_UINTMAX_T.
51515
51516 2000-07-13  Paul Eggert  <eggert@twinsun.com>
51517
51518         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
51519
51520         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
51521         quotearg_buffer_restyled): Add support for
51522         clocale_quoting_style.  Undo previous change to
51523         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
51524         and "{RIGHT QUOTATION MARK}" msgids.
51525
51526 2000-07-10  Paul Eggert  <eggert@twinsun.com>
51527
51528         From a suggestion by Bruno Haible.
51529         * m4/mbstate_t.m4 (AC_MBSTATE_T):
51530         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
51531         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
51532         and mbstate_t, to a single-part test that simply defines mbstate_t.
51533         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
51534         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
51535
51536 2000-07-10  Jim Meyering  <meyering@lucent.com>
51537
51538         * m4/strerror_r.m4: Mirror the correction made in autoconf.
51539
51540         * m4/gnu-source.m4: Output to confdefs.h directly.
51541         Suggestion from Akim Demaille.
51542
51543 2000-07-09  Paul Eggert  <eggert@twinsun.com>
51544
51545         The old behavior of quoting `like this' doesn't look good with
51546         newer, ISO-style fonts.  See:
51547         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
51548
51549         Instead, quote "like this" by default.  Let the translator
51550         tailor the locale-specific quoting behavior by providing
51551         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
51552
51553         * lib/quotearg.c (N_): New macro.
51554         (gettext_default): New function.
51555         (quotearg_buffer_restyled): Use
51556         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
51557         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
51558
51559 2000-07-09  Jim Meyering  <meyering@lucent.com>
51560
51561         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
51562         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
51563
51564         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
51565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
51566
51567 2000-07-09  Jim Meyering  <meyering@lucent.com>
51568
51569         * lib/Most files: Update copyright dates to include 2000.
51570
51571 2000-07-08  Jim Meyering  <meyering@lucent.com>
51572
51573         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
51574         if not defined.
51575         (xgethostname): Remove now-unnecessary #ifdef.
51576         Move declaration of `err' into loop where it's used.
51577
51578 2000-07-05  Paul Eggert  <eggert@twinsun.com>
51579         and Bruno Haible  <haible@clisp.cons.org>
51580
51581         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
51582         only if the test for an object-type mbstate_t fails.  This
51583         prevents us from mistakenly reporting that mbstate_t is a
51584         system object type after we "#define mbstate_t int" to work
51585         around its lack.
51586
51587 2000-07-05  Paul Eggert  <eggert@twinsun.com>
51588         and Bruno Haible  <haible@clisp.cons.org>
51589
51590         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
51591
51592 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51593
51594         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
51595         to strerror_r.
51596         Include <ctype.h> for use of isalpha.
51597
51598 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51599
51600         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
51601         by allocating a larger buffer. Test the gethostname return value for
51602         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
51603         returns an error and ENAMETOOLONG isn't defined.
51604
51605 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51606
51607         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
51608         dimension.
51609
51610 2000-07-04  Jim Meyering  <meyering@lucent.com>
51611
51612         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
51613         of the deprecated AC_CHECKING.
51614
51615 2000-07-04  Jim Meyering  <meyering@lucent.com>
51616
51617         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
51618         Reported by Bruno Haible.
51619
51620 2000-07-04  Jim Meyering  <meyering@lucent.com>
51621
51622         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
51623         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
51624         lacks mbrtowc.
51625
51626 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51627
51628         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
51629         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
51630
51631 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51632         and Bruno Haible  <haible@clisp.cons.org>
51633
51634         * lib/quotearg.c (mbrtowc):
51635         Assign to *pwc, and return 1 only if result is nonzero.
51636         (iswprint): Use ISPRINT when substituting our own mbrtowc.
51637
51638 2000-07-03  Jim Meyering  <meyering@lucent.com>
51639
51640         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
51641
51642 2000-07-03  Jim Meyering  <meyering@lucent.com>
51643
51644         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
51645         This is necessary to get a definition of e.g., UTMP_FILE on
51646         HP-UX 10.20.
51647         From Bob Proulx.
51648
51649 2000-07-02  Jim Meyering  <meyering@lucent.com>
51650
51651         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
51652
51653         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
51654         AC_LIBOBJ(function_name).
51655         * m4/chown.m4: Likewise.
51656         * m4/fnmatch.m4: Likewise.
51657         * m4/ftruncate.m4: Likewise.
51658         * m4/getgroups.m4: Likewise.
51659         * m4/getline.m4: Likewise.
51660         * m4/group-member.m4: Likewise.
51661         * m4/jm-macros.m4: Likewise.
51662         * m4/lstat.m4: Likewise.
51663         * m4/malloc.m4: Likewise.
51664         * m4/memcmp.m4: Likewise.
51665         * m4/nanosleep.m4: Likewise.
51666         * m4/putenv.m4: Likewise.
51667         * m4/realloc.m4: Likewise.
51668         * m4/regex.m4: Likewise.
51669         * m4/stat.m4: Likewise.
51670         * m4/strftime.m4: Likewise.
51671
51672 2000-07-02  Jim Meyering  <meyering@lucent.com>
51673
51674         * lib/quotearg.c (mbstate_t): Don't define here.
51675
51676 2000-07-02  Jim Meyering  <meyering@lucent.com>
51677
51678         * lib/nanosleep.c (SIGCONT): Define if not already defined.
51679
51680 2000-07-01  Jim Meyering  <meyering@lucent.com>
51681
51682         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
51683
51684 2000-07-01  Jim Meyering  <meyering@lucent.com>
51685
51686         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
51687         problem.
51688
51689 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51690
51691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
51692         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
51693
51694 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51695
51696         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
51697         per change in ../m4/ls-mntd-fs.m4.
51698         (read_filesystem_list): Ignore symbolic links.
51699
51700 2000-06-29  Jim Meyering  <meyering@lucent.com>
51701
51702         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
51703         for declaration of strcmp.
51704
51705         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
51706
51707         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
51708         Avoid warning by casting result to `char *' to remove `const'.
51709
51710 2000-06-28  Jim Meyering  <meyering@lucent.com>
51711
51712         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
51713         included by quotearg.c, for which we perform this test.  From
51714         Bruno Haible.
51715
51716 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51717
51718         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
51719         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
51720         <utmpx.h> exists, put readutmp.o into LIBOBJS.
51721
51722 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51723
51724         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
51725
51726 2000-06-26  Paul Eggert  <eggert@twinsun.com>
51727
51728         savedir now sets errno on failure and invokes xmalloc to get memory.
51729         Fix a couple of other minor bugs while we're at it.
51730
51731         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
51732         (NAMLEN): Remove macro.
51733         (malloc, realloc): Remove decls.
51734         (stpcpy): Likewise.
51735         ("xalloc.h"): Include.
51736         (NAME_SIZE_DEFAULT): New macro.
51737         (savedir): Use xmalloc / xrealloc to allocate memory.
51738         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
51739         Skip "" directory entries.
51740         Use strlen to calculate directory entry length, since the old method
51741         is rarely used these days and isn't worth supporting.
51742         Don't use a pointer after freeing it.
51743         Check for integer overflow when calculating allocation size.
51744         Use memcpy to copy entries, instead of stpcpy.
51745         Set errno properly when returning NULL.
51746         Check for readdir error.
51747
51748 2000-06-26  Jim Meyering  <meyering@lucent.com>
51749
51750         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
51751
51752 2000-06-25  Jim Meyering  <meyering@lucent.com>
51753
51754         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
51755         Linux header bug when _XOPEN_SOURCE is defined to 500.
51756
51757 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51758
51759         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
51760         deficiency.
51761
51762 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51763
51764         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
51765         Include xalloc.h.
51766         Don't include <stdlib.h>.  Don't declare malloc, realloc.
51767
51768 2000-06-24  Jim Meyering  <meyering@lucent.com>
51769
51770         * m4/strerror_r.m4: Revive this file -- to try out an experimental
51771         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
51772         for which strerror does return char*, but which lacks a conveniently
51773         accessible declaration of the function.  If the compile-test says
51774         strerror_r doesn't work, then resort to a `run'-test that works on
51775         BeOS and segfaults on DEC Unix.
51776
51777 2000-06-24  Jim Meyering  <meyering@lucent.com>
51778
51779         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
51780
51781 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51782
51783         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
51784         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
51785
51786 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51787
51788         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
51789         (mbrtowc, mbstate_t): Define substitutes if
51790         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
51791         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
51792         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
51793
51794 2000-06-23  Jim Meyering  <meyering@lucent.com>
51795
51796         * m4/afs.m4: Add missing AC_MSG_RESULT.
51797         Reported by Bruno Haible.
51798
51799         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
51800         Suggestion from Bruno Haible.
51801
51802 2000-06-23  Jim Meyering  <meyering@lucent.com>
51803
51804         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
51805
51806 2000-06-21  Jim Meyering  <meyering@lucent.com>
51807
51808         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
51809
51810 2000-06-21  Jim Meyering  <meyering@lucent.com>
51811
51812         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
51813         (noinst_HEADERS): Add getstr.h.
51814
51815         * lib/getline.c (getstr): Move into a separate file.
51816         * lib/getstr.c (getstr): New file, extracted from getline.c, with
51817         the following changes: new parameter, delim2; both delim[12]
51818         parameters have type `int', not `char'.  The latter would lose
51819         with 8-bit delimiters.
51820         * lib/getstr.h: New file.
51821
51822 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51823
51824         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
51825         than 1024, return a memory chunk of least possible size, instead
51826         of size PATH_MAX + 2. In the loop, increment the size proportionally.
51827         Use free/xmalloc instead of xrealloc to avoid copying for very long
51828         paths.
51829
51830 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51831
51832         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
51833         the empty string.
51834
51835 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51836
51837         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
51838         address, not strdup.  Include <stdlib.h> and don't declare free().
51839
51840 2000-06-19  Jim Meyering  <meyering@lucent.com>
51841
51842         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
51843
51844 2000-06-18  Jim Meyering  <meyering@lucent.com>
51845
51846         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
51847
51848         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
51849         `checking whether...' message to be consistent with that of the
51850         lstat test.
51851
51852 2000-06-18  Jim Meyering  <meyering@lucent.com>
51853
51854         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
51855         Besides, these days every porting target provides a mkdir function.
51856
51857         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
51858         needed. (this snippet comes from src/system.h).
51859
51860 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
51861
51862         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
51863
51864 2000-06-15  Paul Eggert  <eggert@twinsun.com>
51865
51866         * lib/human.c (adjust_value): New function.
51867         (human_readable_inexact): Apply rounding style even when
51868         printing approximate values.
51869
51870 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51871
51872         * lib/human.c (human_readable_inexact): Allow an input block
51873         size that is not a multiple of the output block size, and vice versa.
51874         Reported by Piergiorgio Sartor.
51875
51876 2000-06-14  Paul Eggert  <eggert@twinsun.com>
51877
51878         * lib/getdate.y (get_date): Apply relative times after time
51879         zone indicator, not before.  Reported by Todd A. Jacobs.
51880
51881 2000-06-13  Jim Meyering  <meyering@lucent.com>
51882
51883         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
51884
51885         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
51886
51887 2000-06-12  Paul Eggert  <eggert@twinsun.com>
51888
51889         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
51890
51891 2000-06-12  Jim Meyering  <meyering@lucent.com>
51892
51893         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
51894         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
51895         optional argument.
51896         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
51897         the optional argument, `lib'.
51898
51899 2000-06-08  Jim Meyering  <meyering@lucent.com>
51900
51901         * m4/largefile.m4: Remove file (now that it's part of autoconf).
51902
51903 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51904
51905         Rewrite largefile configuration so that we don't need to run
51906         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
51907         AC_CANONICAL_HOST in configure.in -- jmm]
51908
51909         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
51910         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
51911         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
51912         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
51913         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
51914         All uses changed.
51915         Instead of inspecting the output of getconf, try to compile the
51916         test program without and with the macro definition.
51917         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
51918         for getconf.  Instead, check for the needed flags by compiling
51919         test programs.
51920
51921 2000-06-04  Paul Eggert  <eggert@twinsun.com>
51922
51923         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
51924
51925 2000-06-04  Jim Meyering  <meyering@lucent.com>
51926
51927         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
51928         SunOS 4.1.4 for which gid_t is an unsigned type.
51929
51930 2000-06-03  Jim Meyering  <meyering@lucent.com>
51931
51932         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
51933         now that autoconf requires that.
51934
51935         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
51936         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
51937         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
51938
51939 2000-06-03  Jim Meyering  <meyering@lucent.com>
51940
51941         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
51942
51943 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51944
51945         * m4/glibc21.m4: New file.
51946         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
51947
51948 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
51949
51950         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
51951         newer, don't install charset.alias.
51952         * lib/config.charset: Change the Linux/glibc rules so they become empty
51953         on glibc-2.1 or newer.
51954
51955 2000-06-02  Jim Meyering  <meyering@lucent.com>
51956
51957         * lib/mountlist.c: Back out last change.  Instead, do this...
51958         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
51959         me_dummy member using the same `ignore'-testing code.
51960         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
51961         fs_type strings.
51962         From Mark D. Roth.
51963
51964 2000-05-29  Jim Meyering  <meyering@lucent.com>
51965
51966         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
51967         mounts with the `ignore' attribute.  Based on a patch from
51968         Mark D. Roth.
51969
51970 2000-05-28  Jim Meyering  <meyering@lucent.com>
51971
51972         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
51973         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51974         * m4/stat.m4: Likewise.
51975         * m4/lstat.m4: Likewise.
51976         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
51977
51978         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
51979         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
51980
51981 2000-05-26  Jim Meyering  <meyering@lucent.com>
51982
51983         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
51984
51985 2000-05-24  Jim Meyering  <meyering@lucent.com>
51986
51987         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
51988         autoconf requires that.
51989         * m4/lib-check.m4: Likewise.
51990         * m4/jm-macros.m4: Likewise.
51991         * m4/strftime.m4: Likewise.
51992
51993         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
51994         AC_CHECK_DECLS, now that autoconf requires that.
51995
51996 2000-05-22  Jim Meyering  <meyering@lucent.com>
51997
51998         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
51999         * m4/lstat.m4: Likewise.
52000
52001 2000-05-22  Jim Meyering  <meyering@lucent.com>
52002
52003         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
52004
52005 2000-05-20  Jim Meyering  <meyering@lucent.com>
52006
52007         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
52008         (jm_PREREQ): Use it.
52009
52010 2000-05-18  Jim Meyering  <meyering@lucent.com>
52011
52012         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
52013         back, too, since it may have been modified by allocate_entry.
52014         (hash_delete): Rewrite to use neither the assignment operator
52015         nor the comma operator in an if-expression.
52016
52017 2000-05-15  Paul Eggert  <eggert@twinsun.com>
52018
52019         * lib/closeout.c:
52020         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
52021         Remove; no longer needed.
52022         "quotearg.h": Add include.
52023         (file_name): Do not bother to explicitly initialize to NULL; it's less
52024         efficient on some hosts.
52025         (close_stdout_status): Remove test as to whether stdout was already
52026         closed; it breaks for the case "echo x | sort >&-".
52027         Quote file name colons.
52028         Do not assume that _("write error") lacks format strings.
52029
52030 2000-05-15  Jim Meyering  <meyering@lucent.com>
52031
52032         * lib/version-etc.c (version_etc_copyright): Update the copyright
52033         string used in all --version output.
52034
52035 2000-05-14  Jim Meyering  <meyering@lucent.com>
52036
52037         * lib/closeout.c (close_stdout_set_file_name): New function.
52038         (close_stdout_status): Use new file-scoped global.
52039         Return right away if fstat says the stdout file descriptor is invalid.
52040         * lib/closeout.h (close_stdout_set_file_name): Declare.
52041
52042 2000-05-10  Jim Meyering  <meyering@lucent.com>
52043
52044         * lib/closeout.c [default_exit_status]: New file-scoped variable.
52045         (close_stdout_set_status): New function.
52046         * lib/closeout.h (close_stdout_set_status): Declare.
52047
52048 2000-05-09  Jim Meyering  <meyering@lucent.com>
52049
52050         * m4/gettext.m4: Rename this...
52051         * m4/libintl.m4: ...to this.
52052
52053 2000-05-08  Jim Meyering  <meyering@lucent.com>
52054
52055         * lib/long-options.c: Don't include closeout.h.
52056         (parse_long_options): Don't call close_stdout for --version.
52057
52058 2000-05-06  Paul Eggert  <eggert@twinsun.com>
52059
52060         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
52061         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
52062         2.1.3 bug.  This avoids a clash when files like regex.c define
52063         _GNU_SOURCE.
52064
52065 2000-05-06  Jim Meyering  <meyering@lucent.com>
52066
52067         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
52068         (AC_REPLACE_FUNCS): Add strnlen.
52069
52070         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
52071         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
52072
52073         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
52074         AC_SEARCH_LIBS call for nanosleep.
52075         (LIB_NANOSLEEP): Set and AC_SUBST.
52076
52077 2000-05-06  Jim Meyering  <meyering@lucent.com>
52078
52079         * lib/strnlen.c: Undefine __strnlen and strnlen.
52080         [!weak_alias]: Define __strnlen to strnlen.
52081
52082         * lib/atexit.c: New file, from libiberty.
52083
52084 2000-05-06  Jim Meyering  <meyering@lucent.com>
52085
52086         * lib/closeout.c (close_stdout_status): Also check for errors on the
52087         stderr stream.
52088
52089 2000-05-05  Jim Meyering  <meyering@lucent.com>
52090
52091         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
52092         AC_SEARCH_LIBS call for clock_gettime.
52093         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
52094
52095         * m4/search-libs.m4: Update from autoconf.
52096
52097         su doesn't work on Solaris 2.6.
52098         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
52099         <shadow.h>.  Reported by Dragos Harabor.
52100
52101 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
52102
52103         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
52104         memcpy instead of xmalloc, xrealloc, path_concat.
52105         (locale_charset): Treat empty environment variables as absent.
52106         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
52107
52108 2000-05-04  Jim Meyering  <meyering@lucent.com>
52109
52110         * lib/getopt.c: Update from glibc.
52111         * lib/obstack.c: Likewise.
52112         * lib/obstack.h: Likewise.
52113         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
52114         file
52115
52116         * lib/regex.h: Likewise.
52117         * lib/strndup.c: Likewise.
52118         * lib/strnlen.c: New file, from glibc.
52119
52120 2000-05-03  Jim Meyering  <meyering@lucent.com>
52121
52122         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
52123
52124 2000-05-02  Paul Eggert  <eggert@twinsun.com>
52125
52126         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
52127         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
52128         compile-time test, rather than inspecting host and OS, to
52129         decide whether to define _LARGEFILE_SOURCE.
52130
52131 2000-05-01  Jim Meyering  <meyering@lucent.com>
52132
52133         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
52134
52135         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
52136         Based on a patch from Bruno Haible.
52137
52138 2000-05-01  Jim Meyering  <meyering@lucent.com>
52139
52140         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
52141
52142 2000-04-29  Jim Meyering  <meyering@lucent.com>
52143
52144         * lib/path-concat.c: Declare strdup only if it's not defined.
52145         * lib/canon-host.c: Likewise.
52146
52147 2000-04-28  Jim Meyering  <meyering@lucent.com>
52148
52149         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
52150         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
52151         is included first, then limits.h is included by locale.h by libintl.h.
52152         From John David Anglin.
52153
52154 2000-04-25  Jim Meyering  <meyering@lucent.com>
52155
52156         * lib/makepath.c (S_IRWXUGO): Define.
52157         (make_path): Always perform explicit chmod if MODE specifies any
52158         of the `special' permission bits.  Prompted by a bug report against
52159         install from Mate Wierdl and Joost van Baal.
52160
52161 2000-04-18  Jim Meyering  <meyering@lucent.com>
52162
52163         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
52164         (jm_PREREQ): Use it.
52165
52166 2000-04-18  Jim Meyering  <meyering@lucent.com>
52167
52168         * lib/README: New file.
52169
52170         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
52171         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
52172
52173 2000-04-17  Jim Meyering  <meyering@lucent.com>
52174
52175         Get it right :-)
52176         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
52177         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
52178         Suggestion from Akim Demaille.
52179
52180 2000-04-17  Jim Meyering  <meyering@lucent.com>
52181
52182         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
52183         the definition of it to rpl_strftime also defined-away the system's
52184         declaration.
52185
52186 2000-04-15  Jim Meyering  <meyering@lucent.com>
52187
52188         Use `C' to denote so-called `contiguous' files, the same way
52189         that tar does.
52190         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
52191         (ftypelet): Use S_ISCTG.
52192         From Michael Deutschmann.
52193
52194 2000-04-14  Jim Meyering  <meyering@lucent.com>
52195
52196         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
52197         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
52198         clobbered.
52199
52200 2000-04-14  Jim Meyering  <meyering@lucent.com>
52201
52202         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
52203
52204 2000-04-13  Jim Meyering  <meyering@lucent.com>
52205
52206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
52207         AH_VERBATIM to insert required #ifndef into config.h.in.
52208         Suggestion from Akim Demaille.
52209
52210 2000-04-12  Jim Meyering  <meyering@lucent.com>
52211
52212         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
52213         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
52214         Christian Krackowizer.
52215
52216         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
52217         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
52218         (AC_SYS_LARGEFILE): Require.
52219         (AM_C_PROTOTYPES): Require.
52220
52221 2000-04-08  Jim Meyering  <meyering@lucent.com>
52222
52223         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
52224         names don't conflict.  Reported by Eli Zaretskii.
52225
52226 2000-04-07  Jim Meyering  <meyering@lucent.com>
52227
52228         * lib/putenv.c: Move inclusion of errno.h so it follows that of
52229         sys/types.h, to work around system header problems on AIX 3.2.5.
52230         From Bruno Haible.
52231
52232 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
52233
52234         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
52235         bug.  Deal with the different error behavior of Irix iconv.
52236
52237 2000-04-05  Paul Eggert  <eggert@twinsun.com>
52238
52239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
52240         IRIX if the installer said otherwise.
52241
52242 2000-04-05  Jim Meyering  <meyering@lucent.com>
52243
52244         Portability tweaks required for ultrix4.3.
52245         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
52246         (jm_CHECK_DECLS): Add getutent to the list of functions.
52247         (_jm_DECL_HEADERS): Add utmpx.h.
52248         From John David Anglin.
52249
52250         * m4/strftime.m4: Back out the 2000-04-02 change.
52251         Instead of that change, simply undefine putenv in the test program.
52252
52253 2000-04-05  Jim Meyering  <meyering@lucent.com>
52254
52255         Portability tweaks required for ultrix4.3.
52256         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
52257         getutent.
52258         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
52259         * lib/canon-host.c: Declare strdup.
52260         * lib/path-concat.c: Likewise.
52261         From John David Anglin.
52262
52263 2000-04-04  Jim Meyering  <meyering@lucent.com>
52264
52265         Be more DOS 8.3-friendly.
52266         * lib/ref-add.sin: Renamed from ref-add.sed.in.
52267         * lib/ref-del.sin: Renamed from ref-del.sed.in.
52268         * lib/Makefile.am: Reflect renaming.
52269         Reported by Eli Zaretskii.
52270
52271         Use a temporary file name that won't clash with `charset.alias'
52272         in the DOS 8.3 name space.
52273         * lib/Makefile.am (charset_tmp): Define.
52274         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
52275         (uninstall-local): Likewise.
52276         Reported by Eli Zaretskii.
52277
52278 2000-04-03  Jim Meyering  <meyering@lucent.com>
52279
52280         * m4/gettext.m4: Fix typo in comment.
52281
52282         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
52283         textutils/configure.in).  Suggestion from Paul Eggert.
52284         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
52285
52286 2000-04-02  Paul Eggert  <eggert@twinsun.com>
52287
52288         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
52289         variable in the shell rather than using putenv, which isn't
52290         portable.  This avoids the configure-time inter-test dependency
52291         on the potentially-renamed putenv function.
52292
52293 2000-03-30  Paul Eggert  <eggert@twinsun.com>
52294
52295         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
52296         before checking struct stat.st_blksize, so that
52297         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
52298
52299 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52300
52301         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
52302         since strftime.c uses HAVE_STRFTIME to decide whether to use
52303         the underlying strftime.
52304
52305 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52306
52307         * lib/time/strftime.c (my_strftime): Make sure we call the system
52308         strftime, not ourselves, when invoking the underlying strftime.
52309
52310 2000-03-24  Jim Meyering  <meyering@lucent.com>
52311
52312         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
52313         (charset_alias): Define.
52314         (install-exec-local): Factor out common code.
52315         (uninstall-local): Split lines longer than 80.
52316         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
52317         (SUFFIXES): Define.
52318         (.sed.in.sed): New rule.  Don't redirect directly to $@.
52319         (CLEANFILES): Add ref-add.sed and ref-del.sed.
52320
52321 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
52322
52323         * lib/config.charset: Output a line containing "Packages using this
52324         file".
52325         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
52326         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
52327         ref-del.sed): New rules.
52328
52329 2000-03-17  Jim Meyering  <meyering@lucent.com>
52330
52331         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
52332         Otherwise, include <strings.h>
52333
52334 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
52335
52336         * lib/unicodeio.c (utf8_wctomb): New function.
52337         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
52338         format instead of in UCS-4 with platform dependent endianness.
52339
52340 2000-03-10  Jim Meyering  <meyering@lucent.com>
52341
52342         * m4/lib-check.m4: Look for getspnam in -lgen, too.
52343         From Marco Franzen.
52344
52345 2000-03-07  Paul Eggert  <eggert@twinsun.com>
52346
52347         * lib/savedir.c (savedir): Work even if directory size is
52348         negative; this can happen with some screwy NFS configurations.
52349
52350 2000-03-06  Jim Meyering  <meyering@lucent.com>
52351
52352         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
52353         if it's NULL (because we ran out of memory).  From Bruno Haible.
52354
52355 2000-03-05  Jim Meyering  <meyering@lucent.com>
52356
52357         * lib/localcharset.c ("path-concat.h"): Include.
52358         (get_charset_aliases): Use path_concat instead of ANSI string
52359         concatenation.
52360
52361         * lib/unicodeio.h (PARAMS): Define.
52362         Use it to guard prototype.
52363
52364 2000-03-04  Jim Meyering  <meyering@lucent.com>
52365
52366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
52367         for lib/localcharset.c.
52368
52369 2000-03-04  Jim Meyering  <meyering@lucent.com>
52370
52371         * lib/Makefile.am (install-exec-local): Create $(libdir) before
52372         installing into it.
52373         (uninstall-local): Uncomment this rule so `make distcheck' works
52374         once again.
52375
52376         * lib/unicodeio.c (<errno.h>): Include it.
52377         (errno): Declare if not defined.
52378
52379         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
52380
52381         * lib/config.charset: New version, incorporating remarks from a linux
52382         i18n mailing list.  From Bruno Haible.
52383
52384 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
52385
52386         * m4/codeset.m4: New file.
52387         * m4/iconv.m4: New file.
52388         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
52389
52390 2000-03-03  Jim Meyering  <meyering@lucent.com>
52391
52392         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
52393
52394 2000-03-02  Jim Meyering  <meyering@lucent.com>
52395
52396         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
52397         the messages come out on separate lines.
52398
52399         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
52400         rather than jm_CHECK_DECLARATIONS.
52401         * m4/decl.m4: Remove now-unused file.
52402
52403         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
52404         geteuid.
52405
52406 2000-03-02  Jim Meyering  <meyering@lucent.com>
52407
52408         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
52409
52410 2000-03-01  Jim Meyering  <meyering@lucent.com>
52411
52412         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
52413         * lib/unicodeio.c: Likewise.
52414
52415 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
52416
52417         * lib/config.charset: New file.
52418         * lib/localcharset.c: New file.
52419         * lib/unicodeio.h, lib/unicodeio.c: New files.
52420         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
52421         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
52422         (noinst_HEADERS): Add unicodeio.h.
52423         (all-local, install-exec-local, charset.alias): New targets.
52424
52425 2000-02-28  Paul Eggert  <eggert@twinsun.com>
52426
52427         * lib/quotearg.c (ALERT_CHAR): New macro.
52428         (quotearg_buffer_restyled): Use it.
52429
52430 2000-02-27  Jim Meyering  <meyering@lucent.com>
52431
52432         * m4/check-decl.m4: Add getenv to the list.
52433
52434 2000-02-27  Jim Meyering  <meyering@lucent.com>
52435
52436         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
52437         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
52438
52439         * lib/backupfile.c: Guard inclusion of stdlib.h with
52440         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
52441         Declare malloc if needed.
52442
52443         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
52444         `#ifndef HAVE_DECL..'
52445         now that autoconf always defines the HAVE_DECL_ symbols.
52446         * lib/human.c: Likewise.
52447         * lib/same.c: Likewise.
52448         * lib/strtoumax.c: Likewise.
52449
52450         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
52451         declaration check was not run.
52452         * lib/hash.c: Likewise.
52453         * lib/human.c: Likewise.
52454         * lib/same.c: Likewise.
52455         * lib/strtoumax.c: Likewise.
52456
52457         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
52458         `.', then first look up the entire `.'-containing string as a login
52459         name.
52460
52461 2000-02-23  Jim Meyering  <meyering@lucent.com>
52462
52463         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
52464         in place of my hack.
52465
52466 2000-02-18  Paul Eggert  <eggert@twinsun.com>
52467
52468         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
52469         (textint): New typedef.
52470         (parser_control): Member year changed from int to textint.
52471         All uses changed.
52472         (YYSTYPE): Removed; replaced by %union with int and textint members.
52473         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
52474         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
52475         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
52476         (tSNUMBER, tUNUMBER): Now of type <textintval>.
52477         (date, number, to_year): Use width of number in digits, not its value,
52478         to determine whether it's a 2-digit year, or a 2-digit time.
52479         (yylex): Store number of digits of numeric tokens.
52480         Reported by John Kendall.
52481
52482         (parser_control): Changed from struct parser_control to typedef (for
52483         consistency).  All uses changed.
52484
52485         (tID): Removed; not used.
52486         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
52487
52488 2000-02-14  Paul Eggert  <eggert@twinsun.com>
52489
52490         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
52491         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
52492
52493 2000-02-12  Jim Meyering  <meyering@lucent.com>
52494
52495         * lib/userspec.c (ISDIGIT): Define it.
52496         (isdigit): Remove definition.
52497         (is_number): Use ISDIGIT, not isdigit.
52498         <libintl.h>: Include.
52499         (_ and N_): Define.
52500         (parse_user_spec): Mark translatable strings.
52501
52502 2000-02-10  Jim Meyering  <meyering@lucent.com>
52503
52504         With these changes, nanosleep.[ch] are finally enough like the other
52505         lib/* replacement files to compile on a few more losing systems.
52506
52507         * lib/nanosleep.h: Don't include config.h.
52508         Remove prototype from declaration of nanosleep.
52509         (PARAMS): Remove now-unneeded definition.
52510         * lib/nanosleep.c: #undef nanosleep.
52511         (rpl_nanosleep): Rename from nanosleep.
52512
52513 2000-02-10  Jim Meyering  <meyering@lucent.com>
52514
52515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
52516         gnu_nanosleep to rpl_nanosleep.
52517
52518 2000-02-09  Jim Meyering  <meyering@lucent.com>
52519
52520         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
52521         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
52522
52523 2000-02-08  Akim Demaille  <akim@epita.fr>
52524
52525         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
52526         `[' and `]' and remove uses of `changequote'.
52527         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
52528         (AC_SYS_LARGEFILE): Likewise.
52529         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52530         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
52531         of changequote.
52532         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
52533         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
52534         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
52535         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
52536
52537 2000-02-05  Jim Meyering  <meyering@lucent.com>
52538
52539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
52540         Remove explicit use of AC_HEADER_TIME.  It is required by
52541         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
52542         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
52543         in autoconf whereby the expansion of the latter ended up preceding
52544         the expansion of its prerequisite, AC_HEADER_TIME.
52545         Reported by Volker Borchert.
52546
52547 2000-02-03  Jim Meyering  <meyering@lucent.com>
52548
52549         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
52550
52551 2000-02-03  Jim Meyering  <meyering@lucent.com>
52552
52553         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
52554         rather than with `#if HAVE_UTMPNAME'.
52555
52556 2000-02-02  Jim Meyering  <meyering@lucent.com>
52557
52558         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
52559         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
52560         Reported by Eli Zaretskii.
52561
52562 2000-02-01  Jim Meyering  <meyering@lucent.com>
52563
52564         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
52565
52566 2000-01-31  Jim Meyering  <meyering@lucent.com>
52567
52568         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
52569         functions.  Add the time.h and sys/time.h headers along with the
52570         AC_REQUIRE'ment of AC_HEADER_TIME.
52571
52572 2000-01-31  Jim Meyering  <meyering@lucent.com>
52573
52574         * lib/nanosleep.h (nanosleep): Guard declaration with
52575         `#if ! HAVE_DECL_NANOSLEEP'.
52576         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
52577         the declaration in that vendor's sys/timers.h.
52578         Reported by Christian Krackowizer.
52579
52580         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
52581         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
52582         (ISPRINT): Likewise.
52583         Reported by Tom Tromey.
52584
52585 2000-01-30  Jim Meyering  <meyering@lucent.com>
52586
52587         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
52588
52589         * m4/prereq.m4 (utmp_includes): Define.
52590         Check for ut_user and ut_name members in both struct utmpx
52591         and struct utmp.
52592
52593 2000-01-30  Jim Meyering  <meyering@lucent.com>
52594
52595         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
52596         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
52597         header files where only utmpx.ut_user is declared.
52598
52599         * lib/readutmp.h (UT_USER): Define.
52600
52601 2000-01-29  Jim Meyering  <meyering@lucent.com>
52602
52603         * m4/lib-check.m4: New file containing library-related checks from
52604         fileutils and sh-utils (textutils had none).
52605
52606 2000-01-28  Jim Meyering  <meyering@lucent.com>
52607
52608         * m4/perl.m4: Change format of warning message to look more like that
52609         from the missing script.  Suggestion from François Pinard.
52610
52611 2000-01-25  Jim Meyering  <meyering@lucent.com>
52612
52613         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
52614         well as time.h in the compile check.
52615         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
52616         Fix typo in cross-compiling case: s/yes/no/.
52617
52618 2000-01-23  Jim Meyering  <meyering@lucent.com>
52619
52620         * m4/jm-macros.m4: Move df-related tests here from
52621         fileutils/configure.in
52622
52623         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
52624         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
52625
52626         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
52627         s/space/ac_fsusage_space/.
52628         (jm_FILE_SYSTEM_USAGE): Take two parameters.
52629
52630         * m4/ftruncate.m4: New file (derived from part of
52631         fileutils/configure.in).
52632         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
52633         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
52634
52635         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
52636         AC_SUBST these here, rather than just in sh-util/configure.in, so
52637         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
52638         all the same.
52639         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
52640         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
52641         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
52642         (AC_SUBST(POW_LIBM)): Likewise.
52643         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
52644
52645 2000-01-23  Jim Meyering  <meyering@lucent.com>
52646
52647         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
52648         obstack.c.
52649
52650 2000-01-22  Jim Meyering  <meyering@lucent.com>
52651
52652         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
52653
52654         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
52655
52656         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
52657         configure.in
52658         (AC_CHECK_HEADERS): Likewise for sh-utils.
52659         (AC_CHECK_HEADERS): Likewise for textutils.
52660         Merge the three lists of headers.
52661
52662         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
52663         from fileutils' configure.in.
52664
52665         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
52666         code. Moved tests into their own function (_jm_DECL_HEADERS) in
52667         check-decl.m4.
52668
52669         * m4/check-decl.m4: Use #if rather than #ifdef.
52670         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
52671         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
52672         (_jm_DECL_HEADERS): Define new function.
52673         (jm_CHECK_DECLARATIONS): Require it.
52674
52675 2000-01-22  Jim Meyering  <meyering@lucent.com>
52676
52677         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
52678         [! HAVE_DECL_STRTOULL]: Declare strtoull.
52679         Required for some AIX systems.  Reported by Christian Krackowizer.
52680         [TESTING] (main): New function.
52681
52682         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
52683         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
52684         letters.
52685
52686         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
52687         iswprint.
52688
52689         * lib/strverscmp.c (ISDIGIT): Define.
52690         (strverscmp): Use ISDIGIT, not isdigit.
52691
52692 2000-01-19  Jim Meyering  <meyering@lucent.com>
52693
52694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
52695         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
52696         defines `struct timespec' in <sys/time.h>
52697
52698         * m4/c-bs-a.m4: Remove uses of changequote altogether.
52699         Thanks to Akim for explaining.
52700
52701 2000-01-17  Paul Eggert  <eggert@twinsun.com>
52702
52703         * lib/nanosleep.c (nanosleep):
52704         Don't use SA_INTERRUPT to decide whether to call sigaction, as
52705         POSIX.1 doesn't require SA_INTERRUPT and some systems
52706         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
52707         it's been part of POSIX.1 since day 1 (in 1988).
52708
52709 2000-01-17  Jim Meyering  <meyering@lucent.com>
52710
52711         * lib/interlock: Remove unused file.  Reported by François Pinard.
52712
52713 2000-01-16  Paul Eggert  <eggert@twinsun.com>
52714
52715         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
52716         alert, backslash, formfeed, and vertical tab unnecessarily in
52717         shell quoting style.
52718
52719 2000-01-16  Jim Meyering  <meyering@lucent.com>
52720
52721         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
52722         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
52723         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
52724         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
52725
52726 2000-01-16  Jim Meyering  <meyering@lucent.com>
52727
52728         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
52729         because the latter didn't work.
52730
52731 2000-01-15  Jim Meyering  <meyering@lucent.com>
52732
52733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
52734         (AC_REPLACE_FUNCS): Add memcpy and memset.
52735         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
52736         Add strpbrk.
52737         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
52738
52739 2000-01-12  Jim Meyering  <meyering@lucent.com>
52740
52741         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
52742         (jm_PREREQ): Use it.
52743         (jm_PREREQ_READUTMP): New macro.
52744         (jm_PREREQ): Use it.
52745
52746 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52747
52748         Quote multibyte characters correctly.
52749         * m4/c-bs-a.m4: New file.
52750         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
52751         (jm_PREREQ): Use it.
52752
52753 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52754
52755         * m4/uintmax_t.m4: Port to autoconf 2.13.
52756
52757 2000-01-08  Jim Meyering  <meyering@ascend.com>
52758
52759         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
52760         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
52761
52762 2000-01-04  Jim Meyering  <meyering@ascend.com>
52763
52764         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
52765         jm_STRUCT_DIRENT_D_TYPE.
52766         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
52767         jm_STRUCT_DIRENT_D_INO.
52768         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
52769         jm_STRUCT_UTIMBUF.
52770         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
52771         renamings.
52772         * m4/utime.m4: Likewise.
52773
52774         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
52775         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
52776
52777 2000-01-03  Paul Eggert  <eggert@twinsun.com>
52778
52779         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
52780         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
52781
52782 2000-01-02  Jim Meyering  <meyering@ascend.com>
52783
52784         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
52785         remember if this is necessary.
52786
52787 1999-12-26  Jim Meyering  <meyering@ascend.com>
52788
52789         * m4/jm-macros.m4: Use it here.
52790         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
52791
52792 1999-12-23  Jim Meyering  <meyering@ascend.com>
52793
52794         * m4/jm-macros.m4: Check for clock_gettime (moved from
52795         fileutils/configure.in)
52796         Check for gettimeofday.
52797
52798 1999-12-20  Jim Meyering  <meyering@ascend.com>
52799
52800         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
52801         autoconf-2.14a-1999-12-20.
52802
52803 1999-12-19  Jim Meyering  <meyering@ascend.com>
52804
52805         * m4/lstat-slash.m4: New file.
52806         * m4/jm-macros.m4: Use the new macro:
52807         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52808
52809 1999-12-07  Jim Meyering  <meyering@ascend.com>
52810
52811         * m4/perl.m4: Require that File::Compare be available, too.
52812         Too many systems seem to lack it.
52813
52814         * m4/strftime.m4: Add checks for most of the cpp macros tested in
52815         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
52816
52817 1999-11-18  Paul Eggert  <eggert@twinsun.com>
52818
52819         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
52820         problem with the QNX 4.25 shell, which doesn't propagate exit
52821         status of failed commands inside shell assignments.
52822
52823 1999-11-17  Jim Meyering  <meyering@ascend.com>
52824
52825         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
52826
52827 1999-11-07  Jim Meyering  <meyering@ascend.com>
52828
52829         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
52830
52831 1999-11-06  Jim Meyering  <meyering@ascend.com>
52832
52833         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
52834         * m4/jm-macros.m4 (jm_MACROS): Use it here.
52835
52836 1999-11-05  Jim Meyering  <meyering@ascend.com>
52837
52838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
52839         configure.in of textutils, fileutils, and sh-utils into this one
52840         (shared between those packages) file.
52841         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
52842         AC_STRUCT_ST_BLKSIZE.
52843
52844 1999-11-03  Jim Meyering  <meyering@ascend.com>
52845
52846         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
52847         of AC_CHECK_TYPE checks includes unistd.h.
52848         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
52849         Suggestion from Akim Demaille.
52850
52851 1999-10-30  Jim Meyering  <meyering@ascend.com>
52852
52853         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
52854         m4-quoted string.
52855         * m4/ls-mntd-fs.m4: Likewise.
52856         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
52857         * m4/jm-winsz1.m4: Likewise.
52858
52859         * m4/const.m4: Remove file, since the fix made it into the experimental
52860         version of autoconf.
52861         * m4/mktime.m4: Likewise.
52862
52863         * m4/check-type.m4: Remove file, now that the latest version of
52864         AC_CHECK_TYPE takes a third arg to specify additional #includes.
52865
52866         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
52867         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
52868         AC_CHECK_TYPE.
52869
52870 1999-10-04  Jim Meyering  <meyering@ascend.com>
52871
52872         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
52873
52874 1999-09-22  Paul Eggert  <eggert@twinsun.com>
52875
52876         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
52877         2.95.1 bug with HP-UX 10.20.
52878
52879 1999-09-17  Jim Meyering  <meyering@ascend.com>
52880
52881         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
52882         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
52883         due to missing strdup (against sh-utils-2.0).
52884
52885 1999-08-29  Jim Meyering  <meyering@ascend.com>
52886
52887         * m4/jm-macros.m4: Require jm_BISON.
52888         * m4/bison.m4: New file.
52889
52890 1999-08-17  Paul Eggert  <eggert@twinsun.com>
52891
52892         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
52893         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
52894
52895 1999-08-05  Jim Meyering  <meyering@ascend.com>
52896
52897         * m4/getline.m4: Rename test file from conftestdata to conftest.data
52898         to avoid conflicts with `conftest' on 8+3 filesystems.
52899         Suggestion from Eli Zaretskii.
52900
52901 1999-08-04  Jim Meyering  <meyering@ascend.com>
52902
52903         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
52904         fileutils and sh-utils (textutils's getline test was inadequate).
52905         (AM_FUNC_GETLINE): Run this test.
52906         (AC_CHECK_FUNCS): Check for getdelim.
52907         Reported by Bob Proulx.
52908
52909 1999-08-02  Jim Meyering  <meyering@ascend.com>
52910
52911         * m4/jm-macros.m4: Add a comment.
52912
52913 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52914
52915         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
52916         <inttypes.h> defines strtoumax as a macro (and not as a
52917         function).
52918
52919 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52920
52921         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
52922         that we can shift, multiply and divide unsigned long long
52923         values; Ultrix cc can't do it.
52924
52925 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52926
52927         * m4/mktime.m4: New file, which is a preview of what should appear
52928         in the next public autoconf release.
52929
52930 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52931
52932         * m4/lfs.m4: Remove this file.
52933         * m4/largefile.m4: New file.  It contains the old contents of
52934         lfs.m4, except that all names with prefix AC_LFS have been
52935         changed to use the prefix AC_SYS_LARGEFILE instead, to be
52936         compatible with future autoconf versions.  Also, some minor m4
52937         quoting problems have been fixed.
52938
52939 1999-08-01  Paul Eggert  <eggert@twinsun.com>
52940
52941         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
52942         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
52943         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
52944         and simplify the shell code.
52945
52946 1999-08-01  Jim Meyering  <meyering@ascend.com>
52947
52948         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
52949         m4.
52950
52951 1999-07-20  Jim Meyering  <meyering@ascend.com>
52952
52953         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
52954
52955 1999-07-15  Jim Meyering  <meyering@ascend.com>
52956
52957         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
52958
52959 1999-05-22  Jim Meyering  <meyering@ascend.com>
52960
52961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
52962
52963 1999-05-20  Jim Meyering  <meyering@ascend.com>
52964
52965         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
52966         Add a colon after each `then' in case $4 is empty.
52967
52968 1999-05-16  Jim Meyering  <meyering@ascend.com>
52969
52970         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
52971
52972 1999-05-10  Jim Meyering  <meyering@ascend.com>
52973
52974         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
52975
52976         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
52977         AC_FUNC_MKTIME.
52978
52979 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
52980
52981         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
52982
52983 1999-05-04  Paul Eggert  <eggert@twinsun.com>
52984
52985         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
52986         not CPPFLAGS, so that linking works correctly in IRIX.
52987
52988 1999-04-30  Paul Eggert  <eggert@twinsun.com>
52989
52990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
52991
52992 1999-04-20  Paul Eggert  <eggert@twinsun.com>
52993
52994         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
52995         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
52996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
52997         jm_AC_TYPE_UNSIGNED_LONG_LONG.
52998         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
52999
53000         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
53001
53002 1999-04-20  Jim Meyering  <meyering@ascend.com>
53003
53004         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
53005         AC_REPLACE xstroull if necessary.  From Paul Eggert.
53006         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
53007
53008 1999-04-18  Jim Meyering  <meyering@ascend.com>
53009
53010         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
53011         * m4/jm-macros.m4: Use it.
53012
53013 1999-04-06  Jim Meyering  <meyering@ascend.com>
53014
53015         * m4/strftime.m4: Remove test for %f.
53016
53017 1999-03-29  Jim Meyering  <meyering@ascend.com>
53018
53019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
53020         superset of the AC_TYPE_* checks in the textutils, fileutils,
53021         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
53022         AC_TYPE_PID_T.
53023
53024 1999-03-28  Jim Meyering  <meyering@ascend.com>
53025
53026         * m4/jm-macros.m4: Define GNU_PACKAGE here.
53027         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
53028         replaced e.g., in the *.sh files of the sh-utils.
53029
53030 1999-03-20  Jim Meyering  <meyering@ascend.com>
53031
53032         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
53033         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
53034         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
53035
53036 1999-03-19  Jim Meyering  <meyering@ascend.com>
53037
53038         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
53039
53040 1999-03-12  Jim Meyering  <meyering@ascend.com>
53041
53042         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
53043
53044 1999-03-07  Jim Meyering  <meyering@ascend.com>
53045
53046         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
53047         declared.
53048
53049 1999-02-17  Jim Meyering  <meyering@ascend.com>
53050
53051         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
53052         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
53053
53054 1999-02-07  Jim Meyering  <meyering@ascend.com>
53055
53056         * m4/group-member.m4: New file -- extracted from sh-utils'
53057         configure.in.
53058
53059         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
53060         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
53061
53062 1999-02-06  Jim Meyering  <meyering@ascend.com>
53063
53064         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
53065         * m4/fnmatch.m4: Likewise.
53066         * m4/getgroups.m4: Likewise.
53067         * m4/lstat.m4: Likewise.
53068         * m4/malloc.m4: Likewise.
53069         * m4/putenv.m4: Likewise.
53070         * m4/realloc.m4: Likewise.
53071         * m4/regex.m4: Likewise.
53072         * m4/stat.m4: Likewise.
53073         * m4/strftime.m4: Likewise.
53074         Suggestion from Alain Magloire.
53075
53076         * m4/chown.m4: Use `.$ac_objext', not `.o'.
53077         * m4/fnmatch.m4: Likewise.
53078         * m4/getgroups.m4: Likewise.
53079         * m4/getline.m4: Likewise.
53080         * m4/lstat.m4: Likewise.
53081         * m4/malloc.m4: Likewise.
53082         * m4/memcmp.m4: Likewise.
53083         * m4/putenv.m4: Likewise.
53084         * m4/realloc.m4: Likewise.
53085         * m4/regex.m4: Likewise.
53086         * m4/stat.m4: Likewise.
53087         * m4/strftime.m4: Likewise.
53088         Suggestion from Alain Magloire.
53089
53090         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
53091         an argument.
53092
53093         * m4/regex.m4: Add a run-time Test for proper operation of
53094         re_compile_pattern.
53095
53096 1999-01-31  Jim Meyering  <meyering@ascend.com>
53097
53098         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
53099
53100 1999-01-30  Jim Meyering  <meyering@ascend.com>
53101
53102         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
53103
53104         * m4/jm-mktime.m4: Make this a wrapper around the official
53105         AM_FUNC_MKTIME rather than my private copy, now that the official one
53106         is up to date.
53107         * m4/mktime.m4: Remove file.
53108
53109         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
53110         * m4/uptime.m4: Likewise.
53111         * m4/uintmax_t.m4: Likewise.
53112
53113 1999-01-28  Jim Meyering  <meyering@ascend.com>
53114
53115         * m4/jm-macros.m4: Use jm_AFS.
53116         * m4/afs.m4: New file (from fileutils' configure.in).
53117
53118         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
53119         * m4/chown.m4: Likewise.
53120         * m4/d-ino.m4: Likewise.
53121         * m4/d-type.m4: Likewise.
53122         * m4/fnmatch.m4: Likewise.
53123         * m4/getgroups.m4: Likewise.
53124         * m4/gettext.m4: Likewise.
53125         * m4/jm-mktime.m4: Likewise.
53126         * m4/jm-winsz2.m4: Likewise.
53127         * m4/lcmessage.m4: Likewise.
53128         * m4/ls-mntd-fs.m4: Likewise.
53129         * m4/malloc.m4: Likewise.
53130         * m4/memcmp.m4: Likewise.
53131         * m4/putenv.m4: Likewise.
53132         * m4/realloc.m4: Likewise.
53133         * m4/st_mtim.m4: Likewise.
53134         * m4/strftime.m4: Likewise.
53135
53136 1999-01-16  Jim Meyering  <meyering@ascend.com>
53137
53138         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
53139         (ARGMATCH_DIE_DECL): Define.
53140
53141 1999-01-12  Jim Meyering  <meyering@ascend.com>
53142
53143         * m4/Makefile.am.in: Rewrite to avoid using fmt.
53144         Reported by Lars Hecking.
53145
53146 1999-01-10  Jim Meyering  <meyering@ascend.com>
53147
53148         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
53149         gross kludge.
53150         * m4/inttypes_h.m4: Likewise.
53151         * m4/lstat.m4: Likewise.
53152         * m4/malloc.m4: Likewise.
53153         * m4/readdir.m4: Likewise.
53154         * m4/realloc.m4: Likewise.
53155         * m4/st_dm_mode.m4: Likewise.
53156         * m4/stat.m4: Likewise.
53157         * m4/utimbuf.m4: Likewise.
53158         * m4/utimes.m4: Likewise.
53159
53160         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
53161         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
53162         comments in config.h.in are meaningful.
53163
53164         * m4/jm-macros.m4: Require autoconf-2.13 here.
53165
53166         * m4/regex.m4: By default, don't use the included regex.c on systems
53167         with glibc 2.  Suggestion from Uli Drepper.
53168
53169 1999-01-02  Jim Meyering  <meyering@ascend.com>
53170
53171         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
53172
53173 1998-12-18  Jim Meyering  <meyering@ascend.com>
53174
53175         * m4/Makefile.am.in (Makefile.am): Simplify rule.
53176         Based on a suggestion from Lars Hecking.
53177
53178 1998-11-16  Paul Eggert  <eggert@twinsun.com>
53179
53180         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
53181
53182 1998-11-16  Jim Meyering  <meyering@ascend.com>
53183
53184         * m4/lfs.m4: Double-quote the `uname...` expression.
53185
53186 1998-11-14  Jim Meyering  <meyering@ascend.com>
53187
53188         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
53189         * m4/stat.m4: Likewise.
53190
53191 1998-11-03  Jim Meyering  <meyering@ascend.com>
53192
53193         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
53194         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
53195
53196 1998-10-18  Jim Meyering  <meyering@ascend.com>
53197
53198         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
53199
53200 1998-10-17  Jim Meyering  <meyering@ascend.com>
53201
53202         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
53203         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
53204         calls for those previously hard-coded headers.  Instead, take a new
53205         parameter.
53206         (jm_CHECK_DECLARATIONS): Reflect interface change.
53207         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
53208         (jm_CHECK_DECL_LOCALTIME_R): New macro.
53209
53210         * m4/mktime.m4: Test for spring-forward gap before long-running test.
53211
53212 1998-10-14  Jim Meyering  <meyering@ascend.com>
53213
53214         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
53215         instead of "TZ=America/Vancouver".  From Paul Eggert.
53216
53217 1998-10-11  Jim Meyering  <meyering@ascend.com>
53218
53219         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
53220         This adds a test for a recently added compatibility fix for mktime.c.
53221         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
53222
53223 1998-09-27  Jim Meyering  <meyering@ascend.com>
53224
53225         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
53226
53227         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
53228         ../configure.in, including a change from Gordon Matzigkeit to allow
53229         cross-compiling for the Hurd.
53230
53231         * m4/glibc.m4: New file/macro to test for the GNU C Library
53232         versions 1 and 2.  From Gordon Matzigkeit.
53233         Indent.
53234
53235 1998-09-21  Jim Meyering  <meyering@ascend.com>
53236
53237         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
53238
53239 1998-08-18  Paul Eggert  <eggert@twinsun.com>
53240
53241         Port nanosecond-resolution times to UnixWare 2.1.2 and
53242         pedantic Solaris 2.6.
53243
53244         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
53245         AC_STRUCT_ST_MTIM.
53246         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
53247         Generate name of ns member, instead of just 1 or undef.
53248         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
53249
53250 1998-08-15  Jim Meyering  <meyering@ascend.com>
53251
53252         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
53253         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
53254         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
53255         instead of jm_TYPE_SSIZE_T.
53256
53257 1998-08-12  Jim Meyering  <meyering@ascend.com>
53258
53259         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
53260
53261 1998-08-02  Jim Meyering  <meyering@ascend.com>
53262
53263         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
53264         in acconfig.h manually.
53265
53266 1998-07-31  Paul Eggert  <eggert@twinsun.com>
53267
53268         * m4/st_mtim.m4: New file.
53269
53270 1998-07-28  Jim Meyering  <meyering@ascend.com>
53271
53272         * m4/utimes.m4: Undef stat.
53273
53274 1998-07-25  Jim Meyering  <meyering@ascend.com>
53275
53276         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
53277         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
53278
53279 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
53280
53281         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
53282         uid and gid actually remain unchanged.
53283
53284 1998-07-07  Jim Meyering  <meyering@ascend.com>
53285
53286         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
53287
53288 1998-07-04  Jim Meyering  <meyering@ascend.com>
53289
53290         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
53291         to prove that this macro can be used in packages without regex.c.
53292
53293 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
53294
53295         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
53296         is to be used.
53297
53298 1998-07-03  Jim Meyering  <meyering@ascend.com>
53299
53300         * m4/gettext.m4: Add -lintl if it's found to be necessary.
53301
53302         * m4/gettext.m4: New file -- from gettext-0.10.35.
53303         * m4/lcmessage.m4: Likewise.
53304         * m4/progtest.m4: Likewise.
53305
53306         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
53307         * m4/jm-macros.m4: Require the new macro.
53308
53309 1998-06-29  Jim Meyering  <meyering@ascend.com>
53310
53311         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
53312         for the definition of NGROUPS (used in a system header included
53313         by sys/mount.h).
53314
53315 1998-06-28  Jim Meyering  <meyering@ascend.com>
53316
53317         * m4/ls-mntd-fs.m4: New file.
53318         * m4/fstypename.m4: New file.
53319
53320         * m4/jm-macros.m4: Require the new macro.
53321         * m4/jm-glibc-io.m4: New file.
53322
53323 1998-05-19  Jim Meyering  <meyering@ascend.com>
53324
53325         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
53326         * m4/lchown.m4: New file.
53327
53328         * m4/Makefile.am.in: New file.
53329         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
53330
53331 1998-05-14  Jim Meyering  <meyering@ascend.com>
53332
53333         * m4/Makefile.am (EXTRA_DIST): Add them.
53334         * m4/jm-macros.m4: New file.
53335         * m4/utimbuf.m4: New file.
53336
53337 1998-05-12  Jim Meyering  <meyering@ascend.com>
53338
53339         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
53340
53341 1998-05-11  Jim Meyering  <meyering@ascend.com>
53342
53343         * m4/isc-posix.m4: New file.
53344
53345 1998-05-10  Jim Meyering  <meyering@ascend.com>
53346
53347         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
53348
53349 1998-05-09  Jim Meyering  <meyering@ascend.com>
53350
53351         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
53352         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
53353         with automake.
53354
53355         * m4/ssize_t.m4: New file.
53356         * m4/mktime.m4: Remove file -- the new automake has this now.
53357
53358 1998-04-26  Jim Meyering  <meyering@ascend.com>
53359
53360         * m4/assert.m4: New file.
53361         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
53362
53363 1998-04-05  Jim Meyering  <meyering@ascend.com>
53364
53365         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
53366         (jm_PREREQ): Use it here.
53367
53368 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
53369
53370         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
53371         in acconfig.h.
53372
53373 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
53374
53375         * m4/prereq.m4: New file.
53376         * m4/error.m4: New file.
53377         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
53378
53379 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
53380
53381         * m4/getline.m4: Don't set am_cv_func_working_getline before the
53382         cache-check for the same variable -- that defeated the purpose of
53383         the test; the test program was never run.  This was a problem only
53384         on systems with losing getline functions -- HP-UX 10.20 is one.
53385         Reported by Bjorn Helgaas.
53386
53387 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
53388
53389         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
53390
53391 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
53392
53393         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
53394
53395         * m4/const.m4: New file.  Use an initializer in this declaration
53396         typedef int charset[2]; const charset x;
53397         Reported by Bob Glickstein.
53398
53399 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
53400
53401         * m4/chown.m4: Fix reversed types on -1 args to chown.
53402         From Kaveh Ghazi.
53403
53404 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
53405
53406         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
53407         Add lseek and memchr.
53408
53409         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
53410         T.E.Dickey <dickey@clark.net> said that some older preprocessors
53411         have a 20-character limit on names.
53412
53413 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
53414
53415         * m4/inttypes_h.m4: New file.
53416         * m4/uintmax_t.m4: New file.
53417         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
53418
53419
53420         -----
53421
53422         Local Variables:
53423         coding: utf-8
53424         End:
53425
53426         Copyright (C) 1997-2009 Free Software Foundation, Inc.
53427
53428         Copying and distribution of this file, with or without
53429         modification, are permitted provided the copyright notice
53430         and this notice are preserved.