fcntl-h: add O_TTY_INIT support
[gnulib.git] / ChangeLog
1 2009-08-23  Eric Blake  <ebb9@byu.net>
2
3         fcntl-h: add O_TTY_INIT support
4         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
5         * tests/test-fcntl-h.c (o): Test it.
6         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7
8         fcntl-h: rename from fcntl, in preparation for fcntl(2)
9         * modules/fcntl: Move <fcntl.h> header replacement...
10         * modules/fcntl-h: ...to new name, so as not to collide with
11         like-named function.
12         * tests/test-fcntl.c: Rename...
13         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
14         * modules/fcntl-tests: Rename...
15         * modules/fcntl-h-tests: ...to this.  Update test file name.
16         * modules/chdir-long (Depends-on): Update clients.
17         * modules/chdir-safer (Depends-on): Likewise.
18         * modules/fcntl-safer (Depends-on): Likewise.
19         * modules/fts (Depends-on): Likewise.
20         * modules/mkancesdirs (Depends-on): Likewise.
21         * modules/mkdir-p (Depends-on): Likewise.
22         * modules/open (Depends-on): Likewise.
23         * modules/savewd (Depends-on): Likewise.
24         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26
27 2009-08-22  Bruno Haible  <bruno@clisp.org>
28
29         * modules/binary-io (License): Relicense under LGPL.
30         * modules/pipe2 (License): Likewise.
31
32 2009-08-22  Bruno Haible  <bruno@clisp.org>
33
34         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
35         return value.
36         * lib/pipe-filter-gi.c (filter_init): Likewise.
37         Reported by Eric Blake.
38
39 2009-08-22  Bruno Haible  <bruno@clisp.org>
40
41         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42         * modules/pipe (Depends-on): Add pipe2.
43
44 2009-08-22  Bruno Haible  <bruno@clisp.org>
45
46         Tests for module 'pipe2'.
47         * modules/pipe2-tests: New file.
48         * tests/test-pipe2.c: New file.
49
50         New module 'pipe2'.
51         * lib/unistd.in.h (pipe2): New declaration.
52         * lib/pipe2.c: New file.
53         * m4/pipe2.m4: New file.
54         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
55         HAVE_PIPE2.
56         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
57         * modules/pipe2: New file.
58         * doc/glibc-functions/pipe2.texi: Mention the new module.
59
60 2009-08-22  Bruno Haible  <bruno@clisp.org>
61
62         Reference some new glibc functions.
63         * doc/glibc-functions/accept4.texi: New file.
64         * doc/glibc-functions/dup3.texi: New file.
65         * doc/glibc-functions/mkostemp.texi: New file.
66         * doc/glibc-functions/pipe2.texi: New file.
67         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
68         (Glibc sys/socket.h): Refer to accept4.
69         (Glibc unistd.h): Refer to dup3, pipe2.
70         Reported by Eric Blake.
71
72 2009-08-22  Jim Meyering  <meyering@redhat.com>
73             Bruno Haible  <bruno@clisp.org>
74
75         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
76         This makes it so packages using automake-1.11's silent-rules option
77         can print e.g., a single "GEN    configmake.h" line, rather than
78         the 30+ statements that perform the job.  If you want to see the
79         actual commands, you can still run "make V=1".
80         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81         so that make output is abbreviated when those variables are defined
82         appropriately.
83         * modules/argz: Likewise.
84         * modules/arpa_inet: Likewise.
85         * modules/byteswap: Likewise.
86         * modules/configmake: Likewise.
87         * modules/dirent: Likewise.
88         * modules/errno: Likewise.
89         * modules/fcntl: Likewise.
90         * modules/float: Likewise.
91         * modules/fnmatch: Likewise.
92         * modules/getopt-posix: Likewise.
93         * modules/glob: Likewise.
94         * modules/iconv_open: Likewise.
95         * modules/inttypes: Likewise.
96         * modules/localcharset: Likewise.
97         * modules/locale: Likewise.
98         * modules/math: Likewise.
99         * modules/netdb: Likewise.
100         * modules/netinet_in: Likewise.
101         * modules/poll: Likewise.
102         * modules/posix_spawnp-tests: Likewise.
103         * modules/sched: Likewise.
104         * modules/search: Likewise.
105         * modules/selinux-h: Likewise.
106         * modules/signal: Likewise.
107         * modules/spawn: Likewise.
108         * modules/stdarg: Likewise.
109         * modules/stdbool: Likewise.
110         * modules/stddef: Likewise.
111         * modules/stdint: Likewise.
112         * modules/stdio: Likewise.
113         * modules/stdlib: Likewise.
114         * modules/string: Likewise.
115         * modules/strings: Likewise.
116         * modules/sys_file: Likewise.
117         * modules/sys_ioctl: Likewise.
118         * modules/sys_select: Likewise.
119         * modules/sys_socket: Likewise.
120         * modules/sys_stat: Likewise.
121         * modules/sys_time: Likewise.
122         * modules/sys_times: Likewise.
123         * modules/sys_utsname: Likewise.
124         * modules/sys_wait: Likewise.
125         * modules/sysexits: Likewise.
126         * modules/time: Likewise.
127         * modules/unistd: Likewise.
128         * modules/wchar: Likewise.
129         * modules/wctype: Likewise.
130
131 2009-08-22  Jim Meyering  <meyering@redhat.com>
132
133         announce-gen: detect write failure
134         * build-aux/announce-gen: Add Coda at end.
135         Remove equivalent-but-more-verbose block at top.
136
137 2009-08-19  Akim Demaille  <demaille@gostai.com>
138
139         bootstrap: --help to stdout.
140         * bootstrap (usage): Don't send --help to stderr.
141         Use a here doc instead of a long string.
142
143 2009-08-21  Eric Blake  <ebb9@byu.net>
144
145         test-popen-safer: split from test-popen
146         * tests/test-popen.c (main): Move...
147         * tests/test-popen.h: ...into new file.
148         * tests/test-popen-safer2.c: New file.
149         * modules/popen-tests (Files): Add test-popen.h.
150         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
151         Suggested by Bruno Haible.
152
153         test-fcntl-safer: split from test-open
154         * tests/test-open.c (main): Move...
155         * tests/test-open.h: ...into new file.
156         * tests/test-fcntl-safer.c: New file.
157         * modules/open-tests (Files): Add test-open.h.
158         * modules/fcntl-safer-tests: New file.
159         Suggested by Bruno Haible.
160
161         test-fopen-safer: split from test-fopen
162         * tests/test-fopen.c (main): Move...
163         * tests/test-fopen.h: ...into new file.
164         * tests/test-fopen-safer.c: New file.
165         * modules/fopen-tests (Files): Add test-fopen.h.
166         * modules/fopen-safer-tests: New file.
167         Suggested by Bruno Haible.
168
169 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
170
171         popen-safer: test O_CLOEXEC at run-time.
172         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
173
174 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
175
176         fcntl: move more flags to the header
177         * lib/cloexec.c: Do not define FD_CLOEXEC here.
178         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
179         * lib/fcntl.in.h: Do both things here.
180
181 2009-08-21  Jim Meyering  <meyering@redhat.com>
182
183         consistently remove $@-t before redirecting to it
184         * modules/argz: Remove $@-t and $@ before redirecting to the former.
185         * modules/alloca-opt: Likewise.
186         * modules/byteswap: Likewise.
187         * modules/fnmatch: Likewise.
188         * modules/getopt-posix: Likewise.
189         * modules/glob: Likewise.
190         * modules/poll: Likewise.
191         * modules/posix_spawnp-tests: Likewise.
192         * modules/sys_socket: Likewise.
193         * modules/sysexits: Likewise.
194
195 2009-08-21  Eric Blake  <ebb9@byu.net>
196
197         popen: simplify access to original popen
198         * lib/popen.c (rpl_popen): No need to worry about popen being a
199         macro.
200         Reported by Bruno Haible.
201
202 2009-08-20  Eric Blake  <ebb9@byu.net>
203
204         build: avoid some compiler warnings
205         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
206         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
207         type.
208         (new_exclude_segment, excluded_file_pattern_p)
209         (excluded_file_name_p): Reduce scope.
210         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
211         old-style declaration.
212
213 2009-08-20  Simon Josefsson  <simon@josefsson.org>
214
215         * tests/test-exclude1.sh: Handle Windows EOL.
216         * tests/test-exclude2.sh: Likewise.
217         * tests/test-exclude3.sh: Likewise.
218         * tests/test-exclude4.sh: Likewise.
219         * tests/test-exclude5.sh: Likewise.
220         * tests/test-exclude6.sh: Likewise.
221         * tests/test-exclude7.sh: Likewise.
222
223 2009-08-19  Akim Demaille  <demaille@gostai.com>
224
225         bootstrap: find sha1sum when named gsha1sum.
226         * bootstrap (find_tool): New.
227         ($SHA1SUM): New.
228         Use it.
229
230 2009-08-20  Jim Meyering  <meyering@redhat.com>
231
232         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
233         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
234         expression that converts "." in a file name to "\." in the resulting
235         regexp.  Start with a dummy statement, so that prior shell variable
236         definitions are expanded portably.  Reported by Simon Josefsson.
237
238 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
239
240         Fix polling for writeability of a screen buffer.
241         * lib/poll.c: Distinguish input and screen buffers for the
242         Win32 implementation.
243         * lib/select.c: Likewise.
244
245 2009-08-19  Eric Blake  <ebb9@byu.net>
246
247         popen-safer: prevent popen from clobbering std descriptors
248         * modules/popen-safer: New file.
249         * lib/popen-safer.c: Likewise.
250         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
251         * lib/stdio--.h (popen): Provide override.
252         * lib/stdio-safer.h (popen_safer): Provide declaration.
253         * tests/test-popen.c (includes): Partially test this.
254         * modules/popen-safer-tests: New file, for more tests.
255         * tests/test-popen-safer.c: Likewise.
256         * MODULES.html.sh (file stream based Input/Output): Mention it.
257
258         tests: test some of the *-safer modules
259         * modules/fopen-safer (Depends-on): Add fopen.
260         * modules/fcntl-safer (Depends-on): Add fcntl.
261         * modules/stdlib-safer (Depends-on): Add stdlib.
262         (configure.ac): Set indicator.
263         * modules/unistd-safer (configure.ac): Likewise.
264         * modules/tmpfile-safer (configure.ac): Likewise.
265         (Depends-on): Add tmpfile.
266         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
267         active.
268         * tests/test-fopen.c (includes): Test safer versions when they are
269         in use.
270         * tests/test-open.c (includes): Likewise.
271
272         popen: fix cygwin 1.5 bug when stdin closed
273         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
274         * modules/popen: New file.
275         * modules/popen-tests: Likewise.
276         * tests/test-popen.c: Likewise.
277         * m4/popen.m4: Likewise.
278         * lib/popen.c: Likewise.
279         * lib/stdio.in.h (popen): New declaration.
280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
281         * modules/stdio (Makefile.am): Likewise.
282         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
283
284 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
285
286         maint.mk: give full control over update-copyright exclusions
287         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
288         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
289         (update-copyright): Don't force inclusion of top-level
290         ChangeLog.  Don't force exclusion of all COPYING files, but make
291         them the default exclusion instead.
292
293 2009-08-16  Bruno Haible  <bruno@clisp.org>
294
295         Fix test failures on Solaris 10.
296         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
297         tests when Solaris iconv() is used.
298         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
299         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
300         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
301         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
302         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
303
304 2009-08-16  Bruno Haible  <bruno@clisp.org>
305
306         Fix test failures on Solaris 10.
307         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
308         'tr' program and pass it as first argument.
309         * tests/test-pipe-filter-gi1.sh: Likewise.
310         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
311         program as first argument.
312         * tests/test-pipe-filter-gi1.c (main): Likewise.
313
314 2009-08-16  Eric Blake  <ebb9@byu.net>
315
316         fpurge: fix previous commits
317         * modules/fpurge (Makefile.am): Make replacement conditional,
318         partially reverting 2007-04-29 change; missed in previous
319         attempt.
320         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
321         is missing.
322
323 2009-08-16  Bruno Haible  <bruno@clisp.org>
324
325         Clarify fpurge's effect on the file position.
326         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
327         * tests/test-fpurge.c (main): Make a second pass for checking the file
328         position.
329
330 2009-08-16  Bruno Haible  <bruno@clisp.org>
331
332         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
333         declaration of fpurge is missing.
334         * tests/test-fpurge.c (main): Check that the file has not more contents
335         than expected. Close the file before removing it.
336
337 2009-08-15  Eric Blake  <ebb9@byu.net>
338
339         fpurge: don't wrap working cygwin implementation
340         * lib/fpurge.c (fpurge): Fix comment typo.
341         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
342         1.7 to avoid replacement.
343         * tests/test-fpurge.c (main): Enhance test.
344
345 2009-08-15  Eric Blake  <ebb9@byu.net>
346         and Jim Meyering  <meyering@redhat.com>
347
348         test-update-copyright: skip if perl is insufficient
349         * tests/test-update-copyright.sh: Failure to run maintainer tool
350         should not cause testsuite failure on cygwin 1.5.
351
352 2009-08-14  Eric Blake  <ebb9@byu.net>
353
354         doc: mention more functions added in cygwin 1.7.0
355         * doc/posix-headers/limits.texi (limits.h): Update for recent
356         cygwin additions.
357         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
358         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
359         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
360         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
361         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
362
363 2009-08-14  Eric Blake  <ebb9@byu.net>
364
365         maint.mk: simplify update-copyright rule
366         * top/maint.mk (update-copyright-local): Delete, and document how
367         to do it in cfg.mk instead.
368         (update-copyright-exclude-regexp): Delete, and document how to do
369         it in .x-update-copyright instead.
370         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
371         exclude ChangeLog.
372
373 2009-08-14  Bruno Haible  <bruno@clisp.org>
374
375         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
376
377 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
378
379         maint.mk: support update-copyright-env
380         * top/maint.mk (update-copyright-env): Define place-holder.
381         (update-copyright): Expand $(update-copyright-env) before
382         invoking update-copyright.
383
384 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
385
386         update-copyright: implement forced reformatting
387         * build-aux/update-copyright: Implement and document
388         UPDATE_COPYRIGHT_FORCE.
389         * tests/test-update-copyright.sh: Test it.
390
391 2009-08-14  Eric Blake  <ebb9@byu.net>
392         and Bruno Haible  <bruno@clisp.org>
393
394         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
395         * tests/test-locale.c: Revert previous patch related to NULL.
396         * tests/test-stdio.c: Likewise.
397         * tests/test-stdlib.c: Likewise.
398         * tests/test-string.c: Likewise.
399         * tests/test-unistd.c: Likewise.
400         * modules/time-tests (Depends-on): Add verify.
401         * modules/wchar-tests (Depends-on): Likewise.
402         * tests/test-time.c: Test for NULL compliance.
403         * tests/test-wchar.c: Likewise.
404         * modules/locale (Depends-on): Add stddef.
405         * modules/stdio (Depends-on): Likewise.
406         * modules/stdlib (Depends-on): Likewise.
407         * modules/string (Depends-on): Likewise.
408         * modules/time (Depends-on): Likewise.
409         * modules/unistd (Depends-on): Likewise.
410         * modules/wchar (Depends-on): Likewise.
411         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
412         * lib/stdlib.in.h (includes): Likewise.
413         * lib/string.in.h (includes): Likewise.
414         * lib/time.in.h (includes): Likewise.
415         * lib/unistd.in.h (includes): Likewise.
416         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
417         replaced.
418         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
419         * m4/stddef_h.m4: New file.
420         * modules/stddef: Likewise.
421         * lib/stddef.in.h: Likewise.
422         * modules/stddef-tests: Likewise.
423         * tests/test-stddef.c: Likewise.
424         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
425         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
426         * doc/posix-headers/locale.texi (locale.h): Likewise.
427         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
428         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
429         * doc/posix-headers/string.texi (string.h): Likewise.
430         * doc/posix-headers/time.texi (time.h): Likewise.
431         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
432         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
433
434 2009-08-14  Eric Blake  <ebb9@byu.net>
435
436         doc: improve git diff of texinfo files
437         * .gitattributes: Add rule for *.texi files, with hint on how to
438         use it.
439         Copied from m4, and based on a report by Bruno Haible.
440
441 2009-08-14  Bruno Haible  <bruno@clisp.org>
442
443         Disable multithread support by default on Cygwin 1.5.x for real.
444         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
445
446 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
447
448         update-copyright: much ado about intervals
449         * build-aux/update-copyright: Implement and document
450         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
451         of copyright year intervals.
452         Also, document UPDATE_COPYRIGHT_YEAR.
453         * tests/test-update-copyright.sh: Test it.
454
455         update-copyright: convert 2-digit to 4-digit years
456         * build-aux/update-copyright: Implement and document.
457         * tests/test-update-copyright.sh: Update.
458
459 2009-08-14  Jim Meyering  <meyering@redhat.com>
460
461         test-exclude: avoid coreutils "make check" failure
462         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
463         just as in test-argmatch.c.
464
465 2009-08-13  Eric Blake  <ebb9@byu.net>
466
467         test-dup2: fix bad assumption
468         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
469         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
470
471         test-version-etc: fix CRLF portability issue
472         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
473         recognize \r.
474         * tests/test-argp-version-etc-1.sh: Likewise.
475
476         getopt: update client modules
477         * modules/argp (Depends-on): Use getopt-gnu.
478         * modules/git-merge-changelog (Depends-on): Likewise.
479         * modules/long-options (Depends-on): Likewise.
480         * modules/xstrtol (Depends-on): Likewise.
481
482 2009-08-13  Simon Josefsson  <simon@josefsson.org>
483
484         * tests/test-version-etc.sh: Don't fail on different
485         project/version.  Don't fail on CRLF differences.  Rewrite to use
486         multiple -e instead of multiple sed forks, suggested by Eric Blake
487         <ebb9@byu.net>.
488         * tests/test-argp-version-etc-1.sh: Likewise.
489
490 2009-08-13  Simon Josefsson  <simon@josefsson.org>
491
492         * tests/test-version-etc.sh: Don't fail on different
493         project/version.
494
495 2009-08-12  Bruno Haible  <bruno@clisp.org>
496
497         Tests for modules 'getopt-posix', 'getopt-gnu'.
498         * modules/getopt-posix-tests: New file.
499         * tests/test-getopt.c: New file.
500         * tests/test-getopt.h: New file.
501         * tests/test-getopt_long.h: New file.
502
503         New modules 'getopt-posix', 'getopt-gnu'.
504         * modules/getopt-gnu: New file, renamed from modules/getopt.
505         * modules/getopt-posix: New file.
506         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
507         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
508         (gl_GETOPT): Remove macro.
509         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
510         Disable the test against BSD systems that declare optreset. Test
511         against mingw bug. Test against lack of support of optional arguments
512         on many platforms.
513         * doc/glibc-headers/getopt.texi: Update module name and list of
514         relevant platforms.
515         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
516         'getopt-gnu' and more portability problems.
517         * NEWS: Mention the changes.
518
519 2009-08-12  Bruno Haible  <bruno@clisp.org>
520
521         Ensure that optarg etc. get declared by <unistd.h>.
522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
523         AC_USE_SYSTEM_EXTENSIONS.
524         * modules/getopt (Depends-on): Add 'extensions'.
525
526 2009-08-12  Bruno Haible  <bruno@clisp.org>
527
528         Avoid test link errors.
529         * modules/pipe-filter-ii-tests (Makefile.am): Define
530         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
531         * modules/pipe-filter-gi-tests (Makefile.am): Define
532         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
534
535 2009-08-12  Bruno Haible  <bruno@clisp.org>
536
537         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
538         gl_GETOPT_SUBSTITUTE before.
539         (gl_GETOPT): Use it.
540         * m4/argp.m4 (gl_ARGP): Update.
541         Reported by Sergey Poznyakoff.
542
543         * m4/getopt.m4: Reorder macros.
544         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
545         (gl_GETOPT_SUBSTITUTE): Remove macro.
546
547 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
548
549         Minor improvement in gitlog-to-changelog
550
551         * build-aux/gitlog-to-changelog: New option `--format' makes
552         output format string configurable.
553
554 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
555
556         Optimize exclude: use hash tables for non-wildcard patterns.
557
558         * lib/exclude.c: Include hash.h and mbuiter.h
559         (struct exclude_pattern, exclude_segment): New data types.
560         (struct exclude): Rewrite.
561         (fnmatch_pattern_has_wildcards): New function.
562         (new_exclude_segment, free_exclude_segment): New functions.
563         (excluded_file_pattern_p, excluded_file_name_p): New functions.
564         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
565         * lib/exclude.h (is_fnmatch_pattern): New prototype.
566         * modules/exclude: Depend on hash and mbuiter.
567
568         * modules/exclude-tests: New file.
569         * tests/test-exclude.c: New file.
570         * tests/test-exclude1.sh: New file.
571         * tests/test-exclude2.sh: New file.
572         * tests/test-exclude3.sh: New file.
573         * tests/test-exclude4.sh: New file.
574         * tests/test-exclude5.sh: New file.
575         * tests/test-exclude6.sh: New file.
576         * tests/test-exclude7.sh: New file.
577
578 2009-08-12  Bruno Haible  <bruno@clisp.org>
579
580         Ensure that getopt() gets declared by <unistd.h>.
581         * lib/unistd.in.h: Conditionally include getopt.h.
582         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
583         Set GNULIB_UNISTD_H_GETOPT.
584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
585         GNULIB_UNISTD_H_GETOPT.
586         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
587
588 2009-08-12  Bruno Haible  <bruno@clisp.org>
589
590         Clarify logic.
591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
592         gl_replace_getopt instead of GETOPT_H.
593
594 2009-08-12  Bruno Haible  <bruno@clisp.org>
595
596         * m4/getopt.m4: Add comments.
597
598 2009-08-12  Bruno Haible  <bruno@clisp.org>
599
600         Disable multithread support by default on Cygwin 1.5.x.
601         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
602         set gl_use_threads=no if not specified otherwise.
603
604 2009-08-11  Bruno Haible  <bruno@clisp.org>
605
606         Avoid compilation error on NetBSD 5.0.
607         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
608         * tests/test-stdio.c: Likewise.
609         * tests/test-stdlib.c: Likewise.
610         * tests/test-string.c: Likewise.
611         * tests/test-unistd.c: Likewise.
612         Reported by Greg Troxel <gdt@ir.bbn.com>
613         at <https://savannah.gnu.org/support/?106973>.
614
615 2009-08-11  Bruno Haible  <bruno@clisp.org>
616
617         * modules/dup2-tests (Depends-on): Remove close.
618
619         Undo 2009-07-19 commit.
620         * modules/acl-tests (Depends-on): Remove close.
621         * modules/binary-io-tests (Depends-on): Likewise.
622         * modules/closein-tests (Depends-on): Likewise.
623         * modules/flock-tests (Depends-on): Likewise.
624         * modules/fsync-tests (Depends-on): Likewise.
625         * modules/lseek-tests (Depends-on): Likewise.
626         * modules/pipe-tests (Depends-on): Likewise.
627         * modules/posix_spawn-tests (Depends-on): Likewise.
628         * modules/posix_spawnp-tests (Depends-on): Likewise.
629         * modules/stat-time-tests (Depends-on): Likewise.
630         * modules/yesno-tests (Depends-on): Likewise.
631
632 2009-08-10  Bruno Haible  <bruno@clisp.org>
633
634         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
635
636 2009-08-10  Bruno Haible  <bruno@clisp.org>
637
638         Fix a gcc warning.
639         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
640
641 2009-08-10  Bruno Haible  <bruno@clisp.org>
642
643         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
644         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
645         not only the first time.
646         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
647         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
648         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
649         is 1, not only the the first time.
650
651 2009-08-10  Bruno Haible  <bruno@clisp.org>
652
653         Make it possible to use module 'gethostname' without module 'close'.
654         * lib/unistd.in.h (close): Evoke a link error only if
655         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
657         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
658         * modules/unistd (Makefile.am): Substitute
659         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
660         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
661         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
662         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
663         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
664         * modules/sys_ioctl (Makefile.am): Substitute
665         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
666         * modules/socket (configure.ac): On native Windows, set
667         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
668         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
669         Reported by Sam Steingold <sds@gnu.org>.
670
671 2009-08-10  Bruno Haible  <bruno@clisp.org>
672
673         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
674         * modules/ioctl (configure.ac): Likewise.
675
676 2009-08-10  Bruno Haible  <bruno@clisp.org>
677
678         Avoid collision between gnulib wrapper and libintl wrapper.
679         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
680         already defined in intl/printf.c.
681         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
682         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
683
684 2009-08-09  Bruno Haible  <bruno@clisp.org>
685
686         Make <sys/select.h> really self-contained, also on Solaris 10.
687         * lib/sys_select.in.h: Include <string.h>.
688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
689         Solaris 10 problem.
690         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
691         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
692         Reported by Jim Meyering.
693
694 2009-08-09  Bruno Haible  <bruno@clisp.org>
695
696         Avoid warnings from 'aclocal' that are due to a use of macro name
697         AM_XGETTEXT_OPTION that is not defined in automake.
698         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
699         automake.
700         * modules/error (configure.ac): Likewise.
701         * modules/propername (configure.ac): Likewise.
702         * modules/vasprintf (configure.ac): Likewise.
703         * modules/verror (configure.ac): Likewise.
704         * modules/xprintf (configure.ac): Likewise.
705         * modules/xvasprintf (configure.ac): Likewise.
706
707 2009-08-08  Bruno Haible  <bruno@clisp.org>
708
709         Avoid compilation error in C++ mode.
710         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
711         Reported by Sam Steingold <sds@gnu.org>.
712
713 2009-08-08  Bruno Haible  <bruno@clisp.org>
714
715         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
716         for the various Unix platforms.
717         * doc/posix-headers/limits.texi: Update platforms list regarding
718         HOST_NAME_MAX.
719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
720
721 2009-08-07  Jim Meyering  <meyering@redhat.com>
722
723         selinux-at: fix typo in a comment
724         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
725         Spotted by Paolo Bonzini.
726
727         selinux-at: remove redundant m4 code, add documentation
728         * modules/selinux-at (configure.ac): Remove redundant code.
729         LIB_SELINUX is already set via the dependent module, selinux-h.
730         (Include): Add quotes around selinux-at.h.
731         * lib/selinux-at.h: Add documentation.
732         Reported by Bruno Haible in
733         http://marc.info/?l=gnulib-bug&m=124958988300749
734
735 2009-08-07  Bruno Haible  <bruno@clisp.org>
736
737         Avoid link error on MacOS X 10.3 and 10.4.
738         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
739         on non-ELF systems.
740         * lib/argp-pv.c (argp_program_version): Likewise.
741         Reported by Simon Josefsson.
742
743 2009-08-07  Simon Josefsson  <simon@josefsson.org>
744
745         * tests/test-version-etc.sh: Use $EXEEXT.
746
747 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
748
749         update-copyright: update documentation to point to maint.mk
750         * build-aux/update-copyright: Here.
751
752 2009-08-06  Jim Meyering  <meyering@redhat.com>
753
754         maint.mk: support update-copyright-local
755         * top/maint.mk (update-copyright-local): Define place-holder.
756         (update-copyright): Depend on $(update-copyright-local).
757
758 2009-08-06  Jim Meyering  <meyering@redhat.com>
759
760         selinux-at: new module
761         Initially written for coreutils, this module will soon be
762         used by findutils, too.
763         * MODULES.html.sh [Misc]: Add selinux-at.
764         * lib/selinux-at.h: New file, from coreutils.
765         * lib/selinux-at.c: Likewise.
766         * modules/selinux-at: Likewise.
767         (License): Change from LGPL to GPL, since it depends
768         on the GPL'd openat module.
769
770         doc: update README
771         * README: Remove references to cogito.
772         Remove cvs-repo-updating instructions from 2007.
773         Don't imply that CVS is better if you have limited disk space.
774
775 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
776
777         update-copyright: support C-style comments
778         * build-aux/update-copyright: Implement and document.
779         * tests/test-update-copyright.sh: Test.
780
781 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
782
783         update-copyright: support omitted "(C)"
784         * build-aux/update-copyright: Implement and document.  Also,
785         allow variable whitespace before "(C)".
786         * tests/test-update-copyright.sh: Test.
787
788 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
789
790         update-copyright: don't trip on non-FSF copyright statements
791         * build-aux/update-copyright: Fix so that the first correctly
792         formatted FSF copyright statement is recognized no matter what
793         appears before it.  Update documentation.
794         * tests/test-update-copyright.sh: Test that.
795
796 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
797
798         update-copyright: clean up code a little
799         * build-aux/update-copyright: Append "_re" to the name of any
800         variable holding a regular expression.
801         Replace "old" and "new" with "stmt" in variable names.
802         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
803         handled correctly.
804         Format code more consistently.
805
806 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
807
808         update-copyright-tests: improve portability
809         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
810         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
811
812 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
813
814         update-copyright: support @copyright{} and &copy;
815         * build-aux/update-copyright: Implement and document.
816         * tests/test-update-copyright.sh: Test.
817
818 2009-08-04  Jim Meyering  <meyering@redhat.com>
819
820         update-copyright-tests: correctly test EOL=\r\n handling
821         * tests/test-update-copyright.sh: Put \r at the end of some lines
822         for the dos-eol tests.  Based on a patch by Joel E. Denny.
823
824         maint.mk: make update-copyright exclusion list more configurable
825         * top/maint.mk (update-copyright): Default to excluding COPYING,
826         but allow an override, in case someone does want to update that file.
827
828         maint.mk: don't update copyright date in COPYING
829         * top/maint.mk (update-copyright): Exclude COPYING.
830
831         maint.mk: add a copyright-updating rule
832         * top/maint.mk (update-copyright): New rule.
833         Derived from coreutils/Makefile.am.
834
835         update-copyright: rename some variables
836         * build-aux/update-copyright: Rename a few variables for clarity.
837         Tweak syntax.  List Joel E. Denny as coauthor.
838
839 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
840
841         update-copyright: fix bug for 2-digit last year and add tests
842         * build-aux/update-copyright: Fix bug.
843         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
844         specified.
845         * modules/update-copyright-tests: New
846         * tests/test-update-copyright.sh: New.
847
848 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
849
850         update-copyright: handle leading tabs in line prefix
851         * build-aux/update-copyright: Count leading tabs as 8 spaces
852         when computing margin.  This helps with the formatting of
853         ChangeLogs, for example.
854         Fix documentation a little.
855
856 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
857
858         update-copyright: support EOL=\r\n
859         * build-aux/update-copyright: Implement that.
860
861 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
862
863         update-copyright: automatically format copyright statements
864         * build-aux/update-copyright: Implement that.
865         Also, be a little more predictable and safer by always failing
866         when the full copyright format is not perfectly recognized as an
867         unbroken whole.  Discussed at
868         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
869         Rewrite documentation.
870
871 2009-08-03  Bruno Haible  <bruno@clisp.org>
872
873         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
874
875 2009-08-02  Bruno Haible  <bruno@clisp.org>
876
877         Tests for module 'uname'.
878         * modules/uname-tests: New file.
879         * tests/test-uname.c: New file.
880
881         New module 'uname'.
882         * lib/uname.c: New file.
883         * m4/uname.m4: New file.
884         * modules/uname: New file.
885         * doc/posix-functions/uname.texi: Mention the new module.
886
887 2009-08-02  Bruno Haible  <bruno@clisp.org>
888
889         Tests for module 'sys_utsname'.
890         * modules/sys_utsname-tests: New file.
891         * tests/test-sys_utsname.c: New file.
892
893         New module 'sys_utsname'.
894         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
895         * m4/sys_utsname_h.m4: New file.
896         * modules/sys_utsname: New file.
897         * doc/posix-headers/sys_utsname.texi: Mention the new module.
898
899 2009-08-02  Bruno Haible  <bruno@clisp.org>
900
901         Implicitly initialize the sockets library.
902         * lib/gethostname.c: Include sockets.h.
903         (rpl_gethostname): Invoke gl_sockets_startup.
904         * lib/socket.c: Include sockets.h.
905         (rpl_socket): Invoke gl_sockets_startup.
906         * modules/gethostname (Depends-on): Add sockets.
907         * modules/socket (Depends-on): Likewise.
908         * tests/test-poll.c: Don't include sockets.h.
909         (main): Don't invoke gl_sockets_startup.
910         * tests/test-select.c: Don't include sockets.h.
911         (main): Don't invoke gl_sockets_startup.
912
913 2009-08-02  Bruno Haible  <bruno@clisp.org>
914
915         Allow multiple calls to gl_sockets_startup.
916         * lib/sockets.c (initialized_sockets_version): New variable.
917         (gl_sockets_startup): Do nothing if already called for this or a higher
918         version.
919         (gl_sockets_cleanup): Reset initialized_sockets_version.
920
921 2009-08-03  Simon Josefsson  <simon@josefsson.org>
922
923         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
924         different project/version.
925
926 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
927             Bruno Haible  <bruno@clisp.org>
928
929         Tests for module 'pipe-filter-gi'.
930         * modules/pipe-filter-gi-tests: New file.
931         * tests/test-pipe-filter-gi1.sh: New file.
932         * tests/test-pipe-filter-gi1.c: New file.
933         * tests/test-pipe-filter-gi2.sh: New file.
934         * tests/test-pipe-filter-gi2-main.c: New file.
935         * tests/test-pipe-filter-gi2-child.c: New file.
936
937         New module 'pipe-filter-gi'.
938         * lib/pipe-filter-gi.c: New file.
939         * modules/pipe-filter-gi: New file.
940
941 2009-08-02  Bruno Haible  <bruno@clisp.org>
942             Paolo Bonzini  <bonzini@gnu.org>
943
944         Tests for module 'pipe-filter-ii'.
945         * modules/pipe-filter-ii-tests: New file.
946         * tests/test-pipe-filter-ii1.sh: New file.
947         * tests/test-pipe-filter-ii1.c: New file.
948         * tests/test-pipe-filter-ii2.sh: New file.
949         * tests/test-pipe-filter-ii2-main.c: New file.
950         * tests/test-pipe-filter-ii2-child.c: New file.
951
952         New module 'pipe-filter-ii'.
953         * lib/pipe-filter.h: New file.
954         * lib/pipe-filter-ii.c: New file.
955         * lib/pipe-filter-aux.h: New file.
956         * modules/pipe-filter-ii: New file.
957
958 2009-08-02  Simon Josefsson  <simon@josefsson.org>
959
960         * lib/gc-libgcrypt.c: Change copyright to FSF.
961         * lib/gc-gnulib.c: Likewise.
962
963 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
964
965         * lib/gethostname.c: Include limits.h.
966
967 2009-08-02  Simon Josefsson  <simon@josefsson.org>
968             Bruno Haible  <bruno@clisp.org>
969
970         Ensure HOST_NAME_MAX as part of the gethostname module.
971         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
972         define also HOST_NAME_MAX.
973         * tests/test-gethostname.c: Include <limits.h>.
974         (main): Check also HOST_NAME_MAX.
975         * doc/posix-headers/limits.texi: Document the mingw problem.
976
977 2009-08-02  Bruno Haible  <bruno@clisp.org>
978
979         * lib/gethostname.c (gethostname): Fix handling of large len argument.
980         Add comments.
981
982 2009-03-31  Simon Josefsson  <simon@josefsson.org>
983
984         * lib/gethostname.c: Add Windows wrapper.
985         * m4/gethostname.m4: Look for gethostname in -lws2_32.
986         * modules/gethostname: Depend on sys_socket & errno, for also
987         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
988         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
989
990 2009-07-31  Jim Meyering  <meyering@redhat.com>
991
992         getloadavg: fix symbol name in comment
993         * lib/getloadavg.c: Correct a typo I introduced when adding
994         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
995         Matt Kraai spotted the problem.
996
997 2009-07-29  Matt Kraai  <mkraai@beckman.com>
998
999         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
1000         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
1001         code also if ! defined N_NAME_POINTER.
1002         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
1003         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
1004         but the n_name member is a 12-byte array.
1005
1006 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
1007
1008         update-copyright: generalize comment handling
1009         * build-aux/update-copyright: Handle copyright statements
1010         within more comment styles.
1011         Document usage.
1012         Report any file with an external copyright holder or parse failure.
1013
1014 2009-07-29  Jim Meyering  <meyering@redhat.com>
1015
1016         mktime: correct setting of REPLACE_MKTIME
1017         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
1018
1019         update-copyright: new module
1020         * modules/update-copyright: New file.
1021         * build-aux/update-copyright: New file.
1022         * MODULES.html.sh (maint+release support): Add update-copyright.
1023
1024 2009-07-27  Bruno Haible  <bruno@clisp.org>
1025
1026         Fix compilation error when <ctime> is used and mktime is replaced.
1027         * lib/time.in.h (mktime): New declaration.
1028         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
1029         REPLACE_MKTIME instead of defining mktime in config.h.
1030         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
1031         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
1032         Reported by Ross McFarland <rwmcfa1@neces.com>.
1033
1034 2009-07-27  Bruno Haible  <bruno@clisp.org>
1035
1036         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
1037         Reported by Matt Kraai <mkraai@beckman.com>.
1038
1039 2009-07-25  Jim Meyering  <meyering@redhat.com>
1040
1041         maint.mk: avoid warnings about missing files
1042         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
1043         diagnostic when .prev-version does not exist.
1044         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
1045         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
1046         nonexistent cfg.mk.
1047         Suggestions from Simon Josefsson.
1048
1049 2009-07-25  Bruno Haible  <bruno@clisp.org>
1050
1051         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
1052         defined as macros. Needed on QNX 6.4.1.
1053         Reported by Matt Kraai <mkraai@beckman.com>.
1054
1055 2009-07-23  Jim Meyering  <meyering@redhat.com>
1056
1057         maint.mk: invoke "make dist" with a working value of XZ_OPT
1058         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
1059
1060 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
1061
1062         Make fseeko.c compile on QNX.
1063         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
1064
1065 2009-07-22  Peter Simons  <simons@cryp.to>
1066
1067         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
1068         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
1069         * lib/md4.h: Likewise.
1070         * lib/md5.h: Likewise.
1071         * lib/sha1.h: Likewise.
1072         * lib/sha256.h: Likewise.
1073         * lib/sha512.h: Likewise.
1074
1075         tests-sha1: don't assign literal string to 'char *' variable
1076         * tests/test-sha1.c (main): Declare locals with "const" to match
1077         attributes of the right hand side.
1078
1079 2009-07-21  Eric Blake  <ebb9@byu.net>
1080
1081         dup2: fix more mingw problems
1082         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
1083         fd to itself.
1084         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1085         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
1086         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
1087         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
1088         care of mingw bugs.
1089
1090 2009-07-21  Jim Meyering  <meyering@redhat.com>
1091
1092         vc-list-files: avoid failure when /bin/sh is dash
1093         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
1094         On some Debian based systems, /bin/sh is a symlink to dash, and running
1095         this command would omit the "/" following each 'tests' prefix:
1096           dash -x build-aux/vc-list-files -C . tests
1097         That is because bash and dash work differently:
1098           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
1099           bash ok
1100           dash odd
1101
1102 2009-07-21  Eric Blake  <ebb9@byu.net>
1103
1104         dup2-tests: test previous patch
1105         * modules/dup2-tests: New file.
1106         * tests/test-dup2.c: Likewise.
1107         * tests/test-open.c (main): Avoid unspecified behavior.
1108         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
1109         test.
1110
1111         dup2: work around mingw and cygwin 1.5 bug
1112         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
1113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1114         * modules/unistd (Makefile.am): Substitute it.
1115         * lib/unistd.in.h (dup2): Declare the replacement.
1116         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
1117         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
1118         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
1119         * modules/execute (Depends-on): Add dup2.
1120         * modules/fseterr (Depends-on): Likewise.
1121         * modules/pipe (Depends-on): Likewise.
1122         * modules/posix_spawn-internal (Depends-on): Likewise.
1123
1124 2009-07-21  Bruno Haible  <bruno@clisp.org>
1125
1126         * modules/.gitattributes: New file.
1127
1128 2009-07-20  Bruno Haible  <bruno@clisp.org>
1129
1130         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
1131         (main): Use it.
1132
1133 2009-07-20  Eric Blake  <ebb9@byu.net>
1134
1135         test-pipe: make a bit more robust.
1136         * tests/test-pipe.c (myerr): Allow error messages regardless of
1137         what we do to stderr.
1138         (test_pipe): Rearrange to avoid deadlock.
1139         (child_main): Try a larger read, to ensure we avoided deadlock.
1140         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
1141         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
1142         if misused.
1143
1144 2009-07-19  Jim Meyering  <meyering@redhat.com>
1145
1146         fts: avoid false-positive cycle-detection
1147         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
1148         for each new command line argument.
1149
1150 2009-07-19  Bruno Haible  <bruno@clisp.org>
1151
1152         Fix build error on mingw with the modules sys_select and unistd.
1153         * modules/acl-tests (Depends-on): Add close.
1154         * modules/binary-io-tests (Depends-on): Likewise.
1155         * modules/closein-tests (Depends-on): Likewise.
1156         * modules/flock-tests (Depends-on): Likewise.
1157         * modules/fsync-tests (Depends-on): Likewise.
1158         * modules/lseek-tests (Depends-on): Likewise.
1159         * modules/pipe-tests (Depends-on): Likewise.
1160         * modules/posix_spawn-tests (Depends-on): Likewise.
1161         * modules/posix_spawnp-tests (Depends-on): Likewise.
1162         * modules/stat-time-tests (Depends-on): Likewise.
1163         * modules/yesno-tests (Depends-on): Likewise.
1164
1165 2009-07-19  Bruno Haible  <bruno@clisp.org>
1166
1167         Unify conditionals.
1168         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
1169         macros, not at the compiler macros.
1170         * lib/pipe.c: Likewise.
1171         * lib/execute.c: Likewise.
1172         * lib/spawni.c: Likewise.
1173
1174 2009-07-19  Bruno Haible  <bruno@clisp.org>
1175
1176         Fix handling of closed stdin/stdout/stderr on mingw.
1177         * lib/w32spawn.h: Include unistd.h.
1178         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
1179         file descriptor with O_NOINHERIT flag.
1180         (fd_safer_noinherit): New function, based on fd-safer.c.
1181         (dup_safer_noinherit): New function, based on dup-safer.c.
1182         (undup_safer_noinherit): New function.
1183         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
1184         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
1185         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
1186         instead of fd_safer.
1187         * tests/test-pipe.c: Include <windows.h>.
1188         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
1189
1190         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
1191         from main.
1192         (test_pipe): Pass an extra argument for disambiguation.
1193         (main): Invoke parent_main or child_main.
1194
1195         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
1196         consistently.
1197
1198 2009-07-18  Eric Blake  <ebb9@byu.net>
1199
1200         test-pipe: fix mingw build
1201         * tests/test-pipe.c (main): Avoid fcntl on mingw.
1202
1203 2009-07-18  Bruno Haible  <bruno@clisp.org>
1204
1205         * modules/pipe-tests (Makefile.am): Fix typo.
1206
1207 2009-07-18  Eric Blake  <ebb9@byu.net>
1208
1209         error: fix mingw build
1210         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
1211         Reported by Bruno Haible.
1212
1213         error: avoid undefined use of stdout
1214         * lib/error.c (error, error_at_line): Check that fd 1 is open
1215         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
1216         is handling faults and the close_stdout module wants to report the
1217         detection of closed stdout as an error.
1218
1219 2009-07-17  Eric Blake  <ebb9@byu.net>
1220
1221         pipe: be robust in face of closed fds
1222         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
1223         should cause child to misbehave.
1224         * modules/pipe-tests: New module.
1225         * tests/test-pipe.c: New file.
1226         * tests/test-pipe.sh: New file.
1227         Reported by Akim Demaille.
1228
1229 2009-07-14  Bruno Haible  <bruno@clisp.org>
1230
1231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
1232         Reported by anonymous kc.
1233
1234 2009-07-07  Jim Meyering  <meyering@redhat.com>
1235
1236         maint.mk: don't look for translatable strings in *.m4 or *.mk
1237         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
1238         when searching for translatable strings.
1239
1240 2009-07-05  Jim Meyering  <meyering@redhat.com>
1241
1242         remove superfluous parentheses in STREQ definition
1243         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
1244         * lib/getugroups.c (STREQ): Likewise.
1245         * lib/fnmatch.c (STREQ): Likewise.
1246         Spotted by Bruno Haible.
1247
1248 2009-07-04  Jim Meyering  <meyering@redhat.com>
1249
1250         argv-iter: new module
1251         * MODULES.html.sh: Add argv-iter.
1252         * lib/argv-iter.c, lib/argv-iter.h: New files.
1253         * modules/argv-iter: New file.
1254         * modules/argv-iter-tests: New file.
1255         * tests/test-argv-iter.c: Test it.
1256
1257 2009-07-04  Bruno Haible  <bruno@clisp.org>
1258
1259         Fix assertion.
1260         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
1261         contains more exact copies of a given entry than file2, leave the extra
1262         copies unpaired rather than aborting.
1263         Reported by Eric Blake.
1264
1265 2009-07-02  Bruno Haible  <bruno@clisp.org>
1266
1267         Speedup git-merge-changelog for git cherry-pick.
1268         * lib/git-merge-changelog.c (struct entries_mapping): New type.
1269         (entries_mapping_get): New function, extracted from compute_mapping.
1270         (entries_mapping_reverse_get): New function.
1271         (compute_mapping): Add a 'full' argument. Return the result in a
1272         'struct entries_mapping'.
1273         (main): Update. Access the mappings through entries_mapping_get.
1274         Reported by Eric Blake.
1275
1276 2009-07-02  Bruno Haible  <bruno@clisp.org>
1277
1278         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
1279         best_i.
1280
1281 2009-07-02  Bruno Haible  <bruno@clisp.org>
1282
1283         Speed up approximate search for matching ChangeLog entries.
1284         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
1285         argument. Call fstrcmp_bounded instead of fstrcmp.
1286         (compute_mapping, try_split_merged_entry, main): Update callers.
1287
1288 2009-07-02  Bruno Haible  <bruno@clisp.org>
1289
1290         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
1291
1292 2009-06-30  Bruno Haible  <bruno@clisp.org>
1293
1294         Reduce the number of uc_is_cased calls.
1295         * lib/unicase.h (casing_suffix_context_t): Add
1296         'first_char_except_ignorable' field.
1297         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
1298         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
1299         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
1300         Update initializer.
1301         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
1302         case-ignorable characters.
1303         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
1304         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
1305         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
1306         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
1307         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
1308
1309 2009-06-30  Bruno Haible  <bruno@clisp.org>
1310
1311         Tests for module 'unicase/ignorable'.
1312         * modules/unicase/ignorable-tests: New file.
1313         * tests/unicase/test-ignorable.c: New file, generated by
1314         gen-uni-tables.
1315
1316         Tests for module 'unicase/cased'.
1317         * modules/unicase/cased-tests: New file.
1318         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
1319         * tests/unicase/test-predicate-part1.h: New file, derived from
1320         tests/unictype/test-predicate-part1.h.
1321         * tests/unicase/test-predicate-part2.h: New file, same as
1322         tests/unictype/test-predicate-part2.h.
1323
1324         Fix evaluation of "Before C" condition of FINAL_SIGMA.
1325         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
1326         (output_casing_properties): New function.
1327         (main): Call it.
1328         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
1329         * lib/unicase/cased.c: Include unictype/bitmap.h.
1330         (uc_is_cased): Define through a bitmap lookup.
1331         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
1332         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
1333         (uc_is_case_ignorable): Define through a bitmap lookup.
1334         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
1335         lib/unictype/bitmap.h.
1336         (Depends-on): Add inline. Clean up.
1337         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
1338         lib/unictype/bitmap.h.
1339         (Depends-on): Add inline. Clean up.
1340         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
1341         recognition.
1342         * tests/unicase/test-u16-tolower.c (main): Likewise.
1343         * tests/unicase/test-u32-tolower.c (main): Likewise.
1344
1345 2009-06-30  Bruno Haible  <bruno@clisp.org>
1346
1347         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
1348         * lib/unicase/u16-casemap.c: Likewise.
1349         * lib/unicase/u32-casemap.c: Likewise.
1350
1351 2009-06-29  Bruno Haible  <bruno@clisp.org>
1352
1353         Define u32_casefold as a wrapper around u32_ct_casefold.
1354         * lib/unicase/u32-casefold.c: Update.
1355         * modules/unicase/u32-casefold (Depends-on): Add
1356         unicase/u32-ct-casefold, unicase/empty-prefix-context,
1357         unicase/empty-suffix-context. Clean up.
1358
1359         Define u16_casefold as a wrapper around u16_ct_casefold.
1360         * lib/unicase/u16-casefold.c: Update.
1361         * modules/unicase/u16-casefold (Depends-on): Add
1362         unicase/u16-ct-casefold, unicase/empty-prefix-context,
1363         unicase/empty-suffix-context. Clean up.
1364
1365         Define u8_casefold as a wrapper around u8_ct_casefold.
1366         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
1367         * lib/unicase/u8-casefold.c: Update.
1368         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
1369         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1370
1371         Define u32_totitle as a wrapper around u32_ct_totitle.
1372         * lib/unicase/u32-totitle.c: Update.
1373         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
1374         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1375
1376         Define u16_totitle as a wrapper around u16_ct_totitle.
1377         * lib/unicase/u16-totitle.c: Update.
1378         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
1379         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1380
1381         Define u8_totitle as a wrapper around u8_ct_totitle.
1382         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
1383         functions.
1384         (FUNC): Delegate to U_CT_TOTITLE.
1385         * lib/unicase/u8-totitle.c: Update.
1386         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
1387         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1388
1389         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
1390         invocation.
1391         * modules/unicase/u32-tolower (Depends-on): Add
1392         unicase/empty-prefix-context, unicase/empty-suffix-context.
1393
1394         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
1395         invocation.
1396         * modules/unicase/u16-tolower (Depends-on): Add
1397         unicase/empty-prefix-context, unicase/empty-suffix-context.
1398
1399         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
1400         * modules/unicase/u8-tolower (Depends-on): Add
1401         unicase/empty-prefix-context, unicase/empty-suffix-context.
1402
1403         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
1404         invocation.
1405         * modules/unicase/u32-toupper (Depends-on): Add
1406         unicase/empty-prefix-context, unicase/empty-suffix-context.
1407
1408         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
1409         invocation.
1410         * modules/unicase/u16-toupper (Depends-on): Add
1411         unicase/empty-prefix-context, unicase/empty-suffix-context.
1412
1413         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
1414         * modules/unicase/u8-toupper (Depends-on): Add
1415         unicase/empty-prefix-context, unicase/empty-suffix-context.
1416
1417         New module 'unicase/u32-ct-casefold'.
1418         * lib/unicase/u32-ct-casefold.c: New file.
1419         * modules/unicase/u32-ct-casefold: New file.
1420
1421         New module 'unicase/u16-ct-casefold'.
1422         * lib/unicase/u16-ct-casefold.c: New file.
1423         * modules/unicase/u16-ct-casefold: New file.
1424
1425         New module 'unicase/u8-ct-casefold'.
1426         * lib/unicase/u8-ct-casefold.c: New file.
1427         * lib/unicase/u-ct-casefold.h: New file, derived from
1428         lib/unicase/u-casefold.h.
1429         * modules/unicase/u8-ct-casefold: New file.
1430
1431         New module 'unicase/u32-ct-totitle'.
1432         * lib/unicase/u32-ct-totitle.c: New file.
1433         * modules/unicase/u32-ct-totitle: New file.
1434
1435         New module 'unicase/u16-ct-totitle'.
1436         * lib/unicase/u16-ct-totitle.c: New file.
1437         * modules/unicase/u16-ct-totitle: New file.
1438
1439         New module 'unicase/u8-ct-totitle'.
1440         * lib/unicase/u8-ct-totitle.c: New file.
1441         * lib/unicase/u-ct-totitle.h: New file, derived from
1442         lib/unicase/u-totitle.h.
1443         * modules/unicase/u8-ct-totitle: New file.
1444
1445         New module 'unicase/u32-ct-tolower'.
1446         * lib/unicase/u32-ct-tolower.c: New file.
1447         * modules/unicase/u32-ct-tolower: New file.
1448
1449         New module 'unicase/u16-ct-tolower'.
1450         * lib/unicase/u16-ct-tolower.c: New file.
1451         * modules/unicase/u16-ct-tolower: New file.
1452
1453         New module 'unicase/u8-ct-tolower'.
1454         * lib/unicase/u8-ct-tolower.c: New file.
1455         * modules/unicase/u8-ct-tolower: New file.
1456
1457         New module 'unicase/u32-ct-toupper'.
1458         * lib/unicase/u32-ct-toupper.c: New file.
1459         * modules/unicase/u32-ct-toupper: New file.
1460
1461         New module 'unicase/u16-ct-toupper'.
1462         * lib/unicase/u16-ct-toupper.c: New file.
1463         * modules/unicase/u16-ct-toupper: New file.
1464
1465         New module 'unicase/u8-ct-toupper'.
1466         * lib/unicase/u8-ct-toupper.c: New file.
1467         * modules/unicase/u8-ct-toupper: New file.
1468
1469         Add context arguments to u*_casemap functions.
1470         * lib/unicase/unicasemap.h: Include unicase.h.
1471         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
1472         suffix_context arguments.
1473         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
1474         functions.
1475         (FUNC): Add prefix_context and suffix_context arguments. Use
1476         uc_is_cased and uc_is_case_ignorable.
1477         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
1478         * lib/unicase/u16-casemap.c: Likewise.
1479         * lib/unicase/u32-casemap.c: Likewise.
1480         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
1481         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1482         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
1483         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1484         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
1485         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1486
1487         New module 'unicase/u32-suffix-context'.
1488         * lib/unicase/u32-suffix-context.c: New file.
1489         * modules/unicase/u32-suffix-context: New file.
1490
1491         New module 'unicase/u16-suffix-context'.
1492         * lib/unicase/u16-suffix-context.c: New file.
1493         * modules/unicase/u16-suffix-context: New file.
1494
1495         New module 'unicase/u8-suffix-context'.
1496         * lib/unicase/u8-suffix-context.c: New file.
1497         * lib/unicase/u-suffix-context.h: New file.
1498         * modules/unicase/u8-suffix-context: New file.
1499
1500         New module 'unicase/empty-suffix-context'.
1501         * lib/unicase/empty-suffix-context.c: New file.
1502         * modules/unicase/empty-suffix-context: New file.
1503
1504         New module 'unicase/u32-prefix-context'.
1505         * lib/unicase/u32-prefix-context.c: New file.
1506         * modules/unicase/u32-prefix-context: New file.
1507
1508         New module 'unicase/u16-prefix-context'.
1509         * lib/unicase/u16-prefix-context.c: New file.
1510         * modules/unicase/u16-prefix-context: New file.
1511
1512         New module 'unicase/u8-prefix-context'.
1513         * lib/unicase/u8-prefix-context.c: New file.
1514         * lib/unicase/u-prefix-context.h: New file.
1515         * lib/unicase/context.h: New file.
1516         * modules/unicase/u8-prefix-context: New file.
1517
1518         New module 'unicase/empty-prefix-context'.
1519         * lib/unicase/empty-prefix-context.c: New file.
1520         * modules/unicase/empty-prefix-context: New file.
1521
1522         New module 'unicase/ignorable'.
1523         * lib/unicase/ignorable.c: New file.
1524         * modules/unicase/ignorable: New file.
1525
1526         New module 'unicase/cased'.
1527         * lib/unicase/caseprop.h: New file.
1528         * lib/unicase/cased.c: New file.
1529         * modules/unicase/cased: New file.
1530
1531         New functions for case mapping of substrings.
1532         * lib/unicase.h (casing_prefix_context_t): New type.
1533         (unicase_empty_prefix_context): New variable.
1534         (u8_casing_prefix_context, u16_casing_prefix_context,
1535         u32_casing_prefix_context, u8_casing_prefixes_context,
1536         u16_casing_prefixes_context, u32_casing_prefixes_context): New
1537         declarations.
1538         (casing_suffix_context_t): New type.
1539         (unicase_empty_suffix_context): New variable.
1540         (u8_casing_suffix_context, u16_casing_suffix_context,
1541         u32_casing_suffix_context, u8_casing_suffixes_context,
1542         u16_casing_suffixes_context, u32_casing_suffixes_context,
1543         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
1544         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
1545         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
1546         declarations.
1547
1548 2009-06-28  Jim Meyering  <meyering@redhat.com>
1549
1550         boostrap: indent only with spaces
1551         * build-aux/bootstrap: Indent only with spaces, never TABs.
1552
1553         bootstrap: split long lines
1554         * build-aux/bootstrap: Keep line length < 80.
1555
1556         bootstrap: sync from coreutils
1557         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
1558         just as autoreconf does.  Verify a list of prerequisite
1559         package-name,version-number pairs if defined in bootstrap.conf.
1560         Refer to README-prereq, if prerequisites are not satisfied.
1561
1562 2009-06-27  Eric Blake  <ebb9@byu.net>
1563
1564         tests: add test for bogus NULL definition
1565         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
1566         * tests/test-stdlib.c: Likewise.
1567         * tests/test-string.c: Likewise.
1568         * tests/test-locale.c: Likewise.
1569         * tests/test-unistd.c: Likewise.
1570         * modules/stdio-tests (Depends-on): Add verify.
1571         * modules/stdlib-tests (Depends-on): Likewise.
1572         * modules/string-tests (Depends-on): Likewise.
1573         * modules/locale-tests (Depends-on): Likewise.
1574         * modules/unistd-tests (Depends-on): Likewise.
1575
1576 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
1577
1578         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
1579         self-explaining comment.
1580         * m4/selinux-selinux-h: Update serial.
1581         (gl_LIBSELINUX): New macro, adding a warning for missing development
1582         packages to code extracted from...
1583         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
1584         Add warning for missing development packages here, too.
1585
1586 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
1587
1588         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
1589
1590 2009-06-25  Eric Blake  <ebb9@byu.net>
1591
1592         version-etc: fix regression
1593         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
1594         gcc.
1595         (version_etc): Use it, to catch bugs with trailing NULL.
1596         * lib/version-etc.c (version_etc_arn): Delete unused argument.
1597         (version_etc_va): Fix logic bug.
1598         * modules/version-etc-tests: Add test.
1599         * tests/test-version-etc.c: New file.
1600         * tests/test-version-etc.sh: Likewise.
1601
1602 2009-06-25  Sam Steingold  <sds@gnu.org>
1603
1604         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
1605         mbtowc declaration.
1606
1607 2009-06-25  Eric Blake  <ebb9@byu.net>
1608
1609         fpurge: migrate into <stdio.h>
1610         * lib/fpurge.h: Delete...
1611         * lib/stdio.in.h (fpurge): ...and declare here, instead.
1612         * lib/fpurge.c (fpurge): Change declaring header.
1613         * modules/fpurge (Files): Drop deleted file.
1614         (Depends-on): Add stdio.
1615         (configure.ac): Set witness.
1616         * modules/stdio (Makefile.am): Support fpurge macros.
1617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1618         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
1619         * lib/fflush.c: Update client.
1620         * tests/test-fpurge.c: Likewise.
1621         * NEWS: Mention the change.
1622
1623 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1624
1625        * lib/argp-version-etc.c (program_authors): Add const
1626        qualifier.
1627        * lib/version-etc.c: Fix typos in the comments.
1628        * modules/argp-version-etc: Depends on version-etc.
1629
1630 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1631
1632         argp-version-etc: new module.
1633
1634         * lib/argp-version-etc.c: New file.
1635         * lib/argp-version-etc.h: New file.
1636         * modules/argp-version-etc: New file.
1637         * modules/argp-version-etc-tests: New file.
1638         * tests/test-argp-version-etc.c: New test.
1639         * tests/test-argp-version-etc-1.sh: New test.
1640
1641 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
1642
1643         Provide additional interfaces and documentation for version-etc
1644         module.
1645
1646         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
1647         interfaces.
1648         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
1649         prototypes.
1650
1651 2009-06-24  Bruno Haible  <bruno@clisp.org>
1652
1653         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
1654         HAVE_LIB${NAME} macro.
1655         Reported by Sam Steingold <sds@gnu.org>.
1656
1657 2009-06-23  Simon Josefsson  <simon@josefsson.org>
1658
1659         * modules/hash-tests (test_hash_LDADD): Link to libintl when
1660         needed.
1661
1662 2009-06-21  Bruno Haible  <bruno@clisp.org>
1663
1664         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
1665         work.
1666         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
1667         together with LIB${NAME}, LTLIB${NAME}.
1668         Reported by Sam Steingold <sds@gnu.org>.
1669
1670 2009-06-20  Jim Meyering  <meyering@redhat.com>
1671
1672         tests: make sc_require_test_exit_idiom more generic
1673         * top/maint.mk (Exit_witness_file): New overridable variable.
1674         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
1675         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
1676
1677 2009-06-19  Jim Meyering  <meyering@redhat.com>
1678
1679         hash: reverse order of src/dst parameters in an internal interface
1680         * lib/hash.c (transfer_entries): Reverse order of parameters to
1681         put DST before SRC.  Adjust callers.
1682
1683         tests: test-hash: avoid wholesale duplication
1684         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
1685         Instead, use a loop and add a single conditional.
1686
1687         tests: test-hash: allow seed selection via a command line argument
1688         * tests/test-hash.c (get_seed): New function.
1689         (main): Use it.
1690
1691 2009-06-19  Eric Blake  <ebb9@byu.net>
1692
1693         hash: avoid memory leak on allocation failure
1694         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
1695         failure.  Factor repeated algorithm...
1696         (transfer_entries): ...into new helper routine.
1697         (hash_delete): React to hash_rehash return value.
1698
1699         hash: reduce memory pressure in hash_rehash no-op case
1700         * lib/hash.c (next_prime): Avoid overflow.
1701         (hash_initialize): Factor bucket size computation...
1702         (compute_bucket_size): ...into new helper function.
1703         (hash_rehash): Use new function and open coding to reduce memory
1704         pressure, and avoid a memory leak in USE_OBSTACK code.
1705         Reported by Jim Meyering.
1706
1707 2009-06-18  Eric Blake  <ebb9@byu.net>
1708
1709         hash: make rotation more obvious
1710         * modules/hash (Depends-on): Add bitrotate and stdint.
1711         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
1712         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
1713         (SIZE_MAX): Rely on headers for definition.
1714         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
1715         (raw_hasher): Use rotr_sz.
1716         Suggested by Jim Meyering.
1717
1718         hash: fix memory leak in last patch
1719         * lib/hash.c (hash_rehash): Avoid memory leak.
1720
1721         hash: avoid no-op rehashing
1722         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
1723
1724         hash: provide default callback functions
1725         * lib/hash.c (raw_hasher, raw_comparator): New functions.
1726         (hash_initialize): Use them as defaults.
1727         * tests/test-hash.c (main): Test this.
1728
1729         hash: minor optimization
1730         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
1731         when possible.
1732         (hash_initialize): Document this promise.
1733         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
1734         * tests/test-hash.c (hash_compare_strings): Test this.
1735
1736 2009-06-18  Bruno Haible  <bruno@clisp.org>
1737
1738         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
1739         going to be replaced anyway.
1740
1741 2009-06-18  Bruno Haible  <bruno@clisp.org>
1742
1743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
1744         in one place.
1745         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
1746         be replaced anyway.
1747
1748 2009-06-18  Eric Blake  <ebb9@byu.net>
1749
1750         hash: check for resize before insertion
1751         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
1752         threshold before insertion, so that a pathological hash_rehash
1753         that fills every bucket can still trigger another rehash.
1754
1755 2009-06-18  Jim Meyering  <meyering@redhat.com>
1756
1757         hash-tests: add a loop around the small tests
1758         * tests/test-hash.c (main): Repeat small tests with selected
1759         small initial table sizes.
1760
1761 2009-06-17  Eric Blake  <ebb9@byu.net>
1762
1763         hash: minor cleanups
1764         * lib/hash.h (hash_entry): Make opaque, by moving...
1765         * lib/hash.c (hash_entry): ...here.
1766         (hash_insert): Clarify restrictions on what can be inserted.
1767         (hash_get_next): Clarify when it is safe to remove an element
1768         during traversal.
1769         (check_tuning): Skip verification when tuning is known safe.
1770         (hash_initialize): Clarify restrictions on tuning.
1771
1772 2009-06-17  Jim Meyering  <jim@meyering.net>
1773         and Eric Blake  <ebb9@byu.net>
1774
1775         hash-tests: new module
1776         * modules/hash-tests: New file.
1777         * tests/test-hash.c: New file.
1778
1779 2009-06-17  Eric Blake  <ebb9@byu.net>
1780
1781         strstr-simple: document new module
1782         * MODULES.html.sh: Document new module.
1783
1784         strstr, strcasestr: replace on platforms with broken memchr
1785         * modules/strstr: Split into...
1786         * modules/strstr-simple: ...new module that does not care about
1787         performance, but does care about glibc bug.
1788         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
1789         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
1790         if platform memchr is broken, per Debian bug 521737.
1791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
1792         memchr.
1793         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
1794         * doc/posix-functions/strstr.texi (strstr): Document the fix.
1795         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
1796         * modules/mountlist (Depends-on): Add strstr-simple.
1797         * modules/gen-uni-tables (Depends-on): Likewise.
1798         * modules/argz (Depends-on): Add strstr.
1799
1800 2009-06-17  Bruno Haible  <bruno@clisp.org>
1801
1802         * modules/posix_spawn-internal (Depends-on): Add errno.
1803
1804 2009-06-17  Bruno Haible  <bruno@clisp.org>
1805
1806         Define missing ESTALE on Interix 3.5.
1807         * lib/errno.in.h (ESTALE): Assign a value if missing.
1808         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
1809         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
1810         missing.
1811         * doc/posix-headers/errno.texi: Mention the Interix bug.
1812         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
1813
1814 2009-06-15  Eric Blake  <ebb9@byu.net>
1815
1816         memchr, memchr2: add valgrind exception
1817         * lib/memchr.valgrind: New file.
1818         * lib/memchr2.valgrind: New file.
1819         * modules/memchr (Files): Distribute valgrind file.
1820         * modules/memchr2 (Files): Likewise.
1821
1822         docs: memchr is no longer obsolete
1823         * MODULES.html.sh: Move memchr from obsolete to string.h section.
1824         * lib/string.in.h (memchr): Simplify logic.
1825
1826 2009-06-14  Jim Meyering  <meyering@redhat.com>
1827
1828         link-follow: fix the "checking..." message to not mention trailing slash
1829         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
1830         never considered trailing slashes.
1831
1832 2009-06-14  Bruno Haible  <bruno@clisp.org>
1833
1834         * m4/memchr.m4: Mention also the bug on IA-64.
1835         * doc/posix-functions/memchr.texi: Likewise.
1836
1837 2009-06-12  Eric Blake  <ebb9@byu.net>
1838
1839         memchr: detect broken x86_64 and alpha implementations
1840         * modules/memchr-tests (Depends-on): Move mmap detection...
1841         * modules/memchr (Depends-on): ...here.
1842         (configure.ac): Set indicator.
1843         * lib/string.in.h (memchr): Declare replacement.
1844         * modules/string (Makefile.am): Trigger replacement.
1845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
1846         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
1847         bugs.
1848         * doc/posix-functions/memchr.texi (memchr): Document the bug.
1849         * modules/getpagesize (License): Relax license.
1850
1851 2009-06-11  Bruno Haible  <bruno@clisp.org>
1852
1853         * lib/idpriv.h: Add more references.
1854
1855 2009-06-08  Bruno Haible  <bruno@clisp.org>
1856
1857         Tests for module 'idpriv-droptemp'.
1858         * modules/idpriv-droptemp-tests: New file.
1859         * tests/test-idpriv-droptemp.sh: New file.
1860         * tests/test-idpriv-droptemp.su.sh: New file.
1861         * tests/test-idpriv-droptemp.c: New file.
1862
1863         New module 'idpriv-droptemp'.
1864         * lib/idpriv-droptemp.c: New file.
1865         * modules/idpriv-droptemp: New file.
1866
1867 2009-06-08  Bruno Haible  <bruno@clisp.org>
1868
1869         Tests for module 'idpriv-drop'.
1870         * modules/idpriv-drop-tests: New file.
1871         * tests/test-idpriv-drop.sh: New file.
1872         * tests/test-idpriv-drop.su.sh: New file.
1873         * tests/test-idpriv-drop.c: New file.
1874
1875         New module 'idpriv-drop'.
1876         * lib/idpriv.h: New file.
1877         * lib-idpriv-drop.c: New file.
1878         * m4/idpriv.m4: New file.
1879         * modules/idpriv-drop: New file.
1880
1881 2009-06-08  Bruno Haible  <bruno@clisp.org>
1882
1883         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
1884         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1885         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1887         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1888         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1889         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1890
1891 2009-06-08  Eric Blake  <ebb9@byu.net>
1892
1893         test-strstr: use memory fence, when possible
1894         * tests/test-strstr.c (main): Use memory fence, in order to be
1895         more likely to trigger Debian bug 521737.
1896         * modules/strstr-tests (Files): Pull in additional files.
1897
1898         memchr: no longer obsolete, for wider field testing
1899         * modules/memchr (Status, Notice): Delete, this module is no
1900         longer obsolete.
1901         * modules/vasnprintf (Depends-on): Add memchr.
1902
1903 2009-06-07  Jim Meyering  <meyering@redhat.com>
1904
1905         hash: declare some functions with the warn_unused_result attribute
1906         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
1907
1908 2009-06-07  Bruno Haible  <bruno@clisp.org>
1909
1910         * tests/test-alignof.c: Don't test int64_t if it does not exist.
1911         Reported by Eric Blake.
1912
1913 2009-06-06  Eric Blake  <ebb9@byu.net>
1914
1915         test-alignof: fix typo with long double
1916         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
1917         compiler error.
1918
1919 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
1920
1921         Escape non-texinfo { and }s.
1922         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
1923         markup error.
1924
1925 2009-06-04  Jim Meyering  <meyering@redhat.com>
1926
1927         gitlog-to-changelog: don't infloop on an empty commit log
1928         * build-aux/gitlog-to-changelog: Warn about an empty log message.
1929         Reported by Boris Petersen <transacid@centerim.org>.
1930
1931 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
1932
1933         version-etc: extend for packagers
1934         Add three new configure options, intended for packagers:
1935           --with-packager="packager name"
1936           --with-packager-version="packager-specific version"
1937           --with-packager-bug-reports="packager bug reporting"
1938         An example with coreutils:
1939           $ ./configure \
1940             --with-packager=Gentoo \
1941             --with-packager-bug-report=http://bugs.gentoo.org/ \
1942             --with-packager-version="patchset 1.6"
1943           $ ./src/ls --version | head -n3
1944           ls (GNU coreutils) 7.1-dirty
1945           Packaged by Gentoo (patchset 1.6)
1946           Copyright (C) 2009 Free Software Foundation, Inc.
1947         Note that the bug reporting info via --help doesn't show up because
1948         coreutils uses its own custom emit_bug_reporting_address() implementation
1949         in src/system.h.  If it didn't, it'd look like:
1950           $ ./src/ls --help | tail -n4
1951           Report bugs to <bug-coreutils@gnu.org>.
1952           Report Gentoo bugs to <http://bugs.gentoo.org/>.
1953           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
1954           General help using GNU software: <http://www.gnu.org/gethelp/>.
1955         * lib/version-etc.c: Print new information, if provided.
1956         * m4/version-etc.m4: New file.
1957         * modules/version-etc (Files): Add m4/version-etc.m4.
1958         (configure.ac): Add gl_VERSION_ETC.
1959
1960 2009-05-31  Bruno Haible  <bruno@clisp.org>
1961
1962         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
1963         and 'int64_t'.
1964         * modules/alignof-tests (Dependencies): Add stdint.
1965         Reported by Eric Blake.
1966
1967 2009-05-31  Bruno Haible  <bruno@clisp.org>
1968
1969         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
1970         restriction due to compiler bugs.
1971         Reported by Eric Blake.
1972
1973 2009-05-31  Simon Josefsson  <simon@josefsson.org>
1974             Bruno Haible  <bruno@clisp.org>
1975
1976         Fix test-alignof failure.
1977         * lib/alignof.h (alignof_slot): New macro.
1978         (alignof_type): New macro, with the same semantics as the previous
1979         'alignof'.
1980         (alignof): Alias to alignof_slot.
1981         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
1982         check that the results are usable as constant expressions.
1983
1984 2009-05-31  Bruno Haible  <bruno@clisp.org>
1985
1986         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
1987         * tests/test-memchr.c (main): Check that memchr does not read past the
1988         first occurrence of the byte.
1989         * tests/test-strstr.c (main): Update comment.
1990         Suggested by Eric Blake.
1991
1992 2009-05-30  Bruno Haible  <bruno@clisp.org>
1993
1994         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
1995         detail how to use dumpbin.
1996         Reported by David Byron <dbyron@dbyron.com>.
1997
1998 2009-06-02  Simon Josefsson  <simon@josefsson.org>
1999
2000         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
2001
2002 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2003
2004         * m4/manywarnings.m4: Add GCC 4.4 warnings.
2005
2006 2009-05-28  Bruno Haible  <bruno@clisp.org>
2007
2008         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
2009         build-aux/ files.
2010
2011 2009-05-28  Simon Josefsson  <simon@josefsson.org>
2012
2013         * gnulib-tool (func_import): Transform license on build-aux/ files too.
2014
2015 2009-05-27  Simon Josefsson  <simon@josefsson.org>
2016
2017         * gnulib-tool (sed_transform_main_lib_file)
2018         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
2019         regexps.
2020
2021 2009-05-26  Simon Josefsson  <simon@josefsson.org>
2022
2023         * tests/test-strstr.c: Add another self-test.
2024         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
2025         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
2026
2027 2009-05-23  Bruno Haible  <bruno@clisp.org>
2028
2029         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
2030         change.
2031
2032 2009-05-21  Bruno Haible  <bruno@clisp.org>
2033
2034         Simplify use of mode_t varargs.
2035         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
2036         uses 'mode_t' or 'int'.
2037         * lib/openat.c (openat): Likewise.
2038         * lib/open-safer.c (open_safer): Likewise.
2039         * m4/mode_t.m4: New file.
2040         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
2041         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
2042         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
2043         * modules/open (Files): Add m4/mode_t.m4.
2044         * modules/openat (Files): Likewise.
2045         * modules/fcntl-safer (Files): Likewise.
2046         Suggested by Eric Blake.
2047
2048 2009-05-21  Pádraig Brady  <P@draigbrady.com>
2049
2050         * doc/glibc-functions/fallocate.texi: New file.
2051         * doc/gnulib.texi: Include it.
2052
2053 2009-05-21  Eric Blake  <ebb9@byu.net>
2054             Bruno Haible  <bruno@clisp.org>
2055
2056         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
2057         invocations.
2058         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2059
2060 2009-05-21  Eric Blake  <ebb9@byu.net>
2061             Bruno Haible  <bruno@clisp.org>
2062
2063         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
2064         include_next. Fix of 2008-11-20 commit.
2065         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
2066         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
2067         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
2068         NEXT_MATH_H.
2069         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
2070         instead of NEXT_MATH_H.
2071
2072 2009-05-21  Bruno Haible  <bruno@clisp.org>
2073
2074         Avoid redefinition warnings for SIZE_MAX.
2075         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
2076         Reported by Simon Josefsson.
2077
2078 2009-05-21  Bruno Haible  <bruno@clisp.org>
2079
2080         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
2081         AC_CACHE_VAL.
2082
2083 2009-05-20  Bruno Haible  <bruno@clisp.org>
2084
2085         Make zeroptr.h work on mingw.
2086         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
2087         mprotect.
2088         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
2089         * modules/memchr2-tests (configure.ac): Likewise.
2090         * modules/memcmp-tests (configure.ac): Likewise.
2091         * modules/memmem-tests (configure.ac): Likewise.
2092         * modules/memrchr-tests (configure.ac): Likewise.
2093         Reported by Simon Josefsson.
2094
2095 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2096
2097         * tests/test-glob.c: Include string.h for strcmp prototype.
2098
2099 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2100
2101         * modules/getdelim (Depends-on): Add explicit stdint, although it
2102         was implicitly already pulled in via realloc-posix.
2103         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
2104
2105 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2106
2107         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
2108         G. Christensen" <tgc@jupiterrise.com>.
2109         * m4/sys_socket_h.m4: Check for sa_family_t.
2110         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
2111         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
2112         * tests/test-sys_socket.c: Check that sa_family_t works.
2113
2114 2009-05-18  Eric Blake  <ebb9@byu.net>
2115
2116         maint.mk: allow gnulib_dir in VPATH build
2117         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
2118
2119 2009-05-15  Jim Meyering  <meyering@redhat.com>
2120
2121         maint.mk: Give gnulib_dir a default definition.
2122         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
2123         Thus, most packages no longer need to specify this variable in cfg.mk
2124
2125 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
2126
2127         rename.m4: fix typos that would make non-mingw cross-configure fail
2128         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
2129
2130 2009-05-13  Eric Blake  <ebb9@byu.net>
2131
2132         mmap-anon: avoid out-of-order autoconf expansion
2133         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
2134         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
2135         * modules/memchr-tests (Depends-on): Add extensions.
2136         * modules/memchr2-tests (Depends-on): Add extensions.
2137         * modules/memcmp-tests (Depends-on): Add extensions.
2138         * modules/memmem-tests (Depends-on): Add extensions.
2139         * modules/memrchr-tests (Depends-on): Add extensions.
2140
2141 2009-05-13  Bruno Haible  <bruno@clisp.org>
2142
2143         Make some tests ISO C 99 compliant.
2144         * tests/zerosize-ptr.h: New file.
2145         * tests/test-memchr.c: Include zerosize-ptr.h.
2146         (main): Use a zero-size object pointer instead of NULL.
2147         * tests/test-memchr2.c: Include zerosize-ptr.h.
2148         (main): Use a zero-size object pointer instead of NULL.
2149         * tests/test-memcmp.c: Include zerosize-ptr.h.
2150         (main): Use a zero-size object pointer instead of NULL.
2151         * tests/test-memmem.c: Include zerosize-ptr.h.
2152         (main): Use a zero-size object pointer instead of NULL.
2153         * tests/test-memrchr.c: Include zerosize-ptr.h.
2154         (main): Use a zero-size object pointer instead of NULL.
2155         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
2156         m4/mmap-anon.m4.
2157         (Depends-on): Add getpagesize.
2158         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2159         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
2160         m4/mmap-anon.m4.
2161         (Depends-on): Add getpagesize.
2162         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2163         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
2164         m4/mmap-anon.m4.
2165         (Depends-on): Add getpagesize.
2166         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2167         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
2168         m4/mmap-anon.m4.
2169         (Depends-on): Add getpagesize.
2170         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2171         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
2172         m4/mmap-anon.m4.
2173         (Depends-on): Add getpagesize.
2174         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2175
2176 2009-05-12  Bruno Haible  <bruno@clisp.org>
2177
2178         Tests for module 'alignof'.
2179         * modules/alignof-tests: New file.
2180         * tests/test-alignof.c: New file.
2181
2182 2009-05-12  Bruno Haible  <bruno@clisp.org>
2183
2184         Fix alignof macro.
2185         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
2186         vendor compilers that are always correct.
2187
2188 2009-05-12  Bruno Haible  <bruno@clisp.org>
2189
2190         Make the MAP_ANONYMOUS detection work on HP-UX 11.
2191         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
2192         not whether its fully works.
2193
2194 2009-05-12  Bruno Haible  <bruno@clisp.org>
2195
2196         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
2197
2198 2009-05-12  Jim Meyering  <meyering@redhat.com>
2199
2200         * top/maint.mk: Adjust backslash alignment.
2201
2202 2009-05-11  Simon Josefsson  <simon@josefsson.org>
2203
2204         * top/maint.mk: Make $(srcdir)/build-aux configurable.
2205
2206 2009-05-11  Eric Blake  <ebb9@byu.net>
2207
2208         argp: avoid undefined behavior
2209         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
2210         macros.
2211
2212 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2213
2214         * tests/test-vc-list-files-git.sh: Do git config of user.email and
2215         user.name to prevent git commit from complaining.
2216
2217 2009-05-10  Bruno Haible  <bruno@clisp.org>
2218
2219         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
2220         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
2221         it rewrites every file name only once.
2222         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
2223
2224 2009-05-08  Bruno Haible  <bruno@clisp.org>
2225
2226         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
2227         instead of 'max'.
2228
2229 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2230
2231         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
2232         sockaddr_storage test.
2233
2234 2009-05-07  Simon Josefsson  <simon@josefsson.org>
2235
2236         * modules/sys_socket (Makefile.am): Substitute
2237         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
2238         * m4/sys_socket_h.m4: Check for sockaddr_storage.
2239         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
2240         * tests/test-sys_socket.c: Check sockaddr_storage.
2241
2242 2009-05-08  Bruno Haible  <bruno@clisp.org>
2243
2244         New module 'alignof'.
2245         * lib/alignof.h: New file.
2246         * modules/alignof: New file.
2247
2248 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2249             Bruno Haible  <bruno@clisp.org>
2250
2251         Fix test-file-has-acl on FreeBSD.
2252         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
2253         mask is implicitly added.
2254         * tests/test-file-has-acl.c: Include <signal.h>.
2255         (main): Terminate the test after 5 seconds.
2256         * modules/acl-tests (configure.ac): Check for alarm function.
2257
2258 2009-05-04  Bruno Haible  <bruno@clisp.org>
2259
2260         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
2261         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
2262         * modules/errno (configure.ac): Drop AC_REQUIRE.
2263         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
2264         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
2265
2266 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2267
2268         * modules/glob-tests: New module.
2269         * tests/test-glob.c: Add.
2270
2271 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2272
2273         * modules/fnmatch-tests: New module.
2274         * tests/test-fnmatch.c: Add.
2275
2276 2009-05-04  Eric Blake  <ebb9@byu.net>
2277
2278         maint: make the new no-submodule-changes rule VPATH-safe
2279         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
2280
2281 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2282             Bruno Haible  <bruno@clisp.org>
2283
2284         acl: Fix infinite loop on FreeBSD.
2285         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
2286         of return value from acl_get_entry.
2287         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
2288         Likewise.
2289
2290 2009-05-03  Bruno Haible  <bruno@clisp.org>
2291
2292         * lib/acl-internal.h (acl_entries): Clarify return value.
2293         * lib/acl_entries.c (acl_entries): Likewise.
2294
2295 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2296
2297         Bug fix in acl module.
2298         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
2299
2300 2009-05-03  Bruno Haible  <bruno@clisp.org>
2301
2302         Create gperf-generated file in the source dir, not in the build dir.
2303         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
2304         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
2305         * modules/unicase/locale-language (unicase/locale-languages.h):
2306         Likewise.
2307         * modules/unicase/special-casing (unicase/special-casing-table.h):
2308         Likewise.
2309         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
2310         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
2311         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
2312         Reported by Ralf Wildenhues.
2313
2314 2009-05-03  Bruno Haible  <bruno@clisp.org>
2315
2316         * modules/fnmatch (Description, configure.ac): Taken from
2317         fnmatch-posix.
2318         * modules/fnmatch-posix: Turn into a symbolic reference to the
2319         'fnmatch' module, and deprecate.
2320         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
2321
2322 2009-05-03  Bruno Haible  <bruno@clisp.org>
2323
2324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
2325         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
2326         Reported by Ralf Wildenhues.
2327
2328 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2329
2330         * m4/fnmatch.m4: Fix fnmatch re-define.
2331
2332 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2333
2334         priv-set: new module and tests; adapt write-any-file
2335         * lib/priv-set.c: New file.
2336         * lib/priv-set.h: New file.
2337         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
2338         * lib/write-any-file.c: Simplify by using priv-set module.
2339         * m4/priv-set.m4: New file.
2340         * modules/priv-set: New file.
2341         * modules/unlinkdir: Add dependency on priv-set module.
2342         * modules/write-any-file: Likewise.
2343
2344         Tests for module 'priv-set'.
2345         * modules/priv-set-tests: New file.
2346         * tests/test-priv-set.c: New file.
2347
2348 2009-05-03  Jim Meyering  <meyering@redhat.com>
2349             Bruno Haible  <bruno@clisp.org>
2350
2351         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
2352         use the converted UTF-8 variant of the name instead.
2353
2354 2009-05-03  Jim Meyering  <meyering@redhat.com>
2355
2356         tests: tighten some getdate tests
2357         * tests/test-getdate.c (main): Tighten tests: require equality,
2358         not just greater than.  Set TZ envvar to UTC0.
2359
2360 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2361
2362         getdate: correctly interpret "next monday" when run on a Monday
2363         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
2364         that e.g., "next tues" (when run on a tuesday) results in a date
2365         that is one week in the future, and not today's date.
2366         I.e., add a week when the wday is the same as the current one.
2367         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
2368         and earlier by Martin Bernreuther and Jan Minář.
2369         * tests/test-getdate.c (main): Check that "next DAY" is always in
2370         the future and that "last DAY" is always in the past.
2371
2372 2009-05-02  Jim Meyering  <meyering@redhat.com>
2373
2374         build: ensure that a release build fails when a submodule is unclean
2375         * top/maint.mk (no-submodule-changes): New rule.
2376         (alpha beta major): Depend on it.
2377
2378 2009-05-02  Bruno Haible  <bruno@clisp.org>
2379
2380         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
2381         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
2382         shell variable gl_fnmatch_required to detect which variant is
2383         requested.
2384         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
2385         gl_FUNC_FNMATCH_POSIX.
2386         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
2387         exclude fnmatch-posix.
2388
2389 2009-05-02  Bruno Haible  <bruno@clisp.org>
2390
2391         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
2392         * modules/mbsrtowcs (License): Change to LGPLv2+.
2393         * modules/strnlen1 (License): Likewise.
2394         Reported by Simon Josefsson.
2395
2396 2009-05-02  Bruno Haible  <bruno@clisp.org>
2397
2398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
2399         "cross".
2400         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
2401         gnulib-tool was called with option --source-base=lib.
2402
2403 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2404
2405         Use automake *-local hooks without commands, for extensibility.
2406         * modules/localcharset (Makefile.am): Rename install-exec-local
2407         rule to install-exec-localcharset, and make it a prerequisite of
2408         install-exec-local.  Likewise, rename the uninstall-local rule to
2409         uninstall-localcharset, and make it a prerequisite of the former.
2410
2411 2009-05-01  Bruno Haible  <bruno@clisp.org>
2412
2413         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
2414         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2415         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
2416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
2417         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
2418         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2419         m4/locale-zh.m4, m4/codeset.m4.
2420
2421         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2422         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
2423         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2424         m4/locale-zh.m4.
2425
2426         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
2427         REPLACE_WCRTOMB if mbstate_t must be replaced.
2428         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
2429         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
2430
2431 2009-05-01  Bruno Haible  <bruno@clisp.org>
2432
2433         Avoid compiler warnings when redefining macros defined by <libintl.h>.
2434         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
2435         dngettext, dcngettext, textdomain, bindtextdomain,
2436         bind_textdomain_codeset): Undefine before redefining.
2437
2438 2009-04-30  Bruno Haible  <bruno@clisp.org>
2439
2440         Fix bug introduced on 2009-04-25.
2441         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
2442         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
2443         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
2444         is defined.
2445         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
2446         is defined.
2447         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
2448         is defined.
2449         Reported by Elbert_Pol <elbert.pol@gmail.com>.
2450
2451 2009-04-28  Bruno Haible  <bruno@clisp.org>
2452
2453         Comment tweaks.
2454         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
2455         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
2456         * lib/unicase.h (u*_casexfrm): Likewise.
2457         Reported by Paolo Bonzini.
2458
2459 2009-04-28  Bruno Haible  <bruno@clisp.org>
2460
2461         Fix a compilation error.
2462         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
2463         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2464         Reported by Jim Meyering.
2465
2466 2009-04-27  Bruno Haible  <bruno@clisp.org>
2467
2468         New module 'libunistring'.
2469         * modules/libunistring: New file.
2470         * m4/libunistring.m4: New file.
2471         * MODULES.html.sh (Unicode string functions): Add it.
2472
2473 2009-04-27  Eric Blake  <ebb9@byu.net>
2474
2475         maint.mk: allow package-specific header to provide <config.h>
2476         * top/maint.mk (sc_require_config_h): New variable.
2477         (sc_require_config_h, sc_require_config_h_first): Use it.
2478
2479 2009-04-27  Simon Josefsson  <simon@josefsson.org>
2480
2481         * top/maint.mk (sc_avoid_if_before_free): Except
2482         useless-if-before-free script.
2483
2484 2009-04-27  Eric Blake  <ebb9@byu.net>
2485
2486         maintainer-makefile: depend on all required helper scripts
2487         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
2488         useless-if-before-free.
2489         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
2490         version, rather than assuming gnulib checkout is available.
2491         Reported by Simen Josefsson.
2492
2493 2009-04-26  Bruno Haible  <bruno@clisp.org>
2494
2495         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
2496         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
2497         "../" or "..".
2498
2499 2009-04-26  Bruno Haible  <bruno@clisp.org>
2500
2501         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
2502         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
2503         AC_LIB_HAVE_LINKFLAGS.
2504
2505 2009-04-26  Bruno Haible  <bruno@clisp.org>
2506
2507         Simplify calling convention of u*_conv_from_encoding.
2508         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
2509         u32_conv_from_encoding): Expect a resultbuf argument and return the
2510         result directly as a pointer.
2511         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
2512         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
2513         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
2514         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
2515         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
2516         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2517         Update.
2518         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
2519         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
2520         * lib/vasnprintf.c (VASNPRINTF): Update.
2521         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
2522         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
2523         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
2524         * NEWS: Mention the change.
2525
2526 2009-04-26  Bruno Haible  <bruno@clisp.org>
2527
2528         Simplify calling convention of u*_conv_to_encoding.
2529         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
2530         u32_conv_to_encoding): Expect a resultbuf argument and return the
2531         result directly as a pointer.
2532         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2533         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
2534         freeing scaled_offsets if mem_iconveha failed.
2535         * lib/unicase/u-casexfrm.h (FUNC): Update.
2536         * lib/uninorm/u-normxfrm.h (FUNC): Update.
2537         * lib/vasnprintf.c (VASNPRINTF): Update.
2538         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
2539         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
2540         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
2541         * NEWS: Mention the change.
2542
2543 2009-04-26  Bruno Haible  <bruno@clisp.org>
2544
2545         Avoid test failures on AIX and OSF/1.
2546         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
2547         malloc(0).
2548         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2549         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2550         Likewise.
2551         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
2552         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
2553         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
2554         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
2555         * doc/posix-functions/malloc.texi: Document the portability problem
2556         related to malloc(0).
2557
2558 2009-04-26  Bruno Haible  <bruno@clisp.org>
2559
2560         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
2561         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
2562         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
2563
2564 2009-04-25  Bruno Haible  <bruno@clisp.org>
2565
2566         Avoid link error when creating a namespace clean library.
2567         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
2568         as macro with arguments if already defined as an alias.
2569         * lib/signbitf.c (gl_signbitf): Don't undefine.
2570         * lib/signbitd.c (gl_signbitd): Don't undefine.
2571         * lib/signbitl.c (gl_signbitl): Don't undefine.
2572
2573 2009-04-25  Jim Meyering  <meyering@redhat.com>
2574
2575         vc-list-files: fix another quoting bug
2576         * build-aux/vc-list-files: Avoid sed backslash expansion
2577         of pathological directory names.
2578
2579 2009-04-25  Eric Blake  <ebb9@byu.net>
2580
2581         vc-list-files: fix shell quoting error
2582         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
2583         timestamp.
2584
2585 2009-04-25  Jim Meyering  <meyering@redhat.com>
2586
2587         vc-list-files: restore lost functionality with subdir argument
2588         * build-aux/vc-list-files: When given a non-"." sub-directory
2589         argument, substitute the $dir/ prefix back onto each resulting name.
2590         Otherwise, coreutils' root_tests check would fail.
2591
2592 2009-04-24  Eric Blake  <ebb9@byu.net>
2593
2594         vc-list-files: ignore git symlinks
2595         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
2596         than ls-files, to ignore git symlinks.
2597
2598         maint.mk: import improvements from m4
2599         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
2600         (move_if_change): Delete unused macro.
2601         (news-date-check, vc-diff-check): Support VPATH builds.
2602         (announcement): Likewise.  Split --bootstrap-tools list...
2603         (boostrap-tools): ...into separate list, which can be overridden
2604         in cfg.mk.
2605         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
2606         requiring dependency on useless-if-before-free module.
2607         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
2608         Support VPATH builds.
2609
2610 2009-04-24  Jim Meyering  <meyering@redhat.com>
2611
2612         maint.mk: remove coreutils-specific rules and variables
2613         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
2614         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
2615         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
2616
2617         maint.mk: remove obsolete rule
2618         * top/maint.mk (rel-check): Remove rule.
2619         (WGET, WGETFLAGS): Remove now-unused variables.
2620
2621 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2622
2623         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
2624         consistency.
2625
2626         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
2627         '$(PATH_SEPARATOR)' instead of ':'.
2628
2629 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2630
2631         * lib/getopt1.c (main): Use 'const' for static array.
2632
2633 2009-04-24  Simon Josefsson  <simon@josefsson.org>
2634
2635         * top/maint.mk: Sync with coreutils.
2636         * NEWS: Explain incompatibilities.
2637
2638 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2639             Bruno Haible  <bruno@clisp.org>
2640
2641         Fix cross-compilation results.
2642         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
2643         statement, as third argument of AC_TRY_RUN.
2644         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2645         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2646         Likewise.
2647         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2648         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
2649         Likewise.
2650         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2651         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
2652         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
2653
2654 2009-04-20  Bruno Haible  <bruno@clisp.org>
2655
2656         Avoid test failure on mingw.
2657         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
2658
2659 2009-04-20  Bruno Haible  <bruno@clisp.org>
2660
2661         Avoid compilation error on mingw.
2662         * modules/localename-tests (Depends-on): Add locale.
2663
2664 2009-04-19  Bruno Haible  <bruno@clisp.org>
2665
2666         Support for building a shared library on Windows platforms.
2667         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
2668         (main): Test the presence of UNINORM_NFC here.
2669         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
2670         (main): Test the presence of UNINORM_NFD here.
2671         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
2672         (main): Test the presence of UNINORM_NFKC here.
2673         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
2674         (main): Test the presence of UNINORM_NFKD here.
2675
2676 2009-04-19  Bruno Haible  <bruno@clisp.org>
2677
2678         Avoid a compiler warning.
2679         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
2680         Change type of variable 'sequence'.
2681
2682 2009-04-19  Bruno Haible  <bruno@clisp.org>
2683
2684         * modules/configmake (Makefile.am): When the contents of configmake.h
2685         does not change, arrange to preserve its modification time.
2686
2687 2009-04-17  Simon Josefsson  <simon@josefsson.org>
2688
2689         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
2690         gettext domain.
2691
2692 2009-04-16  Jim Meyering  <meyering@redhat.com>
2693
2694         useless-if-before-free: improve conversion code
2695         * build-aux/useless-if-before-free: Adjust code-in-comment to match
2696         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
2697
2698 2009-04-14  Bruno Haible  <bruno@clisp.org>
2699
2700         * modules/fcntl (Depends-on): Add extensions.
2701         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
2702
2703 2009-04-12  Ben Pfaff  <blp@gnu.org>
2704
2705         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
2706         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
2707
2708 2009-03-20  Ben Pfaff  <blp@gnu.org>
2709
2710         Make rename replace existing destinations on Windows.
2711         * m4/rename.m4: Add test for Mingw.
2712         * lib/rename.c: Add rename replacement that uses MoveFileEx with
2713         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
2714         * doc/posix-functions/rename.texi: Document.
2715
2716 2009-04-10  Bruno Haible  <bruno@clisp.org>
2717
2718         New include file "iconveh.h".
2719         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
2720         * lib/striconveh.h: Include it.
2721         (enum iconv_ilseq_handler): Remove definition.
2722         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
2723         striconveh.h.
2724         * lib/striconveha.c: Include striconveh.h.
2725         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
2726         * modules/striconveh (Files): Add lib/iconveh.h.
2727         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
2728         lib/striconveh.h.
2729
2730 2009-04-10  Bruno Haible  <bruno@clisp.org>
2731
2732         * lib/uniconv.h: Update comment.
2733
2734 2009-04-10  Bruno Haible  <bruno@clisp.org>
2735
2736         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
2737         always.
2738         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
2739         * lib/unistr/u16-mbtouc-aux.c: Likewise.
2740         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
2741         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
2742         "unistring-notinline.h", so that the function gets defined always.
2743         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
2744         * lib/unistr/u8-uctomb.c: Likewise.
2745         * lib/unistr/u16-mbtouc.c: Likewise.
2746         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
2747         * lib/unistr/u16-uctomb.c: Likewise.
2748         * lib/unistr/u32-mbtouc.c: Likewise.
2749         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
2750         * lib/unistr/u32-uctomb.c: Likewise.
2751
2752 2009-04-10  Bruno Haible  <bruno@clisp.org>
2753
2754         Mark 'utime' obsolete.
2755         * modules/utime (Status, Notice): New sections.
2756         Suggested by Jim Meyering.
2757
2758         Fix cross-compile guess for utime test.
2759         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
2760         autoconf.
2761         * doc/posix-functions/utime.texi: Give more precisions.
2762         Reported by Jan <ipif@ymail.com>.
2763
2764 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
2765
2766         filevercmp: correct today's change
2767         * lib/filevercmp.c: Also handle coreutils' test inputs.
2768         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
2769
2770         Fix regression in 'filevercmp' module. Thanks Sven Joachim
2771         for reporting it.
2772         * lib/filevercmp.c: Special handle for "", "." and "..".
2773         * tests/test-filevercmp.c: Enlarge the set suite.
2774
2775 2009-04-07  Jim Meyering  <meyering@redhat.com>
2776
2777         useless-if-before-free: show how to remove braced useless free, too
2778         * build-aux/useless-if-before-free: still only in a comment, though.
2779
2780 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
2781
2782         maint.mk: import changes to syntax-check macros from coreutils
2783         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
2784         Use them in the relevant macros.
2785
2786 2009-04-06  Bruno Haible  <bruno@clisp.org>
2787
2788         Fix unportable use of bit-fields.
2789         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
2790         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
2791         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
2792
2793 2009-04-06  Bruno Haible  <bruno@clisp.org>
2794
2795         Avoid test failures on AIX and OSF/1.
2796         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
2797         that malloc(0) = NULL.
2798         * tests/unicase/test-u8-tolower.c (check): Likewise.
2799         * tests/unicase/test-u8-totitle.c (check): Likewise.
2800         * tests/unicase/test-u8-toupper.c (check): Likewise.
2801         * tests/unicase/test-u16-casefold.c (check): Likewise.
2802         * tests/unicase/test-u16-tolower.c (check): Likewise.
2803         * tests/unicase/test-u16-totitle.c (check): Likewise.
2804         * tests/unicase/test-u16-toupper.c (check): Likewise.
2805         * tests/unicase/test-u32-casefold.c (check): Likewise.
2806         * tests/unicase/test-u32-tolower.c (check): Likewise.
2807         * tests/unicase/test-u32-totitle.c (check): Likewise.
2808         * tests/unicase/test-u32-toupper.c (check): Likewise.
2809         * tests/uninorm/test-u8-nfc.c (check): Likewise.
2810         * tests/uninorm/test-u8-nfd.c (check): Likewise.
2811         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
2812         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
2813         * tests/uninorm/test-u16-nfc.c (check): Likewise.
2814         * tests/uninorm/test-u16-nfd.c (check): Likewise.
2815         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
2816         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
2817         * tests/uninorm/test-u32-nfc.c (check): Likewise.
2818         * tests/uninorm/test-u32-nfd.c (check): Likewise.
2819         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
2820         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
2821
2822 2009-04-05  Bruno Haible  <bruno@clisp.org>
2823
2824         Work around an autoconf limitation.
2825         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
2826         comment line if it would be longer than 3 KB.
2827
2828 2009-04-05  Bruno Haible  <bruno@clisp.org>
2829
2830         Avoid test failure with libiconv-1.13.
2831         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
2832         of the expected test results.
2833
2834 2009-04-05  Bruno Haible  <bruno@clisp.org>
2835
2836         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
2837         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
2838         that it should be installed.
2839
2840 2009-04-05  Bruno Haible  <bruno@clisp.org>
2841
2842         * gnulib-tool: New option --copy-file.
2843         (func_usage): Document it.
2844         (func_dest_tmpfilename): Moved out of func_import.
2845         (func_add_file, func_update_file): New functions, extracted from
2846         func_import.
2847         (func_import): Update.
2848
2849 2009-04-05  Karl Berry  <karl@gnu.org>
2850
2851         * README: prominently mention gnulib-tool.
2852         Rearrange sections so getting the code is near the top.
2853
2854 2009-04-05  Bruno Haible  <bruno@clisp.org>
2855
2856         * lib/unicase.h: Mention u*_cmp2.
2857         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2858         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
2859         * lib/unicase/ulc-casecmp.c: Likewise.
2860         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
2861         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
2862         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
2863         unistr/u8-cmp.
2864         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
2865         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
2866         unistr/u16-cmp.
2867         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
2868         unistr/u32-cmp.
2869
2870         * lib/uninorm.h: Mention u*_cmp2.
2871         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
2872         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
2873         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
2874         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
2875         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
2876         unistr/u8-cmp.
2877         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
2878         unistr/u16-cmp.
2879         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
2880         unistr/u32-cmp.
2881
2882         New module 'unistr/u32-cmp2'.
2883         * lib/unistr/u32-cmp2.c: New file.
2884         * modules/unistr/u32-cmp2: New file.
2885
2886         New module 'unistr/u16-cmp2'.
2887         * lib/unistr/u16-cmp2.c: New file.
2888         * modules/unistr/u16-cmp2: New file.
2889
2890         New module 'unistr/u8-cmp2'.
2891         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
2892         * lib/unistr/u8-cmp2.c: New file.
2893         * lib/unistr/u-cmp2.h: New file.
2894         * modules/unistr/u8-cmp2: New file.
2895
2896 2009-04-05  Bruno Haible  <bruno@clisp.org>
2897
2898         * lib/unictype.h (uc_property_is_valid): New macro.
2899         * tests/unictype/test-pr_byname.c (main): Use it.
2900
2901         * lib/unistr.h: Doc fixes.
2902         * lib/uniconv.h: Doc fixes.
2903         * lib/unictype.h: Doc fixes.
2904
2905 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
2906
2907         Port coreutils 7.2 to Solaris 8.
2908
2909         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
2910         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
2911         for Solaris 8.  This is a bit of a hack, as it means it's the
2912         caller's responsibility to add -lnsl if needed, but most likely it
2913         won't be needed since only getaddrinfo uses this and getaddrinfo
2914         isn't needed on Solaris 8.
2915
2916         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
2917         problem to Solaris 8 encountered with coreutils 7.2, which
2918         resulted in a message "fnmatch.c:292: warning: passing argument 4
2919         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
2920         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
2921
2922 2009-04-03  Simon Josefsson  <simon@josefsson.org>
2923
2924         * m4/ld-version-script.m4: Add FIXME comment.
2925
2926 2009-04-02  Simon Josefsson  <simon@josefsson.org>
2927
2928         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
2929         SOVERSION variable.
2930
2931 2009-04-02  Bruno Haible  <bruno@clisp.org>
2932
2933         * Makefile (info, html, dvi, pdf): Combine the rules.
2934         Suggested by Jim Meyering.
2935
2936 2009-04-01  Bruno Haible  <bruno@clisp.org>
2937
2938         * Makefile (info, html, dvi, pdf): New targets.
2939         Reported by Reuben Thomas <rrt@sc3d.org>.
2940
2941 2009-04-01  Bruno Haible  <bruno@clisp.org>
2942
2943         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
2944         can be put into PATH.
2945         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
2946
2947 2009-04-01  Bruno Haible  <bruno@clisp.org>
2948
2949         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
2950
2951 2009-04-01  Bruno Haible  <bruno@clisp.org>
2952
2953         Rename module 'visibility'.
2954         * modules/lib-symbol-visibility: Renamed from modules/visibility.
2955         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
2956         * doc/gnulib.texi: Update.
2957         * MODULES.html.sh (Misc): Update.
2958         * NEWS: Mention the change.
2959
2960 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2961
2962         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
2963         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
2964         Eric Blake <ebb9@byu.net> for review.
2965         * MODULES.html.sh: Add lib-msvc-compat.
2966         * doc/gnulib.texi: Link to new section.
2967         * m4/ld-output-def.m4: New file.
2968         * doc/ld-output-def.texi: New file.
2969
2970 2009-04-01  Simon Josefsson  <simon@josefsson.org>
2971
2972         Rename ld-version-script to lib-symbol-versions.  Suggested by
2973         Bruno Haible <bruno@clisp.org>.
2974         * modules/ld-version-script: Renamed to lib-symbol-versions.
2975         * doc/ld-version-script.texi: Fix module name.
2976         * MODULES.html.sh: Add lib-symbol-versions.
2977
2978 2009-03-31  Simon Josefsson  <simon@josefsson.org>
2979
2980         * modules/u64-tests: New file.
2981         * tests/test-u64.c: New file.
2982
2983 2009-03-04  Simon Josefsson  <simon@josefsson.org>
2984
2985         * MODULES.html.sh: Mention u64.
2986         * modules/u64: New module.
2987         * modules/crypto/sha512: Depend on u64 module instead of providing
2988         u64.h.
2989
2990 2009-03-27  Eric Blake  <ebb9@byu.net>
2991
2992         test-strerror: make debugging EAI_SYSTEM easier
2993         * modules/getaddrinfo-tests (Depends-on): Add strerror.
2994         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
2995         failure was EAI_SYSTEM.
2996
2997 2009-03-25  Bruno Haible  <bruno@clisp.org>
2998
2999         Fix a problem with --enable-relocatable on Solaris 7.
3000         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
3001         since 2008-02-24.
3002
3003 2009-03-25  Eric Blake  <ebb9@byu.net>
3004
3005         test-sockets: avoid gcc warning
3006         * tests/test-sockets.c (main): Silence compiler warning.
3007
3008 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3009
3010         New modules nproc, pthread, contributed by Glen Lenker.
3011
3012         * MODULES.html.sh: Add pthread, nproc.
3013         * lib/nproc.c: New file.
3014         * lib/nproc.h: New file.
3015         * lib/pthread.in.h: New file.
3016         * m4/pthread.m4: New file.
3017         * modules/nproc: New file.
3018         * modules/pthread: New file.
3019
3020 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3021
3022         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
3023         New variable.
3024
3025 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
3026
3027         filevercmp: handle simple~ and numbered.~3~ backup suffixes
3028         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
3029         * tests/test-filevercmp.c: Add tests for backup suffixes.
3030
3031 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3032
3033         * modules/stdlib (Depends-on): Add stdint, needed when defining
3034         struct random_data on, for example, HP-UX 10.20.  Reported by
3035         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3036
3037 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3038
3039         * lib/readline.c (readline): Call fflush on stdout after printing
3040         prompt.
3041
3042 2009-03-20  Bruno Haible  <bruno@clisp.org>
3043
3044         Remove dependency from 'close' module to -lws2_32 on native Windows.
3045         * lib/close-hook.h: New file.
3046         * lib/close-hook.c: New file.
3047         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
3048         w32sock.h.
3049         (_gl_close_fd_maybe_socket): Remove function.
3050         (rpl_close): Invoke execute_all_close_hooks instead of
3051         _gl_close_fd_maybe_socket.
3052         * lib/sockets.c: Include close-hook.h, w32sock.h.
3053         (close_fd_maybe_socket): New function, essentially from lib/close.c.
3054         (close_sockets_hook): New variable.
3055         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
3056         (gl_sockets_cleanup): Unregister it.
3057         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
3058         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
3059         * modules/close-hook: New file.
3060         * modules/close (Files): Remove lib/w32sock.h.
3061         (Depends-on): Add close-hook.
3062         (Link): Remove section.
3063         * modules/sockets (Files): Add lib/w32sock.h.
3064         (Depends-on): Add close-hook.
3065         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
3066         invocation.
3067         * NEWS: Mention that LIB_CLOSE is gone.
3068
3069 2009-03-23  Eric Blake  <ebb9@byu.net>
3070
3071         signal-tests: test previous patch
3072         * tests/test-signal.c: New file.
3073         * modules/signal-tests: Likewise.
3074
3075         signal.h: always support 'volatile sig_atomic_t'
3076         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
3077         (gl_SIGNAL_H_DEFAULTS): Add a default.
3078         * modules/signal (Makefile.am): Substitute if needed.
3079         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
3080         users can blindly add volatile.
3081         * doc/posix-headers/signal.texi (signal.h): Document it.
3082         Reported by Matthew Woehlke.
3083
3084 2009-03-23  Jim Meyering  <meyering@redhat.com>
3085
3086         pathmax: PATH_MAX: use pathconf only when available
3087         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
3088         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
3089         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
3090         This avoids a link failure in a PSP cross-compilation environment
3091         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
3092
3093         * lib/vasnprintf.c (divide): Fix typo in comment.
3094
3095 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3096
3097         * gnulib-tool (func_filter_filelist): Fix comment.
3098
3099 2009-03-20  Bruno Haible  <bruno@clisp.org>
3100
3101         Make sockets.h self-contained.
3102         * lib/sockets.c: Include sockets.h first.
3103         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
3104
3105 2009-03-19  Eric Blake  <ebb9@byu.net>
3106
3107         doc: mention more functions added in cygwin 1.7.0
3108         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
3109         addition.
3110         * doc/posix-functions/log2f.texi: Likewise.
3111
3112 2009-03-19  Jim Meyering  <meyering@redhat.com>
3113
3114         fsusage: avoid syntax error due to statement-before-declaration
3115         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
3116         after all declarations.  Reported by Matthew Woehlke in
3117         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
3118
3119 2009-03-18  Eric Blake  <ebb9@byu.net>
3120
3121         build-aux/compile: sync from automake
3122         * build-aux/compile: New file, from automake.
3123         * config/srclist.txt: Mention build-aux/compile.
3124
3125 2009-03-17  Bruno Haible  <bruno@clisp.org>
3126
3127         * lib/git-merge-changelog.c: Fix typo in comment.
3128         Reported by Reuben Thomas <rrt@sc3d.org>.
3129
3130 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
3131
3132         * m4/regex.m4: update and improve help for
3133         --without-included-regex.
3134
3135 2009-03-17  Simon Josefsson  <simon@josefsson.org>
3136
3137         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
3138         failure on missing include files.
3139
3140 2009-03-17  Eric Blake  <ebb9@byu.net>
3141
3142         doc: mention more functions added in cygwin 1.7.0
3143         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
3144         addition.
3145         * doc/posix-functions/fwscanf.texi: Likewise.
3146         * doc/posix-functions/swprintf.texi: Likewise.
3147         * doc/posix-functions/swscanf.texi: Likewise.
3148         * doc/posix-functions/vfwprintf.texi: Likewise.
3149         * doc/posix-functions/vfwscanf.texi: Likewise.
3150         * doc/posix-functions/vswprintf.texi: Likewise.
3151         * doc/posix-functions/vswscanf.texi: Likewise.
3152         * doc/posix-functions/vwprintf.texi: Likewise.
3153         * doc/posix-functions/vwscanf.texi: Likewise.
3154         * doc/posix-functions/wcscasecmp.texi: Likewise.
3155         * doc/posix-functions/wcsdup.texi: Likewise.
3156         * doc/posix-functions/wcsftime.texi: Likewise.
3157         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3158         * doc/posix-functions/wprintf.texi: Likewise.
3159         * doc/posix-functions/wscanf.texi: Likewise.
3160         * doc/glibc-functions/gethostbyname2.texi: Likewise.
3161
3162 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3163
3164         maint.mk: really add $(AM_MAKEFLAGS)
3165         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
3166         was inadvertently omitted in the last commit.
3167         Spotted by Bruno Haible.
3168
3169         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
3170         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
3171         $(AM_MAKEFLAGS)' rather than plain `make'.
3172
3173         gnulib-tool: execute $MAKE not make
3174         * gnulib-tool: Default $MAKE to 'make'.
3175         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
3176         than make.  Initialize $MAKE in the do-autobuild script.
3177
3178         gnulib-tool: use $MAKE not make in generated files
3179         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
3180         make, in generated files.  Initialize $MAKE in the do-autobuild
3181         script.
3182
3183         * top/GNUmakefile (_have-git-version-gen): Fix typo.
3184
3185         GNUmakefile: disable parallelism only for multiple, recursive targets
3186         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
3187         additions in the Makefile.
3188         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
3189         by Automake.
3190         (.NOTPARALLEL): Only disable parallel builds if multiple targets
3191         are listed on the command line and at least one of them is
3192         listed in $(ALL_RECURSIVE_TARGETS).
3193
3194 2009-03-14  Bruno Haible  <bruno@clisp.org>
3195
3196         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
3197         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
3198         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
3199         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
3200         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
3201         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
3202         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
3203         unistr/u8-uctomb.
3204         * modules/unistr/u8-strchr (Depends-on): Likewise.
3205         * modules/unistr/u8-strrchr (Depends-on): Likewise.
3206         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
3207         unistr/u16-uctomb.
3208         * modules/unistr/u16-strchr (Depends-on): Likewise.
3209         * modules/unistr/u16-strrchr (Depends-on): Likewise.
3210
3211 2009-03-12  Bruno Haible  <bruno@clisp.org>
3212
3213         Work around select() bug on Interix 3.5.
3214         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
3215         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
3216         * m4/select.m4: New file.
3217         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
3218         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
3219         * modules/select (Files): Add m4/select.m4.
3220         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
3221         * modules/nanosleep (Depends-on): Add select.
3222         * modules/poll (Depends-on): Likewise.
3223         * doc/posix-functions/select.texi: Mention the Interix bug.
3224         Reported by Markus Duft <mduft@gentoo.org>.
3225
3226         * lib/select.c: Renamed from lib/winsock-select.c.
3227         * modules/select (Files): Add lib/select.c, remove
3228         lib/winsock-select.c.
3229         (configure.ac): Update.
3230
3231 2009-03-12  Jim Meyering  <meyering@redhat.com>
3232
3233         avoid gcc warnings about unused macro definitions
3234         * lib/readtokens.c (STREQ): Remove unused definition.
3235         * lib/xmalloc.c (SIZE_MAX): Likewise.
3236         * lib/openat-die.c (N_): Likewise.
3237         * lib/mountlist.c (SIZE_MAX): Remove definition.
3238         Instead, include <stdint.h>.
3239         * lib/readutmp.c: Likewise.
3240         * modules/readutmp (Depends-on): Add stdint.
3241         * modules/mountlist (Depends-on): Add stdint.
3242         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
3243
3244 2009-03-10  Bruno Haible  <bruno@clisp.org>
3245
3246         Tests for module 'mbmemcasecoll'.
3247         * modules/mbmemcasecoll-tests: New file.
3248         * tests/test-mbmemcasecoll1.sh: New file.
3249         * tests/test-mbmemcasecoll2.sh: New file.
3250         * tests/test-mbmemcasecoll3.sh: New file.
3251         * tests/test-mbmemcasecoll.c: New file.
3252
3253         New module 'mbmemcasecoll'.
3254         * lib/mbmemcasecoll.h: New file.
3255         * lib/mbmemcasecoll.c: New file.
3256         * modules/mbmemcasecoll: New file.
3257
3258         * tests/test-mbmemcasecmp.h: New file, extracted from
3259         tests/test-mbmemcasecmp.c.
3260         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
3261         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
3262         (main): Update.
3263         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
3264
3265 2009-03-09  Bruno Haible  <bruno@clisp.org>
3266
3267         Tests for module 'mbmemcasecmp'.
3268         * modules/mbmemcasecmp-tests: New file.
3269         * tests/test-mbmemcasecmp1.sh: New file.
3270         * tests/test-mbmemcasecmp2.sh: New file.
3271         * tests/test-mbmemcasecmp3.sh: New file.
3272         * tests/test-mbmemcasecmp.c: New file.
3273
3274         New module 'mbmemcasecmp'.
3275         * lib/mbmemcasecmp.h: New file.
3276         * lib/mbmemcasecmp.c: New file.
3277         * modules/mbmemcasecmp: New file.
3278
3279 2009-03-09  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for module 'unicase/ulc-casecoll'.
3282         * modules/unicase/ulc-casecoll-tests: New file.
3283         * tests/unicase/test-ulc-casecoll1.sh: New file.
3284         * tests/unicase/test-ulc-casecoll2.sh: New file.
3285         * tests/unicase/test-ulc-casecoll.c: New file.
3286
3287         New module 'unicase/ulc-casecoll'.
3288         * lib/unicase.h (ulc_casecoll): New declaration.
3289         * lib/unicase/ulc-casecoll.c: New file.
3290         * modules/unicase/ulc-casecoll: New file.
3291
3292         New module 'unicase/ulc-casexfrm'.
3293         * lib/unicase.h (ulc_casexfrm): New declaration.
3294         * lib/unicase/ulc-casexfrm.c: New file.
3295         * modules/unicase/ulc-casexfrm: New file.
3296
3297 2009-03-09  Bruno Haible  <bruno@clisp.org>
3298
3299         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
3300         invocations.
3301
3302         * m4/mbscasecmp.m4: Remove file.
3303         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
3304         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
3305
3306         * m4/mbscasestr.m4: Remove file.
3307         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
3308         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
3309
3310         * m4/mbschr.m4: Remove file.
3311         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
3312         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
3313
3314         * m4/mbscspn.m4: Remove file.
3315         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
3316         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
3317
3318         * m4/mbslen.m4: Remove file.
3319         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
3320         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
3321
3322         * m4/mbsncasecmp.m4: Remove file.
3323         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
3324         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
3325
3326         * m4/mbsnlen.m4: Remove file.
3327         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
3328         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
3329
3330         * m4/mbspbrk.m4: Remove file.
3331         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
3332         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
3333
3334         * m4/mbspcasecmp.m4: Remove file.
3335         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
3336         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
3337
3338         * m4/mbsrchr.m4: Remove file.
3339         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
3340         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
3341
3342         * m4/mbssep.m4: Remove file.
3343         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
3344         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
3345
3346         * m4/mbsspn.m4: Remove file.
3347         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
3348         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
3349
3350         * m4/mbsstr.m4: Remove file.
3351         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
3352         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
3353
3354         * m4/mbstok_r.m4: Remove file.
3355         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
3356         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
3357
3358         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
3359
3360         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
3361         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
3362
3363         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
3364
3365 2009-03-08  Bruno Haible  <bruno@clisp.org>
3366
3367         Tests for module 'unicase/ulc-casecmp'.
3368         * modules/unicase/ulc-casecmp-tests: New file.
3369         * tests/unicase/test-ulc-casecmp1.sh: New file.
3370         * tests/unicase/test-ulc-casecmp2.sh: New file.
3371         * tests/unicase/test-ulc-casecmp.c: New file.
3372
3373         New module 'unicase/ulc-casecmp'.
3374         * lib/unicase.h (ulc_casecmp): New declaration.
3375         * lib/unicase/ulc-casecmp.c: New file.
3376         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
3377         'const SRC_UNIT *'.
3378         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
3379         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
3380         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
3381         * modules/unicase/ulc-casecmp: New file.
3382
3383         Tests for module 'unicase/u32-is-cased'.
3384         * modules/unicase/u32-is-cased-tests: New file.
3385         * tests/unicase/test-u32-is-cased.c: New file.
3386
3387         Tests for module 'unicase/u16-is-cased'.
3388         * modules/unicase/u16-is-cased-tests: New file.
3389         * tests/unicase/test-u16-is-cased.c: New file.
3390
3391         Tests for module 'unicase/u8-is-cased'.
3392         * modules/unicase/u8-is-cased-tests: New file.
3393         * tests/unicase/test-u8-is-cased.c: New file.
3394         * tests/unicase/test-is-cased.h: New file.
3395
3396         New module 'unicase/u32-is-cased'.
3397         * lib/unicase/u32-is-cased.c: New file.
3398         * modules/unicase/u32-is-cased: New file.
3399
3400         New module 'unicase/u16-is-cased'.
3401         * lib/unicase/u16-is-cased.c: New file.
3402         * modules/unicase/u16-is-cased: New file.
3403
3404         New module 'unicase/u8-is-cased'.
3405         * lib/unicase/u8-is-cased.c: New file.
3406         * lib/unicase/u-is-cased.h: New file.
3407         * modules/unicase/u8-is-cased: New file.
3408
3409         Tests for module 'unicase/u32-is-casefolded'.
3410         * modules/unicase/u32-is-casefolded-tests: New file.
3411         * tests/unicase/test-u32-is-casefolded.c: New file.
3412
3413         Tests for module 'unicase/u16-is-casefolded'.
3414         * modules/unicase/u16-is-casefolded-tests: New file.
3415         * tests/unicase/test-u16-is-casefolded.c: New file.
3416
3417         Tests for module 'unicase/u8-is-casefolded'.
3418         * modules/unicase/u8-is-casefolded-tests: New file.
3419         * tests/unicase/test-u8-is-casefolded.c: New file.
3420         * tests/unicase/test-is-casefolded.h: New file.
3421
3422         New module 'unicase/u32-is-casefolded'.
3423         * lib/unicase/u32-is-casefolded.c: New file.
3424         * modules/unicase/u32-is-casefolded: New file.
3425
3426         New module 'unicase/u16-is-casefolded'.
3427         * lib/unicase/u16-is-casefolded.c: New file.
3428         * modules/unicase/u16-is-casefolded: New file.
3429
3430         New module 'unicase/u8-is-casefolded'.
3431         * lib/unicase/u8-is-casefolded.c: New file.
3432         * modules/unicase/u8-is-casefolded: New file.
3433
3434         Tests for module 'unicase/u32-is-titlecase'.
3435         * modules/unicase/u32-is-titlecase-tests: New file.
3436         * tests/unicase/test-u32-is-titlecase.c: New file.
3437
3438         Tests for module 'unicase/u16-is-titlecase'.
3439         * modules/unicase/u16-is-titlecase-tests: New file.
3440         * tests/unicase/test-u16-is-titlecase.c: New file.
3441
3442         Tests for module 'unicase/u8-is-titlecase'.
3443         * modules/unicase/u8-is-titlecase-tests: New file.
3444         * tests/unicase/test-u8-is-titlecase.c: New file.
3445         * tests/unicase/test-is-titlecase.h: New file.
3446
3447         New module 'unicase/u32-is-titlecase'.
3448         * lib/unicase/u32-is-titlecase.c: New file.
3449         * modules/unicase/u32-is-titlecase: New file.
3450
3451         New module 'unicase/u16-is-titlecase'.
3452         * lib/unicase/u16-is-titlecase.c: New file.
3453         * modules/unicase/u16-is-titlecase: New file.
3454
3455         New module 'unicase/u8-is-titlecase'.
3456         * lib/unicase/u8-is-titlecase.c: New file.
3457         * modules/unicase/u8-is-titlecase: New file.
3458
3459         Tests for module 'unicase/u32-is-lowercase'.
3460         * modules/unicase/u32-is-lowercase-tests: New file.
3461         * tests/unicase/test-u32-is-lowercase.c: New file.
3462
3463         Tests for module 'unicase/u16-is-lowercase'.
3464         * modules/unicase/u16-is-lowercase-tests: New file.
3465         * tests/unicase/test-u16-is-lowercase.c: New file.
3466
3467         Tests for module 'unicase/u8-is-lowercase'.
3468         * modules/unicase/u8-is-lowercase-tests: New file.
3469         * tests/unicase/test-u8-is-lowercase.c: New file.
3470         * tests/unicase/test-is-lowercase.h: New file.
3471
3472         New module 'unicase/u32-is-lowercase'.
3473         * lib/unicase/u32-is-lowercase.c: New file.
3474         * modules/unicase/u32-is-lowercase: New file.
3475
3476         New module 'unicase/u16-is-lowercase'.
3477         * lib/unicase/u16-is-lowercase.c: New file.
3478         * modules/unicase/u16-is-lowercase: New file.
3479
3480         New module 'unicase/u8-is-lowercase'.
3481         * lib/unicase/u8-is-lowercase.c: New file.
3482         * modules/unicase/u8-is-lowercase: New file.
3483
3484         Tests for module 'unicase/u32-is-uppercase'.
3485         * modules/unicase/u32-is-uppercase-tests: New file.
3486         * tests/unicase/test-u32-is-uppercase.c: New file.
3487
3488         Tests for module 'unicase/u16-is-uppercase'.
3489         * modules/unicase/u16-is-uppercase-tests: New file.
3490         * tests/unicase/test-u16-is-uppercase.c: New file.
3491
3492         Tests for module 'unicase/u8-is-uppercase'.
3493         * modules/unicase/u8-is-uppercase-tests: New file.
3494         * tests/unicase/test-u8-is-uppercase.c: New file.
3495         * tests/unicase/test-is-uppercase.h: New file.
3496
3497         New module 'unicase/u32-is-uppercase'.
3498         * lib/unicase/u32-is-uppercase.c: New file.
3499         * modules/unicase/u32-is-uppercase: New file.
3500
3501         New module 'unicase/u16-is-uppercase'.
3502         * lib/unicase/u16-is-uppercase.c: New file.
3503         * modules/unicase/u16-is-uppercase: New file.
3504
3505         New module 'unicase/u8-is-uppercase'.
3506         * lib/unicase/u8-is-uppercase.c: New file.
3507         * modules/unicase/u8-is-uppercase: New file.
3508
3509         New module 'unicase/u32-is-invariant'.
3510         * lib/unicase/u32-is-invariant.c: New file.
3511         * modules/unicase/u32-is-invariant: New file.
3512
3513         New module 'unicase/u16-is-invariant'.
3514         * lib/unicase/u16-is-invariant.c: New file.
3515         * modules/unicase/u16-is-invariant: New file.
3516
3517         New module 'unicase/u8-is-invariant'.
3518         * lib/unicase/u8-is-invariant.c: New file.
3519         * lib/unicase/invariant.h: New file.
3520         * lib/unicase/u-is-invariant.h: New file.
3521         * modules/unicase/u8-is-invariant: New file.
3522
3523         Tests for module 'unicase/u32-casecoll'.
3524         * modules/unicase/u32-casecoll-tests: New file.
3525         * tests/unicase/test-u32-casecoll.c: New file.
3526
3527         Tests for module 'unicase/u16-casecoll'.
3528         * modules/unicase/u16-casecoll-tests: New file.
3529         * tests/unicase/test-u16-casecoll.c: New file.
3530
3531         Tests for module 'unicase/u8-casecoll'.
3532         * modules/unicase/u8-casecoll-tests: New file.
3533         * tests/unicase/test-u8-casecoll.c: New file.
3534
3535         New module 'unicase/u32-casecoll'.
3536         * lib/unicase/u32-casecoll.c: New file.
3537         * modules/unicase/u32-casecoll: New file.
3538
3539         New module 'unicase/u16-casecoll'.
3540         * lib/unicase/u16-casecoll.c: New file.
3541         * modules/unicase/u16-casecoll: New file.
3542
3543         New module 'unicase/u8-casecoll'.
3544         * lib/unicase/u8-casecoll.c: New file.
3545         * lib/unicase/u-casecoll.h: New file.
3546         * modules/unicase/u8-casecoll: New file.
3547
3548         New module 'unicase/u32-casexfrm'.
3549         * lib/unicase/u32-casexfrm.c: New file.
3550         * modules/unicase/u32-casexfrm: New file.
3551
3552         New module 'unicase/u16-casexfrm'.
3553         * lib/unicase/u16-casexfrm.c: New file.
3554         * modules/unicase/u16-casexfrm: New file.
3555
3556         New module 'unicase/u8-casexfrm'.
3557         * lib/unicase/u8-casexfrm.c: New file.
3558         * lib/unicase/u-casexfrm.h: New file.
3559         * modules/unicase/u8-casexfrm: New file.
3560
3561         Tests for module 'unicase/u32-casecmp'.
3562         * modules/unicase/u32-casecmp-tests: New file.
3563         * tests/unicase/test-u32-casecmp.c: New file.
3564
3565         Tests for module 'unicase/u16-casecmp'.
3566         * modules/unicase/u16-casecmp-tests: New file.
3567         * tests/unicase/test-u16-casecmp.c: New file.
3568
3569         Tests for module 'unicase/u8-casecmp'.
3570         * modules/unicase/u8-casecmp-tests: New file.
3571         * tests/unicase/test-u8-casecmp.c: New file.
3572         * tests/unicase/test-casecmp.h: New file.
3573
3574         New module 'unicase/u32-casecmp'.
3575         * lib/unicase/u32-casecmp.c: New file.
3576         * modules/unicase/u32-casecmp: New file.
3577
3578         New module 'unicase/u16-casecmp'.
3579         * lib/unicase/u16-casecmp.c: New file.
3580         * modules/unicase/u16-casecmp: New file.
3581
3582         New module 'unicase/u8-casecmp'.
3583         * lib/unicase/u8-casecmp.c: New file.
3584         * lib/unicase/u-casecmp.h: New file.
3585         * modules/unicase/u8-casecmp: New file.
3586
3587         Tests for module 'unicase/u32-casefold'.
3588         * modules/unicase/u32-casefold-tests: New file.
3589         * tests/unicase/test-u32-casefold.c: New file.
3590
3591         Tests for module 'unicase/u16-casefold'.
3592         * modules/unicase/u16-casefold-tests: New file.
3593         * tests/unicase/test-u16-casefold.c: New file.
3594
3595         Tests for module 'unicase/u8-casefold'.
3596         * modules/unicase/u8-casefold-tests: New file.
3597         * tests/unicase/test-u8-casefold.c: New file.
3598
3599         New module 'unicase/u32-casefold'.
3600         * lib/unicase/u32-casefold.c: New file.
3601         * modules/unicase/u32-casefold: New file.
3602
3603         New module 'unicase/u16-casefold'.
3604         * lib/unicase/u16-casefold.c: New file.
3605         * modules/unicase/u16-casefold: New file.
3606
3607         New module 'unicase/u8-casefold'.
3608         * lib/unicase/u8-casefold.c: New file.
3609         * lib/unicase/u-casefold.h: New file.
3610         * modules/unicase/u8-casefold: New file.
3611
3612         New module 'unicase/tocasefold'.
3613         * lib/unicase/casefold.h: New file.
3614         * lib/unicase/tocasefold.c: New file.
3615         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
3616         * modules/unicase/tocasefold: New file.
3617
3618         Tests for module 'unicase/u32-totitle'.
3619         * modules/unicase/u32-totitle-tests: New file.
3620         * tests/unicase/test-u32-totitle.c: New file.
3621
3622         Tests for module 'unicase/u16-totitle'.
3623         * modules/unicase/u16-totitle-tests: New file.
3624         * tests/unicase/test-u16-totitle.c: New file.
3625
3626         Tests for module 'unicase/u8-totitle'.
3627         * modules/unicase/u8-totitle-tests: New file.
3628         * tests/unicase/test-u8-totitle.c: New file.
3629
3630         New module 'unicase/u32-totitle'.
3631         * lib/unicase/u32-totitle.c: New file.
3632         * modules/unicase/u32-totitle: New file.
3633
3634         New module 'unicase/u16-totitle'.
3635         * lib/unicase/u16-totitle.c: New file.
3636         * modules/unicase/u16-totitle: New file.
3637
3638         New module 'unicase/u8-totitle'.
3639         * lib/unicase/u8-totitle.c: New file.
3640         * lib/unicase/u-totitle.h: New file.
3641         * modules/unicase/u8-totitle: New file.
3642
3643         Tests for module 'unicase/u32-tolower'.
3644         * modules/unicase/u32-tolower-tests: New file.
3645         * tests/unicase/test-u32-tolower.c: New file.
3646
3647         Tests for module 'unicase/u16-tolower'.
3648         * modules/unicase/u16-tolower-tests: New file.
3649         * tests/unicase/test-u16-tolower.c: New file.
3650
3651         Tests for module 'unicase/u8-tolower'.
3652         * modules/unicase/u8-tolower-tests: New file.
3653         * tests/unicase/test-u8-tolower.c: New file.
3654
3655         New module 'unicase/u32-tolower'.
3656         * lib/unicase/u32-tolower.c: New file.
3657         * modules/unicase/u32-tolower: New file.
3658
3659         New module 'unicase/u16-tolower'.
3660         * lib/unicase/u16-tolower.c: New file.
3661         * modules/unicase/u16-tolower: New file.
3662
3663         New module 'unicase/u8-tolower'.
3664         * lib/unicase/u8-tolower.c: New file.
3665         * modules/unicase/u8-tolower: New file.
3666
3667         Tests for module 'unicase/u32-toupper'.
3668         * modules/unicase/u32-toupper-tests: New file.
3669         * tests/unicase/test-u32-toupper.c: New file.
3670
3671         Tests for module 'unicase/u16-toupper'.
3672         * modules/unicase/u16-toupper-tests: New file.
3673         * tests/unicase/test-u16-toupper.c: New file.
3674
3675         Tests for module 'unicase/u8-toupper'.
3676         * modules/unicase/u8-toupper-tests: New file.
3677         * tests/unicase/test-u8-toupper.c: New file.
3678
3679         New module 'unicase/u32-toupper'.
3680         * lib/unicase/u32-toupper.c: New file.
3681         * modules/unicase/u32-toupper: New file.
3682
3683         New module 'unicase/u16-toupper'.
3684         * lib/unicase/u16-toupper.c: New file.
3685         * modules/unicase/u16-toupper: New file.
3686
3687         New module 'unicase/u8-toupper'.
3688         * lib/unicase/u8-toupper.c: New file.
3689         * modules/unicase/u8-toupper: New file.
3690
3691         New module 'unicase/u32-casemap'.
3692         * lib/unicase/u32-casemap.c: New file.
3693         * modules/unicase/u32-casemap: New file.
3694
3695         New module 'unicase/u16-casemap'.
3696         * lib/unicase/u16-casemap.c: New file.
3697         * modules/unicase/u16-casemap: New file.
3698
3699         New module 'unicase/u8-casemap'.
3700         * lib/unicase/unicasemap.h: New file.
3701         * lib/unicase/u8-casemap.c: New file.
3702         * lib/unicase/u-casemap.h: New file.
3703         * modules/unicase/u8-casemap: New file.
3704
3705         New module 'unicase/special-casing'.
3706         * lib/unicase/special-casing.h: New file.
3707         * lib/unicase/special-casing.c: New file.
3708         * lib/unicase/special-casing-table.gperf: New file, generated by
3709         gen-uni-tables.c.
3710         * modules/unicase/special-casing: New file.
3711
3712         Tests for module 'unicase/locale-language'.
3713         * modules/unicase/locale-language-tests: New file.
3714         * tests/unicase/test-locale-language.sh: New file.
3715         * tests/unicase/test-locale-language.c: New file.
3716
3717         New module 'unicase/locale-language'.
3718         * lib/unicase/locale-language.c: New file.
3719         * lib/unicase/locale-languages.gperf: New file.
3720         * modules/unicase/locale-language: New file.
3721
3722         Generate more tables for case conversion and case folding.
3723         * lib/gen-uni-tables.c (SCC_*): New enum items.
3724         (struct special_casing_rule): New type.
3725         (casing_rules, num_casing_rules, allocated_casing_rules): New
3726         variables.
3727         (add_casing_rule, fill_casing_rules): New functions.
3728         (struct casefold_rule): New type.
3729         (casefolding_rules, num_casefolding_rules,
3730         allocated_casefolding_rules): New variables.
3731         (fill_casefolding_rules): New function.
3732         (unicode_casefold): New variable.
3733         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
3734         sort_casing_rules, output_casing_rules): New functions.
3735         (main): Accept to more arguments: SpecialCasing.txt and
3736         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
3737         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
3738         Output mapping for casefolding.
3739
3740         * lib/unicase.h: Include stdbool.h, uninorm.h.
3741         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
3742         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
3743         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
3744         arguments.
3745         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
3746         resultp arguments.
3747         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
3748         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
3749         resultp arguments.
3750         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
3751         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
3752         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
3753         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
3754         declarations.
3755         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
3756
3757 2009-03-08  Bruno Haible  <bruno@clisp.org>
3758
3759         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3760         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
3761         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
3762         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3763
3764 2009-03-07  Bruno Haible  <bruno@clisp.org>
3765
3766         Adjust u*_normcmp, u*_normcoll API.
3767         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
3768         u16_normcoll, u32_normcoll): Change failure conventions.
3769         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
3770         errno and return -1.
3771         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
3772
3773 2009-03-07  Bruno Haible  <bruno@clisp.org>
3774
3775         Tests for module 'uninorm/u32-normcoll'.
3776         * modules/uninorm/u32-normcoll-tests: New file.
3777         * tests/uninorm/test-u32-normcoll.c: New file.
3778
3779         Tests for module 'uninorm/u16-normcoll'.
3780         * modules/uninorm/u16-normcoll-tests: New file.
3781         * tests/uninorm/test-u16-normcoll.c: New file.
3782
3783         Tests for module 'uninorm/u8-normcoll'.
3784         * modules/uninorm/u8-normcoll-tests: New file.
3785         * tests/uninorm/test-u8-normcoll.c: New file.
3786
3787 2009-03-07  Bruno Haible  <bruno@clisp.org>
3788
3789         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
3790         tests/uninorm/test-u32-normcmp.c.
3791         * tests/uninorm/test-u32-normcmp.c: Include it.
3792         (test_nonascii): New function, extracted from main. Add some more
3793         tests.
3794         (main): Invoke test_ascii and test_nonascii.
3795         * modules/uninorm/u32-normcmp-tests (Files): Add
3796         tests/uninorm/test-u32-normcmp.h.
3797         (Depends-on): Remove uninorm/u32-normcmp.
3798
3799         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
3800         tests/uninorm/test-u16-normcmp.c.
3801         * tests/uninorm/test-u16-normcmp.c: Include it.
3802         (test_nonascii): New function, extracted from main. Add some more
3803         tests.
3804         (main): Invoke test_ascii and test_nonascii.
3805         * modules/uninorm/u16-normcmp-tests (Files): Add
3806         tests/uninorm/test-u16-normcmp.h.
3807         (Depends-on): Remove uninorm/u16-normcmp.
3808
3809         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
3810         tests/uninorm/test-u8-normcmp.c.
3811         * tests/uninorm/test-u8-normcmp.c: Include it.
3812         (test_nonascii): New function, extracted from main. Add some more
3813         tests.
3814         (main): Invoke test_ascii and test_nonascii.
3815         * modules/uninorm/u8-normcmp-tests (Files): Add
3816         tests/uninorm/test-u8-normcmp.h.
3817         (Depends-on): Remove uninorm/u8-normcmp.
3818
3819 2009-03-07  Bruno Haible  <bruno@clisp.org>
3820
3821         New module 'uninorm/u32-normcoll'.
3822         * lib/uninorm/u32-normcoll.c: New file.
3823         * modules/uninorm/u32-normcoll: New file.
3824
3825         New module 'uninorm/u16-normcoll'.
3826         * lib/uninorm/u16-normcoll.c: New file.
3827         * modules/uninorm/u16-normcoll: New file.
3828
3829         New module 'uninorm/u8-normcoll'.
3830         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
3831         declarations.
3832         * lib/uninorm/u8-normcoll.c: New file.
3833         * lib/uninorm/u-normcoll.h: New file.
3834         * modules/uninorm/u8-normcoll: New file.
3835
3836         New module 'uninorm/u32-normxfrm'.
3837         * lib/uninorm/u32-normxfrm.c: New file.
3838         * modules/uninorm/u32-normxfrm: New file.
3839
3840         New module 'uninorm/u16-normxfrm'.
3841         * lib/uninorm/u16-normxfrm.c: New file.
3842         * modules/uninorm/u16-normxfrm: New file.
3843
3844         New module 'uninorm/u8-normxfrm'.
3845         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
3846         declarations.
3847         * lib/uninorm/u8-normxfrm.c: New file.
3848         * lib/uninorm/u-normxfrm.h: New file.
3849         * modules/uninorm/u8-normxfrm: New file.
3850
3851 2009-03-07  Bruno Haible  <bruno@clisp.org>
3852
3853         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
3854         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
3855         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
3856
3857 2009-03-07  Bruno Haible  <bruno@clisp.org>
3858
3859         New module 'memxfrm'.
3860         * lib/memxfrm.h: New file.
3861         * lib/memxfrm.c: New file.
3862         * modules/memxfrm: New file.
3863
3864 2009-03-07  Bruno Haible  <bruno@clisp.org>
3865
3866         New module 'memcmp2'.
3867         * lib/memcmp2.h: New file.
3868         * lib/memcmp2.c: New file.
3869         * modules/memcmp2: New file.
3870
3871 2009-03-07  Bruno Haible  <bruno@clisp.org>
3872
3873         Tests for module 'uninorm/decomposing-form'.
3874         * modules/uninorm/decomposing-form-tests: New file.
3875         * tests/uninorm/test-decomposing-form.c: New file.
3876
3877         New module 'uninorm/decomposing-form'.
3878         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
3879         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
3880         Add 'decomposing_variant' field.
3881         * lib/uninorm/decomposing-form.c: New file.
3882         * lib/uninorm/nfc.c (uninorm_nfc): Update.
3883         * lib/uninorm/nfd.c (uninorm_nfd): Update.
3884         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
3885         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
3886         * modules/uninorm/decomposing-form: New file.
3887         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
3888         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
3889
3890 2009-03-07  Bruno Haible  <bruno@clisp.org>
3891
3892         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
3893         strings.
3894
3895 2009-03-06  Bruno Haible  <bruno@clisp.org>
3896
3897         Tests for module 'uninorm/u32-normcmp'.
3898         * tests/uninorm/test-u32-normcmp.c: New file.
3899         * modules/uninorm/u32-normcmp-tests: New file.
3900
3901         Tests for module 'uninorm/u16-normcmp'.
3902         * tests/uninorm/test-u16-normcmp.c: New file.
3903         * modules/uninorm/u16-normcmp-tests: New file.
3904
3905         Tests for module 'uninorm/u8-normcmp'.
3906         * tests/uninorm/test-u8-normcmp.c: New file.
3907         * modules/uninorm/u8-normcmp-tests: New file.
3908
3909         New module 'uninorm/u32-normcmp'.
3910         * lib/uninorm/u32-normcmp.c: New file.
3911         * modules/uninorm/u32-normcmp: New file.
3912
3913         New module 'uninorm/u16-normcmp'.
3914         * lib/uninorm/u16-normcmp.c: New file.
3915         * modules/uninorm/u16-normcmp: New file.
3916
3917         New module 'uninorm/u8-normcmp'.
3918         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
3919         declarations.
3920         * lib/uninorm/u8-normcmp.c: New file.
3921         * lib/uninorm/u-normcmp.h: New file.
3922         * modules/uninorm/u8-normcmp: New file.
3923
3924 2009-03-06  Bruno Haible  <bruno@clisp.org>
3925
3926         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
3927         Reported by Eric Blake.
3928
3929 2009-03-06  Eric Blake  <ebb9@byu.net>
3930             Bruno Haible  <bruno@clisp.org>
3931
3932         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
3933         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
3934         condition.
3935         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3936         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
3937         condition.
3938         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
3939
3940 2009-03-06  Eric Blake  <ebb9@byu.net>
3941
3942         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
3943         to avoid compiler warnings.
3944         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
3945
3946 2009-03-05  Bruno Haible  <bruno@clisp.org>
3947
3948         * tests/test-ftell.c (main): Disable test beyond end of file on
3949         FreeMiNT.
3950         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
3951
3952 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
3953
3954         * lib/filevercmp.c: Move hidden files up in ordering.
3955         * tests/test-filevercmp.c: Add tests for hidden files.
3956
3957 2009-03-04  Bruno Haible  <bruno@clisp.org>
3958
3959         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
3960         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
3961         AM_CFLAGS.
3962         Reported by Simon Josefsson.
3963
3964 2009-03-03  Bruno Haible  <bruno@clisp.org>
3965
3966         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
3967         Reported by Simon Josefsson.
3968
3969         * doc/ld-version-script.texi: Update node reference.
3970
3971 2009-03-03  Bruno Haible  <bruno@clisp.org>
3972
3973         * modules/visibility (License): Change to 'unlimited'.
3974         Suggested by Simon Josefsson.
3975
3976 2009-03-03  Jim Meyering  <meyering@redhat.com>
3977
3978         unlinkdir: cannot_unlink_dir may modify process state
3979         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
3980         it's neither thread-safe nor appropriate for use in a library.
3981
3982 2009-03-03  Eric Blake  <ebb9@byu.net>
3983
3984         test-closein: silence test under Darwin
3985         * tests/test-closein.sh: Ignore stderr from cat, since we don't
3986         care if it dies from EPIPE or EBADF.
3987
3988 2009-03-03  Bruno Haible  <bruno@clisp.org>
3989
3990         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
3991         earlier.
3992         * doc/visibility.texi: Fix @node and @section.
3993
3994 2009-03-03  Simon Josefsson  <simon@josefsson.org>
3995
3996         * doc/gnulib.texi: Link to sections for ld version script and
3997         visibility.
3998         * doc/visibility.texi: Add @node and @section.
3999         * modules/ld-version-script: New module.
4000         * m4/ld-version-script.m4: New file.
4001         * doc/ld-version-script.texi: New file.
4002
4003 2009-03-02  David Lutterkort  <lutter@redhat.com>
4004
4005         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
4006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4007
4008 2009-03-02  Bruno Haible  <bruno@clisp.org>
4009
4010         * doc/visibility.texi: Mention libtool's -export-symbols option.
4011
4012 2009-03-02  Jim Meyering  <meyering@redhat.com>
4013
4014         announce-gen: new option: --no-print-checksums
4015         * build-aux/announce-gen (usage): Describe it.
4016         (print_checksums): Print a newline here, not in the [*] footnote.
4017         (main): Honor it.
4018
4019 2009-03-01  Bruno Haible  <bruno@clisp.org>
4020
4021         Use socklen_t in the native Windows replacements prototypes.
4022         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
4023         instead of 'int'.
4024         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4025         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4026         * modules/getsockopt (Depends-on): Add socklen.
4027         * modules/setsockopt (Depends-on): Add socklen.
4028
4029 2009-03-01  Bruno Haible  <bruno@clisp.org>
4030
4031         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
4032         least 4.2.
4033
4034 2009-03-01  Eric Blake  <ebb9@byu.net>
4035             Bruno Haible  <bruno@clisp.org>
4036
4037         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
4038         error messages.
4039         * lib/wait-process.c (wait_subprocess): Omit error message about
4040         deadly signal sent to the child of termsigp != NULL.
4041
4042 2009-03-01  Eric Blake  <ebb9@byu.net>
4043
4044         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
4045
4046 2009-03-01  Bruno Haible  <bruno@clisp.org>
4047
4048         Avoid a gcc warning.
4049         * tests/test-sched.c (b): Make global.
4050         Reported by Eric Blake.
4051
4052 2009-01-19  Martin Lambers  <marlam@marlam.de>
4053
4054         Provide POSIX semantics for socket timeout options on W32.
4055         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
4056         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
4057         * modules/setsockopt: Depend on sys_time module for struct timeval.
4058         * modules/getsockopt: Depend on sys_time module for struct timeval.
4059
4060 2009-03-01  Simon Josefsson  <simon@josefsson.org>
4061
4062         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
4063         __USE_GNU, for consistency with netdb.in.h.
4064         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4065
4066 2009-03-01  Bruno Haible  <bruno@clisp.org>
4067
4068         More support for FreeMiNT.
4069         * lib/fseeko.c (rpl_fseeko): Complete last commit.
4070         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4071
4072 2009-03-01  Bruno Haible  <bruno@clisp.org>
4073
4074         More support for FreeMiNT.
4075         * lib/fpurge.c (fpurge): Correct last commit.
4076         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4077
4078 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4079
4080         Fix unportable awk script in vc-list-files.
4081         * build-aux/vc-list-files: In the replacement awk script, use
4082         substr with a second argument of 1, not zero.
4083         Report by Simon Josefsson.
4084
4085 2009-02-28  Bruno Haible  <bruno@clisp.org>
4086
4087         More support for FreeMiNT.
4088         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
4089         to FreeMiNT today.
4090         * lib/fwriting.c (fwriting): Likewise.
4091         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
4092
4093 2009-02-28  Bruno Haible  <bruno@clisp.org>
4094
4095         * tests/test-freadseek.c (main): Disable test beyond end of file on
4096         FreeMiNT.
4097         * tests/test-ftello.c (main): Likewise.
4098         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4099
4100 2009-02-28  Bruno Haible  <bruno@clisp.org>
4101
4102         Add tentative support for FreeMiNT.
4103         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
4104         * lib/fpurge.c (fpurge): Likewise.
4105         * lib/freadable.c (freadable): Likewise.
4106         * lib/freading.c (freading): Likewise.
4107         * lib/freadptr.c (freadptr): Likewise.
4108         * lib/freadseek.c (freadptrinc): Likewise.
4109         * lib/fseeko.c (rpl_fseeko): Likewise.
4110         * lib/fseterr.c (fseterr): Likewise.
4111         * lib/fwritable.c (fwritable): Likewise.
4112         * lib/fwriting.c (fwriting): Likewise.
4113         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
4114         Hourihane.
4115         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4116
4117 2009-02-28  Bruno Haible  <bruno@clisp.org>
4118
4119         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
4120         SIGCHLD.
4121         Reported by Jim Meyering.
4122
4123 2009-02-28  Bruno Haible  <bruno@clisp.org>
4124
4125         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
4126         Mention the results of these tests on various platforms.
4127         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
4128         order.
4129         * doc/posix-functions/printf.texi: Likewise.
4130         * doc/posix-functions/snprintf.texi: Likewise.
4131         * doc/posix-functions/sprintf.texi: Likewise.
4132         * doc/posix-functions/vfprintf.texi: Likewise.
4133         * doc/posix-functions/vprintf.texi: Likewise.
4134         * doc/posix-functions/vsnprintf.texi: Likewise.
4135         * doc/posix-functions/vsprintf.texi: Likewise.
4136         * doc/glibc-functions/obstack_printf.texi: Likewise.
4137         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4138
4139 2009-02-28  Bruno Haible  <bruno@clisp.org>
4140
4141         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
4142         Reported by Loïc Minier <lool@dooz.org>.
4143
4144 2009-02-27  Bruno Haible  <bruno@clisp.org>
4145
4146         * gnulib-tool (func_import): Make the sed expression used to create the
4147         sed script for updating the .gitignore file POSIX compliant.
4148         Reported by Eric Blake.
4149
4150 2009-02-27  Bruno Haible  <bruno@clisp.org>
4151
4152         * gnulib-tool (sed): Don't alias as "sed --posix".
4153         Reported by Eric Blake.
4154
4155 2009-02-27  Bruno Haible  <bruno@clisp.org>
4156
4157         Avoid test link errors.
4158         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
4159         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
4160         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
4161         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
4162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4163
4164 2009-02-27  Bruno Haible  <bruno@clisp.org>
4165
4166         Avoid spurious "(cached)" in configure output.
4167         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
4168         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
4169         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4170         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4171         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4172         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4173         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4174         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4175         Reported by Eric Blake.
4176
4177 2009-02-27  Eric Blake  <ebb9@byu.net>
4178
4179         printf: fix regression in previous patch
4180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
4181
4182 2009-02-27  Bruno Haible  <bruno@clisp.org>
4183
4184         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
4185         value.
4186         * lib/stdint.in.h: Likewise.
4187         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
4188
4189 2009-02-27  Eric Blake  <ebb9@byu.net>
4190
4191         doc: mention more functions added in cygwin 1.7.0
4192         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
4193         addition.
4194         * doc/posix-functions/open_wmemstream.texi: Likewise.
4195         * doc/posix-functions/wcsnlen.texi: Likewise.
4196         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4197         * doc/posix-functions/wcstod.texi: Likewise.
4198         * doc/posix-functions/wcstof.texi: Likewise.
4199         * doc/posix-functions/wcstoimax.texi: Likewise.
4200         * doc/posix-functions/wcstok.texi: Likewise.
4201         * doc/posix-functions/wcstoumax.texi: Likewise.
4202
4203         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
4204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
4205         * doc/posix-functions/fprintf.texi: Update.
4206         * doc/posix-functions/printf.texi: Update.
4207         * doc/posix-functions/snprintf.texi: Update.
4208         * doc/posix-functions/sprintf.texi: Update.
4209         * doc/posix-functions/vfprintf.texi: Update.
4210         * doc/posix-functions/vprintf.texi: Update.
4211         * doc/posix-functions/vsnprintf.texi: Update.
4212         * doc/posix-functions/vsprintf.texi: Update.
4213         * doc/glibc-functions/obstack_printf.texi: Update.
4214         * doc/glibc-functions/obstack_vprintf.texi: Update.
4215
4216 2009-02-26  Eric Blake  <ebb9@byu.net>
4217
4218         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
4219         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
4220         compilation bug by using runtime conversion.
4221         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4222         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
4223         * modules/ceill-tests (Files): Use nan.h.
4224         * modules/floorl-tests (Files): Likewise.
4225         * modules/frexpl-tests (Files): Likewise.
4226         * modules/isnanl-tests (Files): Likewise.
4227         * modules/ldexpl-tests (Files): Likewise.
4228         * modules/roundl-tests (Files): Likewise.
4229         * modules/truncl-tests (Files): Likewise.
4230         * tests/test-ceill.c (main): Use a working NaN.
4231         * tests/test-floorl.c (main): Likewise.
4232         * tests/test-frexpl.c (main): Likewise.
4233         * tests/test-isnan.c (test_long_double): Likewise.
4234         * tests/test-isnanl.h (main): Likewise.
4235         * tests/test-ldexpl.h (main): Likewise.
4236         * tests/test-roundl.h (main): Likewise.
4237         * tests/test-truncl.h (main): Likewise.
4238         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
4239
4240 2009-02-26  Eric Blake  <ebb9@byu.net>
4241             Bruno Haible  <bruno@clisp.org>
4242
4243         Work around a *printf bug with %ls on Solaris.
4244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
4245         precision is specified, sprintf stops converting the wide string
4246         argument when the number of bytes that have been produced by this
4247         conversion equals or exceeds the precision.
4248         * doc/posix-functions/fprintf.texi: Update.
4249         * doc/posix-functions/printf.texi: Update.
4250         * doc/posix-functions/snprintf.texi: Update.
4251         * doc/posix-functions/sprintf.texi: Update.
4252         * doc/posix-functions/vfprintf.texi: Update.
4253         * doc/posix-functions/vprintf.texi: Update.
4254         * doc/posix-functions/vsnprintf.texi: Update.
4255         * doc/posix-functions/vsprintf.texi: Update.
4256         * doc/glibc-functions/obstack_printf.texi: Update.
4257         * doc/glibc-functions/obstack_vprintf.texi: Update.
4258
4259 2009-02-26  Eric Blake  <ebb9@byu.net>
4260
4261         stdlib: favor compiler check of random.h
4262         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
4263         to avoid an ObjC random.h installed by Swarm.
4264
4265 2009-02-26  Bruno Haible  <bruno@clisp.org>
4266
4267         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
4268         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
4269         Reported by Gary V. Vaughan <gary@gnu.org>.
4270
4271 2009-02-26  Bruno Haible  <bruno@clisp.org>
4272
4273         Fix *printf behaviour regarding the %ls directive.
4274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
4275         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
4276         NEED_PRINTF_DIRECTIVE_LS.
4277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
4278         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4279         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4280         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
4281         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
4282         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
4283         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4284         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4285         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4286         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4287         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4288         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
4289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4292         * doc/posix-functions/fprintf.texi: Update.
4293         * doc/posix-functions/printf.texi: Update.
4294         * doc/posix-functions/snprintf.texi: Update.
4295         * doc/posix-functions/sprintf.texi: Update.
4296         * doc/posix-functions/vfprintf.texi: Update.
4297         * doc/posix-functions/vprintf.texi: Update.
4298         * doc/posix-functions/vsnprintf.texi: Update.
4299         * doc/posix-functions/vsprintf.texi: Update.
4300         * doc/glibc-functions/obstack_printf.texi: Update.
4301         * doc/glibc-functions/obstack_vprintf.texi: Update.
4302         Reported by Eric Blake.
4303
4304 2009-02-25  Bruno Haible  <bruno@clisp.org>
4305
4306         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
4307         with known value.
4308         Reported by Gary V. Vaughan <gary@gnu.org>.
4309
4310 2009-02-25  Bruno Haible  <bruno@clisp.org>
4311
4312         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
4313         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
4314         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
4315         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
4316         Reported by Gary V. Vaughan <gary@gnu.org>.
4317
4318 2009-02-25  Bruno Haible  <bruno@clisp.org>
4319
4320         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
4321         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
4322         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
4323         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
4324         Reported by Gary V. Vaughan <gary@gnu.org>.
4325
4326 2009-02-25  Eric Blake  <ebb9@byu.net>
4327
4328         tests: skip fseek/ftell tests if ungetc is broken
4329         * m4/ungetc.m4: New file.
4330         * modules/fseek-tests: Split test, so ungetc dependency is
4331         separate from rest of test.
4332         * modules/fseeko-tests: Likewise.
4333         * modules/ftell-tests: Likewise.
4334         * modules/ftello-tests: Likewise.
4335         * tests/test-fseek.c (main): Isolate ungetc dependency.
4336         * tests/test-fseeko.c (main): Likewise.
4337         * tests/test-ftell.c (main): Likewise.
4338         * tests/test-ftello.c (main): Likewise.
4339         * tests/test-fseek2.sh: New file.
4340         * tests/test-fseeko2.sh: Likewise.
4341         * tests/test-ftell2.sh: Likewise.
4342         * tests/test-ftello2.sh: Likewise.
4343
4344 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
4345
4346         test-getaddrinfo: fix usage of skip return code 77
4347         * tests/test-gettaddrinfo.c: Return skip code 77 only
4348         for first occurance of skip (4x77 is not 77)
4349
4350 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
4351
4352         strtod: avoid C99 decl-after-statement
4353         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
4354
4355 2009-02-24  Eric Blake  <ebb9@byu.net>
4356
4357         strtod: detect HP-UX 11.31 bug
4358         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
4359         Reported by Gary V. Vaughan.
4360
4361 2009-02-23  Bruno Haible  <bruno@clisp.org>
4362
4363         Fix invalid read past end of memory block.
4364         * lib/vasnprintf.c (DCHAR_SET): Define.
4365         (local_wcslen): Define only when needed.
4366         (local_strnlen, local_wcsnlen): New functions.
4367         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
4368         directives that involve a conversion ourselves.
4369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
4370         wcsnlen, mbrtowc, wcrtomb.
4371         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
4372         * tests/test-vasprintf-posix.c (test_function): Likewise.
4373         * tests/test-snprintf-posix.h (test_function): Likewise.
4374         * tests/test-sprintf-posix.h (test_function): Likewise.
4375         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4376
4377 2009-02-22  Bruno Haible  <bruno@clisp.org>
4378
4379         Implement new clarified decomposition of Hangul syllables.
4380         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
4381         of type LTV, return only a pairwise decomposition.
4382         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
4383         Likewise.
4384         * tests/uninorm/test-decomposition.c (main): Updated expected result.
4385         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
4386         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
4387
4388 2009-02-22  Bruno Haible  <bruno@clisp.org>
4389
4390         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
4391         zero-length results and shrink excess allocated memory.
4392         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
4393         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
4394         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
4395         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
4396         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
4397         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
4398         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
4399         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
4400         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
4401         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
4402         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
4403         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
4404
4405 2009-02-21  Bruno Haible  <bruno@clisp.org>
4406
4407         * doc/gnulib.texi: Include safe-alloc.texi earlier.
4408         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
4409         spaces after a period. Put a space between a macro name and its
4410         argument list. Trivial rewordings.
4411         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
4412         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
4413         (main): Return 0 explicitly.
4414
4415 2009-02-21  Bruno Haible  <bruno@clisp.org>
4416
4417         Tests for module 'uninorm/filter'.
4418         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
4419         * modules/uninorm/filter-tests: New file.
4420
4421         New module 'uninorm/filter'.
4422         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
4423         uninorm_filter_flush, uninorm_filter_free): New declarations.
4424         * lib/uninorm/uninorm-filter.c: New file.
4425         * modules/uninorm/filter: New file.
4426
4427 2009-02-21  Bruno Haible  <bruno@clisp.org>
4428
4429         Tests for module 'uninorm/nfkc'.
4430         * tests/uninorm/test-nfkc.c: New file.
4431         * tests/uninorm/test-u8-nfkc.c: New file.
4432         * tests/uninorm/test-u16-nfkc.c: New file.
4433         * tests/uninorm/test-u32-nfkc.c: New file.
4434         * tests/uninorm/test-u32-nfkc-big.sh: New file.
4435         * tests/uninorm/test-u32-nfkc-big.c: New file.
4436         * modules/uninorm/nfkc-tests: New file.
4437
4438         New module 'uninorm/nfkc'.
4439         * lib/uninorm/nfkc.c: New file.
4440         * modules/uninorm/nfkc: New file.
4441
4442         Tests for module 'uninorm/nfkd'.
4443         * tests/uninorm/test-nfkd.c: New file.
4444         * tests/uninorm/test-u8-nfkd.c: New file.
4445         * tests/uninorm/test-u16-nfkd.c: New file.
4446         * tests/uninorm/test-u32-nfkd.c: New file.
4447         * tests/uninorm/test-u32-nfkd-big.sh: New file.
4448         * tests/uninorm/test-u32-nfkd-big.c: New file.
4449         * modules/uninorm/nfkd-tests: New file.
4450
4451         New module 'uninorm/nfkd'.
4452         * lib/uninorm/nfkd.c: New file.
4453         * modules/uninorm/nfkd: New file.
4454
4455         Tests for module 'uninorm/nfc'.
4456         * tests/uninorm/test-nfc.c: New file.
4457         * tests/uninorm/test-u8-nfc.c: New file.
4458         * tests/uninorm/test-u16-nfc.c: New file.
4459         * tests/uninorm/test-u32-nfc.c: New file.
4460         * tests/uninorm/test-u32-nfc-big.sh: New file.
4461         * tests/uninorm/test-u32-nfc-big.c: New file.
4462         * modules/uninorm/nfc-tests: New file.
4463
4464         New module 'uninorm/nfc'.
4465         * lib/uninorm/nfc.c: New file.
4466         * modules/uninorm/nfc: New file.
4467
4468         Tests for module 'uninorm/nfd'.
4469         * tests/uninorm/test-nfd.c: New file.
4470         * tests/uninorm/test-u8-nfd.c: New file.
4471         * tests/uninorm/test-u16-nfd.c: New file.
4472         * tests/uninorm/test-u32-nfd.c: New file.
4473         * tests/uninorm/test-u32-nfd-big.sh: New file.
4474         * tests/uninorm/test-u32-nfd-big.c: New file.
4475         * tests/uninorm/test-u32-normalize-big.h: New file.
4476         * tests/uninorm/test-u32-normalize-big.c: New file.
4477         * tests/uninorm/NormalizationTest.txt: New file, created from
4478         Unicode 5.1.0 NormalizationTest.txt.
4479         * modules/uninorm/nfd-tests: New file.
4480
4481         New module 'uninorm/nfd'.
4482         * lib/uninorm/nfd.c: New file.
4483         * modules/uninorm/nfd: New file.
4484
4485         New module 'uninorm/u32-normalize'.
4486         * lib/uninorm/u32-normalize.c: New file.
4487         * modules/uninorm/u32-normalize: New file.
4488
4489         New module 'uninorm/u16-normalize'.
4490         * lib/uninorm/u16-normalize.c: New file.
4491         * modules/uninorm/u16-normalize: New file.
4492
4493         New module 'uninorm/u8-normalize'.
4494         * lib/uninorm/u8-normalize.c: New file.
4495         * lib/uninorm/normalize-internal.h: New file.
4496         * lib/uninorm/u-normalize-internal.h: New file.
4497         * modules/uninorm/u8-normalize: New file.
4498
4499         New module 'uninorm/decompose-internal'.
4500         * lib/uninorm/decompose-internal.c: New file.
4501         * modules/uninorm/decompose-internal: New file.
4502
4503         Tests for module 'uninorm/composition'.
4504         * tests/uninorm/test-composition.c: New file.
4505         * modules/uninorm/composition-tests: New file.
4506
4507         New module 'uninorm/composition'.
4508         * lib/uninorm/composition.c: New file.
4509         * lib/uninorm/composition-table.gperf: New file, generated by
4510         gen-uni-tables.
4511         * modules/uninorm/composition: New file.
4512
4513         Tests for module 'uninorm/compat-decomposition'.
4514         * tests/uninorm/test-compat-decomposition.c: New file.
4515         * modules/uninorm/compat-decomposition-tests: New file.
4516
4517         New module 'uninorm/compat-decomposition'.
4518         * lib/uninorm/decompose-internal.h: New file.
4519         * lib/uninorm/compat-decomposition.c: New file.
4520         * modules/uninorm/compat-decomposition: New file.
4521
4522         Tests for module 'uninorm/canonical-decomposition'.
4523         * tests/uninorm/test-canonical-decomposition.c: New file.
4524         * modules/uninorm/canonical-decomposition-tests: New file.
4525
4526         New module 'uninorm/canonical-decomposition'.
4527         * lib/uninorm/canonical-decomposition.c: New file.
4528         * modules/uninorm/canonical-decomposition: New file.
4529
4530         Tests for module 'uninorm/decomposition'.
4531         * tests/uninorm/test-decomposition.c: New file.
4532         * modules/uninorm/decomposition-tests: New file.
4533
4534         New module 'uninorm/decomposition'.
4535         * lib/uninorm/decomposition.c: New file.
4536         * modules/uninorm/decomposition: New file.
4537
4538         New module 'uninorm/decomposition-table'.
4539         * lib/uninorm/decomposition-table.h: New file.
4540         * lib/uninorm/decomposition-table.c: New file.
4541         * lib/uninorm/decomposition-table1.h: New file, generated by
4542         gen-uni-tables.
4543         * lib/uninorm/decomposition-table2.h: New file, generated by
4544         gen-uni-tables.
4545         * modules/uninorm/decomposition-table: New file.
4546
4547         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
4548         (UC_DECOMP_*): New enumeration items.
4549         (get_decomposition): New function.
4550         (struct decomp_table): New type.
4551         (output_decomposition, output_decomposition_tables): New functions.
4552         (unicode_composition_exclusions): New variable.
4553         (fill_composition_exclusions, debug_output_composition_tables): New
4554         functions.
4555         (main): Accept one more argument. Invoke fill_composition_exclusions.
4556         Output decomposition and composition tables.
4557
4558         New module 'uninorm/base'.
4559         * lib/uninorm.h: New file.
4560         * lib/unictype.h: Update comment.
4561         * modules/uninorm/base: New file.
4562
4563 2009-02-21  David Lutterkort  <lutter@redhat.com>
4564
4565         Tests for module 'safe-alloc'.
4566         * tests/test-safe-alloc.c: New file.
4567         * modules/safe-alloc-tests: New file.
4568
4569         New module 'safe-alloc'.
4570         * lib/safe-alloc.h: New file.
4571         * lib/safe-alloc.c: New file.
4572         * m4/safe-alloc.m4: New file.
4573         * modules/safe-alloc: New file.
4574         * doc/safe-alloc.texi: New file.
4575         * doc/gnulib.texi: Include it.
4576         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
4577         safe-alloc.
4578
4579 2009-02-18  Bruno Haible  <bruno@clisp.org>
4580
4581         Fix link error on non-glibc systems.
4582         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
4583         variable.
4584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4585
4586 2009-02-18  Jim Meyering  <meyering@redhat.com>
4587
4588         fts: avoid used-uninitialized error due to recent change
4589         * lib/fts.c (fts_read): Guard uses of the new member,
4590         parent->fts_n_dirs_remaining, since it's not relevant for
4591         the parent of a directory specified on the command-line.
4592
4593 2009-02-17  James Youngman  <jay@gnu.org>
4594             Bruno Haible  <bruno@clisp.org>
4595
4596         * m4/include_next.m4: Reformulate comment.
4597
4598 2009-02-16  Jim Meyering  <meyering@redhat.com>
4599
4600         fts: add #if guards so that the fts_lgpl module still builds
4601         * lib/fts.c: Guard just-added hash-table-using parts with
4602         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
4603         Reported by Simon Josefsson.
4604
4605 2009-02-15  Bruno Haible  <bruno@clisp.org>
4606
4607         * modules/array-mergesort-tests: New file.
4608         * tests/test-array-mergesort.c: New file.
4609
4610         New module 'array-mergesort'.
4611         * modules/array-mergesort: New file.
4612         * lib/array-mergesort.h: New file.
4613
4614 2009-02-15  Bruno Haible  <bruno@clisp.org>
4615
4616         Fix 2009-02-07 commit.
4617         * lib/gen-uni-tables.c (output_predicate, output_category,
4618         output_combclass, output_bidi_category, output_decimal_digit,
4619         output_digit, output_numeric, output_mirror, output_scripts,
4620         output_ident_category, output_simple_mapping): Fix format directives.
4621         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
4622
4623 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
4624
4625         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
4626         fixes are available from IBM.
4627
4628 2009-02-13  Jim Meyering  <meyering@redhat.com>
4629
4630         fts: arrange not to stat non-directories in more cases
4631         This makes GNU find (when it doesn't need to stat each file)
4632         *much* more efficient at traversing reiserfs file systems.
4633         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
4634         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
4635         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
4636         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
4637         (leaf_optimization_applies): New function.
4638         (LCO_hash, LCO_compare): New helper functions.
4639         (link_count_optimize_ok): New function.
4640         (fts_stat): Initialize new member (if dir).
4641         (fts_read): Decrement parent's fts_n_dirs_remaining count if
4642         we've just stat'ed a directory.  Skip the stat call when possible.
4643         ---
4644         Note this AFS-related exchange:
4645         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
4646         and note find's pioctl call in find/fstype.c.
4647         But that is necessary only if you want to enable the
4648         optimization for AFS, and for now, I don't.
4649
4650         fts: move a function definition "up" (no semantic change)
4651         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
4652         "up" to precede upcoming use of a related function.
4653
4654 2009-02-11  Jim Meyering  <meyering@redhat.com>
4655
4656         fts: correct internal computation of nlinks (optimization-related)
4657         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
4658         whether the current entry is a directory, so don't test it.
4659
4660 2009-02-10  Bruno Haible  <bruno@clisp.org>
4661
4662         Tests for module 'uniwbrk/ulc-wordbreaks'.
4663         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
4664         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
4665         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
4666
4667         Tests for module 'uniwbrk/u32-wordbreaks'.
4668         * modules/uniwbrk/u32-wordbreaks-tests: New file.
4669         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
4670
4671         Tests for module 'uniwbrk/u16-wordbreaks'.
4672         * modules/uniwbrk/u16-wordbreaks-tests: New file.
4673         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
4674
4675         Tests for module 'uniwbrk/u8-wordbreaks'.
4676         * modules/uniwbrk/u8-wordbreaks-tests: New file.
4677         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
4678
4679 2009-02-10  Bruno Haible  <bruno@clisp.org>
4680
4681         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
4682         property.
4683         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
4684         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
4685         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
4686
4687 2009-02-10  Simon Josefsson  <simon@josefsson.org>
4688
4689         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
4690         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
4691
4692 2009-02-10  Bruno Haible  <bruno@clisp.org>
4693
4694         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
4695         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
4696         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
4697         * lib/unilbrk/u8-possible-linebreaks.c: Update.
4698         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
4699         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
4700
4701 2009-02-09  Simon Josefsson  <simon@josefsson.org>
4702
4703         * lib/sockets.h (gl_fd_to_handle): New function.
4704
4705         * tests/test-sockets.c: Call gl_fd_to_handle.
4706
4707 2009-02-09  Bruno Haible  <bruno@clisp.org>
4708
4709         * doc/havelib.texi: Document the conventions on bi-arch systems.
4710
4711 2009-02-08  Bruno Haible  <bruno@clisp.org>
4712
4713         Document the AC_LIB_LINKFLAGS macro.
4714         * doc/havelib.texi: New file, mostly written on 2005-05-24.
4715         * doc/gnulib.texi: Include it.
4716
4717 2009-02-08  Bruno Haible  <bruno@clisp.org>
4718
4719         Fix wrong order of sections, compared to TOC.
4720         * doc/gnulib.texi: Include relocatable-maint.texi after the
4721         "Regular expressions" node, not before.
4722
4723 2009-02-08  Bruno Haible  <bruno@clisp.org>
4724
4725         Tests for module 'unicase/totitle'.
4726         * modules/unicase/totitle-tests: New file.
4727
4728         Tests for module 'unicase/tolower'.
4729         * modules/unicase/tolower-tests: New file.
4730
4731         Tests for module 'unicase/toupper'.
4732         * modules/unicase/toupper-tests: New file.
4733         * tests/unicase/test-mapping-part1.h: New file.
4734         * tests/unicase/test-mapping-part2.h: New file.
4735
4736         New module 'unicase/totitle'.
4737         * modules/unicase/totitle: New file.
4738         * lib/unicase/totitle.c: New file.
4739
4740         New module 'unicase/tolower'.
4741         * modules/unicase/tolower: New file.
4742         * lib/unicase/tolower.c: New file.
4743
4744         New module 'unicase/toupper'.
4745         * modules/unicase/toupper: New file.
4746         * lib/unicase/toupper.c: New file.
4747         * lib/unicase/simple-mapping.h: New file.
4748
4749         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
4750         (mapping_table): New structure.
4751         (output_simple_mapping): New function.
4752         (main): Invoke output_simple_mapping_test and output_simple_mapping.
4753         * modules/gen-uni-tables (Description): Update.
4754         * lib/unicase/toupper.h: New file, automatically generated by
4755         gen-uni-tables.
4756         * lib/unicase/tolower.h: New file, automatically generated by
4757         gen-uni-tables.
4758         * lib/unicase/totitle.h: New file, automatically generated by
4759         gen-uni-tables.
4760         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
4761         gen-uni-tables.
4762         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
4763         gen-uni-tables.
4764         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
4765         gen-uni-tables.
4766
4767         New module 'unicase/base'.
4768         * modules/unicase/base: New file.
4769         * lib/unicase.h: New file.
4770
4771 2009-02-08  Bruno Haible  <bruno@clisp.org>
4772
4773         New module 'uniwbrk/ulc-wordbreaks'.
4774         * modules/uniwbrk/ulc-wordbreaks: New file.
4775         * lib/uniwbrk/ulc-wordbreaks.c: New file.
4776
4777         New module 'uniwbrk/u32-wordbreaks'.
4778         * modules/uniwbrk/u32-wordbreaks: New file.
4779         * lib/uniwbrk/u32-wordbreaks.c: New file.
4780
4781         New module 'uniwbrk/u16-wordbreaks'.
4782         * modules/uniwbrk/u16-wordbreaks: New file.
4783         * lib/uniwbrk/u16-wordbreaks.c: New file.
4784
4785         New module 'uniwbrk/u8-wordbreaks'.
4786         * modules/uniwbrk/u8-wordbreaks: New file.
4787         * lib/uniwbrk/u8-wordbreaks.c: New file.
4788         * lib/uniwbrk/u-wordbreaks.h: New file.
4789
4790         New module 'uniwbrk/table'.
4791         * modules/uniwbrk/table: New file.
4792         * lib/uniwbrk/wbrktable.h: New file.
4793         * lib/uniwbrk/wbrktable.c: New file.
4794
4795         New module 'uniwbrk/wordbreak-property'.
4796         * modules/uniwbrk/wordbreak-property: New file.
4797         * lib/uniwbrk/wordbreak-property.c: New file.
4798
4799         * lib/gen-uni-tables.c (WBP_*): New enum items.
4800         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
4801         (unicode_org_wbp): New variable.
4802         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
4803         New functions.
4804         (wbp_table): New structure.
4805         (output_wbp, output_wbrk_tables): New functions.
4806         (main): Accept additional argument. Invoke fill_org_wbp,
4807         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
4808         output_wbrk_tables.
4809         * modules/gen-uni-tables (Description): Update.
4810         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
4811         gen-uni-tables.
4812
4813         New module 'uniwbrk/base'.
4814         * modules/uniwbrk/base: New file.
4815         * lib/uniwbrk.h: New file.
4816
4817 2009-02-08  Bruno Haible  <bruno@clisp.org>
4818
4819         Update to Unicode 5.1.0.
4820         * lib/gen-uni-tables.c (is_property_alphabetic): Include
4821         U+2185..U+2188.
4822         (is_property_default_ignorable_code_point): Don't include characters
4823         of category Cc or Cs and not-a-characters.
4824         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
4825         U+0D79, U+109E, U+109F, U+A60C.
4826         * lib/unictype/bidi_of.h: Regenerated.
4827         * lib/unictype/blocks.h: Regenerated.
4828         * lib/unictype/categ_C.h: Regenerated.
4829         * lib/unictype/categ_Cf.h: Regenerated.
4830         * lib/unictype/categ_Cn.h: Regenerated.
4831         * lib/unictype/categ_L.h: Regenerated.
4832         * lib/unictype/categ_Ll.h: Regenerated.
4833         * lib/unictype/categ_Lm.h: Regenerated.
4834         * lib/unictype/categ_Lo.h: Regenerated.
4835         * lib/unictype/categ_Lu.h: Regenerated.
4836         * lib/unictype/categ_M.h: Regenerated.
4837         * lib/unictype/categ_Mc.h: Regenerated.
4838         * lib/unictype/categ_Me.h: Regenerated.
4839         * lib/unictype/categ_Mn.h: Regenerated.
4840         * lib/unictype/categ_N.h: Regenerated.
4841         * lib/unictype/categ_Nd.h: Regenerated.
4842         * lib/unictype/categ_Nl.h: Regenerated.
4843         * lib/unictype/categ_No.h: Regenerated.
4844         * lib/unictype/categ_P.h: Regenerated.
4845         * lib/unictype/categ_Pd.h: Regenerated.
4846         * lib/unictype/categ_Pe.h: Regenerated.
4847         * lib/unictype/categ_Pf.h: Regenerated.
4848         * lib/unictype/categ_Pi.h: Regenerated.
4849         * lib/unictype/categ_Po.h: Regenerated.
4850         * lib/unictype/categ_Ps.h: Regenerated.
4851         * lib/unictype/categ_S.h: Regenerated.
4852         * lib/unictype/categ_Sk.h: Regenerated.
4853         * lib/unictype/categ_Sm.h: Regenerated.
4854         * lib/unictype/categ_So.h: Regenerated.
4855         * lib/unictype/categ_of.h: Regenerated.
4856         * lib/unictype/combining.h: Regenerated.
4857         * lib/unictype/ctype_alnum.h: Regenerated.
4858         * lib/unictype/ctype_alpha.h: Regenerated.
4859         * lib/unictype/ctype_graph.h: Regenerated.
4860         * lib/unictype/ctype_lower.h: Regenerated.
4861         * lib/unictype/ctype_print.h: Regenerated.
4862         * lib/unictype/ctype_punct.h: Regenerated.
4863         * lib/unictype/ctype_upper.h: Regenerated.
4864         * lib/unictype/decdigit.h: Regenerated.
4865         * lib/unictype/digit.h: Regenerated.
4866         * lib/unictype/mirror.h: Regenerated.
4867         * lib/unictype/numeric.h: Regenerated.
4868         * lib/unictype/pr_alphabetic.h: Regenerated.
4869         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
4870         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
4871         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
4872         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
4873         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
4874         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
4875         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
4876         * lib/unictype/pr_combining.h: Regenerated.
4877         * lib/unictype/pr_dash.h: Regenerated.
4878         * lib/unictype/pr_decimal_digit.h: Regenerated.
4879         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
4880         * lib/unictype/pr_deprecated.h: Regenerated.
4881         * lib/unictype/pr_diacritic.h: Regenerated.
4882         * lib/unictype/pr_extender.h: Regenerated.
4883         * lib/unictype/pr_format_control.h: Regenerated.
4884         * lib/unictype/pr_grapheme_base.h: Regenerated.
4885         * lib/unictype/pr_grapheme_extend.h: Regenerated.
4886         * lib/unictype/pr_grapheme_link.h: Regenerated.
4887         * lib/unictype/pr_id_continue.h: Regenerated.
4888         * lib/unictype/pr_id_start.h: Regenerated.
4889         * lib/unictype/pr_ideographic.h: Regenerated.
4890         * lib/unictype/pr_ignorable_control.h: Regenerated.
4891         * lib/unictype/pr_lowercase.h: Regenerated.
4892         * lib/unictype/pr_math.h: Regenerated.
4893         * lib/unictype/pr_numeric.h: Regenerated.
4894         * lib/unictype/pr_other_alphabetic.h: Regenerated.
4895         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
4896         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
4897         * lib/unictype/pr_other_id_continue.h: Regenerated.
4898         * lib/unictype/pr_other_lowercase.h: Regenerated.
4899         * lib/unictype/pr_other_math.h: Regenerated.
4900         * lib/unictype/pr_punctuation.h: Regenerated.
4901         * lib/unictype/pr_sentence_terminal.h: Regenerated.
4902         * lib/unictype/pr_soft_dotted.h: Regenerated.
4903         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
4904         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
4905         * lib/unictype/pr_unified_ideograph.h: Regenerated.
4906         * lib/unictype/pr_uppercase.h: Regenerated.
4907         * lib/unictype/pr_xid_continue.h: Regenerated.
4908         * lib/unictype/pr_xid_start.h: Regenerated.
4909         * lib/unictype/pr_zero_width.h: Regenerated.
4910         * lib/unictype/scripts.h: Regenerated.
4911         * lib/unictype/scripts_byname.gperf: Regenerated.
4912         * lib/unictype/sy_java_ident.h: Regenerated.
4913         * lib/unilbrk/lbrkprop1.h: Regenerated.
4914         * lib/unilbrk/lbrkprop2.h: Regenerated.
4915         * tests/unictype/test-categ_C.c: Regenerated.
4916         * tests/unictype/test-categ_Cf.c: Regenerated.
4917         * tests/unictype/test-categ_Cn.c: Regenerated.
4918         * tests/unictype/test-categ_L.c: Regenerated.
4919         * tests/unictype/test-categ_Ll.c: Regenerated.
4920         * tests/unictype/test-categ_Lm.c: Regenerated.
4921         * tests/unictype/test-categ_Lo.c: Regenerated.
4922         * tests/unictype/test-categ_Lu.c: Regenerated.
4923         * tests/unictype/test-categ_M.c: Regenerated.
4924         * tests/unictype/test-categ_Mc.c: Regenerated.
4925         * tests/unictype/test-categ_Me.c: Regenerated.
4926         * tests/unictype/test-categ_Mn.c: Regenerated.
4927         * tests/unictype/test-categ_N.c: Regenerated.
4928         * tests/unictype/test-categ_Nd.c: Regenerated.
4929         * tests/unictype/test-categ_Nl.c: Regenerated.
4930         * tests/unictype/test-categ_No.c: Regenerated.
4931         * tests/unictype/test-categ_P.c: Regenerated.
4932         * tests/unictype/test-categ_Pd.c: Regenerated.
4933         * tests/unictype/test-categ_Pe.c: Regenerated.
4934         * tests/unictype/test-categ_Pf.c: Regenerated.
4935         * tests/unictype/test-categ_Pi.c: Regenerated.
4936         * tests/unictype/test-categ_Po.c: Regenerated.
4937         * tests/unictype/test-categ_Ps.c: Regenerated.
4938         * tests/unictype/test-categ_S.c: Regenerated.
4939         * tests/unictype/test-categ_Sk.c: Regenerated.
4940         * tests/unictype/test-categ_Sm.c: Regenerated.
4941         * tests/unictype/test-categ_So.c: Regenerated.
4942         * tests/unictype/test-ctype_alnum.c: Regenerated.
4943         * tests/unictype/test-ctype_alpha.c: Regenerated.
4944         * tests/unictype/test-ctype_graph.c: Regenerated.
4945         * tests/unictype/test-ctype_lower.c: Regenerated.
4946         * tests/unictype/test-ctype_print.c: Regenerated.
4947         * tests/unictype/test-ctype_punct.c: Regenerated.
4948         * tests/unictype/test-ctype_upper.c: Regenerated.
4949         * tests/unictype/test-decdigit.h: Regenerated.
4950         * tests/unictype/test-digit.h: Regenerated.
4951         * tests/unictype/test-numeric.h: Regenerated.
4952         * tests/unictype/test-pr_alphabetic.c: Regenerated.
4953         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
4954         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
4955         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
4956         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
4957         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
4958         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
4959         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
4960         * tests/unictype/test-pr_combining.c: Regenerated.
4961         * tests/unictype/test-pr_dash.c: Regenerated.
4962         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
4963         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
4964         * tests/unictype/test-pr_deprecated.c: Regenerated.
4965         * tests/unictype/test-pr_diacritic.c: Regenerated.
4966         * tests/unictype/test-pr_extender.c: Regenerated.
4967         * tests/unictype/test-pr_format_control.c: Regenerated.
4968         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
4969         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
4970         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
4971         * tests/unictype/test-pr_id_continue.c: Regenerated.
4972         * tests/unictype/test-pr_id_start.c: Regenerated.
4973         * tests/unictype/test-pr_ideographic.c: Regenerated.
4974         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
4975         * tests/unictype/test-pr_lowercase.c: Regenerated.
4976         * tests/unictype/test-pr_math.c: Regenerated.
4977         * tests/unictype/test-pr_numeric.c: Regenerated.
4978         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
4979         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
4980         Regenerated.
4981         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
4982         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
4983         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
4984         * tests/unictype/test-pr_other_math.c: Regenerated.
4985         * tests/unictype/test-pr_punctuation.c: Regenerated.
4986         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
4987         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
4988         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
4989         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
4990         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
4991         * tests/unictype/test-pr_uppercase.c: Regenerated.
4992         * tests/unictype/test-pr_xid_continue.c: Regenerated.
4993         * tests/unictype/test-pr_xid_start.c: Regenerated.
4994         * tests/unictype/test-pr_zero_width.c: Regenerated.
4995
4996         Update to Unicode 5.1.0.
4997         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
4998         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
4999         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
5000         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
5001         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
5002         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
5003         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
5004         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
5005         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
5006         (nonspacing_table_ind): Update.
5007         * tests/uniwidth/test-uc_width2.sh: Update expected result.
5008
5009         Update to Unicode 5.1.0.
5010         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
5011         code transform.
5012         * lib/uniname/uniname.c (unicode_character_name,
5013         unicode_name_character): Add the range 0x1Fxxx to the code transform.
5014         * lib/uniname/uninames.h: Regenerated.
5015         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
5016
5017 2009-02-07  Bruno Haible  <bruno@clisp.org>
5018
5019         Merge gen-ctype and gen-lbrk into a single program.
5020         * lib/gen-uni-tables.c: New file, incorporating
5021         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
5022         Add directory prefixes to the names of the generated files.
5023         * lib/unictype/gen-ctype.c: Remove file.
5024         * lib/unilbrk/gen-lbrk.c: Remove file.
5025         * modules/gen-uni-tables: New file.
5026         * modules/unictype/gen-ctype: Remove file.
5027         * modules/unilbrk/gen-lbrk: Remove file.
5028
5029 2009-02-07  Bruno Haible  <bruno@clisp.org>
5030
5031         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
5032
5033         New module 'unistr/u32-strcoll'.
5034         * modules/unistr/u32-strcoll: New file.
5035         * lib/unistr/u32-strcoll.c: New file.
5036
5037         New module 'unistr/u16-strcoll'.
5038         * modules/unistr/u16-strcoll: New file.
5039         * lib/unistr/u16-strcoll.c: New file.
5040
5041         New module 'unistr/u8-strcoll'.
5042         * modules/unistr/u8-strcoll: New file.
5043         * lib/unistr/u8-strcoll.c: New file.
5044         * lib/unistr/u-strcoll.h: New file.
5045
5046 2009-02-07  Bruno Haible  <bruno@clisp.org>
5047
5048         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
5049         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5050         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5051         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
5052         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
5053         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
5054
5055 2009-02-07  Bruno Haible  <bruno@clisp.org>
5056
5057         Make 64-bit clean.
5058         * lib/unictype/gen-ctype.c (output_predicate, output_category,
5059         output_combclass, output_bidi_category, output_decimal_digit,
5060         output_digit, output_numeric, output_mirror, output_scripts,
5061         output_ident_category): Use proper width specifier in format strings.
5062
5063 2009-02-07  Bruno Haible  <bruno@clisp.org>
5064
5065         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
5066         failure behaviour.
5067
5068 2009-02-07  Jim Meyering  <meyering@redhat.com>
5069
5070         regex: avoid compilation failure with upcoming gcc-4.4
5071         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
5072         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
5073         "... error: integer overflow in preprocessor expression".
5074
5075 2009-02-05  Ben Pfaff  <blp@gnu.org>
5076
5077         Fix link errors on Windows when close module is used.
5078         * modules/close: Add $(LIB_CLOSE) to Link section.
5079         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
5080         $(LIB_CLOSE) on Windows.
5081
5082 2009-02-05  Jim Meyering  <meyering@redhat.com>
5083
5084         still avoid unused-parameter warnings, but do it cleanly
5085         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
5086         (get_fs_usage): Cast to void instead.
5087         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
5088         (dev_from_mount_options, read_file_system_list): Cast to void.
5089         Prompted by Bruno Haible.
5090
5091 2009-02-04  Jim Meyering  <meyering@redhat.com>
5092
5093         fsusage.c: correct copyright year
5094         * lib/fsusage.c: Reflect year in which the change is pushed into
5095
5096         avoid misc. warnings
5097         * lib/fsusage.c (UNUSED_PARAM): Define.
5098         (get_fs_usage): Mark parameter "disk" as unused.
5099         * lib/getugroups.c (getgrent): Use "void" in prototype.
5100         * lib/mountlist.c: Mark unused parameters.
5101         (read_file_system_list): Declare a local with "const".
5102         * lib/nanosleep.c (getnow): Declare static.
5103         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
5104
5105         dirfd: set errno upon failure
5106         * lib/dirfd.c: Include <errno.h>.
5107         Set errno to ENOTSUP when returning -1.
5108         * modules/dirfd (Depends-on): Add errno.
5109         Suggested by John Kodis <kodis@comcast.net>.
5110
5111 2009-02-01  Bruno Haible  <bruno@clisp.org>
5112
5113         Don't assume sizeof (long) >= sizeof (void *).
5114         * lib/memcmp.c: Include stdint.h.
5115         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
5116         srcp2 to 'const byte *'.
5117         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
5118         types to uintptr_t.
5119         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
5120         * modules/memcmp (Depends-on): Add stdint.
5121         Reported by Ozkan Sezer <sezeroz@gmail.com>.
5122
5123 2009-01-30  Eric Blake  <ebb9@byu.net>
5124
5125         fix more require-before-expand issues
5126         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
5127         expand, AC_PROG_AWK.
5128         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
5129
5130 2009-01-28  Eric Blake  <ebb9@byu.net>
5131
5132         version-etc: use consistent URL formatting
5133         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
5134         Improve formatting.  Use fputs for string without %.
5135
5136 2009-01-28  Jim Meyering  <meyering@redhat.com>
5137
5138         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
5139         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
5140         "underquoted definition of NAME" from autoconf-2.59.
5141
5142 2009-01-28  Bruno Haible  <bruno@clisp.org>
5143
5144         * doc/gnulib.texi: Add "Obsolete modules" to index.
5145
5146 2009-01-28  Jim Meyering  <meyering@redhat.com>
5147
5148         useless-if-before-free: recognize more variants
5149         * build-aux/useless-if-before-free: Also recognize e.g.,
5150         if (NULL != p) free (p);
5151
5152 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
5153
5154         test-getaddrinfo: skip (don't fail) this test when there's no network
5155         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
5156         on the presumption that it means you lack network access.
5157
5158 2009-01-26  Jim Meyering  <meyering@redhat.com>
5159
5160         fflush: avoid warnings on modern systems
5161         * lib/fflush.c (rpl_fflush): Move declarations of locals,
5162         pos and result, into scopes where they're used.
5163
5164 2009-01-26  Eric Blake  <ebb9@byu.net>
5165
5166         Silence warning reintroduced by recent extensions patch.
5167         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
5168         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
5169         autoconf.
5170
5171         Backport improved autoconf semantics of AC_DEFUN_ONCE.
5172         * m4/00gnulib.m4: New file.
5173         * gnulib-tool (func_get_filelist): Always use it.
5174         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
5175         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
5176
5177 2009-01-25  Bruno Haible  <bruno@clisp.org>
5178
5179         Make test-quotearg work on MacOS X and AIX.
5180         * tests/test-quotearg.sh: New file.
5181         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
5182         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
5183         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
5184         include <libintl.h>.
5185         (fake_locale): Remove variable.
5186         (gettext, dgettext, dcgettext): Remove functions.
5187         (main): Instead of setting a fake locale, set a real locale. Call
5188         textdomain and bindtextdomain.
5189         * modules/quotearg-tests (Files): Add the new files.
5190         (Depends-on): Add gettext, setenv, unsetenv.
5191         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5192         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
5193         Augment TESTS_ENVIRONMENT.
5194
5195 2009-01-25  Bruno Haible  <bruno@clisp.org>
5196
5197         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
5198         fr_FR.ISO8859-1 locale on MacOS X.
5199         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
5200         ja_JP.eucJP locale on MacOS X.
5201         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
5202         zh_CN.GB18030 locale on MacOS X.
5203
5204 2009-01-25  Bruno Haible  <bruno@clisp.org>
5205
5206         Avoid link errors on MacOS X 10.3.
5207         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
5208         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
5209
5210 2009-01-25  Bruno Haible  <bruno@clisp.org>
5211
5212         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5213         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
5214         * modules/pipe (Files): Remove m4/posix_spawn.m4.
5215         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5216         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
5217         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5218         posix_spawnattr_init, posix_spawnattr_setsigmask,
5219         posix_spawnattr_setflags, posix_spawnattr_destroy.
5220
5221         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5222         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
5223         * modules/execute (Files): Remove m4/posix_spawn.m4.
5224         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5225         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5226         posix_spawnattr_init, posix_spawnattr_setsigmask,
5227         posix_spawnattr_setflags, posix_spawnattr_destroy.
5228
5229 2009-01-25  Bruno Haible  <bruno@clisp.org>
5230
5231         * lib/glthread/threadlib.c: Include <stdlib.h>.
5232
5233 2009-01-25  Bruno Haible  <bruno@clisp.org>
5234
5235         * lib/glthread/threadlib.c (dummy): New declaration.
5236
5237 2009-01-25  Bruno Haible  <bruno@clisp.org>
5238
5239         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
5240         multibyte characters also for the GB18030 encoding. Don't crash when
5241         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
5242
5243 2009-01-25  Bruno Haible  <bruno@clisp.org>
5244
5245         Avoid redefining 'struct random_data' on OSF/1 5.1.
5246         * lib/stdlib.in.h: Include <random.h> if it exists.
5247         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
5248         HAVE_RANDOM_H. Include <random.h> when testing whether
5249         'struct random_data' exists.
5250         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
5251
5252 2009-01-25  Bruno Haible  <bruno@clisp.org>
5253
5254         Don't install charset.alias on MacOS X >= 10.3.
5255         * lib/localcharset.c (DARWIN7): New macro.
5256         (get_charset_aliases): Hardcode the result for Darwin7.
5257         * modules/localcharset (install-exec-local): Don't install
5258         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
5259
5260 2009-01-25  Bruno Haible  <bruno@clisp.org>
5261
5262         Don't install charset.alias on mingw and Cygwin.
5263         * modules/localcharset (install-exec-local): Don't install
5264         charset.alias on mingw and Cygwin, if the file does not yet exist.
5265         The result for these platforms is hardcoded in localcharset.c.
5266
5267 2009-01-25  Bruno Haible  <bruno@clisp.org>
5268
5269         Make it possible again to use AC_GNU_SOURCE together with gnulib.
5270         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
5271         before requiring AC_USE_SYSTEM_EXTENSIONS.
5272
5273 2009-01-25  Jim Meyering  <meyering@redhat.com>
5274
5275         c-strtod: avoid warnings
5276         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
5277         "assignment discards qualifiers from pointer target type" warnings.
5278
5279 2009-01-24  Bruno Haible  <bruno@clisp.org>
5280
5281         Add support for non-UTF-8 locales on MacOS X.
5282         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
5283         canonical encodings. For Darwin 7 and newer, don't map traditional
5284         encodings to UTF-8.
5285         Reported by Vincent Lefevre <vincent@vinc17.org>
5286         at <http://savannah.gnu.org/bugs/?25235>.
5287
5288 2009-01-24  Bruno Haible  <bruno@clisp.org>
5289
5290         * doc/gnulib.texi (Obsolete modules): New section.
5291         Reported by Mike Frysinger <vapier@gentoo.org>.
5292
5293 2009-01-24  Bruno Haible  <bruno@clisp.org>
5294
5295         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
5296         (%.dvi): New rule.
5297
5298 2009-01-24  Bruno Haible  <bruno@clisp.org>
5299
5300         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
5301         Reported by Eric Blake.
5302
5303 2009-01-24  Bruno Haible  <bruno@clisp.org>
5304
5305         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
5306         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
5307         Reported by Gary V. Vaughan <gary@gnu.org>.
5308
5309 2009-01-24  Bruno Haible  <bruno@clisp.org>
5310
5311         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
5312
5313 2009-01-23  Bruno Haible  <bruno@clisp.org>
5314
5315         Make c-strtod, c-strtold usable in libraries.
5316         * lib/c-strtod.c: Include string.h instead of xalloc.h.
5317         (C_STRTOD): Call strdup instead of xstrdup.
5318         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
5319         * modules/c-strtold (Depends-on): Likewise.
5320         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
5321         * NEWS: Mention the change.
5322         Reported by Michael Gold <mgold@ncf.ca>.
5323
5324 2009-01-23  Jim Meyering  <meyering@redhat.com>
5325
5326         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
5327         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
5328         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
5329
5330 2009-01-23  Simon Josefsson  <simon@josefsson.org>
5331
5332         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
5333         GNU CoreUtils.
5334         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
5335         * modules/version-etc (Description): Update.
5336
5337 2009-01-22  Bruno Haible  <bruno@clisp.org>
5338
5339         Cache the C locale object.
5340         * lib/c-strtod.c (c_locale_cache): New variable.
5341         (c_locale): New function.
5342         (C_STRTOD): Use it, and don't call freelocale.
5343         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
5344         Suggested by Paolo Bonzini.
5345
5346 2009-01-21  Bruno Haible  <bruno@clisp.org>
5347
5348         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
5349         conditions other than overflow.
5350
5351 2009-01-21  Bruno Haible  <bruno@clisp.org>
5352
5353         * lib/c-strtod.c: Include errno.h.
5354         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
5355         value from STRTOD_L and STRTOD.
5356
5357 2009-01-21  Bruno Haible  <bruno@clisp.org>
5358         and Jim Meyering  <meyering@redhat.com>
5359
5360         nanosleep: skip configure test (fail it) for apple universal builds
5361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
5362         universal builds, assume that nanosleep does not work.
5363         * modules/nanosleep (Depends-on): Add multiarch.
5364
5365         mktime: skip configure test (fail it) for apple universal builds
5366         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
5367         universal builds, assume that mktime does not work.
5368         * modules/mktime (Depends-on): Add multiarch.
5369
5370 2009-01-21  Eric Blake  <ebb9@byu.net>
5371
5372         multiarch: avoid expand-before-require warning
5373         * modules/multiarch (configure.ac): Require, rather than expand,
5374         gl_MULTIARCH.
5375         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
5376         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
5377         enforce that all clients require it.  Partial reversion of
5378         2008-12-29 patch.
5379
5380         error: avoid expand-before-require warning
5381         * modules/errno (configure.ac): Require, rather than expand,
5382         gl_HEADER_ERRNO_H.
5383         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
5384         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
5385         enforce that all clients require it.
5386
5387         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
5388         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
5389         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
5390         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
5391
5392 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
5393
5394         Revert:
5395         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5396
5397         regex: do not depend on obsolete modules.
5398         * modules/regex: Remove memcmp and memmove.
5399
5400 2009-01-20  Bruno Haible  <bruno@clisp.org>
5401
5402         Make the 'link' module link on Windows NT 4.
5403         * lib/link.c (_WIN32_WINNT): Don't define.
5404         (CreateHardLinkFuncType): New type.
5405         (CreateHardLinkFunc, initialized): New variables.
5406         (initialize): New function.
5407         (link): Invoke CreateHardLink indirectly through the function pointer.
5408
5409 2009-01-20  Bruno Haible  <bruno@clisp.org>
5410
5411         Fix compilation failure on mingw.
5412         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
5413
5414 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
5415
5416         * doc/c-strtod.texi: Mention a couple of restrictions.
5417
5418 2009-01-20  Jim Meyering  <meyering@redhat.com>
5419
5420         gettimeofday: move more declarations out of functions
5421         * lib/gettimeofday.c: Move extern declarations of tzset and
5422         gmtime out of containing functions.  Prompted by Bruno Haible.
5423
5424 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5425
5426         regex: do not depend on obsolete modules.
5427         * modules/regex: Remove memcmp and memmove.
5428
5429 2009-01-19  Bruno Haible  <bruno@clisp.org>
5430
5431         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5432         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
5433         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5434         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
5435         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
5436
5437 2009-01-19  Bruno Haible  <bruno@clisp.org>
5438
5439         * tests/test-link.c: Include <errno.h>.
5440         (main): Exit with code 77 when a hard link cannot be created due to
5441         the file system.
5442         * tests/test-link.sh: Skip test when a hard link cannot be created due
5443         to the file system.
5444         Suggested by Eric Blake.
5445
5446 2009-01-19  Martin Lambers  <marlam@marlam.de>
5447
5448         * modules/link-tests: New file.
5449         * tests/test-link.sh: New file.
5450         * tests/test-link.c: New file.
5451
5452 2009-01-19  Eric Blake  <ebb9@byu.net>
5453
5454         doc: mention another function added in cygwin 1.7.0
5455         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
5456         Another new function in cygwin 1.7.
5457
5458 2009-01-19  Bruno Haible  <bruno@clisp.org>
5459
5460         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5461         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
5462         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
5463         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5464         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5465         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
5466         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5467         * m4/md4.m4 (gl_MD4): Likewise.
5468         * m4/md5.m4 (gl_MD5): Likewise.
5469         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
5470         * m4/sha1.m4 (gl_SHA1): Likewise.
5471         * m4/sha256.m4 (gl_SHA256): Likewise.
5472         * m4/sha512.m4 (gl_SHA512): Likewise.
5473
5474 2009-01-19  Bruno Haible  <bruno@clisp.org>
5475
5476         * modules/uniname/uniname-tests (Depends-on): Add progname.
5477         * tests/uniname/test-uninames.c: Include progname.h.
5478         (main): Call set_program_name.
5479
5480         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
5481         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
5482         (main): Call set_program_name.
5483
5484         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
5485         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
5486         (main): Call set_program_name.
5487
5488         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
5489         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
5490         (main): Call set_program_name.
5491
5492         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
5493         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
5494         (main): Call set_program_name.
5495
5496         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
5497         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
5498         (main): Call set_program_name.
5499
5500         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
5501         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
5502         (main): Call set_program_name.
5503
5504         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
5505         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
5506         (main): Call set_program_name.
5507
5508         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
5509         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
5510         (main): Call set_program_name.
5511
5512 2009-01-19  Eric Blake  <ebb9@byu.net>
5513
5514         test-unistd: test previous patch
5515         * tests/test-unistd.c: Test *_FILENO macros.
5516
5517         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
5518         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5519         Guarantee a definition.
5520         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
5521         * modules/unistd-safer (Depends-on): Add dependency on unistd.
5522         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
5523         * lib/dup-safer.c (STDERR_FILENO): Likewise.
5524         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5525         Likewise.
5526         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
5527         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
5528         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5529         Likewise.
5530         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
5531         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
5532         (STDERR_FILENO): Likewise.
5533         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
5534         (STDERR_FILENO): Likewise.
5535         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
5536         (STDERR_FILENO): Likewise.
5537         Reported by Elbert Pol.
5538
5539 2009-01-19  Eric Blake  <ebb9@byu.net>
5540
5541         doc: mention more functions added in cygwin 1.7.0
5542         * doc/posix-functions/abort.texi (abort): Update wording related
5543         to cygwin.
5544         * doc/posix-functions/daylight.texi (daylight): Likewise.
5545         * doc/posix-functions/optarg.texi (optarg): Likewise.
5546         * doc/posix-functions/optarg.texi (opterr): Likewise.
5547         * doc/posix-functions/optarg.texi (optind): Likewise.
5548         * doc/posix-functions/optarg.texi (optopt): Likewise.
5549         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
5550         worked in 1.5.x, and was withdrawn in 1.7.
5551         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5552         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
5553         cygwin versions.
5554         * doc/posix-functions/perror.texi (perror): Likewise.
5555         * doc/posix-functions/printf.texi (printf): Likewise.
5556         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
5557         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
5558         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5559         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5560         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5561         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
5562         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
5563         Likewise.
5564         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
5565         Likewise.
5566         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
5567         this function.
5568         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
5569         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
5570         Likewise.
5571         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
5572         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
5573         * doc/posix-functions/confstr.texi (confstr): Likewise.
5574         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
5575         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
5576         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
5577         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
5578         * doc/posix-functions/fputws.texi (fputws): Likewise.
5579         * doc/posix-functions/fwide.texi (fwide): Likewise.
5580         * doc/posix-functions/getwc.texi (getwc): Likewise.
5581         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
5582         * doc/posix-functions/putwc.texi (putwc): Likewise.
5583         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5584         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
5585         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
5586         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5587         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
5588         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
5589         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
5590         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
5591         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
5592         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
5593         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
5594
5595 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
5596
5597         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
5598         * lib/ioctl.c: Include <sys/ioctl.h>.
5599
5600 2009-01-19  Simon Josefsson  <simon@josefsson.org>
5601
5602         * modules/getdate-tests (Depends-on): Add progname.
5603         * tests/test-getdate.c: Use progname module, to avoid link errors
5604         on non-glibc systems.
5605
5606 2009-01-18  Simon Josefsson  <simon@josefsson.org>
5607
5608         * modules/filenamecat-tests (Depends-on): Add progname.
5609         * modules/fstrcmp-tests (Depends-on): Likewise.
5610
5611         * tests/test-filenamecat.c: Use progname module, to avoid link
5612         errors on non-glibc systems.
5613         * tests/test-fstrcmp.c: Likewise.
5614
5615 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
5616
5617         gettimeofday: avoid warning: nested extern declaration of 'localtime'
5618         * lib/gettimeofday.c: Move extern declaration out of function.
5619
5620 2009-01-18  Bruno Haible  <bruno@clisp.org>
5621
5622         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
5623         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
5624         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
5625
5626 2009-01-18  Bruno Haible  <bruno@clisp.org>
5627
5628         * lib/strftime.c (MEMPCPY): Remove unused macro.
5629         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
5630
5631 2009-01-18  Martin Lambers  <marlam@marlam.de>
5632
5633         New module 'link'.
5634         * lib/unistd.in.h (link): New declaration.
5635         * lib/link.c: New file.
5636         * m4/link.m4: New file.
5637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
5638         HAVE_LINK.
5639         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
5640         * modules/link: New file.
5641         * doc/posix-functions/link.texi: Mention the new module.
5642
5643 2009-01-18  Bruno Haible  <bruno@clisp.org>
5644
5645         * tests/test-avltree_list.c (main): Call set_program_name.
5646         * tests/test-avltree_oset.c (main): Likewise.
5647         * tests/test-obstack-printf.c: Include progname.h.
5648         (main): Call set_program_name.
5649         * tests/test-quotearg.c: Include progname.h.
5650         (main): Call set_program_name.
5651         * tests/test-xmemdup0.c: Include progname.h.
5652         (main): Call set_program_name.
5653
5654 2009-01-18  Bruno Haible  <bruno@clisp.org>
5655
5656         New module 'alphasort'.
5657         * lib/dirent.in.h (alphasort): New declaration.
5658         * lib/alphasort.c: New file, from glibc with modifications.
5659         * m4/alphasort.m4: New file.
5660         * modules/alphasort: New file.
5661         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
5662         HAVE_ALPHASORT.
5663         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
5664         HAVE_ALPHASORT.
5665         * doc/posix-functions/alphasort.texi: Mention the new module and the
5666         portability problems.
5667
5668 2009-01-18  Bruno Haible  <bruno@clisp.org>
5669
5670         New module 'scandir'.
5671         * lib/dirent.in.h (scandir): New declaration.
5672         * lib/scandir.c: New file, from glibc with modifications.
5673         * m4/scandir.m4: New file.
5674         * modules/scandir: New file.
5675         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
5676         HAVE_SCANDIR.
5677         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
5678         HAVE_SCANDIR.
5679         * doc/posix-functions/scandir.texi: Mention the new module and the
5680         portability problems.
5681
5682 2009-01-17  Bruno Haible  <bruno@clisp.org>
5683
5684         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
5685         Update documentation.
5686         (func_remove_suffix): Escape all dots in the suffix. Update
5687         documentation.
5688         (func_filter_filelist): Update documentation.
5689         Reported by Ralf Wildenhues.
5690
5691 2009-01-17  Bruno Haible  <bruno@clisp.org>
5692
5693         * modules/dprintf-posix-tests: New file.
5694         * tests/test-dprintf-posix.sh: New file.
5695         * tests/test-dprintf-posix.c: New file.
5696
5697         New modules 'dprintf', 'dprintf-posix'.
5698         * lib/stdio.in.h (dprintf): New declaration.
5699         * lib/dprintf.c: New file.
5700         * m4/dprintf.m4: New file.
5701         * m4/dprintf-posix.m4: New file.
5702         * modules/dprintf: New file.
5703         * modules/dprintf-posix: New file.
5704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
5705         HAVE_DPRINTF, REPLACE_DPRINTF.
5706         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
5707         HAVE_DPRINTF, REPLACE_DPRINTF.
5708         * doc/posix-functions/dprintf.texi: Mention the new modules.
5709
5710 2009-01-17  Bruno Haible  <bruno@clisp.org>
5711
5712         * modules/vdprintf-posix-tests: New file.
5713         * tests/test-vdprintf-posix.sh: New file.
5714         * tests/test-vdprintf-posix.c: New file.
5715
5716         New modules 'vdprintf', 'vdprintf-posix'.
5717         * lib/stdio.in.h (vdprintf): New declaration.
5718         * lib/vdprintf.c: New file.
5719         * m4/vdprintf.m4: New file.
5720         * m4/vdprintf-posix.m4: New file.
5721         * modules/vdprintf: New file.
5722         * modules/vdprintf-posix: New file.
5723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
5724         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5725         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
5726         HAVE_VDPRINTF, REPLACE_VDPRINTF.
5727         * doc/posix-functions/vdprintf.texi: Mention the new modules.
5728
5729 2009-01-17  Bruno Haible  <bruno@clisp.org>
5730
5731         Fix replacement of fopen on mingw.
5732         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
5733         mingw.
5734
5735 2009-01-17  Bruno Haible  <bruno@clisp.org>
5736
5737         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
5738         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
5739
5740 2009-01-17  Bruno Haible  <bruno@clisp.org>
5741
5742         Avoid test-fflush2.sh failure on mingw.
5743         * tests/test-fflush2.c: Include binary-io.h.
5744         (main): Put standard input into binary mode.
5745         * modules/fflush-tests (Depends-on): Add binary-io.
5746
5747 2009-01-17  Bruno Haible  <bruno@clisp.org>
5748
5749         * lib/wchar.in.h: In another particular situation, include only the
5750         system's <wchar.h> file.
5751         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
5752         Reported by Albert Chin-A-Young <china@thewrittenword.com>
5753         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
5754
5755 2009-01-17  Bruno Haible  <bruno@clisp.org>
5756
5757         Support for stripping executables in --enable-relocatable.
5758         * build-aux/install-reloc: Expect one more argument, or an environment
5759         variable RELOC_STRIP_PROG. If set, strip the destination program and
5760         its wrapper.
5761         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
5762         RELOC_STRIP_PROG.
5763         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
5764         to set RELOCATABLE_STRIP.
5765         * NEWS: Mention the new Makefile requirement.
5766
5767 2009-01-17  Bruno Haible  <bruno@clisp.org>
5768
5769         * build-aux/install-reloc: Remove debugging information left over by
5770         C compiler on MacOS X.
5771
5772 2009-01-17  Bruno Haible  <bruno@clisp.org>
5773
5774         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
5775         * lib/progreloc.c (find_executable): Fix type of pointer passed to
5776         _NSGetExecutablePath.
5777
5778 2009-01-16  Jim Meyering  <meyering@redhat.com>
5779
5780         strerror: avoid warnings about discarding "const"
5781         * lib/strerror.c (rpl_strerror): Instead of returning a const
5782         string from each and every "case", use a variable, and add a single
5783         cast after the switch.
5784
5785 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
5786
5787         * lib/arpa_inet.in.h: Add extern "C" block for C++.
5788
5789 2009-01-16  Bruno Haible  <bruno@clisp.org>
5790
5791         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
5792         array initializer syntax that also works in C++ mode.
5793         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5794
5795 2009-01-16  Jim Meyering  <meyering@redhat.com>
5796
5797         poll: suppress a warning
5798         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
5799         to ignore "...unsigned expression < 0 is always false" warnings.
5800
5801 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
5802
5803         poll: remove declarations of unused variables
5804         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
5805         sockbuf and optlen.
5806
5807 2009-01-15  Bruno Haible  <bruno@clisp.org>
5808
5809         Make fflush-after-ungetc POSIX compliant on BSD systems.
5810         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
5811         (clear_ungetc_buffer): Implement also for other systems.
5812         (rpl_fflush): On glibc systems, invoke
5813         clear_ungetc_buffer_preserving_position. Otherwise, invoke
5814         clear_ungetc_buffer after fetching the stream's position, not before.
5815
5816 2009-01-15  Bruno Haible  <bruno@clisp.org>
5817
5818         Make fflush-after-ungetc POSIX compliant on glibc systems.
5819         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
5820         after ungetc.
5821         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
5822         (rpl_fflush): On glibc systems, simply call the system's fflush
5823         function after clearing the ungetc buffer.
5824         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
5825         Instead, lseek only to the end of file, then use the system's fseeko
5826         for the rest. On glibc systems, reset the EOF indicator bit.
5827
5828 2009-01-15  Jim Meyering  <meyering@redhat.com>
5829
5830         openmp.m4: revert quote-adding change, for portability to older autoconf
5831         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
5832         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
5833         Simon Josefsson noticed the problem when using autoconf-2.61.
5834
5835 2009-01-15  Bruno Haible  <bruno@clisp.org>
5836
5837         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
5838         * tests/test-fflush2.c (ASSERT): Always fail.
5839         (main): Add two tests for fflush() after ungetc(), taking into account
5840         the Austin Group's clarification.
5841         Suggested by Eric Blake.
5842
5843 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
5844
5845         mktime.m4: remove K&R-style function prototypes
5846         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
5847         for the Sun C++ compiler.
5848
5849 2009-01-14  Bruno Haible  <bruno@clisp.org>
5850
5851         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
5852         while including <wchar.h>.
5853         * lib/wchar.in.h: In two particular situations on HP-UX, include only
5854         the system's <wchar.h> file.
5855         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5856
5857 2009-01-14  Bruno Haible  <bruno@clisp.org>
5858
5859         * m4/csharp.m4: Don't mention gettext on the serial number line.
5860         * m4/csharpexec.m4: Likewise.
5861         * m4/eaccess.m4: Likewise.
5862         * m4/javaexec.m4: Likewise.
5863         * m4/sig_atomic_t.m4: Likewise.
5864         * m4/tmpdir.m4: Likewise.
5865         * m4/intldir.m4: Bump gettext version.
5866         * m4/lib-ld.m4: Likewise.
5867
5868 2009-01-14  Bruno Haible  <bruno@clisp.org>
5869
5870         * lib/progname.c (set_program_name): Add more comments.
5871         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5872
5873 2009-01-14  Simon Josefsson  <simon@josefsson.org>
5874
5875         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
5876         were sys/stat.h does not define it.
5877
5878 2009-01-14  Jim Meyering  <meyering@redhat.com>
5879
5880         many *.m4 files: improve m4 quoting
5881         99% of this change was performed by running the following commands:
5882         git ls-files | grep '\.m4$' | xargs perl -pi \
5883           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
5884           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5885           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
5886           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
5887         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
5888         The remainder were to add Copyright dates, increment serial numbers,
5889         undo some changes in comments, exclude m4/intl.m4, and add quotes
5890         around the "1" in ",1" where the unusual spacing prohibited the
5891         above regexps from doing the job.  For more details, see
5892         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
5893         * m4/acl.m4: Modified.
5894         * m4/afs.m4: Likewise.
5895         * m4/alloca.m4: Likewise.
5896         * m4/argp.m4: Likewise.
5897         * m4/argz.m4: Likewise.
5898         * m4/atexit.m4: Likewise.
5899         * m4/bison-i18n.m4: Likewise.
5900         * m4/bison.m4: Likewise.
5901         * m4/byteswap.m4: Likewise.
5902         * m4/c-stack.m4: Likewise.
5903         * m4/c-strtod.m4: Likewise.
5904         * m4/calloc.m4: Likewise.
5905         * m4/canonicalize-lgpl.m4: Likewise.
5906         * m4/chown.m4: Likewise.
5907         * m4/clock_time.m4: Likewise.
5908         * m4/codeset.m4: Likewise.
5909         * m4/copy-file.m4: Likewise.
5910         * m4/csharp.m4: Likewise.
5911         * m4/csharpcomp.m4: Likewise.
5912         * m4/csharpexec.m4: Likewise.
5913         * m4/d-ino.m4: Likewise.
5914         * m4/d-type.m4: Likewise.
5915         * m4/dirfd.m4: Likewise.
5916         * m4/double-slash-root.m4: Likewise.
5917         * m4/eaccess.m4: Likewise.
5918         * m4/eealloc.m4: Likewise.
5919         * m4/environ.m4: Likewise.
5920         * m4/errno_h.m4: Likewise.
5921         * m4/euidaccess.m4: Likewise.
5922         * m4/execute.m4: Likewise.
5923         * m4/fatal-signal.m4: Likewise.
5924         * m4/fchdir.m4: Likewise.
5925         * m4/fcntl_h.m4: Likewise.
5926         * m4/fileblocks.m4: Likewise.
5927         * m4/filenamecat.m4: Likewise.
5928         * m4/findprog.m4: Likewise.
5929         * m4/flexmember.m4: Likewise.
5930         * m4/fnmatch.m4: Likewise.
5931         * m4/fopen.m4: Likewise.
5932         * m4/fpending.m4: Likewise.
5933         * m4/fprintf-posix.m4: Likewise.
5934         * m4/free.m4: Likewise.
5935         * m4/frexp.m4: Likewise.
5936         * m4/frexpl.m4: Likewise.
5937         * m4/fsusage.m4: Likewise.
5938         * m4/ftruncate.m4: Likewise.
5939         * m4/gc-camellia.m4: Likewise.
5940         * m4/gc-random.m4: Likewise.
5941         * m4/gc.m4: Likewise.
5942         * m4/getaddrinfo.m4: Likewise.
5943         * m4/getcwd-abort-bug.m4: Likewise.
5944         * m4/getcwd-path-max.m4: Likewise.
5945         * m4/getdate.m4: Likewise.
5946         * m4/getdomainname.m4: Likewise.
5947         * m4/getgroups.m4: Likewise.
5948         * m4/gethostname.m4: Likewise.
5949         * m4/gethrxtime.m4: Likewise.
5950         * m4/getline.m4: Likewise.
5951         * m4/getloadavg.m4: Likewise.
5952         * m4/getndelim2.m4: Likewise.
5953         * m4/getpass.m4: Likewise.
5954         * m4/gettext.m4: Likewise.
5955         * m4/gettime.m4: Likewise.
5956         * m4/gettimeofday.m4: Likewise.
5957         * m4/gnulib-common.m4: Likewise.
5958         * m4/group-member.m4: Likewise.
5959         * m4/host-os.m4: Likewise.
5960         * m4/iconv.m4: Likewise.
5961         * m4/iconv_open.m4: Likewise.
5962         * m4/inet_ntop.m4: Likewise.
5963         * m4/inet_pton.m4: Likewise.
5964         * m4/inline.m4: Likewise.
5965         * m4/intldir.m4: Likewise.
5966         * m4/intlmacosx.m4: Likewise.
5967         * m4/intmax.m4: Likewise.
5968         * m4/intmax_t.m4: Likewise.
5969         * m4/inttypes.m4: Likewise.
5970         * m4/inttypes_h.m4: Likewise.
5971         * m4/inttypes-pri.m4: Likewise.
5972         * m4/isapipe.m4: Likewise.
5973         * m4/isnand.m4: Likewise.
5974         * m4/isnanf.m4: Likewise.
5975         * m4/isnanl.m4: Likewise.
5976         * m4/javacomp.m4: Likewise.
5977         * m4/javaexec.m4: Likewise.
5978         * m4/jm-winsz1.m4: Likewise.
5979         * m4/jm-winsz2.m4: Likewise.
5980         * m4/lchown.m4: Likewise.
5981         * m4/lcmessage.m4: Likewise.
5982         * m4/ldexpl.m4: Likewise.
5983         * m4/lib-ld.m4: Likewise.
5984         * m4/lib-link.m4: Likewise.
5985         * m4/libsigsegv.m4: Likewise.
5986         * m4/link-follow.m4: Likewise.
5987         * m4/localcharset.m4: Likewise.
5988         * m4/locale-fr.m4: Likewise.
5989         * m4/locale-ja.m4: Likewise.
5990         * m4/locale-tr.m4: Likewise.
5991         * m4/locale-zh.m4: Likewise.
5992         * m4/lock.m4: Likewise.
5993         * m4/longlong.m4: Likewise.
5994         * m4/ls-mntd-fs.m4: Likewise.
5995         * m4/lstat.m4: Likewise.
5996         * m4/malloc.m4: Likewise.
5997         * m4/mathl.m4: Likewise.
5998         * m4/mbrtowc.m4: Likewise.
5999         * m4/mbstate_t.m4: Likewise.
6000         * m4/mbswidth.m4: Likewise.
6001         * m4/memchr.m4: Likewise.
6002         * m4/memcmp.m4: Likewise.
6003         * m4/memcpy.m4: Likewise.
6004         * m4/memmem.m4: Likewise.
6005         * m4/memmove.m4: Likewise.
6006         * m4/mempcpy.m4: Likewise.
6007         * m4/memrchr.m4: Likewise.
6008         * m4/memset.m4: Likewise.
6009         * m4/minmax.m4: Likewise.
6010         * m4/mkdir-slash.m4: Likewise.
6011         * m4/mkdtemp.m4: Likewise.
6012         * m4/mktime.m4: Likewise.
6013         * m4/mmap-anon.m4: Likewise.
6014         * m4/mountlist.m4: Likewise.
6015         * m4/nanosleep.m4: Likewise.
6016         * m4/nls.m4: Likewise.
6017         * m4/nocrash.m4: Likewise.
6018         * m4/open.m4: Likewise.
6019         * m4/openat.m4: Likewise.
6020         * m4/openmp.m4: Likewise.
6021         * m4/pathmax.m4: Likewise.
6022         * m4/perl.m4: Likewise.
6023         * m4/physmem.m4: Likewise.
6024         * m4/pipe.m4: Likewise.
6025         * m4/po.m4: Likewise.
6026         * m4/poll.m4: Likewise.
6027         * m4/posixtm.m4: Likewise.
6028         * m4/posixver.m4: Likewise.
6029         * m4/printf-frexp.m4: Likewise.
6030         * m4/printf-frexpl.m4: Likewise.
6031         * m4/printf-posix.m4: Likewise.
6032         * m4/printf-posix-rpl.m4: Likewise.
6033         * m4/printf.m4: Likewise.
6034         * m4/progtest.m4: Likewise.
6035         * m4/putenv.m4: Likewise.
6036         * m4/readline.m4: Likewise.
6037         * m4/readlink.m4: Likewise.
6038         * m4/readutmp.m4: Likewise.
6039         * m4/realloc.m4: Likewise.
6040         * m4/regex.m4: Likewise.
6041         * m4/relocatable.m4: Likewise.
6042         * m4/relocatable-lib.m4: Likewise.
6043         * m4/rename-dest-slash.m4: Likewise.
6044         * m4/rename.m4: Likewise.
6045         * m4/rmdir-errno.m4: Likewise.
6046         * m4/rmdir.m4: Likewise.
6047         * m4/roundf.m4: Likewise.
6048         * m4/roundl.m4: Likewise.
6049         * m4/rpmatch.m4: Likewise.
6050         * m4/save-cwd.m4: Likewise.
6051         * m4/selinux-selinux-h.m4: Likewise.
6052         * m4/setenv.m4: Likewise.
6053         * m4/settime.m4: Likewise.
6054         * m4/sig2str.m4: Likewise.
6055         * m4/sig_atomic_t.m4: Likewise.
6056         * m4/signalblocking.m4: Likewise.
6057         * m4/signbit.m4: Likewise.
6058         * m4/sigpipe.m4: Likewise.
6059         * m4/sockets.m4: Likewise.
6060         * m4/sockpfaf.m4: Likewise.
6061         * m4/st_dm_mode.m4: Likewise.
6062         * m4/stat-time.m4: Likewise.
6063         * m4/stdbool.m4: Likewise.
6064         * m4/stdint.m4: Likewise.
6065         * m4/stdint_h.m4: Likewise.
6066         * m4/stpcpy.m4: Likewise.
6067         * m4/stpncpy.m4: Likewise.
6068         * m4/strcase.m4: Likewise.
6069         * m4/strchrnul.m4: Likewise.
6070         * m4/strcspn.m4: Likewise.
6071         * m4/strdup.m4: Likewise.
6072         * m4/strftime.m4: Likewise.
6073         * m4/strndup.m4: Likewise.
6074         * m4/strnlen.m4: Likewise.
6075         * m4/strpbrk.m4: Likewise.
6076         * m4/strptime.m4: Likewise.
6077         * m4/strsep.m4: Likewise.
6078         * m4/strtod.m4: Likewise.
6079         * m4/strtoimax.m4: Likewise.
6080         * m4/strtok_r.m4: Likewise.
6081         * m4/strtol.m4: Likewise.
6082         * m4/strtoll.m4: Likewise.
6083         * m4/strtoul.m4: Likewise.
6084         * m4/strtoull.m4: Likewise.
6085         * m4/strtoumax.m4: Likewise.
6086         * m4/strverscmp.m4: Likewise.
6087         * m4/threadlib.m4: Likewise.
6088         * m4/timegm.m4: Likewise.
6089         * m4/tm_gmtoff.m4: Likewise.
6090         * m4/tmpdir.m4: Likewise.
6091         * m4/tmpfile.m4: Likewise.
6092         * m4/tzset.m4: Likewise.
6093         * m4/uintmax_t.m4: Likewise.
6094         * m4/unlinkdir.m4: Likewise.
6095         * m4/unlocked-io.m4: Likewise.
6096         * m4/uptime.m4: Likewise.
6097         * m4/userspec.m4: Likewise.
6098         * m4/utimbuf.m4: Likewise.
6099         * m4/utime.m4: Likewise.
6100         * m4/utimes-null.m4: Likewise.
6101         * m4/utimes.m4: Likewise.
6102         * m4/vararrays.m4: Likewise.
6103         * m4/vasnprintf.m4: Likewise.
6104         * m4/vfprintf-posix.m4: Likewise.
6105         * m4/vprintf-posix.m4: Likewise.
6106         * m4/wait-process.m4: Likewise.
6107         * m4/wchar_t.m4: Likewise.
6108         * m4/wint_t.m4: Likewise.
6109         * m4/write-any-file.m4: Likewise.
6110         * m4/yield.m4: Likewise.
6111
6112 2009-01-13  Bruno Haible  <bruno@clisp.org>
6113
6114         Avoid test-copy-file.sh failures when ACL support insufficient.
6115         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
6116         TESTS_ENVIRONMENT.
6117         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
6118         Reported by Jim Meyering.
6119
6120 2009-01-13  Bruno Haible  <bruno@clisp.org>
6121
6122         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
6123         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
6124         * modules/unistdio/u8-printf-parse (Files): Likewise.
6125         * modules/unistdio/u32-printf-parse (Files): Likewise.
6126         * modules/unistdio/ulc-printf-parse (Files): Likewise.
6127
6128 2009-01-13  Simon Josefsson  <simon@josefsson.org>
6129
6130         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
6131         and m4/inttypes_h.m4 too.
6132
6133 2009-01-12  Eric Blake  <ebb9@byu.net>
6134
6135         tests: IRIX 6.2 cc can't compile -0.0 into .data
6136         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
6137         rather than at compile-time.
6138         * tests/test-floorl.c (minus_zero): Likewise.
6139         * tests/test-frexpl.c (minus_zero): Likewise.
6140         * tests/test-isnan.c (minus_zerol): Likewise.
6141         * tests/test-isnanl.h (minus_zero): Likewise.
6142         * tests/test-ldexpl.c (minus_zero): Likewise.
6143         * tests/test-roundl.c (minus_zero): Likewise.
6144         * tests/test-signbit.c (minus_zerol): Likewise.
6145         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6146         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6147         * tests/test-truncl.c (minus_zero): Likewise.
6148         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6149         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6150         Reported by Tom G. Christensen and Nelson H. F. Beebe.
6151
6152 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6153
6154         regex: fix glibc bug 9697
6155         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
6156         handling.
6157
6158 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6159
6160         regex: fix glibc bug 697
6161         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
6162         being NULL also if there are no backreferences.
6163
6164 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6165
6166         regex: merge glibc changes
6167         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
6168         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
6169         re_string_skip_chars, re_string_reconstruct): Likewise.
6170         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
6171
6172 2009-01-07  Jim Meyering  <meyering@redhat.com>
6173
6174         poll: filter through cppi
6175         * lib/poll.c: Indent cpp directives to reflect nesting.
6176
6177 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
6178
6179         poll: don't return uninitialized
6180         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
6181
6182 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
6183
6184         avoid compile failure on AIX 6.1
6185         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
6186         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
6187
6188 2009-01-04  Jim Meyering  <meyering@redhat.com>
6189
6190         remove duplicate inclusion of <stdio.h>
6191         * tests/test-fprintf-posix.c: Likewise.
6192         * tests/test-printf-posix.c: Likewise.
6193         * tests/test-snprintf-posix.c: Likewise.
6194         * tests/test-sprintf-posix.c: Likewise.
6195         * tests/test-vasprintf-posix.c: Likewise.
6196         * tests/test-vfprintf-posix.c: Likewise.
6197         * tests/test-vprintf-posix.c: Likewise.
6198         * tests/test-vsnprintf-posix.c: Likewise.
6199         * tests/test-vsprintf-posix.c: Likewise.
6200
6201 2009-01-03  Jim Meyering  <meyering@redhat.com>
6202
6203         gnulib-tool: fix sed-based filtering
6204         * gnulib-tool (func_filter_filelist): Remove extra backslash
6205         in sed_fff_filter definition.
6206
6207 2009-01-02  Jim Meyering  <meyering@redhat.com>
6208
6209         strftime: avoid compilation failure on Solaris 2.6
6210         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
6211         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
6212         Don't #define mbrlen or mbsinit, since now they're guaranteed to
6213         be available.  Reported by Tom G. Christensen.  Details in
6214         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
6215
6216 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6217             Bruno Haible  <bruno@clisp.org>
6218
6219         Speed up gnulib-tool by doing more string processing through shell
6220         built-ins.
6221         * gnulib-tool (fast_func_append): New variable.
6222         (func_remove_prefix, func_remove_suffix): New functions.
6223         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
6224         (func_filter_filelist): New function.
6225         (func_get_dependencies): Use func_remove_suffix instead of sed.
6226         (func_get_automake_snippet): Use func_filter_filelist instead of a
6227         subshell and sed invocation.
6228
6229 2009-01-01  Bruno Haible  <bruno@clisp.org>
6230
6231         Fix a security bug.
6232         * gnulib-tool (func_import, import, update): Don't allow the characters
6233         '"', '$', '`', '\' in macro arguments that become part of commands that
6234         are evaluated.
6235
6236 2009-01-01  Bruno Haible  <bruno@clisp.org>
6237
6238         * gnulib-tool (func_reset_sigpipe): Add more comments.
6239
6240 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6241
6242         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
6243         func_emit_tests_Makefile_am, func_import): Abort loops early if we
6244         already know the answer.
6245
6246 2009-01-01  Jim Meyering  <meyering@redhat.com>
6247
6248         * lib/version-etc.c (version_etc_va): Update copyright year.
6249
6250 2008-12-30  Bruno Haible  <bruno@clisp.org>
6251
6252         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
6253         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
6254         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
6255
6256 2008-12-29  Eric Blake  <ebb9@byu.net>
6257
6258         multiarch: avoid autoconf AC_REQUIRE bug
6259         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
6260         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
6261         2.63 and older.
6262         Reported by Bruno Haible, and analyzed in
6263         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
6264
6265 2008-12-29  Bruno Haible  <bruno@clisp.org>
6266
6267         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
6268         files in subdirectories correctly.
6269         Reported by Ralf Wildenhues.
6270
6271 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6272
6273         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
6274         rather than 'join FILE -', for Solaris join.
6275
6276 2008-12-29  Bruno Haible  <bruno@clisp.org>
6277
6278         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
6279         quoting.
6280         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6281         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6282         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6283         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
6284         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6285         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6286         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6287         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6288         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6289         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6290         * m4/nls.m4 (AM_NLS): Likewise.
6291         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
6292         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6293         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6294         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6295         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6296         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6297         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
6298         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6299         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6300         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6301         * m4/xsize.m4 (gl_XSIZE): Likewise.
6302         Suggested by Jim Meyering.
6303
6304 2008-11-17  Bruce Korb  <bkorb@gnu.org>
6305
6306         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
6307         * lib/parse-duration.c: use a switch instead of cascading if's.
6308
6309 2008-12-29  Eric Blake  <ebb9@byu.net>
6310
6311         wchar.h: supply WEOF on Irix 5.3
6312         * lib/wchar.in.h (wint_t): Also supply WEOF.
6313         * lib/wctype.in.h (wint_t): Likewise.
6314         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
6315         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
6316         Reported by Tom G. Christensen.
6317
6318 2008-12-26  Bruno Haible  <bruno@clisp.org>
6319
6320         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
6321         i486, i586, i686.
6322
6323 2008-12-26  Bruno Haible  <bruno@clisp.org>
6324
6325         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
6326
6327 2008-12-26  Bruno Haible  <bruno@clisp.org>
6328
6329         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
6330         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
6331         not __STDC_CONSTANT_MACROS.
6332         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6333
6334 2008-12-25  Bruno Haible  <bruno@clisp.org>
6335
6336         Add support for universal builds to vasnprintf.
6337         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
6338         universal builds, guess no.
6339         * modules/vasnprintf-posix (Depends-on): Add multiarch.
6340         * modules/vasprintf-posix (Depends-on): Likewise.
6341         * modules/fprintf-posix (Depends-on): Likewise.
6342         * modules/vfprintf-posix (Depends-on): Likewise.
6343         * modules/snprintf-posix (Depends-on): Likewise.
6344         * modules/vsnprintf-posix (Depends-on): Likewise.
6345         * modules/sprintf-posix (Depends-on): Likewise.
6346         * modules/vsprintf-posix (Depends-on): Likewise.
6347         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6348         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6349         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6350         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6351         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6352         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6353         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6354
6355         Add support for universal builds to <inttypes.h>.
6356         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6357         _SCNu64_PREFIX): In Apple
6358         universal builds, define directly, using _LP64.
6359         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
6360         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
6361         * modules/inttypes (Depends-on): Add multiarch.
6362         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6363
6364         Add support for universal builds to <stdint.h>.
6365         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
6366         universal builds, define directly, using _LP64.
6367         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
6368         Apple universal builds, don't test for the size and suffix of ptrdiff_t
6369         and size_t.
6370         * modules/stdint (Depends-on): Add multiarch.
6371         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6372
6373         New module 'multiarch'.
6374         * modules/multiarch: New file.
6375         * m4/multiarch.m4: New file.
6376
6377 2008-12-25  Bruno Haible  <bruno@clisp.org>
6378
6379         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
6380
6381 2008-12-25  Bruno Haible  <bruno@clisp.org>
6382
6383         * modules/btowc (License): Relicense under LGPLv2+.
6384         * modules/mbsinit (License): Likewise.
6385         * modules/mbrtowc (License): Likewise.
6386         * modules/wcrtomb (License): Likewise.
6387         * modules/streq (License): Likewise.
6388         Reported by David Lutterkort <lutter@redhat.com>.
6389
6390 2008-12-23  Bruno Haible  <bruno@clisp.org>
6391
6392         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
6393
6394 2008-12-23  Bruno Haible  <bruno@clisp.org>
6395
6396         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
6397         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
6398         GETADDRINFO_LIB, not in LIBS.
6399         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
6400         * modules/canon-host (Link): Likewise.
6401         * NEWS: Mention the change.
6402         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
6403         GETADDRINFO_LIB.
6404
6405 2008-12-22  Bruno Haible  <bruno@clisp.org>
6406
6407         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
6408         * doc/posix-functions/iswalpha_l.texi: Likewise.
6409         * doc/posix-functions/iswblank_l.texi: Likewise.
6410         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6411         * doc/posix-functions/iswctype_l.texi: Likewise.
6412         * doc/posix-functions/iswdigit_l.texi: Likewise.
6413         * doc/posix-functions/iswgraph_l.texi: Likewise.
6414         * doc/posix-functions/iswlower_l.texi: Likewise.
6415         * doc/posix-functions/iswprint_l.texi: Likewise.
6416         * doc/posix-functions/iswpunct_l.texi: Likewise.
6417         * doc/posix-functions/iswspace_l.texi: Likewise.
6418         * doc/posix-functions/iswupper_l.texi: Likewise.
6419         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6420         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
6421         * doc/posix-functions/open_wmemstream.texi: Likewise.
6422         * doc/posix-functions/swscanf.texi: Likewise.
6423         * doc/posix-functions/towctrans_l.texi: Likewise.
6424         * doc/posix-functions/towlower.texi: Likewise.
6425         * doc/posix-functions/towlower_l.texi: Likewise.
6426         * doc/posix-functions/towupper.texi: Likewise.
6427         * doc/posix-functions/towupper_l.texi: Likewise.
6428         * doc/posix-functions/vfwprintf.texi: Likewise.
6429         * doc/posix-functions/vfwscanf.texi: Likewise.
6430         * doc/posix-functions/vswscanf.texi: Likewise.
6431         * doc/posix-functions/vwprintf.texi: Likewise.
6432         * doc/posix-functions/vwscanf.texi: Likewise.
6433         * doc/posix-functions/wcpcpy.texi: Likewise.
6434         * doc/posix-functions/wcpncpy.texi: Likewise.
6435         * doc/posix-functions/wcscasecmp.texi: Likewise.
6436         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
6437         * doc/posix-functions/wcscoll_l.texi: Likewise.
6438         * doc/posix-functions/wcsdup.texi: Likewise.
6439         * doc/posix-functions/wcsncasecmp.texi: Likewise.
6440         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
6441         * doc/posix-functions/wcsnlen.texi: Likewise.
6442         * doc/posix-functions/wcsnrtombs.texi: Likewise.
6443         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6444         * doc/posix-functions/wctrans_l.texi: Likewise.
6445         * doc/posix-functions/wctype_l.texi: Likewise.
6446         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
6447         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
6448         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
6449         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
6450         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
6451         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
6452         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
6453         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
6454         * doc/glibc-functions/wcschrnul.texi: Likewise.
6455         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6456         * doc/glibc-functions/wcstod_l.texi: Likewise.
6457         * doc/glibc-functions/wcstof_l.texi: Likewise.
6458         * doc/glibc-functions/wcstol_l.texi: Likewise.
6459         * doc/glibc-functions/wcstold_l.texi: Likewise.
6460         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6461         * doc/glibc-functions/wcstoq.texi: Likewise.
6462         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6463         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6464         * doc/glibc-functions/wcstouq.texi: Likewise.
6465         * doc/glibc-functions/wmempcpy.texi: Likewise.
6466
6467 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
6468             Eric Blake  <ebb9@byu.net>
6469             Paolo Bonzini  <bonzini@gnu.org>
6470             Bruno Haible  <bruno@clisp.org>
6471
6472         Make c-stack work on Haiku.
6473         * lib/c-stack.c (SA_ONSTACK): Define fallback.
6474         (c_stack_action): Use SA_ONSTACK flag.
6475
6476 2008-12-22  Bruno Haible  <bruno@clisp.org>
6477
6478         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
6479
6480 2008-12-22  Bruno Haible  <bruno@clisp.org>
6481
6482         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
6483         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
6484         being overridden.
6485         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
6486         New macros.
6487         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
6488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
6489         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
6490         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
6491
6492 2008-12-22  Bruno Haible  <bruno@clisp.org>
6493
6494         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
6495         from test code.
6496
6497 2008-12-22  Eric Blake  <ebb9@byu.net>
6498
6499         Avoid gcc warnings on cygwin.
6500         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
6501         Avoid unused variable.
6502         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
6503         Likewise.
6504
6505 2008-12-22  Bruno Haible  <bruno@clisp.org>
6506
6507         Remove HAVE_MBRTOWC conditionals.
6508         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
6509         (mbscasecmp): Assume mbrtowc function.
6510         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
6511         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
6512         * lib/mbschr.c: Include mbuiter.h unconditionally.
6513         (mbschr): Assume mbrtowc function.
6514         * lib/mbscspn.c: Include mbuiter.h unconditionally.
6515         (mbscspn): Assume mbrtowc function.
6516         * lib/mbslen.c: Include mbuiter.h unconditionally.
6517         (mbslen): Assume mbrtowc function.
6518         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
6519         (mbsncasecmp): Assume mbrtowc function.
6520         * lib/mbsnlen.c: Include mbiter.h unconditionally.
6521         (mbsnlen): Assume mbrtowc function.
6522         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
6523         (mbspbrk): Assume mbrtowc function.
6524         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
6525         (mbspcasecmp): Assume mbrtowc function.
6526         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
6527         (mbsrchr): Assume mbrtowc function.
6528         * lib/mbssep.c: Include mbuiter.h unconditionally.
6529         (mbssep): Assume mbrtowc function.
6530         * lib/mbsspn.c: Include mbuiter.h unconditionally.
6531         (mbsspn): Assume mbrtowc function.
6532         * lib/mbsstr.c: Include mbuiter.h unconditionally.
6533         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
6534         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
6535         (mbstok_r): Assume mbrtowc function.
6536         * lib/propername.c: Include mbuiter.h unconditionally.
6537         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
6538         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
6539         (trim2): Assume mbrtowc function.
6540         * lib/mbswidth.c (mbsinit): Remove fallback definition.
6541         (mbsnwidth): Assume mbrtowc function.
6542         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
6543         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
6544         fallback definitions.
6545         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
6546
6547 2008-12-22  Bruno Haible  <bruno@clisp.org>
6548
6549         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
6550
6551 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
6552
6553         * modules/regex: Request emulations for the mb*/wc* functions we need.
6554         * m4/regex.m4: Don't look for those functions here.
6555         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
6556
6557 2008-12-22  Bruno Haible  <bruno@clisp.org>
6558
6559         * modules/fnmatch (Depends-on): Remove duplicated dependency.
6560
6561 2008-12-21  Bruno Haible  <bruno@clisp.org>
6562
6563         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
6564         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
6565         (Include): Remove conditionalization.
6566         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
6567         (Include): Remove conditionalization.
6568         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
6569         (Include): Remove conditionalization.
6570         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
6571         * m4/mbfile.m4 (gl_MBFILE): Likewise.
6572         * NEWS: Mention the change.
6573         Reported by Alan Hourihane <alanh@fairlite.co.uk>
6574         via Sergey Poznyakoff <gray@gnu.org.ua>.
6575
6576 2008-12-21  Bruno Haible  <bruno@clisp.org>
6577
6578         * MODULES.html.sh (Extended multibyte and wide character utilities
6579         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
6580         wcrtomb, wcsrtombs.
6581         (Support for systems lacking POSIX:2008): Add accept, bind, close,
6582         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
6583         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
6584         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
6585
6586 2008-12-21  Bruno Haible  <bruno@clisp.org>
6587
6588         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
6589
6590 2008-12-21  Bruno Haible  <bruno@clisp.org>
6591
6592         * modules/wcsnrtombs-tests: New file.
6593         * tests/test-wcsnrtombs1.sh: New file.
6594         * tests/test-wcsnrtombs2.sh: New file.
6595         * tests/test-wcsnrtombs3.sh: New file.
6596         * tests/test-wcsnrtombs4.sh: New file.
6597         * tests/test-wcsnrtombs.c: New file.
6598
6599         New module 'wcsnrtombs'.
6600         * lib/wchar.in.h (wcsnrtombs): New declaration.
6601         * lib/wcsnrtombs.c: New file.
6602         * lib/wcsrtombs-state.c: New file.
6603         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
6604         (internal_state): Remove variable.
6605         * m4/wcsnrtombs.m4: New file.
6606         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
6607         compilation units.
6608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
6609         HAVE_WCSNRTOMBS.
6610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
6611         HAVE_WCSNRTOMBS.
6612         * modules/wcsnrtombs: New file.
6613         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
6614         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6615
6616 2008-12-21  Bruno Haible  <bruno@clisp.org>
6617
6618         * modules/wcsrtombs-tests: New file.
6619         * tests/test-wcsrtombs1.sh: New file.
6620         * tests/test-wcsrtombs2.sh: New file.
6621         * tests/test-wcsrtombs3.sh: New file.
6622         * tests/test-wcsrtombs4.sh: New file.
6623         * tests/test-wcsrtombs.c: New file.
6624
6625         New module 'wcsrtombs'.
6626         * lib/wchar.in.h (wcsrtombs): New declaration.
6627         * lib/wcsrtombs.c: New file.
6628         * m4/wcsrtombs.m4: New file.
6629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
6630         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
6631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
6632         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
6633         * modules/wcsrtombs: New file.
6634         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
6635         bugs.
6636
6637 2008-12-21  Bruno Haible  <bruno@clisp.org>
6638
6639         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
6640         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
6641         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
6642         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
6643         if not correct.
6644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
6645         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
6646         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6647         m4/locale-zh.m4, m4/codeset.m4.
6648         * doc/posix-functions/wcrtomb.texi: Document the bug.
6649
6650 2008-12-21  Bruno Haible  <bruno@clisp.org>
6651
6652         Work around a btowc() bug on IRIX 6.5.
6653         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
6654         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
6655         REPLACE_WTOBC if not.
6656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
6657         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
6658         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
6659
6660 2008-12-21  Bruno Haible  <bruno@clisp.org>
6661
6662         * modules/wcrtomb-tests: New file.
6663         * tests/test-wcrtomb.sh: New file.
6664         * tests/test-wcrtomb.c: New file.
6665
6666         New module 'wcrtomb'.
6667         * lib/wchar.in.h (wcrtomb): New declaration.
6668         * lib/wcrtomb.c: New file.
6669         * m4/wcrtomb.m4: New file.
6670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
6671         HAVE_WCRTOMB.
6672         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
6673         HAVE_WCRTOMB.
6674         * modules/wcrtomb: New file.
6675         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6676
6677 2008-12-21  Bruno Haible  <bruno@clisp.org>
6678
6679         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
6680         * modules/mbsrtowcs (Files): Likewise.
6681         * modules/wctob (Files): Likewise.
6682         * modules/c-strcase-tests (Files): Likewise.
6683         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6684         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6685         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6686         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6687         * modules/vasnprintf-posix-tests (Files): Likewise.
6688
6689 2008-12-21  William Pursell  <bill.pursell@gmail.com>
6690
6691         gitlog-to-changelog: pass all command-line arguments to git-log
6692         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
6693         it is sometimes convenient to filter the commits in various ways.
6694         gitlog-to-changelog only allows --since to specify a start date,
6695         but git-log itself supports many other filtering mechanisms.
6696         At the moment, I want to filter by branch name.  Rather than
6697         adding a --branch option to gitlog-to-changelog, it seems more
6698         flexible to simply pass all options directly to git-log and let
6699         git do the work.  Notice that this effectively makes --since a
6700         redundant option for gitlog-to-changelog, but removing it would
6701         require current usage to change since calls would then require
6702         an additional '--'.
6703
6704 2008-12-21  Bruno Haible  <bruno@clisp.org>
6705
6706         * modules/mbsnrtowcs-tests: New file.
6707         * tests/test-mbsnrtowcs1.sh: New file.
6708         * tests/test-mbsnrtowcs2.sh: New file.
6709         * tests/test-mbsnrtowcs3.sh: New file.
6710         * tests/test-mbsnrtowcs4.sh: New file.
6711         * tests/test-mbsnrtowcs.c: New file.
6712
6713         New module 'mbsnrtowcs'.
6714         * lib/wchar.in.h (mbsnrtowcs): New declaration.
6715         * lib/mbsnrtowcs.c: New file.
6716         * lib/mbsrtowcs-state.c: New file.
6717         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
6718         (internal_state): Remove variable.
6719         * m4/mbsnrtowcs.m4: New file.
6720         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
6721         compilation units.
6722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
6723         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6724         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
6725         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
6726         * modules/mbsnrtowcs: New file.
6727         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
6728         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
6729         portability problem.
6730
6731 2008-12-21  Bruno Haible  <bruno@clisp.org>
6732
6733         Work around mbsrtowcs bug.
6734         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
6735         (gl_FUNC_MBSRTOWCS): Invoke it.
6736         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6737         m4/locale-zh.m4.
6738         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
6739
6740 2008-12-21  Bruno Haible  <bruno@clisp.org>
6741
6742         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
6743
6744 2008-12-21  Bruno Haible  <bruno@clisp.org>
6745
6746         Update doc for AIX.
6747         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
6748         16-bit wchar_t type.
6749         * doc/posix-functions/btowc.texi: Likewise.
6750         * doc/posix-functions/fgetwc.texi: Likewise.
6751         * doc/posix-functions/fgetws.texi: Likewise.
6752         * doc/posix-functions/fputwc.texi: Likewise.
6753         * doc/posix-functions/fputws.texi: Likewise.
6754         * doc/posix-functions/fwide.texi: Likewise.
6755         * doc/posix-functions/fwprintf.texi: Likewise.
6756         * doc/posix-functions/fwscanf.texi: Likewise.
6757         * doc/posix-functions/getwchar.texi: Likewise.
6758         * doc/posix-functions/getwc.texi: Likewise.
6759         * doc/posix-functions/iswalnum.texi: Likewise.
6760         * doc/posix-functions/iswalpha.texi: Likewise.
6761         * doc/posix-functions/iswblank.texi: Likewise.
6762         * doc/posix-functions/iswcntrl.texi: Likewise.
6763         * doc/posix-functions/iswctype.texi: Likewise.
6764         * doc/posix-functions/iswdigit.texi: Likewise.
6765         * doc/posix-functions/iswgraph.texi: Likewise.
6766         * doc/posix-functions/iswlower.texi: Likewise.
6767         * doc/posix-functions/iswprint.texi: Likewise.
6768         * doc/posix-functions/iswpunct.texi: Likewise.
6769         * doc/posix-functions/iswspace.texi: Likewise.
6770         * doc/posix-functions/iswupper.texi: Likewise.
6771         * doc/posix-functions/iswxdigit.texi: Likewise.
6772         * doc/posix-functions/mbrtowc.texi: Likewise.
6773         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6774         * doc/posix-functions/mbstowcs.texi: Likewise.
6775         * doc/posix-functions/mbtowc.texi: Likewise.
6776         * doc/posix-functions/putwchar.texi: Likewise.
6777         * doc/posix-functions/putwc.texi: Likewise.
6778         * doc/posix-functions/swprintf.texi: Likewise.
6779         * doc/posix-functions/tolower.texi: Likewise.
6780         * doc/posix-functions/toupper.texi: Likewise.
6781         * doc/posix-functions/towctrans.texi: Likewise.
6782         * doc/posix-functions/ungetwc.texi: Likewise.
6783         * doc/posix-functions/vswprintf.texi: Likewise.
6784         * doc/posix-functions/wcrtomb.texi: Likewise.
6785         * doc/posix-functions/wcscat.texi: Likewise.
6786         * doc/posix-functions/wcschr.texi: Likewise.
6787         * doc/posix-functions/wcscmp.texi: Likewise.
6788         * doc/posix-functions/wcscoll.texi: Likewise.
6789         * doc/posix-functions/wcscpy.texi: Likewise.
6790         * doc/posix-functions/wcscspn.texi: Likewise.
6791         * doc/posix-functions/wcsftime.texi: Likewise.
6792         * doc/posix-functions/wcslen.texi: Likewise.
6793         * doc/posix-functions/wcsncat.texi: Likewise.
6794         * doc/posix-functions/wcsncmp.texi: Likewise.
6795         * doc/posix-functions/wcsncpy.texi: Likewise.
6796         * doc/posix-functions/wcspbrk.texi: Likewise.
6797         * doc/posix-functions/wcsrchr.texi: Likewise.
6798         * doc/posix-functions/wcsrtombs.texi: Likewise.
6799         * doc/posix-functions/wcsspn.texi: Likewise.
6800         * doc/posix-functions/wcsstr.texi: Likewise.
6801         * doc/posix-functions/wcstod.texi: Likewise.
6802         * doc/posix-functions/wcstof.texi: Likewise.
6803         * doc/posix-functions/wcstoimax.texi: Likewise.
6804         * doc/posix-functions/wcstok.texi: Likewise.
6805         * doc/posix-functions/wcstold.texi: Likewise.
6806         * doc/posix-functions/wcstoll.texi: Likewise.
6807         * doc/posix-functions/wcstol.texi: Likewise.
6808         * doc/posix-functions/wcstombs.texi: Likewise.
6809         * doc/posix-functions/wcstoull.texi: Likewise.
6810         * doc/posix-functions/wcstoul.texi: Likewise.
6811         * doc/posix-functions/wcstoumax.texi: Likewise.
6812         * doc/posix-functions/wcswidth.texi: Likewise.
6813         * doc/posix-functions/wcsxfrm.texi: Likewise.
6814         * doc/posix-functions/wctob.texi: Likewise.
6815         * doc/posix-functions/wctomb.texi: Likewise.
6816         * doc/posix-functions/wctrans.texi: Likewise.
6817         * doc/posix-functions/wctype.texi: Likewise.
6818         * doc/posix-functions/wcwidth.texi: Likewise.
6819         * doc/posix-functions/wmemchr.texi: Likewise.
6820         * doc/posix-functions/wmemcmp.texi: Likewise.
6821         * doc/posix-functions/wmemcpy.texi: Likewise.
6822         * doc/posix-functions/wmemmove.texi: Likewise.
6823         * doc/posix-functions/wmemset.texi: Likewise.
6824         * doc/posix-functions/wprintf.texi: Likewise.
6825         * doc/posix-functions/wscanf.texi: Likewise.
6826
6827 2008-12-21  Bruno Haible  <bruno@clisp.org>
6828
6829         Update doc for HP-UX 11.11.
6830         * doc/posix-functions/btowc.texi: Clarify that the function is missing
6831         in HP-UX version 11.00, not in all versions of HP-UX 11.
6832         * doc/posix-functions/fwide.texi: Likewise.
6833         * doc/posix-functions/fwprintf.texi: Likewise.
6834         * doc/posix-functions/fwscanf.texi: Likewise.
6835         * doc/posix-functions/inet_ntop.texi: Likewise.
6836         * doc/posix-functions/inet_pton.texi: Likewise.
6837         * doc/posix-functions/mbrlen.texi: Likewise.
6838         * doc/posix-functions/mbrtowc.texi: Likewise.
6839         * doc/posix-functions/mbsinit.texi: Likewise.
6840         * doc/posix-functions/mbsrtowcs.texi: Likewise.
6841         * doc/posix-functions/swprintf.texi: Likewise.
6842         * doc/posix-functions/swscanf.texi: Likewise.
6843         * doc/posix-functions/towctrans.texi: Likewise.
6844         * doc/posix-functions/vfwprintf.texi: Likewise.
6845         * doc/posix-functions/vswprintf.texi: Likewise.
6846         * doc/posix-functions/vwprintf.texi: Likewise.
6847         * doc/posix-functions/wcrtomb.texi: Likewise.
6848         * doc/posix-functions/wcsrtombs.texi: Likewise.
6849         * doc/posix-functions/wcsstr.texi: Likewise.
6850         * doc/posix-functions/wctob.texi: Likewise.
6851         * doc/posix-functions/wctrans.texi: Likewise.
6852         * doc/posix-functions/wmemchr.texi: Likewise.
6853         * doc/posix-functions/wmemcmp.texi: Likewise.
6854         * doc/posix-functions/wmemcpy.texi: Likewise.
6855         * doc/posix-functions/wmemmove.texi: Likewise.
6856         * doc/posix-functions/wmemset.texi: Likewise.
6857         * doc/posix-functions/wprintf.texi: Likewise.
6858         * doc/posix-functions/wscanf.texi: Likewise.
6859
6860 2008-12-21  Bruno Haible  <bruno@clisp.org>
6861
6862         Work around a portability problem.
6863         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
6864         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
6865
6866 2008-12-20  Bruno Haible  <bruno@clisp.org>
6867
6868         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
6869         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
6870         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
6871         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
6872         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
6873
6874         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
6875         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
6876         set.
6877         (GNULIB_defined_mbstate_t): New macro.
6878         (mbsinit): Redefine if REPLACE_MBSINIT is set.
6879         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
6880         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
6881         reuses the system's mbrtowc function but works around the bugs.
6882         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
6883         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
6884         macros.
6885         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
6886         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
6887         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
6888         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
6889         REPLACE_MBSINIT if mbsinit needs to be overridden.
6890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
6891         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6892         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
6893         REPLACE_MBSINIT, REPLACE_MBRTOWC.
6894         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
6895         m4/locale-zh.m4.
6896         (Depends): Add mbsinit.
6897         * modules/mbsinit (Depends): Add mbrtowc.
6898         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
6899
6900 2008-12-20  Bruno Haible  <bruno@clisp.org>
6901
6902         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
6903         so that there are no conversion errors on AIX.
6904         * tests/test-mbsrtowcs.c (main): LIkewise.
6905
6906 2008-12-20  Bruno Haible  <bruno@clisp.org>
6907
6908         Work around wctob bug on Solaris <= 9.
6909         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
6910         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
6911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
6912         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
6913         * modules/wctob (Files): Add m4/locale-fr.m4.
6914         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
6915
6916 2008-12-20  Bruno Haible  <bruno@clisp.org>
6917
6918         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
6919         /dev/null.
6920         * tests/test-select-in.sh: Likewise.
6921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6922
6923 2008-12-20  Bruno Haible  <bruno@clisp.org>
6924
6925         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
6926         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
6927         Cygwin 1.5.x.
6928
6929 2008-12-20  Bruno Haible  <bruno@clisp.org>
6930
6931         Ensure mbstate_t is defined on HP-UX 11.11.
6932         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
6933         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
6934         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
6935         AC_USE_SYSTEM_EXTENSIONS.
6936         * modules/fnmatch (Depends-on): Add extensions.
6937         * modules/mbrlen (Depends-on): Likewise.
6938         * modules/mbrtowc (Depends-on): Likewise.
6939         * modules/mbsinit (Depends-on): Likewise.
6940         * modules/mbsrtowcs (Depends-on): Likewise.
6941         * modules/mbswidth (Depends-on): Likewise.
6942         * modules/quotearg (Depends-on): Likewise.
6943         * modules/strftime (Depends-on): Likewise.
6944
6945 2008-12-20  Bruno Haible  <bruno@clisp.org>
6946
6947         Ensure wctob is declared on IRIX 6.5.
6948         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
6949         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
6950         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
6951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
6952         of HAVE_WCTOB.
6953         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
6954         HAVE_WCTOB.
6955         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
6956
6957 2008-12-19  Bruno Haible  <bruno@clisp.org>
6958
6959         * modules/mbsrtowcs-tests: New file.
6960         * tests/test-mbsrtowcs1.sh: New file.
6961         * tests/test-mbsrtowcs2.sh: New file.
6962         * tests/test-mbsrtowcs3.sh: New file.
6963         * tests/test-mbsrtowcs4.sh: New file.
6964         * tests/test-mbsrtowcs.c: New file.
6965
6966         New module 'mbsrtowcs'.
6967         * lib/wchar.in.h (mbsrtowcs): New declaration.
6968         * lib/mbsrtowcs.c: New file.
6969         * m4/mbsrtowcs.m4: New file.
6970         * modules/mbsrtowcs: New file.
6971         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
6972         HAVE_MBSRTOWCS.
6973         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
6974         HAVE_MBSRTOWCS.
6975         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
6976
6977 2008-12-19  Bruno Haible  <bruno@clisp.org>
6978
6979         New module 'mbrlen'.
6980         * lib/wchar.in.h (mbrlen): New declaration.
6981         * lib/mbrlen.c: New file.
6982         * m4/mbrlen.m4: New file.
6983         * modules/mbrlen: New file.
6984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
6985         HAVE_MBRLEN.
6986         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
6987         HAVE_MBRLEN.
6988         * doc/posix-functions/mbrlen.texi: Document the new module.
6989
6990 2008-12-19  Bruno Haible  <bruno@clisp.org>
6991
6992         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
6993         * modules/mbrtowc (Depends-on): Add verify.
6994         Suggested by Paul Eggert.
6995
6996 2008-12-18  Bruno Haible  <bruno@clisp.org>
6997
6998         * modules/mbsinit-tests: New file.
6999         * tests/test-mbsinit.sh: New file.
7000         * tests/test-mbsinit.c: New file.
7001
7002 2008-12-18  Bruno Haible  <bruno@clisp.org>
7003
7004         * modules/mbrtowc-tests: New file.
7005         * tests/test-mbrtowc1.sh: New file.
7006         * tests/test-mbrtowc2.sh: New file.
7007         * tests/test-mbrtowc3.sh: New file.
7008         * tests/test-mbrtowc4.sh: New file.
7009         * tests/test-mbrtowc.c: New file.
7010
7011         New module 'mbrtowc'.
7012         * lib/wchar.in.h (mbstate_t): Override when the system does not have
7013         mbsinit and mbrtowc.
7014         (mbrtowc): New declaration.
7015         * lib/mbrtowc.c: New file.
7016         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
7017         * modules/mbrtowc: New file.
7018         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
7019         HAVE_MBRTOWC.
7020         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
7021         HAVE_MBRTOWC.
7022         * doc/posix-functions/mbrtowc.texi: Document the new module.
7023
7024 2008-12-18  Bruno Haible  <bruno@clisp.org>
7025
7026         New module 'wctob'.
7027         * lib/wchar.in.h (wctob): New declaration.
7028         * lib/wctob.c: New file.
7029         * m4/wctob.m4: New file.
7030         * modules/wctob: New file.
7031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
7032         HAVE_WCTOB.
7033         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
7034         * doc/posix-functions/wctob.texi: Document the new module.
7035
7036 2008-12-18  Bruno Haible  <bruno@clisp.org>
7037
7038         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
7039         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
7040
7041 2008-12-18  Simon Josefsson  <simon@josefsson.org>
7042
7043         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
7044         G. Christensen" <tgc@jupiterrise.com>.
7045
7046         * lib/flock.c: Need to include errno.h.  Reported by "Tom
7047         G. Christensen" <tgc@jupiterrise.com>.
7048
7049         * lib/flock.c: Need to include string.h.  Reported by "Tom
7050         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
7051         <ebb9@byu.net>.
7052
7053 2008-12-18  Bruno Haible  <bruno@clisp.org>
7054
7055         * m4/locale-ja.m4: New file, from GNU gettext.
7056
7057 2008-12-17  Bruno Haible  <bruno@clisp.org>
7058
7059         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
7060         Suggested by Eric Blake.
7061
7062 2008-12-17  Bruno Haible  <bruno@clisp.org>
7063
7064         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
7065
7066 2008-12-17  Bruno Haible  <bruno@clisp.org>
7067
7068         * lib/mbsinit.c: Include verify.h. Verify an assumption.
7069         * modules/mbsinit (Depends-on): Add verify.
7070         Suggested by Paul Eggert.
7071
7072 2008-12-17  Bruno Haible  <bruno@clisp.org>
7073
7074         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
7075         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
7076         gl_FUNC_MBRTOWC.
7077         * m4/mbiter.m4 (gl_MBITER): LIkewise.
7078         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
7079         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
7080         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
7081         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
7082         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
7083         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
7084         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
7085         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
7086         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
7087         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
7088         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
7089         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
7090         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
7091         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
7092         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7093         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
7094         * modules/trim (configure.ac): Likewise.
7095
7096 2008-12-17  Bruno Haible  <bruno@clisp.org>
7097
7098         * modules/btowc-tests: New file.
7099         * tests/test-btowc1.sh: New file.
7100         * tests/test-btowc2.sh: New file.
7101         * tests/test-btowc.c: New file.
7102
7103         New module 'btowc'.
7104         * lib/wchar.in.h (btowc): New declaration.
7105         * lib/btowc.c: New file.
7106         * m4/btowc.m4: New file.
7107         * modules/btowc: New file.
7108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
7109         HAVE_BTOWC.
7110         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
7111         * doc/posix-functions/btowc.texi: Document the new module.
7112
7113 2008-12-17  Bruno Haible  <bruno@clisp.org>
7114
7115         New module 'mbsinit'.
7116         * lib/wchar.in.h (mbsinit): New declaration.
7117         * lib/mbsinit.c: New file.
7118         * m4/mbsinit.m4: New file.
7119         * modules/mbsinit: New file.
7120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
7121         HAVE_MBSINIT.
7122         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
7123         HAVE_MBSINIT.
7124         * doc/posix-functions/mbsinit.texi: Document the new module.
7125
7126 2008-12-16  Bruno Haible  <bruno@clisp.org>
7127
7128         * lib/unistd.in.h: Add comment.
7129         * tests/test-environ.c: Don't include <stdlib.h>.
7130
7131 2008-12-16  Bruno Haible  <bruno@clisp.org>
7132
7133         * lib/parse-duration.h (parse_duration): Document return value
7134         convention.
7135         * lib/parse-duration.c: Include specification header first. Add
7136         comments.
7137         (_): Remove macro.
7138         (parse_year_month_day, parse_hour_minute_second): Move side effects
7139         outside of strchr call.
7140         (parse_non_iso8601): Move side effects outside of isspace call.
7141         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
7142         call.
7143
7144 2008-12-16  Bruno Haible  <bruno@clisp.org>
7145
7146         * tests/test-parse-duration.sh: Produce no output when the test
7147         succeeds.
7148
7149 2008-12-16  Bruno Haible  <bruno@clisp.org>
7150
7151         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
7152         expressions.
7153
7154 2008-12-15  Bruno Haible  <bruno@clisp.org>
7155
7156         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
7157         * doc/glibc-functions/flistxattr.texi: Likewise.
7158         * doc/glibc-functions/fopencookie.texi: Likewise.
7159         * doc/glibc-functions/fremovexattr.texi: Likewise.
7160         * doc/glibc-functions/fsetxattr.texi: Likewise.
7161         * doc/glibc-functions/getxattr.texi: Likewise.
7162         * doc/glibc-functions/lgetxattr.texi: Likewise.
7163         * doc/glibc-functions/listxattr.texi: Likewise.
7164         * doc/glibc-functions/llistxattr.texi: Likewise.
7165         * doc/glibc-functions/lremovexattr.texi: Likewise.
7166         * doc/glibc-functions/lsetxattr.texi: Likewise.
7167         * doc/glibc-functions/removexattr.texi: Likewise.
7168         * doc/glibc-functions/setxattr.texi: Likewise.
7169         * doc/posix-functions/open_memstream.texi: Likewise.
7170
7171 2008-12-15  Eric Blake  <ebb9@byu.net>
7172
7173         Update doc for cygwin 1.7.
7174         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
7175         functions.
7176         * doc/posix-functions/fchmodat.texi: Likewise.
7177         * doc/posix-functions/fchownat.texi: Likewise.
7178         * doc/posix-functions/fdopendir.texi: Likewise.
7179         * doc/posix-functions/fmemopen.texi: Likewise.
7180         * doc/posix-functions/freeaddrinfo.texi: Likewise.
7181         * doc/posix-functions/fstatat.texi: Likewise.
7182         * doc/posix-functions/futimens.texi: Likewise.
7183         * doc/posix-functions/gai_strerror.texi: Likewise.
7184         * doc/posix-functions/getaddrinfo.texi: Likewise.
7185         * doc/posix-functions/getnameinfo.texi: Likewise.
7186         * doc/posix-functions/if_freenameindex.texi: Likewise.
7187         * doc/posix-functions/if_indextoname.texi: Likewise.
7188         * doc/posix-functions/if_nameindex.texi: Likewise.
7189         * doc/posix-functions/if_nametoindex.texi: Likewise.
7190         * doc/posix-functions/insque.texi: Likewise.
7191         * doc/posix-functions/linkat.texi: Likewise.
7192         * doc/posix-functions/llrint.texi: Likewise.
7193         * doc/posix-functions/llrintf.texi: Likewise.
7194         * doc/posix-functions/llrintl.texi: Likewise.
7195         * doc/posix-functions/lockf.texi: Likewise.
7196         * doc/posix-functions/lrintl.texi: Likewise.
7197         * doc/posix-functions/mkdirat.texi: Likewise.
7198         * doc/posix-functions/mkfifoat.texi: Likewise.
7199         * doc/posix-functions/mknodat.texi: Likewise.
7200         * doc/posix-functions/mq_close.texi: Likewise.
7201         * doc/posix-functions/mq_getattr.texi: Likewise.
7202         * doc/posix-functions/mq_notify.texi: Likewise.
7203         * doc/posix-functions/mq_open.texi: Likewise.
7204         * doc/posix-functions/mq_receive.texi: Likewise.
7205         * doc/posix-functions/mq_send.texi: Likewise.
7206         * doc/posix-functions/mq_setattr.texi: Likewise.
7207         * doc/posix-functions/mq_timedreceive.texi: Likewise.
7208         * doc/posix-functions/mq_timedsend.texi: Likewise.
7209         * doc/posix-functions/mq_unlink.texi: Likewise.
7210         * doc/posix-functions/open_memstream.texi: Likewise.
7211         * doc/posix-functions/openat.texi: Likewise.
7212         * doc/posix-functions/posix_fadvise.texi: Likewise.
7213         * doc/posix-functions/posix_fallocate.texi: Likewise.
7214         * doc/posix-functions/posix_madvise.texi: Likewise.
7215         * doc/posix-functions/posix_memalign.texi: Likewise.
7216         * doc/posix-functions/posix_openpt.texi: Likewise.
7217         * doc/posix-functions/readlinkat.texi: Likewise.
7218         * doc/posix-functions/remque.texi: Likewise.
7219         * doc/posix-functions/renameat.texi: Likewise.
7220         * doc/posix-functions/rintl.texi: Likewise.
7221         * doc/posix-functions/sem_unlink.texi: Likewise.
7222         * doc/posix-functions/shm_open.texi: Likewise.
7223         * doc/posix-functions/shm_unlink.texi: Likewise.
7224         * doc/posix-functions/signgam.texi: Likewise.
7225         * doc/posix-functions/sigset.texi: Likewise.
7226         * doc/posix-functions/stpcpy.texi: Likewise.
7227         * doc/posix-functions/stpncpy.texi: Likewise.
7228         * doc/posix-functions/strerror.texi: Likewise.
7229         * doc/posix-functions/strtod.texi: Likewise.
7230         * doc/posix-functions/symlinkat.texi: Likewise.
7231         * doc/posix-functions/unlinkat.texi: Likewise.
7232         * doc/posix-functions/utimensat.texi: Likewise.
7233         * doc/glibc-functions/bindresvport.texi: Likewise.
7234         * doc/glibc-functions/dn_expand.texi: Likewise.
7235         * doc/glibc-functions/exp10.texi: Likewise.
7236         * doc/glibc-functions/exp10f.texi: Likewise.
7237         * doc/glibc-functions/fgetxattr.texi: Likewise.
7238         * doc/glibc-functions/flistxattr.texi: Likewise.
7239         * doc/glibc-functions/fopencookie.texi: Likewise.
7240         * doc/glibc-functions/freeifaddrs.texi: Likewise.
7241         * doc/glibc-functions/fremovexattr.texi: Likewise.
7242         * doc/glibc-functions/fsetxattr.texi: Likewise.
7243         * doc/glibc-functions/getifaddrs.texi: Likewise.
7244         * doc/glibc-functions/getxattr.texi: Likewise.
7245         * doc/glibc-functions/lgetxattr.texi: Likewise.
7246         * doc/glibc-functions/listxattr.texi: Likewise.
7247         * doc/glibc-functions/llistxattr.texi: Likewise.
7248         * doc/glibc-functions/lremovexattr.texi: Likewise.
7249         * doc/glibc-functions/lsetxattr.texi: Likewise.
7250         * doc/glibc-functions/pow10.texi: Likewise.
7251         * doc/glibc-functions/pow10f.texi: Likewise.
7252         * doc/glibc-functions/rcmd_af.texi: Likewise.
7253         * doc/glibc-functions/removexattr.texi: Likewise.
7254         * doc/glibc-functions/res_init.texi: Likewise.
7255         * doc/glibc-functions/res_mkquery.texi: Likewise.
7256         * doc/glibc-functions/res_query.texi: Likewise.
7257         * doc/glibc-functions/res_querydomain.texi: Likewise.
7258         * doc/glibc-functions/res_send.texi: Likewise.
7259         * doc/glibc-functions/rresvport_af.texi: Likewise.
7260         * doc/glibc-functions/setxattr.texi: Likewise.
7261         * doc/glibc-functions/strcasestr.texi: Likewise.
7262
7263 2008-12-15  Bruno Haible  <bruno@clisp.org>
7264
7265         Fix compilation error on OSF/1 4.0.
7266         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
7267         <sys/time.h>, simply delegate to the system header.
7268         Reported by Daniel Richard G. <oss@teragram.com>.
7269
7270 2008-12-15  Bruno Haible  <bruno@clisp.org>
7271
7272         * doc/posix-functions/openat.texi: Mention the 'openat' module.
7273         * doc/posix-functions/fchmodat.texi: Likewise.
7274         * doc/posix-functions/fchownat.texi: Likewise.
7275         * doc/posix-functions/fdopendir.texi: Likewise.
7276         * doc/posix-functions/fstatat.texi: Likewise.
7277         * doc/posix-functions/mkdirat.texi: Likewise.
7278         * doc/posix-functions/unlinkat.texi: Likewise.
7279
7280 2008-12-14  Bruno Haible  <bruno@clisp.org>
7281
7282         Update doc for POSIX:2008.
7283         * doc/posix-functions/faccessat.texi: New file.
7284         * doc/posix-functions/fchmodat.texi: New file.
7285         * doc/posix-functions/fchownat.texi: New file.
7286         * doc/posix-functions/fdopendir.texi: New file.
7287         * doc/posix-functions/fstatat.texi: New file.
7288         * doc/posix-functions/futimens.texi: New file.
7289         * doc/posix-functions/linkat.texi: New file.
7290         * doc/posix-functions/mkdirat.texi: New file.
7291         * doc/posix-functions/mkfifoat.texi: New file.
7292         * doc/posix-functions/mknodat.texi: New file.
7293         * doc/posix-functions/open_wmemstream.texi: New file.
7294         * doc/posix-functions/openat.texi: New file.
7295         * doc/posix-functions/psiginfo.texi: New file.
7296         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
7297         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
7298         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
7299         * doc/posix-functions/readlinkat.texi: New file.
7300         * doc/posix-functions/renameat.texi: New file.
7301         * doc/posix-functions/strerror_l.texi: New file.
7302         * doc/posix-functions/symlinkat.texi: New file.
7303         * doc/posix-functions/unlinkat.texi: New file.
7304         * doc/posix-functions/utimensat.texi: New file.
7305         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7306
7307 2008-12-14  Bruno Haible  <bruno@clisp.org>
7308
7309         Update doc for POSIX:2008.
7310         * doc/posix-functions/alphasort.texi: Renamed from
7311         doc/glibc-functions/alphasort.texi.
7312         * doc/posix-functions/dirfd.texi: Renamed from
7313         doc/glibc-functions/dirfd.texi.
7314         * doc/posix-functions/dprintf.texi: Renamed from
7315         doc/glibc-functions/dprintf.texi.
7316         * doc/posix-functions/duplocale.texi: Renamed from
7317         doc/glibc-functions/duplocale.texi.
7318         * doc/posix-functions/fexecve.texi: Renamed from
7319         doc/glibc-functions/fexecve.texi.
7320         * doc/posix-functions/fmemopen.texi: Renamed from
7321         doc/glibc-functions/fmemopen.texi.
7322         * doc/posix-functions/freelocale.texi: Renamed from
7323         doc/glibc-functions/freelocale.texi.
7324         * doc/posix-functions/getdate_err.texi: Renamed from
7325         doc/glibc-functions/getdate_err.texi.
7326         * doc/posix-functions/isalnum_l.texi: Renamed from
7327         doc/glibc-functions/isalnum_l.texi.
7328         * doc/posix-functions/isalpha_l.texi: Renamed from
7329         doc/glibc-functions/isalpha_l.texi.
7330         * doc/posix-functions/isblank_l.texi: Renamed from
7331         doc/glibc-functions/isblank_l.texi.
7332         * doc/posix-functions/iscntrl_l.texi: Renamed from
7333         doc/glibc-functions/iscntrl_l.texi.
7334         * doc/posix-functions/isdigit_l.texi: Renamed from
7335         doc/glibc-functions/isdigit_l.texi.
7336         * doc/posix-functions/isgraph_l.texi: Renamed from
7337         doc/glibc-functions/isgraph_l.texi.
7338         * doc/posix-functions/islower_l.texi: Renamed from
7339         doc/glibc-functions/islower_l.texi.
7340         * doc/posix-functions/isprint_l.texi: Renamed from
7341         doc/glibc-functions/isprint_l.texi.
7342         * doc/posix-functions/ispunct_l.texi: Renamed from
7343         doc/glibc-functions/ispunct_l.texi.
7344         * doc/posix-functions/isspace_l.texi: Renamed from
7345         doc/glibc-functions/isspace_l.texi.
7346         * doc/posix-functions/isupper_l.texi: Renamed from
7347         doc/glibc-functions/isupper_l.texi.
7348         * doc/posix-functions/iswalnum_l.texi: Renamed from
7349         doc/glibc-functions/iswalnum_l.texi.
7350         * doc/posix-functions/iswalpha_l.texi: Renamed from
7351         doc/glibc-functions/iswalpha_l.texi.
7352         * doc/posix-functions/iswblank_l.texi: Renamed from
7353         doc/glibc-functions/iswblank_l.texi.
7354         * doc/posix-functions/iswcntrl_l.texi: Renamed from
7355         doc/glibc-functions/iswcntrl_l.texi.
7356         * doc/posix-functions/iswctype_l.texi: Renamed from
7357         doc/glibc-functions/iswctype_l.texi.
7358         * doc/posix-functions/iswdigit_l.texi: Renamed from
7359         doc/glibc-functions/iswdigit_l.texi.
7360         * doc/posix-functions/iswgraph_l.texi: Renamed from
7361         doc/glibc-functions/iswgraph_l.texi.
7362         * doc/posix-functions/iswlower_l.texi: Renamed from
7363         doc/glibc-functions/iswlower_l.texi.
7364         * doc/posix-functions/iswprint_l.texi: Renamed from
7365         doc/glibc-functions/iswprint_l.texi.
7366         * doc/posix-functions/iswpunct_l.texi: Renamed from
7367         doc/glibc-functions/iswpunct_l.texi.
7368         * doc/posix-functions/iswspace_l.texi: Renamed from
7369         doc/glibc-functions/iswspace_l.texi.
7370         * doc/posix-functions/iswupper_l.texi: Renamed from
7371         doc/glibc-functions/iswupper_l.texi.
7372         * doc/posix-functions/iswxdigit_l.texi: Renamed from
7373         doc/glibc-functions/iswxdigit_l.texi.
7374         * doc/posix-functions/isxdigit_l.texi: Renamed from
7375         doc/glibc-functions/isxdigit_l.texi.
7376         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
7377         doc/glibc-functions/mbsnrtowcs.texi.
7378         * doc/posix-functions/mkdtemp.texi: Renamed from
7379         doc/glibc-functions/mkdtemp.texi.
7380         * doc/posix-functions/newlocale.texi: Renamed from
7381         doc/glibc-functions/newlocale.texi.
7382         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
7383         doc/glibc-functions/nl_langinfo_l.texi.
7384         * doc/posix-functions/open_memstream.texi: Renamed from
7385         doc/glibc-functions/open_memstream.texi.
7386         * doc/posix-functions/opterr.texi: Renamed from
7387         doc/glibc-functions/opterr.texi.
7388         * doc/posix-functions/optind.texi: Renamed from
7389         doc/glibc-functions/optind.texi.
7390         * doc/posix-functions/optopt.texi: Renamed from
7391         doc/glibc-functions/optopt.texi.
7392         * doc/posix-functions/psignal.texi: Renamed from
7393         doc/glibc-functions/psignal.texi.
7394         * doc/posix-functions/scandir.texi: Renamed from
7395         doc/glibc-functions/scandir.texi.
7396         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
7397         doc/glibc-functions/sched_get_priority_min.texi.
7398         * doc/posix-functions/signgam.texi: Renamed from
7399         doc/glibc-functions/signgam.texi.
7400         * doc/posix-functions/stpcpy.texi: Renamed from
7401         doc/glibc-functions/stpcpy.texi.
7402         * doc/posix-functions/stpncpy.texi: Renamed from
7403         doc/glibc-functions/stpncpy.texi.
7404         * doc/posix-functions/strcasecmp_l.texi: Renamed from
7405         doc/glibc-functions/strcasecmp_l.texi.
7406         * doc/posix-functions/strcoll_l.texi: Renamed from
7407         doc/glibc-functions/strcoll_l.texi.
7408         * doc/posix-functions/strfmon_l.texi: Renamed from
7409         doc/glibc-functions/strfmon_l.texi.
7410         * doc/posix-functions/strftime_l.texi: Renamed from
7411         doc/glibc-functions/strftime_l.texi.
7412         * doc/posix-functions/strncasecmp_l.texi: Renamed from
7413         doc/glibc-functions/strncasecmp_l.texi.
7414         * doc/posix-functions/strndup.texi: Renamed from
7415         doc/glibc-functions/strndup.texi.
7416         * doc/posix-functions/strnlen.texi: Renamed from
7417         doc/glibc-functions/strnlen.texi.
7418         * doc/posix-functions/strsignal.texi: Renamed from
7419         doc/glibc-functions/strsignal.texi.
7420         * doc/posix-functions/strxfrm_l.texi: Renamed from
7421         doc/glibc-functions/strxfrm_l.texi.
7422         * doc/posix-functions/timer_gettime.texi: Renamed from
7423         doc/glibc-functions/timer_gettime.texi.
7424         * doc/posix-functions/tolower_l.texi: Renamed from
7425         doc/glibc-functions/tolower_l.texi.
7426         * doc/posix-functions/toupper_l.texi: Renamed from
7427         doc/glibc-functions/toupper_l.texi.
7428         * doc/posix-functions/towctrans_l.texi: Renamed from
7429         doc/glibc-functions/towctrans_l.texi.
7430         * doc/posix-functions/towlower_l.texi: Renamed from
7431         doc/glibc-functions/towlower_l.texi.
7432         * doc/posix-functions/towupper_l.texi: Renamed from
7433         doc/glibc-functions/towupper_l.texi.
7434         * doc/posix-functions/uselocale.texi: Renamed from
7435         doc/glibc-functions/uselocale.texi.
7436         * doc/posix-functions/vdprintf.texi: Renamed from
7437         doc/glibc-functions/vdprintf.texi.
7438         * doc/posix-functions/wcpcpy.texi:
7439         Renamed from doc/glibc-functions/wcpcpy.texi.
7440         * doc/posix-functions/wcpncpy.texi: Renamed from
7441         doc/glibc-functions/wcpncpy.texi.
7442         * doc/posix-functions/wcscasecmp.texi: Renamed from
7443         doc/glibc-functions/wcscasecmp.texi.
7444         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
7445         doc/glibc-functions/wcscasecmp_l.texi.
7446         * doc/posix-functions/wcscoll_l.texi: Renamed from
7447         doc/glibc-functions/wcscoll_l.texi.
7448         * doc/posix-functions/wcsdup.texi: Renamed from
7449         doc/glibc-functions/wcsdup.texi.
7450         * doc/posix-functions/wcsncasecmp.texi: Renamed from
7451         doc/glibc-functions/wcsncasecmp.texi.
7452         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
7453         doc/glibc-functions/wcsncasecmp_l.texi.
7454         * doc/posix-functions/wcsnlen.texi: Renamed from
7455         doc/glibc-functions/wcsnlen.texi.
7456         * doc/posix-functions/wcsnrtombs.texi: Renamed from
7457         doc/glibc-functions/wcsnrtombs.texi.
7458         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
7459         doc/glibc-functions/wcsxfrm_l.texi.
7460         * doc/posix-functions/wctrans_l.texi: Renamed from
7461         doc/glibc-functions/wctrans_l.texi.
7462         * doc/posix-functions/wctype_l.texi: Renamed from
7463         doc/glibc-functions/wctype_l.texi.
7464         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7465         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
7466         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
7467         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
7468         these subsections.
7469         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
7470         Remove sections.
7471
7472 2008-12-14  Bruno Haible  <bruno@clisp.org>
7473
7474         Update doc for POSIX:2008.
7475         * doc/posix-functions/*.texi: Update URL of POSIX specification.
7476
7477 2008-12-14  Bruno Haible  <bruno@clisp.org>
7478
7479         Update doc for POSIX:2008.
7480         * doc/pastposix-functions/bcmp.texi: Renamed from
7481         doc/posix-functions/bcmp.texi.
7482         * doc/pastposix-functions/bcopy.texi: Renamed from
7483         doc/posix-functions/bcopy.texi.
7484         * doc/pastposix-functions/bsd_signal.texi: Renamed from
7485         doc/posix-functions/bsd_signal.texi.
7486         * doc/pastposix-functions/bzero.texi: Renamed from
7487         doc/posix-functions/bzero.texi.
7488         * doc/pastposix-functions/ecvt.texi: Renamed from
7489         doc/posix-functions/ecvt.texi.
7490         * doc/pastposix-functions/fcvt.texi: Renamed from
7491         doc/posix-functions/fcvt.texi.
7492         * doc/pastposix-functions/ftime.texi: Renamed from
7493         doc/posix-functions/ftime.texi.
7494         * doc/pastposix-functions/gcvt.texi: Renamed from
7495         doc/posix-functions/gcvt.texi.
7496         * doc/pastposix-functions/getcontext.texi: Renamed from
7497         doc/posix-functions/getcontext.texi.
7498         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
7499         doc/posix-functions/gethostbyaddr.texi.
7500         * doc/pastposix-functions/gethostbyname.texi: Renamed from
7501         doc/posix-functions/gethostbyname.texi.
7502         * doc/pastposix-functions/getwd.texi: Renamed from
7503         doc/posix-functions/getwd.texi.
7504         * doc/pastposix-functions/h_errno.texi: Renamed from
7505         doc/posix-functions/h_errno.texi.
7506         * doc/pastposix-functions/index.texi: Renamed from
7507         doc/posix-functions/index.texi.
7508         * doc/pastposix-functions/makecontext.texi: Renamed from
7509         doc/posix-functions/makecontext.texi.
7510         * doc/pastposix-functions/mktemp.texi: Renamed from
7511         doc/posix-functions/mktemp.texi.
7512         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
7513         doc/posix-functions/pthread_attr_getstackaddr.texi.
7514         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
7515         doc/posix-functions/pthread_attr_setstackaddr.texi.
7516         * doc/pastposix-functions/rindex.texi: Renamed from
7517         doc/posix-functions/rindex.texi.
7518         * doc/pastposix-functions/scalb.texi: Renamed from
7519         doc/posix-functions/scalb.texi.
7520         * doc/pastposix-functions/setcontext.texi: Renamed from
7521         doc/posix-functions/setcontext.texi.
7522         * doc/pastposix-functions/swapcontext.texi: Renamed from
7523         doc/posix-functions/swapcontext.texi.
7524         * doc/pastposix-functions/ualarm.texi: Renamed from
7525         doc/posix-functions/ualarm.texi.
7526         * doc/pastposix-functions/usleep.texi: Renamed from
7527         doc/posix-functions/usleep.texi.
7528         * doc/pastposix-functions/vfork.texi: Renamed from
7529         doc/posix-functions/vfork.texi.
7530         * doc/pastposix-functions/wcswcs.texi: Renamed from
7531         doc/posix-functions/wcswcs.texi.
7532         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
7533         (Function Substitutes): Update.
7534
7535 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7536
7537         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
7538         m4/strerror.m4.
7539
7540 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7541             Bruno Haible  <bruno@clisp.org>
7542
7543         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
7544
7545 2008-12-13  Bruno Haible  <bruno@clisp.org>
7546
7547         * modules/strtoull (Depends-on): Remove unistd.
7548
7549 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7550
7551         * modules/strtoull (Depends-on): Add stdlib.
7552
7553 2008-12-11  Simon Josefsson  <simon@josefsson.org>
7554
7555         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
7556
7557 2008-12-10  Jim Meyering  <meyering@redhat.com>
7558
7559         gl_ASSERT: don't say assertions are disabled when they're not
7560         * m4/assert.m4 (gl_ASSERT): Do not make configure report
7561         "checking whether to enable assertions... no", when they are in
7562         fact enabled.  This is solely a bug in the output of configure.
7563         In spite of saying "no", NDEBUG was not defined in that case.
7564         Also, as noted by Eric Blake, leave assertions enabled upon
7565         --enable-assert=INVALID.
7566
7567 2008-12-10  Bruno Haible  <bruno@clisp.org>
7568
7569         Change MODULES.html to refer to POSIX:2008 where possible.
7570         * MODULES.html.sh (POSIX2008_URL): New variable.
7571         (posix_headers): Remove sys/timeb, ucontext.
7572         (posix2001_headers): New variable.
7573         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
7574         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
7575         index, makecontext, mktemp, pthread_attr_getstackaddr,
7576         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
7577         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
7578         (posix2001_functions): New variable.
7579         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
7580         otherwise.
7581
7582 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7583
7584         add missing include to parse-duration.c
7585         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
7586         * modules/parse-duration (Depends-on): Add xalloc.
7587
7588         fix sed script reading maint.mk
7589         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
7590         (syntax-check-rules): Use it.
7591
7592 2008-12-09  Bruno Haible  <bruno@clisp.org>
7593
7594         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
7595         MacOS X 10.4/PowerPC.
7596         Reported by Simon Josefsson.
7597
7598 2008-12-08  Jim Meyering  <meyering@redhat.com>
7599
7600         work around mingw's lack of some S_IF definitions
7601         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
7602         Reported by Simon Josefsson.
7603
7604 2008-12-08  Bruno Haible  <bruno@clisp.org>
7605
7606         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
7607         applied to variables. Needed on MacOS X 10.4/PowerPC.
7608         Reported by Simon Josefsson.
7609
7610 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
7611         and Eric Blake  <ebb9@byu.net>
7612
7613         assert: honor --enable-assert
7614         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
7615         order to honor --enable-assert, rather than treating it as a
7616         synonym for --disable-assert.
7617
7618 2008-12-08  Jim Meyering  <meyering@redhat.com>
7619
7620         * lib/posixtm.c: Remove now-useless declaration of mktime.
7621
7622         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
7623
7624 2008-12-07  Bruno Haible  <bruno@clisp.org>
7625
7626         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
7627         test_once): Mark functions as static.
7628         * tests/test-tls.c (test_tls): Likewise.
7629
7630 2008-12-07  Bruno Haible  <bruno@clisp.org>
7631
7632         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
7633         iconv_register_autodetect.
7634
7635 2008-12-07  Jim Meyering  <meyering@redhat.com>
7636
7637         posixtm.c: avoid a warning
7638         * lib/posixtm.c (posixtime): Don't initialize tm0.
7639         It's no longer needed to placate gcc4's -Wuninitialized,
7640         and the attempt to placate would elicit a new warning.
7641
7642         unicodeio.c: mark unused parameters
7643         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
7644         (fallback_failure_callback): Likewise.
7645
7646 2008-12-07  Bruno Haible  <bruno@clisp.org>
7647
7648         * gnulib-tool (func_create_testdir): When building the tests
7649         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
7650         Reported by Simon Josefsson.
7651
7652 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7653
7654         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
7655
7656 2008-12-06  Bruno Haible  <bruno@clisp.org>
7657
7658         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
7659         Suggested by Eric Blake.
7660
7661 2008-12-06  Bruno Haible  <bruno@clisp.org>
7662
7663         Fix a c-stack test failure on MacOS X.
7664         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
7665         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
7666         handler for SIGBUS as well.
7667         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
7668         install a signal handler for SIGBUS as well.
7669         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
7670
7671 2008-12-06  Bruno Haible  <bruno@clisp.org>
7672
7673         Advocacy documentation.
7674         * doc/gnulib-intro.texi (Benefits): New section.
7675         * doc/gnulib.texi: Update.
7676
7677 2008-12-06  Bruno Haible  <bruno@clisp.org>
7678
7679         Document the 'manywarnings' module.
7680         * doc/manywarnings.texi: New file.
7681         * doc/gnulib.texi: Include it.
7682
7683 2008-12-05  Eric Blake  <ebb9@byu.net>
7684
7685         tests: silence some gcc warnings
7686         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
7687         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
7688         type mismatches.
7689
7690 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7691             Bruno Haible  <bruno@clisp.org>
7692
7693         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
7694
7695 2008-11-29  Jim Meyering  <meyering@redhat.com>
7696
7697         unicodeio.c: mark unused parameters
7698         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
7699         (fallback_failure_callback): Likewise.
7700
7701         fts: fix a thinko
7702         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
7703         (set_stat_type): Return S_IF*-valued "type" directly.
7704         Prompted by James Youngman's spotting a related bug.
7705         Confirmed by further testing through find.
7706
7707         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
7708         * lib/fts.c (D_TYPE): Define.
7709         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
7710         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
7711         (s_ifmt_shift_bits): New function.
7712         (set_stat_type): New function.
7713         (fts_build): When not calling fts_stat, call set_stat_type
7714         to propagate dirent.d_type info to fts_read caller.
7715         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
7716         fts_statp->st_mode type information may be valid.
7717
7718 2008-11-28  Simon Josefsson  <simon@josefsson.org>
7719
7720         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
7721         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
7722         <sds@gnu.org>.
7723
7724 2008-11-20  Bruno Haible  <bruno@clisp.org>
7725
7726         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
7727         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
7728         INCLUDE_NEXT.
7729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
7730         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
7731         * modules/math (Makefile.am): Substitute
7732         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
7733         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7734
7735 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
7736             Bruno Haible  <bruno@clisp.org>
7737
7738         * lib/stdint.in.h: Define all type macros so that their expansion is
7739         a single typedef'ed token. Fixes a compilation failure in Boost which
7740         does "using ::int8_t;".
7741
7742 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7743
7744         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
7745         gl_MANYWARN_ALL_GCC.
7746         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
7747         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
7748         * modules/manywarnings: New file.
7749         * MODULES.html.sh: Mention manywarnings module.
7750
7751 2008-11-18  Bruno Haible  <bruno@clisp.org>
7752
7753         * doc/gnulib-tool.texi (Unit tests): New section.
7754
7755 2008-11-18  Simon Josefsson  <simon@josefsson.org>
7756
7757         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
7758         paths like 'lib/po/foo.po'.
7759
7760 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7761
7762         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
7763         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
7764
7765 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7766
7767         * m4/warnings.m4: Use CPPFLAGS to really check whether the
7768         parameter works.
7769
7770 2008-11-17  Simon Josefsson  <simon@josefsson.org>
7771
7772         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
7773
7774 2008-11-17  Bruce Korb  <bkorb@gnu.org>
7775
7776         * modules/parse-duration-tests: New file.
7777         * tests/test-parse-duration.sh: New file.
7778         * tests/test-parse-duration.c: New file.
7779
7780         New module 'parse-duration'.
7781         * lib/parse-duration.h: New file.
7782         * lib/parse-duration.c: New file.
7783         * modules/parse-duration: New file.
7784
7785 2008-11-17  Bruno Haible  <bruno@clisp.org>
7786
7787         * tests/test-select-out.sh: Comment out the first pipe test.
7788         Reported by Simon Josefsson.
7789
7790 2008-11-17  Bruno Haible  <bruno@clisp.org>
7791
7792         * modules/getaddrinfo (Depends-on): Add servent, hostent.
7793         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
7794         gl_HOSTENT.
7795
7796 2008-11-17  Bruno Haible  <bruno@clisp.org>
7797
7798         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
7799         -lnetwork and -lnet. Needed for Haiku and BeOS.
7800
7801 2008-11-16  Bruno Haible  <bruno@clisp.org>
7802
7803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
7804
7805 2008-11-16  Bruno Haible  <bruno@clisp.org>
7806
7807         Avoid test failure on Haiku.
7808         * tests/test-fsync.c: Include <errno.h>.
7809         (main): Don't require that fsync (0) fails.
7810
7811 2008-11-15  Bruno Haible  <bruno@clisp.org>
7812
7813         New module 'hostent'.
7814         * modules/hostent: New file.
7815         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
7816
7817 2008-11-15  Bruno Haible  <bruno@clisp.org>
7818
7819         New module 'servent'.
7820         * modules/servent: New file.
7821         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
7822
7823 2008-11-15  Bruno Haible  <bruno@clisp.org>
7824
7825         Avoid generating same test program with two different rules.
7826         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
7827         test-frexp to test-frexp-nolibm.
7828         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
7829         test-frexpl to test-frexpl-nolibm.
7830
7831 2008-11-15  Bruno Haible  <bruno@clisp.org>
7832
7833         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
7834         $(FREXPL_LIBM).
7835
7836 2008-11-15  Bruno Haible  <bruno@clisp.org>
7837
7838         * lib/netdb.in.h: Activate the definitions also when the system's
7839         <netdb.h> has 'struct addrinfo'.
7840         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
7841         EAI_OVERFLOW or AI_NUMERICSERV.
7842         * doc/posix-headers/netdb.texi: Document the problem.
7843
7844 2008-11-15  Bruno Haible  <bruno@clisp.org>
7845
7846         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
7847
7848         Make the 'sched' module work on platforms where <sched.h> exists but
7849         is incomplete (such as Haiku).
7850         * lib/sched.in.h; Include the system's <sched.h> if it exists.
7851         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
7852         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
7853         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
7854         HAVE_STRUCT_SCHED_PARAM.
7855         * modules/sched (Depends-on): Add include_next.
7856         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
7857         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
7858         * doc/posix-headers/sched.texi: Document the issue.
7859
7860 2008-11-13  Jim Meyering  <meyering@redhat.com>
7861
7862         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
7863         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
7864         test would fail due to the difference in the Report bugs to ...
7865         line.  The expected address is empty, "<>", while the actual
7866         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
7867
7868 2008-11-12  Bruno Haible  <bruno@clisp.org>
7869
7870         lstat: don't compile lstat.c on systems lacking lstat
7871         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
7872         which don't have lstat; this is handled by lib/sys_stat.in.h already.
7873         Reported by Daniel P. Berrange via Jim Meyering.
7874
7875 2008-11-12  Jim Meyering  <meyering@redhat.com>
7876
7877         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
7878
7879 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7880
7881         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
7882         instead.
7883
7884 2008-11-12  Bruno Haible  <bruno@clisp.org>
7885
7886         * lib/unicodeio.c: Include unistr.h.
7887         (utf8_wctomb): Remove function.
7888         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
7889
7890 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7891
7892         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
7893         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
7894         <bruno@clisp.org>.
7895         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
7896
7897 2008-11-12  Simon Josefsson  <simon@josefsson.org>
7898
7899         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
7900         * doc/gnulib.texi: Add section for warnings.
7901
7902 2008-11-11  Bruno Haible  <bruno@clisp.org>
7903
7904         * lib/sockets.h: Add a comment.
7905
7906 2008-11-11  Karl Berry  <karl@gnu.org>
7907
7908         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
7909
7910 2008-11-11  Eric Blake  <ebb9@byu.net>
7911
7912         fdl.texi: avoid git symlinks
7913         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
7914
7915 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7916
7917         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
7918
7919 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7920
7921         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
7922         (gl_WARN_ADD): Substitute $2 if literal.
7923
7924 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7925
7926         * m4/warning.m4: Remove.
7927
7928 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
7929
7930         * m4/warnings.m4: Almost complete rewrite. :-)
7931
7932 2008-11-10  Simon Josefsson  <simon@josefsson.org>
7933
7934         * modules/warnings: New module.
7935         * m4/warnings.m4: New file.
7936         * MODULES.html.sh: Mention warnings module.
7937         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
7938         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7939
7940 2008-11-10  Eric Blake  <ebb9@byu.net>
7941
7942         fdl.texi: make a symlink to the latest version
7943         * doc/standards.texi: Revert today's earlier change.
7944         * doc/fdl-1.2.texi: Rename from old fdl.texi...
7945         * doc/fdl.texi: ...and replace this with a symlink to the newer
7946         fdl-1.3.texi.
7947
7948 2008-11-10  Bruno Haible  <bruno@clisp.org>
7949
7950         * tests/test-select-fd.c (main): Accept the result file name as fourth
7951         argument.
7952         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
7953         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
7954
7955 2008-11-10  Bruno Haible  <bruno@clisp.org>
7956
7957         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
7958         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
7959         as autoconf-substituted macros.
7960         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
7961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
7962         gl_NETDB_H_DEFAULTS. Set these variables.
7963         * modules/netdb (Makefile.am): Substitute these variables.
7964
7965 2008-11-10  Eric Blake  <ebb9@byu.net>
7966
7967         standards.texi: include correct file for FDL 1.3
7968         * doc/standards.texi (GNU Free Documentation License): Change
7969         include file to pull in FDL 1.3, not 1.2.
7970
7971         fdl.texi: revert accidental change to license
7972         * doc/fdl.texi: This is FDL 1.2, not 1.3.
7973
7974 2008-11-10  Bruno Haible  <bruno@clisp.org>
7975
7976         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
7977         cross-compiling guesses also when the native compile gives no result.
7978
7979 2008-11-10  Bruno Haible  <bruno@clisp.org>
7980
7981         * lib/spawni.c (__spawni): Force variable into the stack.
7982
7983 2008-11-10  Bruno Haible  <bruno@clisp.org>
7984
7985         Add support for Haiku.
7986         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
7987         glibc and BeOS, but also on Haiku.
7988         * lib/fpurge.c (fpurge): Likewise.
7989         * lib/freadable.c (freadable): Likewise.
7990         * lib/freadahead.c (freadahead): Likewise.
7991         * lib/freading.c (freading): Likewise.
7992         * lib/freadptr.c (freadptr): Likewise.
7993         * lib/freadseek.c (freadptrinc): Likewise.
7994         * lib/fseeko.c (rpl_fseeko): Likewise.
7995         * lib/fseterr.c (fseterr): Likewise.
7996         * lib/fwritable.c (fwritable): Likewise.
7997         * lib/fwriting.c (fwriting): Likewise.
7998         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
7999
8000 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8001
8002         * lib/config.charset: Treat Haiku like BeOS.
8003
8004 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8005
8006         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
8007         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
8008
8009 2008-11-08  Bruno Haible  <bruno@clisp.org>
8010
8011         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
8012         AC_CACHE_CHECK.
8013
8014 2008-11-08  Bruno Haible  <bruno@clisp.org>
8015
8016         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
8017
8018 2008-11-08  Bruno Haible  <bruno@clisp.org>
8019
8020         * tests/test-select-fd.c: New file.
8021         * tests/test-select-in.sh: New file.
8022         * tests/test-select-out.sh: New file.
8023         * tests/test-select-stdin.c: New file.
8024         * modules/select-tests (Files): Add the new files.
8025         (Depends-on): Add gettimeofday.
8026         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
8027         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
8028         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
8029
8030 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
8031             Bruno Haible  <bruno@clisp.org>
8032
8033         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
8034
8035 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
8036
8037         * build-aux/pmccabe2html: Added support for C++ source files.
8038
8039 2008-11-05  Ben Pfaff  <blp@gnu.org>
8040
8041         Fix lib/close.c build on Windows.
8042         * modules/close (Files): Add lib/w32sock.h.
8043
8044 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
8045
8046         Accept Bison's NEWS format.
8047         * build-aux/announce-gen (print_news_deltas): Tweak
8048         $re_prefix.
8049
8050 2008-11-04  Bruno Haible  <bruno@clisp.org>
8051
8052         * modules/random_r (Maintainer): Add glibc.
8053
8054 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8055
8056         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
8057         by karl@freefriends.org (Karl Berry).
8058         * doc/alloca.texi: Likewise.
8059         * doc/c-ctype.texi: Likewise.
8060         * doc/c-strcase.texi: Likewise.
8061         * doc/c-strcaseeq.texi: Likewise.
8062         * doc/c-strcasestr.texi: Likewise.
8063         * doc/c-strstr.texi: Likewise.
8064         * doc/c-strtod.texi: Likewise.
8065         * doc/c-strtold.texi: Likewise.
8066         * doc/ctime.texi: Likewise.
8067         * doc/error.texi: Likewise.
8068         * doc/fdl.texi: Likewise.
8069         * doc/gcd.texi: Likewise.
8070         * doc/getdate.texi: Likewise.
8071         * doc/gnulib-intro.texi: Likewise.
8072         * doc/gnulib-tool.texi: Likewise.
8073         * doc/gnulib.texi: Likewise.
8074         * doc/inet_ntoa.texi: Likewise.
8075         * doc/maintain.texi: Likewise.
8076         * doc/make-stds.texi: Likewise.
8077         * doc/quote.texi: Likewise.
8078         * doc/regexprops-generic.texi: Likewise.
8079         * doc/standards.texi: Likewise.
8080         * doc/verify.texi: Likewise.
8081         * doc/visibility.texi: Likewise.
8082         * doc/gnulib.texi (GNU Free Documentation License): Include
8083         fdl-1.3.texi instead of fdl.texi.
8084
8085 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8086
8087         * doc/fdl-1.3.texi: New file, from
8088         <http://www.gnu.org/licenses/fdl-1.3.texi>.
8089         * modules/fdl-1.3: Add.
8090         * MODULES.html.sh: Add fdl-1.3.
8091
8092 2008-11-03  Bruno Haible  <bruno@clisp.org>
8093
8094         Make determination of absolute name of header file work with AIX xlc.
8095         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
8096         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
8097         preprocessing.
8098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8099         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8100
8101 2008-11-03  Simon Josefsson  <simon@josefsson.org>
8102
8103         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
8104         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
8105         <ludo@gnu.org>.
8106
8107 2008-11-02  Bruno Haible  <bruno@clisp.org>
8108
8109         Mark 'strpbrk' obsolete.
8110         * modules/strpbrk (Status, Notice): New sections.
8111         * modules/strtok_r (Depends-on): Add strpbrk.
8112
8113 2008-11-02  Bruno Haible  <bruno@clisp.org>
8114
8115         Mark 'strdup' obsolete.
8116         * modules/strdup (Status, Notice): New sections.
8117         * modules/findprog (Depends-on): Add strdup.
8118         * modules/getaddrinfo (Depends-on): Likewise.
8119         * modules/localename (Depends-on): Likewise.
8120         * modules/relocatable-lib (Depends-on): Likewise.
8121         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
8122         * modules/relocatable-prog (Depends-on): Likewise.
8123         * modules/trim (Depends-on): Likewise.
8124         * modules/unictype/gen-ctype (Depends-on): Likewise.
8125         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8126
8127 2008-11-02  Bruno Haible  <bruno@clisp.org>
8128
8129         Mark 'strcspn' obsolete.
8130         * modules/strcspn (Status, Notice): New sections.
8131
8132 2008-11-02  Bruno Haible  <bruno@clisp.org>
8133
8134         Mark 'rmdir' obsolete.
8135         * modules/rmdir (Status, Notice): New sections.
8136         * modules/clean-temp (Depends-on): Add rmdir.
8137         * modules/openat (Depends-on): Likewise.
8138
8139 2008-11-02  Bruno Haible  <bruno@clisp.org>
8140
8141         Mark 'raise' obsolete.
8142         * modules/raise (Status, Notice): New sections.
8143         (Include): Specify <signal.h>.
8144         * modules/stdio (Depends-on): Add raise.
8145         * modules/write (Depends-on): Likewise.
8146
8147 2008-11-02  Bruno Haible  <bruno@clisp.org>
8148
8149         Mark 'memset' obsolete.
8150         * modules/memset (Status, Notice): New sections.
8151
8152 2008-11-02  Bruno Haible  <bruno@clisp.org>
8153
8154         Mark 'memmove' obsolete.
8155         * modules/memmove (Status, Notice): New sections.
8156         * modules/argp (Depends-on): Add memmove.
8157         * modules/argz (Depends-on): Likewise.
8158         * modules/canonicalize (Depends-on): Likewise.
8159         * modules/canonicalize-lgpl (Depends-on): Likewise.
8160         * modules/fts (Depends-on): Likewise.
8161         * modules/getcwd (Depends-on): Likewise.
8162         * modules/human (Depends-on): Likewise.
8163         * modules/regex (Depends-on): Likewise.
8164         * modules/striconveh (Depends-on): Likewise.
8165         * modules/trim (Depends-on): Likewise.
8166         * modules/unistr/u8-move (Depends-on): Likewise.
8167         * modules/unistr/u16-move (Depends-on): Likewise.
8168         * modules/unistr/u32-move (Depends-on): Likewise.
8169
8170 2008-11-02  Bruno Haible  <bruno@clisp.org>
8171
8172         Mark 'memcpy' obsolete.
8173         * modules/memcpy (Status, Notice): New sections.
8174
8175 2008-11-02  Bruno Haible  <bruno@clisp.org>
8176
8177         Mark 'memcmp' obsolete.
8178         * modules/memcmp (Status, Notice): New sections.
8179         * modules/argmatch (Depends-on): Add memchr.
8180         * modules/backupfile (Depends-on): Likewise.
8181         * modules/c-strcasestr (Depends-on): Likewise.
8182         * modules/crypto/des (Depends-on): Likewise.
8183         * modules/csharpcomp (Depends-on): Likewise.
8184         * modules/fnmatch (Depends-on): Likewise.
8185         * modules/git-merge-changelog (Depends-on): Likewise.
8186         * modules/isnand (Depends-on): Likewise.
8187         * modules/isnand-nolibm (Depends-on): Likewise.
8188         * modules/isnanf (Depends-on): Likewise.
8189         * modules/isnanf-nolibm (Depends-on): Likewise.
8190         * modules/isnanl (Depends-on): Likewise.
8191         * modules/isnanl-nolibm (Depends-on): Likewise.
8192         * modules/mbchar (Depends-on): Likewise.
8193         * modules/memcoll (Depends-on): Likewise.
8194         * modules/quotearg (Depends-on): Likewise.
8195         * modules/regex (Depends-on): Likewise.
8196         * modules/relocatable-prog (Depends-on): Likewise.
8197         * modules/same (Depends-on): Likewise.
8198         * modules/signbit (Depends-on): Likewise.
8199         * modules/strcasestr-simple (Depends-on): Likewise.
8200         * modules/unictype/gen-ctype (Depends-on): Likewise.
8201         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8202         * modules/uniname/uniname (Depends-on): Likewise.
8203         * modules/unistr/u8-cmp (Depends-on): Likewise.
8204
8205 2008-11-02  Bruno Haible  <bruno@clisp.org>
8206
8207         Mark 'memchr' obsolete.
8208         * modules/memchr (Status, Notice): New sections.
8209         * modules/argp (Depends-on): Add memchr.
8210         * modules/base64 (Depends-on): Likewise.
8211         * modules/c-strcasestr (Depends-on): Likewise.
8212         * modules/chdir-long (Depends-on): Likewise.
8213         * modules/fnmatch (Depends-on): Likewise.
8214         * modules/getsubopt (Depends-on): Likewise.
8215         * modules/git-merge-changelog (Depends-on): Likewise.
8216         * modules/glob (Depends-on): Likewise.
8217         * modules/strcasestr-simple (Depends-on): Likewise.
8218         * modules/strnlen (Depends-on): Likewise.
8219
8220 2008-11-02  Bruno Haible  <bruno@clisp.org>
8221
8222         Mark 'atexit' obsolete.
8223         * modules/atexit (Status, Notice): New sections.
8224         * modules/chdir-long (Depends-on): Add atexit.
8225         * modules/wait-process (Depends-on): Likewise.
8226
8227 2008-11-02  Bruno Haible  <bruno@clisp.org>
8228
8229         * gnulib-tool: New option --with-obsolete.
8230         (func_usage): Document it.
8231         (func_modules_transitive_closure): Drop obsolete dependencies if
8232         incobsolete is not true.
8233         (func_import): Read and save the incobsolete variable to the cache.
8234
8235 2008-11-02  Bruno Haible  <bruno@clisp.org>
8236
8237         * modules/TEMPLATE-EXTENDED: New field 'Status'.
8238         * gnulib-tool: New option --extract-status.
8239         (func_usage): Document it.
8240         (sed_extract_prog): Recognize it.
8241         (func_get_status): New function.
8242
8243 2008-10-30  Simon Josefsson  <simon@josefsson.org>
8244
8245         * modules/sockets (License): Change from LGPL to LGPLv2+.
8246
8247 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8248
8249         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
8250
8251 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8252
8253         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8254         Mention times and sys_times.
8255         * modules/sys_times, modules/sys_times-tests: New modules.
8256         * modules/times, modules/times-tests: Likewise
8257         * m4/sys_times_h.m4: New file.
8258         * lib/sys_times.in.h: Likewise
8259         * lib/times.c: Likewise.
8260         * tests/test-sys_times.c: Likewise.
8261         * tests/test-times.c: Likewise.
8262         * doc/posix-headers/sys_times.texi: Update.
8263         * doc/posix-functions/times.texi: Update.
8264
8265 2008-10-28  Jim Meyering  <meyering@redhat.com>
8266
8267         * modules/tempname (Depends-on): Add lstat.
8268
8269         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
8270
8271 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8272
8273         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
8274         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
8275         using idiom used elsewhere in gnulib.
8276
8277 2008-10-27  Jim Meyering  <meyering@redhat.com>
8278
8279         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
8280
8281 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8282
8283         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
8284         TESTS_ENVIRONMENT, for shell scripts that needs to call built
8285         programs.
8286         * tests/test-argp-2.sh: Use $EXEEXT when needed.
8287
8288 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8289
8290         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
8291
8292 2008-10-27  Bruno Haible  <bruno@clisp.org>
8293
8294         * tests/test-lstat.c: Include <stdio.h>.
8295
8296 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8297
8298         * modules/lstat-tests: New module.
8299         * tests/test-lstat.c: New file.
8300
8301 2008-10-26  Jim Meyering  <meyering@redhat.com>
8302
8303         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
8304
8305 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8306             Bruno Haible  <bruno@clisp.org>
8307
8308         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
8309         * modules/configmake (Include): Add a note that the include must come
8310         after all system headers.
8311         * lib/javaversion.c: Include configmake.h after all other includes.
8312
8313 2008-10-26  Bruno Haible  <bruno@clisp.org>
8314
8315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
8316         HAVE_STRUCT_RANDOM_DATA to 1.
8317         (gl_STDLIB_H): Simplify.
8318
8319 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8320
8321         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
8322         substitute HAVE_STRUCT_RANDOM_DATA.
8323         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
8324         random_data.
8325         * modules/stdlib (Makefile.am): Substitute
8326         HAVE_STRUCT_RANDOM_DATA.
8327
8328 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8329
8330         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
8331         * doc/gnulib-intro.texi (Copyright): Likewise.
8332
8333 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8334
8335         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
8336         findings.
8337
8338 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
8339             Bruno Haible  <bruno@clisp.org>
8340
8341         * lib/unistd.in.h: Include <winsock2.h>.
8342         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
8343         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
8344         Provide dummy declarations.
8345         (gethostname): Override.
8346         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
8347         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
8348         gl_PREREQ_SYS_H_WINSOCK2.
8349         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
8350         * doc/posix-functions/gethostname.texi: More details.
8351
8352 2008-10-25  Bruno Haible  <bruno@clisp.org>
8353
8354         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8355         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
8356         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
8357
8358         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
8359         here ...
8360         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
8361         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
8362         gl_UNISTD_H_DEFAULTS.
8363
8364 2008-10-25  Eric Blake  <ebb9@byu.net>
8365
8366         signbit: avoid spurious compiler failure
8367         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
8368         declarations inside function.
8369
8370 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8371             Bruno Haible  <bruno@clisp.org>
8372
8373         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
8374         * modules/random_r (Depends-on): Add stdint.
8375
8376 2008-10-24  Bruno Haible  <bruno@clisp.org>
8377
8378         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
8379         Eggert.
8380         * modules/strerror (License): Likewise.
8381
8382 2008-10-24  Jim Meyering  <meyering@redhat.com>
8383
8384         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
8385         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
8386
8387 2008-10-24  Eric Blake  <ebb9@byu.net>
8388
8389         getgroups: fix compilation when getgroups is available
8390         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
8391         but with <config.h> override of getgroups disabled.
8392
8393 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8394
8395         * doc/gnulib.texi (Header files): Add note about C++ problems.
8396         Explained by Bruno Haible <bruno@clisp.org>.
8397
8398 2008-10-23  Bruno Haible  <bruno@clisp.org>
8399
8400         Define a dummy SA_NODEFER macro on Interix.
8401         * lib/signal.in.h (SA_NODEFER): Define fallback.
8402         Reported by Aleksey Cheusov <cheusov@tut.by> via
8403         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
8404
8405 2008-10-23  Bruno Haible  <bruno@clisp.org>
8406
8407         * modules/freadahead (License): Change to LGPLv2+.
8408         Suggested by Simon Josefsson.
8409
8410 2008-10-23  Jim Meyering  <meyering@redhat.com>
8411
8412         random_r: new module
8413         * modules/random_r: New file.
8414         * m4/random_r.m4: New file.
8415         * lib/random_r.c: New file, from glibc.
8416         * modules/random_r-tests: New file.
8417         * tests/test-random_r.c: New file.
8418         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
8419          Declare.
8420         (RAND_MAX): Define.
8421         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
8422         * modules/stdlib: Substitute them, too.
8423         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
8424         * doc/glibc-functions/initstate_r.texi: Mention the new module.
8425         * doc/glibc-functions/random_r.texi: Likewise.
8426         * doc/glibc-functions/setstate_r.texi: Likewise.
8427         * doc/glibc-functions/srandom_r.texi: Likewise.
8428         * config/srclist.txt: Mention it.
8429
8430 2008-10-23  David Lutterkort  <lutter@redhat.com>
8431
8432         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
8433         link requirement
8434
8435 2008-10-23  Jim Meyering  <meyering@redhat.com>
8436
8437         selinux-h: mark parameters of stub functions as intentionally unused
8438         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
8439         * lib/se-context.in.h: Likewise.
8440
8441 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8442
8443         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
8444
8445 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8446
8447         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
8448
8449 2008-10-22  Eric Blake  <ebb9@byu.net>
8450
8451         glthread/thread: avoid compiler warning
8452         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
8453         Add unreachable abort to silence compiler.
8454
8455 2008-10-22  Eric Blake  <ebb9@byu.net>
8456
8457         netdb: also supply struct addrinfo for cygwin 1.5.x
8458         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
8459         older cygwin.
8460         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
8461         cygwin.
8462         * doc/posix-headers/netdb.texi (netdb.h): Document this.
8463
8464 2008-10-22  Bruno Haible  <bruno@clisp.org>
8465
8466         * users.txt: Update entry about pspp.
8467
8468 2008-10-21  Bruno Haible  <bruno@clisp.org>
8469
8470         Simplification.
8471         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
8472         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
8473
8474         Simplification.
8475         * lib/ioctl.c (ioctl): Don't undefine.
8476         * lib/socket.c (socket): Don't undefine.
8477
8478         Remove unused module indicator macros.
8479         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
8480         GNULIB_$1 as a C macro.
8481
8482         * doc/posix-functions/close.texi: Undo last change.
8483         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
8484         Windows platforms.
8485
8486 2008-10-21  Bruno Haible  <bruno@clisp.org>
8487
8488         Add gethostname() declaration to <unistd.h>.
8489         * lib/unistd.in.h (gethostname): New declaration.
8490         * lib/gethostname.c: Include <unistd.h>.
8491         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
8492         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
8493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
8494         and HAVE_GETHOSTNAME.
8495         * modules/gethostname (Depends-on): Add unistd.
8496         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8497         (Include): Specify <unistd.h>.
8498         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
8499         HAVE_GETHOSTNAME.
8500         * tests/test-gethostname.c: Include <unistd.h> first.
8501
8502 2008-10-21  Bruno Haible  <bruno@clisp.org>
8503
8504         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
8505         * modules/select-tests (Depends-on): Likewise.
8506         Reported by Simon Josefsson.
8507
8508 2008-10-21  Simon Josefsson  <simon@josefsson.org>
8509
8510         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
8511         * lib/accept.c: New file, based on winsock.c.
8512         * lib/bind.c: New file, based on winsock.c.
8513         * lib/connect.c: New file, based on winsock.c.
8514         * lib/getpeername.c: New file, based on winsock.c.
8515         * lib/getsockname.c: New file, based on winsock.c.
8516         * lib/getsockopt.c: New file, based on winsock.c.
8517         * lib/ioctl.c: New file, based on winsock.c.
8518         * lib/listen.c: New file, based on winsock.c.
8519         * lib/recv.c: New file, based on winsock.c.
8520         * lib/recvfrom.c: New file, based on winsock.c.
8521         * lib/send.c: New file, based on winsock.c.
8522         * lib/sendto.c: New file, based on winsock.c.
8523         * lib/setsockopt.c: New file, based on winsock.c.
8524         * lib/shutdown.c: New file, based on winsock.c.
8525         * lib/socket.c: New file, based on winsock.c.
8526         * lib/w32sock.h: New file, based on winsock.c.
8527         * lib/winsock.c: Remove file.
8528         * modules/accept: Likewise.
8529         * modules/bind: Likewise.
8530         * modules/connect: Likewise.
8531         * modules/getpeername: Likewise.
8532         * modules/getsockname: Likewise.
8533         * modules/getsockopt: Likewise.
8534         * modules/ioctl: Likewise.
8535         * modules/listen: Likewise.
8536         * modules/recv: Likewise.
8537         * modules/recvfrom: Likewise.
8538         * modules/send: Likewise.
8539         * modules/sendto: Likewise.
8540         * modules/setsockopt: Likewise.
8541         * modules/shutdown: Likewise.
8542         * modules/socket: Use socket.c instead of winsock.c.
8543         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
8544         * doc/posix-functions/accept.texi: Doc fix.
8545         * doc/posix-functions/bind.texi: Doc fix.
8546         * doc/posix-functions/close.texi: Doc fix.
8547         * doc/posix-functions/connect.texi: Doc fix.
8548         * doc/posix-functions/getpeername.texi: Doc fix.
8549         * doc/posix-functions/getsockname.texi: Doc fix.
8550         * doc/posix-functions/getsockopt.texi: Doc fix.
8551         * doc/posix-functions/ioctl.texi: Doc fix.
8552         * doc/posix-functions/listen.texi: Doc fix.
8553         * doc/posix-functions/recv.texi: Doc fix.
8554         * doc/posix-functions/recvfrom.texi: Doc fix.
8555         * doc/posix-functions/send.texi: Doc fix.
8556         * doc/posix-functions/sendto.texi: Doc fix.
8557         * doc/posix-functions/setsockopt.texi: Doc fix.
8558         * doc/posix-functions/shutdown.texi: Doc fix.
8559         * doc/posix-functions/socket.texi: Doc fix.
8560
8561 2008-10-20  Bruno Haible  <bruno@clisp.org>
8562
8563         Take into account the role of SIGABRT_COMPAT on Windows 2008.
8564         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
8565         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
8566         as an alias for SIGABRT.
8567         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
8568         (sigaction): Map it to SIGABRT.
8569         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
8570
8571 2008-10-20  Bruno Haible  <bruno@clisp.org>
8572
8573         * lib/fts.c: Don't include lstat.h.
8574         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
8575
8576         Move the lstat() declaration to <sys/stat.h>.
8577         * lib/lstat.h: Remove file.
8578         * lib/sys_stat.in.h: Add special invocation convention.
8579         (lstat): New declaration.
8580         * lib/lstat.c (orig_lstat): New function.
8581         (rpl_lstat): Use orig_lstat instead of lstat.
8582         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
8583         AC_C_INLINE. Set REPLACE_LSTAT.
8584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
8585         and REPLACE_LSTAT.
8586         * modules/lstat (Files): Remove lib/lstat.h.
8587         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8588         (Include): Specify <sys/stat.h> instead of lstat.h.
8589         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
8590         REPLACE_LSTAT.
8591         * NEWS: Mention the change.
8592
8593 2008-10-20  Bruno Haible  <bruno@clisp.org>
8594
8595         * modules/posix_spawn-tests: New file.
8596         * tests/test-posix_spawn3.c: New file.
8597
8598 2008-10-20  Bruno Haible  <bruno@clisp.org>
8599
8600         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
8601         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
8602         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
8603         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
8604         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
8605
8606 2008-10-20  Bruno Haible  <bruno@clisp.org>
8607
8608         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
8609         of posix_spawn on AIX 5.3.
8610
8611 2008-10-20  Bruno Haible  <bruno@clisp.org>
8612
8613         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
8614
8615 2008-10-20  Bruno Haible  <bruno@clisp.org>
8616
8617         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
8618         of AC_LANG_PROGRAM.
8619
8620 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8621
8622         * lib/netdb.in.h: Don't define GNU specific constants until they
8623         are supported or needed.  Reported by Bruno Haible
8624         <bruno@clisp.org>.
8625
8626 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8627
8628         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
8629
8630 2008-10-20  Simon Josefsson  <simon@josefsson.org>
8631
8632         * lib/getaddrinfo.h: Remove file.
8633         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
8634         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
8635         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
8636         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
8637         * modules/netdb: Substitute GNULIB_GETADDRINFO.
8638         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
8639         * tests/test-getaddrinfo.c: Likewise.
8640         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
8641         * NEWS: Mention change.
8642
8643 2008-10-19  Bruno Haible  <bruno@clisp.org>
8644
8645         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
8646
8647 2008-10-19  Bruno Haible  <bruno@clisp.org>
8648
8649         * lib/wait-process.c: Include simply <sys/wait.h>.
8650         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
8651         WIFSTOPPED): Remove fallback definitions.
8652         * modules/wait-process (Depends-on): Add sys_wait.
8653
8654         New module 'sys_wait'.
8655         * modules/sys_wait: New file.
8656         * lib/sys_wait.in.h: New file, partially copied from
8657         lib/wait-process.c.
8658         * m4/sys_wait_h.m4: New file.
8659         * doc/posix-headers/sys_wait.texi: Mention the new module.
8660
8661 2008-10-19  Bruno Haible  <bruno@clisp.org>
8662
8663         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
8664
8665 2008-10-19  Bruno Haible  <bruno@clisp.org>
8666
8667         Assume that waitpid() fills an 'int' status, not a 'union wait'.
8668         * lib/wait-process.c (WAIT_T): Remove type.
8669         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
8670         (wait_subprocess): Update.
8671
8672 2008-10-19  Bruno Haible  <bruno@clisp.org>
8673
8674         New module 'atoll'.
8675         * modules/atoll: New file.
8676         * lib/stdlib.in.h (atoll): New declaration.
8677         * lib/atoll.c: New file, from glibc with modifications.
8678         * m4/atoll.m4: New file.
8679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
8680         HAVE_ATOLL.
8681         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
8682         * doc/posix-functions/atoll.texi: Mention the new module.
8683
8684 2008-10-19  Bruno Haible  <bruno@clisp.org>
8685
8686         Add strtoull() declaration to <stdlib.h>.
8687         * lib/stdlib.in.h (strtoull): New declaration.
8688         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
8689         Set HAVE_STRTOULL.
8690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
8691         HAVE_STRTOULL.
8692         * modules/strtoull (Depends-on): Add stdlib.
8693         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8694         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
8695         HAVE_STRTOULL.
8696
8697 2008-10-19  Bruno Haible  <bruno@clisp.org>
8698
8699         Add strtoll() declaration to <stdlib.h>.
8700         * lib/stdlib.in.h (strtoll): New declaration.
8701         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
8702         Set HAVE_STRTOLL.
8703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
8704         HAVE_STRTOLL.
8705         * modules/strtoll (Depends-on): Add stdlib.
8706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8707         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
8708
8709 2008-10-19  Bruno Haible  <bruno@clisp.org>
8710
8711         * modules/bcopy (Depends-on): Add strings.
8712         (Include): Specify <strings.h>.
8713
8714 2008-10-19  Bruno Haible  <bruno@clisp.org>
8715
8716         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
8717
8718 2008-10-19  Bruno Haible  <bruno@clisp.org>
8719
8720         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
8721         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
8722         mingw.
8723
8724 2008-10-19  Bruno Haible  <bruno@clisp.org>
8725
8726         * lib/atanl.c: Don't include isnanl.h.
8727         * lib/cosl.c: Likewise.
8728         * lib/ldexpl.c: Likewise.
8729         * lib/logl.c: Likewise.
8730         * lib/sinl.c: Likewise.
8731         * lib/sqrtl.c: Likewise.
8732         * lib/tanl.c: Likewise.
8733
8734         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
8735         * lib/isnanf.h: Remove file.
8736         * lib/isnand.h: Remove file.
8737         * lib/isnanl.h: Remove file.
8738         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
8739         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
8740         macros.
8741         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
8742         HAVE_ISNANF, don't define it as a C macro.
8743         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
8744         HAVE_ISNAND, don't define it as a C macro.
8745         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
8746         HAVE_ISNANL, don't define it as a C macro.
8747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
8748         HAVE_ISNAN[FDL].
8749         * modules/isnanf (Files): Remove lib/isnanf.h.
8750         (Depends-on): Add math.
8751         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8752         (Include): Specify <math.h> instead of isnanf.h.
8753         * modules/isnand (Files): Remove lib/isnand.h.
8754         (Depends-on): Add math.
8755         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8756         (Include): Specify <math.h> instead of isnand.h.
8757         * modules/isnanl (Files): Remove lib/isnanl.h.
8758         (Depends-on): Add math.
8759         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8760         (Include): Specify <math.h> instead of isnanl.h.
8761         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
8762         HAVE_ISNAN[FDL].
8763         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
8764         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
8765         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
8766         * NEWS: Mention the change.
8767
8768 2008-10-18  Bruno Haible  <bruno@clisp.org>
8769
8770         Add getusershell(), setusershell(), endusershell() declarations to
8771         <unistd.h>.
8772         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
8773         declarations.
8774         * lib/getusershell.c: Include unistd.h.
8775         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
8776         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8777         HAVE_GETUSERSHELL.
8778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
8779         and HAVE_GETUSERSHELL.
8780         * modules/getusershell (Depends-on): Add unistd, extensions.
8781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8782         (Include): Specify <unistd.h>.
8783         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
8784         HAVE_GETUSERSHELL.
8785
8786 2008-10-18  Bruno Haible  <bruno@clisp.org>
8787
8788         Add a getloadavg() declaration to <stdlib.h>.
8789         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
8790         getloadavg declaration.
8791         (getloadavg): New declaration.
8792         * lib/getloadavg.c: Include <stdlib.h> first.
8793         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
8794         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
8795         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
8796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
8797         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8798         * modules/getloadavg (Depends-on): Add stdlib, extensions.
8799         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8800         (Include): Specify <stdlib.h>.
8801         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
8802         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
8803
8804 2008-10-18  Bruno Haible  <bruno@clisp.org>
8805
8806         * lib/dirchownmod.c: Don't include lchmod.h.
8807
8808         Move the lchmod() declaration to <sys/stat.h>.
8809         * lib/lchmod.h: Remove file.
8810         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
8811         (lchmod): New declaration, moved here from lib/lchown.h.
8812         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
8813         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
8814         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
8815         and HAVE_LCHMOD.
8816         * modules/lchmod (Files): Remove lib/lchmod.h.
8817         (Depends-on): Add sys_stat, extensions.
8818         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
8819         (Include): Specify <sys/stat.h> instead of lchmod.h.
8820         * modules/sys_stat (Depends-on): Add link-warning.
8821         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
8822         definition of GL_LINK_WARNING.
8823         * NEWS: Mention the change.
8824
8825 2008-10-18  Bruno Haible  <bruno@clisp.org>
8826
8827         * lib/fchdir.c: Don't include dirfd.h.
8828         * lib/fts.c: Likewise.
8829         * lib/getcwd.c: Likewise.
8830         * lib/glob.c: Likewise.
8831
8832         Move the dirfd() declaration to <dirent.h>.
8833         * lib/dirfd.h: Remove file.
8834         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
8835         (dirfd): New declaration.
8836         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
8837         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
8838         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
8839         HAVE_DECL_DIRFD.
8840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
8841         HAVE_DECL_DIRFD.
8842         * modules/dirfd (Files): Remove lib/dirfd.h.
8843         (Depends-on): Add dirent, extensions.
8844         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
8845         (Include): Specify <dirent.h> instead of dirfd.h.
8846         * modules/dirent (Depends-on): Add link-warning.
8847         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
8848         definition of GL_LINK_WARNING.
8849         * NEWS: Mention the change.
8850
8851 2008-10-18  Bruno Haible  <bruno@clisp.org>
8852
8853         Move the euidaccess() declaration to <unistd.h>.
8854         * lib/euidaccess.h: Remove file.
8855         * lib/unistd.in.h (euidaccess): New declaration.
8856         * lib/euidaccess.c: Don't include euidaccess.h.
8857         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
8858         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
8859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
8860         and HAVE_EUIDACCESS.
8861         * modules/euidaccess (Files): Remove lib/euidaccess.h.
8862         (Depends-on): Add unistd.
8863         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8864         (Include): Specify <unistd.h> instead of euidaccess.h.
8865         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
8866         HAVE_EUIDACCESS.
8867         * NEWS: Mention the change.
8868
8869 2008-10-18  Bruno Haible  <bruno@clisp.org>
8870
8871         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
8872
8873         Move the getdomainname() declaration to <unistd.h>.
8874         * lib/getdomainname.h: Remove file.
8875         * lib/unistd.in.h (getdomainname): New declaration.
8876         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
8877         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8878         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
8879         HAVE_GETDOMAINNAME.
8880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8881         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
8882         * modules/getdomainname (Files): Remove lib/getdomainname.h.
8883         (Depends-on): Add unistd, extensions.
8884         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8885         (Includes): Specify <unistd.h> instead of getdomainname.h.
8886         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
8887         HAVE_GETDOMAINNAME.
8888         * NEWS: Mention the change.
8889
8890 2008-10-18  Bruno Haible  <bruno@clisp.org>
8891
8892         * modules/dirent: New file.
8893         * m4/dirent_h.m4: New file.
8894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
8895         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
8896         * modules/fchdir (Files): Remove lib/dirent.in.h.
8897         (Depends-on): Add dirent.
8898         (Makefile.am): Move rules to modules/dirent.
8899         * doc/posix-headers/dirent.texi: Mention the new module.
8900
8901 2008-10-18  Bruno Haible  <bruno@clisp.org>
8902
8903         Avoid -Wunused-parameter warnings in public gnulib header files.
8904         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
8905         macro.
8906         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
8907
8908 2008-10-18  Bruno Haible  <bruno@clisp.org>
8909
8910         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
8911         * doc/glibc-functions/error.texi: Mention the module 'error'.
8912         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
8913         * doc/glibc-functions/getdomainname.texi: Mention the module
8914         'getdomainname'.
8915         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
8916         * doc/glibc-functions/getpagesize.texi: Mention the module
8917         'getpagesize'.
8918         * doc/glibc-functions/getusershell.texi: Mention the module
8919         'getusershell'.
8920         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
8921         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
8922         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
8923         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
8924         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
8925         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
8926         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
8927         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
8928         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
8929         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
8930         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
8931         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
8932         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
8933         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
8934
8935 2008-10-17  Bruno Haible  <bruno@clisp.org>
8936
8937         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
8938         HP-UX and IRIX, use -0.0L.
8939         * tests/test-ceill.c (minus_zero): Likewise.
8940         * tests/test-floorl.c (minus_zero): Likewise.
8941         * tests/test-frexpl.c (minus_zero): Likewise.
8942         * tests/test-isnan.c (minus_zerol): Likewise.
8943         * tests/test-isnanl.h (minus_zero): Likewise.
8944         * tests/test-ldexpl.c (minus_zero): Likewise.
8945         * tests/test-roundl.c (minus_zero): Likewise.
8946         * tests/test-signbit.c (minus_zerol): Likewise.
8947         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8948         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8949         * tests/test-truncl.c (minus_zero): Likewise.
8950         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8951         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8952         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
8953         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8954
8955 2008-10-17  Bruno Haible  <bruno@clisp.org>
8956
8957         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
8958         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
8959         that it gets activated only for gcc >= 3.0.
8960         * lib/dirent.in.h: Likewise.
8961         * lib/errno.in.h: Likewise.
8962         * lib/fcntl.in.h: Likewise.
8963         * lib/float.in.h: Likewise.
8964         * lib/iconv.in.h: Likewise.
8965         * lib/inttypes.in.h: Likewise.
8966         * lib/locale.in.h: Likewise.
8967         * lib/math.in.h: Likewise.
8968         * lib/netdb.in.h: Likewise.
8969         * lib/netinet_in.in.h: Likewise.
8970         * lib/search.in.h: Likewise.
8971         * lib/signal.in.h: Likewise.
8972         * lib/spawn.in.h: Likewise.
8973         * lib/stdarg.in.h: Likewise.
8974         * lib/stdint.in.h: Likewise.
8975         * lib/stdio.in.h: Likewise.
8976         * lib/stdlib.in.h: Likewise.
8977         * lib/string.in.h: Likewise.
8978         * lib/strings.in.h: Likewise.
8979         * lib/sys_file.in.h: Likewise.
8980         * lib/sys_ioctl.in.h: Likewise.
8981         * lib/sys_select.in.h: Likewise.
8982         * lib/sys_socket.in.h: Likewise.
8983         * lib/sys_stat.in.h: Likewise.
8984         * lib/sys_time.in.h: Likewise.
8985         * lib/sysexits.in.h: Likewise.
8986         * lib/time.in.h: Likewise.
8987         * lib/unistd.in.h: Likewise.
8988         * lib/wchar.in.h: Likewise.
8989         * lib/wctype.in.h: Likewise.
8990         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8991
8992 2008-10-17  Jim Meyering  <meyering@redhat.com>
8993
8994         ignore-value: don't depend on inline module
8995         * modules/ignore-value (Depends-on): Remove 'inline'.
8996         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
8997         Suggestion from Bruno Haible.
8998
8999 2008-10-17  Bruno Haible  <bruno@clisp.org>
9000
9001         New implementation of condition variables for Win32.
9002         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
9003         (gl_linked_waitqueue_t): New type.
9004         (gl_cond_t): Use it.
9005         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
9006         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9007         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
9008         (glthread_cond_init_func, glthread_cond_wait_func,
9009         glthread_cond_timedwait_func, glthread_cond_signal_func,
9010         glthread_cond_broadcast_func, glthread_cond_destroy_func):
9011         Reimplemented on the basis of gl_linked_waitqueue_t.
9012         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
9013         gl_waitqueue_t.
9014         (gl_rwlock_t): Update.
9015         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
9016
9017 2008-10-17  Simon Josefsson  <simon@josefsson.org>
9018
9019         * modules/recvfrom (Depends-on): Add dependency on getpeername.
9020         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9021
9022 2008-10-17  Jim Meyering  <meyering@redhat.com>
9023
9024         ignore-value: new module
9025         * modules/ignore-value: New file.
9026         * lib/ignore-value.h: New file.
9027         * MODULES.html.sh (Compiler warning management): New section,
9028         just for this module.  More to come.
9029
9030 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9031
9032         open-safer.c: avoid 'signed and unsigned in conditional...' warning
9033         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
9034         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
9035
9036 2008-10-16  Jim Meyering  <meyering@redhat.com>
9037
9038         openat-die.c: avoid 'no previous prototype' warning
9039         * lib/openat-die.c: Include "openat.h".
9040         Reported by Reuben Thomas <rrt@sc3d.org>.
9041
9042 2008-10-16  Simon Josefsson  <simon@josefsson.org>
9043
9044         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
9045         * lib/netdb.in.h: Fix typo.
9046         Reported by Bruno Haible  <bruno@clisp.org>
9047
9048         * lib/netdb.in.h: Include sys/socket.h for platforms without
9049         netdb.h, to get structures like hostent on MinGW.
9050         * modules/netdb (Depends-on): Add sys_socket.
9051
9052 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9053
9054         * modules/netdb, modules/netdb-tests: New file.
9055         * m4/netdb_h.m4: New file.
9056         * lib/netdb.in.h: Add, currently just an empty file pending
9057         definitions.
9058         * tests/test-netdb.c: New file.
9059         * doc/posix-headers/netdb.texi: Mention that we replace it if
9060         needed.
9061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9062         netdb.
9063
9064 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9065
9066         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
9067         with code.
9068
9069 2008-10-13  Bruno Haible  <bruno@clisp.org>
9070
9071         * lib/glthread/cond.c (glthread_cond_wait_func,
9072         glthread_cond_timedwait_func): Add a comment.
9073
9074 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9075
9076         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
9077         * tests/test-select.c: Likewise,
9078
9079 2008-10-13  Bruno Haible  <bruno@clisp.org>
9080
9081         * lib/glthread/cond.c (glthread_cond_wait_func,
9082         glthread_cond_timedwait_func): Fix variable name.
9083         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9084
9085 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
9086
9087         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
9088         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
9089         struct sockaddr.sa_len.
9090         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
9091
9092 2008-10-13  Simon Josefsson  <simon@josefsson.org>
9093
9094         * build-aux/pmccabe2html: Add css and css_url parameters.
9095
9096 2008-10-12  Bruno Haible  <bruno@clisp.org>
9097
9098         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
9099         calling aclx_get.
9100         Reported by Rainer Tammer <tammer@tammer.net>.
9101
9102 2008-10-12  Bruno Haible  <bruno@clisp.org>
9103
9104         Use msvcrt aware primitives for creation/termination of Win32 threads.
9105         * lib/glthread/thread.c: Include <process.h>.
9106         (glthread_create_func): Use _beginthreadex instead of CreateThread.
9107         (wrapper_func): Update signature.
9108         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
9109
9110 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9111             Bruno Haible  <bruno@clisp.org>
9112
9113         Provide a Win32 implementation of the 'cond' module.
9114         * lib/glthread/cond.h [USE_WIN32]: New implementation.
9115         * lib/glthread/cond.c (glthread_cond_init_func,
9116         glthread_cond_wait_func, glthread_cond_timedwait_func,
9117         glthread_cond_signal_func, glthread_cond_broadcast_func,
9118         glthread_cond_destroy_func) [USE_WIN32]: New functions.
9119         * modules/cond (Dependencies): Add gettimeofday.
9120
9121 2008-10-11  Bruno Haible  <bruno@clisp.org>
9122
9123         Make sleep work on older versions of mingw.
9124         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
9125         only whether it exists.
9126         * doc/posix-functions/sleep.texi: Mention the problem with older
9127         versions of mingw.
9128
9129 2008-10-11  Bruno Haible  <bruno@clisp.org>
9130
9131         New module 'shutdown'.
9132         * modules/shutdown: New file.
9133         * lib/sys_socket.in.h (shutdown): New declaration.
9134         * lib/winsock.c (shutdown): New function.
9135         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9136         GNULIB_SHUTDOWN.
9137         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
9138         * doc/posix-functions/shutdown.texi: Document the new module.
9139
9140 2008-10-11  Jim Meyering  <meyering@redhat.com>
9141
9142         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
9143
9144 2008-10-11  Bruno Haible  <bruno@clisp.org>
9145
9146         New module 'fclose'.
9147         * modules/fclose: New file.
9148         * lib/stdio.in.h (fclose): New declaration.
9149         * lib/fclose.c: New file.
9150         * m4/fclose.m4: New file.
9151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
9152         REPLACE_FCLOSE.
9153         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
9154         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
9155         REPLACE_FCLOSE.
9156         * modules/close (Depends-on): fclose.
9157         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
9158
9159 2008-10-11  Bruno Haible  <bruno@clisp.org>
9160
9161         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
9162         set errno and don't call _close.
9163
9164 2008-10-10  Bruno Haible  <bruno@clisp.org>
9165
9166         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
9167         ACL, not afterwards. Fixes test failure on Cygwin.
9168
9169 2008-10-09  Ben Pfaff  <blp@gnu.org>
9170
9171         * build-aux/announce-gen: Fix gnulib version related part of usage
9172         message.  Die with a useful error message if no tarballs are
9173         found.
9174
9175 2008-10-10  Jim Meyering  <meyering@redhat.com>
9176
9177         bootstrap: use git's --depth=N option only if it's supported
9178         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
9179         recognize the --depth option.  Reported by Pádraig Brady.
9180
9181 2008-10-09  Bruno Haible  <bruno@clisp.org>
9182
9183         New module 'ioctl'.
9184         * modules/ioctl: New file.
9185         * lib/sys_socket.in.h (ioctl): Remove declaration.
9186         * lib/winsock.c: Include <sys/ioctl.h>.
9187         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
9188         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9189         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
9190         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
9191         * doc/posix-functions/ioctl.texi: Mention the new module.
9192
9193 2008-10-09  Bruno Haible  <bruno@clisp.org>
9194
9195         New module 'sys_ioctl'.
9196         * lib/sys_ioctl.in.h: New file.
9197         * m4/sys_ioctl_h.m4: New file.
9198         * modules/sys_ioctl: New file.
9199         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
9200
9201 2008-10-09  Bruno Haible  <bruno@clisp.org>
9202
9203         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
9204         * lib/winsock.c: Include <stdarg.h>.
9205         (rpl_ioctl): Change to second argument 'int' and then varargs.
9206
9207 2008-10-09  Bruno Haible  <bruno@clisp.org>
9208
9209         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
9210         when the sys_socket module is present and the system has <winsock2.h>.
9211
9212 2008-10-09  Bruno Haible  <bruno@clisp.org>
9213
9214         * doc/posix-functions/close.texi: Mention module 'close' instead of
9215         module 'sys_socket'.
9216
9217 2008-10-09  Bruno Haible  <bruno@clisp.org>
9218
9219         * doc/glibc-headers/sys_ioctl.texi: New file.
9220         * doc/gnulib.texi: Include it.
9221
9222 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9223             Bruno Haible  <bruno@clisp.org>
9224
9225         Combine the two replacements of 'close'.
9226         * lib/sys_socket.in.h (close): Define to a reminder to include
9227         <unistd.h>.
9228         (_gl_close_fd_maybe_socket): New declaration.
9229         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
9230         * lib/winsock.c (close): Remove undefinition.
9231         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
9232         needed for the gnulib module 'close'.
9233         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
9234         define to an error symbol or to a warning, if suitable.
9235         * lib/close.c: Include <sys/socket.h>.
9236         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
9237         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
9238         UNISTD_H_HAVE_WINSOCK2_H.
9239         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
9240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9241         UNISTD_H_HAVE_WINSOCK2_H.
9242         * modules/sys_socket (Files): Add m4/unistd_h.m4.
9243         (configure.ac): Set a module indicator.
9244         (Makefile.am): Substitute GNULIB_CLOSE.
9245         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
9246         * modules/poll-tests (Depends-on): Add close.
9247         * modules/select-tests (Depends-on): Likewise.
9248
9249 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9250             Bruno Haible  <bruno@clisp.org>
9251
9252         New module 'close'.
9253         * modules/close: New file.
9254         * lib/unistd.in.h (close): Move declaration out of the
9255         FCHDIR_REPLACEMENT scope.
9256         (_gl_unregister_fd): New declaration.
9257         * lib/close.c: New file.
9258         * lib/fchdir.c (rpl_close): Remove function.
9259         * m4/close.m4: New file.
9260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9261         close.
9262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
9263         REPLACE_CLOSE.
9264         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
9265         REPLACE_CLOSE.
9266         * modules/fchdir (Depends-on): Add close.
9267
9268 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9269             Bruno Haible  <bruno@clisp.org>
9270
9271         * lib/fcntl.in.h (open): Simplify conditionals.
9272         (_gl_register_fd): New declaration.
9273         * lib/fchdir.c (rpl_open): Remove function.
9274         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
9275         also.
9276         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
9277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9278         open.
9279
9280 2008-10-09  Jim Meyering  <meyering@redhat.com>
9281
9282         GNUmakefile: use the more name-space-friendly "_version"
9283         * top/GNUmakefile (_dummy): Update.
9284         (_version): Rename from "version".
9285
9286 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9287             Bruno Haible  <bruno@clisp.org>
9288
9289         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
9290         rpl_close.
9291         (_gl_register_fd): New function, extracted from rpl_open.
9292         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
9293         (rpl_open, rpl_opendir): Use _gl_register_fd.
9294
9295 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9296
9297         Fix organization of 'open' replacement.
9298         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
9299         (gl_FUNC_OPEN): Use it.
9300         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
9301
9302 2008-10-08  Bruno Haible  <bruno@clisp.org>
9303
9304         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
9305
9306 2008-10-08  Simon Josefsson  <simon@josefsson.org>
9307
9308         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
9309         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
9310         listen).
9311
9312 2008-10-08  Eric Blake  <ebb9@byu.net>
9313
9314         GNUmakefile: add 'make version' target
9315         * top/GNUmakefile (_curr-ver): Split version update rules...
9316         (version): ...into a target.
9317
9318 2008-10-07  Bruno Haible  <bruno@clisp.org>
9319
9320         Use a more portable replacement expression for -0.0L.
9321         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
9322         instead of -0.0L. Fix m4 quotation.
9323
9324         * tests/test-signbit.c: Include <float.h>.
9325         (minus_zero): New variable.
9326         (test_signbitl): Use minus_zero instead of -zero.
9327         * modules/signbit-tests (Depends-on): Add float.
9328
9329         * tests/test-ceill.c: Include <float.h>.
9330         (zero): Remove variable.
9331         (minus_zero): New variable.
9332         (main): Use minus_zero instead of -zero.
9333         * modules/ceill-tests (Depends-on): Add float.
9334
9335         * tests/test-floorl.c: Include <float.h>.
9336         (zero): Remove variable.
9337         (minus_zero): New variable.
9338         (main): Use minus_zero instead of -zero.
9339         * modules/floorl-tests (Depends-on): Add float.
9340
9341         * tests/test-roundl.c: Include <float.h>.
9342         (zero): Remove variable.
9343         (minus_zero): New variable.
9344         (main): Use minus_zero instead of -zero.
9345         * modules/roundl-tests (Depends-on): Add float.
9346
9347         * tests/test-truncl.c: Include <float.h>.
9348         (zero): Remove variable.
9349         (minus_zero): New variable.
9350         (main): Use minus_zero instead of -zero.
9351         * modules/truncl-tests (Depends-on): Add float.
9352
9353         * tests/test-frexpl.c (zero): Remove variable.
9354         (minus_zero): New variable.
9355         (main): Use minus_zero instead of -zero.
9356         * modules/frexpl-tests (Depends-on): Add float.
9357
9358         * tests/test-isnan.c (zerol): Remove variable.
9359         (minus_zerol): New variable.
9360         (test_long_double): Use minus_zerol instead of -zerol.
9361         * modules/isnan-tests (Depends-on): Add float.
9362
9363         * tests/test-isnanl.h (zero): Remove variable.
9364         (minus_zero): New variable.
9365         (main): Use minus_zero instead of -zero.
9366         * modules/isnanl-nolibm-tests (Depends-on): Add float.
9367         * modules/isnanl-tests (Depends-on): Add float.
9368
9369         * tests/test-ldexpl.c (zero): Remove variable.
9370         (minus_zero): New variable.
9371         (main): Use minus_zero instead of -zero.
9372         * modules/ldexpl-tests (Depends-on): Add float.
9373
9374         * tests/test-snprintf-posix.h (zerol): Remove variable.
9375         (minus_zerol): New variable.
9376         (test_function): Use minus_zerol instead of -zerol.
9377         * modules/snprintf-posix-tests (Depends-on): Add float.
9378         * modules/vsnprintf-posix-tests (Depends-on): Add float.
9379
9380         * tests/test-sprintf-posix.h (zerol): Remove variable.
9381         (minus_zerol): New variable.
9382         (test_function): Use minus_zerol instead of -zerol.
9383         * modules/sprintf-posix-tests (Depends-on): Add float.
9384         * modules/vsprintf-posix-tests (Depends-on): Add float.
9385
9386         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
9387         (minus_zerol): New variable.
9388         (test_function): Use minus_zerol instead of -zerol.
9389         * modules/vasnprintf-posix-tests (Depends-on): Add float.
9390
9391         * tests/test-vasprintf-posix.c (zerol): Remove variable.
9392         (minus_zerol): New variable.
9393         (test_function): Use minus_zerol instead of -zerol.
9394         * modules/vasprintf-posix-tests (Depends-on): Add float.
9395
9396 2008-10-07  Simon Josefsson  <simon@josefsson.org>
9397
9398         * MODULES.html.sh (Support for building documentation): Mention
9399         pmccabe2html.  Sort entries.
9400
9401         Add pmccabe2html module, from gnupdf.
9402         * build-aux/pmccabe.css: New file.
9403         * build-aux/pmccabe2html: New file.
9404         * m4/pmccabe2html.m4: New file.
9405         * modules/pmccabe2html: New file.
9406
9407 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
9408
9409         flock: new module
9410         * MODULES.html.sh: Add to list of modules.
9411         * lib/flock.c: flock implementation for Windows and Unix systems
9412         which have fcntl.
9413         * doc/glibc-functions/flock.texi: Update documentation.
9414         * lib/sys_file.in.h: <sys/file.h> header file.
9415         * m4/flock.m4: M4 macros.
9416         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
9417         * modules/flock: flock module.
9418         * modules/flock-tests: flock tests module.
9419         * modules/sys_file: sys/file.h module.
9420         * tests/test-flock.c: test suite for flock.
9421
9422 2008-10-06  Jim Meyering  <meyering@redhat.com>
9423
9424         bootstrap: check for LT_INIT more portably still ;-)
9425         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
9426         Spotted by Bruno Haible.
9427
9428 2008-10-06  Eric Blake  <ebb9@byu.net>
9429
9430         test-signbit: avoid tripping Irix cc bug on -0.0L
9431         * tests/test-signbit.c (minus_zerol): Delete, and replace with
9432         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
9433         entire testsuite consistent and avoids an Irix 6.2 bug.
9434
9435 2008-10-05  Bruno Haible  <bruno@clisp.org>
9436             Jim Meyering  <jim@meyering.net>
9437
9438         Add an option for ignoring EPIPE during close_stdout.
9439         * lib/closeout.h: Include <stdbool.h>.
9440         (close_stdout_set_ignore_EPIPE): New declaration.
9441         * lib/closeout.c: Include <stdbool.h>.
9442         (ignore_EPIPE): New variable.
9443         (close_stdout_set_ignore_EPIPE): New function.
9444         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
9445         * lib/close-stream.c (close_stream): Mention the possible EPIPE
9446         failure.
9447         * modules/closeout (Depends-on): Add stdbool.
9448
9449 2008-10-05  Bruno Haible  <bruno@clisp.org>
9450
9451         * modules/accept: New file.
9452         * modules/bind: New file.
9453         * modules/connect: New file.
9454         * modules/getpeername: New file.
9455         * modules/getsockname: New file.
9456         * modules/getsockopt: New file.
9457         * modules/listen: New file.
9458         * modules/recv: New file.
9459         * modules/recvfrom: New file.
9460         * modules/send: New file.
9461         * modules/sendto: New file.
9462         * modules/setsockopt: New file.
9463         * modules/socket: New file.
9464         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
9465         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9466         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
9467         the particular module is requested. Add a link warning when the
9468         particular module is not requested.
9469         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
9470         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
9471         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
9472         the particular module is requested.
9473         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
9474         gl_SYS_SOCKET_H_DEFAULTS): New macros.
9475         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
9476         * modules/sys_socket (Depends-on): Add link-warning.
9477         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
9478         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
9479         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
9480         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
9481         GL_LINK_WARNING.
9482         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
9483         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
9484         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
9485         * doc/posix-functions/getpeername.texi: Mention the new module
9486         'getpeername'.
9487         * doc/posix-functions/getsockname.texi: Mention the new module
9488         'getsockname'.
9489         * doc/posix-functions/getsockopt.texi: Mention the new module
9490         'getsockopt'.
9491         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
9492         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
9493         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
9494         * doc/posix-functions/send.texi: Mention the new module 'send'.
9495         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
9496         * doc/posix-functions/setsockopt.texi: Mention the new module
9497         'setsockopt'.
9498         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
9499         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
9500         listen, connect, accept.
9501         * modules/select-tests (Depends-on): Likewise.
9502
9503 2008-10-05  Bruno Haible  <bruno@clisp.org>
9504
9505         * lib/winsock.c (strerror): Remove unused #undef.
9506         (rpl_close): Remove unused local variable.
9507
9508         * modules/sys_socket (Depends-on); Add errno.
9509
9510 2008-10-05  Bruno Haible  <bruno@clisp.org>
9511
9512         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
9513         (select): Add a link warning when the 'select' module is not used.
9514         * modules/sys_select (Depends-on): Add link-warning.
9515         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
9516         Suggested by Paolo Bonzini.
9517
9518 2008-10-05  Jim Meyering  <meyering@redhat.com>
9519
9520         bootstrap: check for LT_INIT more portably
9521         * build-aux/bootstrap: Avoid using grep -E, since it's not
9522         portable enough.  Suggestion from Bruno Haible.
9523
9524 2008-10-05  Bruno Haible  <bruno@clisp.org>
9525
9526         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
9527         as being fixed by gnulib.
9528
9529 2008-10-05  Bruno Haible  <bruno@clisp.org>
9530
9531         * modules/select-tests: New file, mostly copied from
9532         modules/sys_select-tests.
9533         * tests/test-select.c: New file, mostly copied from
9534         tests/test-sys_select.c.
9535         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
9536         * modules/sys_select-tests (Depends-on): Remove all dependencies.
9537         (Makefile.am): Remove test_sys_select_LDADD.
9538
9539         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
9540         to an undefined symbol, for an error message.
9541         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
9542         (gl_SYS_SELECT_H_DEFAULTS): New macro.
9543         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
9544         winsock-select.c here.
9545         * modules/sys_select (Files): Remove lib/winsock-select.c.
9546         (Depends-on): Remove alloca.
9547         (Makefile.am): Substitute GNULIB_SELECT.
9548         * modules/select: New file.
9549         * doc/posix-functions/select.texi: Update.
9550
9551 2008-10-05  Bruno Haible  <bruno@clisp.org>
9552
9553         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
9554         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
9555         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
9556         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
9557         getdtablesize.
9558         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9559         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9560
9561 2008-10-05  Bruno Haible  <bruno@clisp.org>
9562
9563         * modules/getdtablesize-tests: New file.
9564         * tests/test-getdtablesize.c: New file.
9565
9566         New module 'getdtablesize'.
9567         * lib/unistd.in.h (getdtablesize): New declaration.
9568         * lib/getdtablesize.c: New file.
9569         * m4/getdtablesize.m4: New file.
9570         * modules/getdtablesize: New file.
9571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9572         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
9573         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
9574         HAVE_GETDTABLESIZE.
9575         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
9576
9577 2008-10-05  Bruno Haible  <bruno@clisp.org>
9578
9579         * modules/sched (Makefile.am): Fix typo.
9580         Reported by Simon Josefsson.
9581
9582 2008-10-05  Jim Meyering  <meyering@redhat.com>
9583
9584         bootstrap: check for LT_INIT, too
9585         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
9586         are deprecated.  Suggestion from Ralf Wildenhues.
9587
9588 2008-10-05  Bruno Haible  <bruno@clisp.org>
9589
9590         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
9591         overriding them by ours.
9592         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
9593
9594 2008-10-05  Jim Meyering  <meyering@redhat.com>
9595
9596         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
9597         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
9598         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
9599
9600 2008-10-04  Bruno Haible  <bruno@clisp.org>
9601
9602         * modules/dup2 (License): Change to LGPLv2+.
9603         * modules/sleep (License): Likewise.
9604         * modules/perror (License): Likewise.
9605         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
9606         Blake.
9607         * modules/signal (License): Likewise.
9608         * modules/sigprocmask (License): Likewise.
9609         * modules/raise (License): Change to LGPLv2+, with approval by Jim
9610         Meyering.
9611
9612 2008-10-04  Bruno Haible  <bruno@clisp.org>
9613
9614         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
9615         Reported by Rainer Tammer <tammer@tammer.net>.
9616
9617 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
9618             Bruno Haible  <bruno@clisp.org>
9619
9620         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
9621         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
9622         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
9623
9624 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
9625
9626         filevercmp: new module
9627         * lib/filevercmp.h: New function filevercmp comparing version strings.
9628         * lib/filevercmp.c: Implementation of filevercmp function.
9629         * modules/filevercmp: Module metadata.
9630         * tests/test-filevercmp.c: Unit test for new module.
9631         * modules/filevercmp-tests: Unit test metadata.
9632         * MODULES.html.sh: Add filevercmp module.
9633
9634 2008-10-03  Bruno Haible  <bruno@clisp.org>
9635
9636         * lib/c-ctype.h: Add comment.
9637         Reported by Jim Meyering.
9638
9639 2008-10-02  Bruno Haible  <bruno@clisp.org>
9640
9641         * modules/posix_spawn-internal (Depends-on): Add 'open'.
9642
9643 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9644
9645         * build-aux/bootstrap: Allow renaming bootstrap, and change the
9646         name of bootstrap.conf accordingly.
9647
9648 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9649
9650         * build-aux/bootstrap: Install git-merge-changelog configuration
9651         items into .gitconfig if needed.
9652
9653 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
9654
9655         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
9656         git repository, and initialize/update it accordingly.
9657
9658 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
9659
9660         * modules/fsync-tests: New file.
9661         * tests/test-fsync.c: New file.
9662
9663         New module 'fsync'.
9664         * lib/fsync.c: New file.
9665         * m4/fsync.m4: New file.
9666         * modules/fsync: New file.
9667         * lib/unistd.in.h (fsync): New declaration.
9668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
9669         GNULIB_FSYNC and HAVE_FSYNC.
9670         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
9671         * MODULES.html.sh (posix_functions): Add fsync.
9672         * doc/posix-functions/fsync.texi: Mention the new module.
9673
9674 2008-10-02  Jim Meyering  <meyering@redhat.com>
9675
9676         fts.c: sync with similar code from coreutils' remove.c
9677         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
9678         Guard also with "#if defined __linux__", since for now at least,
9679         this code is Linux-kernel-specific.
9680
9681 2008-10-02  Jim Meyering  <meyering@redhat.com>
9682
9683         fts: bug fixes
9684         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
9685         Include <sys/vfs.h>, not <sys/statfs.h>.
9686
9687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
9688         Include <sys/vfs.h>, not <sys/statfs.h>.
9689
9690 2008-10-01  Bruno Haible  <bruno@clisp.org>
9691
9692         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
9693         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
9694         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
9695         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
9696         * doc/posix-functions/posix_spawnp.texi: Likewise.
9697         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
9698         whether posix_spawn actually works.
9699         * m4/pipe.m4 (gl_PIPE): Likewise.
9700         * modules/execute (Files): Add m4/posix_spawn.m4.
9701         * modules/pipe (Files): Add m4/posix_spawn.m4.
9702         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
9703
9704 2008-10-01  Jim Meyering  <meyering@redhat.com>
9705
9706         remove trailing spaces
9707         * NEWS: Likewise.
9708         * lib/poll.c (poll): Likewise.
9709         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
9710         * lib/winsock.c (rpl_close): Likewise.
9711         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
9712         * modules/yield: Likewise.
9713         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
9714         * tests/test-sys_select.c (connect_to_socket): Likewise.
9715
9716         fts.c: adjust a new interface to be more generally useful
9717         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
9718         (fts_build): Adjust caller.
9719
9720 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9721
9722         * modules/cond-tests: New file.
9723         * tests/test-cond.c: New file.
9724
9725 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9726             Bruno Haible  <bruno@clisp.org>
9727
9728         * modules/cond (Dependencies): Add errno, time.
9729         * lib/glthread/cond.h: Include <time.h>.
9730         (gl_cond_define, gl_cond_define_initialized): Use the same definition
9731         across platforms.
9732
9733 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9734             Bruno Haible  <bruno@clisp.org>
9735
9736         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
9737
9738 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9739             Bruno Haible  <bruno@clisp.org>
9740
9741         * modules/tls-tests (Depends-on): Add thread, yield.
9742         (configure.ac): Remove all checks.
9743         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
9744         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9745         gl_thread_self): Remove definitions. Include glthread/thread.h and
9746         glthread/yield.h instead.
9747         (test_tls): Pass an additional NULL argument to gl_thread_join.
9748
9749 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9750             Bruno Haible  <bruno@clisp.org>
9751
9752         * modules/lock-tests (Depends-on): Add thread, yield.
9753         (configure.ac): Remove all checks.
9754         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
9755         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
9756         gl_thread_self): Remove definitions. Include glthread/thread.h and
9757         glthread/yield.h instead.
9758         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
9759         additional NULL argument to gl_thread_join.
9760
9761 2008-09-30  Bruno Haible  <bruno@clisp.org>
9762
9763         Fix the Win32 implementation of the 'thread' module.
9764         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
9765         pointer type.
9766         (gl_thread_self): Invoke gl_thread_self_func.
9767         (gl_thread_self_func): New declaration.
9768         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
9769         (do_init_self_key, init_self_key): New functions.
9770         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
9771         Remove some fields.
9772         (running_threads, running_lock): Remove variables.
9773         (get_current_thread_handle): New function.
9774         (gl_thread_self_func, wrapper_func, glthread_create_func,
9775         glthread_join_func, gl_thread_exit_func): Largely rewritten and
9776         simplified.
9777
9778 2008-09-30  Bruno Haible  <bruno@clisp.org>
9779
9780         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
9781         files.
9782
9783 2008-09-30  Jim Meyering  <meyering@redhat.com>
9784
9785         fts.m4: correct the test for statfs.f_type
9786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
9787         when checking for statfs.f_type.
9788
9789 2008-09-15  Simon Josefsson  <simon@josefsson.org>
9790
9791         tests: avoid some compiler warnings
9792         * tests/test-memchr.c (main): Pass NULL indirectly.
9793         * tests/test-getdate.c (main): Remove unused variable 'ret'.
9794
9795 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
9796
9797         getdate.y: disallow countable dayshifts like "4 yesterday ago"
9798         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
9799         exactly specified dayshifts.
9800         (dayshift): New rule.
9801         (rel): Add dayshift.
9802         (relative_time_table) [tomorrow, yesterday, today, now]:
9803         Use tDAY_SHIFT in place of tDAY_UNIT.
9804         * tests/test-getdate.c: Add tests for now-disallowed countable
9805         dayshifts, e.g., "4 yesterday ago".
9806
9807 2008-09-29  Bruno Haible  <bruno@clisp.org>
9808
9809         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
9810         * tests/test-posix_spawn1.in.sh: Renamed from
9811         tests/test-posix_spawn.in.sh.
9812         * tests/test-posix_spawn2.c: New file.
9813         * tests/test-posix_spawn2.in.sh: New file.
9814         * modules/posix_spawnp-tests (Files): Update.
9815         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
9816
9817 2008-09-29  Bruno Haible  <bruno@clisp.org>
9818
9819         Propagate effects of putenv/setenv/unsetenv to child processes.
9820         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
9821         * lib/pipe.c (create_pipe): Likewise.
9822
9823 2008-09-29  Bruno Haible  <bruno@clisp.org>
9824
9825         Enable use of shell scripts as executables in mingw.
9826         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
9827         run the program as a shell script.
9828         * lib/pipe.c (create_pipe): Likewise.
9829         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
9830         resulting array.
9831
9832 2008-09-29  Eric Blake  <ebb9@byu.net>
9833
9834         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
9835
9836 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
9837
9838         * doc/posix-functions/accept.texi: Update mingw problems.
9839         * doc/posix-functions/bind.texi: Update mingw problems.
9840         * doc/posix-functions/close.texi: Update mingw problems.
9841         * doc/posix-functions/connect.texi: Update mingw problems.
9842         * doc/posix-functions/getpeername.texi: Update mingw problems.
9843         * doc/posix-functions/getsockname.texi: Update mingw problems.
9844         * doc/posix-functions/getsockopt.texi: Update mingw problems.
9845         * doc/posix-functions/ioctl.texi: Update mingw problems.
9846         * doc/posix-functions/listen.texi: Update mingw problems.
9847         * doc/posix-functions/recv.texi: Update mingw problems.
9848         * doc/posix-functions/recvfrom.texi: Update mingw problems.
9849         * doc/posix-functions/select.texi: Update mingw problems.
9850         * doc/posix-functions/send.texi: Update mingw problems.
9851         * doc/posix-functions/sendto.texi: Update mingw problems.
9852         * doc/posix-functions/setsockopt.texi: Update mingw problems.
9853         * doc/posix-functions/socket.texi: Update mingw problems.
9854
9855 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
9856             Bruno Haible  <bruno@clisp.org>
9857
9858         * lib/sys_select.in.h: Include sys/time.h.
9859         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
9860         * modules/sys_select: Depend on sys_time.
9861         * tests/test-sys_select.c: Test that sys/select.h defines struct
9862         timeval fully.
9863
9864 2008-09-29  Bruno Haible  <bruno@clisp.org>
9865
9866         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
9867         * lib/sys_select.in.h: Likewise.
9868
9869 2008-09-29  Bruno Haible  <bruno@clisp.org>
9870
9871         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
9872
9873 2008-09-29  Bruno Haible  <bruno@clisp.org>
9874
9875         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
9876         Set LIBSOCKET instead of augmenting LIBS.
9877         * modules/sockets (Link): New section.
9878         * modules/sockets-tests (test_sockets_LDADD): New variable.
9879         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
9880         * modules/poll-tests (test_poll_LDADD): New variable.
9881         * NEWS: Document the change.
9882
9883 2008-09-29  Bruno Haible  <bruno@clisp.org>
9884
9885         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
9886         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
9887         ARPA_INET_H directly.
9888         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9889
9890 2008-09-28  Bruno Haible  <bruno@clisp.org>
9891
9892         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
9893         from gl_HEADER_SYS_SOCKET.
9894         (gl_HEADER_SYS_SOCKET): Invoke it.
9895         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9896
9897 2008-09-28  Bruno Haible  <bruno@clisp.org>
9898
9899         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
9900         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
9901         Needed on OSF/1 4.0.
9902
9903 2008-09-28  Bruno Haible  <bruno@clisp.org>
9904
9905         Override open more carefully.
9906         * lib/open.c (orig_open): New function.
9907         (rpl_open): Use orig_open instead of open.
9908         * lib/fcntl.in.h: Add special invocation convention.
9909         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
9910         (gl_FUNC_OPEN): Invoke it.
9911
9912         Override freopen more carefully.
9913         * lib/freopen.c (orig_freopen): New function.
9914         (rpl_freopen): Use orig_freopen instead of freopen.
9915         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
9916         (gl_FUNC_FREOPEN): Invoke it.
9917
9918         Override fopen more carefully.
9919         * lib/fopen.c (orig_fopen): New function.
9920         (rpl_fopen): Use orig_fopen instead of fopen.
9921         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
9922         (gl_FUNC_FOPEN): Invoke it.
9923         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
9924
9925 2008-09-28  Bruno Haible  <bruno@clisp.org>
9926
9927         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
9928         SIGPIPE.
9929
9930 2008-09-28  Bruno Haible  <bruno@clisp.org>
9931
9932         * tests/test-sigaction.c (handler, main): Disable the check whether
9933         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
9934         glibc systems with LinuxThreads.
9935
9936 2008-09-28  Bruno Haible  <bruno@clisp.org>
9937
9938         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
9939
9940         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
9941         with AIX xlc.
9942         * lib/fcntl.in.h (open): Likewise.
9943         Reported by Rainer Tammer <tammer@tammer.net>.
9944
9945 2008-09-28  Bruno Haible  <bruno@clisp.org>
9946
9947         * modules/posix_spawnp-tests: New file.
9948         * tests/test-posix_spawn.c: New file.
9949         * tests/test-posix_spawn.in.sh: New file.
9950
9951         New module 'posix_spawnp'.
9952         * modules/posix_spawnp: New file.
9953         * lib/spawnp.c: New file, from GNU libc with modifications.
9954         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
9955
9956         New module 'posix_spawn'.
9957         * modules/posix_spawn: New file.
9958         * lib/spawn.c: New file, from GNU libc with modifications.
9959         * doc/posix-functions/posix_spawn.texi: Mention the new module.
9960
9961         New module 'posix_spawnattr_destroy'.
9962         * modules/posix_spawnattr_destroy: New file.
9963         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
9964         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
9965         module.
9966
9967         New module 'posix_spawnattr_setsigmask'.
9968         * modules/posix_spawnattr_setsigmask: New file.
9969         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
9970         modifications.
9971         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
9972         new module.
9973
9974         New module 'posix_spawnattr_getsigmask'.
9975         * modules/posix_spawnattr_getsigmask: New file.
9976         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
9977         modifications.
9978         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
9979         new module.
9980
9981         New module 'posix_spawnattr_setsigdefault'.
9982         * modules/posix_spawnattr_setsigdefault: New file.
9983         * lib/spawnattr_setdefault.c: New file, from GNU libc with
9984         modifications.
9985         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
9986         new module.
9987
9988         New module 'posix_spawnattr_getsigdefault'.
9989         * modules/posix_spawnattr_getsigdefault: New file.
9990         * lib/spawnattr_getdefault.c: New file, from GNU libc with
9991         modifications.
9992         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
9993         new module.
9994
9995         New module 'posix_spawnattr_setschedpolicy'.
9996         * modules/posix_spawnattr_setschedpolicy: New file.
9997         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
9998         modifications.
9999         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
10000         new module.
10001
10002         New module 'posix_spawnattr_getschedpolicy'.
10003         * modules/posix_spawnattr_getschedpolicy: New file.
10004         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
10005         modifications.
10006         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
10007         new module.
10008
10009         New module 'posix_spawnattr_setschedparam'.
10010         * modules/posix_spawnattr_setschedparam: New file.
10011         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
10012         modifications.
10013         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
10014         new module.
10015
10016         New module 'posix_spawnattr_getschedparam'.
10017         * modules/posix_spawnattr_getschedparam: New file.
10018         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
10019         modifications.
10020         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
10021         new module.
10022
10023         New module 'posix_spawnattr_setpgroup'.
10024         * modules/posix_spawnattr_setpgroup: New file.
10025         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
10026         modifications.
10027         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
10028         module.
10029
10030         New module 'posix_spawnattr_getpgroup'.
10031         * modules/posix_spawnattr_getpgroup: New file.
10032         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
10033         modifications.
10034         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
10035         module.
10036
10037         New module 'posix_spawnattr_setflags'.
10038         * modules/posix_spawnattr_setflags: New file.
10039         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
10040         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
10041         module.
10042
10043         New module 'posix_spawnattr_getflags'.
10044         * modules/posix_spawnattr_getflags: New file.
10045         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
10046         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
10047         module.
10048
10049         New module 'posix_spawnattr_init'.
10050         * modules/posix_spawnattr_init: New file.
10051         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
10052         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
10053         module.
10054
10055         New module 'posix_spawn_file_actions_destroy'.
10056         * modules/posix_spawn_file_actions_destroy: New file.
10057         * lib/spawn_faction_destroy.c: New file, from GNU libc with
10058         modifications.
10059         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
10060         the new module.
10061
10062         New module 'posix_spawn_file_actions_addopen'.
10063         * modules/posix_spawn_file_actions_addopen: New file.
10064         * lib/spawn_faction_addopen.c: New file, from GNU libc with
10065         modifications.
10066         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10067         the new module.
10068
10069         New module 'posix_spawn_file_actions_adddup2'.
10070         * modules/posix_spawn_file_actions_adddup2: New file.
10071         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
10072         modifications.
10073         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10074         the new module.
10075
10076         New module 'posix_spawn_file_actions_addclose'.
10077         * modules/posix_spawn_file_actions_addclose: New file.
10078         * lib/spawn_faction_addclose.c: New file, from GNU libc with
10079         modifications.
10080         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10081         the new module.
10082
10083         New module 'posix_spawn_file_actions_init'.
10084         * modules/posix_spawn_file_actions_init: New file.
10085         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
10086         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
10087         new module.
10088
10089         New module 'posix_spawn-internal'.
10090         * modules/posix_spawn-internal: New file.
10091         * lib/spawn_int.h: New file, from GNU libc with modifications.
10092         * lib/spawni.c: New file, from GNU libc with modifications.
10093         * m4/posix_spawn.m4: New file.
10094
10095         New module 'spawn'.
10096         * modules/spawn: New file.
10097         * lib/spawn.in.h: New file, from GNU libc with modifications.
10098         * m4/spawn_h.m4: New file.
10099         * doc/posix-headers/spawn.texi: Mention the new module.
10100
10101 2008-09-28  Bruno Haible  <bruno@clisp.org>
10102
10103         * modules/sched-tests: New file.
10104         * tests/test-sched.c: New file.
10105
10106         New module 'sched'.
10107         * modules/sched: New file.
10108         * lib/sched.in.h: New file.
10109         * m4/sched_h.m4: New file.
10110         * doc/posix-headers/sched.texi: Mention the new module.
10111
10112 2008-09-27  Eric Blake  <ebb9@byu.net>
10113
10114         Fix previous patch, and tweak references to $0.
10115         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
10116         (func_version, func_gnulib_dir): Don't call this program
10117         gnulib-tool.
10118         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
10119         with using $0 in function.
10120         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
10121         (func_fatal_error): Reuse the name the user invoked us with.
10122
10123 2008-09-27  Bruno Haible  <bruno@clisp.org>
10124
10125         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
10126         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
10127         (gl_ICONV_H): Not here.
10128         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10129         instead of assigning ICONV_H directly.
10130
10131         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
10132         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
10133         WCHAR_H directly.
10134
10135 2008-09-27  Bruno Haible  <bruno@clisp.org>
10136
10137         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
10138         * modules/arpa_inet (Depends-on): Add link-warning.
10139         (Makefile.am): Insert the definition of GL_LINK-WARNING.
10140         * modules/unistd (Makefile.am): Likewise.
10141
10142 2008-09-26  Bruno Haible  <bruno@clisp.org>
10143
10144         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
10145         variables.
10146         (func_version): Essentially copied from gnulib-tool.
10147         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
10148         func_readlink): Copied from gnulib-tool.
10149
10150 2008-09-26  Bruno Haible  <bruno@clisp.org>
10151
10152         * gnulib-tool (func_version): Change directory to $gnulib_dir before
10153         invoking git-version-gen.
10154
10155 2008-09-26  Bruno Haible  <bruno@clisp.org>
10156
10157         * posix-modules: Update to directory names changed on 2008-01-19.
10158         Remove commas in output before splitting into words. No more need to
10159         avoid 'ftruncate' since 2007-02-19.
10160
10161 2008-09-26  Bruno Haible  <bruno@clisp.org>
10162
10163         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
10164
10165 2008-09-26  Bruno Haible  <bruno@clisp.org>
10166
10167         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
10168         * modules/fwriteerror (Depends-on): Add errno.
10169
10170 2008-09-26  Bruno Haible  <bruno@clisp.org>
10171
10172         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
10173         * tests/test-vc-list-files-cvs.sh: Likewise.
10174
10175 2008-09-26  Bruno Haible  <bruno@clisp.org>
10176
10177         * doc/posix-headers/sys_resource.texi: Reorder items.
10178
10179 2008-09-26  Jim Meyering  <meyering@redhat.com>
10180
10181         fts: tweak inode comparison function
10182         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
10183         inode numbers, as documented.
10184
10185         fts: sort dirent entries on inode number before traversing
10186         This avoids a quadratic, seek-related performance penalty when
10187         operating on a directory containing many entries (measurable at 10k;
10188         3.5 hours at 2 million entries with a cold cache) on certain types
10189         of file systems, including ext3 and ext4, but not tmpfs.
10190         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
10191         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
10192         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
10193         (fs_handles_readdir_ordered_dirents_efficiently): New function.
10194         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
10195         (fts_build): Set the stat.st_ino member from D_INO.
10196         If it is likely to be useful, sort dirent entries on inode number.
10197
10198         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
10199         and the struct statfs.f_type member.
10200         * modules/fts (Depends-on): Add d-ino.
10201
10202 2008-09-26  Bruno Haible  <bruno@clisp.org>
10203
10204         * modules/sigpipe-die (Depends-on): Add sigpipe.
10205
10206         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
10207         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
10208         and GNULIB_STDIO_H_SIGPIPE are set.
10209         * lib/stdio-write.c: New file.
10210         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
10211         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10212         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10213         REPLACE_STDIO_WRITE_FUNCS.
10214         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
10215         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10216         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10217         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10218         * modules/stdio (Files): Add lib/stdio-write.c.
10219         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
10220         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10221         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10222         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10223         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
10224         REPLACE_FPRINTF_POSIX.
10225         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
10226         REPLACE_PRINTF_POSIX.
10227         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
10228         REPLACE_VFPRINTF_POSIX.
10229         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
10230         REPLACE_VPRINTF_POSIX.
10231         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
10232         SIGPIPE issue.
10233         * doc/posix-functions/fputc.texi: Likewise.
10234         * doc/posix-functions/fputs.texi: Likewise.
10235         * doc/posix-functions/fwrite.texi: Likewise.
10236         * doc/posix-functions/printf.texi: Likewise.
10237         * doc/posix-functions/putc.texi: Likewise.
10238         * doc/posix-functions/putchar.texi: Likewise.
10239         * doc/posix-functions/puts.texi: Likewise.
10240         * doc/posix-functions/vfprintf.texi: Likewise.
10241         * doc/posix-functions/vprintf.texi: Likewise.
10242
10243         * modules/safe-write (Depends-on): Add write.
10244
10245         * modules/sigpipe-tests: New file.
10246         * tests/test-sigpipe.c: New file.
10247         * tests/test-sigpipe.sh: New file.
10248
10249         * modules/write: New file.
10250         * lib/unistd.in.h: Include <sys/types.h>.
10251         (write): New declaration.
10252         * lib/write.c: New file.
10253         * m4/write.m4: New file.
10254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10255         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
10256         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
10257         GNULIB_WRITE, REPLACE_WRITE.
10258         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
10259         and the SIGPIPE issue.
10260
10261         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
10262         (raise): New declaration.
10263         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
10264         (ext_signal): New function.
10265         (rpl_raise): New function.
10266         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10267         GNULIB_SIGNAL_H_SIGPIPE.
10268         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
10269         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
10270
10271         * modules/sigpipe: New file.
10272         * m4/sigpipe.m4: New file.
10273
10274 2008-09-25  Derek Price  <derek@ximbiot.com>
10275             Bruno Haible  <bruno@clisp.org>
10276
10277         * gnulib-tool (func_import): Report all license incompatibilities, not
10278         just the first one.
10279
10280 2008-09-25  Bruno Haible  <bruno@clisp.org>
10281
10282         * gnulib-tool (func_import): When computing the edits, consider not
10283         only the Makefile.ams that exist but also those that will be generated.
10284
10285 2008-09-25  Simon Josefsson  <simon@josefsson.org>
10286
10287         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
10288         fixes gnulib-tool --test warning about duplicate dependency.
10289
10290 2008-09-25  Bruno Haible  <bruno@clisp.org>
10291
10292         * gnulib-tool: Don't ask the user to perform edits in the generated
10293         Makefile.ams.
10294         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
10295         apply to the Makefile.am being generated.
10296         (func_emit_tests_Makefile_am): Execute edits that apply to the
10297         Makefile.am being generated.
10298         (func_import): Setup list of Makefile.am edits before emitting the
10299         Makefile.ams, not at the end.
10300         (func_create_testdir): Update.
10301         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10302
10303 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10304
10305         * gnulib-tool (func_import): Store the --tests-base option in the
10306         comment in gnulib-cache.m4.
10307
10308 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
10309
10310         * NEWS: Document increased portability that sys_select now provides.
10311
10312         * lib/sys_select.in.h: Install select wrapper.
10313         * lib/sys_socket.in.h: Use more descriptive name when there is no
10314         select wrapper.
10315         * lib/winsock-select.c: New.
10316         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
10317         Require gl_HEADER_SYS_SOCKET.
10318         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
10319         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
10320         * tests/test-sys_select.c: Add functional tests.
10321
10322 2008-09-24  Eric Blake  <ebb9@byu.net>
10323
10324         open, fopen: close fd leak in last patch
10325         * lib/open.c (rpl_open): Close fd before returning error.
10326         * lib/fopen.c (rpl_fopen): Close fd before returning error.
10327         * doc/posix-functions/open.texi (open): Document that Irix also
10328         has the bug.
10329         * doc/posix-functions/fopen.texi (fopen): Likewise.
10330         Reported by Paolo Bonzini.
10331
10332 2008-09-24  Bruno Haible  <bruno@clisp.org>
10333
10334         Ensure that a filename ending in a slash cannot be used to access a
10335         non-directory.
10336         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
10337         to check whether it's really a directory.
10338         * lib/fopen.c: Include fcntl.h, unistd.h.
10339         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
10340         and fdopen().
10341         * modules/fopen (Depends-on): Add unistd.
10342         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
10343         * tests/test-fopen.c (main): Likewise.
10344         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
10345         * doc/posix-functions/fopen.texi: Likewise.
10346         Reported by Eric Blake.
10347
10348 2008-09-23  Eric Blake  <ebb9@byu.net>
10349
10350         c-stack: avoid compiler optimizations when provoking overflow
10351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
10352         recursion harder to optimize, to ensure a stack overflow occurs.
10353         * tests/test-c-stack.c (recurse): Likewise.
10354         Borrowed from libsigsegv.
10355
10356         c-stack: work around Irix sigaltstack bug
10357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
10358         whether sigaltstack uses wrong end of stack_t (copied in part from
10359         libsigsegv).
10360         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
10361         Irix bug, without requiring an over-allocation.
10362         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
10363         bug.
10364
10365         fopen: document mingw bug on directories
10366         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
10367         not allowing a stream visiting a directory, even though reading
10368         from such a stream is not portable.
10369
10370 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10371
10372         * lib/poll.c: Rewrite.
10373         * modules/poll: Depend on alloca.
10374
10375 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10376
10377         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
10378         instead define prototypes for a full set of wrappers.  Ensure
10379         that Cygwin does not use the compatibility code, which is only
10380         for MinGW.
10381         * lib/winsock.c: New.
10382         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
10383         * modules/sys_socket: Add lib/winsock.c.
10384
10385         * modules/poll-tests: Add errno and perror.
10386         * tests/test-poll.c: Use ioctl, not ioctlsocket.
10387
10388 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10389
10390         * tests/test-poll.c: Downgrade minimum needed Winsock version.
10391
10392 2008-09-23  Bruno Haible  <bruno@clisp.org>
10393
10394         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
10395         * doc/glibc-functions/*: Likewise.
10396
10397 2008-09-23  Simon Josefsson  <simon@josefsson.org>
10398
10399         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
10400         success.
10401
10402 2008-09-22  Eric Blake  <ebb9@byu.net>
10403             Bruno Haible  <bruno@clisp.org>
10404
10405         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
10406         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
10407         supply %A but mishandle pseudo-NaN.
10408         Reported by Simon Josefsson.
10409
10410 2008-09-21  Bruno Haible  <bruno@clisp.org>
10411
10412         * tests/test-lock.c (main): Tweak skip message.
10413         * tests/test-tls.c (main): Likewise.
10414
10415 2008-09-21  Bruno Haible  <bruno@clisp.org>
10416
10417         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
10418         whether 'struct sigaction' has sa_sigaction here...
10419         (gl_PREREQ_SIG_HANDLER_H): ... not here.
10420         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
10421
10422 2008-09-21  Bruno Haible  <bruno@clisp.org>
10423
10424         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
10425         section.
10426         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
10427         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
10428         the new section.
10429         (Support for obsolete systems lacking POSIX:2001): New section.
10430         (String handling <string.h>): Move strdup to the new section.
10431         Suggested by Simon Josefsson and Paolo Bonzini.
10432
10433 2008-09-21  Bruno Haible  <bruno@clisp.org>
10434
10435         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
10436         exponents in %e and %g results on 'long double'. Needed for mingw's
10437         improved *printf functions.
10438         * tests/test-vasprintf-posix.c (test_function): Likewise.
10439         * tests/test-snprintf-posix.h (test_function): Likewise.
10440         * tests/test-sprintf-posix.h (test_function): Likewise.
10441         Reported by Eric Blake.
10442
10443 2008-09-21  Bruno Haible  <bruno@clisp.org>
10444
10445         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
10446         * tests/test-sprintf-posix.h (test_function): Likewise.
10447
10448 2008-09-21  Bruno Haible  <bruno@clisp.org>
10449
10450         * modules/getpass (Depends-on): Add strdup-posix.
10451
10452         New module 'strdup-posix'.
10453         * modules/strdup-posix: New file.
10454         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
10455         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
10456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10457         REPLACE_STRDUP.
10458         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
10459         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
10460         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10461         strdup-posix.
10462
10463         * modules/strdup (Depends-on): Remove malloc-posix.
10464
10465 2008-09-20  Bruno Haible  <bruno@clisp.org>
10466
10467         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
10468         Wildenhues.
10469
10470 2008-09-20  Bruno Haible  <bruno@clisp.org>
10471
10472         Ensure that wint_t gets defined on IRIX 5.3.
10473         * lib/wchar.in.h (wint_t): Define if not defined by the system.
10474         * lib/wctype.in.h (wint_t): Likewise.
10475         (__wctype_wint_t): Remove type.
10476         (isw*): Use wint_t instead of __wctype_wint_t.
10477         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
10478         * modules/wchar (Files): Add m4/wint_t.m4.
10479         (Makefile.am): Substitute HAVE_WINT_T.
10480         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
10481         * tests/test-wctype.c: Check that wint_t is defined.
10482         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
10483         * doc/posix-headers/wctype.texi: Likewise.
10484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10485
10486 2008-09-18  Bruno Haible  <bruno@clisp.org>
10487
10488         * gnulib-tool (func_exit): Update comment.
10489
10490 2008-09-18  Simon Josefsson  <simon@josefsson.org>
10491
10492         * modules/getaddrinfo (Depends-on): Remove strdup, this module
10493         assumes strdup exists and does not depend on strdup to return
10494         ENOMEM on out of memory conditions.
10495
10496 2008-09-18  Bruno Haible  <bruno@clisp.org>
10497
10498         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
10499         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
10500         digits for the exponent.
10501
10502 2008-09-18  Jim Meyering  <meyering@redhat.com>
10503             Bruno Haible  <bruno@clisp.org>
10504
10505         * lib/vasnprintf.c (decimal_point_char): Define also if
10506         NEED_PRINTF_INFINITE_LONG_DOUBLE.
10507
10508 2008-09-16  Bruno Haible  <bruno@clisp.org>
10509         and Eric Blake  <ebb9@byu.net>
10510
10511         vasnprintf: support Irix 5.3
10512         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
10513         that mishandle long double infinity.
10514         Reported by Tom G. Christensen.
10515
10516 2008-09-16  Bruno Haible  <bruno@clisp.org>
10517
10518         * doc/glibc-functions/scandir.texi: Mention the function is missing on
10519         Solaris 9.
10520         * doc/glibc-functions/alphasort.texi: Likewise.
10521         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
10522
10523 2008-09-16  Jim Meyering  <meyering@redhat.com>
10524
10525         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
10526         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
10527         a umask modification leak out of a subshell.  Otherwise, the
10528         opensolaris /bin/sh would be accepted and thus cause unwarranted
10529         failures in the coreutils test suite.
10530
10531 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
10532
10533         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
10534         to succeed.
10535
10536 2008-09-16  Jim Meyering  <meyering@redhat.com>
10537
10538         avoid spurious test failure when library is built without ACL support
10539         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
10540         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
10541         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
10542         * tests/test-copy-acl.sh: Likewise.
10543
10544 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10545
10546         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
10547         based on character occurrence counts.
10548
10549 2008-09-15  Eric Blake  <ebb9@byu.net>
10550
10551         tests: avoid some compiler warnings
10552         * tests/test-memchr.c (main): Pass NULL indirectly.
10553         * tests/test-closein.c (main): Avoid unused variable.
10554
10555 2008-09-15  Bruno Haible  <bruno@clisp.org>
10556
10557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
10558         are missing on OpenBSD 4.0 individually.
10559         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10560
10561 2008-09-15  Bruno Haible  <bruno@clisp.org>
10562
10563         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
10564         * doc/posix-functions/strerror.texi: Mention also Cygwin.
10565         * doc/posix-functions/perror.texi: Likewise.
10566         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
10567         is missing.
10568         Reported by Eric Blake.
10569
10570         * lib/errno.in.h: Use replacement values >= 2000.
10571         Reported by Eric Blake.
10572
10573 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10574
10575         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
10576         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
10577         limit.
10578         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
10579         compareseq was aborted.
10580
10581 2008-09-14  Bruno Haible  <bruno@clisp.org>
10582
10583         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
10584         yvec_edit_count.
10585         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
10586         (fstrcmp_bounded): Simplify result computation accordingly.
10587
10588 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10589
10590         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
10591         (fstrcmp): Define in terms of fstrcmp_bounded.
10592         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
10593         lower_bound argument.
10594         Return quickly if the result is certainly < lower_bound.
10595         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
10596
10597 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10598
10599         * lib/diffseq.h (EARLY_ABORT): New macro.
10600         (compareseq): Change return type to bool. Return true when EARLY_ABORT
10601         evaluates to true.
10602
10603 2008-09-14  Bruno Haible  <bruno@clisp.org>
10604
10605         * modules/perror-tests: New file.
10606         * tests/test-perror.sh: New file.
10607         * tests/test-perror.c: New file.
10608
10609         New module 'perror'.
10610         * lib/stdio.in.h (perror): New declaration.
10611         * lib/perror.c: New file.
10612         * m4/perror.m4: New file.
10613         * modules/perror: New file.
10614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
10615         * doc/posix-functions/perror.texi: Mention the perror module.
10616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
10617         REPLACE_PERROR.
10618         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
10619         REPLACE_PERROR.
10620
10621 2008-09-14  Bruno Haible  <bruno@clisp.org>
10622
10623         * modules/stdio (Makefile.am): Reorder to match the order in
10624         lib/stdio.in.h.
10625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10626
10627 2008-09-13  Bruno Haible  <bruno@clisp.org>
10628
10629         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
10630
10631 2008-09-13  Bruno Haible  <bruno@clisp.org>
10632
10633         Extend strerror to cover the added errno values.
10634         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
10635         (rpl_strerror): Provide error messages for the added errno values and
10636         for the WSA* values.
10637         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
10638         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
10639         strerror.
10640         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
10641         * modules/strerror (Depends-on): Add errno.
10642         * doc/posix-functions/strerror.texi: Document the change.
10643         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
10644         and EOVERFLOW.
10645
10646 2008-09-13  Bruno Haible  <bruno@clisp.org>
10647
10648         * modules/EOVERFLOW: Remove file.
10649         * m4/eoverflow.m4: Remove file.
10650         * modules/EOVERFLOW-tests: Remove file.
10651         * tests/test-EOVERFLOW.c: Remove file.
10652         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
10653         * modules/ftell (Depends-on): Likewise.
10654         * modules/getdelim (Depends-on): Likewise.
10655         * modules/getugroups (Depends-on): Likewise.
10656         * modules/poll (Depends-on): Likewise.
10657         * modules/snprintf (Depends-on): Likewise.
10658         * modules/sprintf-posix (Depends-on): Likewise.
10659         * modules/vasnprintf (Depends-on): Likewise.
10660         * modules/vasprintf (Depends-on): Likewise.
10661         * modules/vfprintf-posix (Depends-on): Likewise.
10662         * modules/vsnprintf (Depends-on): Likewise.
10663         * modules/vsprintf-posix (Depends-on): Likewise.
10664         * modules/xvasprintf (Depends-on): Likewise.
10665         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10666         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
10667         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
10668         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
10669         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10670         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
10671         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
10672         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
10673         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10674         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
10675         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
10676         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
10677         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10678         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
10679         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
10680         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
10681         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10682         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
10683         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
10684         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
10685         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10686         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
10687         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
10688         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
10689         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
10690         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10691         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
10692         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
10693         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
10694         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
10695         * MODULES.html.sh: Remove EOVERFLOW.
10696         * NEWS: Mention the change.
10697
10698 2008-09-13  Bruno Haible  <bruno@clisp.org>
10699
10700         * modules/errno-tests: New file.
10701         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
10702
10703         * lib/errno.in.h: New file.
10704         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
10705         * modules/errno: New file.
10706         * doc/posix-headers/errno.texi: Update documentation.
10707         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
10708
10709 2008-09-13  Bruno Haible  <bruno@clisp.org>
10710
10711         * tests/test-poll.c: Use #if for native Windows, rather than testing
10712         __MSVCRT__.
10713
10714 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10715             Bruno Haible  <bruno@clisp.org>
10716
10717         * lib/glob.c: Don't include <pwd.h> on native Windows.
10718         (WINDOWS32): New macro.
10719         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
10720
10721 2008-09-13  Bruno Haible  <bruno@clisp.org>
10722
10723         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
10724         (ETIMEDOUT): Remove macro.
10725         (glthread_cond_timedwait_multithreaded): New declaration.
10726         (glthread_cond_timedwait): Use it.
10727         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
10728         (glthread_cond_timedwait_multithreaded): New function.
10729
10730 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10731
10732         * modules/poll-tests: Do not check for io.h.
10733         * tests/test-poll.c: Check for __MSVCRT__ instead.
10734
10735 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10736
10737         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
10738         * modules/poll-tests: Add inet_pton, stdbool, sockets.
10739         * tests/test-poll.c: Use them.  Use _pipe on Windows.
10740
10741 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
10742
10743         * modules/poll-tests: New.
10744         * tests/test-poll.c: New.
10745
10746 2008-09-12  Eric Blake  <ebb9@byu.net>
10747
10748         frexp: test for NetBSD failure on -0.0
10749         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
10750         not all, bugs from NetBSD 3.0 have been fixed.
10751         * doc/posix-functions/frexp.texi (frexp): Document bug.
10752         Reported by Thomas Klausner.
10753
10754         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
10755         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
10756         literal -0.0.
10757         Reported by Jonathan C. Patschke <jp@centtech.com>.
10758
10759 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10760
10761         * lib/glthread/cond.h: Use dummy implementation also if
10762         USE_WIN32_THREADS.
10763
10764 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10765
10766         * modules/fnmatch-posix (License): Change to LGPLv2+.
10767         * modules/fnmatch-gnu (License): Likewise.
10768
10769 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10770
10771         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
10772
10773 2008-09-11  Jim Meyering  <meyering@redhat.com>
10774
10775         * users.txt: Add gtk-vnc.
10776
10777 2008-09-08  Simon Josefsson  <simon@josefsson.org>
10778
10779         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
10780         rotate amounts.
10781
10782         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
10783         required for 16-bit and 8-bit rotates.
10784         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
10785         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
10786         UINT8_MAX instead of hard-coded constants.
10787         Suggested by Paul Eggert.
10788
10789 2008-09-07  Bruno Haible  <bruno@clisp.org>
10790
10791         * tests/test-striconveh.c (main): Check behaviour when converting from
10792         UTF-7.
10793
10794         Make striconveh work better with stateful encodings.
10795         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
10796         that iconv does not increment the inptr when returning -1/EINVAL.
10797
10798 2008-09-07  Bruno Haible  <bruno@clisp.org>
10799
10800         * build-aux/config.rpath: Update according to libtool-2.2.6.
10801         * build-aux/config.libpath: Likewise.
10802
10803 2008-09-06  Bruno Haible  <bruno@clisp.org>
10804
10805         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
10806         * lib/freadptr.c (freadptr): Likewise.
10807         * lib/freadseek.c (freadptrinc): Likewise.
10808         Reported by Simon Josefsson.
10809
10810 2008-09-06  Bruno Haible  <bruno@clisp.org>
10811
10812         * modules/freadptr (License): Change to LGPLv2+.
10813         * modules/freadseek (License): Likewise.
10814         Suggested by Eric Blake.
10815
10816         * modules/memchr2 (License): Change to LGPLv2+.
10817         Approved by Eric Blake.
10818
10819 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10820             Bruno Haible  <bruno@clisp.org>
10821
10822         Make gnulib-tool work with native 'sed' on AIX.
10823         * gnulib-tool (sed_noop): New variable.
10824         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
10825         func_add_or_update, func_create_testdir): Use it to initialize sed
10826         script variables.
10827         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10828
10829 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
10830             Bruno Haible  <bruno@clisp.org>
10831
10832         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
10833         also works after #include directives.
10834
10835 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
10836
10837         getdate.y: reject an out-of-range timezone value
10838         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
10839         the range [-24...+24].  When specified with only one or two digits,
10840         * tests/test-getdate.c: Tests for the fix.
10841         * doc/getdate.texi: Document this change.
10842
10843 2008-09-03  Bruno Haible  <bruno@clisp.org>
10844
10845         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
10846
10847 2008-09-02  Simon Josefsson  <simon@josefsson.org>
10848
10849         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
10850         <bruce.korb@gmail.com> with ideas from Ben Pfaff
10851         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
10852         Blake <ebb9@byu.net>.
10853
10854         * tests/test-bitrotate.c: Add more test vectors.
10855
10856 2008-09-02  Eric Blake  <ebb9@byu.net>
10857
10858         vasnprintf-posix: handle large precision via %.*d
10859         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
10860         when handling it ourselves.
10861         * tests/test-vasnprintf-posix.c (test_function): Add test.
10862         * tests/test-snprintf-posix.h (test_function): Likewise.
10863         * tests/test-sprintf-posix.h (test_function): Likewise.
10864         * tests/test-vasprintf-posix.c (test_function): Likewise.
10865         Reported by Alain Guibert.
10866
10867 2008-09-01  Eric Blake  <ebb9@byu.net>
10868
10869         c-stack: make configure-time check more robust
10870         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
10871         successful sigaction call.
10872         Reported by Tom G. Christensen.
10873
10874 2008-09-01  Bruno Haible  <bruno@clisp.org>
10875
10876         New module 'findprog-lgpl'.
10877         * modules/findprog-lgpl: New file.
10878         * lib/findprog-lgpl.c: New file.
10879         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
10880         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
10881         to decide whether to use strdup or xstrdup, concatenated_filename or
10882         xconcatenated_filename.
10883
10884 2008-09-01  Bruno Haible  <bruno@clisp.org>
10885
10886         Split module 'concat-filename' into 'concat-filename' (LGPL) and
10887         'xconcat-filename' (GPL).
10888         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
10889         (License): Change to LGPLv2+.
10890         * modules/xconcat-filename: New file.
10891         * lib/concat-filename.h (concatenated_filename): Change specification.
10892         (xconcatenated_filename): New declaration.
10893         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
10894         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
10895         memory situations.
10896         * lib/xconcat-filename.c: New file.
10897         * NEWS: Mention the change.
10898         * lib/findprog.c: Include concat-filename.h, not filename.h.
10899         (find_in_path): Use xconcatenated_filename instead of
10900         concatenated_filename.
10901         * lib/javacomp.c: Include concat-filename.h, not filename.h.
10902         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
10903         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
10904         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
10905         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
10906         instead of concatenated_filename.
10907         * lib/javaexec.c: Include concat-filename.h, not filename.h.
10908         (execute_java_class): Use xconcatenated_filename instead of
10909         concatenated_filename.
10910         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
10911         * modules/javacomp (Depends-on): Likewise.
10912         * modules/javaexec (Depends-on): Likewise.
10913
10914 2008-09-01  Bruno Haible  <bruno@clisp.org>
10915
10916         Split module 'filename' into 'filename' and 'concat-filename'.
10917         * modules/filename: Keep only lib/filename.h.
10918         (License): Change to LGPLv2+.
10919         * modules/concat-filename: New file, extracted from modules/filename.
10920         * lib/filename.h (concatenated_filename): Remove declaration.
10921         * lib/concat-filename.h: New file, extracted from lib/filename.h.
10922         * lib/concat-filename.c: Include concat-filename.h.
10923         * NEWS: Mention the change.
10924
10925 2008-09-01  Simon Josefsson  <simon@josefsson.org>
10926
10927         * lib/bitrotate.h (rotl8, rotr8): Add.
10928
10929         * modules/bitrotate (configure.ac): Need
10930         AC_REQUIRE([AC_C_INLINE]).
10931         (Description): Mention stdint.h.  Reported by Bruno Haible
10932         <bruno@clisp.org>.
10933
10934         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
10935         Paolo Bonzini <bonzini@gnu.org>.
10936
10937 2008-08-31  Bruno Haible  <bruno@clisp.org>
10938
10939         Assume Solaris specific bi-arch conventions on Solaris systems.
10940         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
10941         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
10942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
10943         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
10944         like acl_libdirstem.
10945         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
10946         acl_libdirstem.
10947         * NEWS: Mention the change.
10948         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
10949
10950 2008-08-31  Jim Meyering  <meyering@redhat.com>
10951
10952         * lib/strftime.h: Add comments describing the two added arguments.
10953
10954         remove duplicate #include directives
10955         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
10956         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
10957
10958 2008-08-31  Bruno Haible  <bruno@clisp.org>
10959
10960         New module 'sigpipe-die'.
10961         * modules/sigpipe-die: New file.
10962         * lib/sigpipe-die.h: New file.
10963         * lib/sigpipe-die.c: New file.
10964         * MODULES.html.sh (Signal handling): Add sigpipe-die.
10965
10966 2008-08-31  Bruno Haible  <bruno@clisp.org>
10967
10968         Don't override previously installed signal handlers.
10969         * lib/fatal-signal.c (saved_sigactions): New variable.
10970         (uninstall_handlers): Reset the signal to the saved handler, not
10971         to SIG_DFL (except when ignored).
10972         (install_handlers): Save the previous handlers.
10973
10974 2008-08-30  Bruno Haible  <bruno@clisp.org>
10975
10976         * gnulib-tool (func_reset_sigpipe): New function.
10977         (func_get_automake_snippet, func_modules_transitive_closure,
10978         func_import): Invoke it before a join command that reads from stdin,
10979         to avoid "echo: write error: Broken pipe" error messages on stderr.
10980         Reported by Sam Steingold <sds@gnu.org>.
10981
10982 2008-08-30  Bruno Haible  <bruno@clisp.org>
10983
10984         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
10985         Code copied from m4/open.m4.
10986         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
10987         access and the filename ends in a slash. Code copied from lib/open.c.
10988         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
10989         * tests/test-fopen.c (main): Check against bug with trailing slash.
10990
10991 2008-08-29  Bruno Haible  <bruno@clisp.org>
10992
10993         Avoid some "gcc -pedantic" warnings.
10994         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
10995         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
10996         * lib/dirent.in.h: Likewise.
10997         * lib/fcntl.in.h: Likewise.
10998         * lib/float.in.h: Likewise.
10999         * lib/iconv.in.h: Likewise.
11000         * lib/inttypes.in.h: Likewise.
11001         * lib/locale.in.h: Likewise.
11002         * lib/math.in.h: Likewise.
11003         * lib/netinet_in.in.h: Likewise.
11004         * lib/search.in.h: Likewise.
11005         * lib/signal.in.h: Likewise.
11006         * lib/stdarg.in.h: Likewise.
11007         * lib/stdint.in.h: Likewise.
11008         * lib/stdio.in.h: Likewise.
11009         * lib/stdlib.in.h: Likewise.
11010         * lib/string.in.h: Likewise.
11011         * lib/strings.in.h: Likewise.
11012         * lib/sys_select.in.h: Likewise.
11013         * lib/sys_socket.in.h: Likewise.
11014         * lib/sys_stat.in.h: Likewise.
11015         * lib/sys_time.in.h: Likewise.
11016         * lib/sysexits.in.h: Likewise.
11017         * lib/time.in.h: Likewise.
11018         * lib/unistd.in.h: Likewise.
11019         * lib/wchar.in.h: Likewise.
11020         * lib/wctype.in.h: Likewise.
11021         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
11022         * modules/fchdir (Makefile.am): Likewise.
11023         * modules/fcntl (Makefile.am): Likewise.
11024         * modules/float (Makefile.am): Likewise.
11025         * modules/iconv_open (Makefile.am): Likewise.
11026         * modules/inttypes (Makefile.am): Likewise.
11027         * modules/locale (Makefile.am): Likewise.
11028         * modules/math (Makefile.am): Likewise.
11029         * modules/netinet_in (Makefile.am): Likewise.
11030         * modules/search (Makefile.am): Likewise.
11031         * modules/signal (Makefile.am): Likewise.
11032         * modules/stdarg (Makefile.am): Likewise.
11033         * modules/stdint (Makefile.am): Likewise.
11034         * modules/stdio (Makefile.am): Likewise.
11035         * modules/stdlib (Makefile.am): Likewise.
11036         * modules/string (Makefile.am): Likewise.
11037         * modules/strings (Makefile.am): Likewise.
11038         * modules/sys_select (Makefile.am): Likewise.
11039         * modules/sys_socket (Makefile.am): Likewise.
11040         * modules/sys_stat (Makefile.am): Likewise.
11041         * modules/sys_time (Makefile.am): Likewise.
11042         * modules/sysexits (Makefile.am): Likewise.
11043         * modules/time (Makefile.am): Likewise.
11044         * modules/unistd (Makefile.am): Likewise.
11045         * modules/wchar (Makefile.am): Likewise.
11046         * modules/wctype (Makefile.am): Likewise.
11047         Reported by Reuben Thomas <rrt@sc3d.org>.
11048
11049 2008-08-29  Bruno Haible  <bruno@clisp.org>
11050
11051         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
11052         any more.
11053
11054 2008-08-29  Simon Josefsson  <simon@josefsson.org>
11055
11056         * MODULES.html.sh (Misc): Add bitrotate.
11057
11058         * modules/bitrotate: New file.
11059
11060         * lib/bitrotate.h: New file.
11061
11062         * modules/bitrotate-tests: New file.
11063
11064         * tests/test-bitrotate.c: New file.
11065
11066         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
11067         on the bitrotate module.
11068
11069         * lib/arctwo.c: Use new bitrotate module.
11070
11071 2008-08-29  Jim Meyering  <meyering@redhat.com>
11072
11073         bootstrap: merge changes from coreutils
11074         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
11075         of copied files.  Remove a kludge, now that this is fixed.
11076         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
11077         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
11078         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
11079
11080 2008-08-29  Bruno Haible  <bruno@clisp.org>
11081
11082         * MODULES.html.sh: Remove --cvs-urls option.
11083
11084 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
11085
11086         maint.mk: adjust to file name change
11087         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
11088
11089 2008-08-28  Jim Meyering  <meyering@redhat.com>
11090
11091         * modules/getndelim2 (License): Relicense to LGPLv2+.
11092         Approved by Richard Stallman for the version of 1995, and by
11093         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
11094
11095 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
11096
11097         * lib/getdelim.c (flockfile, funlockfile): Make all of them
11098         dummy if one is not available.  Do not touch them if
11099         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
11100         (getc_maybe_unlocked): New.
11101         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
11102
11103 2008-08-26  Eric Blake  <ebb9@byu.net>
11104
11105         doc/INSTALL: resync from autoconf
11106         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
11107         (INSTALL_PRELUDE): Delete; this is done more efficiently by
11108         moving...
11109         * install.texi [!autoconf]: ...here.  Resync from autoconf.
11110         * INSTALL: Regenerate.
11111         * INSTALL.ISO: New file.
11112         * INSTALL.UTF-8: Likewise.
11113
11114 2008-08-26  Jim Meyering  <meyering@redhat.com>
11115
11116         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
11117         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
11118         these definitions conditional, so that they may be overridden, too.
11119
11120 2008-08-26  Bruno Haible  <bruno@clisp.org>
11121
11122         Generate INSTALL file variants with prettier quotes.
11123         * doc/Makefile (INSTALL_PRELUDE): New macro.
11124         (INSTALL): Use it.
11125         (INSTALL.ISO, INSTALL.UTF-8): New rules.
11126
11127 2008-08-26  Bruno Haible  <bruno@clisp.org>
11128
11129         Run makeinfo in an English locale.
11130         * doc/Makefile (MAKEINFO): New variable.
11131
11132 2008-08-26  Bruno Haible  <bruno@clisp.org>
11133
11134         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
11135         Suggested by Eric Blake.
11136
11137 2008-08-25  Bruno Haible  <bruno@clisp.org>
11138
11139         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
11140
11141 2008-08-25  Eric Blake  <ebb9@byu.net>
11142
11143         c-stack: test that stack overflow can be caught
11144         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
11145         that platform allows handling stack overflow; at least OS/2 EMX
11146         has sigaltstack, but crashes before transferring control to
11147         handler on stack overflow.
11148         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
11149         check for HAVE_STACK_OVERFLOW_HANDLING.
11150         Reported by Elbert Pol.
11151
11152 2008-08-25  Bruno Haible  <bruno@clisp.org>
11153
11154         * doc/posix-functions/strftime.texi: Fix description of strftime
11155         module.
11156
11157 2008-08-24  Bruno Haible  <bruno@clisp.org>
11158
11159         * tests/uniwidth/test-uc_width2.c: New file.
11160         * tests/uniwidth/test-uc_width2.sh: New file.
11161         * modules/uniwidth/width-tests (Files): Add the new files.
11162         (TESTS): Add uniwidth/test-uc_width2.sh.
11163         (TESTS_ENVIRONMENT): New variable.
11164         (check_PROGRAMS): Add test-uc_width2.
11165         (test_uc_width2_SOURCES): New variable.
11166
11167         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
11168         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
11169         not 0x00AB.
11170         Reported by Alexander V. Lukyanov <lav@netis.ru>.
11171
11172 2008-08-22  Eric Blake  <ebb9@byu.net>
11173
11174         test-lock, test-tls: mention why a test is skipped
11175         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
11176         skipped.
11177         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
11178
11179         count-one-bits: relax license
11180         * modules/count-one-bits (License): Relicense to LGPLv2+.
11181         Suggested by Ludovic Courtès, approved by Ben Pfaff.
11182
11183 2008-08-22  Andreas Schwab  <schwab@suse.de>
11184
11185         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11186         Remove spurious space in assignment.
11187
11188 2008-08-21  Simon Josefsson  <simon@josefsson.org>
11189
11190         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
11191         Paul Eggert <eggert@CS.UCLA.EDU>.
11192
11193 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
11194
11195         * modules/gettext: Add m4/threadlib.m4.
11196
11197 2008-08-19  Eric Blake  <ebb9@byu.net>
11198
11199         test-c-stack: fix compilation failure on FreeBSD 5.0
11200         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
11201         headers before <sys/resource.h>.
11202         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
11203         the bug.
11204         Reported by Nelson H. F. Beebe.
11205
11206         strverscmp: migrate from "strverscmp.h" to <string.h>
11207         * modules/string (Makefile.am): Add new hooks.
11208         * modules/strverscmp (Files): Remove strverscmp.h.
11209         (Depends-on): Add string.
11210         (configure.ac): Add indicator.
11211         (Include): Mention new header.
11212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
11213         defaults.
11214         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
11215         results.
11216         * lib/strverscmp.h: Delete.
11217         * lib/string.in.h (strverscmp): Provide declaration, when needed.
11218         * tests/test-strverscmp.c (includes): Adjust client.
11219         * lib/check-version.c (includes): Likewise.
11220         * NEWS: Document the change.
11221
11222         strverscmp: add unit test
11223         * modules/strverscmp-tests: New file.
11224         * tests/test-strverscmp.c: Likewise.
11225
11226 2008-08-19  Simon Josefsson  <simon@josefsson.org>
11227
11228         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
11229         regarding Windows crypto stuff, from Mono.
11230
11231 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
11232
11233         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
11234         if present, for intel RND.  Return error on failures.
11235
11236 2008-08-18  Ben Pfaff  <blp@gnu.org>
11237
11238         gitlog-to-changelog: give better diagnostic for failed pipe-open
11239         * build-aux/gitlog-to-changelog: Improve error message: suggest
11240         that the version of Git may be too old.
11241
11242 2008-08-18  Simon Josefsson  <simon@josefsson.org>
11243
11244         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
11245         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
11246
11247 2008-08-18  Bruno Haible  <bruno@clisp.org>
11248
11249         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
11250         pthread_in_use().
11251
11252 2008-08-18  Bruno Haible  <bruno@clisp.org>
11253
11254         * lib/glthread/threadlib.c: Include <pthread.h>.
11255
11256 2008-08-18  Bruno Haible  <bruno@clisp.org>
11257
11258         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
11259         glthread_recursive_lock_* macros.
11260         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
11261         Fix syntax error.
11262
11263 2008-08-18  Bruno Haible  <bruno@clisp.org>
11264
11265         * lib/glthread/thread.c: Avoid forcing a context switch right after
11266         thread creation.
11267
11268 2008-08-17  Bruno Haible  <bruno@clisp.org>
11269
11270         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
11271         * lib/glthread/thread.h: Provide Win32 specific implementation.
11272         * modules/thread (Files): Add lib/glthread/thread.c.
11273         (Depends-on): Add lock.
11274         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
11275
11276 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11277
11278         New module 'yield'.
11279         * modules/yield: New file.
11280         * lib/glthread/yield.h: New file.
11281         * m4/yield.m4: New file.
11282         * MODULES.html.sh (Multithreading): Add yield.
11283
11284 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11285
11286         New module 'thread'.
11287         * modules/thread: New file.
11288         * lib/glthread/thread.h: New file.
11289         * m4/thread.m4: New file.
11290         * MODULES.html.sh (Multithreading): Add thread.
11291
11292 2008-08-17  Bruno Haible  <bruno@clisp.org>
11293
11294         * lib/glthread/lock.h: Include <stdlib.h> always.
11295         * lib/glthread/tls.h: Likewise.
11296         * lib/glthread/cond.h: Likewise.
11297
11298 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11299
11300         New module 'cond'.
11301         * modules/cond: New file.
11302         * lib/glthread/cond.h: New file.
11303         * lib/glthread/cond.c: New file.
11304         * m4/cond.m4: New file.
11305         * MODULES.html.sh (Multithreading): Add cond.
11306
11307 2008-08-16  Eric Blake  <ebb9@byu.net>
11308
11309         c-stack: fix regression on Irix 5.3 from 2008-06-21
11310         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
11311         sa_sigaction...
11312         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
11313         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
11314         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
11315         * modules/signal (Makefile.am): Use the value.
11316         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
11317         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
11318         * doc/posix-headers/signal.texi (signal.h): Document this
11319         portability issue.
11320         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
11321         Reported by Tom G. Christensen.
11322
11323 2008-08-17  Bruno Haible  <bruno@clisp.org>
11324
11325         New module 'threadlib'.
11326         * modules/threadlib: New file.
11327         * lib/glthread/threadlib.c: New file, extracted from
11328         lib/glthread/lock.c.
11329         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
11330         functions.
11331         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
11332         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
11333         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
11334         macros.
11335         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
11336         (gl_DISABLE_THREADS): Remove macro.
11337         * modules/lock (Files): Remove build-aux/config.rpath.
11338         (Depends-on): Remove havelib. Add threadlib.
11339         (configure.ac-early): Remove section.
11340         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
11341         * modules/tls (Depends-on): Remove lock. Add threadlib.
11342         (Link): New section, copied from threadlib.
11343         * MODULES.html.sh (Multithreading): Add threadlib.
11344
11345 2008-08-14  Bruno Haible  <bruno@clisp.org>
11346
11347         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
11348         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
11349         glthread_rwlock_unlock, glthread_rwlock_destroy,
11350         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
11351         glthread_recursive_lock_destroy): Define as macros always.
11352         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
11353         glthread_lock_lock.
11354         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
11355         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
11356         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
11357         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
11358         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
11359         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
11360         (glthread_recursive_lock_lock_func): Renamed from
11361         glthread_recursive_lock_lock.
11362         (glthread_recursive_lock_unlock_func): Renamed from
11363         glthread_recursive_lock_unlock.
11364         (glthread_recursive_lock_destroy_func): Renamed from
11365         glthread_recursive_lock_destroy.
11366
11367 2008-08-14  Bruno Haible  <bruno@clisp.org>
11368
11369         * lib/glthread/lock.h: Renamed from lib/lock.h.
11370         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
11371         * lib/glthread/tls.h: Renamed from lib/tls.h.
11372         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
11373         * lib/fstrcmp.c: Update includes.
11374         * lib/strsignal.c: Update includes.
11375         * modules/lock (Files, Makefile.am): Update.
11376         (Include): Change to "glthread/lock.h".
11377         * modules/tls (Files, Makefile.am): Update.
11378         (Include): Change to "glthread/tls.h".
11379         * tests/test-lock.c: Update includes.
11380         * tests/test-tls.c: Update includes.
11381         * NEWS: Mention the renamed header files.
11382
11383 2008-08-11  Jim Meyering  <meyering@redhat.com>
11384
11385         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
11386
11387 2008-08-11  Eric Blake  <ebb9@byu.net>
11388
11389         test-c-stack: avoid C99-ism
11390         * tests/test-c-stack.c (main): Fix whitespace, move declaration
11391         before statement.
11392         Reported by Alain Guibert.
11393
11394 2008-08-10  Jim Meyering  <meyering@redhat.com>
11395
11396         ensure that return value of uinttostr et al are not ignored
11397         * lib/inttostr.h (__GNUC_PREREQ): Define.
11398         (__attribute_warn_unused_result__): Define.
11399         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
11400
11401 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
11402
11403         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
11404         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
11405
11406 2008-08-07  Jim Meyering  <meyering@redhat.com>
11407
11408         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
11409
11410         * modules/mkstemp (License): Relicense under LGPLv2+.
11411         * modules/tempname (License): Likewise.
11412
11413 2008-08-06  Bruno Haible  <bruno@clisp.org>
11414
11415         * lib/poll.c (poll): Further micro-optimization.
11416
11417 2008-08-06  Jim Meyering  <meyering@redhat.com>
11418
11419         inet_pton.c: use locale-independent tolower
11420         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
11421         (inet_pton6): Use c_tolower rather than tolower.
11422         * modules/inet_pton (Depends-on): Add c-ctype.
11423
11424 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
11425
11426         * lib/poll.c (poll): Avoid division when timeout is 0, cache
11427         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
11428
11429 2008-08-06  Jim Meyering  <meyering@redhat.com>
11430
11431         * modules/inet_pton (License): Relicense under LGPLv2+.
11432
11433 2008-08-03  Bruno Haible  <bruno@clisp.org>
11434
11435         Additional non-aborting API for lock and tls.
11436         * lib/lock.h: Include <errno.h>.
11437         (glthread_lock_init): New macro/function.
11438         (gl_lock_init): Define as wrapper around glthread_lock_init.
11439         (glthread_lock_lock): New macro/function.
11440         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
11441         (glthread_lock_unlock): New macro/function.
11442         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
11443         (glthread_lock_destroy): New macro/function.
11444         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
11445         (glthread_rwlock_init): New macro/function.
11446         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
11447         (glthread_rwlock_rdlock): New macro/function.
11448         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
11449         (glthread_rwlock_wrlock): New macro/function.
11450         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
11451         (glthread_rwlock_unlock): New macro/function.
11452         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
11453         (glthread_rwlock_destroy): New macro/function.
11454         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
11455         (glthread_recursive_lock_init): New macro/function.
11456         (gl_recursive_lock_init): Define as wrapper around
11457         glthread_recursive_lock_init.
11458         (glthread_recursive_lock_lock): New macro/function.
11459         (gl_recursive_lock_lock): Define as wrapper around
11460         glthread_recursive_lock_lock.
11461         (glthread_recursive_lock_unlock): New macro/function.
11462         (gl_recursive_lock_unlock): Define as wrapper around
11463         glthread_recursive_lock_unlock.
11464         (glthread_recursive_lock_destroy): New macro/function.
11465         (gl_recursive_lock_destroy): Define as wrapper around
11466         glthread_recursive_lock_destroy.
11467         (glthread_once): New macro/function.
11468         (gl_once): Define as wrapper around glthread_once.
11469         Update function declarations.
11470         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
11471         glthread_rwlock_init. Return error code.
11472         (glthread_rwlock_rdlock_multithreaded): Renamed from
11473         glthread_rwlock_rdlock. Return error code.
11474         (glthread_rwlock_wrlock_multithreaded): Renamed from
11475         glthread_rwlock_wrlock. Return error code.
11476         (glthread_rwlock_unlock_multithreaded): Renamed from
11477         glthread_rwlock_unlock. Return error code.
11478         (glthread_rwlock_destroy_multithreaded): Renamed from
11479         glthread_rwlock_destroy. Return error code.
11480         (glthread_recursive_lock_init_multithreaded): Renamed from
11481         glthread_recursive_lock_init. Return error code.
11482         (glthread_recursive_lock_lock_multithreaded): Renamed from
11483         glthread_recursive_lock_lock. Return error code.
11484         (glthread_recursive_lock_unlock_multithreaded): Renamed from
11485         glthread_recursive_lock_unlock. Return error code.
11486         (glthread_recursive_lock_destroy_multithreaded): Renamed from
11487         glthread_recursive_lock_destroy. Return error code.
11488         (glthread_once_call): Make static.
11489         (glthread_once_multithreaded): Renamed from glthread_once.
11490         * lib/tls.h: Include <errno.h>.
11491         (glthread_tls_key_init): New macro/function.
11492         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
11493         (glthread_tls_set): New macro/function.
11494         (gl_tls_set): Define as wrapper around glthread_tls_set.
11495         (glthread_tls_key_destroy): New macro/function.
11496         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
11497         Update function declarations.
11498         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
11499         glthread_tls_get.
11500         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11501
11502 2008-08-04  Eric Blake  <ebb9@byu.net>
11503
11504         gnumakefile: use space, not TAB, outside of targets
11505         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
11506
11507 2008-08-02  Jim Meyering  <meyering@redhat.com>
11508
11509         getdate.y: avoid locale-dependent date parsing failure
11510         In Turkish locales, getdate would fail to recognize keywords
11511         containing a lowercase "i".  The solution is not to rely on
11512         locale-sensitive case-conversion.
11513         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
11514         (lookup_word): Use c_toupper in place of toupper.
11515         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
11516         Reported by Vefa Bicakci <bicave@superonline.com> in
11517         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
11518         * modules/getdate (Depends-on): Add c-ctype.
11519
11520 2008-08-02  Bruno Haible  <bruno@clisp.org>
11521
11522         * gnulib-tool (func_import): When updating or creating a .gitignore
11523         file, prepend each added line with a slash, and ignore leading slashes
11524         from the existing lines.
11525         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11526
11527 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11528
11529         Portability fix for GNU make 3.79.1.
11530         * top/GNUmakefile: Avoid 'else COND', which older GNU make
11531         versions do not understand.
11532
11533 2008-08-01  Bruno Haible  <bruno@clisp.org>
11534
11535         Work around bug of HP-UX 10.20 cc with -0.0 literal.
11536         * tests/test-isnanf.h (zero): New variable.
11537         (main): Avoid literal -0.0f.
11538         * tests/test-isnand.h (zero): New variable.
11539         (main): Avoid literal -0.0.
11540         * tests/test-isnanl.h (zero): New variable.
11541         (main): Avoid literal -0.0L.
11542         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
11543         (test_float, test_double, test_long_double): Avoid literals -0.0f,
11544         -0.0, -0.0L.
11545         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
11546         (test_signbitd): Avoid literal -0.0.
11547         (test_signbitl): Avoid literal -0.0L.
11548         * tests/test-ceilf1.c (zero): New variable.
11549         (main): Avoid literal -0.0f.
11550         * tests/test-ceill.c (zero): New variable.
11551         (main): Avoid literal -0.0L.
11552         * tests/test-floorf1.c (zero): New variable.
11553         (main): Avoid literal -0.0f.
11554         * tests/test-floorl.c (zero): New variable.
11555         (main): Avoid literal -0.0L.
11556         * tests/test-roundf1.c (zero): New variable.
11557         (main): Avoid literal -0.0f.
11558         * tests/test-round1.c (zero): New variable.
11559         (main): Avoid literal -0.0.
11560         * tests/test-roundl.c (zero): New variable.
11561         (main): Avoid literal -0.0L.
11562         * tests/test-truncf1.c (zero): New variable.
11563         (main): Avoid literal -0.0f.
11564         * tests/test-trunc1.c (zero): New variable.
11565         (main): Avoid literal -0.0.
11566         * tests/test-truncl.c (zero): New variable.
11567         (main): Avoid literal -0.0L.
11568         * tests/test-frexp.c (zero): New variable.
11569         (main): Avoid literal -0.0.
11570         * tests/test-frexpl.c (zero): New variable.
11571         (main): Avoid literal -0.0L.
11572         * tests/test-ldexpl.c (zero): New variable.
11573         (main): Avoid literal -0.0L.
11574         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
11575         (zerod, zerol): New variables.
11576         (test_function): Avoid literals -0.0, -0.0L.
11577         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
11578         (zerod, zerol): New variables.
11579         (test_function): Avoid literals -0.0, -0.0L.
11580         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
11581         (zerod, zerol): New variables.
11582         (test_function): Avoid literals -0.0, -0.0L.
11583         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
11584         (zerod, zerol): New variables.
11585         (test_function): Avoid literals -0.0, -0.0L.
11586         * tests/test-strtod.c (zero): New variable.
11587         (main): Avoid literal -0.0.
11588         Reported by Jonathan C. Patschke <jp@centtech.com>.
11589
11590 2008-07-31  Jim Meyering  <meyering@redhat.com>
11591
11592         sha256.h: correct definition of SHA224_DIGEST_SIZE
11593         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
11594         Reported by Paulie Pena IV <paulie4@gmail.com>.
11595         Define as 224 / 8, rather than as a literal.
11596         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
11597         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
11598         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
11599
11600 2008-07-31  Bruno Haible  <bruno@clisp.org>
11601
11602         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
11603         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
11604         Reported by Jonathan Patschke <jp@centtech.com>.
11605
11606 2008-07-31  Bruno Haible  <bruno@clisp.org>
11607
11608         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
11609         Reported by Paolo Bonzini <bonzini@gnu.org>.
11610
11611 2008-07-30  Eric Blake  <ebb9@byu.net>
11612
11613         test-strtod: allow compilation without -lm
11614         * tests/test-strtod.c (main): Avoid link dependence on fabs.
11615         Reported by Dennis Clarke <blastwave@gmail.com>.
11616
11617 2008-07-28  Jim Meyering  <meyering@redhat.com>
11618
11619         bootstrap: work also when there are no .po files in po/
11620         * build-aux/bootstrap (update_po_files): Complete the change
11621         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
11622
11623 2008-07-27  Jim Meyering  <meyering@redhat.com>
11624
11625         * users.txt: Add zile.
11626
11627 2008-07-26  Ben Pfaff  <blp@gnu.org>
11628
11629         Add missing dependencies on new m4/exponent[fdl].m4 files.
11630         * modules/isnanf-nolibm: Add m4/exponentf.m4.
11631         * modules/isnand-nolibm: Add m4/exponentd.m4.
11632         * modules/isnanl-nolibm: Add m4/exponentl.m4.
11633         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
11634         m4/isnan[fdl].m4, because the macros actually used moved.
11635         Reported by Jim Meyering.
11636
11637 2008-07-14  Ben Pfaff  <blp@gnu.org>
11638
11639         Add isinf module.
11640         * lib/isinf.c: New file.
11641         * lib/math.in.h: Define isinf macro if we have decided to replace
11642         it.
11643         * m4/isinf.m4: New file.
11644         * m4/math_h.m4: Initialize and substitute variables for isinf
11645         module.
11646         * modules/isinf: New file.
11647         * modules/isinf-tests: New file.
11648         * modules/math: Add substitutions for new module.
11649         * tests/test-isinf.c: New file.
11650         * doc/posix-functions/isinf.texi: Mention new module.
11651         * MODULES.html.sh: Mention new module.
11652
11653 2008-07-14  Ben Pfaff  <blp@gnu.org>
11654
11655         Factor out some macros for use by additional modules.
11656         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
11657         exponentf.m4.
11658         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
11659         exponentd.m4.
11660         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
11661         file exponentl.m4.
11662         * m4/exponentf.m4: New file.
11663         * m4/exponentd.m4: New file.
11664         * m4/exponentl.m4: New file.
11665         * modules/isnanf: Use new file m4/exponentf.m4.
11666         * modules/isnand: Use new file m4/exponentd.m4.
11667         * modules/isnanl: Use new file m4/exponentl.m4.
11668
11669 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
11670
11671         mktime.c: normalize tp->tm_isdst value to -1/0/1.
11672         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
11673         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
11674         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
11675
11676         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
11677         readlink on platforms without PATH_MAX.
11678
11679 2008-07-21  Eric Blake  <ebb9@byu.net>
11680
11681         Warn, not fail, on stale version.
11682         * top/GNUmakefile (_curr-ver): Tone down previous patch.
11683
11684         Don't allow installation with stale devel version number.
11685         * top/GNUmakefile (_is-install-target): New macro.
11686         (_curr-ver): Forbid installation with stale version number.
11687
11688 2008-07-20  Bruno Haible  <bruno@clisp.org>
11689
11690         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
11691         TESTS_ENVIRONMENT.
11692         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
11693
11694 2008-07-20  Bruno Haible  <bruno@clisp.org>
11695
11696         * lib/c-stack.h (c_stack_action): Add documentation.
11697         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
11698
11699 2008-07-20  Bruno Haible  <bruno@clisp.org>
11700
11701         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
11702         * modules/readlink (License): Likewise.
11703
11704 2008-07-17  Eric Blake  <ebb9@byu.net>
11705
11706         * modules/c-stack (Link): Fix typo.
11707
11708         Make c-stack use libsigsegv, when available.
11709         * modules/c-stack (Depends-on): Add libsigsegv.
11710         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
11711         needed.
11712         * lib/c-stack.c (SIGSTKSZ): Define fallback.
11713         (segv_handler, overflow_handler, c_stack_action)
11714         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
11715         implementation when libsigsegv is available, but only when using
11716         the library is necessary.
11717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
11718         comment, explaining why XSI check fails on Linux.
11719         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
11720         * tests/test-c-stack2.sh: Tweak skip message.
11721         * NEWS: Document new link-time requirements.
11722
11723 2008-07-16  Eric Blake  <ebb9@byu.net>
11724
11725         c-stack: Expose false positives when not using libsigsegv.
11726         * modules/c-stack-tests (Files): Expand test.
11727         * tests/test-c-stack.c (main): Add means to conditionally trigger
11728         non-overflow SIGSEGV.
11729         * tests/test-c-stack2.sh: New file.
11730
11731 2008-07-14  Bruno Haible  <bruno@clisp.org>
11732
11733         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
11734         Reported by Eric Blake.
11735
11736 2008-07-14  Sam Steingold  <sds@gnu.org>
11737             Bruno Haible  <bruno@clisp.org>
11738
11739         New module libsigsegv.
11740         * modules/libsigsegv: New file.
11741         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
11742         modifications.
11743         * MODULES.html.sh (Signal handling): New section.
11744
11745 2008-07-14  Bruno Haible  <bruno@clisp.org>
11746
11747         * modules/unictype/ctype-* (Description): Add the word "function".
11748         Improves the resulting doc in MODULES.html.
11749
11750 2008-07-12  Ben Pfaff  <blp@gnu.org>
11751
11752         Add longlong module.
11753         * modules/longlong: New file.
11754
11755 2008-07-12  Bruno Haible  <bruno@clisp.org>
11756
11757         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
11758         to empty.
11759
11760 2008-07-10  Ben Pfaff  <blp@gnu.org>
11761
11762         Add isnan module.
11763         * doc/posix-functions/isnan.texi: Mention new module.
11764         * lib/math.in.h: Define isnan macro if we have decided to replace
11765         it.
11766         * m4/isnan.m4: New file.
11767         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
11768         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
11769         also.
11770         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
11771         redundancy.
11772         * m4/math_h.m4: Initialize and substitute variables for isnan
11773         module.
11774         * modules/isnan: New file.
11775         * modules/isnan-tests: New file.
11776         * modules/math: Add substitutions for new module.
11777         * tests/test-isnan.c: New file.
11778         * MODULES.html.sh: Mention new module.
11779
11780 2008-07-10  Ben Pfaff  <blp@gnu.org>
11781
11782         Add isnanf module.
11783         * lib/isnanf.m4: New file.
11784         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
11785         (gl_HAVE_ISNANF_IN_LIBM): New macro.
11786         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
11787         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
11788         * modules/isnanf: New file.
11789         * modules/isnanf-tests: New file.
11790         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
11791         files.
11792         * tests/test-isnanf-nolibm.c: factored most of its contents into
11793         new file tests/test-isnanf.h.
11794         * tests/test-isnanf.h: New file.
11795         * tests/test-isnanf.c: New file.
11796         * MODULES.html.sh: Mention new module.
11797         * doc/glibc-functions/isnanf.texi: Mention new module.
11798
11799 2008-07-10  Ben Pfaff  <blp@gnu.org>
11800
11801         Add isnand module.
11802         * lib/isnand.h: New file.
11803         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
11804         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
11805         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
11806         functionality also.
11807         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
11808         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
11809         (gl_HAVE_ISNAND_IN_LIBM): New macro.
11810         * modules/isnand: New file.
11811         * modules/isnand-tests: New file.
11812         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
11813         files.
11814         * tests/test-isnand-nolibm.c: factored most of its contents into
11815         new file tests/test-isnand.h.
11816         * tests/test-isnand.h: New file.
11817         * tests/test-isnand.c: New file.
11818         * MODULES.html.sh: Mention new module.
11819
11820 2008-07-10  Ben Pfaff  <blp@gnu.org>
11821
11822         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
11823         * lib/isnand.h: Rename lib/isnand-nolibm.h.
11824         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
11825         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
11826         * modules/isnanf-nolibm: Update references to renamed files.
11827         * modules/isnand-nolibm: Likewise.
11828         * modules/isnanf-nolibm-tests: Likewise.
11829         * modules/isnand-nolibm-tests: Likewise.
11830         * lib/frexp.c: Likewise.
11831         * lib/isfinite.c: Likewise.
11832         * lib/signbitd.c: Likewise.
11833         * lib/signbitf.c: Likewise.
11834         * lib/vasnprintf.c: Likewise.
11835         * tests/test-ceilf1.c: Likewise.
11836         * tests/test-ceilf2.c: Likewise.
11837         * tests/test-floorf1.c: Likewise.
11838         * tests/test-floorf2.c: Likewise.
11839         * tests/test-frexp.c: Likewise.
11840         * tests/test-round1.c: Likewise.
11841         * tests/test-round2.c: Likewise.
11842         * tests/test-roundf1.c: Likewise.
11843         * tests/test-strtod.c: Likewise.
11844         * tests/test-trunc1.c: Likewise.
11845         * tests/test-trunc2.c: Likewise.
11846         * tests/test-truncf1.c: Likewise.
11847         * tests/test-truncf2.c: Likewise.
11848         * NEWS: Mention the renamed header files.
11849
11850 2008-07-11  Jim Meyering  <meyering@redhat.com>
11851
11852         vc-list-files: make the last-resort awk code more portable
11853         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
11854         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
11855         does not support it.
11856
11857 2008-07-10  Eric Blake  <ebb9@byu.net>
11858
11859         Work with tar's bootstrap.
11860         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
11861         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
11862         an m4 comment.
11863
11864 2008-07-09  Jim Meyering  <meyering@redhat.com>
11865
11866         posix-shell.m4: fix typo that made this test malfunction
11867         * m4/posix-shell.m4: Remove capitalization in variable name.
11868
11869 2008-07-08  Bruno Haible  <bruno@clisp.org>
11870
11871         * m4/onceonly.m4: Update comments.
11872         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11873
11874 2008-07-04  Jim Meyering  <meyering@redhat.com>
11875
11876         * users.txt: Add vc-dwim.
11877         (bison, coreutils): Use the gitweb URL.
11878
11879 2008-07-03  Jim Meyering  <meyering@redhat.com>
11880
11881         * users.txt: Add libffcall.  From Sam Steingold.
11882
11883 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
11884
11885         getdate.y: do not ignore TZ with relative day, month or year offset
11886         * lib/getdate.y (get_date): Move the tz-handling block to follow the
11887         relative-date-handling, since otherwise, the latter would clobber the
11888         sole output (an updated Start value) of the tz-handling block.
11889         * tests/test-getdate.c: Tests for the fix
11890
11891 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11892
11893         Recognize 'foo_LIBRARIES += libgnu.a'.
11894         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
11895         makefile snippet has already specified an installation location,
11896         also using '+='.
11897
11898 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
11899
11900         getdate.y: factor out common actions
11901         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
11902         Use them in place of open-coded actions.
11903
11904 2008-07-01  Simon Josefsson  <simon@josefsson.org>
11905
11906         Add self-test for getdate module.
11907         * modules/getdate-tests: New file.
11908         * tests/test-getdate.c: New file.
11909
11910 2008-06-29  Bruno Haible  <bruno@clisp.org>
11911
11912         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
11913         .gitignore.
11914         Reported by Sylvain Beucler <beuc@beuc.net>.
11915
11916 2008-06-29  Bruno Haible  <bruno@clisp.org>
11917
11918         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
11919         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
11920
11921 2008-06-29  Bruno Haible  <bruno@clisp.org>
11922
11923         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
11924         EXTRA_DIST.
11925         Reported by Sylvain Beucler <beuc@beuc.net>.
11926
11927 2008-06-26  Jim Meyering  <meyering@redhat.com>
11928
11929         make several modules depend on the "open" module
11930         This provides slightly increased consistency when opening-for-write
11931         the name of a non-directory spelled with a trailing slash.
11932         * modules/chdir-safer: Likewise.
11933         * modules/chown: Likewise.
11934         * modules/clean-temp: Likewise.
11935         * modules/copy-file: Likewise.
11936         * modules/fchdir: Likewise.
11937         * modules/fcntl-safer: Likewise.
11938         * modules/pipe: Likewise.
11939         * modules/utime: Likewise.
11940         Prompted by Eric Blake and Bruno Haible.
11941
11942 2008-06-24  Andreas Schwab  <schwab@suse.de>
11943
11944         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
11945         literals can be used as initializers for global variables.
11946
11947 2008-06-23  Eric Blake  <ebb9@byu.net>
11948
11949         Make gnulib-cache.m4 easier to diff.
11950         * gnulib-tool (func_import): Allow newlines when reading cached
11951         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
11952
11953 2008-06-23  Bruno Haible  <bruno@clisp.org>
11954
11955         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
11956         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
11957         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
11958         m4/signalblocking.m4.
11959         (gl_PREREQ_SIGACTION): Don't invoke it.
11960         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
11961         gl_PREREQ_SIG_HANDLER_H.
11962         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11963         Don't check for sigaction here.
11964
11965 2008-06-23  Bruno Haible  <bruno@clisp.org>
11966
11967         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
11968         (install_handlers): Don't set the SA_RESETHAND flag.
11969
11970 2008-06-23  Bruno Haible  <bruno@clisp.org>
11971
11972         * m4/sigaction.m4: Comment fixes.
11973         * lib/signal.in.h: Likewise.
11974
11975 2008-06-23  Eric Blake  <ebb9@byu.net>
11976
11977         Fix typo.
11978         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
11979
11980         Avoid SA_ namespace.
11981         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
11982         Reported by Ralf Wildenhues.
11983
11984         Avoid test failure due to SA_RESTORER.
11985         * tests/test-sigaction.c (SA_MASK): New macro.
11986         (main): Avoid failing due to extension flags being set.
11987         Reported by Jim Meyering.
11988
11989         Revert use of sig-handler.h in sigprocmask.c.
11990         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
11991         it requires the existence of struct sigaction.
11992         * lib/sigprocmask.c (handler_t): Restore typedef.
11993         (rpl_signal, old_handlers): Use local type.
11994
11995 2008-06-22  Bruno Haible  <bruno@clisp.org>
11996
11997         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
11998         conditionally.
11999         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12000
12001 2008-06-22  Bruno Haible  <bruno@clisp.org>
12002
12003         * doc/posix-functions/siginterrupt.texi: Move note.
12004
12005         * lib/signal.in.h (SA_RESTART): New macro.
12006         * lib/sigaction.c: Update comment.
12007
12008         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
12009
12010         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
12011         (gl_PREREQ_SIGPROCMASK): Invoke it.
12012         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
12013
12014         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
12015
12016         * lib/sigprocmask.c: Update a comment.
12017
12018 2008-06-21  Eric Blake  <ebb9@byu.net>
12019
12020         Use sigaction module rather than signal().
12021         * modules/c-stack (Depends-on): Add sigaction.
12022         * modules/fatal-signal (Depends-on): Likewise.
12023         * modules/nanosleep (Depends-on): Likewise.
12024         * modules/sigprocmask (Files): Add sig-handler.h.
12025         * modules/sigaction (Files): Likewise.
12026         * lib/sig-handler.h (get_handler): New file, suggested by Paul
12027         Eggert.
12028         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
12029         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
12030         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
12031         (init_fatal_signals): Likewise.
12032         * lib/nanosleep.c (rpl_nanosleep): Likewise.
12033         (siginterrupt): Delete fallback.
12034         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
12035         instead.
12036         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
12037         siginterrupt.
12038
12039         New module sigaction, for mingw.
12040         * modules/sigaction: New module...
12041         * modules/sigaction-tests: ...and its test.
12042         * m4/sigaction.m4: New file.
12043         * lib/sigaction.c: Likewise.
12044         * tests/test-sigaction.c: Likewise.
12045         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
12046         * modules/signal (Makefile.am): Likewise.
12047         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
12048         needed.
12049         * doc/posix-headers/signal.texi (signal.h): Mention provided
12050         types.
12051         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
12052         that sigaction is preferable.
12053         * doc/posix-functions/sigaction.texi (sigaction): Mention new
12054         module.
12055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12056         sigaction.
12057
12058         Improve robustness of sigprocmask by overriding signal.
12059         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
12060         is in use.
12061         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
12062         (SIGKILL, SIGSTOP): Provide fallbacks.
12063         (rpl_signal): Implement.
12064         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
12065         signal can be called inside handlers.
12066
12067         Fix nanosleep module on mingw.
12068         * modules/nanosleep (Depends-on): Add sys_select.
12069         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
12070
12071         Fix licensing of sigprocmask.
12072         * modules/raise (License): Relicense as LGPL.
12073
12074 2008-06-21  Bruno Haible  <bruno@clisp.org>
12075
12076         * lib/propername.c (proper_name_utf8): Don't use the transliterated
12077         result if it contains question marks.
12078         Reported by Michael Geng <linux@michaelgeng.de>.
12079
12080 2008-06-19  Bruno Haible  <bruno@clisp.org>
12081
12082         Fix CVS-ism.
12083         * doc/gnulib.texi: Include updated-stamp.texi.
12084         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
12085         (updated-stamp.texi): New rule.
12086         (gnulib.info): Depend on it.
12087         * doc/.gitignore: Add updated-stamp.texi.
12088         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
12089
12090 2008-06-19  Bruno Haible  <bruno@clisp.org>
12091
12092         * doc/Makefile (gnulib.info): Update and simplify dependencies.
12093         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12094
12095 2008-06-19  Eric Blake  <ebb9@byu.net>
12096
12097         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
12098         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
12099         Reported by Stepan Kasal.
12100
12101 2008-06-18  Bruno Haible  <bruno@clisp.org>
12102
12103         * lib/fatal-signal.c (init_fatal_signals): Add comment.
12104         Reported by Eric Blake.
12105
12106 2008-06-18  Eric Blake  <ebb9@byu.net>
12107
12108         Work around cygwin 1.5.25 strsignal bug.
12109         * tests/test-strsignal.c: Allow for const char *.
12110         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
12111
12112 2008-06-18  Simon Josefsson  <simon@josefsson.org>
12113
12114         * users.txt: Update URL to article and add author/date
12115         information.
12116
12117 2008-06-17  Bruno Haible  <bruno@clisp.org>
12118
12119         New macro gl_DISABLE_THREADS.
12120         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
12121         if the user did not pass --enable-threads or --disable-threads option.
12122         (gl_DISABLE_THREADS): New macro.
12123         Reported by Eric Blake <ebb9@byu.net>.
12124
12125 2008-06-17  Bruno Haible  <bruno@clisp.org>
12126
12127         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
12128         when the macro ignores it.
12129         Based on a patch by Eric Blake <ebb9@byu.net>.
12130
12131 2008-06-17  Bruno Haible  <bruno@clisp.org>
12132
12133         * modules/tls (License): Change to LGPLv2+.
12134         Reported by Eric Blake.
12135
12136 2008-06-17  Eric Blake  <ebb9@byu.net>
12137
12138         Simplify c-stack prerequisites.
12139         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
12140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
12141         no longer requires <ucontext.h> to exist.  Optimize setrlimit
12142         check.
12143         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
12144         <sys/resource.h>.
12145
12146         Move c-stack test into testsuite.
12147         * modules/c-stack-tests: New file.
12148         * lib/c-stack.c [DEBUG]: Move test program...
12149         * tests/test-c-stack.c: ...into this new file.  Skip rather than
12150         fail test if sigaltstack is lacking.
12151         * tests/test-c-stack.sh: New driver file.
12152
12153 2008-06-16  Eric Blake  <ebb9@byu.net>
12154
12155         Use raise module consistently.
12156         * modules/fatal-signal (Depends-on): Add raise.
12157         * modules/sigprocmask (Depends-on): Likewise.
12158         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
12159         * lib/sigprocmask.c (sigprocmask): Likewise.
12160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12161         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
12162
12163         Fix compliance bug in sigpending.
12164         * lib/sigprocmask.c (sigpending): Return pending array via
12165         parameter, not return value.
12166
12167 2008-06-14  Eric Blake  <ebb9@byu.net>
12168
12169         Improve obstack-printf test code.
12170         * tests/test-obstack-printf.c (test_function): Fix comment, and
12171         simplify usage of obstack_* in macros.  Add a test for coverage.
12172         Reported by Bruno Haible.
12173
12174 2008-06-14  Bruno Haible  <bruno@clisp.org>
12175
12176         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
12177         array size as a constant, not as a const variable.
12178         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
12179         AC_USE_SYSTEM_EXTENSIONS.
12180         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12181         Test whether the obstack_printf function actually exists.
12182         * modules/obstack-printf (Depends-on): Add extensions.
12183         (Include): Remove obstack.h.
12184         * modules/obstack-printf-posix (Depends-on): Add extensions.
12185         (Include): Remove obstack.h.
12186
12187 2008-06-13  Eric Blake  <ebb9@byu.net>
12188
12189         Add obstack-printf and obstack-printf-posix modules.
12190         * modules/obstack-printf: New file.
12191         * modules/obstack-printf-posix: Likewise.
12192         * MODULES.html.sh (Misc): Mention them.
12193         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
12194         Likewise.
12195         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
12196         Likewise.
12197         * modules/stdio (Makefile.am): Accomodate new modules.
12198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12199         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
12200         Declare.
12201         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
12202         functions.
12203         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
12204         (gl_REPLACE_OBSTACK_PRINTF): New macros
12205         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
12206         * tests/test-obstack-printf.c: New file.
12207         * modules/obstack-printf-tests: Likewise.
12208         * modules/obstack-printf-posix-tests: Likewise.
12209
12210 2008-06-11  Bruno Haible  <bruno@clisp.org>
12211
12212         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
12213         * lib/open.c: Include errno.h.
12214         (open): Fail when attempting to write to a file that has a trailing
12215         slash.
12216         * tests/test-open.c (main): Test against trailing slash bug.
12217         * doc/posix-functions/open.texi: Mention the trailing slash bug.
12218
12219 2008-06-10  Bruno Haible  <bruno@clisp.org>
12220
12221         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
12222         for $? to work inside the trap command, with various /bin/sh-s.
12223         * tests/test-vc-list-files-cvs.sh: Likewise.
12224
12225 2008-06-10  Bruno Haible  <bruno@clisp.org>
12226
12227         * lib/acl-internal.h: Don't include gettext.h here.
12228         * lib/set-mode-acl.c: Include gettext.h here.
12229         * lib/copy-acl.c: Likewise.
12230
12231 2008-06-10  Bruno Haible  <bruno@clisp.org>
12232
12233         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
12234         * lib/wait-process.c (wait_subprocess): Likewise.
12235         * lib/execute.h (execute): Add termsigp argument.
12236         * lib/execute.c (execute): Likewise.
12237         * lib/csharpcomp.c (compile_csharp_using_pnet,
12238         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
12239         * lib/csharpexec.c (execute_csharp_using_pnet,
12240         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
12241         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
12242         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
12243         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
12244         is_jikes_present): Update.
12245         * lib/javaexec.c (execute_java_class): Update.
12246         * lib/javaversion.c (execute_and_read_line): Update.
12247         * NEWS: Document the changes.
12248         Reported by Eric Blake.
12249
12250 2008-06-10  Eric Blake  <ebb9@byu.net>
12251
12252         Add missing include.
12253         * tests/test-strstr.c (includes): Add <signal.h>.
12254         * tests/test-strcasestr.c (includes): Likewise.
12255         * tests/test-memmem.c (includes): Likewise.
12256
12257 2008-06-10  Bruno Haible  <bruno@clisp.org>
12258
12259         * lib/wait-process.c (wait_subprocess): Add an assertion.
12260
12261 2008-06-10  Bruno Haible  <bruno@clisp.org>
12262
12263         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
12264
12265 2008-06-10  Bruno Haible  <bruno@clisp.org>
12266
12267         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
12268         using alarm().
12269         * tests/test-strcasestr.c (main): Likewise.
12270         * tests/test-strstr.c (main): Likewise.
12271
12272 2008-06-09  Bruno Haible  <bruno@clisp.org>
12273
12274         Work around the Solaris 10 ACE ACLs ABI change.
12275         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
12276         declare if ACL_NO_TRIVIAL is present.
12277         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
12278         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
12279         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
12280         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
12281         define if ACL_NO_TRIVIAL is present.
12282         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
12283         and use the current ABI.
12284         (file_has_acl): Use same #if condition as elsewhere.
12285         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
12286         in use, and use the current ABI.
12287         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
12288         Reported by Jim Meyering.
12289
12290 2008-06-09  Eric Blake  <ebb9@byu.net>
12291
12292         Work around environments that (stupidly) ignore SIGALRM.
12293         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
12294         before using alarm().
12295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12297         Reported by Ian Beckwith <ianb@erislabs.net>.
12298
12299         Produce autobuild blurb earlier in log.
12300         * modules/autobuild (configure.ac-early): Move AB_INIT here.
12301
12302 2008-06-09  Jim Meyering  <meyering@redhat.com>
12303         and OndÅ™ej Vašík  <ovasik@redhat.com>
12304
12305         utimens.c: correct kernel bug work-around
12306         OndÅ™ej Vašík found that the invalid return value of 280 indicates
12307         failure, not success, and the kernel bug we're trying to work
12308         around affects not just the utimensat call, but also the fallback
12309         futimens call.
12310         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
12311         not success.
12312         [HAVE_FUTIMENS]: Use the same work-around, here.
12313
12314 2008-06-09  Jim Meyering  <meyering@redhat.com>
12315
12316         add more guards around definition of ACE_-related code
12317         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
12318         ALLOW and ACE_OWNER are also defined.
12319
12320 2008-06-08  Bruno Haible  <bruno@clisp.org>
12321
12322         * lib/acl-internal.h: Add me as co-author.
12323         * lib/file-has-acl.c: Likewise.
12324         * lib/set-mode-acl.c: Likewise.
12325         * lib/copy-acl.c: Likewise.
12326
12327 2008-06-08  Bruno Haible  <bruno@clisp.org>
12328
12329         Add support for AIX ACLs.
12330         * lib/acl-internal.h (acl_nontrivial): New declaration.
12331         * lib/file-has-acl.c (acl_nontrivial): New function.
12332         (file_has_acl): Add implementation using AIX 4 ACL API.
12333         * lib/set-mode-acl.c (qset_acl): Likewise.
12334         * lib/copy-acl.c (qcopy_acl): Likewise.
12335
12336 2008-06-08  Bruno Haible  <bruno@clisp.org>
12337
12338         Add support for HP-UX ACLs.
12339         * lib/acl-internal.h (acl_nontrivial): New declaration.
12340         * lib/file-has-acl.c (acl_nontrivial): New function.
12341         (file_has_acl): Add implementation using HP-UX 11 ACL API.
12342         * lib/set-mode-acl.c (qset_acl): Likewise.
12343         * lib/copy-acl.c (qcopy_acl): Likewise.
12344
12345 2008-06-08  Bruno Haible  <bruno@clisp.org>
12346
12347         Add support for Cygwin ACLs.
12348         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
12349         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
12350         the chmod_or_fchmod call.
12351         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
12352
12353 2008-06-08  Bruno Haible  <bruno@clisp.org>
12354
12355         Fix bug with setuid modes in Solaris 10+ code.
12356         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
12357         succeeded, when the mode contains some special bits.
12358
12359 2008-06-08  Bruno Haible  <bruno@clisp.org>
12360
12361         Add support for Solaris 7..10 ACLs.
12362         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
12363         declarations.
12364         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
12365         functions.
12366         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
12367         * lib/set-mode-acl.c (qset_acl): Likewise.
12368         * lib/copy-acl.c (qcopy_acl): Likewise.
12369
12370 2008-06-08  Bruno Haible  <bruno@clisp.org>
12371
12372         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
12373         declaration.
12374         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
12375         (acl_access_nontrivial): Remove MacOS X case.
12376         (file_has_acl): Use acl_extended_nontrivial.
12377         * lib/copy-acl.c (qcopy_acl): Likewise.
12378
12379 2008-06-08  Bruno Haible  <bruno@clisp.org>
12380
12381         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
12382
12383 2008-06-08  Jim Meyering  <meyering@redhat.com>
12384
12385         * modules/acl (Maintainer): Add Bruno Haible.
12386
12387 2008-06-07  Bruno Haible  <bruno@clisp.org>
12388
12389         Improve support for Tru64 ACLs.
12390         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
12391         ACL on OSF/1.
12392
12393 2008-06-07  Bruno Haible  <bruno@clisp.org>
12394
12395         Add support for MacOS X ACLs.
12396         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
12397         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
12398         * lib/set-mode-acl.c (qset_acl): Likewise.
12399         * lib/copy-acl.c (qcopy_acl): Likewise.
12400
12401 2008-06-07  Bruno Haible  <bruno@clisp.org>
12402
12403         Fix memory leak introduced on 2008-05-22.
12404         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
12405         use.
12406
12407 2008-06-07  Bruno Haible  <bruno@clisp.org>
12408
12409         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
12410         to construct an empty ACL.
12411
12412 2008-06-07  Bruno Haible  <bruno@clisp.org>
12413
12414         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
12415         precisely.
12416         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
12417
12418 2008-06-07  Bruno Haible  <bruno@clisp.org>
12419
12420         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
12421         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
12422
12423 2008-06-07  Bruno Haible  <bruno@clisp.org>
12424
12425         * doc/posix-functions/_setjmp.texi: Explain the use of this function
12426         regardless of POSIX.
12427         * doc/posix-functions/_longjmp.texi: Likewise.
12428         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
12429         SystemV platform in this case.
12430
12431 2008-06-06  Eric Blake  <ebb9@byu.net>
12432
12433         Document abort() bugs.
12434         * doc/posix-functions/abort.texi (abort): Mention anomalies.
12435
12436         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
12437         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
12438         sigsetjmp.
12439         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
12440         siglongjmp, but only as a macro.
12441         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
12442         is obsolete.
12443         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
12444
12445         Tweak documentation to cover cygwin argz bugs.
12446         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
12447         argz bug fix; no code change needed since no cygwin releases
12448         occurred between the last fix and the bug being tested.
12449         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
12450         module and recently fixed cygwin bugs.
12451         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
12452         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
12453         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
12454         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
12455         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
12456         Likewise.
12457         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
12458         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
12459         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
12460         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
12461         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
12462         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
12463         Likewise.
12464
12465         Avoid gcc warning on cygwin.
12466         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
12467         !ACL_NO_TRIVIAL]: Avoid unused variable.
12468
12469 2008-06-05  Eric Blake  <ebb9@byu.net>
12470
12471         Be tolerant of UNKNOWN version in gnulib-tool test dir.
12472         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
12473         git-version-gen fails to come up with a version.
12474         Reported by Simon Josefsson.
12475
12476 2008-06-05  Jim Meyering  <meyering@redhat.com>
12477             Paul Eggert  <eggert@cs.ucla.edu>
12478
12479         utimens.c: work around a probable Linux kernel bug
12480         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
12481         appears to be a kernel bug that causes utimensat to return 280
12482         instead of 0, indicating success.
12483
12484 2008-06-04  Bruno Haible  <bruno@clisp.org>
12485
12486         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
12487         2008-06-01 commit.
12488
12489 2008-06-04  Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
12492         * lib/file-has-acl.c (acl_access_nontrivial): New function.
12493         (file_has_acl): Use it. Save errno afterwards.
12494         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
12495
12496 2008-06-03  Bruno Haible  <bruno@clisp.org>
12497
12498         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
12499         draft code. Simplify #ifs.
12500         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
12501         Put Solaris code after POSIX-draft code. Fix comments regarding
12502         Solaris 10, HP-UX. Mention Cygwin.
12503         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
12504
12505 2008-06-03  Eric Blake  <ebb9@byu.net>
12506
12507         Provide fallback for older kernels.
12508         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
12509         Provide runtime fallback if kernel lacks support.
12510         Reported by Mike Frysinger.
12511
12512 2008-06-02  Bruno Haible  <bruno@clisp.org>
12513
12514         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
12515         it exists.
12516
12517 2008-06-02  Bruno Haible  <bruno@clisp.org>
12518
12519         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
12520         * lib/copy-acl.c (qcopy_acl): Update comment.
12521
12522 2008-06-02  Bruno Haible  <bruno@clisp.org>
12523
12524         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
12525         like ACL APIs.
12526
12527 2008-06-02  Bruno Haible  <bruno@clisp.org>
12528
12529         * tests/test-file-has-acl.sh: Use different code for Cygwin.
12530         * tests/test-set-mode-acl.sh: Likewise.
12531         * tests/test-copy-acl.sh: Likewise.
12532         * tests/test-copy-file.sh: Likewise.
12533
12534 2008-06-02  Bruno Haible  <bruno@clisp.org>
12535
12536         * tests/test-file-has-acl.sh: Remove unused code.
12537
12538 2008-06-01  Bruno Haible  <bruno@clisp.org>
12539
12540         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
12541         (copy_acl): Just a wrapper around qcopy_acl that emits the error
12542         messages.
12543         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
12544
12545 2008-06-01  Bruno Haible  <bruno@clisp.org>
12546
12547         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
12548         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
12549         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
12550         APIs.
12551         * modules/acl-tests (configure.ac): Remove tests now contained in
12552         m4/acl.m4.
12553
12554 2008-06-02  Jim Meyering  <meyering@redhat.com>
12555
12556         announce-gen: use a better key-server host name
12557         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
12558         it may be more consistently reliable.  Suggested by Werner Koch
12559         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
12560
12561 2008-06-01  Bruno Haible  <bruno@clisp.org>
12562
12563         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
12564         Reported by Voroskoi Andras <voroskoi@gmail.com>.
12565
12566 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
12567
12568         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
12569
12570 2008-06-01  Bruno Haible  <bruno@clisp.org>
12571
12572         New ACL tests.
12573         * tests/test-file-has-acl.sh: New file.
12574         * tests/test-file-has-acl.c: New file.
12575         * tests/test-set-mode-acl.sh: New file.
12576         * tests/test-set-mode-acl.c: New file.
12577         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
12578         * tests/test-copy-acl.c: New file.
12579         * modules/acl-tests: New file, based on modules/copy-file-tests.
12580         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
12581         (Depends-on): Add acl-tests.
12582         (configure.ac): Remove checks.
12583         (Makefile.am): Don't create test-sameacls program here any more.
12584
12585 2008-06-01  Bruno Haible  <bruno@clisp.org>
12586
12587         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
12588         * tests/test-sameacls.c: Include progname.h.
12589         (main): Invoke set_program_name. Portability fixes for MacOS X,
12590         Solaris, HP-UX.
12591
12592 2008-06-01  Bruno Haible  <bruno@clisp.org>
12593
12594         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
12595         function.
12596         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
12597
12598 2008-06-01  Bruno Haible  <bruno@clisp.org>
12599
12600         * modules/rpmatch (Depends-on): Add strdup.
12601
12602 2008-06-01  Bruno Haible  <bruno@clisp.org>
12603
12604         * lib/pipe.c: Include unistd-safer.h.
12605         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
12606         * modules/pipe (Depends-on): Add unistd-safer.
12607
12608 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12609
12610         * modules/autobuild (configure.ac): Call AB_INIT.
12611
12612 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12613
12614         * tests/test-getaddrinfo.c: Don't print debug messages by default.
12615         Suggested by Bruno Haible <bruno@clisp.org>.
12616
12617 2008-05-30  Simon Josefsson  <simon@josefsson.org>
12618
12619         * tests/test-base64.c: Cast size_t to unsigned long when invoking
12620         printf.  Use %lu instead of %d.  Reported by Bruno Haible
12621         <bruno@clisp.org>.
12622
12623 2008-05-29  Eric Blake  <ebb9@byu.net>
12624
12625         Prefer new POSIX 200x interfaces over futimesat.
12626         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
12627         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
12628         when available.
12629         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
12630
12631 2008-05-28  Bruno Haible  <bruno@clisp.org>
12632
12633         * modules/stpcpy (License): Change to LGPLv2+.
12634         Requested by David Lutterkort <dlutter@redhat.com>.
12635
12636 2008-05-27  Bruno Haible  <bruno@clisp.org>
12637
12638         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
12639         current mingw.
12640         Reported by Jose E. Marchesi <jemarch@gnu.org>.
12641
12642 2008-05-27  Bruno Haible  <bruno@clisp.org>
12643
12644         * modules/iconv_open (Link): New section, from module 'iconv'.
12645         * modules/striconv (Link): Likewise.
12646         * modules/striconveh (Link): Likewise.
12647         * modules/xstriconv (Link): Likewise.
12648         * modules/unicodeio (Link): Likewise.
12649         * modules/propername (Link): Likewise.
12650         Reported by Jim Meyering.
12651
12652 2008-05-26  Jim Meyering  <meyering@redhat.com>
12653
12654         sha256: do not artificially restrict buffer length to be < 2^32
12655         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
12656         uint32_t to size_t.
12657         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
12658         to match.
12659
12660         avoid unaligned access errors, e.g., on sparc
12661         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
12662         direct access through a possibly-unaligned uint64* pointer.
12663         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
12664         direct access through a possibly-unaligned uint32* pointer.
12665         Prompted by this patch from Tom "spot" Callaway:
12666         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
12667
12668         sha512.c: fix typo in comment
12669         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
12670
12671 2008-05-25  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/set-mode-acl.c: Renamed from lib/acl.c.
12674         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
12675         (Makefile.am): Update lib_SOURCES.
12676
12677 2008-05-25  Bruno Haible  <bruno@clisp.org>
12678
12679         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
12680
12681 2008-05-25  Jim Meyering  <meyering@redhat.com>
12682
12683         useless-if-before-free: freed expr may have white-space differences
12684         * build-aux/useless-if-before-free: Recognize cases in which the
12685         freed expression differs from the tested one in embedded white
12686         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
12687         $1 was used, so we can't make any regexp shy.  Improved tests now
12688         detect this.
12689
12690         useless-if-before-free: accept white space in the expression.
12691         * build-aux/useless-if-before-free: For now, any white space
12692         in the expression must be identical in the free argument.
12693
12694         useless-if-before-free: efficiency tweak
12695         * build-aux/useless-if-before-free: Make the expression-matching
12696         regexp "shy".
12697         Make the *outer* regexp shy, not the expr-matching one.
12698
12699         update code-in-comment to accept cast of free arg
12700         * build-aux/useless-if-before-free: Update regexp.
12701
12702 2008-05-25  Bruno Haible  <bruno@clisp.org>
12703
12704         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
12705         * modules/copy-file-tests (Files, Makefile.am): Update.
12706         * tests/test-copy-file.c (func_test_copy): Update.
12707
12708 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
12709
12710         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
12711
12712 2008-05-23  Bruno Haible  <bruno@clisp.org>
12713
12714         Improve support for ACLs on OSF/1.
12715         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
12716         Remove fallback for unknown flavors of ACLs.
12717
12718 2008-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         Add support for ACLs on OSF/1.
12721         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
12722         replacements.
12723         (acl_free_text): New macro fallback.
12724         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
12725         acl_free.
12726         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
12727         acl_free_text function. Require AC_C_INLINE.
12728
12729 2008-05-22  Bruno Haible  <bruno@clisp.org>
12730
12731         Make copy_acl work on MacOS X 10.5.
12732         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
12733         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
12734         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
12735         If MODE_INSIDE_ACL, don't assume that every system has the same text
12736         representation for ACLs as FreeBSD.
12737         * lib/copy-acl.c (copy_acl): Add support for platforms with
12738         !MODE_INSIDE_ACL.
12739         * lib/file-has-acl.c (file_has_acl): Likewise.
12740         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
12741         FreeBSD, MacOS X, or IRIX, respectively.
12742
12743 2008-05-22  Bruno Haible  <bruno@clisp.org>
12744
12745         * lib/acl.h: Don't include <sys/acl.h>.
12746         (GETACLCNT): Move fallback to lib/acl-internal.h.
12747         * lib/acl-internal.h: Include <sys/acl.h> here.
12748         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
12749
12750 2008-05-22  Bruno Haible  <bruno@clisp.org>
12751
12752         Split off copy_acl function to separate file.
12753         * lib/copy-acl.c: New file, extracted from lib/acl.c.
12754         * lib/acl.c (copy_acl): Moved function to separate file.
12755         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
12756         * modules/acl (Files): Add lib/copy-acl.c.
12757         (Makefiles.am): Augment lib_SOURCES.
12758
12759 2008-05-22  Bruno Haible  <bruno@clisp.org>
12760
12761         * modules/copy-file-tests: New file.
12762         * tests/test-copy-file.sh: New file.
12763         * tests/test-copy-file.c: New file.
12764         * tests/test-copy-file-sameacls.c: New file.
12765
12766 2008-05-22  Eric Blake  <ebb9@byu.net>
12767
12768         Avoid gcc warning.
12769         * tests/test-memcmp.c (main): Pass NULL indirectly.
12770
12771 2008-05-21  Bruno Haible  <bruno@clisp.org>
12772
12773         Add reference doc about ACLs.
12774         * doc/acl-resources.txt: New file.
12775         * doc/acl-cygwin.txt: New file.
12776
12777 2008-05-21  Bruno Haible  <bruno@clisp.org>
12778
12779         Avoid one more warning from gcc.
12780         * lib/vasnprintf.c (IF_LINT): Update comments.
12781         (VASNPRINTF): Use it also for the 'prefix' array initializer.
12782
12783 2008-05-21  Jim Meyering  <meyering@redhat.com>
12784
12785         avoid a warning from gcc
12786         * lib/vasnprintf.c (IF_LINT): Define.
12787         (scale10_round_decimal_long_double):
12788         Use it to avoid a "may be used uninitialized" warning.
12789         (scale10_round_decimal_double): Likewise.
12790
12791 2008-05-21  Simon Josefsson  <simon@josefsson.org>
12792
12793         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
12794         declared.
12795
12796 2008-05-20  Bruno Haible  <bruno@clisp.org>
12797
12798         * tests/test-memcmp.c (main): Test also the sign of the result. Test
12799         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
12800
12801 2008-05-20  Simon Josefsson  <simon@josefsson.org>
12802
12803         * modules/memcmp-tests: New file.
12804         * tests/test-memcmp.c: New file.
12805
12806 2008-05-19  Bruno Haible  <bruno@clisp.org>
12807
12808         * modules/propername (Notice, configure.ac): Put quoted "..." into
12809         --keyword option.
12810         * lib/propername.h: Update comments accordingly.
12811         Reported by Eric Blake.
12812
12813 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
12814
12815         * modules/getpass-gnu (Depends-on): Add fseeko.
12816
12817 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12818
12819         * modules/base64-tests: New file.
12820
12821 2008-05-19  Bo Borgerson <gigabo@gmail.com>
12822
12823         * lib/base64.c (base64_decode_ctx): If a decode context structure
12824         was passed in use it to ignore newlines.  If a context structure
12825         was _not_ passed in, continue to treat newlines as garbage (this
12826         is the historical behavior).  Formerly base64_decode.
12827         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12828         takes a decode context structure.
12829         * lib/base64.h (base64_decode): Macro for four-argument calls.
12830         (base64_decode_alloc): Likewise.
12831         * lib/base64.c (base64_decode_ctx): If a decode context structure
12832         was passed in use it to ignore newlines.  If a context structure
12833         was _not_ passed in, continue to treat newlines as garbage (this
12834         is the historical behavior).  Formerly base64_decode.
12835         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
12836         takes a decode context structure.
12837         * lib/base64.h (base64_decode): Macro for four-argument calls.
12838         (base64_decode_alloc): Likewise.
12839
12840 2008-05-19  Jim Meyering  <meyering@redhat.com>
12841
12842         avoid a warning from gcc
12843         * lib/trim.c (IF_LINT): Define.
12844         (trim2): Use it to avoid a "may be used uninitialized" warning.
12845
12846         Fix doc typo.
12847         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
12848
12849 2008-05-19  Bruno Haible  <bruno@clisp.org>
12850
12851         * doc/glibc-functions/getpass.texi: Document limits of other
12852         implementations.
12853
12854 2008-05-19  Simon Josefsson  <simon@josefsson.org>
12855             Bruno Haible <bruno@clisp.org>
12856
12857         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
12858
12859 2008-05-18  Bruno Haible  <bruno@clisp.org>
12860
12861         * modules/propername: New file, from GNU gettext.
12862         * lib/propername.h: New file, from GNU gettext.
12863         * lib/propername.c: New file, from GNU gettext.
12864         * MODULES.html.sh (Internationalization functions): Add propername.
12865
12866 2008-05-16  Jim Meyering  <meyering@redhat.com>
12867             Bruno Haible  <bruno@clisp.org>
12868
12869         Avoid some warnings from "gcc -Wshadow".
12870         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
12871
12872 2008-05-15  Eric Blake  <ebb9@byu.net>
12873
12874         Extend previous patch to cygwin 1.7.0.
12875         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
12876         fast implementation in cygwin >= 1.7.0.
12877         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12879
12880 2008-05-15  Bruno Haible  <bruno@clisp.org>
12881
12882         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
12883         implementation in glibc >= 2.9.
12884         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
12885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12886
12887 2008-05-15  Bruno Haible  <bruno@clisp.org>
12888
12889         * MODULES.html.sh (Internationalization functions): Remove linebreak.
12890         (Unicode string functions): Add unilbrk/*.
12891         Reported by Karl Berry.
12892
12893 2008-05-15  Eric Blake  <ebb9@byu.net>
12894
12895         Fix violation of <stdbool.h> replacement in regex.
12896         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
12897         * lib/regexec.c (re_search_internal): Likewise.
12898         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
12899
12900 2008-05-15  Jim Meyering  <meyering@redhat.com>
12901
12902         avoid distracting test output when git or cvs is not found
12903         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
12904         * tests/test-vc-list-files-git.sh: Likewise.
12905
12906 2008-05-15  Eric Blake  <ebb9@byu.net>
12907
12908         Glibc finally accepted the memmem speedup code, bugzilla #5514.
12909         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
12910         glibc version.
12911         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12912         * doc/posix-functions/strstr.texi (strstr): Likewise.
12913         * lib/str-two-way.h (MAX): Sychronize with glibc.
12914
12915 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
12916
12917         * lib/regcomp.c (optimize_utf8): Add a note on why we test
12918         opr.ctx_type.
12919         (calc_first): Initialize constraint field.
12920         (duplicate_node_closure): Use it instead of special casing ANCHORS.
12921         Fix grammar.
12922         (duplicate_node): Merge constraint field for all node types.
12923         (calc_eclosure_iter): Look at constraint field for all node types.
12924         * lib/regex_internal.c (create_cd_newstate): Don't look at
12925         opr.ctx_type.
12926
12927 2008-05-14  Bruno Haible  <bruno@clisp.org>
12928
12929         Help GCC to do better code generation.
12930         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
12931         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12932         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
12933         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
12934         Declare with attribute 'malloc' if supported.
12935
12936 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
12937
12938         use "echo STR|wc -c" rather than unportable "expr length STR"
12939         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
12940         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
12941
12942 2008-05-14  Jim Meyering  <meyering@redhat.com>
12943
12944         use dd ibs=$n count=1 ... rather than less-portable head -c$n
12945         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
12946         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
12947         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
12948         via Collin Lasse.
12949
12950 2008-05-14  Eric Blake  <ebb9@byu.net>
12951
12952         Avoid quadratic growth in gl_LIBSOURCES.
12953         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
12954         Suggested by Bruno Haible.
12955
12956         Test xmemdup0.
12957         * modules/xmemdup0-tests: New file.
12958         * tests/test-xmemdup0.c: Likewise.
12959
12960 2008-05-13  Eric Blake  <ebb9@byu.net>
12961
12962         Split xmemdup0 into its own module.
12963         * modules/xmemdup0: New file.
12964         * lib/xmemdup0.h: Likewise.
12965         * lib/xmemdup0.c: Likewise.
12966         * MODULES.html.sh (Memory management functions): Add xmemdup0.
12967         * lib/xalloc.h (xmemdup0): Remove.
12968         * lib/xmalloc.c (xmemdup0): Likewise.
12969
12970 2008-05-13  Eric Blake  <ebb9@byu.net>
12971             Bruno Haible  <bruno@clisp.org>
12972
12973         Reduce number of forks required during autoconf.
12974         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
12975         and gl_LIBSOURCES_DIR.
12976         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
12977         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
12978         m4_syscmd per file.
12979         <m4_foreach_w>: Move...
12980         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
12981
12982 2008-05-13  Eric Blake  <ebb9@byu.net>
12983
12984         * gnulib-tool: Fix various comment typos.
12985
12986 2008-05-12  Bruno Haible  <bruno@clisp.org>
12987
12988         Tailor the linebreaking algorithm.
12989         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
12990
12991 2008-05-12  Bruno Haible  <bruno@clisp.org>
12992
12993         Update to Unicode 5.0.0.
12994         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
12995         LBP_JV, LBP_JT. Redistribute values.
12996         (unilbrk_table): Change size.
12997         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
12998         Unicode TR#14 rev. 22.
12999         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13000         LBP_JV, LBP_JT. Redistribute values.
13001         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
13002         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
13003         Update.
13004         * lib/unilbrk/lbrkprop1.h: Regenerated.
13005         * lib/unilbrk/lbrkprop2.h: Regenerated.
13006         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
13007         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
13008         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
13009         Likewise.
13010         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
13011         Likewise.
13012         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
13013         result.
13014         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13015         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13016         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13017         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
13018         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
13019         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
13020
13021 2008-05-11  Bruno Haible  <bruno@clisp.org>
13022
13023         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
13024
13025 2008-05-11  Bruno Haible  <bruno@clisp.org>
13026
13027         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
13028         * modules/unilbrk/gen-lbrk: New file.
13029
13030 2008-05-11  Bruno Haible  <bruno@clisp.org>
13031
13032         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
13033         * m4/sha512.m4 (gl_SHA512): Likewise.
13034
13035 2008-05-11  Jim Meyering  <meyering@redhat.com>
13036
13037         New modules: crypto/sha256, crypto/sha512 (from coreutils)
13038         * modules/crypto/sha256: New file.
13039         * modules/crypto/sha512: Likewise.
13040         * lib/sha256.c: Likewise.
13041         * lib/sha256.h: Likewise.
13042         * lib/sha512.c: Likewise.
13043         * lib/sha512.h: Likewise.
13044         * lib/u64.h: Likewise.
13045         * m4/sha256.m4: Likewise.
13046         * m4/sha512.m4: Likewise.
13047         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
13048
13049 2008-05-10  Bruno Haible  <bruno@clisp.org>
13050
13051         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
13052         (Input/Output <stdio.h>): Add xprintf.
13053         (Signal handling <signal.h>): Add strsignal.
13054         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
13055         (Core language properties): Add func.
13056         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
13057         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
13058         strings.
13059         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
13060         (Input/output): New section.
13061         (File system functions): Add openat-die, stat-macros.
13062         (Networking functions): Add sockets.
13063         (Unicode string functions): Add unictype/*.
13064         (Support for building libraries and executables): Add gperf.
13065         (Support for building documentation): Add agpl-3.0.
13066         (Misc): Add nocrash.
13067
13068 2008-05-10  Bruno Haible  <bruno@clisp.org>
13069
13070         * modules/unictype/gen-ctype: New file.
13071
13072 2008-05-10  Jim Meyering  <meyering@redhat.com>
13073
13074         Make chdir-safer.c more efficient on a system with no symlinks.
13075         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
13076         also if ELOOP is zero.  Suggested by Bruno Haible.
13077
13078         Make chdir-safer.c slightly safer.
13079         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
13080         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
13081
13082         Avoid compile failure on systems without ELOOP (like mingw).
13083         * lib/chdir-safer.c (ELOOP): Define if not already defined.
13084         Reported by Bruno Haible.
13085
13086 2008-05-10  Bruno Haible  <bruno@clisp.org>
13087
13088         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
13089         (is_utf8_encoding): Use a case-insensitive comparison.
13090         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
13091         streq.
13092
13093 2008-05-10  Bruno Haible  <bruno@clisp.org>
13094
13095         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
13096         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
13097         * lib/unilbrk/ulc-common.h (iconv_string_length,
13098         iconv_string_keeping_offsets): Remove declarations.
13099         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
13100         Don't include <iconv.h>, streq.h, xsize.h.
13101         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
13102         conversion.
13103         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
13104         <iconv.h>, streq.h, xsize.h.
13105         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
13106         conversion.
13107         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
13108         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
13109         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
13110         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
13111
13112 2008-05-10  Bruno Haible  <bruno@clisp.org>
13113
13114         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
13115         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
13116
13117         * modules/unilbrk/u32-width-linebreaks-tests: New file.
13118         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
13119
13120         * modules/unilbrk/u16-width-linebreaks-tests: New file.
13121         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
13122
13123         * modules/unilbrk/u8-width-linebreaks-tests: New file.
13124         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
13125
13126         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
13127         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
13128
13129         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
13130         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
13131
13132         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
13133         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
13134
13135         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
13136         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
13137
13138 2008-05-10  Bruno Haible  <bruno@clisp.org>
13139
13140         Split up 'linebreak' module.
13141         * lib/unilbrk.h: New file, based on lib/linebreak.h.
13142         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
13143         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
13144         modifications.
13145         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
13146         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
13147         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
13148         lib/linebreak.c.
13149         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
13150         lib/linebreak.c.
13151         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
13152         lib/linebreak.c.
13153         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
13154         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
13155         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
13156         lib/linebreak.c.
13157         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
13158         lib/linebreak.c.
13159         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
13160         lib/linebreak.c.
13161         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
13162         lib/linebreak.c.
13163         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
13164         lib/linebreak.c.
13165         * modules/unilbrk/base: New file.
13166         * modules/unilbrk/tables: New file.
13167         * modules/unilbrk/u8-possible-linebreaks: New file.
13168         * modules/unilbrk/u16-possible-linebreaks: New file.
13169         * modules/unilbrk/u32-possible-linebreaks: New file.
13170         * modules/unilbrk/ulc-common: New file.
13171         * modules/unilbrk/ulc-possible-linebreaks: New file.
13172         * modules/unilbrk/u8-width-linebreaks: New file.
13173         * modules/unilbrk/u16-width-linebreaks: New file.
13174         * modules/unilbrk/u32-width-linebreaks: New file.
13175         * modules/unilbrk/ulc-width-linebreaks: New file.
13176         * lib/linebreak.h: Remove file.
13177         * lib/linebreak.c: Remove file.
13178         * m4/linebreak.m4: Remove file.
13179         * modules/linebreak: Remove file.
13180         * NEWS: Mention the changes.
13181
13182 2008-05-09  Eric Blake  <ebb9@byu.net>
13183
13184         Add xmemdup0.
13185         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
13186         implementation.
13187         * lib/xmalloc.c (xmemdup0): New C implementation.
13188
13189 2008-05-08  Bruno Haible  <bruno@clisp.org>
13190
13191         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
13192
13193 2008-05-07  Eric Blake  <ebb9@byu.net>
13194
13195         Support cross-compilation of <wctype.h>.
13196         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
13197         AC_CACHE_CHECK.
13198
13199 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
13200
13201         * build-aux/vc-list-files: Add support for bzr.
13202
13203 2008-05-03  Jim Meyering  <meyering@redhat.com>
13204
13205         avoid failed assertion with tight malloc
13206         * tests/test-getndelim2.c: Correct an off-by-one assertion.
13207
13208 2008-05-03  Simon Josefsson  <simon@josefsson.org>
13209
13210         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
13211         are needed from arpa/inet.h.
13212         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
13213         Reported by Bruno Haible.
13214
13215 2008-05-02  Jim Meyering  <meyering@redhat.com>
13216
13217         avoid compilation error on FreeBSD 6
13218         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
13219
13220 2008-05-01  Jim Meyering  <meyering@redhat.com>
13221
13222         useless-if-before-free: correct --help's exit status description
13223         * build-aux/useless-if-before-free (usage): Like grep, exit 0
13224         for one or more matches, etc.  Reported by Bruno Haible.
13225
13226         vc-list-files: make the stand-alone gnulib test work
13227         * modules/vc-list-files-tests (configure.ac):
13228         Define and AC_SUBST abs_aux_dir.
13229         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
13230         $(abs_top_srcdir) to each script and having each of them
13231         duplicate the work of setting PATH, set PATH here, using
13232         the new variable, abs_aux_dir instead.
13233         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
13234         * tests/test-vc-list-files-git.sh: Likewise.
13235         Reported by Bruno Haible.
13236
13237 2008-05-01  Bruno Haible  <bruno@clisp.org>
13238
13239         * lib/getndelim2.c (getndelim2): Fix newsize computation during
13240         reallocation. Rename 'done' to 'found_delimiter'.
13241
13242 2008-05-01  Jim Meyering  <meyering@redhat.com>
13243
13244         vc-list-files: accommodate /bin/sh like the one from Solaris 10
13245         * build-aux/vc-list-files: Use `...`, not $(...).
13246
13247 2008-04-30  Jim Meyering  <meyering@redhat.com>
13248
13249         add tests for vc-list-files
13250         * modules/vc-list-files-tests: New module.
13251         * tests/test-vc-list-files-cvs.sh: New file.
13252         * tests/test-vc-list-files-git.sh: New file.
13253
13254         avoid a warning from gcc
13255         * lib/getndelim2.c (IF_LINT): Define.
13256         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
13257
13258         vc-list-files: work properly with build-aux/cvsu, too
13259         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
13260         to all cvs-based clauses.
13261
13262         vc-list-files: work properly in the CVS+awk case, too
13263         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
13264
13265         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
13266         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
13267         take more than one file argument, so .  Add quotes, just in case $dir
13268         ever contains a shell meta-character.  Prompted by Soren Hansen in
13269         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
13270
13271 2008-04-29  Eric Blake  <ebb9@byu.net>
13272
13273         Optimize getndelim2 to use block operations when possible.
13274         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
13275         freadseek, and memchr2.
13276         * lib/getndelim2.c (getndelim2): Use them for block reads.
13277
13278 2008-04-29  Bruno Haible  <bruno@clisp.org>
13279
13280         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
13281         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13282         * modules/inet_ntop (Depends-on): Add extensions.
13283         * modules/inet_pton (Depends-on): Likewise.
13284         Reported by Simon Josefsson.
13285
13286 2008-04-29  Jim Meyering  <meyering@redhat.com>
13287
13288         When the is more than one match in a block, match all of them.
13289         * build-aux/useless-if-before-free: Iterate through each block
13290         until there are no more matches.
13291
13292         Fix broken useless-if-before-free script.
13293         * build-aux/useless-if-before-free: Fix typo: missing "?" after
13294         the expression to match cast of argument to free-like function.
13295
13296 2008-04-29  Eric Blake  <ebb9@byu.net>
13297
13298         Use new header.
13299         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
13300
13301 2008-04-29  Jim Meyering  <meyering@redhat.com>
13302
13303         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
13304         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
13305         by gnulib to exist and to declare e.g., inet_ntop.
13306         Don't include "inet_ntop.h", now removed.
13307
13308         * m4/arpa_inet_h.m4: Remove trailing blanks.
13309
13310 2008-04-29  Eric Blake  <ebb9@byu.net>
13311
13312         Silence valgrind on safe reads beyond potential array bounds.
13313         * lib/rawmemchr.valgrind: New file.
13314         * lib/strchrnul.valgrind: Likewise.
13315         * modules/rawmemchr (Files): Distribute new file.
13316         * modules/strchrnul (Files): Likewise.
13317         Suggested by Bruno Haible.
13318
13319 2008-04-29  Bruno Haible  <bruno@clisp.org>
13320
13321         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
13322         (inet_ntop, inet_pton): Change portability warning's wording.
13323         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
13324         Invoke gl_CHECK_NEXT_HEADERS.
13325         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
13326         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
13327         set ARPA_INET_H.
13328         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13329         * modules/arpa_inet (Description): No longer only for systems that
13330         lack it.
13331         (Depends-on): Add include_next.
13332         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
13333         HAVE_ARPA_INET_H.
13334
13335 2008-04-29  Jim Meyering  <meyering@redhat.com>
13336
13337         * modules/mkdir (License): Re-license as LGPLv2+.
13338
13339 2008-04-29  Bruno Haible  <bruno@clisp.org>
13340
13341         * modules/rawmemchr (Maintainer): Set to Eric.
13342         * modules/strchrnul (Maintainer): Likewise.
13343
13344 2008-04-29  Simon Josefsson  <simon@josefsson.org>
13345
13346         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
13347         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
13348
13349         * modules/arpa_inet (arpa/inet.h): Use them.
13350
13351 2008-04-28  Eric Blake  <ebb9@byu.net>
13352
13353         Test getndelim2.
13354         * modules/getndelim2-tests: New file.
13355         * tests/test-getndelim2.c: Likewise.
13356         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
13357         stream.
13358         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
13359
13360         * MODULES.html.sh: Document new module.
13361
13362 2008-04-20  Bruno Haible  <bruno@clisp.org>
13363
13364         * lib/c-stack.c (die): Use raise.
13365         * modules/c-stack (Depends-on): Add raise.
13366
13367 2008-04-28  Bruno Haible  <bruno@clisp.org>
13368
13369         Expect rpmatch to be declared.
13370         * lib/yesno.c (rpmatch): Remove declaration.
13371
13372         Declare rpmatch.
13373         * lib/stdlib.in.h (rpmatch): New declaration.
13374         * lib/rpmatch.c: Include <stdlib.h> first.
13375         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
13376         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
13377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
13378         HAVE_RPMATCH.
13379         * modules/rpmatch (Depends-on): Add stdlib, extensions.
13380         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13381         (Include): Set to <stdlib.h>.
13382         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
13383         HAVE_RPMATCH.
13384         * NEWS: Document the change.
13385
13386 2008-04-28  Bruno Haible  <bruno@clisp.org>
13387
13388         Change rpmatch to use nl_langinfo when appropriate.
13389         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
13390         (N_): New macro.
13391         (localized_pattern): New function/macro.
13392         (try): Remove match, nomatch arguments. Copy the pattern into safe
13393         memory before caching it.
13394         (rpmatch): Use localized_pattern. Add translator comments.
13395         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
13396         Suggested by Eric Blake.
13397         * modules/rpmatch (Depends-on): Add stdbool.
13398
13399 2008-04-28  Eric Blake  <ebb9@byu.net>
13400
13401         Add rawmemchr module, matching glibc.
13402         * modules/string (Makefile.am): New indicator.
13403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
13404         * lib/string.in.h (rawmemchr): Declare when appropriate.
13405         * modules/rawmemchr: New file.
13406         * m4/rawmemchr.m4: Likewise.
13407         * lib/rawmemchr.c: Likewise.
13408         * modules/rawmemchr-tests: Likewise.
13409         * tests/test-rawmemchr.c: Likewise.
13410         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
13411         module.
13412         * modules/strchrnul (Depends-on): Add rawmemchr.
13413         * lib/strchrnul.c (strchrnul): Optimize a corner case.
13414
13415         Whitespace cleanup.
13416         * tests/test-strchrnul.c: Reindent.
13417         * lib/strchrnul.c: Likewise.
13418
13419         Optimize and test strchrnul.
13420         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
13421         * modules/strchrnul-tests: New file.
13422         * tests/test-strchrnul.c: Likewise.
13423
13424         Remove intprops dependency.
13425         * modules/memchr (Depends-on): Remove intprops.
13426         * modules/memrchr (Depends-on): Likewise.
13427         * modules/memchr2 (Depends-on): Likewise.
13428         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
13429         * lib/memrchr.c (__memrchr): Likewise.
13430         * lib/memrchr2.c (memchr2): Likewise.
13431         Reported by Simon Josefsson.
13432
13433 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13434
13435         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
13436         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13437
13438 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13439
13440         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
13441
13442         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
13443
13444         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
13445
13446         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
13447         declarations.
13448         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
13449
13450         * m4/inet_pton.m4: Don't check for header files.
13451
13452         * m4/inet_ntop.m4: Don't check for header files.
13453
13454 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13455
13456         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
13457         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
13458         trigger for cygwin).
13459         Reported by Bruno Haible  <bruno@clisp.org>.
13460
13461 2008-04-28  Bruno Haible  <bruno@clisp.org>
13462
13463         * doc/posix-functions/strdup.texi: Mention mingw problem.
13464
13465 2008-04-27  Bruno Haible  <bruno@clisp.org>
13466
13467         * modules/stat-time-tests (Depends-on): Add sleep.
13468         * tests/test-stat-time.c (force_unlink): New function.
13469         (cleanup): Use it.
13470         (test_mtime): Remove the ctime related tests.
13471         (test_ctime): New function, containing the ctime related tests.
13472         (main): Call test_ctime, except on native Windows platforms.
13473
13474 2008-04-27  Bruno Haible  <bruno@clisp.org>
13475
13476         * lib/rpmatch.c (rpmatch): Add some comments.
13477         Reported by James Youngman <jay@gnu.org>.
13478
13479 2008-04-27  Bruno Haible  <bruno@clisp.org>
13480
13481         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
13482         quiet NaNs.
13483
13484 2008-04-27  Bruno Haible  <bruno@clisp.org>
13485
13486         Make test-yesno.sh work on mingw.
13487         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
13488         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
13489         (main): Set stdin to binary mode.
13490         * modules/yesno-tests (Depends-on): Add binary-io.
13491
13492 2008-04-27  Bruno Haible  <bruno@clisp.org>
13493
13494         Fix 'isfinite' on x86, x86_64, ia64 platforms.
13495         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
13496         argument that lie outside the IEEE 854 domain.
13497         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
13498         (gl_ISFINITE): Use it.
13499         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
13500
13501 2008-04-27  Bruno Haible  <bruno@clisp.org>
13502
13503         Allow local renaming in config.h.
13504         * lib/memrchr.c (memrchr): Don't undefine outside libc.
13505
13506 2008-04-27  Bruno Haible  <bruno@clisp.org>
13507
13508         * lib/memchr.c (__memchr): Change type of 'i'.
13509         * lib/memchr2.c (memchr2): Likewise.
13510
13511 2008-04-26  Eric Blake  <ebb9@byu.net>
13512         and Bruno Haible  <bruno@clisp.org>
13513
13514         Optimize and test memrchr.
13515         * modules/memrchr (Depends-on): Add intprops.
13516         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
13517         * modules/memrchr-tests: New file.
13518         * tests/test-memrchr.c: New file.
13519
13520 2008-04-26  Bruno Haible  <bruno@clisp.org>
13521
13522         Add tentative support for DragonFly BSD.
13523         * lib/stdio-impl.h: Add macros for DragonFly BSD.
13524         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
13525         fp.
13526         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
13527         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
13528         * lib/fpurge.c (fpurge): Likewise.
13529         * lib/freadable.c (freaadable): Likewise.
13530         * lib/freadahead.c (freadahead): Likewise.
13531         * lib/freading.c (freading): Likewise.
13532         * lib/freadptr.c (freadptr): Likewise.
13533         * lib/freadseek.c (freadptrinc): Likewise.
13534         * lib/fseeko.c (fseeko): Likewise.
13535         * lib/fseterr.c (fseterr): Likewise.
13536         * lib/fwritable.c (fwritable): Likewise.
13537         * lib/fwriting.c (fwriting): Likewise.
13538
13539 2008-04-26  Bruno Haible  <bruno@clisp.org>
13540
13541         * lib/stdio-impl.h: New file.
13542         * lib/fbufmode.c: Include stdio-impl.h.
13543         (fbufmode): Use fp_, remove redundant #defines.
13544         * lib/fflush.c: Include stdio-impl.h.
13545         (clear_ungetc_buffer): Remove redundant #defines.
13546         * lib/fpurge.c: Include stdio-impl.h.
13547         (fpurge): Remove redundant #defines.
13548         * lib/freadable.c: Include stdio-impl.h.
13549         (freadable): Remove redundant #defines.
13550         * lib/freadahead.c: Include stdio-impl.h.
13551         (freadahead): Remove redundant #defines.
13552         * lib/freading.c: Include stdio-impl.h.
13553         (freading): Remove redundant #defines.
13554         * lib/freadptr.c: Include stdio-impl.h.
13555         (freadptr): Remove redundant #defines.
13556         * lib/freadseek.c: Include stdio-impl.h.
13557         (freadptrinc): Remove redundant #defines.
13558         * lib/fseeko.c: Include stdio-impl.h.
13559         (rpl_fseeko): Remove redundant #defines.
13560         * lib/fseterr.c: Include stdio-impl.h.
13561         (fseterr): Remove redundant #defines.
13562         * lib/fwritable.c: Include stdio-impl.h.
13563         (fwritable: Remove redundant #defines.
13564         * lib/fwriting.c: Include stdio-impl.h.
13565         (fwriting): Remove redundant #defines.
13566         * modules/fbufmode (Files): Add lib/stdio-impl.h.
13567         * modules/fflush (Files): Likewise.
13568         * modules/fpurge (Files): Likewise.
13569         * modules/freadable (Files): Likewise.
13570         * modules/freadahead (Files): Likewise.
13571         * modules/freading (Files): Likewise.
13572         * modules/freadptr (Files): Likewise.
13573         * modules/freadseek (Files): Likewise.
13574         * modules/fseeko (Files): Likewise.
13575         * modules/fseterr (Files): Likewise.
13576         * modules/fwritable (Files): Likewise.
13577         * modules/fwriting (Files): Likewise.
13578
13579 2008-04-26  Bruno Haible  <bruno@clisp.org>
13580
13581         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
13582         restore_seek_optimization, update_fpos_cache): New functions, extracted
13583         from rpl_fflush.
13584         (rpl_fflush): Use them.
13585         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
13586         (gl_REPLACE_FFLUSH): Use it.
13587
13588 2008-04-26  Bruno Haible  <bruno@clisp.org>
13589
13590         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
13591         on Solaris.
13592         * tests/test-xstrtoimax.sh: Likewise.
13593         * tests/test-xstrtoumax.sh: Likewise.
13594         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13595
13596 2008-04-26  Bruno Haible  <bruno@clisp.org>
13597
13598         * modules/memchr-tests: New file.
13599         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
13600
13601 2008-04-26  Eric Blake  <ebb9@byu.net>
13602             Bruno Haible  <bruno@clisp.org>
13603
13604         * lib/memchr.c: Include intprops.h.
13605         (__memchr): Optimize parallel detection of matching bytes. Rename local
13606         variables. Add explanatory comments.
13607
13608 2008-04-26  Bruno Haible  <bruno@clisp.org>
13609
13610         Fix module 'memchr', broken since 2000-10-28.
13611         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
13612
13613 2008-04-26  Bruno Haible  <bruno@clisp.org>
13614
13615         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
13616         comments.
13617
13618 2008-04-25  Eric Blake  <ebb9@byu.net>
13619
13620         Use native fstatat on cygwin 1.7.0.
13621         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
13622         first.
13623
13624 2008-04-23  Eric Blake  <ebb9@byu.net>
13625
13626         Improve memchr2 performance.
13627         * lib/memchr2.c (memchr2): Further optimize parallel detection of
13628         NUL bytes.
13629         * modules/memchr2 (Depends-on): Use intprops.h.
13630
13631 2008-04-23  Simon Josefsson  <simon@josefsson.org>
13632
13633         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
13634         an inline function instead of a CPP macro.  Patch by Ben Pfaff
13635         <blp@cs.stanford.edu>.
13636
13637 2008-04-23  Simon Josefsson  <simon@josefsson.org>
13638
13639         * lib/arpa_inet.in.h: New file.
13640
13641         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
13642         (Makefile.am): Sed in substitute header file.
13643
13644         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
13645         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
13646
13647         * modules/inet_ntop (configure.ac): Use
13648         gl_ARPA_INET_MODULE_INDICATOR.
13649
13650         * modules/inet_pton (configure.ac): Use
13651         gl_ARPA_INET_MODULE_INDICATOR.
13652
13653 2008-04-22  Jim Meyering  <meyering@redhat.com>
13654
13655         * modules/verify (License): Re-license as LGPLv2+.
13656
13657 2008-04-22  Simon Josefsson  <simon@josefsson.org>
13658
13659         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
13660         parameter to void* as per POSIX standard (MinGW uses char*).
13661
13662 2008-04-21  Bruno Haible  <bruno@clisp.org>
13663
13664         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13665         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13666         Define to replacements if REPLACE_ISWCNTRL is 1.
13667         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
13668         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
13669         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
13670         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
13671         what it fixes.
13672         * doc/posix-functions/iswalpha.texi: Likewise.
13673         * doc/posix-functions/iswblank.texi: Likewise.
13674         * doc/posix-functions/iswcntrl.texi: Likewise.
13675         * doc/posix-functions/iswdigit.texi: Likewise.
13676         * doc/posix-functions/iswgraph.texi: Likewise.
13677         * doc/posix-functions/iswlower.texi: Likewise.
13678         * doc/posix-functions/iswprint.texi: Likewise.
13679         * doc/posix-functions/iswpunct.texi: Likewise.
13680         * doc/posix-functions/iswspace.texi: Likewise.
13681         * doc/posix-functions/iswupper.texi: Likewise.
13682         * doc/posix-functions/iswxdigit.texi: Likewise.
13683         Reported by Alain Guibert.
13684
13685 2008-04-21  Bruno Haible  <bruno@clisp.org>
13686
13687         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
13688         Patch by Alain Guibert.
13689
13690 2008-04-21  Bruno Haible  <bruno@clisp.org>
13691
13692         Fix test failures on mingw.
13693         * tests/test-xstrtol.c (print_no_progname): New function.
13694         (main): Install it in error_print_progname hook.
13695         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
13696         * tests/test-xstrtoimax.sh: Likewise.
13697         * tests/test-xstrtoumax.sh: Likewise.
13698
13699 2008-04-21  Bruno Haible  <bruno@clisp.org>
13700
13701         Fix test failure on mingw.
13702         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
13703
13704 2008-04-21  Bruno Haible  <bruno@clisp.org>
13705
13706         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
13707         Actually assign a value.
13708
13709 2008-04-20  Bruno Haible  <bruno@clisp.org>
13710
13711         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
13712         take 2.
13713         * lib/canonicalize.c (canonicalize_file_name): Elide if the
13714         'canonicalize-lgpl' module is also used.
13715         * lib/canonicalize-lgpl.c: Undo last change.
13716         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
13717
13718 2008-04-20  Bruno Haible  <bruno@clisp.org>
13719
13720         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
13721         config.h. Provide _mkdir based fallback for mingw.
13722         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
13723         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
13724         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
13725         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
13726         rather than defining mkdir in config.h.
13727         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
13728         (gl_SYS_STAT_H_DEFAULTS): New macro.
13729         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
13730         HAVE_IO_H any more.
13731         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
13732         HAVE_DECL_MKDIR and HAVE_IO_H.
13733
13734 2008-04-20  Bruno Haible  <bruno@clisp.org>
13735
13736         * lib/isapipe.c: Port to native Windows platforms.
13737
13738 2008-04-20  Bruno Haible  <bruno@clisp.org>
13739
13740         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
13741
13742 2008-04-21  Eric Blake  <ebb9@byu.net>
13743
13744         Work around preprocessors that don't handle UINTMAX_MAX.
13745         * lib/memchr2.c (memchr2): Avoid embedded #if.
13746         Reported by Alain Guibert, fix suggested by Bruno Haible.
13747
13748 2008-04-21  Simon Josefsson  <simon@josefsson.org>
13749
13750         * doc/posix-functions/strftime.texi (strftime): Explain better
13751         Windows incompatibility.  Suggested by Micah Cowan
13752         <micah@cowan.name>.
13753
13754 2008-04-20  Bruno Haible  <bruno@clisp.org>
13755
13756         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
13757         unistr/u8-mblen.
13758
13759 2008-04-20  Bruno Haible  <bruno@clisp.org>
13760
13761         Fix test failure on platforms with non-GNU iconv.
13762         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
13763         (U_TO_U8): Use it, rather than u16_to_u8.
13764         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
13765         units at the end of the input string.
13766         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
13767
13768 2008-04-20  Bruno Haible  <bruno@clisp.org>
13769
13770         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
13771         when the resulting length is 0.
13772         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
13773
13774 2008-04-20  Bruno Haible  <bruno@clisp.org>
13775
13776         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
13777         works.
13778         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
13779
13780 2008-04-20  Bruno Haible  <bruno@clisp.org>
13781
13782         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
13783         * modules/tsearch-tests (configure.ac): Test for initstate function.
13784
13785 2008-04-20  Bruno Haible  <bruno@clisp.org>
13786
13787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
13788         for nlink_t if missing.
13789         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
13790
13791 2008-04-19  Bruno Haible  <bruno@clisp.org>
13792
13793         Work around snprintf bug on Linux libc5.
13794         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
13795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
13796         gl_SNPRINTF_SIZE1.
13797         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13798         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
13799         that test failed.
13800         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13801         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
13802         * modules/snprintf (Files): Add m4/printf.m4.
13803         * modules/vsnprintf (Files): Likewise.
13804         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
13805         * doc/posix-functions/vsnprintf.texi: Likewise.
13806
13807 2008-04-19  Bruno Haible  <bruno@clisp.org>
13808
13809         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
13810         from 0.0058 to less than 10^-7.
13811
13812 2008-04-19  Bruno Haible  <bruno@clisp.org>
13813
13814         Fix rounding when a precision is given.
13815         * lib/vasnprintf.c (is_borderline): New function.
13816         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
13817         9...9x.
13818         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
13819         %e, %g.
13820         * tests/test-vasprintf-posix.c (test_function): Likewise.
13821         * tests/test-snprintf-posix.h (test_function): Likewise.
13822         * tests/test-sprintf-posix.h (test_function): Likewise.
13823         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
13824         * tests/test-printf-posix.h (test_function): Likewise.
13825         * tests/test-printf-posix.output: Update.
13826         Reported by John Darrington <john@darrington.wattle.id.au> via
13827         Ben Pfaff <blp@cs.stanford.edu>.
13828
13829 2008-04-18  Simon Josefsson  <simon@josefsson.org>
13830
13831         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
13832         Suggested by Bruno Haible <bruno@clisp.org>.
13833
13834 2008-04-17  Bruno Haible  <bruno@clisp.org>
13835
13836         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
13837         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
13838         implementation.
13839         Patch by Bruce Merry <bmerry@gmail.com>.
13840
13841 2008-04-17  Simon Josefsson  <simon@josefsson.org>
13842
13843         * doc/posix-functions/strftime.texi (strftime): Mention that %e
13844         doesn't work under Windows.
13845
13846 2008-04-16  Bruno Haible  <bruno@clisp.org>
13847
13848         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
13849         New macros.
13850         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
13851         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
13852         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
13853         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
13854         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
13855         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
13856         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
13857         macros.
13858         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
13859         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
13860         Northern Sotho, Uighur.
13861
13862 2008-04-16  Bruno Haible  <bruno@clisp.org>
13863
13864         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
13865         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
13866         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
13867         Reported by Daniel Bergström <daniel@octocode.com>.
13868
13869 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
13870             Bruno Haible  <bruno@clisp.org>
13871
13872         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
13873         function.
13874         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
13875         New functions, mostly extracted from gl_locale_name_default.
13876         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
13877
13878 2008-04-16  Eric Blake  <ebb9@byu.net>
13879
13880         Adjust strtod detection to catch glibc 2.7 bug.
13881         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
13882         Reported by John Gatewood Ham.
13883
13884 2008-04-16  Bruno Haible  <bruno@clisp.org>
13885
13886         Add tentative support for Linux libc5.
13887         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
13888         * lib/fpurge.c (fpurge): Likewise.
13889         * lib/freadable.c (freadable): Likewise.
13890         * lib/freadahead.c (freadahead): Likewise.
13891         * lib/freading.c (freading): Likewise.
13892         * lib/freadptr.c (freadptr): Likewise.
13893         * lib/freadseek.c (freadptrinc): Likewise.
13894         * lib/fseeko.c (rpl_fseeko): Likewise.
13895         * lib/fseterr.c (fseterr): Likewise.
13896         * lib/fwritable.c (fwritable): Likewise.
13897         * lib/fwriting.c (fwriting): Likewise.
13898         Reported by Alain Guibert <alguibert+bts@free.fr>.
13899
13900 2008-04-15  Bruno Haible  <bruno@clisp.org>
13901
13902         * modules/mathl (configure.ac): Define module indicator.
13903
13904 2008-04-15  Bruno Haible  <bruno@clisp.org>
13905
13906         * lib/logl.c (logl): Remove unused variables.
13907
13908 2008-04-15  Bruno Haible  <bruno@clisp.org>
13909
13910         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
13911         fails.
13912
13913 2008-04-15  Bruno Haible  <bruno@clisp.org>
13914
13915         * lib/trim.c (trim2): Fix argument of isspace() macro.
13916
13917 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
13918
13919         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
13920         to 0.
13921         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
13922
13923 2008-04-14  Bruno Haible  <bruno@clisp.org>
13924
13925         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
13926         AC_LANG_PROGRAM argument.
13927         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
13928         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
13929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13930         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
13931         * m4/math_h.m4 (gl_MATH_H): Likewise.
13932         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13933         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13934         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
13935         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
13936         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13937         * m4/regex.m4 (gl_REGEX): Likewise.
13938         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
13939         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
13940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13941         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
13942         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13943         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13944         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
13946
13947 2008-04-14  Jim Meyering  <meyering@redhat.com>
13948
13949         test-strtod: fix typos: s/abs/fabs/
13950         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
13951
13952 2008-04-13  Bruno Haible  <bruno@clisp.org>
13953
13954         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
13955         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
13956         module is also used and while not building the reloc-wrapper.
13957
13958 2008-04-13  Bruno Haible  <bruno@clisp.org>
13959
13960         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
13961
13962 2008-04-13  Bruno Haible  <bruno@clisp.org>
13963
13964         Fix AIX compilation failure introduced on 2008-04-02.
13965         * tests/test-frexp.c (exp): Undefine before redefining.
13966         * tests/test-frexpl.c (exp): Likewise.
13967
13968 2008-04-13  Bruno Haible  <bruno@clisp.org>
13969
13970         Work around a HP-UX stdio bug.
13971         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
13972         * tests/test-ftello.c (main): Likewise.
13973         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
13974         * doc/posix-functions/ftello.texi: Likewise.
13975
13976 2008-04-13  Bruno Haible  <bruno@clisp.org>
13977
13978         Make test-signbit pass on HP-UX/hppa.
13979         * tests/test-signbit.c (minus_zerol): New variable.
13980         (test_signbitl): Use it.
13981
13982 2008-04-13  Bruno Haible  <bruno@clisp.org>
13983
13984         Make truncl work on OSF/1 4.0.
13985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
13986         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13987         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
13988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
13989         HAVE_DECL_TRUNCL.
13990         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
13991         HAVE_DECL_TRUNCL.
13992         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
13993
13994 2008-04-13  Bruno Haible  <bruno@clisp.org>
13995
13996         * lib/unictype.h: Remove trailing comma from enumeration definitions.
13997
13998 2008-04-13  Bruno Haible  <bruno@clisp.org>
13999
14000         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
14001         expression, so as to avoid HP-UX 11 cc compiler bug.
14002
14003 2008-04-13  Bruno Haible  <bruno@clisp.org>
14004
14005         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
14006
14007 2008-04-13  Bruno Haible  <bruno@clisp.org>
14008
14009         * lib/git-merge-changelog.c: Remove empty declaration outside of
14010         functions.
14011
14012 2008-04-13  Bruno Haible  <bruno@clisp.org>
14013
14014         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
14015
14016 2008-04-13  Bruno Haible  <bruno@clisp.org>
14017
14018         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
14019         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
14020         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
14021         also if it exists but lacks definitions of the SHUT_* macros.
14022         * modules/sys_socket (Description): Update.
14023         Reported by Elbert Pol <e.pol@chello.nl>.
14024
14025 2008-04-13  Bruno Haible  <bruno@clisp.org>
14026
14027         * lib/localcharset.c (OS2): Don't redefine if already defined.
14028         Reported by Elbert Pol <e.pol@chello.nl>.
14029
14030 2008-04-13  Bruno Haible  <bruno@clisp.org>
14031
14032         * lib/binary-io.h [__EMX__]: Include <io.h>.
14033         Reported by Elbert Pol <e.pol@chello.nl>.
14034
14035 2008-04-12  Bruno Haible  <bruno@clisp.org>
14036
14037         * lib/fpucw.h: Enable the definitions also for x86_64.
14038         Needed for NetBSD/x86_64.
14039         Reported by Thomas Klausner <tk@giga.or.at>.
14040
14041 2008-04-12  Bruno Haible  <bruno@clisp.org>
14042
14043         * tests/test-strtod.c: Include isnand.h.
14044         (main): Use isnand instead of isnan.
14045         Reported by Jim Meyering.
14046
14047 2008-04-12  Bruno Haible  <bruno@clisp.org>
14048
14049         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
14050         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14051
14052 2008-04-12  Jim Meyering  <meyering@redhat.com>
14053
14054         * m4/math_h.m4 (gl_MATH_H): Fix typos.
14055
14056 2008-04-12  Bruno Haible  <bruno@clisp.org>
14057
14058         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
14059         Reported by Elbert Pol <e.pol@chello.nl>.
14060
14061 2008-04-12  Eric Blake  <ebb9@byu.net>
14062
14063         Work around Solaris 10 math.h bug.
14064         * m4/math_h.m4 (gl_MATH_H): Check for bug.
14065         (gl_MATH_H_DEFAULTS): Set up default.
14066         * modules/math (Makefile.am): Replace new indicators.
14067         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
14068         * tests/test-math.c (main): Test this.
14069         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
14070         * doc/posix-headers/math.texi (math.h): Mention bug.
14071         Reported by Nelson H. F. Beebe and Jim Meyering.
14072
14073 2008-04-11  Bruno Haible  <bruno@clisp.org>
14074
14075         Adapt to future versions of Apple GCC.
14076         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
14077         Reported by Peter O'Gorman <peter@pogma.com>.
14078
14079 2008-04-11  Bruno Haible  <bruno@clisp.org>
14080
14081         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
14082
14083 2008-04-11  Bruno Haible  <bruno@clisp.org>
14084
14085         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
14086
14087         * modules/getaddrinfo-tests (Makefile.am): Define
14088         test_getaddrinfo_LDADD.
14089
14090 2008-04-11  Bruno Haible  <bruno@clisp.org>
14091
14092         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
14093         (init): Fix syntax error.
14094         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
14095         is declared.
14096
14097 2008-04-11  Bruno Haible  <bruno@clisp.org>
14098
14099         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
14100         * modules/glob (Depends-on): Add stdbool.
14101
14102 2008-04-11  Bruno Haible  <bruno@clisp.org>
14103
14104         * lib/trim.c: Include <string.h>.
14105
14106 2008-04-11  Eric Blake  <ebb9@byu.net>
14107
14108         Avoid compile failure on OS/2.
14109         * lib/regex_internal.h (internal_function): Disable optimization
14110         on OS/2 (__EMX__), where it caused compiler error.
14111         Reported by Elbert Pol.
14112
14113 2008-04-11  Bruno Haible  <bruno@clisp.org>
14114
14115         Flush the standard error stream before aborting. Needed on mingw.
14116         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
14117         * tests/test-array_list.c (ASSERT): Likewise.
14118         * tests/test-array_oset.c (ASSERT): Likewise.
14119         * tests/test-avltree_list.c (ASSERT): Likewise.
14120         * tests/test-avltree_oset.c (ASSERT): Likewise.
14121         * tests/test-avltreehash_list.c (ASSERT): Likewise.
14122         * tests/test-binary-io.c (ASSERT): Likewise.
14123         * tests/test-byteswap.c (ASSERT): Likewise.
14124         * tests/test-c-ctype.c (ASSERT): Likewise.
14125         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
14126         * tests/test-c-strcasestr.c (ASSERT): Likewise.
14127         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
14128         * tests/test-c-strstr.c (ASSERT): Likewise.
14129         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
14130         * tests/test-canonicalize.c (ASSERT): Likewise.
14131         * tests/test-carray_list.c (ASSERT): Likewise.
14132         * tests/test-ceilf1.c (ASSERT): Likewise.
14133         * tests/test-ceilf2.c (ASSERT): Likewise.
14134         * tests/test-ceill.c (ASSERT): Likewise.
14135         * tests/test-count-one-bits.c (ASSERT): Likewise.
14136         * tests/test-fbufmode.c (ASSERT): Likewise.
14137         * tests/test-fflush2.c (ASSERT): Likewise.
14138         * tests/test-floorf1.c (ASSERT): Likewise.
14139         * tests/test-floorf2.c (ASSERT): Likewise.
14140         * tests/test-floorl.c (ASSERT): Likewise.
14141         * tests/test-fopen.c (ASSERT): Likewise.
14142         * tests/test-fpending.c (ASSERT): Likewise.
14143         * tests/test-fprintf-posix.c (ASSERT): Likewise.
14144         * tests/test-fpurge.c (ASSERT): Likewise.
14145         * tests/test-freadable.c (ASSERT): Likewise.
14146         * tests/test-freadahead.c (ASSERT): Likewise.
14147         * tests/test-freading.c (ASSERT): Likewise.
14148         * tests/test-freadptr.c (ASSERT): Likewise.
14149         * tests/test-freadptr2.c (ASSERT): Likewise.
14150         * tests/test-freadseek.c (ASSERT): Likewise.
14151         * tests/test-freopen.c (ASSERT): Likewise.
14152         * tests/test-frexp.c (ASSERT): Likewise.
14153         * tests/test-frexpl.c (ASSERT): Likewise.
14154         * tests/test-fseek.c (ASSERT): Likewise.
14155         * tests/test-fseeko.c (ASSERT): Likewise.
14156         * tests/test-fstrcmp.c (ASSERT): Likewise.
14157         * tests/test-ftell.c (ASSERT): Likewise.
14158         * tests/test-ftello.c (ASSERT): Likewise.
14159         * tests/test-func.c (ASSERT): Likewise.
14160         * tests/test-fwritable.c (ASSERT): Likewise.
14161         * tests/test-fwriting.c (ASSERT): Likewise.
14162         * tests/test-getdelim.c (ASSERT): Likewise.
14163         * tests/test-getline.c (ASSERT): Likewise.
14164         * tests/test-i-ring.c (ASSERT): Likewise.
14165         * tests/test-iconv-utf.c (ASSERT): Likewise.
14166         * tests/test-iconv.c (ASSERT): Likewise.
14167         * tests/test-isfinite.c (ASSERT): Likewise.
14168         * tests/test-isnand.c (ASSERT): Likewise.
14169         * tests/test-isnanf.c (ASSERT): Likewise.
14170         * tests/test-isnanl.h (ASSERT): Likewise.
14171         * tests/test-ldexpl.c (ASSERT): Likewise.
14172         * tests/test-linked_list.c (ASSERT): Likewise.
14173         * tests/test-linkedhash_list.c (ASSERT): Likewise.
14174         * tests/test-localename.c (ASSERT): Likewise.
14175         * tests/test-lseek.c (ASSERT): Likewise.
14176         * tests/test-mbscasecmp.c (ASSERT): Likewise.
14177         * tests/test-mbscasestr1.c (ASSERT): Likewise.
14178         * tests/test-mbscasestr2.c (ASSERT): Likewise.
14179         * tests/test-mbscasestr3.c (ASSERT): Likewise.
14180         * tests/test-mbscasestr4.c (ASSERT): Likewise.
14181         * tests/test-mbschr.c (ASSERT): Likewise.
14182         * tests/test-mbscspn.c (ASSERT): Likewise.
14183         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
14184         * tests/test-mbspbrk.c (ASSERT): Likewise.
14185         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
14186         * tests/test-mbsrchr.c (ASSERT): Likewise.
14187         * tests/test-mbsspn.c (ASSERT): Likewise.
14188         * tests/test-mbsstr1.c (ASSERT): Likewise.
14189         * tests/test-mbsstr2.c (ASSERT): Likewise.
14190         * tests/test-mbsstr3.c (ASSERT): Likewise.
14191         * tests/test-memchr2.c (ASSERT): Likewise.
14192         * tests/test-memmem.c (ASSERT): Likewise.
14193         * tests/test-open.c (ASSERT): Likewise.
14194         * tests/test-printf-frexp.c (ASSERT): Likewise.
14195         * tests/test-printf-frexpl.c (ASSERT): Likewise.
14196         * tests/test-printf-posix.c (ASSERT): Likewise.
14197         * tests/test-quotearg.c (ASSERT): Likewise.
14198         * tests/test-rbtree_list.c (ASSERT): Likewise.
14199         * tests/test-rbtree_oset.c (ASSERT): Likewise.
14200         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
14201         * tests/test-round1.c (ASSERT): Likewise.
14202         * tests/test-roundf1.c (ASSERT): Likewise.
14203         * tests/test-roundl.c (ASSERT): Likewise.
14204         * tests/test-signbit.c (ASSERT): Likewise.
14205         * tests/test-sleep.c (ASSERT): Likewise.
14206         * tests/test-snprintf-posix.c (ASSERT): Likewise.
14207         * tests/test-snprintf.c (ASSERT): Likewise.
14208         * tests/test-sprintf-posix.c (ASSERT): Likewise.
14209         * tests/test-stat-time.c (ASSERT): Likewise.
14210         * tests/test-strcasestr.c (ASSERT): Likewise.
14211         * tests/test-strerror.c (ASSERT): Likewise.
14212         * tests/test-striconv.c (ASSERT): Likewise.
14213         * tests/test-striconveh.c (ASSERT): Likewise.
14214         * tests/test-striconveha.c (ASSERT): Likewise.
14215         * tests/test-strsignal.c (ASSERT): Likewise.
14216         * tests/test-strstr.c (ASSERT): Likewise.
14217         * tests/test-strtod.c (ASSERT): Likewise.
14218         * tests/test-trunc1.c (ASSERT): Likewise.
14219         * tests/test-trunc2.c (ASSERT): Likewise.
14220         * tests/test-truncf1.c (ASSERT): Likewise.
14221         * tests/test-truncf2.c (ASSERT): Likewise.
14222         * tests/test-truncl.c (ASSERT): Likewise.
14223         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
14224         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
14225         * tests/test-vasnprintf.c (ASSERT): Likewise.
14226         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
14227         * tests/test-vasprintf.c (ASSERT): Likewise.
14228         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
14229         * tests/test-vprintf-posix.c (ASSERT): Likewise.
14230         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
14231         * tests/test-vsnprintf.c (ASSERT): Likewise.
14232         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
14233         * tests/test-wcwidth.c (ASSERT): Likewise.
14234         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
14235         * tests/test-xprintf-posix.c (ASSERT): Likewise.
14236         * tests/test-xvasprintf.c (ASSERT): Likewise.
14237         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
14238         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
14239         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
14240         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
14241         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
14242         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
14243         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
14244         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
14245         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
14246         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
14247         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
14248         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
14249         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
14250         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
14251         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
14252         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
14253         * tests/unictype/test-block_list.c (ASSERT): Likewise.
14254         * tests/unictype/test-block_of.c (ASSERT): Likewise.
14255         * tests/unictype/test-block_test.c (ASSERT): Likewise.
14256         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
14257         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
14258         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
14259         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
14260         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
14261         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
14262         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
14263         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
14264         * tests/unictype/test-combining.c (ASSERT): Likewise.
14265         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
14266         * tests/unictype/test-digit.c (ASSERT): Likewise.
14267         * tests/unictype/test-mirror.c (ASSERT): Likewise.
14268         * tests/unictype/test-numeric.c (ASSERT): Likewise.
14269         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
14270         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
14271         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
14272         * tests/unictype/test-scripts.c (ASSERT): Likewise.
14273         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
14274         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
14275         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
14276         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
14277         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
14278         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
14279         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
14280         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
14281         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
14282         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
14283         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
14284         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
14285         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
14286         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
14287         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
14288         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
14289         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
14290         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
14291         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
14292         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
14293         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
14294         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
14295         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
14296         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
14297         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
14298         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
14299         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
14300         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
14301         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
14302         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
14303         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
14304         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
14305         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
14306         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
14307         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
14308         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
14309         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
14310         Reported by Eric Blake.
14311
14312 2008-04-11  Bruno Haible  <bruno@clisp.org>
14313
14314         * lib/wchar.in.h: Tweak comment.
14315
14316 2008-04-11  Bruno Haible  <bruno@clisp.org>
14317
14318         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
14319         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
14320         gl_COMMON.
14321         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
14322
14323 2008-04-11  Bruno Haible  <bruno@clisp.org>
14324
14325         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
14326
14327 2008-04-11  Simon Josefsson  <simon@josefsson.org>
14328
14329         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
14330         of attempting to use non-existing /dev/*random.  Based on patch
14331         from Adam Strzelecki <ono@java.pl> in
14332         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
14333
14334 2008-04-08  Bruno Haible  <bruno@clisp.org>
14335
14336         Add tentative support for emx+gcc.
14337         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
14338         * lib/fpurge.c (fpurge): Likewise.
14339         * lib/freadable.c (freadable): Likewise.
14340         * lib/freadahead.c (freadahead): Likewise.
14341         * lib/freading.c (freading): Likewise.
14342         * lib/freadptr.c (freadptr): Likewise.
14343         * lib/freadseek.c (freadptrinc): Likewise.
14344         * lib/fseeko.c (rpl_fseeko): Likewise.
14345         * lib/fseterr.c (fseterr): Likewise.
14346         * lib/fwritable.c (fwritable): Likewise.
14347         * lib/fwriting.c (fwriting): Likewise.
14348         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
14349
14350 2008-04-09  Eric Blake  <ebb9@byu.net>
14351
14352         Avoid some autoconf warnings.
14353         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
14354         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
14355         * m4/afs.m4 (gl_AFS): Likewise.
14356         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
14357         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
14358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14359         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
14360         (gl_INTEGER_TYPE_SUFFIX): Likewise.
14361         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
14362         (AC_CHECK_DECLS_ONCE): Likewise.
14363         Rename file...
14364         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
14365         gnulib-tool requires autoconf 2.59 or better.
14366         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
14367
14368 2008-04-08  Eric Blake  <ebb9@byu.net>
14369
14370         Use 'git describe --match' if present (added in git 1.5.5).
14371         * build-aux/git-version-gen: Limit result to tags that match 'v*'
14372         if possible.
14373
14374 2008-04-08  Bruno Haible  <bruno@clisp.org>
14375
14376         Add tentative support for OpenServer.
14377         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
14378         _ptr, _cnt.
14379         * lib/fpurge.c (fpurge): Likewise.
14380         * lib/freadable.c (freadable): Likewise.
14381         * lib/freadahead.c (freadahead): Likewise.
14382         * lib/freading.c (freading): Likewise.
14383         * lib/freadptr.c (freadptr): Likewise.
14384         * lib/freadseek.c (freadptrinc): Likewise.
14385         * lib/fseeko.c (rpl_fseeko): Likewise.
14386         * lib/fseterr.c (fseterr): Likewise.
14387         * lib/fwritable.c (fwritable): Likewise.
14388         * lib/fwriting.c (fwriting): Likewise.
14389         Reported by Roger Cornelius <rac@tenzing.org> and
14390         Brian K. White <brian@aljex.com>.
14391
14392 2008-04-06  Jim Meyering  <meyering@redhat.com>
14393
14394         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
14395
14396 2008-04-06  Bruno Haible  <bruno@clisp.org>
14397
14398         Avoid possible error with non-ASCII bytes in UTF-8 locales.
14399         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
14400         * tests/test-printf-posix.sh: Likewise.
14401         * tests/test-vfprintf-posix.sh: Likewise.
14402         * tests/test-vprintf-posix.sh: Likewise.
14403         * tests/test-xprintf-posix.sh: Likewise.
14404
14405 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14406
14407         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
14408         hide error from 'ls', needed on OS/2.
14409         Report by Elbert Pol <elbert.pol@gmail.com>.
14410
14411 2008-04-04  Eric Blake  <ebb9@byu.net>
14412
14413         Make test-fseeko.c failures meaningful.
14414         * tests/test-fseeko.c: Print line number on failure.
14415         * tests/test-fseek.c: Likewise.
14416         Reported by Nelson H. F. Beebe.
14417
14418         Improve strtod bug detection check.
14419         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
14420         required for Solaris 10.
14421         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
14422
14423 2008-04-04  Bruno Haible  <bruno@clisp.org>
14424
14425         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
14426         by m4/setenv.m4.
14427
14428 2008-04-03  Eric Blake  <ebb9@byu.net>
14429
14430         Ensure sane .version contents.
14431         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
14432         version string.
14433         * build-aux/git-version-gen: Improve documentation.
14434
14435         Make GNU make output nicer.
14436         * top/GNUmakefile [!_have-Makefile]: Add dependency on
14437         MAKECMDGOALS to enforce message for all command line targets.  Set
14438         srcdir for use in maint.mk.
14439
14440         Another maintainer tweak.
14441         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
14442         a target that regenerates version.
14443
14444 2008-04-03  Jim Meyering  <meyering@redhat.com>
14445
14446         vc-list-files: don't cause coreutils "make po-check" failure
14447         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
14448
14449 2008-04-03  Eric Blake  <ebb9@byu.net>
14450
14451         Allow VPATH usage of vc-list-files.
14452         * build-aux/vc-list-files (scriptversion): Add timestamp.
14453         (options): Add --help, --version, -C.
14454         (CVS): Support installed cvsu.
14455
14456 2008-04-02  Bruno Haible  <bruno@clisp.org>
14457
14458         Avoid some "statement with no effect" warnings from gcc.
14459         * tests/test-wctype.c (main): Explicitly ignore unused values.
14460         Reported by Jim Meyering.
14461
14462 2008-04-02  Jim Meyering  <meyering@redhat.com>
14463
14464         Avoid some warnings from "gcc -Wshadow".
14465         * tests/test-frexp.c (exp): Define to a different identifier.
14466         * tests/test-frexpl.c (exp): Likewise.
14467
14468 2008-04-03  Jim Meyering  <meyering@redhat.com>
14469
14470         bootstrap: remove dangling *.[ch] symlinks from lib
14471         * build-aux/bootstrap [dangling symlink removal]: Move find's
14472         -depth option to precede all others, to avoid a warning.
14473         Remove *.[ch] files too, and from "$source_base" (usually lib/).
14474
14475 2008-04-02  Bruno Haible  <bruno@clisp.org>
14476
14477         Avoid some warnings from "gcc -Wshadow".
14478         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
14479         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
14480         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
14481         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
14482         Reported by Jim Meyering.
14483
14484 2008-04-01  Bruno Haible  <bruno@clisp.org>
14485
14486         Fix test to work on IRIX 6.5 with cc.
14487         * tests/test-math.c (numeric_equal): New function.
14488         (main): Use it.
14489
14490 2008-04-01  Bruno Haible  <bruno@clisp.org>
14491
14492         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
14493
14494 2008-04-01  Bruno Haible  <bruno@clisp.org>
14495
14496         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
14497         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14498         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
14499         (Depends-on): Remove math.
14500
14501         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
14502         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14503         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
14504         (Depends-on): Remove math.
14505
14506         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
14507         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14508         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
14509         (Depends-on): Remove math.
14510         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
14511         (Depends-on): Remove math.
14512
14513         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
14514         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14515         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
14516         (Depends-on): Remove math.
14517         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
14518         (Depends-on): Remove math.
14519
14520         * tests/test-round1.c: Include nan.h.
14521         (main): Use NaNd instead of NAN.
14522         * modules/round-tests (Files): Add tests/nan.h.
14523
14524         * tests/test-trunc1.c: Include nan.h.
14525         (main): Use NaNd instead of NAN.
14526         * modules/trunc-tests (Files): Add tests/nan.h.
14527
14528         * tests/test-roundf1.c: Include nan.h.
14529         (main): Use NaNf instead of NAN.
14530         * modules/roundf-tests (Files): Add tests/nan.h.
14531
14532         * tests/test-truncf1.c: Include nan.h.
14533         (main): Use NaNf instead of NAN.
14534         * modules/truncf-tests (Files): Add tests/nan.h.
14535
14536         * tests/test-ceilf1.c: Include nan.h.
14537         (main): Use NaNf instead of NAN.
14538         * modules/ceilf-tests (Files): Add tests/nan.h.
14539
14540         * tests/test-floorf1.c: Include nan.h.
14541         (main): Use NaNf instead of NAN.
14542         * modules/floorf-tests (Files): Add tests/nan.h.
14543
14544         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
14545         (main): Use NaNf instead of NAN.
14546         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
14547
14548         * tests/test-isnand.c: Include nan.h instead of <math.h>.
14549         (main): Use NaNd instead of NAN.
14550         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
14551
14552         * tests/test-frexp.c: Include nan.h.
14553         (main): Use NaNd instead of NAN.
14554         * modules/frexp-tests (Files): Add tests/nan.h.
14555
14556         * lib/isnan.c: Don't include <math.h>.
14557         (FUNC): Don't use NAN macro.
14558         * modules/isnand-nolibm (Depends-on): Remove math.
14559         * modules/isnanf-nolibm (Depends-on): Remove math.
14560         * modules/isnanl (Depends-on): Remove math.
14561         * modules/isnanl-nolibm (Depends-on): Remove math.
14562
14563         * tests/nan.h: New file.
14564
14565 2008-04-01  Eric Blake  <ebb9@byu.net>
14566
14567         Fix typos.
14568         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
14569         values to be the right type.
14570
14571         For now, cater to gnulib strtod inaccuracies.
14572         * tests/test-strtod.c (main): Allow 1-ulp error on expected
14573         fractional results.  While not as nice from a QoI perspective, it
14574         is a quicker patch than correctly implementing decimal to binary
14575         rounding.
14576
14577 2008-03-31  Eric Blake  <ebb9@byu.net>
14578
14579         Guarantee a definition of NAN.
14580         * lib/math.in.h (NAN): Define if missing.
14581         * tests/test-math.c (main): Test it.
14582         * doc/posix-headers/math.texi (math.h): Document this.
14583         * lib/isnan.c (rpl_isnand): Use it.
14584         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
14585         * tests/test-floorf1.c (NaN): Likewise.
14586         * tests/test-frexp.c (NaN): Likewise.
14587         * tests/test-isnand.c (NaN): Likewise.
14588         * tests/test-isnanf.c (NaN): Likewise.
14589         * tests/test-round1.c (NaN): Likewise.
14590         * tests/test-roundf1.c (NaN): Likewise.
14591         * tests/test-snprintf-posix.h (NaN): Likewise.
14592         * tests/test-sprintf-posix.h (NaN): Likewise.
14593         * tests/test-trunc1.c (NaN): Likewise.
14594         * tests/test-truncf1.c (NaN): Likewise.
14595         * tests/test-vasnprintf-posix.c (NaN): Likewise.
14596         * tests/test-vasprintf-posix.c (NaN): Likewise.
14597         * modules/isnand-nolibm (Depends-on): Add math.
14598         * modules/isnanf-nolibm (Depends-on): Likewise.
14599         * modules/isnanl (Depends-on): Likewise.
14600         * modules/isnanl-nolibm (Depends-on): Likewise.
14601         * modules/snprintf-posix-tests (Depends-on): Likewise.
14602         * modules/sprintf-posix-tests (Depends-on): Likewise.
14603         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
14604         * modules/vsprintf-posix-tests (Depends-on): Likewise.
14605         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
14606         * modules/vasprintf-posix-tests (Depends-on): Likewise.
14607
14608 2008-03-31  Bruno Haible  <bruno@clisp.org>
14609
14610         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
14611         * doc/posix-functions/strtod.texi: Likewise.
14612
14613 2008-03-31  Bruno Haible  <bruno@clisp.org>
14614
14615         * tests/test-strtod.c (main): Don't use C99 syntax.
14616
14617 2008-03-31  Bruno Haible  <bruno@clisp.org>
14618
14619         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
14620         Reported by Eric Blake.
14621
14622 2008-03-31  Jim Meyering  <meyering@redhat.com>
14623
14624         Don't compare actual signbit return values.
14625         * tests/test-strtod.c (main): Rather, compare only their
14626         zero/non-zero nature.
14627
14628 2008-03-31  Eric Blake  <ebb9@byu.net>
14629
14630         More strtod documentation.
14631         * doc/posix-functions/strtod.texi (strtod): Interpret more test
14632         failures as distinct bugs.
14633
14634 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
14637         Problem reported by Erik Benada in
14638         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
14639
14640 2008-03-30  Bruno Haible  <bruno@clisp.org>
14641
14642         * tests/test-strtod.c: Add comments about which assertion fails on which
14643         platform.
14644         * doc/posix-functions/strtod.texi: Add info about many more platforms.
14645
14646 2008-03-30  Eric Blake  <ebb9@byu.net>
14647
14648         Test signbit behavior on zeros.
14649         * tests/test-signbit.c (test_signbitf): Add tests for zero.
14650         (test_signbitd, test_signbitl): Likewise.
14651
14652         More strtod touchups.
14653         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
14654         sign of negative underflow, for now.  Use .5, not .1.
14655         * doc/posix-functions/strtod.texi (strtod): Mention these
14656         limitations.
14657         Reported by Jim Meyering.
14658
14659 2008-03-30  Bruno Haible  <bruno@clisp.org>
14660
14661         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
14662         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
14663
14664 2008-03-30  Bruno Haible  <bruno@clisp.org>
14665
14666         Avoid failure when attempting to return empty iconv results on some
14667         platforms.
14668         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
14669         allocation, don't report ENOMEM when the resulting string is empty.
14670
14671 2008-03-30  Bruno Haible  <bruno@clisp.org>
14672
14673         Fix buffer overrun.
14674         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
14675         Don't consider the width for tmp_length. Check count against tmp_length
14676         before doing the padding. Ensure enough allocation during padding.
14677
14678 2008-03-30  Eric Blake  <ebb9@byu.net>
14679
14680         strtod touchups.
14681         * lib/strtod.c (strtod): Avoid compiler warnings.
14682         Reported by Jim Meyering.
14683
14684 2008-03-30  Bruno Haible  <bruno@clisp.org>
14685
14686         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
14687         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
14688         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
14689         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
14690         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
14691         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
14692         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
14693         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
14694
14695         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
14696         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
14697         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
14698         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
14699         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
14700         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
14701         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
14702         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
14703
14704         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
14705         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
14706         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
14707         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
14708         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
14709         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
14710         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
14711         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
14712
14713         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
14714         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
14715
14716         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
14717         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
14718
14719         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
14720         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
14721
14722         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
14723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
14724         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
14725
14726         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
14727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
14728         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
14729
14730         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
14731         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
14732         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
14733
14734         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
14735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
14736         * modules/vasprintf (Depends-on): Add EOVERFLOW.
14737
14738         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
14739         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
14740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
14741         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
14742         (Depends-on): Add EOVERFLOW.
14743         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
14744         (Depends-on): Add EOVERFLOW.
14745         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14746         (Depends-on): Add EOVERFLOW.
14747         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
14748         (Depends-on): Add EOVERFLOW.
14749         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14750         (Depends-on): Add EOVERFLOW.
14751         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
14752         (Depends-on): Add EOVERFLOW.
14753         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14754         (Depends-on): Add EOVERFLOW.
14755         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
14756         (Depends-on): Add EOVERFLOW.
14757
14758         * lib/sprintf.c (EOVERFLOW): Remove fallback.
14759         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
14760         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
14761
14762         * lib/snprintf.c (EOVERFLOW): Remove fallback.
14763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
14764         * modules/snprintf (Depends-on): Add EOVERFLOW.
14765
14766         * lib/poll.c (EOVERFLOW): Remove fallback.
14767         * modules/poll (Depends-on): Add EOVERFLOW.
14768
14769         * lib/getugroups.c (EOVERFLOW): Remove fallback.
14770         * modules/getugroups (Depends-on): Add EOVERFLOW.
14771
14772         * lib/getdelim.c (EOVERFLOW): Remove fallback.
14773         * modules/getdelim (Depends-on): Add EOVERFLOW.
14774
14775         * lib/ftell.c (EOVERFLOW): Remove fallback.
14776         * modules/ftell (Depends-on): Add EOVERFLOW.
14777
14778         * lib/fprintf.c (EOVERFLOW): Remove fallback.
14779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
14780         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
14781
14782         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
14783
14784         * modules/EOVERFLOW-tests: New file.
14785         * tests/test-EOVERFLOW.c: New file.
14786
14787         * modules/EOVERFLOW: New file.
14788         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
14789
14790 2008-03-30  Bruno Haible  <bruno@clisp.org>
14791
14792         Fix bug introduced on 2007-06-10.
14793         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
14794         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
14795
14796 2008-03-30  Bruno Haible  <bruno@clisp.org>
14797
14798         Improve freadseek's efficiency after ungetc.
14799         * lib/freadseek.c: Include freadahead.h.
14800         (freadptrinc): New function, extracted from freadseek.
14801         (freadseek): Use it in a loop. Use freadahead to determine the number
14802         of loop iterations.
14803         * modules/freadseek (Depends-on): Add freadahead.
14804         (configure.ac): Require AC_C_INLINE.
14805
14806 2008-03-30  Bruno Haible  <bruno@clisp.org>
14807
14808         * lib/freadseek.c (freadseek): Don't ignore the return value of
14809         freadptr.
14810
14811 2008-03-29  Eric Blake  <ebb9@byu.net>
14812
14813         Add hex float support.
14814         * modules/strtod (Depends-on): Add c-ctype.
14815         (Link): Mention POW_LIB.
14816         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
14817         whitespace between 'e' and exponent.
14818         * tests/test-strtod.c (main): Enable hex float tests.
14819         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
14820         now provides.
14821
14822         Document various strtod bugs, with some fixes.
14823         * doc/posix-functions/strtod.texi (strtod): Document bugs with
14824         "-0x", "inf", "nan", and hex constants.
14825         * doc/posix-functions/atof.texi (atof): Likewise.
14826         * modules/stdlib (Makefile.am): Support strtod.
14827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14828         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
14829         detect additional strtod bugs.
14830         * lib/stdlib.in.h (rpl_strtod): Add declarations.
14831         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
14832         bool where appropriate.  Parse 'inf' and 'nan'.
14833         * tests/test-strtod.c: New file.
14834         * modules/strtod (Depends-on): Add stdbool, stdlib.
14835         (configure.ac): Turn on module indicator.
14836         * modules/strtod-tests: New module.
14837
14838 2008-03-29  Eric Blake  <ebb9@byu.net>
14839
14840         Fix ftell on mingw.
14841         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
14842         * modules/ftell-tests (Depends-on): Add binary-io.
14843         * modules/ftello-tests (Depends-on): Likewise.
14844         * tests/test-ftell.c (main): Enhance test to cover behavior after
14845         ungetc.  Enforce binary mode.
14846         * tests/test-ftello.c (main): Likewise.
14847
14848         Pass test-freadseek on cygwin.
14849         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
14850         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
14851         ungetc buffer.
14852
14853         * tests/test-fflush2.c (main): Fix typo.
14854
14855 2008-03-29  Bruno Haible  <bruno@clisp.org>
14856
14857         * tests/test-fflush2.c (main): Temporarily disable the contents of
14858         this test.
14859         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
14860         Reported by Eric Blake.
14861
14862 2008-03-28  Simon Josefsson  <simon@josefsson.org>
14863
14864         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
14865         (GC_SHA224_DIGEST_SIZE): Add.
14866
14867         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
14868         (gc_hash_digest_length): Likewise.
14869         (gc_hash_buffer): Likewise.
14870
14871 2008-03-25  Bruno Haible  <bruno@clisp.org>
14872
14873         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
14874         detail which gettext release to use.
14875         Reported by Simon Josefsson.
14876
14877 2008-03-26  Jim Meyering  <meyering@redhat.com>
14878
14879         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
14880         * modules/gnumakefile (clean-GNUmakefile): Also, use
14881         test ... && ... || : syntax rather than if-then ... fi.
14882
14883         gnumakefile: Don't double-quote-expand $(VPATH) value.
14884         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
14885
14886 2008-03-24  Eric Blake  <ebb9@byu.net>
14887
14888         Alter GNUmakefile to install into top directory.
14889         * modules/maintainer-makefile: Split, and add dependency...
14890         * modules/gnumakefile: to this new module.
14891         * build-aux/GNUmakefile: Move...
14892         * top/GNUmakefile: ...here.
14893         * build-aux/maint.mk: Move...
14894         * top/maint.mk: ...here.
14895         * MODULES.html.sh (Support for maintaining...): Document new
14896         module.
14897
14898 2008-03-23  Bruno Haible  <bruno@clisp.org>
14899
14900         * gnulib-tool: New options --vc-files, --no-vc-files.
14901         (func_usage): Document them.
14902         (vc_files): New variable.
14903         (func_import): Consider vc_files.
14904         (func_create_testdir): Set vc_files to empty.
14905         Suggested by Jim Meyering and Karl Berry.
14906
14907 2008-03-23  Bruno Haible  <bruno@clisp.org>
14908
14909         Fix regex compilation error on HP-UX 11.
14910         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
14911         * modules/regex (Files): Add m4/mbstate_t.m4.
14912         Reported by Ton Voon <ton.voon@altinity.com>.
14913
14914 2008-03-23  Bruno Haible  <bruno@clisp.org>
14915
14916         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
14917
14918 2008-03-23  Eric Blake  <ebb9@byu.net>
14919             Bruno Haible  <bruno@clisp.org>
14920
14921         Install files from top/ in the destination directory.
14922         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
14923         augmentation also for the files from top/.
14924         (func_import, func_create_testdir): Rewrite file names:
14925         top/filename -> filename.
14926
14927 2008-03-23  Bruno Haible  <bruno@clisp.org>
14928
14929         Tweak "gnulib --version" output.
14930         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
14931
14932 2008-03-23  Bruno Haible  <bruno@clisp.org>
14933
14934         Tweak "gnulib --version" output.
14935         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
14936         rather than contents of ChangeLog, when possible.
14937
14938 2008-03-21  Eric Blake  <ebb9@byu.net>
14939
14940         More --version tweaks.
14941         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
14942         date of last ChangeLog entry.
14943
14944 2008-03-21  Jim Meyering  <meyering@redhat.com>
14945
14946         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
14947
14948 2008-03-20  Eric Blake  <ebb9@byu.net>
14949
14950         VPATH fix.
14951         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
14952
14953 2008-03-20  Simon Josefsson  <simon@josefsson.org>
14954
14955         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
14956         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
14957
14958 2008-03-20  Eric Blake  <ebb9@byu.net>
14959
14960         Sync GNUmakefile with coreutils.
14961         * build-aux/GNUmakefile (have-Makefile): Rename...
14962         (_have-Makefile): ...to this, for namespace consideration.
14963         (GNUmakefile.cfg): Include, if present.
14964         (_autoreconf): Define a default.
14965         (_is-dist-target): New rule for rebuilds to pick up intra-release
14966         version.
14967         (maint-cfg.mk): Rename...
14968         (cfg.mk): ...to this.
14969
14970 2008-03-18  Jim Meyering  <meyering@redhat.com>
14971
14972         New script and module: mktempd
14973         * MODULES.html.sh (maint+release support): Add mktempd.
14974         * build-aux/mktempd: New file.
14975         * modules/mktempd: New file.
14976
14977 2008-03-15  Jim Meyering  <meyering@redhat.com>
14978
14979         Undo last change.
14980         * lib/sha1.c, lib/md5.c: 63 != ~63.
14981         Reported by Andreas Schwab.
14982
14983         sha1.c, md5.c: Hoist a redundant expression.
14984         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
14985         "ctx->buflen" only once, before calling *_process_block.
14986         * lib/md5.c (md5_process_bytes): Likewise.
14987
14988 2008-03-14  Eric Blake  <ebb9@byu.net>
14989
14990         Bump copyright year in files generated by gnulib-tool.
14991         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
14992         gnulib-tool, rather than hard-coding it.
14993
14994         Fix 'gnulib-tool --version' output to work with git.
14995         * gnulib-tool (func_gnulib_dir): New function, extracted from...
14996         (startup): ...here.
14997         (func_version): Use it to invoke git-version-gen, rather than
14998         relying on CVS keyword expansion.  Modernize wording.
14999         (cvsdatestamp, last_checkin_date, version): Kill unused
15000         variables.
15001
15002 2008-03-12  Jim Meyering  <meyering@redhat.com>
15003
15004         Recognize optional cast of the argument to free.
15005         * build-aux/useless-if-before-free: Update regexps.
15006
15007         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
15008
15009 2008-03-11  Bruno Haible  <bruno@clisp.org>
15010
15011         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
15012         by a single package.
15013         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
15014         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
15015         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
15016         Reported by Sam Steingold <sds@gnu.org>.
15017
15018 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15019
15020         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
15021         repositories.
15022
15023 2008-03-11  Bruno Haible  <bruno@clisp.org>
15024
15025         Avoid conflicts between local macro definitions.
15026         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15027         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
15028
15029 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
15030             Bruno Haible  <bruno@clisp.org>
15031
15032         Make va_copy work with some version of xlc on AIX 5.1.
15033         * lib/stdarg.in.h: New file.
15034         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
15035         On AIX, use a <stdarg.h> file substitute.
15036         * modules/stdarg (Files): Add lib/stdarg.in.h.
15037         (Depends-on): Add include_next.
15038         (Makefile.am): Build a stdarg.h substitute if requested.
15039         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
15040
15041 2008-03-10  Bruno Haible  <bruno@clisp.org>
15042
15043         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
15044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15045         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15046
15047 2008-03-10  Bruno Haible  <bruno@clisp.org>
15048
15049         * modules/stdlib (Depends-on): Add include_next, remove
15050         absolute-header.
15051
15052 2008-03-09  Bruno Haible  <bruno@clisp.org>
15053
15054         * lib/freadahead.h (freadahead): Document more precisely.
15055         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
15056         the sum of both buffer sizes.
15057         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
15058         * NEWS: Document the change.
15059
15060 2008-03-09  Bruno Haible  <bruno@clisp.org>
15061
15062         Extend freadptr to return also the buffer size.
15063         * lib/freadptr.h (freadptr): Add sizep argument.
15064         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
15065         (freadptr): Add sizep argument. Determine buffer size like freadahead
15066         does.
15067         * tests/test-freadptr.c: Don't include freadahead.h.
15068         (main): Adapt for new calling convention of freadptr.
15069         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
15070         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
15071         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
15072         tests/test-freadptr2.sh.
15073         (Depends): Remove freadahead.
15074         (TESTS): Add test-freadptr2.sh.
15075         (check_PROGRAMS): Add test-freadptr2.
15076
15077 2008-03-09  Bruno Haible  <bruno@clisp.org>
15078
15079         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
15080         Report and solution by Simon Josefsson.
15081
15082 2008-03-06  Bruno Haible  <bruno@clisp.org>
15083
15084         Make fflush after ungetc work on BSD platforms.
15085         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
15086         * tests/test-fflush2.c: New file.
15087         * tests/test-fflush2.sh: New file.
15088         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
15089         tests/test-fflush2.c.
15090         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
15091         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
15092
15093 2008-03-06  Eric Blake  <ebb9@byu.net>
15094
15095         Likewise for ftello.
15096         * modules/ftello (Dependencies): Add extensions.
15097         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
15098
15099 2008-03-06  Bruno Haible  <bruno@clisp.org>
15100
15101         * modules/fseeko (Dependencies): Add extensions.
15102         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
15103         Needed on glibc systems.
15104
15105 2008-03-06  Bruno Haible  <bruno@clisp.org>
15106
15107         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
15108         email address.
15109         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15110
15111 2008-03-06  Bruno Haible  <bruno@clisp.org>
15112
15113         * users.txt: Add libgnupdf.
15114
15115 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15116
15117         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
15118         (Header File Substitutes, Function Substitutes,
15119         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
15120         (Build robot for gnulib): Fix typo.
15121
15122 2008-03-06  Bruno Haible  <bruno@clisp.org>
15123
15124         * doc/gnulib-tool.texi (VCS Issues): Small updates.
15125         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15126
15127 2008-03-06  Bruno Haible  <bruno@clisp.org>
15128
15129         * doc/func.texi: New file, extracted from doc/gnulib.texi.
15130         * doc/gnulib.texi: Include it.
15131
15132 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15133
15134         * modules/func (License): Change license to unlimited; there was
15135         no LGPL parts in the module anyway.
15136
15137 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15138
15139         * modules/__func__: Renamed to modules/func.
15140         * modules/__func__-tests: Renamed to modules/func-tests.
15141         * tests/test-__func__.c: Renamed to tests/test-func.c.
15142         * m4/__func__.m4: Renamed to m4/func.m4.
15143         * doc/gnulib.texi (__func__): Section renamed to func.
15144         Suggested by Eric Blake <ebb9@byu.net>.
15145
15146 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15147
15148         * doc/gnulib.texi (__func__): Use C99 terminology when talking
15149         about __func__.  Make example self-contained.  Suggested by Eric
15150         Blake <ebb9@byu.net>.
15151
15152         * tests/test-__func__.c (main): Avoid extraneous () around __func.
15153         Suggested by Eric Blake <ebb9@byu.net>.
15154
15155 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15156
15157         * modules/__func__: New file.
15158         * modules/__func__-tests: New file.
15159         * tests/test-__func__.c: New file.
15160         * m4/__func__.m4: New file.
15161         * doc/gnulib.texi (__func__): Document __func__ module.
15162
15163 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15164
15165         * modules/byteswap (License): Re-license as LGPLv2+.
15166
15167 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15168
15169         * doc/Makefile: Add pdf target.
15170
15171 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15172
15173         * modules/inline (License): Use 'unlimited', since there are only
15174         *.m4 files in this module.
15175
15176 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15177             Bruno Haible  <bruno@clisp.org>
15178
15179         Add support for HP C 7.1 on OpenVMS 8.3.
15180         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
15181
15182 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15183
15184         Update VMS specifics.
15185         * lib/getopt.c [VMS]: Remove include of unixlib.h.
15186
15187 2008-03-02  Jim Meyering  <meyering@redhat.com>
15188
15189         Remove the last dependency on the "free" module.
15190         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
15191         Reported by Bob Proulx.
15192
15193         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
15194
15195         Remove useless "if" tests before free.  Deprecate "free" module.
15196         * doc/posix-functions/free.texi: Mention that this
15197         module is no longer useful.
15198         * modules/free (Notice): Say this module is obsolete.
15199         * modules/readutmp (Depends-on): Remove free.
15200         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
15201         * lib/putenv.c (putenv): Likewise.
15202         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
15203         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
15204         * tests/test-c-strcasestr.c (main): Likewise.
15205         * tests/test-c-strstr.c (main): Likewise.
15206         * tests/test-mbscasestr1.c (main): Likewise.
15207         * tests/test-mbscasestr2.c (main): Likewise.
15208         * tests/test-mbsstr1.c (main): Likewise.
15209         * tests/test-mbsstr2.c (main): Likewise.
15210         * tests/test-memmem.c (main): Likewise.
15211         * tests/test-strcasestr.c (main): Likewise.
15212         * tests/test-striconv.c (main): Likewise.
15213         * tests/test-striconveh.c (main): Likewise.
15214         * tests/test-striconveha.c (main): Likewise.
15215         * tests/test-strstr.c (main): Likewise.
15216
15217         * build-aux/git-version-gen: Adjust a comment and the Usage string.
15218
15219         bootstrap: sync from coreutils again
15220         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
15221
15222 2008-03-01  Jim Meyering  <meyering@redhat.com>
15223
15224         bootstrap: sync from coreutils
15225         * build-aux/bootstrap (update_po_files): Copy a .po file into place
15226         also when the target doesn't exist.
15227
15228 2008-03-01  Eric Blake  <ebb9@byu.net>
15229
15230         Fix bugs in last patch.
15231         * lib/memchr2.c (memchr2): Fix typo.
15232         * tests/test-memchr2.c: Test previous bug, and don't use GNU
15233         extension.
15234         Reported by Bruce Korb.
15235
15236         New module 'memchr2'.
15237         * modules/memchr2: New file.
15238         * modules/memchr2-tests: Likewise.
15239         * lib/memchr2.h: Likewise.
15240         * lib/memchr2.c: Likewise, based on memchr.c.
15241         * tests/test-memchr2.c: New test.
15242         * MODULES.html.sh (String handling): Add memchr2.
15243
15244 2008-02-29  Bruno Haible  <bruno@clisp.org>
15245
15246         * modules/freadseek-tests: New file.
15247         * tests/test-freadseek.sh: New file.
15248         * tests/test-freadseek.c: New file.
15249
15250         New module 'freadseek'.
15251         * modules/freadseek: New file.
15252         * lib/freadseek.h: New file.
15253         * lib/freadseek.c: New file.
15254         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
15255
15256 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15257
15258         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
15259         wydawca.
15260
15261         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
15262         program_invocation_name and program_invocation_short_name are
15263         present.
15264
15265 2008-02-28  Bruno Haible  <bruno@clisp.org>
15266
15267         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
15268         * tests/test-freadptr.sh: Also test non-seekable stdin.
15269
15270 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
15271
15272         * build-aux/bootstrap (source_base, m4_base)
15273         (doc_base, tests_base): New variables.
15274         (gnulib_tool_options): Do not hardcode base directories, use
15275         the above variables instead.
15276
15277 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
15278
15279         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
15280
15281 2008-02-28  Bruno Haible  <bruno@clisp.org>
15282
15283         * modules/freadptr-tests: New file.
15284         * tests/test-freadptr.sh: New file.
15285         * tests/test-freadptr.c: New file.
15286
15287         New module 'freadptr'.
15288         * modules/freadptr: New file.
15289         * lib/freadptr.h: New file.
15290         * lib/freadptr.c: New file.
15291         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
15292
15293 2008-02-26  Karl Berry  <karl@freefriends.org>
15294
15295         Sync from Libtool:
15296         * libltdl/argz.c (argz_add, argz_count): New functions.
15297         * libltdl/argz.in.h: Declare them.
15298         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
15299
15300 2008-02-22  Bruno Haible  <bruno@clisp.org>
15301
15302         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
15303         is a pointer type.  Needed for HP-UX 10.
15304         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
15305         * doc/posix-functions/gmtime_r.texi: Likewise.
15306         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15307
15308 2008-02-24  Bruno Haible  <bruno@clisp.org>
15309
15310         * modules/environ-tests: New file.
15311         * tests/test-environ.c: New file.
15312
15313         New module 'environ'.
15314         * modules/environ: New file.
15315         * lib/unistd.in.h (environ): New declaration.
15316         * m4/environ.m4: New file.
15317         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
15318         after use.
15319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
15320         HAVE_DECL_ENVIRON.
15321         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
15322         HAVE_DECL_ENVIRON.
15323         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
15324         wrong claim that 'environ' is missing on some systems.
15325         * modules/execute (Depends-on): Add environ.
15326         * lib/execute.c (environ): Remove fallback declaration.
15327         * modules/pipe (Depends-on): Add environ.
15328         * lib/pipe.c (environ): Remove fallback declaration.
15329         * modules/setenv (Depends-on): Add environ.
15330         * lib/setenv.c (environ): Remove fallback declaration.
15331         * modules/unsetenv (Depends-on): Add environ.
15332         * lib/unsetenv.c (environ): Remove fallback declaration.
15333         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
15334         m4/environ.m4.
15335         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
15336         (gl_PREREQ_UNSETENV): Likewise.
15337
15338 2008-02-24  Bruno Haible  <bruno@clisp.org>
15339
15340         * doc/posix-functions/environ.texi: Document the MacOS X problem.
15341
15342 2008-02-20  Bob Proulx  <bob@proulx.com>
15343
15344         Enable use of older two part flavor 'git describe'.
15345         * build-aux/git-version-gen: If using the older two part flavor of
15346         git version then recreate the third part now present in the
15347         newer three part flavor of git describe.
15348
15349 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
15350
15351         * lib/fts.c (fts_build): Typo correction to comment.
15352
15353 2008-02-17  Bruno Haible  <bruno@clisp.org>
15354
15355         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
15356         generating no-op conflicts.
15357
15358 2008-02-17  Bruno Haible  <bruno@clisp.org>
15359
15360         Speed up by 10%.
15361         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
15362         result_entries, rather than an index-based loop.
15363
15364 2008-02-17  Bruno Haible  <bruno@clisp.org>
15365
15366         Speed up by 25%.
15367         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
15368         'hashcode_cached'.
15369         (entry_create): New function.
15370         (entry_hashcode): Use the cached hashcode if possible.
15371         (read_changelog_file, try_split_merged_entry): Use entry_create.
15372
15373 2008-02-17  Bruno Haible  <bruno@clisp.org>
15374
15375         Speed up from O(n^2) to O(n) for long ChangeLog files.
15376         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
15377         (read_changelog_file): Change implementation of entries_reversed list
15378         to rbtreehash.
15379         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
15380
15381 2008-02-17  Bruno Haible  <bruno@clisp.org>
15382
15383         New option --split-merged-entry.
15384         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
15385         (find_paragraph_end, try_split_merged_entry): New functions.
15386         (long_options): Add option --split-merged-entry.
15387         (usage): Document option --split-merged-entry.
15388         (main): Implement option --split-merged-entry.
15389         Reported by Eric Blake.
15390
15391 2008-02-17  Bruno Haible  <bruno@clisp.org>
15392
15393         * lib/git-merge-changelog.c: Include c-strstr.h.
15394         (main): Support the "git pull --rebase" situation.
15395         * modules/git-merge-changelog (Depends-on): Add c-strstr.
15396         Reported by Eric Blake.
15397
15398 2008-02-16  Eric Blake  <ebb9@byu.net>
15399
15400         Avoid doubling \ in common case of "c-maybe" quoting style.
15401         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
15402         eliding outer quotes.
15403         * lib/quotearg.h: Document this.
15404         * tests/test-quotearg.c (result_strings, inputs, results_g)
15405         (flag_results, locale_results): Test it by adding a new string to
15406         each test group.
15407         (compare_strings): Test new string.
15408
15409 2008-02-13  Eric Blake  <ebb9@byu.net>
15410
15411         Avoid trigraph quoting in default output.
15412         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
15413         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
15414         unless explicitly requested.
15415         * tests/test-quotearg.c (flag_results, main): Add additional tests.
15416
15417 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
15418
15419         Don't rely on signed integer overflowing to negative value.
15420         * lib/getugroups.c (getugroups): Include <limits.h>.
15421         Instead, compare against INT_MAX, and increment only if the test passes.
15422
15423 2008-02-13  Jim Meyering  <meyering@redhat.com>
15424         and Eric Blake  <ebb9@byu.net>
15425
15426         Avoid shadowing warning and compile errors on Linux.
15427         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
15428         forwarding macros on Linux.
15429         (dcgettext): Define a stub, for Linux.
15430         (results_g, main): Avoid warnings.
15431
15432 2008-02-12  Eric Blake  <ebb9@byu.net>
15433
15434         Silence warning in last patch.
15435         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
15436
15437         Quotearg part 4: add tests, fix c-maybe colon quoting.
15438         * lib/quotearg.h: Improve documentation.
15439         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
15440         escapes when adding outer quotes.  When quoting trigraphs, use
15441         valid C notation.  When quoting NUL, omit extra characters if next
15442         character is not digit.  Alter prototype.
15443         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
15444         callers.
15445         * modules/quotearg-tests: New module.
15446         * tests/test-quotearg.c: New test.
15447
15448 2008-02-07  Eric Blake  <ebb9@byu.net>
15449
15450         Quotearg part 3: add flag to control outer quote elision.
15451         * lib/quotearg.h (c_maybe_quoting_style): New style.
15452         (enum quoting_flags): Better documentation of flags.
15453         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
15454         c-maybe style.
15455         (quotearg_buffer_restyled): Handle new flag to elide outer
15456         quotes.
15457
15458         Quotearg part 2: add flag that can control NUL elision.
15459         * lib/quotearg.h (set_quoting_flags): New prototype.
15460         * lib/quotearg.c (struct quoting_options): Add flag field.
15461         (set_quoting_flags): New function.
15462         (quotearg_buffer_restyled): Add flags parameter.
15463         (quotearg_alloc_mem): Set the flag if length cannot be returned.
15464         (quotearg_n_options): Set the flag, since length cannot be
15465         returned.
15466         (quoting_options_from_style): Default flags correctly.
15467
15468         Quotearg part 1: more wrappers, restore quotearg_char state.
15469         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
15470         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
15471         (quotearg_colon_mem): New wrappers.
15472         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
15473         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
15474         functions.
15475         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
15476         (quotearg_colon_mem): New functions.
15477
15478 2008-02-11  Bruno Haible  <bruno@clisp.org>
15479
15480         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
15481         library in the current directory: it does not work with parallel make.
15482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15483
15484 2008-02-11  Bruno Haible  <bruno@clisp.org>
15485
15486         * .gitattributes: New file.
15487
15488 2008-02-11  Jim Meyering  <meyering@redhat.com>
15489
15490         useless-if-before-free: Fix reversed exit values.
15491         * build-aux/useless-if-before-free: Use correct values
15492         for EXIT_MATCH and EXIT_NO_MATCH.
15493
15494         * build-aux/useless-if-before-free: Close stdout carefully.
15495
15496 2008-02-10  Bruno Haible  <bruno@clisp.org>
15497
15498         New module 'git-merge-changelog'.
15499         * modules/git-merge-changelog: New file.
15500         * lib/git-merge-changelog.c: New file.
15501
15502 2008-02-10  Jim Meyering  <meyering@redhat.com>
15503
15504         useless-if-before-free: New option: --list (-l).
15505
15506         useless-if-before-free: Don't exit immediately upon open failure.
15507         * build-aux/useless-if-before-free: Exit 2 for errors.
15508         Upon failure to open a file, don't exit immediately.
15509         Rather, just warn and continue with any remaining files.
15510
15511 2008-02-10  Bruno Haible  <bruno@clisp.org>
15512
15513         New abstract list operation 'node_set_value'.
15514         * lib/gl_list.h (gl_list_node_set_value): New function.
15515         (struct gl_list_implementation): New field node_set_value.
15516         * lib/gl_list.c (gl_list_node_set_value): New function.
15517         * lib/gl_array_list.c (gl_array_node_set_value): New function.
15518         (gl_array_list_implementation): Update.
15519         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
15520         (gl_carray_list_implementation): Update.
15521         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
15522         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15523         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15524         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
15525         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15526         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15527         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15528         Update.
15529         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15530         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
15531         (gl_sublist_list_implementation): Update.
15532
15533 2008-02-10  Bruno Haible  <bruno@clisp.org>
15534
15535         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
15536         Needed when ELEMENT is #defined to 'some_type *'.
15537
15538 2008-02-10  Jim Meyering  <meyering@redhat.com>
15539
15540         New script and module: useless-if-before-free
15541         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
15542         * build-aux/useless-if-before-free: New file.
15543         * modules/useless-if-before-free: New file.
15544
15545         * build-aux/gitlog-to-changelog: Use committer date, not author date.
15546
15547         xstrtol_error: Fix typo.
15548         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
15549         s/exit_failure/exit_status/.
15550
15551 2008-02-09  Jim Meyering  <meyering@redhat.com>
15552
15553         New script and module: gitlog-to-changelog
15554         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
15555         * modules/gitlog-to-changelog: New file.
15556         * build-aux/gitlog-to-changelog: New file.
15557
15558 2008-02-08  Jim Meyering  <meyering@redhat.com>
15559
15560         Avoid two "parameter unused" warnings.
15561         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
15562         Mark "st" as used.
15563
15564         Use "git COMMAND", not "git-COMMAND".
15565         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
15566         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
15567         * build-aux/git-version-gen: Use "git status", not "git-status".
15568
15569 2008-02-07  Bruno Haible  <bruno@clisp.org>
15570
15571         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
15572         Avoids a crash on Windows Vista.
15573         Reported by Adam Strzelecki <ono@java.pl> via
15574         Simon Josefsson <simon@josefsson.org>.
15575
15576 2008-02-06  Bruno Haible  <bruno@clisp.org>
15577
15578         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
15579         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
15580         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
15581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
15582         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15583         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15584         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
15585         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
15586         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15587         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15588         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15589         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15590         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15593         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
15594         left-adjust flag.
15595         * tests/test-snprintf-posix.h (test_function): Likewise.
15596         * tests/test-sprintf-posix.h (test_function): Likewise.
15597         * tests/test-vasprintf-posix.c (test_function): Likewise.
15598         * doc/posix-functions/fprintf.texi: Update.
15599         * doc/posix-functions/printf.texi: Update.
15600         * doc/posix-functions/snprintf.texi: Update.
15601         * doc/posix-functions/sprintf.texi: Update.
15602         * doc/posix-functions/vfprintf.texi: Update.
15603         * doc/posix-functions/vprintf.texi: Update.
15604         * doc/posix-functions/vsnprintf.texi: Update.
15605         * doc/posix-functions/vsprintf.texi: Update.
15606         Reported by Peter Fales <psfales@alcatel-lucent.com>.
15607
15608 2008-02-06  Bruno Haible  <bruno@clisp.org>
15609
15610         Fix bug introduced on 2008-01-26.
15611         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
15612
15613 2008-02-06  Bruno Haible  <bruno@clisp.org>
15614
15615         Fix bug introduced on 2007-06-10.
15616         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
15617         !NEED_PRINTF_FLAG_ZERO.
15618
15619 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
15620
15621         getloadavg: use libperfstat on AIX5
15622         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
15623
15624 2008-02-03  Bruno Haible  <bruno@clisp.org>
15625
15626         * lib/diffseq.h: Add comments about required #includes.
15627         Reported by Michael Biggs <gnulib@doubleplum.net>.
15628
15629 2008-02-01  Bruno Haible  <bruno@clisp.org>
15630
15631         * users.txt: Add gnuit.
15632
15633 2008-01-31  Bruno Haible  <bruno@clisp.org>
15634
15635         * lib/md4.c (set_uint32): Mark as inline.
15636         * lib/md5.c (set_uint32): Likewise.
15637         * lib/sha1.c (set_uint32): Likewise.
15638         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
15639         * m4/md5.m4 (gl_MD5): Likewise.
15640         * m4/sha1.m4 (gl_SHA1): Likewise.
15641
15642 2008-01-31  Jim Meyering  <meyering@redhat.com>
15643
15644         Use "sizeof VAR", rather than a literal "4".
15645         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
15646         * lib/md4.c (md4_read_ctx): Likewise.
15647         * lib/sha1.c (sha1_read_ctx): Likewise.
15648
15649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15650
15651         * tests/test-sha1.c: New file, based on test-md5.c.
15652
15653         * modules/crypto/sha1-tests: New file.
15654
15655 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15656
15657         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
15658
15659 2008-01-31  Jim Meyering  <meyering@redhat.com>
15660
15661         Prefer "sizeof v" over the equivalent "4".
15662         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
15663         * lib/md5.c (set_uint32): Likewise.
15664         * lib/sha1.c (set_uint32): Likewise.
15665
15666 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15667
15668         * lib/sha1.c (set_uint32): Mark function as static.
15669
15670 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15671
15672         md2: clarify comments to say that alignment is not required.
15673         * lib/md2.h: Remove warning about alignment in comment.
15674         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
15675         never been required.
15676
15677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15678
15679         md4: adapt alignment constraint fix from sha1.
15680         * lib/md4.c (set_uint32): New function, from sha1.c
15681         (md4_read_ctx): Use it.
15682         (md4_finish_ctx): Doc fix.
15683         * lib/md4.h: Doc fix.
15684
15685 2008-01-31  Simon Josefsson  <simon@josefsson.org>
15686
15687         md5: adapt alignment constraint fix from sha1.
15688         * lib/md5.c (set_uint32): New function, from sha1.c
15689         (md5_read_ctx): Use it.
15690         (md5_finish_ctx): Doc fix.
15691         * lib/md5.h: Doc fix.
15692
15693 2008-01-30  Peter Palfrader  <weasel@debian.org>
15694
15695         sha1: remove the result buffer alignment constraint
15696         * lib/sha1.c (set_uint32): New function.
15697         (sha1_read_ctx): Rewrite to remove the result buffer alignment
15698         constraint.
15699         (sha1_finish_ctx): Remove comment warning about alignment constraint.
15700         * lib/sha1.h: Likewise.
15701
15702 2008-01-30  Andreas Schwab  <schwab@suse.de>
15703             Bruno Haible  <bruno@clisp.org>
15704
15705         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
15706         correct definition of LDBL_MIN_EXP.
15707
15708 2008-01-30  Karl Berry  <karl@gnu.org>
15709
15710         * config/srclist-update: try to preserve x bit on updates.
15711         * config/srclistvars.sh: update for karl.
15712
15713 2008-01-29  Jim Meyering  <meyering@redhat.com>
15714
15715         vasnprintf.c: Avoid warning about unused label
15716         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
15717         "overflow" label definition and associated code with the
15718         same cpp condition that guards the sole use of that label.
15719
15720 2008-01-26  Bruno Haible  <bruno@clisp.org>
15721
15722         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
15723         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
15724         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
15725         * lib/isnanl-nolibm.h (isnanl): Likewise.
15726         Reported by Paul Eggert <eggert@cs.ucla.edu>.
15727
15728 2008-01-26  Bruno Haible  <bruno@clisp.org>
15729
15730         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
15731         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
15732
15733 2008-01-26  Bruno Haible  <bruno@clisp.org>
15734
15735         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
15736         GCC >= 4.0 built-in.
15737         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
15738
15739 2008-01-26  Bruno Haible  <bruno@clisp.org>
15740
15741         Rename isnan, applicable to 'double' only, to isnand.
15742         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
15743         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
15744         (configure.ac): Update.
15745         (Include): Replace "isnan.h" with "isnand.h".
15746         * m4/isnand.m4: Renamed from m4/isnan.m4.
15747         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
15748         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
15749         instead of isnan.c.
15750         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
15751         instead of HAVE_ISNAN_IN_LIBC.
15752         (isnand): Renamed from isnan.
15753         * lib/isnand.c: New file.
15754         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
15755         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
15756         (Makefile.am): Update.
15757         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
15758         Include isnand.h instead of isnan.h.
15759         (main): Test isnand instead of isnan.
15760         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
15761         isnan-nolibm.
15762         * modules/frexp (Depends-on): Likewise.
15763         * modules/frexp-tests (Depends-on): Likewise.
15764         * modules/frexp-nolibm (Depends-on): Likewise.
15765         * modules/frexp-nolibm-tests (Depends-on): Likewise.
15766         * modules/isfinite (Depends-on): Likewise.
15767         * modules/round-tests (Depends-on): Likewise.
15768         * modules/signbit (Depends-on): Likewise.
15769         * modules/signbit-tests (Depends-on): Likewise.
15770         * modules/snprintf-posix (Depends-on): Likewise.
15771         * modules/sprintf-posix (Depends-on): Likewise.
15772         * modules/trunc-tests (Depends-on): Likewise.
15773         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15774         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15775         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15776         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15777         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15778         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15779         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15780         * modules/vasnprintf-posix (Depends-on): Likewise.
15781         * modules/vasprintf-posix (Depends-on): Likewise.
15782         * modules/vfprintf-posix (Depends-on): Likewise.
15783         * modules/vsnprintf-posix (Depends-on): Likewise.
15784         * modules/vsprintf-posix (Depends-on): Likewise.
15785         * lib/frexp.c: Include isnand.h instead of isnan.h.
15786         (ISNAN): Set to isnand instead of isnan.
15787         * lib/isfinite.c: Include isnand.h instead of isnan.h.
15788         (gl_isfinited): Use isnand instead of isnan.
15789         * lib/signbitd.c: Include isnand.h instead of isnan.h.
15790         (gl_signbitd): Use isnand instead of isnan.
15791         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
15792         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
15793         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
15794         (main): Use isnand instead of isnan.
15795         * tests/test-round1.c: Include isnand.h.
15796         (main): Use isnand instead of isnan.
15797         * tests/test-round2.c: Include isnand.h instead of isnan.h.
15798         (ISNAN): Set to isnand instead of isnan.
15799         * tests/test-trunc1.c: Include isnand.h.
15800         (main): Use isnand instead of isnan.
15801         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
15802         (equal): Use isnand instead of isnan.
15803         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
15804         isnand-nolibm.
15805         * NEWS: Mention the change.
15806
15807 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
15808             Bruno Haible  <bruno@clisp.org>
15809
15810         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
15811         the GCC builtins for signbits are present and set
15812         REPLACE_SIGNBIT_USING_GCC if so.
15813         * lib/math.in.h (signbit): Define using GCC builtins if
15814         REPLACE_SIGNBIT_USING_GCC is set.
15815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
15816         REPLACE_SIGNBIT_USING_GCC.
15817         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
15818
15819 2008-01-25  Jim Meyering  <meyering@redhat.com>
15820
15821         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
15822         * lib/poll.c: Include <config.h>, not "config.h".
15823         * tests/test-getaddrinfo.c: Likewise.
15824
15825 2008-01-25  Simon Josefsson  <simon@josefsson.org>
15826
15827         * modules/sockets-tests: New file.
15828
15829 2008-01-24  Simon Josefsson  <simon@josefsson.org>
15830
15831         * modules/sockets: New module, can be used to call WSA_Startup and
15832         WSA_Cleanup when needed.
15833
15834         * lib/sockets.h, lib/sockets.c: New files.
15835
15836         * m4/sockets.m4: New file.
15837
15838         * tests/test-sockets.c: New file.
15839
15840 2008-01-19  Bruno Haible  <bruno@clisp.org>
15841
15842         * doc/posix-headers: Renamed from doc/headers.
15843         * doc/posix-functions: Renamed from doc/functions.
15844         * doc/gnulib.texi: Update.
15845
15846 2008-01-19  Bruno Haible  <bruno@clisp.org>
15847
15848         * doc/glibc-functions/strcasestr.texi: Include contents of
15849         doc/functions/strcasestr.texi, fixing the list of platforms.
15850         * doc/functions/strcasestr.texi: Remove file.
15851
15852 2008-01-19  Bruno Haible  <bruno@clisp.org>
15853
15854         * doc/glibc-functions/memmem.texi: Include contents of
15855         doc/functions/memmem.texi.
15856         * doc/functions/memmem.texi: Remove file.
15857
15858 2008-01-18  Bruno Haible  <bruno@clisp.org>
15859
15860         * doc/glibc-functions/*.texi: New files.
15861         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
15862         to use the new files.
15863
15864 2008-01-17  Bruno Haible  <bruno@clisp.org>
15865
15866         * tests/test-gethostname.c (main): Fix printf statement.
15867
15868 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15869
15870         * modules/gethostname-tests: New file.
15871
15872         * tests/test-gethostname.c: New file.
15873
15874 2008-01-17  Simon Josefsson  <simon@josefsson.org>
15875
15876         * lib/gethostname.c: Include string.h unconditionally, strncpy is
15877         used by the UNAME case.  Reported by Bruno Haible
15878         <bruno@clisp.org>.
15879
15880 2008-01-17  Eric Blake  <ebb9@byu.net>
15881
15882         Convert c-strcasestr to be more efficient.
15883         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
15884         (Depends-on): Add c-strcase, remove malloca, strnlen.
15885         * tests/test-c-strcasestr.c (main): Enhance test.
15886         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
15887
15888 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
15889
15890         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
15891         Use it in creating po/Makevars.
15892
15893 2008-01-15  Simon Josefsson  <simon@josefsson.org>
15894
15895         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
15896         Applications that requires it should initialize libgcrypt
15897         manually.
15898
15899 2008-01-16  Simon Josefsson  <simon@josefsson.org>
15900
15901         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
15902
15903 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15904
15905         Fix problem with getdate on mingw32 reported by Simon Josefsson
15906         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
15907         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
15908         tzname", when deciding whether to declare tzname.
15909         * lib/strftime.c (tzname): Likewise.
15910
15911 2008-01-15  Bruno Haible  <bruno@clisp.org>
15912
15913         Work around a MacOS X 10.5 bug in frexpl().
15914         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
15915         * doc/functions/frexpl.texi: Document the bug.
15916         Reported by Elias Pipping <pipping@gentoo.org>.
15917
15918 2008-01-14  Eric Blake  <ebb9@byu.net>
15919
15920         Touch up previous patch.
15921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
15922         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
15923
15924         Convert strcasestr module to use Two-Way algorithm.
15925         * modules/strcasestr-simple: New module, based on the old
15926         strcasestr, but with Two-Way rather than KMP.
15927         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
15928         * lib/string.in.h (rpl_strcasestr): Declare.
15929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
15930         performance.
15931         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
15932         * modules/string (Makefile.am): Support strcasestr.
15933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
15934         * modules/strcasestr-tests (Depends-on): Check for alarm.
15935         * tests/test-strcasestr.c: Augment test.
15936         * lib/str-two-way.h: Clean up stray macro.
15937         * NEWS: Document new module.
15938         * MODULES.html.sh (string handling): Likewise.
15939         * doc/functions/strcasestr.texi: New file.
15940         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
15941         here, since it is not a POSIX function.
15942
15943 2008-01-14  Colin Watson  <cjwatson@debian.org>
15944             Bruno Haible  <bruno@clisp.org>
15945
15946         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
15947         works fine; if not, set REPLACE_STRSIGNAL.
15948         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
15949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15950         REPLACE_STRSIGNAL.
15951         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
15952         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
15953         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
15954
15955 2008-01-14  Bruno Haible  <bruno@clisp.org>
15956
15957         * modules/strsignal (Include): Change to <string.h>.
15958
15959 2008-01-14  Colin Watson  <cjwatson@debian.org>
15960
15961         * modules/argp (Notice): Add a notice recommending to change
15962         XGETTEXT_OPTIONS.
15963         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
15964
15965 2008-01-13  Colin Watson  <cjwatson@debian.org>
15966
15967         * modules/strsignal-tests: New file.
15968         * tests/test-strsignal.c: New file.
15969
15970         * lib/strsignal.c: New file, from glibc with modifications.
15971         * lib/siglist.h: New file, from glibc with modifications.
15972         * lib/string.in.h (strsignal): New declaration.
15973         * m4/strsignal.m4: New file.
15974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15975         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
15976         * modules/strsignal: New file.
15977         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
15978         HAVE_DECL_STRSIGNAL.
15979
15980 2008-01-13  Bruno Haible  <bruno@clisp.org>
15981
15982         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
15983         locale encoding is not ASCII. Needed for OpenBSD 4.0.
15984         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15985         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15986
15987 2008-01-13  Bruno Haible  <bruno@clisp.org>
15988
15989         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
15990         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
15991         * lib/argp.h (__attribute__): Likewise.
15992         * lib/c-stack.c (__attribute__): Likewise.
15993         * lib/error.h (__attribute__): Likewise.
15994         * lib/fts.c (__attribute__): Likewise.
15995         * lib/openat.h (__attribute__): Likewise.
15996         * lib/stdio.in.h (__attribute__): Likewise.
15997         * lib/string.in.h (__attribute__): Likewise.
15998         * lib/utimens.c (__attribute__): Likewise.
15999         * lib/vasnprintf.h (__attribute__): Likewise.
16000         * lib/xalloc.h (__attribute__): Likewise.
16001         * lib/xprintf.h (__attribute__): Likewise.
16002         * lib/xstrtol.h (__attribute__): Likewise.
16003         * lib/xvasprintf.h (__attribute__): Likewise.
16004
16005 2008-01-12  Bruno Haible  <bruno@clisp.org>
16006
16007         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
16008         * doc/glibc-headers/a.out.texi: New file.
16009         * doc/glibc-headers/aliases.texi: New file.
16010         * doc/glibc-headers/alloca.texi: New file.
16011         * doc/glibc-headers/ar.texi: New file.
16012         * doc/glibc-headers/argp.texi: New file.
16013         * doc/glibc-headers/argz.texi: New file.
16014         * doc/glibc-headers/byteswap.texi: New file.
16015         * doc/glibc-headers/crypt.texi: New file.
16016         * doc/glibc-headers/endian.texi: New file.
16017         * doc/glibc-headers/envz.texi: New file.
16018         * doc/glibc-headers/err.texi: New file.
16019         * doc/glibc-headers/error.texi: New file.
16020         * doc/glibc-headers/execinfo.texi: New file.
16021         * doc/glibc-headers/fpu_control.texi: New file.
16022         * doc/glibc-headers/fstab.texi: New file.
16023         * doc/glibc-headers/fts.texi: New file.
16024         * doc/glibc-headers/getopt.texi: New file.
16025         * doc/glibc-headers/ieee754.texi: New file.
16026         * doc/glibc-headers/ifaddrs.texi: New file.
16027         * doc/glibc-headers/libintl.texi: New file.
16028         * doc/glibc-headers/mcheck.texi: New file.
16029         * doc/glibc-headers/mntent.texi: New file.
16030         * doc/glibc-headers/obstack.texi: New file.
16031         * doc/glibc-headers/paths.texi: New file.
16032         * doc/glibc-headers/printf.texi: New file.
16033         * doc/glibc-headers/pty.texi: New file.
16034         * doc/glibc-headers/resolv.texi: New file.
16035         * doc/glibc-headers/shadow.texi: New file.
16036         * doc/glibc-headers/sysexits.texi: New file.
16037         * doc/glibc-headers/ttyent.texi: New file.
16038
16039 2008-01-12  Jim Meyering  <meyering@redhat.com>
16040
16041         announce-gen: emit Gnulib's git-based version string.
16042         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
16043         New option --gnulib-version=V, where V is expected to be
16044         the output of running git describe in the gnulib directory.
16045         (get_tool_versions): Request feedback on xdelta.  I suspect it's
16046         not useful, and plan to stop publishing an xdelta file with each
16047         coreutils release.
16048
16049         * build-aux/announce-gen: Also check for lzma-compressed files.
16050
16051 2008-01-11  Bruno Haible  <bruno@clisp.org>
16052
16053         * tests/test-memmem.c (main): Increase maximum allowed time.
16054         * tests/test-strstr.c (main): Likewise.
16055
16056 2008-01-11  Bruno Haible  <bruno@clisp.org>
16057
16058         * doc/functions/memmem.texi: Add more precisions about platforms.
16059         * doc/functions/strstr.texi: Likewise.
16060
16061 2008-01-10  Eric Blake  <ebb9@byu.net>
16062
16063         * m4/strstr.m4: Delete cruft from copy-n-paste.
16064         Reported by Bruno Haible.
16065
16066 2008-01-10  Bruno Haible  <bruno@clisp.org>
16067
16068         Make c-strstr rely on strstr.
16069         * lib/c-strstr.c: Don't include str-kmp.h.
16070         (c_strstr): Define in terms of strstr.
16071         * modules/c-strstr (Files): Remove lib/str-kmp.h.
16072         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
16073
16074 2008-01-10  Bruno Haible  <bruno@clisp.org>
16075
16076         * doc/gnulib.texi (String Functions in C Locale): New section.
16077         * doc/c-ctype.texi: New file.
16078         * doc/c-strcase.texi: New file.
16079         * doc/c-strcaseeq.texi: New file.
16080         * doc/c-strcasestr.texi: New file.
16081         * doc/c-strstr.texi: New file.
16082         * doc/c-strtod.texi: New file.
16083         * doc/c-strtold.texi: New file.
16084
16085 2008-01-10  Eric Blake  <ebb9@byu.net>
16086
16087         * lib/relocatable.h: Fix a comment.
16088
16089 2008-01-10  Eric Blake  <ebb9@byu.net>
16090
16091         Share two-way algorithm.
16092         * lib/str-two-way.h: New file, merged from...
16093         * lib/memmem.c: ...here...
16094         * lib/strstr.c: ...and here.
16095         * modules/memmem (Files): Use it.
16096         * modules/strstr (Files): Likewise.
16097
16098         Avoid quadratic strstr implementations.
16099         * lib/strstr.c: New file.
16100         * m4/strstr.m4: Likewise.
16101         * modules/strstr: Likewise.
16102         * modules/strstr-tests: Likewise.
16103         * tests/test-strstr.c: Likewise.
16104         * lib/string.in.h (rpl_strstr): Declare.
16105         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
16106         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
16107         * modules/string (Makefile.am): Likewise.
16108         * MODULES.html.sh (string handling): Mention new module.
16109         * doc/functions/strstr.texi (strstr): Document the bug.
16110
16111 2008-01-10  Bruno Haible  <bruno@clisp.org>
16112
16113         * lib/relocatable.h (relocate): State whether result is freshly
16114         allocated or not.
16115         * lib/relocatable.c (relocate): Return a freshly allocated string
16116         instead of a pointer to a privately held string.
16117         Reported by Sylvain Beucler <beuc@gnu.org>.
16118
16119 2008-01-10  Colin Watson  <cjwatson@debian.org>
16120
16121         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
16122         s/S_ISNLK/S_ISLNK/.
16123
16124 2008-01-09  Bruno Haible  <bruno@clisp.org>
16125
16126         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
16127         and other files.
16128         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
16129         if it's only a guess.
16130         * modules/memmem: Simplify by depending on memmem-simple.
16131
16132 2008-01-09  Bruno Haible  <bruno@clisp.org>
16133
16134         Work around OpenBSD 4.0 tdelete() bug.
16135         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
16136         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
16137         macros and don't redefine the enum values.
16138         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
16139         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
16140         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
16141
16142 2008-01-09  Bruno Haible  <bruno@clisp.org>
16143
16144         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
16145         (main): Don't perform the tests if setlocale did not install a UTF-8
16146         locale. Needed on OpenBSD 4.0.
16147         * modules/wcwidth-tests (Depends-on): Add localcharset.
16148
16149 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16150
16151         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
16152         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
16153         * NEWS: announce this.
16154         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
16155
16156 2008-01-09  Simon Josefsson  <simon@josefsson.org>
16157         and Eric Blake  <ebb9@byu.net>
16158
16159         Add memmem-simple module.
16160         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
16161         (gl_FUNC_MEMMEM): Separate performance from presence checks.
16162         * modules/memmem-simple: New file.
16163         * modules/memmem (Description): Tweak.
16164         * MODULES.html.sh (string handling): Mention new module.
16165         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
16166         addressed by memmem-simple.
16167         * NEWS: Document the difference.
16168
16169 2008-01-09  Eric Blake  <ebb9@byu.net>
16170
16171         Give gcc some memmem optimization hints.
16172         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
16173         (strcasestr): Declare as pure.
16174         * modules/memmem (Maintainer): Claim my implementation.
16175
16176 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16177
16178         Support AIX 6.1 and higher.
16179         * build-aux/config.libpath: Likewise.
16180         * build-aux/config.rpath: Likewise.
16181
16182 2008-01-08  Jim Meyering  <meyering@redhat.com>
16183             Bruno Haible  <bruno@clisp.org>
16184
16185         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
16186         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
16187         Reported by Peter Fales in
16188         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
16189
16190 2008-01-08  Bruno Haible  <bruno@clisp.org>
16191
16192         * modules/unictype/category-of (Depends-on): Add
16193         unictype/category-none.
16194         * modules/unictype/category-and-tests (Depends-on): Add
16195         unictype/category-{L,N,Lu,Nd}.
16196         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
16197         * modules/unictype/category-or-tests (Depends-on): Add
16198         unictype/category-{L,N}.
16199         * modules/unictype/category-name-tests (Depends-on): Add
16200         unictype/category-{Z,Nl}.
16201         Reported by Simon Josefsson.
16202
16203 2008-01-08  Bruno Haible  <bruno@clisp.org>
16204
16205         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
16206         convention better.
16207         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
16208         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
16209         Reported by Peter Miller <millerp@canb.auug.org.au>.
16210
16211 2008-01-08  Eric Blake  <ebb9@byu.net>
16212
16213         Rewrite memmem to guarantee linear complexity without malloc.
16214         * lib/memmem.c (memmem): Use Two-Way rather than
16215         Knuth-Morris-Pratt, to allow O(1) space usage.
16216         (critical_factorization, two_way_short_needle)
16217         (two_way_long_needle): New functions.
16218         (knuth_morris_pratt): Delete.
16219         * modules/memmem (Depends-on): No longer need malloca or stdbool.
16220         Add stdint.
16221         * tests/test-memmem.c (main): Add tests for periodic needle and
16222         sublinear performance.
16223         * doc/functions/memmem.texi (memmem): Document other deficiencies
16224         in cygwin and older glibc.
16225
16226 2008-01-08  Bruno Haible  <bruno@clisp.org>
16227
16228         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
16229         augmentation.
16230
16231 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
16232
16233         Add a configure time option: --disable-acl.
16234         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
16235         AC_ARG_ENABLE(acl).
16236
16237 2008-01-06  Simon Josefsson  <simon@josefsson.org>
16238
16239         * tests/test-localename.c: Don't include obsolete "setenv.h".
16240
16241         * modules/localename-tests (Depends-on): Need unsetenv.
16242
16243 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16244
16245         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
16246
16247 2008-01-06  Colin Watson  <cjwatson@debian.org>
16248
16249         * users.txt: Add man-db.
16250
16251 2008-01-07  Bruno Haible  <bruno@clisp.org>
16252
16253         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
16254         previous section name.
16255
16256 2008-01-07  Bruno Haible  <bruno@clisp.org>
16257
16258         * lib/progname.c (set_program_name): Don't strip off a leading
16259         "lt-" prefix outside a .libs directory.
16260         Suggested by Paul Eggert.
16261
16262 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
16263             Bruno Haible  <bruno@clisp.org>
16264
16265         Improve memory cleanup in 'relocatable' module.
16266         * lib/relocatable.h (compute_curr_prefix): Change return type to
16267         'char *'.
16268         * lib/relocatable.c (compute_curr_prefix): Change return type to
16269         'char *'. Free curr_installdir after use.
16270         (relocate): Free curr_prefix_better after use.
16271         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
16272
16273 2008-01-01  Bruno Haible  <bruno@clisp.org>
16274
16275         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
16276         failure on older glibc systems.
16277         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16278
16279 2008-01-05  Eric Blake  <ebb9@byu.net>
16280
16281         Avoid quadratic system memmem.
16282         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
16283         Reported by Ralf Wildenhues.
16284
16285         Fix memmem test for mingw.
16286         * modules/memmem-tests (configure.ac): Check for alarm.
16287         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
16288         it.
16289         * doc/functions/memmem.texi: New file.
16290         * doc/gnulib.texi (Function Substitutes): Add memmem.
16291         Reported by Bruno Haible.
16292
16293 2008-01-04  Bruno Haible  <bruno@clisp.org>
16294
16295         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
16296         Require gl_HEADER_STRINGS_H_DEFAULTS, not
16297         gl_HEADER_STRING_H_DEFAULTS.
16298
16299 2008-01-04  Eric Blake  <ebb9@byu.net>
16300
16301         Shorten duration of memmem test.
16302         * tests/test-memmem.c (main): Use alarm to declare failure if test
16303         is taking too long.
16304         Reported by Ralf Wildenhues.
16305
16306 2007-12-21  Simon Josefsson  <simon@josefsson.org>
16307
16308         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
16309         string, needed by strerror.
16310
16311 2008-01-03  Colin Watson  <cjwatson@debian.org>
16312             Bruno Haible  <bruno@clisp.org>
16313
16314         * doc/gnulib-tool.texi (Localization): New section.
16315
16316 2008-01-02  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
16319         variables to 'unsigned char *' type.
16320         Reported by Paul Eggert.
16321
16322 2008-01-02  Jim Meyering  <jim@meyering.net>
16323
16324         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
16325
16326 2007-12-31  Jim Meyering  <jim@meyering.net>
16327
16328         Avoid use of private FTS type name.
16329         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
16330
16331 2007-12-30  Karl Berry  <karl@gnu.org>
16332
16333         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
16334         work around defect in Texinfo and/or the standalone Info browser.
16335
16336 2007-12-30  Bruno Haible  <bruno@clisp.org>
16337
16338         Unify 5 copies of the KMP code.
16339         * lib/str-kmp.h: New file.
16340         * lib/c-strcasestr.c: Include str-kmp.h.
16341         (knuth_morris_pratt): Remove function.
16342         (c_strcasestr): Update.
16343         * lib/c-strstr.c: Include str-kmp.h.
16344         (knuth_morris_pratt): Remove function.
16345         (c_strcasestr): Update.
16346         * lib/mbscasestr.c: Include str-kmp.h.
16347         (knuth_morris_pratt_unibyte): Remove function.
16348         * lib/mbsstr.c: Include str-kmp.h.
16349         (knuth_morris_pratt_unibyte): Remove function.
16350         * lib/strcasestr.c: Include str-kmp.h.
16351         (knuth_morris_pratt): Remove function.
16352         (strcasestr): Update.
16353         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
16354         * modules/c-strstr (Files): Likewise.
16355         * modules/mbscasestr (Files): Likewise.
16356         * modules/mbsstr (Files): Likewise.
16357         * modules/strcasestr (Files): Likewise.
16358         Suggested by Paul Eggert.
16359
16360 2007-12-30  Bruno Haible  <bruno@clisp.org>
16361
16362         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
16363         defined.
16364
16365 2007-12-30  Bruno Haible  <bruno@clisp.org>
16366
16367         * lib/xmalloca.h: Include xalloc.h.
16368         (xnmalloca): New macro.
16369
16370 2007-12-30  Bruno Haible  <bruno@clisp.org>
16371
16372         * lib/malloca.h (nmalloca): New macro.
16373         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
16374         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
16375         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
16376         knuth_morris_pratt_multibyte): Likewise.
16377         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
16378         knuth_morris_pratt_multibyte): Likewise.
16379         * lib/memmem.c (knuth_morris_pratt): Likewise.
16380         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
16381
16382 2007-12-25  Bruno Haible  <bruno@clisp.org>
16383
16384         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
16385         * lib/glob.c: Don't include openat.h.
16386         (link_exists2_p): Add back the code that deals with the
16387         !GLOB_ALTDIRFUNC case.
16388         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
16389         let it do the filename concatenation.
16390         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
16391         * modules/glob (Depends-on): Remove openat.
16392
16393 2007-12-31  Bruno Haible  <bruno@clisp.org>
16394
16395         * modules/dirfd (License): Change to LGPLv2+.
16396         Approved by Jim Meyering.
16397
16398 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16399
16400         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
16401         when multiplying M by sizeof (size_t).
16402
16403 2007-12-10  Martin Lambers  <marlam@marlam.de>
16404
16405         Override getpagesize on mingw.
16406         * lib/getpagesize.c: New file.
16407         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
16408         * modules/getpagesize (Files): Add lib/getpagesize.c.
16409         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
16410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16411         REPLACE_GETPAGESIZE.
16412         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
16413
16414 2007-12-25  Bruno Haible  <bruno@clisp.org>
16415
16416         * modules/localcharset (Notice): New field.
16417         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
16418         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16419
16420 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16421             Bruno Haible  <bruno@clisp.org>
16422
16423         Avoid using the syntax symbol() in formatted documentation.
16424         * MODULES.html.sh (func_module): When replacing symbol() with a
16425         hyperlink, remove the parentheses. Show an error if some remain.
16426         Recognize and render the '...' syntax.
16427         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
16428         Rework. Add paragraph about GCC's inlining.
16429         * doc/alloca.texi: Likewise.
16430         * doc/error.texi: Remove parentheses from symbol reference.
16431         * doc/gnulib-intro.texi: Likewise.
16432         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
16433         * modules/fnmatch (Description): Reword to say "the ... function".
16434         * modules/full-read (Description): Likewise.
16435         * modules/full-write (Description): Likewise.
16436         * modules/safe-read (Description): Likewise.
16437         * modules/safe-write (Description): Likewise.
16438         * modules/strchrnul (Description): Likewise.
16439         * modules/trim (Description): Likewise.
16440         * modules/error (Description): Remove parentheses from symbol
16441         references.
16442         * modules/verror (Description): Likewise.
16443         Reported by Karl Berry.
16444
16445 2007-12-25  Bruno Haible  <bruno@clisp.org>
16446
16447         Fixup after 2007-10-16 commit.
16448         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
16449
16450 2007-12-24  Bruno Haible  <bruno@clisp.org>
16451
16452         Make --enable-relocatable work with DESTDIR.
16453         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
16454         to compute installdir from destprog.
16455         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
16456         also set the RELOC_DESTDIR variable.
16457         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16458
16459 2007-12-24  Bruno Haible  <bruno@clisp.org>
16460
16461         Fix link error due to xalloc_die().
16462         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
16463         of xreadlink.
16464         * lib/relocwrapper.c: Update comments.
16465         * build-aux/install-reloc: Remove xreadlink.c from file list.
16466         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
16467         xreadlink.c.
16468         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16469
16470 2007-12-24  Bruno Haible  <bruno@clisp.org>
16471
16472         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
16473         * lib/setenv.h: Remove file.
16474         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
16475         lib/setenv.h.
16476         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
16477         (Depends-on): Add stdlib.
16478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
16479         gl_FUNC_UNSETENV.
16480         (Include): Replace setenv.h with <stdlib.h>.
16481         * modules/unsetenv: New file.
16482         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
16483         * lib/unsetenv.c: Include <stdlib.h> first.
16484         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
16485         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
16486         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
16487         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
16488         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
16489         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
16490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
16491         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
16492         * doc/functions/unsetenv.texi: Update.
16493         * modules/xsetenv (Depends-on): Add unsetenv.
16494         * modules/getdate (Depends-on): Likewise.
16495         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
16496         * lib/xsetenv.c: Don't include setenv.h.
16497         * lib/getdate.y: Likewise.
16498         * lib/relocwrapper.c: Likewise.
16499         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
16500         (Depends-on): Add stdlib.
16501         * NEWS: Mention the changes.
16502         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
16503
16504 2007-12-23  Bruno Haible  <bruno@clisp.org>
16505
16506         * lib/memmem.c (memmem): Use lowercase variable names. Tab
16507         indentation.
16508
16509 2007-12-23  Bruno Haible  <bruno@clisp.org>
16510
16511         * lib/c-strcasestr.c: Add more comments.
16512         * lib/c-strstr.c: Likewise.
16513         * lib/mbscasestr.c: Likewise.
16514         * lib/mbsstr.c: Likewise.
16515         * lib/strcasestr.c: Likewise.
16516         * lib/memmem.c: Likewise.
16517
16518 2007-12-23  Bruno Haible  <bruno@clisp.org>
16519
16520         * tests/test-memmem.c: Include <string.h> first.
16521
16522 2007-12-22  Bruno Haible  <bruno@clisp.org>
16523
16524         * gnulib-tool (func_create_testdir): Change $auxdir while generating
16525         the contents of $testsbase.
16526         Reported by Ralf Wildenhues.
16527
16528 2007-12-22  Bruno Haible  <bruno@clisp.org>
16529
16530         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
16531         two variables local_ldadd_before, local_ldadd_last.
16532
16533 2007-12-20  Eric Blake  <ebb9@byu.net>
16534
16535         Work around circular library issue when cross-compiling.
16536         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
16537         that progname.o does not need to pull in rpl_memcmp.
16538
16539 2007-12-19  Eric Blake  <ebb9@byu.net>
16540
16541         Fix memmem to avoid O(n^2) worst-case complexity.
16542         * lib/memmem.c (knuth_morris_pratt): New function.
16543         (memmem): Use it if first few naive iterations fail.
16544         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
16545         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
16546         * modules/memchr (License): Likewise.
16547         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
16548         malloca.
16549         * tests/test-memmem.c: Rewrite, borrowing ideas from
16550         test-mbsstr1.c; the old version wouldn't even compile!
16551         * modules/memmem-tests: New file.
16552         * lib/string.in.h (rpl_memmem): Add declaration.
16553         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
16554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
16555         REPLACE_MEMMEM.
16556
16557 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16558
16559         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
16560         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
16561         before any system include files, and undef after them all.  This
16562         should fix a problem on VMS reported by John E. Malmberg in
16563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
16564
16565 2007-12-17  Eric Blake  <ebb9@byu.net>
16566
16567         Revert addition of verify, for BSD/OS.
16568         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
16569         can't handle large files, for the sake of obsolete platforms.
16570         * modules/fseeko (Depends-on): Remove verify.
16571         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
16572         * doc/functions/ftello.texi (ftello): Likewise.
16573         * doc/functions/fgetpos.texi (fgetpos): Likewise.
16574         Reported by Larry Jones.
16575
16576 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
16577
16578         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
16579         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
16580
16581 2007-12-17  Jim Meyering  <meyering@redhat.com>
16582
16583         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
16584         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
16585         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
16586         * modules/getcwd (Depends-on): Add openat.
16587         Reported by Petr Salinger.
16588
16589 2007-12-17  Bruno Haible  <bruno@clisp.org>
16590
16591         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
16592         avoid a segmentation fault of the configure test on x86_64 systems.
16593
16594 2007-12-15  Jim Meyering  <meyering@redhat.com>
16595
16596         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
16597
16598 2007-12-13  Eric Blake  <ebb9@byu.net>
16599
16600         Another fseek test.
16601         * tests/test-fseek.c (main): Also test ungetc handling.
16602         * tests/test-fseeko.c (main): Likewise.
16603         * modules/fseeko (Depends-on): Add verify.
16604         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
16605         large.
16606         Reported by Larry Jones.
16607
16608         Fix fseeko on mingw.
16609         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
16610         seek.
16611
16612         Beef up fseek tests.
16613         * tests/test-fseek.c (main): Also test eof handling.
16614         * tests/test-fseeko.c (main): Likewise.
16615         Reported by Larry Jones.
16616
16617 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
16618
16619         Fix fseeko on BSD-based platforms.
16620         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
16621         successful seek.
16622
16623 2007-12-12  Eric Blake  <ebb9@byu.net>
16624
16625         Allow circular dependency of separate libtests.a
16626         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
16627         when use_libtests.
16628
16629 2007-12-11  Eric Blake  <ebb9@byu.net>
16630
16631         Fix bug with -0.0L in previous patch.
16632         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
16633         * tests/test-isnan.c (main): Also test on zeroes.
16634         * tests/test-isnanf.c (main): Likewise.
16635         * tests/test-isnanl.h (main): Likewise.
16636
16637         Detect pseudo-denormals on x86 even when cross-compiling.
16638         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
16639         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
16640         invalid bit patterns that happen to satisfy ==.
16641
16642         Avoid link failures with separate libtests.a.
16643         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
16644         last, to satisfy circular dependencies.
16645
16646 2007-12-11  Eric Blake  <ebb9@byu.net>
16647         and Bruno Haible  <bruno@clisp.org>
16648
16649         Fix OpenBSD 4.0 <float.h> handling of long double.
16650         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
16651         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
16652         * doc/headers/float.texi (float.h): Document OpenBSD bug.
16653
16654 2007-12-11  Jim Meyering  <meyering@redhat.com>
16655
16656         * users.txt: Add libvirt.
16657
16658         Support versions of autoconf prior to 2.59c.
16659         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
16660         if it is not already defined.
16661
16662 2007-12-09  Bruno Haible  <bruno@clisp.org>
16663
16664         Let 'gnulib-tool --import' collect sources needed for the tests in
16665         tests/ rather than in lib/.
16666         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
16667         argument. If true, add rules to generate libtests.a, and put libtests.a
16668         into $(LDADD). Consider source files in subdirectories and set
16669         uses_subdirs.
16670         (func_emit_initmacro_start, func_emit_initmacro_end,
16671         func_emit_initmacro_done): Pass all arguments explicitly.
16672         (func_import): Determine two module lists main_modules,
16673         testsrelated_modules. Determine use_libtests. Determine two variables
16674         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
16675         instead of just sed_transform_lib_file. Determine two variables
16676         main_files and testsrelated_files. Compute 'files' as the union of
16677         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
16678         func_add_or_update. In the generated gnulib-comp.m4, collect the
16679         object files for tests/ in different variables than those for lib/.
16680         Substitute LIBTESTS_LIBDEPS.
16681         (func_create_testdir): Combine the uses_subdirs results from
16682         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
16683
16684 2007-12-09  Bruno Haible  <bruno@clisp.org>
16685
16686         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
16687         the build-aux directory.
16688
16689 2007-12-09  Bruno Haible  <bruno@clisp.org>
16690
16691         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
16692         introduced on 2006-09-09.
16693
16694 2007-12-07  Jim Meyering  <meyering@redhat.com>
16695
16696         Let these macros work also with autoconf-2.59.
16697         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
16698         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
16699         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16700
16701 2007-12-06  Jim Meyering  <meyering@redhat.com>
16702
16703         Avoid a configure-time syntax error in gl_FUNC_ACL.
16704         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
16705         function in each branch, before testing the cache variable.
16706
16707 2007-12-04  Eric Blake  <ebb9@byu.net>
16708
16709         Make scripts executable.
16710         * build-aux/config.guess: Add execute permissions.
16711         * build-aux/config.sub: Likewise.
16712         * build-aux/gendocs.sh: Likewise.
16713
16714         Fix frexp on mingw.
16715         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
16716         cross-compiling.
16717         * doc/functions/frexp.texi (frexp): Document the bug.
16718
16719         Make cygwin fseeko check more reliable.
16720         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
16721         version numbers, rather than unrelated feature check.
16722         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
16723         * doc/functions/ftello.texi (ftello): Likewise.
16724         Reported by Bruno Haible.
16725
16726         * m4/strerror.m4: Bump version number.
16727
16728 2007-12-03  Bruno Haible  <bruno@clisp.org>
16729
16730         * doc/functions/mprotect.texi: Mention the mingw problem.
16731
16732 2007-12-03  Eric Blake  <ebb9@byu.net>
16733
16734         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
16735         REPLACE_STRERROR is initialized before this macro.
16736
16737 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
16738
16739         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
16740         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
16741         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
16742         put -lsec in even for programs other than 'ls'.  This fixes a problem
16743         for gettext reported by Bruno Haible in
16744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
16745         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
16746         Add support for Solaris 10.  This isn't efficient, but should get the
16747         job done for now.
16748
16749 2007-12-03  James Youngman  <jay@gnu.org>
16750
16751         * doc/regexprops-generic.texi: change "an close-group" to "a
16752         close-group" and "illegal" to "not allowed".
16753
16754 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16755
16756         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
16757         pr_byname.h. Needed for the rare case when the maintainer has done
16758         "make maintainer-clean" in the source directory and then attempts a
16759         build outside the source directory.
16760         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
16761         scripts_byname.h.
16762
16763 2007-12-02  Martin Lambers <marlam@marlam.de>
16764             Bruno Haible  <bruno@clisp.org>
16765
16766         * lib/getpagesize.h: Remove file.
16767         * lib/unistd.in.h: Include declaration of getpagesize here.
16768         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
16769         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
16770         HAVE_SYS_PARAM_H.
16771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
16772         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16773         * modules/getpagesize (Files): Remove lib/getpagesize.h.
16774         (Depends-on): Add unistd.
16775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16776         (Include): Use <unistd.h> instead of getpagesize.h.
16777         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
16778         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
16779         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
16780         gl_GETPAGESIZE invocation, already handled by module dependency.
16781         * lib/pagealign_alloc.c: Don't include getpagesize.h.
16782
16783 2007-12-02  Bruno Haible  <bruno@clisp.org>
16784
16785         * modules/strings-tests: New file.
16786         * tests/test-strings.c: New file.
16787
16788         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
16789         * lib/strings.in.h: New file.
16790         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
16791         * m4/strings_h.m4: New file.
16792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
16793         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
16794         * modules/strings: New file.
16795         * modules/string (Makefile.am): Update.
16796         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
16797         Reported by Karl Berry.
16798
16799 2007-12-01  Eric Blake  <ebb9@byu.net>
16800
16801         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
16802         accomodate fix in cygwin 1.5.25.
16803
16804 2007-12-01  Jim Meyering  <meyering@redhat.com>
16805
16806         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
16807         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
16808         that would inhibit utf8-optimization of a regexp containing line-
16809         or buffer-anchors, e.g., `^', `$'.
16810
16811 2007-11-30  Bruno Haible  <bruno@clisp.org>
16812
16813         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
16814         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
16815         glthread_recursive_lock_init.
16816         * lib/lock.c (glthread_recursive_lock_init)
16817         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
16818         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16819
16820 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16821
16822         New function qset_acl, like set_acl but with syscall semantics.
16823         * lib/acl.h (qset_acl): New decl.
16824         * lib/acl.c (qset_acl): New function.
16825         (set_acl): Use new function.  Use more-consistent diagnostics.
16826
16827 2007-11-28  Jim Meyering  <meyering@redhat.com>
16828
16829         * modules/physmem (License): Change from GPL to LGPLv2+.
16830
16831 2007-11-26  Bruno Haible  <bruno@clisp.org>
16832
16833         * lib/vasnprintf.c (decode_long_double): Don't abort if the
16834         'long double' type has excess precision.
16835         Reported by Jim Meyering in
16836         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
16837
16838 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16839
16840         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
16841         Sync from <http://gnu.org/licenses>.
16842         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
16843         with license text from same location.
16844         * doc/maintain.texi, doc/standards.texi:  Sync from
16845         <http://savannah.gnu.org/projects/gnustandards>.
16846
16847 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
16848         and Jim Meyering  <meyering@redhat.com>
16849
16850         Adjust getdate' grammar to accept a slightly more regular language.
16851         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
16852         Before, the former was rejected.
16853         * lib/getdate.y (digits_to_date_time): New function, factored
16854         out of ...
16855         (number): ...here.  Just call digits_to_date_time.
16856         (hybrid): New non-terminal to handle an <unsigned number,
16857         signed relative offset> sequence consistently.
16858
16859 2007-11-18  Jim Meyering  <meyering@redhat.com>
16860
16861         Pull my changes from coreutils:
16862         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
16863         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
16864         use of $gnulib_tool_option_extras, so that it's separated from the
16865         preceding argument.
16866
16867         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
16868         * build-aux/bootstrap (cp_mark_as_generated): Create any required
16869         parent destination directories before copying a file into place.
16870
16871 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16872
16873         bootstrap: work also with 4-argument variant of AC_INIT
16874         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
16875
16876 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
16877
16878         Port test-getaddrinfo to Solaris.
16879         Problem reported by Bruno Haible in
16880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
16881         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
16882         explanation of setting 'hints'.
16883         Don't reject an implementation merely because it returns EAI_SERVICE.
16884         (EAI_SERVICE): Define to 0 if not defined.
16885
16886 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16887
16888         The license of gnu-make and posix-shell is now "GPLed build tool".
16889         * modules/gnu-make (License): Likewise.
16890         * modules/posix-shell (License): Likewise.
16891
16892         New module posix-shell, for determining a POSIX shell
16893         or perhaps something that is close enough to a POSIX shell.
16894         * m4/posix-shell.m4: New file.
16895         * modules/posix-shell: New file.
16896
16897         * MODULES.html.sh: Mention new module.
16898
16899         New module gnu-make, for determining whether we're using GNU Make.
16900         * m4/gnu-make.m4: New file.
16901         * modules/gnu-make: New file.
16902         * MODULES.html.sh: Mention new module.
16903
16904 2007-11-14  Jim Meyering  <meyering@redhat.com>
16905
16906         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
16907         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
16908         use this macro to create a function _definition_.
16909         Remove useless "#undef ARGMATCH_DIE".
16910
16911 2007-11-14  Bruno Haible  <bruno@clisp.org>
16912
16913         * lib/config.charset: Update for OpenBSD 4.1.
16914         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
16915
16916 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16917
16918         Document 64-bit #if problems in stdint.texi.
16919         * doc/headers/stdint.texi (stdint.h): Mention problems with
16920         64-bit-#if, and how to work around them.
16921
16922         Don't insist on 'long long int' support in the preprocessor.  It
16923         breaks too many things.  For example, PRIdMAX still uses a 'long
16924         long int' format with the latest Sun compiler, even though
16925         HAVE_LONG_LONG_INT isn't defined due to that compiler's
16926         preprocessor problem.  This causes the latest coreutils to dump
16927         core on Solaris 10 sparc with the Sun C compiler.
16928         Instead, fix the 2007-10-16 problem in a different way, by evaluating
16929         the troublesome expressions at configure-time, not at #if-time.
16930         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
16931         preprocessor.
16932         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
16933         compile-time C checks, done at 'configure'-time.
16934         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
16935         * modules/inttypes (Makefile): Substitute the new symbols that
16936         gl_INTTYPES_H now generates.
16937         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
16938
16939 2007-11-12  Bruno Haible  <bruno@clisp.org>
16940
16941         Tests for Unicode character classification functions.
16942
16943         * modules/unictype/bidicategory-byname-tests: New file.
16944         * modules/unictype/bidicategory-name-tests: New file.
16945         * modules/unictype/bidicategory-of-tests: New file.
16946         * modules/unictype/bidicategory-test-tests: New file.
16947         * modules/unictype/block-list-tests: New file.
16948         * modules/unictype/block-of-tests: New file.
16949         * modules/unictype/block-test-tests: New file.
16950         * modules/unictype/category-C-tests: New file.
16951         * modules/unictype/category-Cc-tests: New file.
16952         * modules/unictype/category-Cf-tests: New file.
16953         * modules/unictype/category-Cn-tests: New file.
16954         * modules/unictype/category-Co-tests: New file.
16955         * modules/unictype/category-Cs-tests: New file.
16956         * modules/unictype/category-L-tests: New file.
16957         * modules/unictype/category-Ll-tests: New file.
16958         * modules/unictype/category-Lm-tests: New file.
16959         * modules/unictype/category-Lo-tests: New file.
16960         * modules/unictype/category-Lt-tests: New file.
16961         * modules/unictype/category-Lu-tests: New file.
16962         * modules/unictype/category-M-tests: New file.
16963         * modules/unictype/category-Mc-tests: New file.
16964         * modules/unictype/category-Me-tests: New file.
16965         * modules/unictype/category-Mn-tests: New file.
16966         * modules/unictype/category-N-tests: New file.
16967         * modules/unictype/category-Nd-tests: New file.
16968         * modules/unictype/category-Nl-tests: New file.
16969         * modules/unictype/category-No-tests: New file.
16970         * modules/unictype/category-P-tests: New file.
16971         * modules/unictype/category-Pc-tests: New file.
16972         * modules/unictype/category-Pd-tests: New file.
16973         * modules/unictype/category-Pe-tests: New file.
16974         * modules/unictype/category-Pf-tests: New file.
16975         * modules/unictype/category-Pi-tests: New file.
16976         * modules/unictype/category-Po-tests: New file.
16977         * modules/unictype/category-Ps-tests: New file.
16978         * modules/unictype/category-S-tests: New file.
16979         * modules/unictype/category-Sc-tests: New file.
16980         * modules/unictype/category-Sk-tests: New file.
16981         * modules/unictype/category-Sm-tests: New file.
16982         * modules/unictype/category-So-tests: New file.
16983         * modules/unictype/category-Z-tests: New file.
16984         * modules/unictype/category-Zl-tests: New file.
16985         * modules/unictype/category-Zp-tests: New file.
16986         * modules/unictype/category-Zs-tests: New file.
16987         * modules/unictype/category-and-not-tests: New file.
16988         * modules/unictype/category-and-tests: New file.
16989         * modules/unictype/category-byname-tests: New file.
16990         * modules/unictype/category-name-tests: New file.
16991         * modules/unictype/category-none-tests: New file.
16992         * modules/unictype/category-of-tests: New file.
16993         * modules/unictype/category-or-tests: New file.
16994         * modules/unictype/category-test-withtable-tests: New file.
16995         * modules/unictype/combining-class-tests: New file.
16996         * modules/unictype/ctype-alnum-tests: New file.
16997         * modules/unictype/ctype-alpha-tests: New file.
16998         * modules/unictype/ctype-blank-tests: New file.
16999         * modules/unictype/ctype-cntrl-tests: New file.
17000         * modules/unictype/ctype-digit-tests: New file.
17001         * modules/unictype/ctype-graph-tests: New file.
17002         * modules/unictype/ctype-lower-tests: New file.
17003         * modules/unictype/ctype-print-tests: New file.
17004         * modules/unictype/ctype-punct-tests: New file.
17005         * modules/unictype/ctype-space-tests: New file.
17006         * modules/unictype/ctype-upper-tests: New file.
17007         * modules/unictype/ctype-xdigit-tests: New file.
17008         * modules/unictype/decimal-digit-tests: New file.
17009         * modules/unictype/digit-tests: New file.
17010         * modules/unictype/mirror-tests: New file.
17011         * modules/unictype/numeric-tests: New file.
17012         * modules/unictype/property-alphabetic-tests: New file.
17013         * modules/unictype/property-ascii-hex-digit-tests: New file.
17014         * modules/unictype/property-bidi-arabic-digit-tests: New file.
17015         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
17016         * modules/unictype/property-bidi-block-separator-tests: New file.
17017         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
17018         * modules/unictype/property-bidi-common-separator-tests: New file.
17019         * modules/unictype/property-bidi-control-tests: New file.
17020         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
17021         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
17022         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
17023         * modules/unictype/property-bidi-european-digit-tests: New file.
17024         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
17025         * modules/unictype/property-bidi-left-to-right-tests: New file.
17026         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
17027         * modules/unictype/property-bidi-other-neutral-tests: New file.
17028         * modules/unictype/property-bidi-pdf-tests: New file.
17029         * modules/unictype/property-bidi-segment-separator-tests: New file.
17030         * modules/unictype/property-bidi-whitespace-tests: New file.
17031         * modules/unictype/property-byname-tests: New file.
17032         * modules/unictype/property-combining-tests: New file.
17033         * modules/unictype/property-composite-tests: New file.
17034         * modules/unictype/property-currency-symbol-tests: New file.
17035         * modules/unictype/property-dash-tests: New file.
17036         * modules/unictype/property-decimal-digit-tests: New file.
17037         * modules/unictype/property-default-ignorable-code-point-tests: New file.
17038         * modules/unictype/property-deprecated-tests: New file.
17039         * modules/unictype/property-diacritic-tests: New file.
17040         * modules/unictype/property-extender-tests: New file.
17041         * modules/unictype/property-format-control-tests: New file.
17042         * modules/unictype/property-grapheme-base-tests: New file.
17043         * modules/unictype/property-grapheme-extend-tests: New file.
17044         * modules/unictype/property-grapheme-link-tests: New file.
17045         * modules/unictype/property-hex-digit-tests: New file.
17046         * modules/unictype/property-hyphen-tests: New file.
17047         * modules/unictype/property-id-continue-tests: New file.
17048         * modules/unictype/property-id-start-tests: New file.
17049         * modules/unictype/property-ideographic-tests: New file.
17050         * modules/unictype/property-ids-binary-operator-tests: New file.
17051         * modules/unictype/property-ids-trinary-operator-tests: New file.
17052         * modules/unictype/property-ignorable-control-tests: New file.
17053         * modules/unictype/property-iso-control-tests: New file.
17054         * modules/unictype/property-join-control-tests: New file.
17055         * modules/unictype/property-left-of-pair-tests: New file.
17056         * modules/unictype/property-line-separator-tests: New file.
17057         * modules/unictype/property-logical-order-exception-tests: New file.
17058         * modules/unictype/property-lowercase-tests: New file.
17059         * modules/unictype/property-math-tests: New file.
17060         * modules/unictype/property-non-break-tests: New file.
17061         * modules/unictype/property-not-a-character-tests: New file.
17062         * modules/unictype/property-numeric-tests: New file.
17063         * modules/unictype/property-other-alphabetic-tests: New file.
17064         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
17065         * modules/unictype/property-other-grapheme-extend-tests: New file.
17066         * modules/unictype/property-other-id-continue-tests: New file.
17067         * modules/unictype/property-other-id-start-tests: New file.
17068         * modules/unictype/property-other-lowercase-tests: New file.
17069         * modules/unictype/property-other-math-tests: New file.
17070         * modules/unictype/property-other-uppercase-tests: New file.
17071         * modules/unictype/property-paired-punctuation-tests: New file.
17072         * modules/unictype/property-paragraph-separator-tests: New file.
17073         * modules/unictype/property-pattern-syntax-tests: New file.
17074         * modules/unictype/property-pattern-white-space-tests: New file.
17075         * modules/unictype/property-private-use-tests: New file.
17076         * modules/unictype/property-punctuation-tests: New file.
17077         * modules/unictype/property-quotation-mark-tests: New file.
17078         * modules/unictype/property-radical-tests: New file.
17079         * modules/unictype/property-sentence-terminal-tests: New file.
17080         * modules/unictype/property-soft-dotted-tests: New file.
17081         * modules/unictype/property-space-tests: New file.
17082         * modules/unictype/property-terminal-punctuation-tests: New file.
17083         * modules/unictype/property-test-tests: New file.
17084         * modules/unictype/property-titlecase-tests: New file.
17085         * modules/unictype/property-unassigned-code-value-tests: New file.
17086         * modules/unictype/property-unified-ideograph-tests: New file.
17087         * modules/unictype/property-uppercase-tests: New file.
17088         * modules/unictype/property-variation-selector-tests: New file.
17089         * modules/unictype/property-white-space-tests: New file.
17090         * modules/unictype/property-xid-continue-tests: New file.
17091         * modules/unictype/property-xid-start-tests: New file.
17092         * modules/unictype/property-zero-width-tests: New file.
17093         * modules/unictype/scripts-tests: New file.
17094         * modules/unictype/syntax-c-ident-tests: New file.
17095         * modules/unictype/syntax-c-whitespace-tests: New file.
17096         * modules/unictype/syntax-java-ident-tests: New file.
17097         * modules/unictype/syntax-java-whitespace-tests: New file.
17098         * tests/unictype/test-bidi_byname.c: New file.
17099         * tests/unictype/test-bidi_name.c: New file.
17100         * tests/unictype/test-bidi_of.c: New file.
17101         * tests/unictype/test-bidi_test.c: New file.
17102         * tests/unictype/test-block_list.c: New file.
17103         * tests/unictype/test-block_of.c: New file.
17104         * tests/unictype/test-block_test.c: New file.
17105         * tests/unictype/test-categ_and.c: New file.
17106         * tests/unictype/test-categ_and_not.c: New file.
17107         * tests/unictype/test-categ_byname.c: New file.
17108         * tests/unictype/test-categ_name.c: New file.
17109         * tests/unictype/test-categ_none.c: New file.
17110         * tests/unictype/test-categ_of.c: New file.
17111         * tests/unictype/test-categ_or.c: New file.
17112         * tests/unictype/test-categ_test_withtable.c: New file.
17113         * tests/unictype/test-combining.c: New file.
17114         * tests/unictype/test-decdigit.c: New file.
17115         * tests/unictype/test-digit.c: New file.
17116         * tests/unictype/test-mirror.c: New file.
17117         * tests/unictype/test-numeric.c: New file.
17118         * tests/unictype/test-pr_byname.c: New file.
17119         * tests/unictype/test-pr_test.c: New file.
17120         * tests/unictype/test-predicate-part1.h: New file.
17121         * tests/unictype/test-predicate-part2.h: New file.
17122         * tests/unictype/test-scripts.c: New file.
17123         * tests/unictype/test-sy_c_ident.c: New file.
17124         * tests/unictype/test-sy_java_ident.c: New file.
17125
17126         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
17127         for Unicode 5.0.0.
17128         * tests/unictype/test-categ_Cc.c: Likewise.
17129         * tests/unictype/test-categ_Cf.c: Likewise.
17130         * tests/unictype/test-categ_Cn.c: Likewise.
17131         * tests/unictype/test-categ_Co.c: Likewise.
17132         * tests/unictype/test-categ_Cs.c: Likewise.
17133         * tests/unictype/test-categ_L.c: Likewise.
17134         * tests/unictype/test-categ_Ll.c: Likewise.
17135         * tests/unictype/test-categ_Lm.c: Likewise.
17136         * tests/unictype/test-categ_Lo.c: Likewise.
17137         * tests/unictype/test-categ_Lt.c: Likewise.
17138         * tests/unictype/test-categ_Lu.c: Likewise.
17139         * tests/unictype/test-categ_M.c: Likewise.
17140         * tests/unictype/test-categ_Mc.c: Likewise.
17141         * tests/unictype/test-categ_Me.c: Likewise.
17142         * tests/unictype/test-categ_Mn.c: Likewise.
17143         * tests/unictype/test-categ_N.c: Likewise.
17144         * tests/unictype/test-categ_Nd.c: Likewise.
17145         * tests/unictype/test-categ_Nl.c: Likewise.
17146         * tests/unictype/test-categ_No.c: Likewise.
17147         * tests/unictype/test-categ_P.c: Likewise.
17148         * tests/unictype/test-categ_Pc.c: Likewise.
17149         * tests/unictype/test-categ_Pd.c: Likewise.
17150         * tests/unictype/test-categ_Pe.c: Likewise.
17151         * tests/unictype/test-categ_Pf.c: Likewise.
17152         * tests/unictype/test-categ_Pi.c: Likewise.
17153         * tests/unictype/test-categ_Po.c: Likewise.
17154         * tests/unictype/test-categ_Ps.c: Likewise.
17155         * tests/unictype/test-categ_S.c: Likewise.
17156         * tests/unictype/test-categ_Sc.c: Likewise.
17157         * tests/unictype/test-categ_Sk.c: Likewise.
17158         * tests/unictype/test-categ_Sm.c: Likewise.
17159         * tests/unictype/test-categ_So.c: Likewise.
17160         * tests/unictype/test-categ_Z.c: Likewise.
17161         * tests/unictype/test-categ_Zl.c: Likewise.
17162         * tests/unictype/test-categ_Zp.c: Likewise.
17163         * tests/unictype/test-categ_Zs.c: Likewise.
17164         * tests/unictype/test-ctype_alnum.c: Likewise.
17165         * tests/unictype/test-ctype_alpha.c: Likewise.
17166         * tests/unictype/test-ctype_blank.c: Likewise.
17167         * tests/unictype/test-ctype_cntrl.c: Likewise.
17168         * tests/unictype/test-ctype_digit.c: Likewise.
17169         * tests/unictype/test-ctype_graph.c: Likewise.
17170         * tests/unictype/test-ctype_lower.c: Likewise.
17171         * tests/unictype/test-ctype_print.c: Likewise.
17172         * tests/unictype/test-ctype_punct.c: Likewise.
17173         * tests/unictype/test-ctype_space.c: Likewise.
17174         * tests/unictype/test-ctype_upper.c: Likewise.
17175         * tests/unictype/test-ctype_xdigit.c: Likewise.
17176         * tests/unictype/test-decdigit.h: Likewise.
17177         * tests/unictype/test-digit.h: Likewise.
17178         * tests/unictype/test-numeric.h: Likewise.
17179         * tests/unictype/test-pr_alphabetic.c: Likewise.
17180         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
17181         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17182         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17183         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
17184         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17185         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
17186         * tests/unictype/test-pr_bidi_control.c: Likewise.
17187         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
17188         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
17189         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17190         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17191         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17192         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17193         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17194         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17195         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
17196         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
17197         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
17198         * tests/unictype/test-pr_combining.c: Likewise.
17199         * tests/unictype/test-pr_composite.c: Likewise.
17200         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17201         * tests/unictype/test-pr_dash.c: Likewise.
17202         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17203         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
17204         * tests/unictype/test-pr_deprecated.c: Likewise.
17205         * tests/unictype/test-pr_diacritic.c: Likewise.
17206         * tests/unictype/test-pr_extender.c: Likewise.
17207         * tests/unictype/test-pr_format_control.c: Likewise.
17208         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17209         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17210         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17211         * tests/unictype/test-pr_hex_digit.c: Likewise.
17212         * tests/unictype/test-pr_hyphen.c: Likewise.
17213         * tests/unictype/test-pr_id_continue.c: Likewise.
17214         * tests/unictype/test-pr_id_start.c: Likewise.
17215         * tests/unictype/test-pr_ideographic.c: Likewise.
17216         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
17217         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
17218         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17219         * tests/unictype/test-pr_iso_control.c: Likewise.
17220         * tests/unictype/test-pr_join_control.c: Likewise.
17221         * tests/unictype/test-pr_left_of_pair.c: Likewise.
17222         * tests/unictype/test-pr_line_separator.c: Likewise.
17223         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17224         * tests/unictype/test-pr_lowercase.c: Likewise.
17225         * tests/unictype/test-pr_math.c: Likewise.
17226         * tests/unictype/test-pr_non_break.c: Likewise.
17227         * tests/unictype/test-pr_not_a_character.c: Likewise.
17228         * tests/unictype/test-pr_numeric.c: Likewise.
17229         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17230         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
17231         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
17232         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17233         * tests/unictype/test-pr_other_id_start.c: Likewise.
17234         * tests/unictype/test-pr_other_lowercase.c: Likewise.
17235         * tests/unictype/test-pr_other_math.c: Likewise.
17236         * tests/unictype/test-pr_other_uppercase.c: Likewise.
17237         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
17238         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
17239         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
17240         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
17241         * tests/unictype/test-pr_private_use.c: Likewise.
17242         * tests/unictype/test-pr_punctuation.c: Likewise.
17243         * tests/unictype/test-pr_quotation_mark.c: Likewise.
17244         * tests/unictype/test-pr_radical.c: Likewise.
17245         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17246         * tests/unictype/test-pr_soft_dotted.c: Likewise.
17247         * tests/unictype/test-pr_space.c: Likewise.
17248         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17249         * tests/unictype/test-pr_titlecase.c: Likewise.
17250         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17251         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17252         * tests/unictype/test-pr_uppercase.c: Likewise.
17253         * tests/unictype/test-pr_variation_selector.c: Likewise.
17254         * tests/unictype/test-pr_white_space.c: Likewise.
17255         * tests/unictype/test-pr_xid_continue.c: Likewise.
17256         * tests/unictype/test-pr_xid_start.c: Likewise.
17257         * tests/unictype/test-pr_zero_width.c: Likewise.
17258         * tests/unictype/test-sy_c_whitespace.c: Likewise.
17259         * tests/unictype/test-sy_java_whitespace.c: Likewise.
17260
17261 2007-11-12  Bruno Haible  <bruno@clisp.org>
17262
17263         Unicode character classification functions.
17264         * lib/unictype.h: New file.
17265         * modules/unictype/base: New file.
17266         * modules/unictype/category-L: New file.
17267         * modules/unictype/category-Lu: New file.
17268         * modules/unictype/category-Ll: New file.
17269         * modules/unictype/category-Lt: New file.
17270         * modules/unictype/category-Lm: New file.
17271         * modules/unictype/category-Lo: New file.
17272         * modules/unictype/category-M: New file.
17273         * modules/unictype/category-Mn: New file.
17274         * modules/unictype/category-Mc: New file.
17275         * modules/unictype/category-Me: New file.
17276         * modules/unictype/category-N: New file.
17277         * modules/unictype/category-Nd: New file.
17278         * modules/unictype/category-Nl: New file.
17279         * modules/unictype/category-No: New file.
17280         * modules/unictype/category-P: New file.
17281         * modules/unictype/category-Pc: New file.
17282         * modules/unictype/category-Pd: New file.
17283         * modules/unictype/category-Ps: New file.
17284         * modules/unictype/category-Pe: New file.
17285         * modules/unictype/category-Pi: New file.
17286         * modules/unictype/category-Pf: New file.
17287         * modules/unictype/category-Po: New file.
17288         * modules/unictype/category-S: New file.
17289         * modules/unictype/category-Sm: New file.
17290         * modules/unictype/category-Sc: New file.
17291         * modules/unictype/category-Sk: New file.
17292         * modules/unictype/category-So: New file.
17293         * modules/unictype/category-Z: New file.
17294         * modules/unictype/category-Zs: New file.
17295         * modules/unictype/category-Zl: New file.
17296         * modules/unictype/category-Zp: New file.
17297         * modules/unictype/category-C: New file.
17298         * modules/unictype/category-Cc: New file.
17299         * modules/unictype/category-Cf: New file.
17300         * modules/unictype/category-Cs: New file.
17301         * modules/unictype/category-Co: New file.
17302         * modules/unictype/category-Cn: New file.
17303         * modules/unictype/category-or: New file.
17304         * modules/unictype/category-of: New file.
17305         * modules/unictype/category-test: New file.
17306         * modules/unictype/category-test-withtable: New file.
17307         * modules/unictype/category-byname: New file.
17308         * modules/unictype/category-none: New file.
17309         * modules/unictype/category-and: New file.
17310         * modules/unictype/category-and-not: New file.
17311         * modules/unictype/category-name: New file.
17312         * modules/unictype/combining-class: New file.
17313         * modules/unictype/category-all: New file.
17314         * modules/unictype/bidicategory-all: New file.
17315         * modules/unictype/bidicategory-byname: New file.
17316         * modules/unictype/bidicategory-name: New file.
17317         * modules/unictype/bidicategory-of: New file.
17318         * modules/unictype/bidicategory-test: New file.
17319         * modules/unictype/decimal-digit: New file.
17320         * modules/unictype/digit: New file.
17321         * modules/unictype/numeric: New file.
17322         * modules/unictype/mirror: New file.
17323         * modules/unictype/property-white-space: New file.
17324         * modules/unictype/property-alphabetic: New file.
17325         * modules/unictype/property-other-alphabetic: New file.
17326         * modules/unictype/property-not-a-character: New file.
17327         * modules/unictype/property-default-ignorable-code-point: New file.
17328         * modules/unictype/property-other-default-ignorable-code-point: New
17329         file.
17330         * modules/unictype/property-deprecated: New file.
17331         * modules/unictype/property-logical-order-exception: New file.
17332         * modules/unictype/property-variation-selector: New file.
17333         * modules/unictype/property-private-use: New file.
17334         * modules/unictype/property-unassigned-code-value: New file.
17335         * modules/unictype/property-uppercase: New file.
17336         * modules/unictype/property-other-uppercase: New file.
17337         * modules/unictype/property-lowercase: New file.
17338         * modules/unictype/property-other-lowercase: New file.
17339         * modules/unictype/property-titlecase: New file.
17340         * modules/unictype/property-soft-dotted: New file.
17341         * modules/unictype/property-id-start: New file.
17342         * modules/unictype/property-other-id-start: New file.
17343         * modules/unictype/property-id-continue: New file.
17344         * modules/unictype/property-other-id-continue: New file.
17345         * modules/unictype/property-xid-start: New file.
17346         * modules/unictype/property-xid-continue: New file.
17347         * modules/unictype/property-pattern-white-space: New file.
17348         * modules/unictype/property-pattern-syntax: New file.
17349         * modules/unictype/property-join-control: New file.
17350         * modules/unictype/property-grapheme-base: New file.
17351         * modules/unictype/property-grapheme-extend: New file.
17352         * modules/unictype/property-other-grapheme-extend: New file.
17353         * modules/unictype/property-grapheme-link: New file.
17354         * modules/unictype/property-bidi-control: New file.
17355         * modules/unictype/property-bidi-left-to-right: New file.
17356         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
17357         * modules/unictype/property-bidi-arabic-right-to-left: New file.
17358         * modules/unictype/property-bidi-european-digit: New file.
17359         * modules/unictype/property-bidi-eur-num-separator: New file.
17360         * modules/unictype/property-bidi-eur-num-terminator: New file.
17361         * modules/unictype/property-bidi-arabic-digit: New file.
17362         * modules/unictype/property-bidi-common-separator: New file.
17363         * modules/unictype/property-bidi-block-separator: New file.
17364         * modules/unictype/property-bidi-segment-separator: New file.
17365         * modules/unictype/property-bidi-whitespace: New file.
17366         * modules/unictype/property-bidi-non-spacing-mark: New file.
17367         * modules/unictype/property-bidi-boundary-neutral: New file.
17368         * modules/unictype/property-bidi-pdf: New file.
17369         * modules/unictype/property-bidi-embedding-or-override: New file.
17370         * modules/unictype/property-bidi-other-neutral: New file.
17371         * modules/unictype/property-hex-digit: New file.
17372         * modules/unictype/property-ascii-hex-digit: New file.
17373         * modules/unictype/property-ideographic: New file.
17374         * modules/unictype/property-unified-ideograph: New file.
17375         * modules/unictype/property-radical: New file.
17376         * modules/unictype/property-ids-binary-operator: New file.
17377         * modules/unictype/property-ids-trinary-operator: New file.
17378         * modules/unictype/property-zero-width: New file.
17379         * modules/unictype/property-space: New file.
17380         * modules/unictype/property-non-break: New file.
17381         * modules/unictype/property-iso-control: New file.
17382         * modules/unictype/property-format-control: New file.
17383         * modules/unictype/property-dash: New file.
17384         * modules/unictype/property-hyphen: New file.
17385         * modules/unictype/property-punctuation: New file.
17386         * modules/unictype/property-line-separator: New file.
17387         * modules/unictype/property-paragraph-separator: New file.
17388         * modules/unictype/property-quotation-mark: New file.
17389         * modules/unictype/property-sentence-terminal: New file.
17390         * modules/unictype/property-terminal-punctuation: New file.
17391         * modules/unictype/property-currency-symbol: New file.
17392         * modules/unictype/property-math: New file.
17393         * modules/unictype/property-other-math: New file.
17394         * modules/unictype/property-paired-punctuation: New file.
17395         * modules/unictype/property-left-of-pair: New file.
17396         * modules/unictype/property-combining: New file.
17397         * modules/unictype/property-composite: New file.
17398         * modules/unictype/property-decimal-digit: New file.
17399         * modules/unictype/property-numeric: New file.
17400         * modules/unictype/property-diacritic: New file.
17401         * modules/unictype/property-extender: New file.
17402         * modules/unictype/property-ignorable-control: New file.
17403         * modules/unictype/property-test: New file.
17404         * modules/unictype/property-byname: New file.
17405         * modules/unictype/property-all: New file.
17406         * modules/unictype/scripts: New file.
17407         * modules/unictype/scripts-all: New file.
17408         * modules/unictype/block-of: New file.
17409         * modules/unictype/block-test: New file.
17410         * modules/unictype/block-list: New file.
17411         * modules/unictype/block-all: New file.
17412         * modules/unictype/syntax-c-whitespace: New file.
17413         * modules/unictype/syntax-java-whitespace: New file.
17414         * modules/unictype/syntax-c-ident: New file.
17415         * modules/unictype/syntax-java-ident: New file.
17416         * modules/unictype/ctype-alnum: New file.
17417         * modules/unictype/ctype-alpha: New file.
17418         * modules/unictype/ctype-cntrl: New file.
17419         * modules/unictype/ctype-digit: New file.
17420         * modules/unictype/ctype-graph: New file.
17421         * modules/unictype/ctype-lower: New file.
17422         * modules/unictype/ctype-print: New file.
17423         * modules/unictype/ctype-punct: New file.
17424         * modules/unictype/ctype-space: New file.
17425         * modules/unictype/ctype-upper: New file.
17426         * modules/unictype/ctype-xdigit: New file.
17427         * modules/unictype/ctype-blank: New file.
17428         * lib/unictype/bidi_byname.c: New file.
17429         * lib/unictype/bidi_name.c: New file.
17430         * lib/unictype/bidi_of.c: New file.
17431         * lib/unictype/bidi_test.c: New file.
17432         * lib/unictype/bitmap.h: New file.
17433         * lib/unictype/block_test.c: New file.
17434         * lib/unictype/blocks.c: New file.
17435         * lib/unictype/categ_C.c: New file.
17436         * lib/unictype/categ_Cc.c: New file.
17437         * lib/unictype/categ_Cf.c: New file.
17438         * lib/unictype/categ_Cn.c: New file.
17439         * lib/unictype/categ_Co.c: New file.
17440         * lib/unictype/categ_Cs.c: New file.
17441         * lib/unictype/categ_L.c: New file.
17442         * lib/unictype/categ_Ll.c: New file.
17443         * lib/unictype/categ_Lm.c: New file.
17444         * lib/unictype/categ_Lo.c: New file.
17445         * lib/unictype/categ_Lt.c: New file.
17446         * lib/unictype/categ_Lu.c: New file.
17447         * lib/unictype/categ_M.c: New file.
17448         * lib/unictype/categ_Mc.c: New file.
17449         * lib/unictype/categ_Me.c: New file.
17450         * lib/unictype/categ_Mn.c: New file.
17451         * lib/unictype/categ_N.c: New file.
17452         * lib/unictype/categ_Nd.c: New file.
17453         * lib/unictype/categ_Nl.c: New file.
17454         * lib/unictype/categ_No.c: New file.
17455         * lib/unictype/categ_P.c: New file.
17456         * lib/unictype/categ_Pc.c: New file.
17457         * lib/unictype/categ_Pd.c: New file.
17458         * lib/unictype/categ_Pe.c: New file.
17459         * lib/unictype/categ_Pf.c: New file.
17460         * lib/unictype/categ_Pi.c: New file.
17461         * lib/unictype/categ_Po.c: New file.
17462         * lib/unictype/categ_Ps.c: New file.
17463         * lib/unictype/categ_S.c: New file.
17464         * lib/unictype/categ_Sc.c: New file.
17465         * lib/unictype/categ_Sk.c: New file.
17466         * lib/unictype/categ_Sm.c: New file.
17467         * lib/unictype/categ_So.c: New file.
17468         * lib/unictype/categ_Z.c: New file.
17469         * lib/unictype/categ_Zl.c: New file.
17470         * lib/unictype/categ_Zp.c: New file.
17471         * lib/unictype/categ_Zs.c: New file.
17472         * lib/unictype/categ_and.c: New file.
17473         * lib/unictype/categ_and_not.c: New file.
17474         * lib/unictype/categ_byname.c: New file.
17475         * lib/unictype/categ_name.c: New file.
17476         * lib/unictype/categ_none.c: New file.
17477         * lib/unictype/categ_of.c: New file.
17478         * lib/unictype/categ_or.c: New file.
17479         * lib/unictype/categ_test.c: New file.
17480         * lib/unictype/combining.c: New file.
17481         * lib/unictype/ctype_alnum.c: New file.
17482         * lib/unictype/ctype_alpha.c: New file.
17483         * lib/unictype/ctype_blank.c: New file.
17484         * lib/unictype/ctype_cntrl.c: New file.
17485         * lib/unictype/ctype_digit.c: New file.
17486         * lib/unictype/ctype_graph.c: New file.
17487         * lib/unictype/ctype_lower.c: New file.
17488         * lib/unictype/ctype_print.c: New file.
17489         * lib/unictype/ctype_punct.c: New file.
17490         * lib/unictype/ctype_space.c: New file.
17491         * lib/unictype/ctype_upper.c: New file.
17492         * lib/unictype/ctype_xdigit.c: New file.
17493         * lib/unictype/decdigit.c: New file.
17494         * lib/unictype/digit.c: New file.
17495         * lib/unictype/identsyntaxmap.h: New file.
17496         * lib/unictype/mirror.c: New file.
17497         * lib/unictype/numeric.c: New file.
17498         * lib/unictype/pr_alphabetic.c: New file.
17499         * lib/unictype/pr_ascii_hex_digit.c: New file.
17500         * lib/unictype/pr_bidi_arabic_digit.c: New file.
17501         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
17502         * lib/unictype/pr_bidi_block_separator.c: New file.
17503         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
17504         * lib/unictype/pr_bidi_common_separator.c: New file.
17505         * lib/unictype/pr_bidi_control.c: New file.
17506         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
17507         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
17508         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
17509         * lib/unictype/pr_bidi_european_digit.c: New file.
17510         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
17511         * lib/unictype/pr_bidi_left_to_right.c: New file.
17512         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
17513         * lib/unictype/pr_bidi_other_neutral.c: New file.
17514         * lib/unictype/pr_bidi_pdf.c: New file.
17515         * lib/unictype/pr_bidi_segment_separator.c: New file.
17516         * lib/unictype/pr_bidi_whitespace.c: New file.
17517         * lib/unictype/pr_byname.c: New file.
17518         * lib/unictype/pr_byname.gperf: New file.
17519         * lib/unictype/pr_combining.c: New file.
17520         * lib/unictype/pr_composite.c: New file.
17521         * lib/unictype/pr_currency_symbol.c: New file.
17522         * lib/unictype/pr_dash.c: New file.
17523         * lib/unictype/pr_decimal_digit.c: New file.
17524         * lib/unictype/pr_default_ignorable_code_point.c: New file.
17525         * lib/unictype/pr_deprecated.c: New file.
17526         * lib/unictype/pr_diacritic.c: New file.
17527         * lib/unictype/pr_extender.c: New file.
17528         * lib/unictype/pr_format_control.c: New file.
17529         * lib/unictype/pr_grapheme_base.c: New file.
17530         * lib/unictype/pr_grapheme_extend.c: New file.
17531         * lib/unictype/pr_grapheme_link.c: New file.
17532         * lib/unictype/pr_hex_digit.c: New file.
17533         * lib/unictype/pr_hyphen.c: New file.
17534         * lib/unictype/pr_id_continue.c: New file.
17535         * lib/unictype/pr_id_start.c: New file.
17536         * lib/unictype/pr_ideographic.c: New file.
17537         * lib/unictype/pr_ids_binary_operator.c: New file.
17538         * lib/unictype/pr_ids_trinary_operator.c: New file.
17539         * lib/unictype/pr_ignorable_control.c: New file.
17540         * lib/unictype/pr_iso_control.c: New file.
17541         * lib/unictype/pr_join_control.c: New file.
17542         * lib/unictype/pr_left_of_pair.c: New file.
17543         * lib/unictype/pr_line_separator.c: New file.
17544         * lib/unictype/pr_logical_order_exception.c: New file.
17545         * lib/unictype/pr_lowercase.c: New file.
17546         * lib/unictype/pr_math.c: New file.
17547         * lib/unictype/pr_non_break.c: New file.
17548         * lib/unictype/pr_not_a_character.c: New file.
17549         * lib/unictype/pr_numeric.c: New file.
17550         * lib/unictype/pr_other_alphabetic.c: New file.
17551         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
17552         * lib/unictype/pr_other_grapheme_extend.c: New file.
17553         * lib/unictype/pr_other_id_continue.c: New file.
17554         * lib/unictype/pr_other_id_start.c: New file.
17555         * lib/unictype/pr_other_lowercase.c: New file.
17556         * lib/unictype/pr_other_math.c: New file.
17557         * lib/unictype/pr_other_uppercase.c: New file.
17558         * lib/unictype/pr_paired_punctuation.c: New file.
17559         * lib/unictype/pr_paragraph_separator.c: New file.
17560         * lib/unictype/pr_pattern_syntax.c: New file.
17561         * lib/unictype/pr_pattern_white_space.c: New file.
17562         * lib/unictype/pr_private_use.c: New file.
17563         * lib/unictype/pr_punctuation.c: New file.
17564         * lib/unictype/pr_quotation_mark.c: New file.
17565         * lib/unictype/pr_radical.c: New file.
17566         * lib/unictype/pr_sentence_terminal.c: New file.
17567         * lib/unictype/pr_soft_dotted.c: New file.
17568         * lib/unictype/pr_space.c: New file.
17569         * lib/unictype/pr_terminal_punctuation.c: New file.
17570         * lib/unictype/pr_test.c: New file.
17571         * lib/unictype/pr_titlecase.c: New file.
17572         * lib/unictype/pr_unassigned_code_value.c: New file.
17573         * lib/unictype/pr_unified_ideograph.c: New file.
17574         * lib/unictype/pr_uppercase.c: New file.
17575         * lib/unictype/pr_variation_selector.c: New file.
17576         * lib/unictype/pr_white_space.c: New file.
17577         * lib/unictype/pr_xid_continue.c: New file.
17578         * lib/unictype/pr_xid_start.c: New file.
17579         * lib/unictype/pr_zero_width.c: New file.
17580         * lib/unictype/scripts.c: New file.
17581         * lib/unictype/sy_c_ident.c: New file.
17582         * lib/unictype/sy_c_whitespace.c: New file.
17583         * lib/unictype/sy_java_ident.c: New file.
17584         * lib/unictype/sy_java_whitespace.c: New file.
17585
17586         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
17587         Unicode 5.0.0.
17588         * lib/unictype/blocks.h: Likewise.
17589         * lib/unictype/categ_C.h: Likewise.
17590         * lib/unictype/categ_Cc.h: Likewise.
17591         * lib/unictype/categ_Cf.h: Likewise.
17592         * lib/unictype/categ_Cn.h: Likewise.
17593         * lib/unictype/categ_Co.h: Likewise.
17594         * lib/unictype/categ_Cs.h: Likewise.
17595         * lib/unictype/categ_L.h: Likewise.
17596         * lib/unictype/categ_Ll.h: Likewise.
17597         * lib/unictype/categ_Lm.h: Likewise.
17598         * lib/unictype/categ_Lo.h: Likewise.
17599         * lib/unictype/categ_Lt.h: Likewise.
17600         * lib/unictype/categ_Lu.h: Likewise.
17601         * lib/unictype/categ_M.h: Likewise.
17602         * lib/unictype/categ_Mc.h: Likewise.
17603         * lib/unictype/categ_Me.h: Likewise.
17604         * lib/unictype/categ_Mn.h: Likewise.
17605         * lib/unictype/categ_N.h: Likewise.
17606         * lib/unictype/categ_Nd.h: Likewise.
17607         * lib/unictype/categ_Nl.h: Likewise.
17608         * lib/unictype/categ_No.h: Likewise.
17609         * lib/unictype/categ_P.h: Likewise.
17610         * lib/unictype/categ_Pc.h: Likewise.
17611         * lib/unictype/categ_Pd.h: Likewise.
17612         * lib/unictype/categ_Pe.h: Likewise.
17613         * lib/unictype/categ_Pf.h: Likewise.
17614         * lib/unictype/categ_Pi.h: Likewise.
17615         * lib/unictype/categ_Po.h: Likewise.
17616         * lib/unictype/categ_Ps.h: Likewise.
17617         * lib/unictype/categ_S.h: Likewise.
17618         * lib/unictype/categ_Sc.h: Likewise.
17619         * lib/unictype/categ_Sk.h: Likewise.
17620         * lib/unictype/categ_Sm.h: Likewise.
17621         * lib/unictype/categ_So.h: Likewise.
17622         * lib/unictype/categ_Z.h: Likewise.
17623         * lib/unictype/categ_Zl.h: Likewise.
17624         * lib/unictype/categ_Zp.h: Likewise.
17625         * lib/unictype/categ_Zs.h: Likewise.
17626         * lib/unictype/categ_of.h: Likewise.
17627         * lib/unictype/combining.h: Likewise.
17628         * lib/unictype/ctype_alnum.h: Likewise.
17629         * lib/unictype/ctype_alpha.h: Likewise.
17630         * lib/unictype/ctype_blank.h: Likewise.
17631         * lib/unictype/ctype_cntrl.h: Likewise.
17632         * lib/unictype/ctype_digit.h: Likewise.
17633         * lib/unictype/ctype_graph.h: Likewise.
17634         * lib/unictype/ctype_lower.h: Likewise.
17635         * lib/unictype/ctype_print.h: Likewise.
17636         * lib/unictype/ctype_punct.h: Likewise.
17637         * lib/unictype/ctype_space.h: Likewise.
17638         * lib/unictype/ctype_upper.h: Likewise.
17639         * lib/unictype/ctype_xdigit.h: Likewise.
17640         * lib/unictype/decdigit.h: Likewise.
17641         * lib/unictype/digit.h: Likewise.
17642         * lib/unictype/mirror.h: Likewise.
17643         * lib/unictype/numeric.h: Likewise.
17644         * lib/unictype/pr_alphabetic.h: Likewise.
17645         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17646         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17647         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17648         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17649         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17650         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17651         * lib/unictype/pr_bidi_control.h: Likewise.
17652         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17653         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17654         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17655         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17656         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17657         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17658         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17659         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17660         * lib/unictype/pr_bidi_pdf.h: Likewise.
17661         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17662         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17663         * lib/unictype/pr_combining.h: Likewise.
17664         * lib/unictype/pr_composite.h: Likewise.
17665         * lib/unictype/pr_currency_symbol.h: Likewise.
17666         * lib/unictype/pr_dash.h: Likewise.
17667         * lib/unictype/pr_decimal_digit.h: Likewise.
17668         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17669         * lib/unictype/pr_deprecated.h: Likewise.
17670         * lib/unictype/pr_diacritic.h: Likewise.
17671         * lib/unictype/pr_extender.h: Likewise.
17672         * lib/unictype/pr_format_control.h: Likewise.
17673         * lib/unictype/pr_grapheme_base.h: Likewise.
17674         * lib/unictype/pr_grapheme_extend.h: Likewise.
17675         * lib/unictype/pr_grapheme_link.h: Likewise.
17676         * lib/unictype/pr_hex_digit.h: Likewise.
17677         * lib/unictype/pr_hyphen.h: Likewise.
17678         * lib/unictype/pr_id_continue.h: Likewise.
17679         * lib/unictype/pr_id_start.h: Likewise.
17680         * lib/unictype/pr_ideographic.h: Likewise.
17681         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17682         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17683         * lib/unictype/pr_ignorable_control.h: Likewise.
17684         * lib/unictype/pr_iso_control.h: Likewise.
17685         * lib/unictype/pr_join_control.h: Likewise.
17686         * lib/unictype/pr_left_of_pair.h: Likewise.
17687         * lib/unictype/pr_line_separator.h: Likewise.
17688         * lib/unictype/pr_logical_order_exception.h: Likewise.
17689         * lib/unictype/pr_lowercase.h: Likewise.
17690         * lib/unictype/pr_math.h: Likewise.
17691         * lib/unictype/pr_non_break.h: Likewise.
17692         * lib/unictype/pr_not_a_character.h: Likewise.
17693         * lib/unictype/pr_numeric.h: Likewise.
17694         * lib/unictype/pr_other_alphabetic.h: Likewise.
17695         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17696         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17697         * lib/unictype/pr_other_id_continue.h: Likewise.
17698         * lib/unictype/pr_other_id_start.h: Likewise.
17699         * lib/unictype/pr_other_lowercase.h: Likewise.
17700         * lib/unictype/pr_other_math.h: Likewise.
17701         * lib/unictype/pr_other_uppercase.h: Likewise.
17702         * lib/unictype/pr_paired_punctuation.h: Likewise.
17703         * lib/unictype/pr_paragraph_separator.h: Likewise.
17704         * lib/unictype/pr_pattern_syntax.h: Likewise.
17705         * lib/unictype/pr_pattern_white_space.h: Likewise.
17706         * lib/unictype/pr_private_use.h: Likewise.
17707         * lib/unictype/pr_punctuation.h: Likewise.
17708         * lib/unictype/pr_quotation_mark.h: Likewise.
17709         * lib/unictype/pr_radical.h: Likewise.
17710         * lib/unictype/pr_sentence_terminal.h: Likewise.
17711         * lib/unictype/pr_soft_dotted.h: Likewise.
17712         * lib/unictype/pr_space.h: Likewise.
17713         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17714         * lib/unictype/pr_titlecase.h: Likewise.
17715         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17716         * lib/unictype/pr_unified_ideograph.h: Likewise.
17717         * lib/unictype/pr_uppercase.h: Likewise.
17718         * lib/unictype/pr_variation_selector.h: Likewise.
17719         * lib/unictype/pr_white_space.h: Likewise.
17720         * lib/unictype/pr_xid_continue.h: Likewise.
17721         * lib/unictype/pr_xid_start.h: Likewise.
17722         * lib/unictype/pr_zero_width.h: Likewise.
17723         * lib/unictype/scripts.h: Likewise.
17724         * lib/unictype/scripts_byname.gperf: Likewise.
17725         * lib/unictype/sy_c_ident.h: Likewise.
17726         * lib/unictype/sy_c_whitespace.h: Likewise.
17727         * lib/unictype/sy_java_ident.h: Likewise.
17728         * lib/unictype/sy_java_whitespace.h: Likewise.
17729
17730         * lib/unictype/Makefile: New file.
17731         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
17732         glibc.
17733         * lib/unictype/3level.h: New file, copied from glibc.
17734         * lib/unictype/3levelbit.h: New file.
17735
17736 2007-11-11  Bruno Haible  <bruno@clisp.org>
17737
17738         * modules/gperf: New file.
17739         * modules/iconv_open (Depends-on): Add it.
17740         (Makefile.am): Remove the GPERF definition.
17741
17742 2007-11-11  Bruno Haible  <bruno@clisp.org>
17743
17744         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
17745         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
17746
17747 2007-11-11  Bruno Haible  <bruno@clisp.org>
17748
17749         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
17750         (usage): Remove function.
17751
17752 2007-11-11  Bruno Haible  <bruno@clisp.org>
17753
17754         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
17755         gl_FUNC_CEILF_LIBS.
17756         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
17757         gl_FUNC_CEIL_LIBS.
17758         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
17759         gl_FUNC_CEILL_LIBS.
17760         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
17761         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
17762         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
17763
17764 2007-11-11  Bruno Haible  <bruno@clisp.org>
17765
17766         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
17767         roundf were declared but do not exist on functions.
17768         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
17769         roundl were declared but do not exist on functions.
17770         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
17771         HAVE_FLOORL_AND_CEILL, respectively.
17772         Needed for Sun C on Solaris 10.
17773
17774 2007-11-11  Bruno Haible  <bruno@clisp.org>
17775
17776         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
17777         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
17778         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
17779         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
17780         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
17781         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
17782         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
17783         HAVE_DECL_ROUNDF.
17784         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
17785         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
17786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
17787         of HAVE_DECL_ROUND*.
17788         * modules/math (Makefile.am): Update.
17789
17790 2007-11-10  Bruno Haible  <bruno@clisp.org>
17791
17792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
17793         ptrdiff_t as m4/intl.m4.
17794
17795 2007-11-10  Jim Meyering  <meyering@redhat.com>
17796
17797         Avoid link failure for the argmatch test.
17798         * tests/test-argmatch.c (usage): Define function to avoid a link
17799         failure: argmatch_die requires a usage function.
17800
17801 2007-11-09  Bruno Haible  <bruno@clisp.org>
17802
17803         * doc/functions/snprintf.texi: Mention BeOS deficiency.
17804         * doc/functions/vsnprintf.texi: Likewise.
17805         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
17806         with a size argument < 2.
17807
17808 2007-11-09  Bruno Haible  <bruno@clisp.org>
17809
17810         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
17811         buffer. Fixes an inefficiency introduced on 2007-11-03.
17812
17813 2007-11-09  Bruno Haible  <bruno@clisp.org>
17814
17815         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
17816         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
17817
17818 2007-11-08  Jim Meyering  <meyering@redhat.com>
17819
17820         Change cache variable name prefix "jm_" to "gl_" everywhere.
17821         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
17822         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
17823         * m4/uptime.m4: s/gl_/jm_/
17824
17825 2007-11-07  Bruno Haible  <bruno@clisp.org>
17826
17827         Update to GNU gettext 0.17.
17828         * m4/intl.m4: Update to GNU gettext 0.17.
17829         * m4/po.m4: Likewise.
17830         * modules/gettext (Files): Remove m4/ulonglong.m4.
17831         (configure.ac): Require gettext infrastructure from version 0.17.
17832
17833 2007-11-06  Bruno Haible  <bruno@clisp.org>
17834
17835         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
17836         symbolic values are not defined in a public header.
17837         * lib/freadable.c (freadable) [QNX]: Likewise.
17838         * lib/freadahead.c (freadahead) [QNX]: Likewise.
17839         * lib/freading.c (freading) [QNX]: Likewise.
17840         * lib/fseterr.c (fseterr) [QNX]: Likewise.
17841         * lib/fwritable.c (fwritable) [QNX]: Likewise.
17842         * lib/fwriting.c (fwriting) [QNX]: Likewise.
17843         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
17844         Reported by Alain Magloire.
17845
17846         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
17847
17848 2007-11-05  Bruno Haible  <bruno@clisp.org>
17849
17850         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
17851         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
17852         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
17853         Reported by Eric Blake.
17854
17855 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17856             Bruno Haible  <bruno@clisp.org>
17857
17858         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
17859         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
17860         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
17861         (malloc): Undefine also before including <stdlib.h>.
17862         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
17863         Needed on OSF/1 4.0.
17864
17865 2007-11-05  Jim Meyering  <meyering@redhat.com>
17866
17867         git-version-gen: sync from coreutils.
17868         * build-aux/git-version-gen: Add comments.
17869         Change the first '-' to '.' in the snapshot version string,
17870         e.g., 6.9-377-08144 -> 6.9.377-08144
17871         Remove first parameter.
17872         Don't declare a version "-dirty" merely because a time
17873         stamp has changed.
17874
17875 2007-11-04  Bruno Haible  <bruno@clisp.org>
17876
17877         * lib/lock.h: Protect all macro definitions containing an 'if'
17878         statement through a "do { ... } while (0)".
17879         * lib/tls.h: Likewise.
17880
17881 2007-11-04  Bruno Haible  <bruno@clisp.org>
17882
17883         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
17884
17885 2007-11-04  Bruno Haible  <bruno@clisp.org>
17886
17887         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
17888         * modules/fprintf-posix (Depends-on): Add nocrash.
17889         * modules/snprintf-posix (Depends-on): Likewise.
17890         * modules/sprintf-posix (Depends-on): Likewise.
17891         * modules/vasnprintf-posix (Depends-on): Likewise.
17892         * modules/vasprintf-posix (Depends-on): Likewise.
17893         * modules/vfprintf-posix (Depends-on): Likewise.
17894         * modules/vsnprintf-posix (Depends-on): Likewise.
17895         * modules/vsprintf-posix (Depends-on): Likewise.
17896         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17897         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17898         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17899         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17900         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17901         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17902         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17903
17904 2007-11-04  Bruno Haible  <bruno@clisp.org>
17905
17906         * modules/nocrash: New file.
17907         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
17908         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
17909
17910 2007-11-04  Bruno Haible  <bruno@clisp.org>
17911
17912         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
17913         precision handling.
17914         * tests/test-vasprintf-posix.c (test_function): Likewise.
17915         * tests/test-snprintf-posix.h (test_function): Likewise.
17916         * tests/test-sprintf-posix.h (test_function): Likewise.
17917
17918         Fix *printf behaviour for large precisions on mingw and BeOS.
17919         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
17920         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
17921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
17922         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17924         gl_PRINTF_PRECISION and test its result. Invoke
17925         gl_PREREQ_VASNPRINTF_PRECISION.
17926         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17927         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17933         * doc/functions/fprintf.texi: Update.
17934         * doc/functions/printf.texi: Update.
17935         * doc/functions/snprintf.texi: Update.
17936         * doc/functions/sprintf.texi: Update.
17937         * doc/functions/vfprintf.texi: Update.
17938         * doc/functions/vprintf.texi: Update.
17939         * doc/functions/vsnprintf.texi: Update.
17940         * doc/functions/vsprintf.texi: Update.
17941
17942 2007-11-04  Bruno Haible  <bruno@clisp.org>
17943
17944         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
17945
17946 2007-11-04  Bruno Haible  <bruno@clisp.org>
17947
17948         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
17949         Reported by Sylvain Beucler <beuc@gnu.org>.
17950
17951 2007-11-03  Bruno Haible  <bruno@clisp.org>
17952
17953         * tests/test-fprintf-posix2.sh: New file.
17954         * tests/test-fprintf-posix2.c: New file.
17955         * modules/fprintf-posix-tests (Files): Add them.
17956         (TESTS): Add test-fprintf-posix2.sh.
17957         (configure.ac): Check for getrlimit and setrlimit.
17958         (check_PROGRAMS): Add test-fprintf-posix2.
17959
17960         * tests/test-printf-posix2.sh: New file.
17961         * tests/test-printf-posix2.c: New file.
17962         * modules/printf-posix-tests (Files): Add them.
17963         (TESTS): Add test-printf-posix2.sh.
17964         (configure.ac): Check for getrlimit and setrlimit.
17965         (check_PROGRAMS): Add test-printf-posix2.
17966
17967         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
17968         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
17969         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
17970         (decode_double): New function, copied from decode_long_double.
17971         (scale10_round_decimal_decoded): New function, extracted from
17972         scale10_round_decimal_long_double.
17973         (scale10_round_decimal_long_double): Use it.
17974         (scale10_round_decimal_double): New function.
17975         (floorlog10): New function.
17976         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
17977         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
17978         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17979         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17980         gl_PRINTF_ENOMEM and test its result. Invoke
17981         gl_PREREQ_VASNPRINTF_ENOMEM.
17982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17989         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
17990         * modules/snprintf-posix (Depends-on): Likewise.
17991         * modules/sprintf-posix (Depends-on): Likewise.
17992         * modules/vasnprintf-posix (Depends-on): Likewise.
17993         * modules/vasprintf-posix (Depends-on): Likewise.
17994         * modules/vfprintf-posix (Depends-on): Likewise.
17995         * modules/vsnprintf-posix (Depends-on): Likewise.
17996         * modules/vsprintf-posix (Depends-on): Likewise.
17997         * doc/functions/fprintf.texi: Update.
17998         * doc/functions/printf.texi: Update.
17999         * doc/functions/snprintf.texi: Update.
18000         * doc/functions/sprintf.texi: Update.
18001         * doc/functions/vfprintf.texi: Update.
18002         * doc/functions/vprintf.texi: Update.
18003         * doc/functions/vsnprintf.texi: Update.
18004         * doc/functions/vsprintf.texi: Update.
18005
18006 2007-11-03  Bruno Haible  <bruno@clisp.org>
18007
18008         * modules/frexp-nolibm-tests: New file.
18009
18010         * modules/frexp-nolibm: New file.
18011         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
18012
18013 2007-11-03  Bruno Haible  <bruno@clisp.org>
18014
18015         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
18016         value is C99 compliant.
18017         Needed for OSF/1 5.1.
18018
18019 2007-11-03  Bruno Haible  <bruno@clisp.org>
18020
18021         Fix out-of-memory handling of vasnprintf.
18022         * lib/printf-parse.c: Include <errno.h>.
18023         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
18024         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
18025         is already set.
18026
18027 2007-11-02  Eric Blake  <ebb9@byu.net>
18028
18029         Fix tests on cygwin.
18030         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
18031
18032 2007-11-01  Bruno Haible  <bruno@clisp.org>
18033
18034         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
18035         warning.
18036         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
18037         needed for POSIX compatibility.
18038
18039 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18040
18041         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
18042         for compatibility with GNU.
18043
18044 2007-11-01  Bruno Haible  <bruno@clisp.org>
18045
18046         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
18047         (putenv): Renamed from rpl_putenv. Change argument type from
18048         'const char *' to 'char *'.
18049         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
18050         of defining putenv in config.h, just set REPLACE_PUTENV.
18051         * modules/putenv (Depends-on): Add stdlib.
18052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18053         (Include): Use <stdlib.h>.
18054         * lib/stdlib.in.h (putenv): New declaration.
18055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
18056         REPLACE_PUTENV.
18057         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
18058         REPLACE_PUTENV.
18059         Needed for MacOS X 10.5.0.
18060         Reported by Peter O'Gorman <peter@pogma.com>.
18061
18062 2007-11-01  Jim Meyering  <meyering@redhat.com>
18063
18064         Treat an empty date string exactly like "0".
18065         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
18066         if the remaining date string (to be parsed) is empty, use "0".
18067         Reported by Mischa Molhoek and discussed in this thread:
18068         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
18069
18070 2007-10-31  Bruno Haible  <bruno@clisp.org>
18071
18072         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
18073         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
18074         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
18075         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
18076         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
18077         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
18078
18079 2007-10-31  Bruno Haible  <bruno@clisp.org>
18080
18081         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
18082         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
18083         (AC_TYPE_LONG_LONG_INT): Use it.
18084         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
18085         it as well.
18086         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
18087         to m4/longlong.m4.
18088         * modules/stdint (Files): Remove m4/ulonglong.m4.
18089         * modules/strtoull (Files): Use m4/longlong.m4 instead of
18090         m4/ulonglong.m4.
18091         * modules/strtoumax (Files): Likewise.
18092
18093 2007-10-30  Bruno Haible  <bruno@clisp.org>
18094
18095         * modules/xvasprintf-posix: New file.
18096         Suggested by Eric Blake.
18097
18098 2007-10-30  Bruno Haible  <bruno@clisp.org>
18099
18100         * modules/xprintf-posix-tests: New file.
18101         * tests/test-xprintf-posix.sh: New file.
18102         * tests/test-xprintf-posix.c: New file.
18103         * tests/test-xfprintf-posix.c: New file.
18104
18105         * modules/xprintf-posix: New file.
18106
18107 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18108
18109         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
18110         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
18111         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
18112
18113 2007-10-29  Bruno Haible  <bruno@clisp.org>
18114
18115         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
18116         contain the special marker '_cv_'.
18117         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18118         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18119         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18120         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18121         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18122         Reported by Ralf Wildenhues.
18123
18124 2007-10-29  Bruno Haible  <bruno@clisp.org>
18125
18126         * gnulib-tool (func_import): When --lgpl is not specified, set
18127         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
18128         GPLv3.
18129         Reported by Simon Josefsson.
18130
18131 2007-10-28  Bruno Haible  <bruno@clisp.org>
18132
18133         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
18134         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
18135         HAVE_DECL_ISFINITE.
18136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18137         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
18138         HAVE_DECL_ISFINITE.
18139
18140 2007-10-28  Bruno Haible  <bruno@clisp.org>
18141
18142         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
18143         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
18144
18145 2007-10-28  Bruno Haible  <bruno@clisp.org>
18146
18147         Fix link errors with Sun C 5.0 on Solaris 10.
18148         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
18149         function is declared but not present in the compiler's libm.
18150         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18151         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18152         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
18153         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
18154         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
18155         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
18156         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
18157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18158         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
18159         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
18160         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
18161         HAVE_DECL_FLOORL.
18162
18163 2007-10-28  Bruno Haible  <bruno@clisp.org>
18164
18165         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
18166         gl_FUNC_FLOORL. Cache the result.
18167         (gl_FUNC_FLOORL): Use it.
18168         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
18169         gl_FUNC_CEILL. Cache the result.
18170         (gl_FUNC_CEILL): Use it.
18171
18172         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
18173         gl_FUNC_FLOOR. Cache the result.
18174         (gl_FUNC_FLOOR): Use it.
18175         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
18176         gl_FUNC_CEIL. Cache the result.
18177         (gl_FUNC_CEIL): Use it.
18178
18179         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
18180         gl_FUNC_FLOORF. Cache the result.
18181         (gl_FUNC_FLOORF): Use it.
18182         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
18183         gl_FUNC_CEILF. Cache the result.
18184         (gl_FUNC_CEILF): Use it.
18185
18186 2007-10-28  Bruno Haible  <bruno@clisp.org>
18187
18188         * gnulib-tool: Allow specifying the LGPL version number through
18189         --lgpl=2 or --lgpl=3.
18190         (func_usage): Document --lgpl with argument.
18191         Handle --lgpl=... arguments.
18192         (func_import): Recognize also gl_LGPL calls with an argument. When
18193         --lgpl=2 is used and the module's license is just LGPL, report an
18194         error. Set sed_transform_lib_file according to the lgpl variable. In
18195         the generated files, use --lgpl or gl_LGPL invocations with argument,
18196         if necessary.
18197         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
18198         an LGPv2+ license.
18199         * doc/gnulib-tool.texi (Modified imports): Update explanation of
18200         gl_LGPL macro.
18201
18202 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18203             Bruno Haible  <bruno@clisp.org>
18204
18205         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
18206         (u16_uctomb_aux): Likewise.
18207         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
18208         !HAVE_INLINE.
18209         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
18210
18211 2007-10-28  Bruno Haible  <bruno@clisp.org>
18212
18213         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
18214         Invoke AM_GETTEXT_OPTION if it exists.
18215         * modules/vasprintf: Likewise.
18216         * modules/verror: Likewise.
18217         * modules/xprintf: Likewise.
18218         * modules/xvasprintf: Likewise.
18219
18220 2007-10-27  Ben Pfaff  <blp@gnu.org>
18221
18222         * lib/math.in.h: Define isfinite macro and prototypes for
18223         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
18224         implementations.
18225         * m4/math_h.m4: New substitutions for isfinite module.
18226         * lib/isfinite.c: New file.
18227         * m4/isfinite.m4: New file.
18228         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
18229         * modules/isfinite: New file.
18230         * modules/isfinite-tests: New file.
18231         * tests/tests-isfinite.c: New file.
18232         * doc/functions/isfinite.texi: Mention isfinite module.
18233         * MODULES.html.sh: Mention new module.
18234
18235 2007-10-27  Ben Pfaff  <blp@gnu.org>
18236
18237         Ralf Wildenhues reported that Tru64 4.0D declares the round
18238         functions but does not have definitions.
18239         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
18240         cannot be found in any library, set the output variable to
18241         "missing" instead of "".
18242         * m4/round.m4: Also use our substitute if we cannot find round in
18243         any library, even if it is declared.
18244         * m4/roundf.m4: Likewise for roundf.
18245         * m4/roundl.m4: Likewise for roundl.
18246         * lib/math.in.h: Undefine roundf, round, roundl before defining
18247         their replacements, to allow for hypothetical systems where these
18248         may be defined as macros but not available in libraries.
18249
18250 2007-10-27  Bruno Haible  <bruno@clisp.org>
18251
18252         * doc/gnulib.texi: Invoke @firstparagraphindent.
18253         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
18254         changes in gnulib.
18255         (Source changes): New section.
18256
18257 2007-10-26  Bruno Haible  <bruno@clisp.org>
18258
18259         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
18260         borrowed from autoconf.
18261
18262 2007-10-26  Bruno Haible  <bruno@clisp.org>
18263
18264         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
18265         strerror returned the empty string. Needed on HP-UX 11.00.
18266
18267 2007-10-24  Micah Cowan  <micah@cowan.name>
18268
18269         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
18270         * build-aux/bootstrap: Remove support for now-unnecessary option,
18271         --cvs-user, and envvars CVS_USER, CVS_RSH.
18272
18273 2007-10-24  Jim Meyering  <meyering@redhat.com>
18274
18275         Avoid diagnostics from sha1sum when there is no cached checksum.
18276         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
18277         if the po.s1 file hasn't been created yet.
18278
18279         * build-aux/bootstrap: Sync from coreutils:
18280         2007-10-24  Jim Meyering  <meyering@redhat.com>
18281         Get gnulib from the git repository, not from an obsolete cvs one.
18282         * build-aux/bootstrap: Suggestion from Micah Cowan.
18283         2007-10-04  Jim Meyering  <jim@meyering.net>
18284         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
18285         (update_po_files): Work also when there are no .po files in po/.
18286
18287 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18288
18289         * README: Append ".git" to git and cg examples.
18290         Problem reported by Benoit Sigoure.
18291
18292 2007-10-23  Micah Cowan  <micah@cowan.name>
18293
18294         * users.txt: Add wget.
18295
18296 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18297
18298         Fix linking of some unistdio tests on FreeBSD.
18299         * modules/unistdio/u16-vsnprintf-tests
18300         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
18301         * modules/unistdio/u16-vsprintf-tests
18302         (test_u16_vsnprintf1_LDADD): Likewise.
18303         * modules/unistdio/u32-vsnprintf-tests
18304         (test_u32_vsnprintf1_LDADD): Likewise.
18305         * modules/unistdio/u32-vsprintf-tests
18306         (test_u32_vsprintf1_LDADD): Likewise.
18307         * modules/unistdio/u8-vsnprintf-tests
18308         (test_u8_vsnprintf1_LDADD): Likewise.
18309         * modules/unistdio/u8-vsprintf-tests
18310         (test_u8_vsprintf1_LDADD): Likewise.
18311         * modules/unistdio/ulc-vsnprintf-tests
18312         (test_ulc_vsnprintf1_LDADD): Likewise.
18313         * modules/unistdio/ulc-vsprintf-tests
18314         (test_ulc_vsprintf1_LDADD): Likewise.
18315
18316         Fix linking of some uniconv tests on FreeBSD.
18317         * modules/uniconv/u16-conv-from-enc-tests
18318         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
18319         * modules/uniconv/u16-conv-to-enc-tests
18320         (test_u16_conv_to_enc_LDADD): Likewise.
18321         * modules/uniconv/u16-strconv-from-enc-tests
18322         (test_u16_strconv_from_enc_LDADD): Likewise.
18323         * modules/uniconv/u16-strconv-to-enc-tests
18324         (test_u16_strconv_to_enc_LDADD): Likewise.
18325         * modules/uniconv/u32-conv-from-enc-tests
18326         (test_u32_conv_from_enc_LDADD): Likewise.
18327         * modules/uniconv/u32-conv-to-enc-tests
18328         (test_u32_conv_to_enc_LDADD): Likewise.
18329         * modules/uniconv/u32-strconv-from-enc-tests
18330         (test_u32_strconv_from_enc_LDADD): Likewise.
18331         * modules/uniconv/u32-strconv-to-enc-tests
18332         (test_u32_strconv_to_enc_LDADD): Likewise.
18333         * modules/uniconv/u8-conv-from-enc-tests
18334         (test_u8_conv_from_enc_LDADD): Likewise.
18335         * modules/uniconv/u8-conv-to-enc-tests
18336         (test_u8_conv_to_enc_LDADD): Likewise.
18337         * modules/uniconv/u8-strconv-from-enc-tests
18338         (test_u8_strconv_from_enc_LDADD): Likewise.
18339         * modules/uniconv/u8-strconv-to-enc-tests
18340         (test_u8_strconv_to_enc_LDADD): Likewise.
18341
18342 2007-10-22  Bruno Haible  <bruno@clisp.org>
18343
18344         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
18345         size.
18346
18347 2007-10-22  Eric Blake  <ebb9@byu.net>
18348
18349         Tweak x*printf documentation.
18350         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
18351         variable name and comments.
18352         Suggested by Bruno Haible.
18353
18354 2007-10-22  Bruno Haible  <bruno@clisp.org>
18355
18356         * lib/acl.c (copy_acl): Fix file name in comment.
18357
18358 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18359
18360         Fix Tru64 problem with stdbool.h.
18361         * lib/stdbool.in.h (false, true):
18362         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
18363         Don't declare as an enum in this situation; it runs afoul of Tru64.
18364         Problem reported by Steven M. Schweda in
18365         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
18366
18367 2007-10-22  Eric Blake  <ebb9@byu.net>
18368
18369         Also wrap vf?printf.
18370         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
18371         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
18372         (xvprintf, xvfprintf): New functions.
18373
18374 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18375
18376         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
18377         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
18378
18379         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
18380         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
18381
18382 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18383
18384         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
18385         by Bruno Haible.
18386
18387 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18388
18389         * lib/getloadavg.c
18390         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
18391         Undef `sys' after including sys/table.h, for Tru64 4.0D.
18392
18393         * tests/test-i-ring.c: Work for C89.
18394
18395 2007-10-22  Bruno Haible  <bruno@clisp.org>
18396
18397         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
18398         -1u, in preprocessor expression, so that we don't test for the bug
18399         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
18400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
18401
18402 2007-10-22  Eric Blake  <ebb9@byu.net>
18403
18404         * tests/test-yesno.sh: Silence stderr during test.
18405
18406 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18407
18408         * modules/crypto/gc-camellia: New file.
18409
18410         * m4/gc-camellia.m4: New file.
18411
18412         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
18413
18414         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
18415
18416 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18417
18418         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
18419         --help to stdout.  Reported by sms@antinode.org (Steven
18420         M. Schweda).
18421
18422 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18423
18424         * users.txt: Fix link to libksba.
18425
18426 2007-10-21  Ben Pfaff  <blp@gnu.org>
18427
18428         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
18429         round.c roundf implementation that depends on floorf and ceilf to
18430         be tested unconditionally.
18431
18432 2007-10-21  Ben Pfaff  <blp@gnu.org>
18433
18434         * m4/check-libm-func.m4: Removed.
18435         * m4/check-math-lib.m4: New file.
18436         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
18437         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
18438         definition and lack of AC_LIBOBJ([roundf]).
18439         * m4/roundl.m4: Ditto, and similarly for roundl.
18440         * modules/round: Reference new m4 file.
18441         * modules/roundf: Ditto.
18442         * modules/roundl: Ditto.
18443         * tests/test-round2.c (main): Use ROUND instead of round.
18444         Bug report from Bruno Haible.
18445
18446 2007-10-21  Bruno Haible  <bruno@clisp.org>
18447
18448         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
18449         context.
18450
18451 2007-10-21  Bruno Haible  <bruno@clisp.org>
18452
18453         * tests/test-wcwidth.c (main): Allow negative result for some control
18454         characters.
18455
18456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
18457         Needed on OSF/1 5.1.
18458
18459 2007-10-21  Bruno Haible  <bruno@clisp.org>
18460
18461         * tests/test-floorf1.c: Include isnanf.h.
18462         (main): Use isnanf() instead of isnan().
18463         * tests/test-ceilf1.c: Include isnanf.h.
18464         (main): Use isnanf() instead of isnan().
18465         * tests/test-truncf1.c: Include isnanf.h.
18466         (main): Use isnanf() instead of isnan().
18467         * tests/test-roundf1.c: Include isnanf.h.
18468         (main): Use isnanf() instead of isnan().
18469
18470 2007-10-21  Eric Blake  <ebb9@byu.net>
18471
18472         * users.txt: Update URL for m4.
18473
18474 2007-10-21  Bruno Haible  <bruno@clisp.org>
18475
18476         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
18477
18478 2007-10-21  Bruno Haible  <bruno@clisp.org>
18479
18480         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
18481         Git's management files if the CVS files are not present.
18482
18483 2007-10-20  Bruno Haible  <bruno@clisp.org>
18484
18485         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
18486         gcc-3.4.x.
18487
18488 2007-10-20  Ben Pfaff  <blp@gnu.org>
18489
18490         * lib/math.in.h: Declare round, roundf, roundl if we are providing
18491         implementations.
18492         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
18493         * lib/round.c: New file.
18494         * lib/roundf.c: New file.
18495         * lib/roundl.c: New file.
18496         * m4/round.m4: New file.
18497         * m4/roundf.m4: New file.
18498         * m4/roundl.m4: New file.
18499         * m4/check-libm-func-m4: New file.
18500         * modules/math: Replace round, roundf, roundl related @VARS@ in
18501         math.in.h.
18502         * modules/round: New file.
18503         * modules/round-tests: New file.
18504         * modules/roundf: New file.
18505         * modules/roundf-tests: New file.
18506         * modules/roundl: New file.
18507         * modules/roundl-tests: New file.
18508         * tests/test-round1.c: New file.
18509         * tests/test-round2.c: New file.
18510         * tests/test-roundf1.c: New file.
18511         * tests/test-roundf2.c: New file.
18512         * tests/test-roundl.c: New file.
18513         * doc/functions/round.texi: Mention round module.
18514         * doc/functions/roundf.texi: Mention roundf module.
18515         * doc/functions/roundl.texi: Mention roundl module.
18516         * MODULES.html.sh: Mention new modules.
18517         Thanks to Bruno Haible for suggestions.
18518
18519 2007-10-20  Jim Meyering  <meyering@redhat.com>
18520
18521         * lib/xprintf.c: Include <config.h> unconditionally.
18522
18523         Change xprintf's license to GPL.
18524         * modules/xprintf (License): s/LGPL/GPL/, since this module
18525         depends on modules (exit and exitfail) which are GPL.
18526         Suggestion from Bruno Haible.
18527
18528         xprintf fixes.
18529         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
18530         Use a clearer diagnostic.
18531         Patch from Bruno Haible.
18532
18533 2007-10-20  Bruno Haible  <bruno@clisp.org>
18534
18535         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
18536         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
18537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18538
18539 2007-10-20  Bruno Haible  <bruno@clisp.org>
18540
18541         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
18542         precision in the comparison result > x - 1 or similar.
18543         * tests/test-ceilf2.c (correct_result_p): Likewise.
18544         * tests/test-truncf2.c (correct_result_p): Likewise.
18545         * tests/test-trunc2.c (correct_result_p): Likewise.
18546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18547
18548 2007-10-20  Bruno Haible  <bruno@clisp.org>
18549
18550         * modules/ceil: New file.
18551         * m4/ceil.m4: New file.
18552         * doc/functions/ceil.texi: Mention the 'ceil' module.
18553
18554 2007-10-20  Bruno Haible  <bruno@clisp.org>
18555
18556         * modules/floor: New file.
18557         * m4/floor.m4: New file.
18558         * doc/functions/floor.texi: Mention the 'floor' module.
18559
18560 2007-10-20  Bruno Haible  <bruno@clisp.org>
18561
18562         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
18563         of %a.
18564         * modules/floorf-tests (Depends-on): Likewise.
18565         * modules/truncf-tests (Depends-on): Likewise.
18566         * modules/trunc-tests (Depends-on): Likewise.
18567         Reported by Ben Pfaff.
18568
18569 2007-10-19  Jim Meyering  <meyering@redhat.com>
18570
18571         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
18572         Don't bother testing specific errno values.  Just test ferror.
18573
18574         New module: xprintf
18575         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
18576
18577 2007-10-19  Bruno Haible  <bruno@clisp.org>
18578
18579         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
18580         syntax.
18581         * modules/javaexec (Makefile.am): Likewise.
18582         * modules/relocatable-prog (Makefile.am): Likewise.
18583         Suggested by Jim Meyering.
18584
18585 2007-10-18  Bruno Haible  <bruno@clisp.org>
18586
18587         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
18588         Reported by Jim Meyering.
18589
18590 2007-10-18  Eric Blake  <ebb9@byu.net>
18591
18592         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
18593
18594 2007-10-18  Bruno Haible  <bruno@clisp.org>
18595
18596         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
18597         the format string into writable memory. Needed in Fortify conditions.
18598
18599 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
18600             Bruno Haible  <bruno@clisp.org>
18601
18602         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
18603         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
18604         * modules/trim (Depends-on): Add mbchar.
18605         (configure.ac): Add gl_FUNC_MBRTOWC.
18606         (Makefile.am): Augment lib_SOURCES.
18607
18608 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
18609
18610         Modify glob.c to use fstatat and dirfd, to simplify it.
18611         Suggested by Eric Blake.
18612         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
18613         Don't include <stdbool.h>; not used.
18614         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
18615         (link_exists_p): Simplify implementation, since we can now assume
18616         dirfd and fstatat.
18617         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
18618
18619 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18620
18621         * gnulib-tool (func_get_dependencies): Fix sed script to
18622         match only tests.
18623
18624 2007-10-17  Bruno Haible  <bruno@clisp.org>
18625
18626         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
18627         allow locale names without encoding suffix.
18628         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18629         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18630
18631 2007-10-16  Bruno Haible  <bruno@clisp.org>
18632
18633         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
18634         * lib/getgroups.c (getgroups): Likewise.
18635         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
18636
18637 2007-10-16  Bruno Haible  <bruno@clisp.org>
18638
18639         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
18640         * modules/malloc-posix (License): Likewise.
18641         * modules/realloc-posix (License): Likewise.
18642         * modules/calloc-posix (License): Likewise.
18643         * modules/intprops (License): Change from GPL to LGPL, with
18644         Paul Eggert's approval.
18645
18646 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18647
18648         Merge glibc changes into lib/glob.c.
18649
18650         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
18651         2007-10-15 04:59:03 UTC.  Here are the changes:
18652
18653         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
18654
18655         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
18656
18657         * lib/glob.c: Add some branch prediction throughout.
18658
18659         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
18660
18661         [BZ #5103]
18662         * lib/glob.c (glob): Recognize patterns starting \/.
18663
18664         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
18665
18666         [BZ #3996]
18667         * lib/glob.c (attribute_hidden): Define if not defined.
18668         (glob): Unescape dirname, filename or username when needed and not
18669         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
18670         is NULL.  Handle unescaped [ in pattern without closing ].
18671         Don't pass GLOB_CHECK down to recursive glob for directories.
18672         (__glob_pattern_type): New function.
18673         (__glob_pattern_p): Implement using __glob_pattern_type.
18674         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
18675         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
18676         Remove unreachable code.
18677
18678         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
18679
18680         * lib/glob.c (glob_in_dir): Add some comments and asserts to
18681         explain why there are no leaks.
18682
18683         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
18684
18685         [BZ #3253]
18686         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
18687         time, rather allocate increasingly bigger arrays of pointers, if
18688         possible with alloca, if too large with malloc.
18689
18690 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18691
18692         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
18693         Problem reported by H.Merijn Brand in
18694         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
18695         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
18696         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
18697
18698 2007-10-15  Bruno Haible  <bruno@clisp.org>
18699
18700         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
18701         with explicit rpl_ prefix.
18702         * lib/fopen.c (fopen): Likewise.
18703         * lib/freopen.c (freopen): Likewise.
18704         * lib/iconv.c (iconv): Likewise.
18705         * lib/iconv_close.c (iconv_close): Likewise.
18706
18707 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18708
18709         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
18710
18711 2007-10-15  Bruno Haible  <bruno@clisp.org>
18712
18713         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
18714         <stddef.h> instead of <stdlib.h> since we only need NULL.
18715         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18716
18717 2007-10-15  Bruno Haible  <bruno@clisp.org>
18718
18719         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
18720         Replace paragraph talking about LIBOBJS.
18721         Reported by Colin Watson <cjwatson@debian.org>.
18722
18723 2007-10-15  Bruno Haible  <bruno@clisp.org>
18724
18725         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
18726         <stdlib.h> before using NULL.
18727
18728 2007-10-15  Simon Josefsson  <simon@josefsson.org>
18729
18730         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
18731         Reported by Albert Chin <china@thewrittenword.com>.
18732
18733 2007-10-14  Bruno Haible  <bruno@clisp.org>
18734
18735         * modules/iconv_open-utf-tests: New file.
18736         * tests/test-iconv-utf.c: New file.
18737
18738         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
18739         * modules/iconv_open-utf: New file.
18740         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
18741         (iconv, iconv_close): New declarations.
18742         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
18743         be defined.
18744         (iconv_open): Add special handling of conversion between UTF-8 and
18745         UTF-{16,32}{BE,LE}.
18746         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
18747         * lib/iconv_close.c: New file.
18748         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
18749         gl_FUNC_ICONV_OPEN.
18750         (gl_FUNC_ICONV_OPEN): Use it.
18751         (gl_FUNC_ICONV_OPEN_UTF): New macro.
18752         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
18753         and REPLACE_ICONV_UTF.
18754         * modules/iconv_open (Depends-on): Add c-strcase.
18755         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
18756         ICONV_CONST.
18757         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
18758
18759 2007-10-13  Albert Chin  <china@thewrittenword.com>
18760             Bruno Haible  <bruno@clisp.org>
18761
18762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
18763         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
18764
18765 2007-10-13  Bruno Haible  <bruno@clisp.org>
18766
18767         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
18768         defined, use the ISO C99 inline semantics.
18769         * lib/argp.h (ARGP_EI): Likewise.
18770
18771 2007-10-13  Bruno Haible  <bruno@clisp.org>
18772
18773         Handle 'inline' change in gcc 4.3.0.
18774         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
18775         argp_fmtstream_write, argp_fmtstream_set_lmargin,
18776         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
18777         argp_fmtstream_point): Disable 'extern' declaration if the function
18778         definition is going to be provided inline.
18779         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
18780         semantics, not the ISO C99 inline semantics.
18781         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
18782         'extern' declaration if the function definition is going to be provided
18783         inline.
18784         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
18785         the GNU C inline semantics, not the ISO C99 inline semantics. With
18786         GCC 4.2, avoid a warning.
18787
18788 2007-10-13  Bruno Haible  <bruno@clisp.org>
18789
18790         * lib/freading.h (freading): Enable the use of __freading for
18791         glibc >= 2.7.
18792         * lib/freading.c (freading): Likewise.
18793
18794 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18795
18796         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
18797         "warning: C99 inline functions are not supported; using GNU89".
18798
18799 2007-10-12  Bruno Haible  <bruno@clisp.org>
18800
18801         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
18802         of 2.
18803         * tests/test-ceilf2.c: New file.
18804         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
18805
18806         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
18807         * modules/ceilf-tests: Update.
18808
18809 2007-10-12  Bruno Haible  <bruno@clisp.org>
18810
18811         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
18812         of 2.
18813         * tests/test-floorf2.c: New file.
18814         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
18815
18816         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
18817         * modules/floorf-tests: Update.
18818
18819 2007-10-12  Bruno Haible  <bruno@clisp.org>
18820
18821         * tests/test-trunc2.c: New file.
18822         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
18823
18824         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
18825         * modules/trunc-tests: Update.
18826
18827 2007-10-12  Bruno Haible  <bruno@clisp.org>
18828
18829         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
18830         of 2.
18831         * tests/test-truncf2.c: New file.
18832         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
18833
18834         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
18835         * modules/truncf-tests: Update.
18836
18837 2007-10-11  Eric Blake  <ebb9@byu.net>
18838
18839         Don't claim strerror is broken on Interix.
18840         * doc/functions/strerror.texi (strerror): Known broken systems are
18841         now Solaris 8, and not Interix.
18842         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
18843         Interix on cross-compile.
18844         Reported by Martin Koeppe in
18845         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
18846
18847 2007-10-11  Bruno Haible  <bruno@clisp.org>
18848
18849         * modules/i-ring-tests: New file.
18850         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
18851         instead of assert.
18852
18853 2007-10-11  Bruno Haible  <bruno@clisp.org>
18854
18855         * modules/filenamecat-tests: New file.
18856         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
18857         * lib/filenamecat.c: Remove test code.
18858
18859 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18860
18861         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
18862
18863         * lib/strerror.c: Include <string.h> always, to test interface,
18864         and to remove the need for the dummy.
18865         Include intprops.h to compute width instead of doing it ourselves
18866         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
18867         (strerror): Define it to return NULL if there's no system strerror.
18868         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
18869         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
18870         ancient pre-strerror Unix systems well any more.  Saying "unknown
18871         system error" is enough.
18872         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
18873         simpler strerror.c implementation.
18874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
18875         Simplify the tests to reflect the simpler strerror implementation.
18876         * modules/strerror (Depends-on): Add intprops.
18877
18878 2007-10-09  Eric Blake  <ebb9@byu.net>
18879
18880         Silence test-fpending.
18881         * modules/fpending-tests (Files): Add wrapper script.
18882         * tests/test-fpending.sh: New file.
18883
18884 2007-10-09  Bruno Haible  <bruno@clisp.org>
18885
18886         * MODULES.html.sh (func_module): Don't create a hyperlink for
18887         function names like 'printf_frexp'.
18888         (Misc): Add crc, memxor.
18889         (Characteristics of floating types): New section.
18890         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
18891         isnanf-nolibm, signbit, trunc, truncf, truncl.
18892         (Enhancements for ISO C 99 functions): New subsection Input/output.
18893         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
18894         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
18895         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
18896         (Compatibility checks for POSIX:2001 functions): Add clock-time.
18897         (Enhancements for POSIX:2001 functions): Add chdir-long.
18898         (File system functions): Add areadlink, chdir-safer, read-file.
18899         Remove cycle-check.
18900         (File system as inode set): New section.
18901         (Date and time): Add gethrxtime.
18902         (Multithreading): Add openmp.
18903         (Internationalization functions): Add localename.
18904         (Unicode string functions): Add unistr/u*-mbsnlen.
18905         (Support for maintaining and releasing projects): Add git-version-gen.
18906         (Lone files): Remove directories.
18907
18908 2007-10-08  Ben Pfaff  <blp@gnu.org>
18909
18910         * lib/xmalloca.h: Fix typo in comment.
18911
18912 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18913
18914         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
18915         when avoiding problems with integer overflow.  Use a portable test
18916         instead.
18917
18918 2007-10-08  Simon Josefsson  <simon@josefsson.org>
18919
18920         * modules/dummy (License): Change to LGPLv2+.
18921         * modules/float (License): Likewise
18922         * modules/realloc (License): Likewise
18923         * modules/stdlib (License): Likewise
18924
18925 2007-10-07  Bruno Haible  <bruno@clisp.org>
18926
18927         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
18928         * floor.c (TWO_MANT_DIG): Likewise.
18929         * ceil.c (TWO_MANT_DIG): Likewise.
18930         Reported by Ben Pfaff.
18931
18932 2007-10-07  Bruno Haible  <bruno@clisp.org>
18933
18934         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
18935         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
18936         * lib/frexp.c (FUNC): Likewise.
18937         * lib/printf-frexp.h (printf_frexp): Likewise.
18938         * lib/printf-frexpl.h (printf_frexpl): Likewise.
18939         * lib/printf-frexp.c (FUNC): Likewise.
18940         Suggested by Jim Meyering.
18941
18942 2007-10-07  Jim Meyering  <meyering@redhat.com>
18943
18944         Make xnanosleep's integer overflow test more robust.
18945         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
18946         so that gcc-4.3.0 doesn't optimize away this test for overflow.
18947
18948 2007-10-07  Bruno Haible  <bruno@clisp.org>
18949
18950         * NEWS: Mention the license change.
18951
18952         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
18953         abbreviations in the modules files.
18954
18955         Change copyright notice from GPLv2+ to GPLv3+.
18956         * README: Change copyright notice.
18957         * MODULES.html.sh: Likewise.
18958         * build-aux/bootstrap.conf: Likewise.
18959         * build-aux/config.libpath: Likewise.
18960         * build-aux/csharpcomp.sh.in: Likewise.
18961         * build-aux/csharpexec.sh.in: Likewise.
18962         * build-aux/install-reloc: Likewise.
18963         * build-aux/javacomp.sh.in: Likewise.
18964         * build-aux/javaexec.sh.in: Likewise.
18965         * build-aux/ldd.sh.in: Likewise.
18966         * build-aux/reloc-ldflags: Likewise.
18967         * build-aux/relocatable.sh.in: Likewise.
18968         * build-aux/x-to-1.in: Likewise.
18969         * check-module: Likewise.
18970         * config/srclistvars.sh: Likewise.
18971         * gnulib-tool: Likewise.
18972         * lib/acl-internal.h: Likewise.
18973         * lib/acl.c: Likewise.
18974         * lib/acl.h: Likewise.
18975         * lib/acl_entries.c: Likewise.
18976         * lib/areadlink-with-size.c: Likewise.
18977         * lib/areadlink.c: Likewise.
18978         * lib/areadlink.h: Likewise.
18979         * lib/argmatch.c: Likewise.
18980         * lib/argmatch.h: Likewise.
18981         * lib/argp-ba.c: Likewise.
18982         * lib/argp-eexst.c: Likewise.
18983         * lib/argp-fmtstream.c: Likewise.
18984         * lib/argp-fmtstream.h: Likewise.
18985         * lib/argp-fs-xinl.c: Likewise.
18986         * lib/argp-help.c: Likewise.
18987         * lib/argp-namefrob.h: Likewise.
18988         * lib/argp-parse.c: Likewise.
18989         * lib/argp-pin.c: Likewise.
18990         * lib/argp-pv.c: Likewise.
18991         * lib/argp-pvh.c: Likewise.
18992         * lib/argp-xinl.c: Likewise.
18993         * lib/argp.h: Likewise.
18994         * lib/at-func.c: Likewise.
18995         * lib/atanl.c: Likewise.
18996         * lib/backupfile.c: Likewise.
18997         * lib/backupfile.h: Likewise.
18998         * lib/basename.c: Likewise.
18999         * lib/binary-io.h: Likewise.
19000         * lib/byteswap.in.h: Likewise.
19001         * lib/c-stack.c: Likewise.
19002         * lib/c-stack.h: Likewise.
19003         * lib/c-strcasestr.c: Likewise.
19004         * lib/c-strcasestr.h: Likewise.
19005         * lib/c-strstr.c: Likewise.
19006         * lib/c-strstr.h: Likewise.
19007         * lib/c-strtod.c: Likewise.
19008         * lib/calloc.c: Likewise.
19009         * lib/canon-host.c: Likewise.
19010         * lib/canon-host.h: Likewise.
19011         * lib/canonicalize-lgpl.c: Likewise.
19012         * lib/canonicalize.c: Likewise.
19013         * lib/canonicalize.h: Likewise.
19014         * lib/ceil.c: Likewise.
19015         * lib/ceilf.c: Likewise.
19016         * lib/ceill.c: Likewise.
19017         * lib/chdir-long.c: Likewise.
19018         * lib/chdir-long.h: Likewise.
19019         * lib/chdir-safer.c: Likewise.
19020         * lib/chdir-safer.h: Likewise.
19021         * lib/chown.c: Likewise.
19022         * lib/classpath.c: Likewise.
19023         * lib/classpath.h: Likewise.
19024         * lib/clean-temp.c: Likewise.
19025         * lib/clean-temp.h: Likewise.
19026         * lib/cloexec.c: Likewise.
19027         * lib/close-stream.c: Likewise.
19028         * lib/closein.c: Likewise.
19029         * lib/closein.h: Likewise.
19030         * lib/closeout.c: Likewise.
19031         * lib/closeout.h: Likewise.
19032         * lib/concat-filename.c: Likewise.
19033         * lib/copy-file.c: Likewise.
19034         * lib/copy-file.h: Likewise.
19035         * lib/count-one-bits.h: Likewise.
19036         * lib/crc.c: Likewise.
19037         * lib/crc.h: Likewise.
19038         * lib/creat-safer.c: Likewise.
19039         * lib/csharpcomp.c: Likewise.
19040         * lib/csharpcomp.h: Likewise.
19041         * lib/csharpexec.c: Likewise.
19042         * lib/csharpexec.h: Likewise.
19043         * lib/cycle-check.c: Likewise.
19044         * lib/cycle-check.h: Likewise.
19045         * lib/diacrit.c: Likewise.
19046         * lib/diacrit.h: Likewise.
19047         * lib/diffseq.h: Likewise.
19048         * lib/dirchownmod.c: Likewise.
19049         * lib/dirent.in.h: Likewise.
19050         * lib/dirfd.c: Likewise.
19051         * lib/dirfd.h: Likewise.
19052         * lib/dirname.c: Likewise.
19053         * lib/dirname.h: Likewise.
19054         * lib/dummy.c: Likewise.
19055         * lib/dup-safer.c: Likewise.
19056         * lib/dup2.c: Likewise.
19057         * lib/eealloc.h: Likewise.
19058         * lib/error.c: Likewise.
19059         * lib/error.h: Likewise.
19060         * lib/euidaccess.c: Likewise.
19061         * lib/exclude.c: Likewise.
19062         * lib/exclude.h: Likewise.
19063         * lib/execute.c: Likewise.
19064         * lib/execute.h: Likewise.
19065         * lib/exitfail.c: Likewise.
19066         * lib/exitfail.h: Likewise.
19067         * lib/expl.c: Likewise.
19068         * lib/fatal-signal.c: Likewise.
19069         * lib/fatal-signal.h: Likewise.
19070         * lib/fbufmode.c: Likewise.
19071         * lib/fbufmode.h: Likewise.
19072         * lib/fchdir.c: Likewise.
19073         * lib/fchmodat.c: Likewise.
19074         * lib/fchownat.c: Likewise.
19075         * lib/fcntl--.h: Likewise.
19076         * lib/fcntl-safer.h: Likewise.
19077         * lib/fcntl.in.h: Likewise.
19078         * lib/fd-safer.c: Likewise.
19079         * lib/fflush.c: Likewise.
19080         * lib/file-has-acl.c: Likewise.
19081         * lib/file-set.c: Likewise.
19082         * lib/file-type.c: Likewise.
19083         * lib/file-type.h: Likewise.
19084         * lib/fileblocks.c: Likewise.
19085         * lib/filemode.c: Likewise.
19086         * lib/filemode.h: Likewise.
19087         * lib/filename.h: Likewise.
19088         * lib/filenamecat.c: Likewise.
19089         * lib/filenamecat.h: Likewise.
19090         * lib/findprog.c: Likewise.
19091         * lib/findprog.h: Likewise.
19092         * lib/float.in.h: Likewise.
19093         * lib/floor.c: Likewise.
19094         * lib/floorf.c: Likewise.
19095         * lib/floorl.c: Likewise.
19096         * lib/fopen-safer.c: Likewise.
19097         * lib/fopen.c: Likewise.
19098         * lib/fpending.c: Likewise.
19099         * lib/fpending.h: Likewise.
19100         * lib/fprintf.c: Likewise.
19101         * lib/fprintftime.h: Likewise.
19102         * lib/fpucw.h: Likewise.
19103         * lib/fpurge.c: Likewise.
19104         * lib/fpurge.h: Likewise.
19105         * lib/freadable.c: Likewise.
19106         * lib/freadable.h: Likewise.
19107         * lib/freadahead.c: Likewise.
19108         * lib/freadahead.h: Likewise.
19109         * lib/freading.c: Likewise.
19110         * lib/freading.h: Likewise.
19111         * lib/free.c: Likewise.
19112         * lib/freopen.c: Likewise.
19113         * lib/frexp.c: Likewise.
19114         * lib/frexpl.c: Likewise.
19115         * lib/fseek.c: Likewise.
19116         * lib/fseterr.c: Likewise.
19117         * lib/fseterr.h: Likewise.
19118         * lib/fstatat.c: Likewise.
19119         * lib/fstrcmp.c: Likewise.
19120         * lib/fstrcmp.h: Likewise.
19121         * lib/fsusage.c: Likewise.
19122         * lib/fsusage.h: Likewise.
19123         * lib/ftell.c: Likewise.
19124         * lib/ftello.c: Likewise.
19125         * lib/fts-cycle.c: Likewise.
19126         * lib/fts.c: Likewise.
19127         * lib/fts_.h: Likewise.
19128         * lib/full-read.c: Likewise.
19129         * lib/full-read.h: Likewise.
19130         * lib/full-write.c: Likewise.
19131         * lib/full-write.h: Likewise.
19132         * lib/fwritable.c: Likewise.
19133         * lib/fwritable.h: Likewise.
19134         * lib/fwriteerror.c: Likewise.
19135         * lib/fwriteerror.h: Likewise.
19136         * lib/fwriting.c: Likewise.
19137         * lib/fwriting.h: Likewise.
19138         * lib/gcd.c: Likewise.
19139         * lib/gcd.h: Likewise.
19140         * lib/getcwd.c: Likewise.
19141         * lib/getdate.h: Likewise.
19142         * lib/getdate.y: Likewise.
19143         * lib/getdomainname.c: Likewise.
19144         * lib/getdomainname.h: Likewise.
19145         * lib/getgroups.c: Likewise.
19146         * lib/gethostname.c: Likewise.
19147         * lib/gethrxtime.c: Likewise.
19148         * lib/gethrxtime.h: Likewise.
19149         * lib/getloadavg.c: Likewise.
19150         * lib/getndelim2.c: Likewise.
19151         * lib/getndelim2.h: Likewise.
19152         * lib/getnline.c: Likewise.
19153         * lib/getnline.h: Likewise.
19154         * lib/getopt.c: Likewise.
19155         * lib/getopt.in.h: Likewise.
19156         * lib/getopt1.c: Likewise.
19157         * lib/getopt_int.h: Likewise.
19158         * lib/getpagesize.h: Likewise.
19159         * lib/getsubopt.c: Likewise.
19160         * lib/gettime.c: Likewise.
19161         * lib/getugroups.c: Likewise.
19162         * lib/getugroups.h: Likewise.
19163         * lib/getusershell.c: Likewise.
19164         * lib/gl_anyavltree_list1.h: Likewise.
19165         * lib/gl_anyavltree_list2.h: Likewise.
19166         * lib/gl_anyhash_list1.h: Likewise.
19167         * lib/gl_anyhash_list2.h: Likewise.
19168         * lib/gl_anylinked_list1.h: Likewise.
19169         * lib/gl_anylinked_list2.h: Likewise.
19170         * lib/gl_anyrbtree_list1.h: Likewise.
19171         * lib/gl_anyrbtree_list2.h: Likewise.
19172         * lib/gl_anytree_list1.h: Likewise.
19173         * lib/gl_anytree_list2.h: Likewise.
19174         * lib/gl_anytree_oset.h: Likewise.
19175         * lib/gl_anytreehash_list1.h: Likewise.
19176         * lib/gl_anytreehash_list2.h: Likewise.
19177         * lib/gl_array_list.c: Likewise.
19178         * lib/gl_array_list.h: Likewise.
19179         * lib/gl_array_oset.c: Likewise.
19180         * lib/gl_array_oset.h: Likewise.
19181         * lib/gl_avltree_list.c: Likewise.
19182         * lib/gl_avltree_list.h: Likewise.
19183         * lib/gl_avltree_oset.c: Likewise.
19184         * lib/gl_avltree_oset.h: Likewise.
19185         * lib/gl_avltreehash_list.c: Likewise.
19186         * lib/gl_avltreehash_list.h: Likewise.
19187         * lib/gl_carray_list.c: Likewise.
19188         * lib/gl_carray_list.h: Likewise.
19189         * lib/gl_linked_list.c: Likewise.
19190         * lib/gl_linked_list.h: Likewise.
19191         * lib/gl_linkedhash_list.c: Likewise.
19192         * lib/gl_linkedhash_list.h: Likewise.
19193         * lib/gl_list.c: Likewise.
19194         * lib/gl_list.h: Likewise.
19195         * lib/gl_oset.c: Likewise.
19196         * lib/gl_oset.h: Likewise.
19197         * lib/gl_rbtree_list.c: Likewise.
19198         * lib/gl_rbtree_list.h: Likewise.
19199         * lib/gl_rbtree_oset.c: Likewise.
19200         * lib/gl_rbtree_oset.h: Likewise.
19201         * lib/gl_rbtreehash_list.c: Likewise.
19202         * lib/gl_rbtreehash_list.h: Likewise.
19203         * lib/gl_sublist.c: Likewise.
19204         * lib/gl_sublist.h: Likewise.
19205         * lib/group-member.c: Likewise.
19206         * lib/group-member.h: Likewise.
19207         * lib/hard-locale.c: Likewise.
19208         * lib/hard-locale.h: Likewise.
19209         * lib/hash-pjw.c: Likewise.
19210         * lib/hash-pjw.h: Likewise.
19211         * lib/hash-triple.c: Likewise.
19212         * lib/hash.c: Likewise.
19213         * lib/hash.h: Likewise.
19214         * lib/human.c: Likewise.
19215         * lib/human.h: Likewise.
19216         * lib/i-ring.c: Likewise.
19217         * lib/i-ring.h: Likewise.
19218         * lib/idcache.c: Likewise.
19219         * lib/imaxabs.c: Likewise.
19220         * lib/imaxdiv.c: Likewise.
19221         * lib/inet_pton.c: Likewise.
19222         * lib/inet_pton.h: Likewise.
19223         * lib/intprops.h: Likewise.
19224         * lib/inttostr.c: Likewise.
19225         * lib/inttostr.h: Likewise.
19226         * lib/inttypes.in.h: Likewise.
19227         * lib/isapipe.c: Likewise.
19228         * lib/isdir.c: Likewise.
19229         * lib/isnan.c: Likewise.
19230         * lib/isnan.h: Likewise.
19231         * lib/isnanf.c: Likewise.
19232         * lib/isnanf.h: Likewise.
19233         * lib/isnanl-nolibm.h: Likewise.
19234         * lib/isnanl.c: Likewise.
19235         * lib/isnanl.h: Likewise.
19236         * lib/javacomp.c: Likewise.
19237         * lib/javacomp.h: Likewise.
19238         * lib/javaexec.c: Likewise.
19239         * lib/javaexec.h: Likewise.
19240         * lib/javaversion.c: Likewise.
19241         * lib/javaversion.h: Likewise.
19242         * lib/javaversion.java: Likewise.
19243         * lib/lbrkprop.h: Likewise.
19244         * lib/lchmod.h: Likewise.
19245         * lib/lchown.c: Likewise.
19246         * lib/ldexpl.c: Likewise.
19247         * lib/linebreak.c: Likewise.
19248         * lib/linebreak.h: Likewise.
19249         * lib/linebuffer.c: Likewise.
19250         * lib/linebuffer.h: Likewise.
19251         * lib/locale.in.h: Likewise.
19252         * lib/logl.c: Likewise.
19253         * lib/long-options.c: Likewise.
19254         * lib/long-options.h: Likewise.
19255         * lib/lstat.c: Likewise.
19256         * lib/lstat.h: Likewise.
19257         * lib/math.in.h: Likewise.
19258         * lib/mbchar.c: Likewise.
19259         * lib/mbchar.h: Likewise.
19260         * lib/mbfile.h: Likewise.
19261         * lib/mbiter.h: Likewise.
19262         * lib/mbscasecmp.c: Likewise.
19263         * lib/mbscasestr.c: Likewise.
19264         * lib/mbschr.c: Likewise.
19265         * lib/mbscspn.c: Likewise.
19266         * lib/mbslen.c: Likewise.
19267         * lib/mbsncasecmp.c: Likewise.
19268         * lib/mbsnlen.c: Likewise.
19269         * lib/mbspbrk.c: Likewise.
19270         * lib/mbspcasecmp.c: Likewise.
19271         * lib/mbsrchr.c: Likewise.
19272         * lib/mbssep.c: Likewise.
19273         * lib/mbsspn.c: Likewise.
19274         * lib/mbsstr.c: Likewise.
19275         * lib/mbstok_r.c: Likewise.
19276         * lib/mbswidth.c: Likewise.
19277         * lib/mbswidth.h: Likewise.
19278         * lib/mbuiter.h: Likewise.
19279         * lib/memcasecmp.c: Likewise.
19280         * lib/memcasecmp.h: Likewise.
19281         * lib/memchr.c: Likewise.
19282         * lib/memcmp.c: Likewise.
19283         * lib/memcoll.c: Likewise.
19284         * lib/memcoll.h: Likewise.
19285         * lib/memcpy.c: Likewise.
19286         * lib/memrchr.c: Likewise.
19287         * lib/mkancesdirs.c: Likewise.
19288         * lib/mkdir-p.c: Likewise.
19289         * lib/mkdir-p.h: Likewise.
19290         * lib/mkdir.c: Likewise.
19291         * lib/mkdirat.c: Likewise.
19292         * lib/mkdtemp.c: Likewise.
19293         * lib/mkstemp-safer.c: Likewise.
19294         * lib/mkstemp.c: Likewise.
19295         * lib/modechange.c: Likewise.
19296         * lib/modechange.h: Likewise.
19297         * lib/mountlist.c: Likewise.
19298         * lib/mountlist.h: Likewise.
19299         * lib/mpsort.c: Likewise.
19300         * lib/nanosleep.c: Likewise.
19301         * lib/obstack.c: Likewise.
19302         * lib/obstack.h: Likewise.
19303         * lib/open-safer.c: Likewise.
19304         * lib/open.c: Likewise.
19305         * lib/openat-die.c: Likewise.
19306         * lib/openat-priv.h: Likewise.
19307         * lib/openat-proc.c: Likewise.
19308         * lib/openat.c: Likewise.
19309         * lib/openat.h: Likewise.
19310         * lib/pagealign_alloc.c: Likewise.
19311         * lib/pagealign_alloc.h: Likewise.
19312         * lib/physmem.c: Likewise.
19313         * lib/physmem.h: Likewise.
19314         * lib/pipe-safer.c: Likewise.
19315         * lib/pipe.c: Likewise.
19316         * lib/pipe.h: Likewise.
19317         * lib/posixtm.c: Likewise.
19318         * lib/posixtm.h: Likewise.
19319         * lib/posixver.c: Likewise.
19320         * lib/printf-frexp.c: Likewise.
19321         * lib/printf-frexp.h: Likewise.
19322         * lib/printf-frexpl.c: Likewise.
19323         * lib/printf-frexpl.h: Likewise.
19324         * lib/printf.c: Likewise.
19325         * lib/progname.c: Likewise.
19326         * lib/progname.h: Likewise.
19327         * lib/progreloc.c: Likewise.
19328         * lib/putenv.c: Likewise.
19329         * lib/quote.c: Likewise.
19330         * lib/quote.h: Likewise.
19331         * lib/quotearg.c: Likewise.
19332         * lib/quotearg.h: Likewise.
19333         * lib/raise.c: Likewise.
19334         * lib/readline.c: Likewise.
19335         * lib/readline.h: Likewise.
19336         * lib/readlink.c: Likewise.
19337         * lib/readtokens.c: Likewise.
19338         * lib/readtokens.h: Likewise.
19339         * lib/readtokens0.c: Likewise.
19340         * lib/readtokens0.h: Likewise.
19341         * lib/readutmp.c: Likewise.
19342         * lib/readutmp.h: Likewise.
19343         * lib/realloc.c: Likewise.
19344         * lib/relocwrapper.c: Likewise.
19345         * lib/rename-dest-slash.c: Likewise.
19346         * lib/rename.c: Likewise.
19347         * lib/rmdir.c: Likewise.
19348         * lib/rpmatch.c: Likewise.
19349         * lib/safe-read.c: Likewise.
19350         * lib/safe-read.h: Likewise.
19351         * lib/safe-write.c: Likewise.
19352         * lib/safe-write.h: Likewise.
19353         * lib/same-inode.h: Likewise.
19354         * lib/same.c: Likewise.
19355         * lib/same.h: Likewise.
19356         * lib/save-cwd.c: Likewise.
19357         * lib/save-cwd.h: Likewise.
19358         * lib/savedir.c: Likewise.
19359         * lib/savedir.h: Likewise.
19360         * lib/savewd.c: Likewise.
19361         * lib/savewd.h: Likewise.
19362         * lib/search.in.h: Likewise.
19363         * lib/setenv.c: Likewise.
19364         * lib/setenv.h: Likewise.
19365         * lib/settime.c: Likewise.
19366         * lib/sh-quote.c: Likewise.
19367         * lib/sh-quote.h: Likewise.
19368         * lib/sig2str.c: Likewise.
19369         * lib/sig2str.h: Likewise.
19370         * lib/signal.in.h: Likewise.
19371         * lib/signbitd.c: Likewise.
19372         * lib/signbitf.c: Likewise.
19373         * lib/signbitl.c: Likewise.
19374         * lib/sigprocmask.c: Likewise.
19375         * lib/sincosl.c: Likewise.
19376         * lib/sleep.c: Likewise.
19377         * lib/sprintf.c: Likewise.
19378         * lib/sqrtl.c: Likewise.
19379         * lib/stat-time.h: Likewise.
19380         * lib/stdio--.h: Likewise.
19381         * lib/stdio-safer.h: Likewise.
19382         * lib/stdlib--.h: Likewise.
19383         * lib/stdlib-safer.h: Likewise.
19384         * lib/stdlib.in.h: Likewise.
19385         * lib/stpcpy.c: Likewise.
19386         * lib/stpncpy.c: Likewise.
19387         * lib/strchrnul.c: Likewise.
19388         * lib/strcspn.c: Likewise.
19389         * lib/strerror.c: Likewise.
19390         * lib/strftime.c: Likewise.
19391         * lib/strftime.h: Likewise.
19392         * lib/striconveh.c: Likewise.
19393         * lib/striconveh.h: Likewise.
19394         * lib/striconveha.c: Likewise.
19395         * lib/striconveha.h: Likewise.
19396         * lib/stripslash.c: Likewise.
19397         * lib/strnlen1.c: Likewise.
19398         * lib/strnlen1.h: Likewise.
19399         * lib/strtod.c: Likewise.
19400         * lib/strtoimax.c: Likewise.
19401         * lib/strtok_r.c: Likewise.
19402         * lib/strtol.c: Likewise.
19403         * lib/strtoll.c: Likewise.
19404         * lib/strtoul.c: Likewise.
19405         * lib/strtoull.c: Likewise.
19406         * lib/sysexits.in.h: Likewise.
19407         * lib/tempname.c: Likewise.
19408         * lib/tempname.h: Likewise.
19409         * lib/timespec.h: Likewise.
19410         * lib/tls.c: Likewise.
19411         * lib/tls.h: Likewise.
19412         * lib/tmpdir.c: Likewise.
19413         * lib/tmpdir.h: Likewise.
19414         * lib/tmpfile-safer.c: Likewise.
19415         * lib/tmpfile.c: Likewise.
19416         * lib/trigl.c: Likewise.
19417         * lib/trigl.h: Likewise.
19418         * lib/trim.c: Likewise.
19419         * lib/trim.h: Likewise.
19420         * lib/trunc.c: Likewise.
19421         * lib/truncf.c: Likewise.
19422         * lib/truncl.c: Likewise.
19423         * lib/tsearch.c: Likewise.
19424         * lib/unicodeio.c: Likewise.
19425         * lib/unicodeio.h: Likewise.
19426         * lib/unistd--.h: Likewise.
19427         * lib/unistd-safer.h: Likewise.
19428         * lib/unistdio/ulc-fprintf.c: Likewise.
19429         * lib/unistdio/ulc-vfprintf.c: Likewise.
19430         * lib/unlinkdir.c: Likewise.
19431         * lib/unlinkdir.h: Likewise.
19432         * lib/unlocked-io.h: Likewise.
19433         * lib/unsetenv.c: Likewise.
19434         * lib/userspec.c: Likewise.
19435         * lib/utime.c: Likewise.
19436         * lib/utimecmp.c: Likewise.
19437         * lib/utimecmp.h: Likewise.
19438         * lib/utimens.c: Likewise.
19439         * lib/verify.h: Likewise.
19440         * lib/verror.c: Likewise.
19441         * lib/verror.h: Likewise.
19442         * lib/version-etc-fsf.c: Likewise.
19443         * lib/version-etc.c: Likewise.
19444         * lib/version-etc.h: Likewise.
19445         * lib/vfprintf.c: Likewise.
19446         * lib/vprintf.c: Likewise.
19447         * lib/vsprintf.c: Likewise.
19448         * lib/w32spawn.h: Likewise.
19449         * lib/wait-process.c: Likewise.
19450         * lib/wait-process.h: Likewise.
19451         * lib/wcwidth.c: Likewise.
19452         * lib/write-any-file.c: Likewise.
19453         * lib/xalloc-die.c: Likewise.
19454         * lib/xalloc.h: Likewise.
19455         * lib/xasprintf.c: Likewise.
19456         * lib/xgetcwd.c: Likewise.
19457         * lib/xgetcwd.h: Likewise.
19458         * lib/xgetdomainname.c: Likewise.
19459         * lib/xgetdomainname.h: Likewise.
19460         * lib/xgethostname.c: Likewise.
19461         * lib/xmalloc.c: Likewise.
19462         * lib/xmalloca.c: Likewise.
19463         * lib/xmalloca.h: Likewise.
19464         * lib/xmemcoll.c: Likewise.
19465         * lib/xnanosleep.c: Likewise.
19466         * lib/xreadlink.c: Likewise.
19467         * lib/xreadlink.h: Likewise.
19468         * lib/xsetenv.c: Likewise.
19469         * lib/xsetenv.h: Likewise.
19470         * lib/xstriconv.c: Likewise.
19471         * lib/xstriconv.h: Likewise.
19472         * lib/xstrndup.c: Likewise.
19473         * lib/xstrndup.h: Likewise.
19474         * lib/xstrtod.c: Likewise.
19475         * lib/xstrtod.h: Likewise.
19476         * lib/xstrtol-error.c: Likewise.
19477         * lib/xstrtol.c: Likewise.
19478         * lib/xstrtol.h: Likewise.
19479         * lib/xtime.h: Likewise.
19480         * lib/xvasprintf.c: Likewise.
19481         * lib/xvasprintf.h: Likewise.
19482         * lib/yesno.c: Likewise.
19483         * lib/yesno.h: Likewise.
19484         * posix-modules: Likewise.
19485         * tests/test-alloca-opt.c: Likewise.
19486         * tests/test-arcfour.c: Likewise.
19487         * tests/test-arctwo.c: Likewise.
19488         * tests/test-argmatch.c: Likewise.
19489         * tests/test-argp-2.sh: Likewise.
19490         * tests/test-argp.c: Likewise.
19491         * tests/test-arpa_inet.c: Likewise.
19492         * tests/test-array_list.c: Likewise.
19493         * tests/test-array_oset.c: Likewise.
19494         * tests/test-atexit.c: Likewise.
19495         * tests/test-avltree_list.c: Likewise.
19496         * tests/test-avltree_oset.c: Likewise.
19497         * tests/test-avltreehash_list.c: Likewise.
19498         * tests/test-base64.c: Likewise.
19499         * tests/test-binary-io.c: Likewise.
19500         * tests/test-byteswap.c: Likewise.
19501         * tests/test-c-ctype.c: Likewise.
19502         * tests/test-c-strcasecmp.c: Likewise.
19503         * tests/test-c-strcasestr.c: Likewise.
19504         * tests/test-c-strncasecmp.c: Likewise.
19505         * tests/test-c-strstr.c: Likewise.
19506         * tests/test-canonicalize-lgpl.c: Likewise.
19507         * tests/test-canonicalize.c: Likewise.
19508         * tests/test-carray_list.c: Likewise.
19509         * tests/test-ceilf.c: Likewise.
19510         * tests/test-ceill.c: Likewise.
19511         * tests/test-count-one-bits.c: Likewise.
19512         * tests/test-crc.c: Likewise.
19513         * tests/test-dirname.c: Likewise.
19514         * tests/test-fbufmode.c: Likewise.
19515         * tests/test-fcntl.c: Likewise.
19516         * tests/test-fflush.c: Likewise.
19517         * tests/test-floorf.c: Likewise.
19518         * tests/test-floorl.c: Likewise.
19519         * tests/test-fopen.c: Likewise.
19520         * tests/test-fprintf-posix.c: Likewise.
19521         * tests/test-fprintf-posix.h: Likewise.
19522         * tests/test-fpurge.c: Likewise.
19523         * tests/test-freadable.c: Likewise.
19524         * tests/test-freadahead.c: Likewise.
19525         * tests/test-freading.c: Likewise.
19526         * tests/test-freopen.c: Likewise.
19527         * tests/test-frexp.c: Likewise.
19528         * tests/test-frexpl.c: Likewise.
19529         * tests/test-fseek.c: Likewise.
19530         * tests/test-fseeko.c: Likewise.
19531         * tests/test-fseterr.c: Likewise.
19532         * tests/test-fstrcmp.c: Likewise.
19533         * tests/test-ftell.c: Likewise.
19534         * tests/test-ftello.c: Likewise.
19535         * tests/test-fwritable.c: Likewise.
19536         * tests/test-fwriting.c: Likewise.
19537         * tests/test-getaddrinfo.c: Likewise.
19538         * tests/test-getpass.c: Likewise.
19539         * tests/test-gettimeofday.c: Likewise.
19540         * tests/test-hmac-md5.c: Likewise.
19541         * tests/test-hmac-sha1.c: Likewise.
19542         * tests/test-iconv.c: Likewise.
19543         * tests/test-iconvme.c: Likewise.
19544         * tests/test-inttypes.c: Likewise.
19545         * tests/test-isnan.c: Likewise.
19546         * tests/test-isnanf.c: Likewise.
19547         * tests/test-isnanl-nolibm.c: Likewise.
19548         * tests/test-isnanl.c: Likewise.
19549         * tests/test-isnanl.h: Likewise.
19550         * tests/test-ldexpl.c: Likewise.
19551         * tests/test-linked_list.c: Likewise.
19552         * tests/test-linkedhash_list.c: Likewise.
19553         * tests/test-locale.c: Likewise.
19554         * tests/test-localename.c: Likewise.
19555         * tests/test-lock.c: Likewise.
19556         * tests/test-lseek.c: Likewise.
19557         * tests/test-malloca.c: Likewise.
19558         * tests/test-math.c: Likewise.
19559         * tests/test-mbscasecmp.c: Likewise.
19560         * tests/test-mbscasestr1.c: Likewise.
19561         * tests/test-mbscasestr2.c: Likewise.
19562         * tests/test-mbscasestr3.c: Likewise.
19563         * tests/test-mbscasestr4.c: Likewise.
19564         * tests/test-mbschr.c: Likewise.
19565         * tests/test-mbscspn.c: Likewise.
19566         * tests/test-mbsncasecmp.c: Likewise.
19567         * tests/test-mbspbrk.c: Likewise.
19568         * tests/test-mbspcasecmp.c: Likewise.
19569         * tests/test-mbsrchr.c: Likewise.
19570         * tests/test-mbsspn.c: Likewise.
19571         * tests/test-mbsstr1.c: Likewise.
19572         * tests/test-mbsstr2.c: Likewise.
19573         * tests/test-mbsstr3.c: Likewise.
19574         * tests/test-md5.c: Likewise.
19575         * tests/test-memmem.c: Likewise.
19576         * tests/test-netinet_in.c: Likewise.
19577         * tests/test-open.c: Likewise.
19578         * tests/test-printf-frexp.c: Likewise.
19579         * tests/test-printf-frexpl.c: Likewise.
19580         * tests/test-printf-posix.c: Likewise.
19581         * tests/test-printf-posix.h: Likewise.
19582         * tests/test-rbtree_list.c: Likewise.
19583         * tests/test-rbtree_oset.c: Likewise.
19584         * tests/test-rbtreehash_list.c: Likewise.
19585         * tests/test-read-file.c: Likewise.
19586         * tests/test-rijndael.c: Likewise.
19587         * tests/test-search.c: Likewise.
19588         * tests/test-signbit.c: Likewise.
19589         * tests/test-sleep.c: Likewise.
19590         * tests/test-snprintf-posix.c: Likewise.
19591         * tests/test-snprintf-posix.h: Likewise.
19592         * tests/test-snprintf.c: Likewise.
19593         * tests/test-sprintf-posix.c: Likewise.
19594         * tests/test-sprintf-posix.h: Likewise.
19595         * tests/test-stat-time.c: Likewise.
19596         * tests/test-stdbool.c: Likewise.
19597         * tests/test-stdint.c: Likewise.
19598         * tests/test-stdio.c: Likewise.
19599         * tests/test-stdlib.c: Likewise.
19600         * tests/test-stpncpy.c: Likewise.
19601         * tests/test-strcasestr.c: Likewise.
19602         * tests/test-striconv.c: Likewise.
19603         * tests/test-striconveh.c: Likewise.
19604         * tests/test-striconveha.c: Likewise.
19605         * tests/test-string.c: Likewise.
19606         * tests/test-sys_select.c: Likewise.
19607         * tests/test-sys_socket.c: Likewise.
19608         * tests/test-sys_stat.c: Likewise.
19609         * tests/test-sys_time.c: Likewise.
19610         * tests/test-sysexits.c: Likewise.
19611         * tests/test-time.c: Likewise.
19612         * tests/test-tls.c: Likewise.
19613         * tests/test-trunc.c: Likewise.
19614         * tests/test-truncf.c: Likewise.
19615         * tests/test-truncl.c: Likewise.
19616         * tests/test-unistd.c: Likewise.
19617         * tests/test-vasnprintf-posix.c: Likewise.
19618         * tests/test-vasnprintf-posix2.c: Likewise.
19619         * tests/test-vasnprintf.c: Likewise.
19620         * tests/test-vasprintf-posix.c: Likewise.
19621         * tests/test-vasprintf.c: Likewise.
19622         * tests/test-verify.c: Likewise.
19623         * tests/test-vfprintf-posix.c: Likewise.
19624         * tests/test-vprintf-posix.c: Likewise.
19625         * tests/test-vsnprintf-posix.c: Likewise.
19626         * tests/test-vsnprintf.c: Likewise.
19627         * tests/test-vsprintf-posix.c: Likewise.
19628         * tests/test-wchar.c: Likewise.
19629         * tests/test-wctype.c: Likewise.
19630         * tests/test-wcwidth.c: Likewise.
19631         * tests/test-xstrtol.c: Likewise.
19632         * tests/test-xvasprintf.c: Likewise.
19633         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19634         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19635         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19636         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19637         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19638         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19639         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19640         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19641         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19642         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19643         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19644         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19645         * tests/uniname/test-uninames.c: Likewise.
19646         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19647         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
19648         * tests/unistdio/test-u16-printf1.h: Likewise.
19649         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19650         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19651         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19652         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19653         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19654         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19655         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19656         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
19657         * tests/unistdio/test-u32-printf1.h: Likewise.
19658         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19659         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19660         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19661         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19662         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19663         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19664         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19665         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
19666         * tests/unistdio/test-u8-printf1.h: Likewise.
19667         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19668         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19669         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19670         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19671         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19672         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19673         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19674         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
19675         * tests/unistdio/test-ulc-printf1.h: Likewise.
19676         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19677         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19678         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19679         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19680         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19681         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19682         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19683         * tests/uniwidth/test-u16-width.c: Likewise.
19684         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19685         * tests/uniwidth/test-u32-width.c: Likewise.
19686         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19687         * tests/uniwidth/test-u8-width.c: Likewise.
19688         * tests/uniwidth/test-uc_width.c: Likewise.
19689         * config/srclist-update: Likewise.
19690         (fixlicense): Update to GPLv3+.
19691
19692         Change copyright notice from LGPLv2.1+ to LGPLv3+.
19693         * tests/test-tsearch.c: Change copyright notice.
19694
19695         Change copyright notice from LGPLv2.0+ to LGPLv3+.
19696         * lib/c-strcaseeq.h: Change copyright notice.
19697         * lib/streq.h: Likewise.
19698         * lib/uniconv.h: Likewise.
19699         * lib/uniconv/u-conv-from-enc.h: Likewise.
19700         * lib/uniconv/u-conv-to-enc.h: Likewise.
19701         * lib/uniconv/u-strconv-from-enc.h: Likewise.
19702         * lib/uniconv/u-strconv-to-enc.h: Likewise.
19703         * lib/uniconv/u16-conv-from-enc.c: Likewise.
19704         * lib/uniconv/u16-conv-to-enc.c: Likewise.
19705         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
19706         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
19707         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
19708         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
19709         * lib/uniconv/u32-conv-from-enc.c: Likewise.
19710         * lib/uniconv/u32-conv-to-enc.c: Likewise.
19711         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
19712         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
19713         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
19714         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
19715         * lib/uniconv/u8-conv-from-enc.c: Likewise.
19716         * lib/uniconv/u8-conv-to-enc.c: Likewise.
19717         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
19718         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
19719         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
19720         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
19721         * lib/uniname.h: Likewise.
19722         * lib/uniname/uniname.c: Likewise.
19723         * lib/unistdio.h: Likewise.
19724         * lib/unistdio/u-asnprintf.h: Likewise.
19725         * lib/unistdio/u-asprintf.h: Likewise.
19726         * lib/unistdio/u-printf-args.c: Likewise.
19727         * lib/unistdio/u-printf-args.h: Likewise.
19728         * lib/unistdio/u-printf-parse.h: Likewise.
19729         * lib/unistdio/u-snprintf.h: Likewise.
19730         * lib/unistdio/u-sprintf.h: Likewise.
19731         * lib/unistdio/u-vasprintf.h: Likewise.
19732         * lib/unistdio/u-vsnprintf.h: Likewise.
19733         * lib/unistdio/u-vsprintf.h: Likewise.
19734         * lib/unistdio/u16-asnprintf.c: Likewise.
19735         * lib/unistdio/u16-asprintf.c: Likewise.
19736         * lib/unistdio/u16-printf-parse.c: Likewise.
19737         * lib/unistdio/u16-snprintf.c: Likewise.
19738         * lib/unistdio/u16-sprintf.c: Likewise.
19739         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
19740         * lib/unistdio/u16-u16-asprintf.c: Likewise.
19741         * lib/unistdio/u16-u16-snprintf.c: Likewise.
19742         * lib/unistdio/u16-u16-sprintf.c: Likewise.
19743         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
19744         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
19745         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
19746         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
19747         * lib/unistdio/u16-vasnprintf.c: Likewise.
19748         * lib/unistdio/u16-vasprintf.c: Likewise.
19749         * lib/unistdio/u16-vsnprintf.c: Likewise.
19750         * lib/unistdio/u16-vsprintf.c: Likewise.
19751         * lib/unistdio/u32-asnprintf.c: Likewise.
19752         * lib/unistdio/u32-asprintf.c: Likewise.
19753         * lib/unistdio/u32-printf-parse.c: Likewise.
19754         * lib/unistdio/u32-snprintf.c: Likewise.
19755         * lib/unistdio/u32-sprintf.c: Likewise.
19756         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
19757         * lib/unistdio/u32-u32-asprintf.c: Likewise.
19758         * lib/unistdio/u32-u32-snprintf.c: Likewise.
19759         * lib/unistdio/u32-u32-sprintf.c: Likewise.
19760         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
19761         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
19762         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
19763         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
19764         * lib/unistdio/u32-vasnprintf.c: Likewise.
19765         * lib/unistdio/u32-vasprintf.c: Likewise.
19766         * lib/unistdio/u32-vsnprintf.c: Likewise.
19767         * lib/unistdio/u32-vsprintf.c: Likewise.
19768         * lib/unistdio/u8-asnprintf.c: Likewise.
19769         * lib/unistdio/u8-asprintf.c: Likewise.
19770         * lib/unistdio/u8-printf-parse.c: Likewise.
19771         * lib/unistdio/u8-snprintf.c: Likewise.
19772         * lib/unistdio/u8-sprintf.c: Likewise.
19773         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
19774         * lib/unistdio/u8-u8-asprintf.c: Likewise.
19775         * lib/unistdio/u8-u8-snprintf.c: Likewise.
19776         * lib/unistdio/u8-u8-sprintf.c: Likewise.
19777         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
19778         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
19779         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
19780         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
19781         * lib/unistdio/u8-vasnprintf.c: Likewise.
19782         * lib/unistdio/u8-vasprintf.c: Likewise.
19783         * lib/unistdio/u8-vsnprintf.c: Likewise.
19784         * lib/unistdio/u8-vsprintf.c: Likewise.
19785         * lib/unistdio/ulc-asnprintf.c: Likewise.
19786         * lib/unistdio/ulc-asprintf.c: Likewise.
19787         * lib/unistdio/ulc-printf-parse.c: Likewise.
19788         * lib/unistdio/ulc-snprintf.c: Likewise.
19789         * lib/unistdio/ulc-sprintf.c: Likewise.
19790         * lib/unistdio/ulc-vasnprintf.c: Likewise.
19791         * lib/unistdio/ulc-vasprintf.c: Likewise.
19792         * lib/unistdio/ulc-vsnprintf.c: Likewise.
19793         * lib/unistdio/ulc-vsprintf.c: Likewise.
19794         * lib/unistr.h: Likewise.
19795         * lib/unistr/u-cpy-alloc.h: Likewise.
19796         * lib/unistr/u-cpy.h: Likewise.
19797         * lib/unistr/u-endswith.h: Likewise.
19798         * lib/unistr/u-move.h: Likewise.
19799         * lib/unistr/u-set.h: Likewise.
19800         * lib/unistr/u-startswith.h: Likewise.
19801         * lib/unistr/u-stpcpy.h: Likewise.
19802         * lib/unistr/u-stpncpy.h: Likewise.
19803         * lib/unistr/u-strcat.h: Likewise.
19804         * lib/unistr/u-strcpy.h: Likewise.
19805         * lib/unistr/u-strcspn.h: Likewise.
19806         * lib/unistr/u-strdup.h: Likewise.
19807         * lib/unistr/u-strlen.h: Likewise.
19808         * lib/unistr/u-strncat.h: Likewise.
19809         * lib/unistr/u-strncpy.h: Likewise.
19810         * lib/unistr/u-strnlen.h: Likewise.
19811         * lib/unistr/u-strpbrk.h: Likewise.
19812         * lib/unistr/u-strspn.h: Likewise.
19813         * lib/unistr/u-strstr.h: Likewise.
19814         * lib/unistr/u-strtok.h: Likewise.
19815         * lib/unistr/u16-check.c: Likewise.
19816         * lib/unistr/u16-chr.c: Likewise.
19817         * lib/unistr/u16-cmp.c: Likewise.
19818         * lib/unistr/u16-cpy-alloc.c: Likewise.
19819         * lib/unistr/u16-cpy.c: Likewise.
19820         * lib/unistr/u16-endswith.c: Likewise.
19821         * lib/unistr/u16-mblen.c: Likewise.
19822         * lib/unistr/u16-mbsnlen.c: Likewise.
19823         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19824         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19825         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19826         * lib/unistr/u16-mbtouc.c: Likewise.
19827         * lib/unistr/u16-mbtoucr.c: Likewise.
19828         * lib/unistr/u16-move.c: Likewise.
19829         * lib/unistr/u16-next.c: Likewise.
19830         * lib/unistr/u16-prev.c: Likewise.
19831         * lib/unistr/u16-set.c: Likewise.
19832         * lib/unistr/u16-startswith.c: Likewise.
19833         * lib/unistr/u16-stpcpy.c: Likewise.
19834         * lib/unistr/u16-stpncpy.c: Likewise.
19835         * lib/unistr/u16-strcat.c: Likewise.
19836         * lib/unistr/u16-strchr.c: Likewise.
19837         * lib/unistr/u16-strcmp.c: Likewise.
19838         * lib/unistr/u16-strcpy.c: Likewise.
19839         * lib/unistr/u16-strcspn.c: Likewise.
19840         * lib/unistr/u16-strdup.c: Likewise.
19841         * lib/unistr/u16-strlen.c: Likewise.
19842         * lib/unistr/u16-strmblen.c: Likewise.
19843         * lib/unistr/u16-strmbtouc.c: Likewise.
19844         * lib/unistr/u16-strncat.c: Likewise.
19845         * lib/unistr/u16-strncmp.c: Likewise.
19846         * lib/unistr/u16-strncpy.c: Likewise.
19847         * lib/unistr/u16-strnlen.c: Likewise.
19848         * lib/unistr/u16-strpbrk.c: Likewise.
19849         * lib/unistr/u16-strrchr.c: Likewise.
19850         * lib/unistr/u16-strspn.c: Likewise.
19851         * lib/unistr/u16-strstr.c: Likewise.
19852         * lib/unistr/u16-strtok.c: Likewise.
19853         * lib/unistr/u16-to-u32.c: Likewise.
19854         * lib/unistr/u16-to-u8.c: Likewise.
19855         * lib/unistr/u16-uctomb-aux.c: Likewise.
19856         * lib/unistr/u16-uctomb.c: Likewise.
19857         * lib/unistr/u32-check.c: Likewise.
19858         * lib/unistr/u32-chr.c: Likewise.
19859         * lib/unistr/u32-cmp.c: Likewise.
19860         * lib/unistr/u32-cpy-alloc.c: Likewise.
19861         * lib/unistr/u32-cpy.c: Likewise.
19862         * lib/unistr/u32-endswith.c: Likewise.
19863         * lib/unistr/u32-mblen.c: Likewise.
19864         * lib/unistr/u32-mbsnlen.c: Likewise.
19865         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19866         * lib/unistr/u32-mbtouc.c: Likewise.
19867         * lib/unistr/u32-mbtoucr.c: Likewise.
19868         * lib/unistr/u32-move.c: Likewise.
19869         * lib/unistr/u32-next.c: Likewise.
19870         * lib/unistr/u32-prev.c: Likewise.
19871         * lib/unistr/u32-set.c: Likewise.
19872         * lib/unistr/u32-startswith.c: Likewise.
19873         * lib/unistr/u32-stpcpy.c: Likewise.
19874         * lib/unistr/u32-stpncpy.c: Likewise.
19875         * lib/unistr/u32-strcat.c: Likewise.
19876         * lib/unistr/u32-strchr.c: Likewise.
19877         * lib/unistr/u32-strcmp.c: Likewise.
19878         * lib/unistr/u32-strcpy.c: Likewise.
19879         * lib/unistr/u32-strcspn.c: Likewise.
19880         * lib/unistr/u32-strdup.c: Likewise.
19881         * lib/unistr/u32-strlen.c: Likewise.
19882         * lib/unistr/u32-strmblen.c: Likewise.
19883         * lib/unistr/u32-strmbtouc.c: Likewise.
19884         * lib/unistr/u32-strncat.c: Likewise.
19885         * lib/unistr/u32-strncmp.c: Likewise.
19886         * lib/unistr/u32-strncpy.c: Likewise.
19887         * lib/unistr/u32-strnlen.c: Likewise.
19888         * lib/unistr/u32-strpbrk.c: Likewise.
19889         * lib/unistr/u32-strrchr.c: Likewise.
19890         * lib/unistr/u32-strspn.c: Likewise.
19891         * lib/unistr/u32-strstr.c: Likewise.
19892         * lib/unistr/u32-strtok.c: Likewise.
19893         * lib/unistr/u32-to-u16.c: Likewise.
19894         * lib/unistr/u32-to-u8.c: Likewise.
19895         * lib/unistr/u32-uctomb.c: Likewise.
19896         * lib/unistr/u8-check.c: Likewise.
19897         * lib/unistr/u8-chr.c: Likewise.
19898         * lib/unistr/u8-cmp.c: Likewise.
19899         * lib/unistr/u8-cpy-alloc.c: Likewise.
19900         * lib/unistr/u8-cpy.c: Likewise.
19901         * lib/unistr/u8-endswith.c: Likewise.
19902         * lib/unistr/u8-mblen.c: Likewise.
19903         * lib/unistr/u8-mbsnlen.c: Likewise.
19904         * lib/unistr/u8-mbtouc-aux.c: Likewise.
19905         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19906         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19907         * lib/unistr/u8-mbtouc.c: Likewise.
19908         * lib/unistr/u8-mbtoucr.c: Likewise.
19909         * lib/unistr/u8-move.c: Likewise.
19910         * lib/unistr/u8-next.c: Likewise.
19911         * lib/unistr/u8-prev.c: Likewise.
19912         * lib/unistr/u8-set.c: Likewise.
19913         * lib/unistr/u8-startswith.c: Likewise.
19914         * lib/unistr/u8-stpcpy.c: Likewise.
19915         * lib/unistr/u8-stpncpy.c: Likewise.
19916         * lib/unistr/u8-strcat.c: Likewise.
19917         * lib/unistr/u8-strchr.c: Likewise.
19918         * lib/unistr/u8-strcmp.c: Likewise.
19919         * lib/unistr/u8-strcpy.c: Likewise.
19920         * lib/unistr/u8-strcspn.c: Likewise.
19921         * lib/unistr/u8-strdup.c: Likewise.
19922         * lib/unistr/u8-strlen.c: Likewise.
19923         * lib/unistr/u8-strmblen.c: Likewise.
19924         * lib/unistr/u8-strmbtouc.c: Likewise.
19925         * lib/unistr/u8-strncat.c: Likewise.
19926         * lib/unistr/u8-strncmp.c: Likewise.
19927         * lib/unistr/u8-strncpy.c: Likewise.
19928         * lib/unistr/u8-strnlen.c: Likewise.
19929         * lib/unistr/u8-strpbrk.c: Likewise.
19930         * lib/unistr/u8-strrchr.c: Likewise.
19931         * lib/unistr/u8-strspn.c: Likewise.
19932         * lib/unistr/u8-strstr.c: Likewise.
19933         * lib/unistr/u8-strtok.c: Likewise.
19934         * lib/unistr/u8-to-u16.c: Likewise.
19935         * lib/unistr/u8-to-u32.c: Likewise.
19936         * lib/unistr/u8-uctomb-aux.c: Likewise.
19937         * lib/unistr/u8-uctomb.c: Likewise.
19938         * lib/unitypes.h: Likewise.
19939         * lib/uniwidth.h: Likewise.
19940         * lib/uniwidth/cjk.h: Likewise.
19941         * lib/uniwidth/u16-strwidth.c: Likewise.
19942         * lib/uniwidth/u16-width.c: Likewise.
19943         * lib/uniwidth/u32-strwidth.c: Likewise.
19944         * lib/uniwidth/u32-width.c: Likewise.
19945         * lib/uniwidth/u8-strwidth.c: Likewise.
19946         * lib/uniwidth/u8-width.c: Likewise.
19947         * lib/uniwidth/width.c: Likewise.
19948
19949 2007-10-07  Bruno Haible  <bruno@clisp.org>
19950
19951         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
19952         The file is still under LGPL (see modules/inttypes).
19953
19954 2007-10-06  Bruno Haible  <bruno@clisp.org>
19955
19956         * modules/trunc (Dependencies): Add 'extensions'.
19957         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
19958         Reported by Ben Pfaff <blp@gnu.org>.
19959
19960 2007-10-06  Bruno Haible  <bruno@clisp.org>
19961
19962         * modules/freopen-tests: New file.
19963         * tests/test-freopen.c: New file.
19964
19965         * modules/fopen-tests: New file.
19966         * tests/test-fopen.c: New file.
19967
19968         * modules/fopen: New file.
19969         * lib/fopen.c: New file.
19970         * m4/fopen.m4: New file.
19971         * modules/freopen: New file.
19972         * lib/freopen.c: New file.
19973         * m4/freopen.m4: New file.
19974         * lib/stdio.in.h (fopen, freopen): New declarations.
19975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
19976         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19977         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
19978         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
19979         * doc/functions/fopen.texi: Mention the 'fopen' module.
19980         * doc/functions/freopen.texi: Mention the 'freopen' module.
19981
19982 2007-10-06  Bruno Haible  <bruno@clisp.org>
19983
19984         * modules/open-tests: New file.
19985         * tests/test-open.c: New file.
19986
19987         * modules/open: New file.
19988         * lib/open.c: New file.
19989         * m4/open.m4: New file.
19990         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
19991         lib/open.c does.
19992         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
19993         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
19994         macros.
19995         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
19996         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
19997         REPLACE_OPEN.
19998         * doc/functions/open.texi: Mention the 'open' module.
19999
20000 2007-10-04  Bruno Haible  <bruno@clisp.org>
20001
20002         * modules/ceill-tests: New file.
20003         * tests/test-ceill.c: New file.
20004
20005         * modules/ceill: New file.
20006         * lib/ceill.c: Replace entire file.
20007         * m4/ceill.m4: New file.
20008         * lib/math.in.h (ceill): Replace declaration.
20009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
20010         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
20011         * doc/functions/ceill.texi: Mention the 'ceill' module.
20012         * modules/mathl (Files): Remove lib/ceill.c.
20013         (Depends-on): Add ceill.
20014
20015 2007-10-04  Bruno Haible  <bruno@clisp.org>
20016
20017         * modules/ceilf-tests: New file.
20018         * tests/test-ceilf.c: New file.
20019
20020         * modules/ceilf: New file.
20021         * lib/ceil.c: New file.
20022         * lib/ceilf.c: New file.
20023         * m4/ceilf.m4: New file.
20024         * lib/math.in.h (ceilf): New declaration.
20025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
20026         HAVE_DECL_CEILF.
20027         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
20028         HAVE_DECL_CEILF.
20029         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
20030
20031 2007-10-04  Bruno Haible  <bruno@clisp.org>
20032
20033         * modules/floorl-tests: New file.
20034         * tests/test-floorl.c: New file.
20035
20036         * modules/floorl: New file.
20037         * lib/floorl.c: Replace entire file.
20038         * m4/floorl.m4: New file.
20039         * lib/math.in.h (floorl): Replace declaration.
20040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
20041         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
20042         * doc/functions/floorl.texi: Mention the 'floorl' module.
20043         * modules/mathl (Files): Remove lib/floorl.c.
20044         (Depends-on): Add floorl.
20045
20046 2007-10-04  Bruno Haible  <bruno@clisp.org>
20047
20048         * modules/floorf-tests: New file.
20049         * tests/test-floorf.c: New file.
20050
20051         * modules/floorf: New file.
20052         * lib/floor.c: New file.
20053         * lib/floorf.c: New file.
20054         * m4/floorf.m4: New file.
20055         * lib/math.in.h (floorf): New declaration.
20056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
20057         HAVE_DECL_FLOORF.
20058         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
20059         HAVE_DECL_FLOORF.
20060         * doc/functions/floorf.texi: Mention the 'floorf' module.
20061
20062 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
20063             Bruno Haible  <bruno@clisp.org>
20064
20065         Advertise for the Git server instead of the CVS server.
20066         * doc/gnulib-intro.texi (Steady Development): Mention the Git
20067         repository instead of the CVS one.
20068         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
20069         about all VCS systems generically.
20070         * doc/gnulib.texi (Introduction): Capitalize `Git'.
20071
20072 2007-10-04  Bruno Haible  <bruno@clisp.org>
20073
20074         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
20075         means.
20076         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
20077
20078 2007-10-04  Bruno Haible  <bruno@clisp.org>
20079
20080         * modules/truncl-tests: New file.
20081         * tests/test-truncl.c: New file.
20082
20083         * modules/truncl: New file.
20084         * lib/truncl.c: New file.
20085         * m4/truncl.m4: New file.
20086         * lib/math.in.h (truncl): New declaration.
20087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
20088         HAVE_DECL_TRUNCL.
20089         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
20090         HAVE_DECL_TRUNCL.
20091         * doc/functions/truncl.texi: Mention the 'truncl' module.
20092
20093 2007-10-04  Bruno Haible  <bruno@clisp.org>
20094
20095         * modules/truncf-tests: New file.
20096         * tests/test-truncf.c: New file.
20097
20098         * modules/truncf: New file.
20099         * lib/trunc.c: Make paramerizable through USE_* macros.
20100         * lib/truncf.c: New file.
20101         * m4/truncf.m4: New file.
20102         * lib/math.in.h (truncf): New declaration.
20103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
20104         HAVE_DECL_TRUNCF.
20105         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
20106         HAVE_DECL_TRUNCF.
20107         * doc/functions/truncf.texi: Mention the 'truncf' module.
20108
20109 2007-10-03  Bruno Haible  <bruno@clisp.org>
20110
20111         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20112         augmentation also for tests modules.
20113         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
20114         * modules/atexit-tests (Makefile.am): Likewise.
20115         * modules/binary-io-tests (Makefile.am): Likewise.
20116         * modules/c-strcase-tests (Makefile.am): Likewise.
20117         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
20118         * modules/canonicalize-tests (Makefile.am): Likewise.
20119         * modules/closein-tests (Makefile.am): Likewise.
20120         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20121         * modules/freadahead-tests (Makefile.am): Likewise.
20122         * modules/fseek-tests (Makefile.am): Likewise.
20123         * modules/fseeko-tests (Makefile.am): Likewise.
20124         * modules/ftell-tests (Makefile.am): Likewise.
20125         * modules/ftello-tests (Makefile.am): Likewise.
20126         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
20127         * modules/isnanl-tests (Makefile.am): Likewise.
20128         * modules/lseek-tests (Makefile.am): Likewise.
20129         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20130         * modules/mbscasestr-tests (Makefile.am): Likewise.
20131         * modules/mbschr-tests (Makefile.am): Likewise.
20132         * modules/mbscspn-tests (Makefile.am): Likewise.
20133         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20134         * modules/mbspbrk-tests (Makefile.am): Likewise.
20135         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20136         * modules/mbsrchr-tests (Makefile.am): Likewise.
20137         * modules/mbsspn-tests (Makefile.am): Likewise.
20138         * modules/mbsstr-tests (Makefile.am): Likewise.
20139         * modules/printf-posix-tests (Makefile.am): Likewise.
20140         * modules/snprintf-posix-tests (Makefile.am): Likewise.
20141         * modules/sprintf-posix-tests (Makefile.am): Likewise.
20142         * modules/tsearch-tests (Makefile.am): Likewise.
20143         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20144         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20145         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20146         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20147         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20148         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20149         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20150         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20151         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
20152         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
20153         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20154         * modules/xstrtol-tests (Makefile.am): Likewise.
20155         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20156         * modules/yesno-tests (Makefile.am): Likewise.
20157
20158 2007-10-03  Bruno Haible  <bruno@clisp.org>
20159
20160         * modules/trunc-tests: New file.
20161         * tests/test-trunc.c: New file.
20162
20163         * modules/trunc: New file.
20164         * lib/trunc.c: New file.
20165         * m4/trunc.m4: New file.
20166         * lib/math.in.h (trunc): New declaration.
20167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
20168         HAVE_DECL_TRUNC.
20169         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
20170         HAVE_DECL_TRUNC.
20171         * doc/functions/trunc.texi: Mention the 'trunc' module.
20172
20173 2007-10-03  Bruno Haible  <bruno@clisp.org>
20174
20175         * tests/test-fpending.c: New file, mostly copied
20176         from coreutils/lib/t-fpending.c.
20177         * modules/fpending-tests: New file.
20178
20179 2007-10-03  Bruno Haible  <bruno@clisp.org>
20180
20181         Port the stdio extensions to QNX (untested).
20182         * lib/fseterr.c (fseterr): Add support for QNX.
20183         * lib/fbufmode.c (fbufmode): Likewise.
20184         * lib/freadable.c (freadable): Likewise.
20185         * lib/fwritable.c (fwritable): Likewise.
20186         * lib/freading.c (freading): Likewise.
20187         * lib/fwriting.c (fwriting): Likewise.
20188         * lib/freadahead.c (freadahed): Likewise.
20189         * lib/fpurge.c (fpurge): Likewise.
20190         * lib/fseeko.c (rpl_fseeko): Likewise.
20191
20192 2007-10-03  Bruno Haible  <bruno@clisp.org>
20193             Jim Meyering  <jim@meyering.net>
20194             Eric Blake  <ebb9@byu.net>
20195
20196         * doc/relocatable.texi: Use @command instead of @program.
20197
20198 2007-10-02  Jim Meyering  <jim@meyering.net>
20199
20200         Perform one more "_.h" -> ".in.h" substitution.
20201         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
20202         instead of unistd_.h here, too.
20203
20204 2007-10-01  Bruno Haible  <bruno@clisp.org>
20205
20206         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
20207         Needed for the alloca-opt module.
20208
20209 2007-09-30  Bruno Haible  <bruno@clisp.org>
20210
20211         * lib/alloca.in.h: Renamed from lib/alloca_.h.
20212         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
20213         alloca_.h.
20214         * lib/argz.in.h: Renamed from lib/argz_.h.
20215         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
20216         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
20217         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
20218         byteswap_.h.
20219         * lib/dirent.in.h: Renamed from lib/dirent_.h.
20220         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
20221         dirent_.h.
20222         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
20223         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
20224         fcntl_.h.
20225         * lib/float.in.h: Renamed from lib/float_.h.
20226         * modules/float (Files, Makefile.am): Use float.in.h instead of
20227         float_.h.
20228         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
20229         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
20230         fnmatch_.h.
20231         * lib/getopt.in.h: Renamed from lib/getopt_.h.
20232         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
20233         getopt_.h.
20234         * lib/glob.in.h: Renamed from lib/glob_.h.
20235         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
20236         * lib/iconv.in.h: Renamed from lib/iconv_.h.
20237         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
20238         iconv_.h.
20239         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
20240         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
20241         inttypes_.h.
20242         * lib/locale.in.h: Renamed from lib/locale_.h.
20243         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
20244         locale_.h.
20245         * lib/math.in.h: Renamed from lib/math_.h.
20246         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
20247         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
20248         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
20249         of netinet_in_.h. Add dependency.
20250         * lib/poll.in.h: Renamed from lib/poll_.h.
20251         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
20252         * lib/search.in.h: Renamed from lib/search_.h.
20253         * modules/search (Files, Makefile.am): Use search.in.h instead of
20254         search_.h.
20255         * lib/signal.in.h: Renamed from lib/signal_.h.
20256         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
20257         _signal.h.
20258         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
20259         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
20260         stdbool_.h.
20261         * lib/stdint.in.h: Renamed from lib/stdint_.h.
20262         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
20263         stdint_.h.
20264         * lib/stdio.in.h: Renamed from lib/stdio_.h.
20265         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
20266         stdio_.h.
20267         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
20268         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
20269         stdlib_.h.
20270         * lib/string.in.h: Renamed from lib/string_.h.
20271         * modules/string (Files, Makefile.am): Use string.in.h instead of
20272         string_.h.
20273         * doc/gnulib-tool.texi (Initial import): Update.
20274         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
20275         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
20276         of sys_select_.h. Add dependency.
20277         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
20278         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
20279         of sys_socket_.h.
20280         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
20281         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
20282         sys_stat_.h.
20283         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
20284         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
20285         sys_time_.h.
20286         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
20287         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
20288         sysexits_.h.
20289         * lib/time.in.h: Renamed from lib/time_.h.
20290         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
20291         * lib/unistd.in.h: Renamed from lib/unistd_.h.
20292         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
20293         unistd_.h.
20294         * lib/wchar.in.h: Renamed from lib/wchar_.h.
20295         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
20296         wchar_.h.
20297         * lib/wctype.in.h: Renamed from lib/wctype_.h.
20298         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
20299         wctype_.h.
20300         * build-aux/bootstrap (slurp): Update.
20301         * lib/.cppi-disable: Update.
20302
20303 2007-09-30  Bruno Haible  <bruno@clisp.org>
20304
20305         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
20306         Needed on BeOS.
20307
20308 2007-09-30  Bruno Haible  <bruno@clisp.org>
20309
20310         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
20311
20312 2007-09-29  Bruno Haible  <bruno@clisp.org>
20313
20314         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
20315
20316 2007-09-29  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
20319         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
20320         * build-aux/install-reloc: Compile also areadlink.c.
20321         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
20322
20323 2007-09-29  Bruno Haible  <bruno@clisp.org>
20324
20325         * gnulib-tool (func_emit_initmacro_done): Indentation.
20326
20327 2007-09-29  Bruno Haible  <bruno@clisp.org>
20328
20329         * README: Add CVS checkout update instructions.
20330         Info from Bob Proulx <bob@proulx.com>.
20331
20332 2007-09-28  Eric Blake  <ebb9@byu.net>
20333
20334         Provide move-if-change.
20335         * build-aux/move-if-change: New file, based on best practice
20336         rather than any canonical upstream location.
20337
20338 2007-09-28  Jim Meyering  <jim@meyering.net>
20339
20340         Fix canonicalize loop-detection corner case.
20341         Do not attempt to stat the symlink values stored via seen_triple.
20342         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
20343         on linux-2.6.18, (but not 2.6.22).
20344         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
20345         triple_compare.  The former compares dev,ino,filename, while the latter
20346         would actually stat dirname(filename) when dev and ino were equal.
20347         * lib/hash-triple.c: Install <string.h>.
20348         (STREQ): Define.
20349         (triple_compare_ino_str): New function.
20350         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
20351
20352 2007-09-28  Eric Blake  <ebb9@byu.net>
20353
20354         Enforce that AC_REPLACE_FUNCS files exist.
20355         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
20356         override check for typos.
20357
20358         Fix test-closein on Solaris 10.
20359         * tests/test-closein.c (main): Don't assume stdin can be inherited
20360         closed on all systems.
20361         * tests/test-closein.sh: Likewise.
20362         Reported by Piotr Tarnowski.
20363
20364 2007-09-28  Jim Meyering  <jim@meyering.net>
20365
20366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
20367
20368 2007-09-27  Jim Meyering  <jim@meyering.net>
20369
20370         canonicalize: Avoid a false-positive cycle failure.
20371         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
20372         Sort.  Remove cycle-check.
20373         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
20374         not cycle-check.h.
20375         (seen_triple): New function.
20376         (canonicalize_filename_mode): Use it instead of cycle-check.
20377         * tests/test-canonicalize.c: Add a test for this bug.
20378         * tests/test-canonicalize.sh: Set up and run the test.
20379
20380         New module, file-set, from coreutils.
20381         * modules/file-set: Define it.
20382         * lib/file-set.c, lib/file-set.h: Implement.
20383
20384         New module, hash-triple, from coreutils.
20385         * modules/hash-triple: Define it.
20386         * lib/hash-triple.c, lib/hash-triple.h: Implement.
20387
20388 2007-09-25  Eric Blake  <ebb9@byu.net>
20389
20390         Fix strerror on Interix.
20391         * lib/string_.h (strerror): Declare replacement.
20392         * doc/functions/strerror.texi (strerror): Document the Interix
20393         shortcoming.
20394         * modules/string (Makefile.am): Support new hooks.
20395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
20396         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
20397         gl_FUNC_STRERROR_SEPARATE.
20398         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
20399         * lib/strerror.c (rpl_strerror): Provide replacement.
20400         * modules/strerror (Depends-on): Add string.
20401         (configure.ac): Detect use of module.
20402         * tests/test-strerror.c: New file.
20403         * modules/strerror-tests: New test module.
20404         * modules/argp (Depends-on): Add strerror.
20405         * modules/error (Depends-on): Likewise.
20406         Reported by Martin Koeppe.
20407
20408 2007-09-24  Bruno Haible  <bruno@clisp.org>
20409
20410         * README: Update git instructions.
20411
20412 2007-09-24  Eric Blake  <ebb9@byu.net>
20413
20414         Revert fpending breakage from 2007-09-08.
20415         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
20416         __fpending.c.
20417
20418 2007-09-24  Jim Meyering  <jim@meyering.net>
20419
20420         filenamecat.c: Add a test.
20421         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
20422         showing how the function works when DIR is the empty string.
20423
20424 2007-09-21  Simon Josefsson  <simon@josefsson.org>
20425
20426         * tests/test-canonicalize.sh: Turn on executable bit.
20427
20428 2007-09-19  Eric Blake  <ebb9@byu.net>
20429
20430         * README: Update CVS instructions.
20431
20432 2007-09-18  Bruno Haible  <bruno@clisp.org>
20433
20434         * modules/areadlink: New file.
20435         * lib/areadlink.h (areadlink): New declaration.
20436         * lib/areadlink.c: New file, based on lib/xreadlink.c.
20437
20438 2007-09-17  Jim Meyering  <jim@meyering.net>
20439
20440         * lib/savewd.c (ESTALE) [!defined]: Define.
20441         Reported to be required on Interix by Martin Koeppe.
20442
20443 2007-09-17  Bruno Haible  <bruno@clisp.org>
20444
20445         * gnulib-tool (func_version): Use $version.
20446
20447 2007-09-16  Bruno Haible  <bruno@clisp.org>
20448
20449         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
20450         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
20451         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
20452         Reported by Greg Schafer <gschafer@zip.com.au>.
20453
20454 2007-09-15  Bruno Haible  <bruno@clisp.org>
20455
20456         * gnulib-tool (sed): Try a little harder to make bash understand the
20457         alias.
20458         Reported by Bruce Korb <bruce.korb@gmail.com>.
20459
20460 2007-09-13  Eric Blake  <ebb9@byu.net>
20461
20462         * ChangeLog: Remove conflict markers.
20463
20464 2007-09-13  Simon Josefsson  <simon@josefsson.org>
20465
20466         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
20467         Reported by Bruno Haible <bruno@clisp.org>.
20468
20469 2007-09-12  Bruno Haible  <bruno@clisp.org>
20470
20471         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
20472         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
20473         is not defined.
20474
20475 2007-09-12  Eric Blake  <ebb9@byu.net>
20476
20477         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
20478         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
20479         Autoconf definition.
20480         * modules/euidaccess (Depends-on): Add extensions, for
20481         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
20482         * modules/fnmatch (Depends-on): Likewise.
20483         * modules/getaddrinfo (Depends-on): Likewise.
20484         * modules/getdelim (Depends-on): Likewise.
20485         * modules/getline (Depends-on): Likewise.
20486         * modules/getsubopt (Depends-on): Likewise.
20487         * modules/gettext (Depends-on): Likewise.
20488         * modules/group-member (Depends-on): Likewise.
20489         * modules/mbchar (Depends-on): Likewise.
20490         * modules/memmem (Depends-on): Likewise.
20491         * modules/mempcpy (Depends-on): Likewise.
20492         * modules/memrchr (Depends-on): Likewise.
20493         * modules/pagealign_alloc (Depends-on): Likewise.
20494         * modules/readutmp (Depends-on): Likewise.
20495         * modules/stpcpy (Depends-on): Likewise.
20496         * modules/stpncpy (Depends-on): Likewise.
20497         * modules/strchrnul (Depends-on): Likewise.
20498         * modules/strndup (Depends-on): Likewise.
20499         * modules/strsep (Depends-on): Likewise.
20500         * modules/strverscmp (Depends-on): Likewise.
20501         * modules/vasprintf (Depends-on): Likewise.
20502         * modules/wcwidth (Depends-on): Likewise.
20503         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
20504         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
20505         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
20506         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
20507         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20508         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20509         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
20510         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20511         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
20512         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20513         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20514         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
20515         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
20516         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20517         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
20518         * m4/readutmp.m4 (gl_READUTMP): Likewise.
20519         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20520         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
20521         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20522         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
20523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
20524         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
20525         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
20526         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
20527         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
20528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20529         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
20530         so that lock.m4 can be used in gettext without extensions module.
20531
20532 2007-09-11  Bruno Haible  <bruno@clisp.org>
20533
20534         * m4/isc-posix.m4: Remove file.
20535         Suggested by Eric Blake.
20536
20537 2007-09-11  Eric Blake  <ebb9@byu.net>
20538
20539         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
20540
20541 2007-09-10  Bruno Haible  <bruno@clisp.org>
20542
20543         * posix-modules: Fix typo in error message.
20544         Reported by Matt <mkraai@beckman.com>.
20545
20546 2007-09-09  Bruno Haible  <bruno@clisp.org>
20547
20548         * doc/functions/getdelim.texi: Update list of platforms lacking the
20549         function.
20550         * doc/functions/getline.texi: Likewise.
20551
20552 2007-09-09  Jim Meyering  <jim@meyering.net>
20553
20554         * lib/hash.c (hash_initialize): Detect calloc failure.
20555         Reported by Bruno Haible.
20556
20557 2007-09-09  Bruno Haible  <bruno@clisp.org>
20558
20559         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
20560         malloc or realloc fails.
20561
20562 2007-09-09  Bruno Haible  <bruno@clisp.org>
20563
20564         * modules/getcwd (Depends-on): Add malloc-posix.
20565         * modules/glob (Depends-on): Likewise.
20566         * modules/putenv (Depends-on): Likewise.
20567         * modules/strdup (Depends-on): Likewise.
20568         * modules/getdelim (Depends-on): Add realloc-posix.
20569         * modules/read-file (Depends-on): Likewise.
20570
20571 2007-09-09  Bruno Haible  <bruno@clisp.org>
20572
20573         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
20574         (gl_FUNC_MALLOC_POSIX): Require it.
20575         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
20576         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
20577         * modules/realloc (Files): Add m4/malloc.m4.
20578         * modules/calloc (Files): Likewise.
20579
20580 2007-09-09  Bruno Haible  <bruno@clisp.org>
20581
20582         * modules/malloc-posix: New file.
20583         * modules/malloc (Depends-on): Add malloc-posix.
20584         * lib/malloc.c: Include errno.h.
20585         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
20586         and a POSIX-compatible malloc into a single function. Set ENOMEM
20587         when returning NULL.
20588         * m4/malloc.m4: New file.
20589         * doc/functions/malloc.texi: Mention the malloc-posix module.
20590         * lib/stdlib_.h (malloc): New declaration.
20591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20592         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
20593         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
20594         and HAVE_MALLOC_POSIX.
20595
20596 2007-09-09  Bruno Haible  <bruno@clisp.org>
20597
20598         * modules/realloc-posix: New file.
20599         * modules/realloc (Depends-on): Add realloc-posix.
20600         * lib/realloc.c: Include errno.h.
20601         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
20602         and a POSIX-compatible realloc into a single function. Set ENOMEM
20603         when returning NULL.
20604         * m4/realloc.m4: New file.
20605         * doc/functions/realloc.texi: Mention the realloc-posix module.
20606         * lib/stdlib_.h (realloc): New declaration.
20607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20608         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
20609         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
20610         and HAVE_REALLOC_POSIX.
20611
20612 2007-09-09  Bruno Haible  <bruno@clisp.org>
20613
20614         * modules/calloc-posix: New file.
20615         * modules/calloc (Depends-on): Add calloc-posix.
20616         * lib/calloc.c: Include errno.h.
20617         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
20618         and a POSIX-compatible calloc into a single function. Set ENOMEM
20619         when returning NULL.
20620         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
20621         * doc/functions/calloc.texi: Mention the calloc-posix module.
20622         * lib/stdlib_.h (calloc): New declaration.
20623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20624         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
20625         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
20626         and HAVE_CALLOC_POSIX.
20627
20628 2007-09-09  Bruno Haible  <bruno@clisp.org>
20629
20630         Allow for modules to show an arbitrary notice.
20631         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
20632         * gnulib-tool: New option --extract-notice.
20633         (func_usage): Document it.
20634         (sed_extract_prog): Update.
20635         (func_get_notice): New function.
20636         (func_modules_notice): New function.
20637         (func_import, func_create_testdir): Invoke it.
20638         Suggested by Jim Meyering.
20639
20640 2007-09-09  Bruno Haible  <bruno@clisp.org>
20641
20642         * gnulib-tool: New options --verbose, --quiet.
20643         (func_usage): Document them.
20644         (verbose): New variable.
20645         (func_execute_command): New function.
20646         (func_import): Don't show the module list and the file list if
20647         $verbose < 0.
20648         (func_create_testdir): Likewise. Use func_execute_command.
20649         (func_create_megatestdir): Use func_execute_command.
20650
20651 2007-09-08  Bruno Haible  <bruno@clisp.org>
20652
20653         * gnulib-tool (func_import): Prefer rsync over wget when available,
20654         for fetching the PO files.
20655
20656 2007-09-08  Bruno Haible  <bruno@clisp.org>
20657
20658         * posix-modules: New file. Portions copied from gnulib-tool.
20659         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
20660
20661 2007-09-08  Jim Meyering  <jim@meyering.net>
20662
20663         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
20664         * lib/fpending.h: Rename from __fpending.h.
20665         * lib/fpending.c: Rename from __fpending.c.
20666         Include "fpending.h", not "__fpending.h".
20667         * lib/__fpending.h, lib/__fpending.c: Remove files.
20668         * modules/fpending (Files): Reflect new file names.
20669         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
20670
20671 2007-09-08  Bruno Haible  <bruno@clisp.org>
20672
20673         * m4/inttypes-h.m4: Remove stub file.
20674
20675 2007-09-07  Simon Josefsson  <simon@josefsson.org>
20676
20677         * doc/headers/stdint.texi: Discuss #include_next issue.
20678
20679 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20680
20681         * build-aux/bootstrap: Remove obsolete comment about wget --help.
20682
20683 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20684
20685         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
20686         in variable name.
20687
20688 2007-09-03  Jim Meyering  <jim@meyering.net>
20689
20690         New module: git-version-gen.
20691         * modules/git-version-gen: New file.
20692
20693         Import changes from coreutils for bootstrap script.
20694
20695         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
20696
20697         bootstrap: uses rsync to download the .po files
20698         * build-aux/bootstrap (po_download_command_format): New global.
20699         (download_po_files): Use rsync.
20700         (update_po_files): Don't remove .po files after download,
20701         so future rsync runs can take advantage of the copies.
20702
20703         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
20704
20705         Solve the unnecessary-.po-file-regeneration problem once and for all.
20706         * build-aux/bootstrap (download_po_files): New function, renamed from
20707         get_translations.  Now, downloads, but doesn't update LINGUAS.
20708         (update_po_files): New function.
20709
20710         bootstrap: Ignore more.
20711         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
20712         uniwidth to e.g., lib/.gitignore.
20713         (slurp): Handle the sys_stat_.h -> sys mapping, too.
20714
20715         * build-aux/bootstrap: New setting: vc_ignore.
20716         (insert_sorted_if_absent): Create $file if absent.
20717         Adapt to new, possibly empty, list: $vc_ignore.
20718
20719         bootstrap: generate more ignorable names
20720         * build-aux/bootstrap (slurp): When generating ignorable names,
20721         also map .sin to .sed, .gperf to .c, and .y to .c.
20722
20723 2007-09-03  Jim Meyering  <jim@meyering.net>
20724
20725         * build-aux/git-version-gen: New file, from coreutils.  For details, see
20726         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
20727
20728 2007-09-02  Bruno Haible  <bruno@clisp.org>
20729
20730         Fix mis-recognition of 'mcs' on QNX 6.
20731         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
20732         output contains the string "Mono".
20733         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
20734         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
20735
20736 2007-09-01  Bruno Haible  <bruno@clisp.org>
20737
20738         Fix collision between uniwidth/* and linebreak modules.
20739         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
20740         u32_width): Remove declarations.
20741         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
20742         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
20743         streq3, streq2, streq1, streq0): Remove functions.
20744         (STREQ): Remove macro.
20745         (is_cjk_encoding): Remove function.
20746         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
20747         (uc_width, u8_width, u16_width, u32_width): Remove functions.
20748         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
20749         * NEWS: Document the change.
20750
20751 2007-09-01  Bruno Haible  <bruno@clisp.org>
20752
20753         * lib/streq.h: Add double-inclusion guard.
20754
20755 2007-09-01  Karl Berry  <karl@gnu.org>
20756
20757         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
20758
20759 2007-08-28  Jim Meyering  <jim@meyering.net>
20760
20761         Rename mreadlink_with_size to areadlink_with_size.
20762         * NEWS: Document the change.
20763         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
20764         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
20765         * lib/mreadlink.h: Rename this to...
20766         * lib/areadlink.h: ...this.
20767         * modules/mreadlink-with-size: Rename this to...
20768         * modules/areadlink-with-size: ...this.
20769         * lib/canonicalize.c: Reflect the renaming.
20770         * modules/canonicalize: Likewise.
20771
20772 2007-08-26  Bruno Haible  <bruno@clisp.org>
20773
20774         * gnulib-tool (func_import): When deciding which files to remove,
20775         consider also dangling symbolic links.
20776         Reported by Eric Blake.
20777
20778 2007-08-26  Bruno Haible  <bruno@clisp.org>
20779
20780         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
20781
20782 2007-08-23  Simon Josefsson  <simon@josefsson.org>
20783
20784         * lib/readline.c: Don't include getline.h, the prototype is now
20785         found in stdio.h.
20786
20787 2007-08-23  Jim Meyering  <jim@meyering.net>
20788
20789         Getdelim touchup.
20790         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
20791         around the funlockfile call, since funlockfile never sets errno.
20792         Don't set errno upon failed realloc.
20793
20794 2007-08-22  Eric Blake  <ebb9@byu.net>
20795
20796         Getline touchups.
20797         * lib/getdelim.c (getdelim): Revert regression that required *n to
20798         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
20799         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
20800         getdelim, rather than whether implementation is missing.
20801         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
20802         * lib/stdio_.h (getline): Also declare if replacement is
20803         required.
20804         * doc/functions/getdelim.texi: New file.
20805         * doc/functions/getline.texi: Likewise.
20806         * doc/gnulib.texi (Function Substitutes): Add new files.
20807         Reported by Bruno Haible.
20808
20809 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
20810
20811         * users.txt: Add Guile.
20812
20813 2007-08-22  Eric Blake  <ebb9@byu.net>
20814
20815         * tests/test-getdelim.c (main): Use remove, not unlink.
20816         * tests/test-getline.c (main): Likewise.
20817
20818         Move getline and getdelim into stdio.h, per POSIX 200x.
20819         * modules/getline (Files): Remove getline.h.
20820         (Depends-on): Add stdio.
20821         (configure.ac): Add module indicator.
20822         * modules/getdelim (Files): Remove getdelim.h.
20823         (Depends-on): Add stdio.
20824         (configure.ac): Add module indicator.
20825         * modules/stdio (Makefile.am): Work with new indicators.
20826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
20827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
20828         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20829         * lib/getdelim.h: Delete.
20830         * lib/getline.h: Delete.
20831         * lib/stdio_.h (getdelim, getline): Declare.
20832         * modules/getdelim-tests: New module.
20833         * modules/getline-tests: Likewise.
20834         * tests/test-getdelim.c: New file.
20835         * tests/test-getline.c: Likewise.
20836         * NEWS: Document the change.
20837         * lib/getline.c: Update choice of header.
20838         * lib/csharpcomp.c: Likewise.
20839         * lib/getpass.c: Likewise.
20840         * lib/javacomp.c: Likewise.
20841         * lib/javaversion.c: Likewise.
20842         * lib/yesno.c: Likewise.
20843         * lib/getdelim.c: Likewise.
20844         (getdelim): Set errno on failure, and avoid memory leak.
20845
20846 2007-08-19  Bruno Haible  <bruno@clisp.org>
20847
20848         * modules/closein (Depends-on): Add freadahead.
20849         * lib/closein.c: Include freadahead.h.
20850         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
20851         is zero.
20852
20853 2007-08-19  Bruno Haible  <bruno@clisp.org>
20854
20855         * modules/freadahead-tests: New file.
20856         * tests/test-freadahead.sh: New file.
20857         * tests/test-freadahead.c: New file.
20858
20859         * modules/freadahead: New file.
20860         * lib/freadahead.h: New file.
20861         * lib/freadahead.c: New file.
20862         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
20863         fbufmode, fpurge, freadable, fwritable.
20864
20865 2007-08-19  Eric Blake  <ebb9@byu.net>
20866
20867         Test yesno in combination with closein.
20868         * lib/yesno.c (yesno): Document use of stdin.
20869         * modules/yesno-tests (Files): New module.
20870         * tests/test-yesno.c (main): New file.
20871         * tests/test-yesno.sh: Likewise.
20872
20873 2007-08-19  Bruno Haible  <bruno@clisp.org>
20874
20875         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
20876         * lib/fseeko.c (rpl_fseeko): Likewise.
20877         * lib/fseterr.c (fseterr): Likewise.
20878
20879 2007-08-19  Bruno Haible  <bruno@clisp.org>
20880
20881         * tests/test-lseek.c (main): Disable a test for BeOS.
20882         * doc/functions/lseek.texi: Document the BeOS bug.
20883
20884 2007-08-19  Bruno Haible  <bruno@clisp.org>
20885             Eric Blake  <ebb9@byu.net>
20886
20887         * lib/lseek.c: Include <sys/stat.h>.
20888         (rpl_lseek): Add workaround code also for Unix platforms.
20889         Needed for BeOS.
20890         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
20891         * doc/functions/lseek.texi: Document BeOS definiency.
20892
20893 2007-08-18  Bruno Haible  <bruno@clisp.org>
20894
20895         * modules/fstrcmp-tests: New file.
20896         * tests/test-fstrcmp.c: New file.
20897
20898 2007-08-18  Bruno Haible  <bruno@clisp.org>
20899
20900         * modules/fstrcmp: New file, from GNU gettext with modifications.
20901         * lib/fstrcmp.h: New file, from GNU gettext.
20902         * lib/fstrcmp.c: New file, from GNU gettext.
20903         * MODULES.html.sh (String handling): Add fstrcmp.
20904
20905 2007-08-18  Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
20908         'bool'.
20909         (diag, compareseq): Remove const from the ctxt argument.
20910         (USE_HEURISTIC): Undefine at the end.
20911
20912 2007-08-18  Jim Meyering  <jim@meyering.net>
20913
20914         New file: lib/idcache.h
20915         * NEWS: Mention the addition.
20916         * modules/idcache (Files): Add lib/idcache.h
20917         * lib/idcache.c: Include "idcache.h".
20918         Don't include <sys/types.h>.
20919         Add a FIXME comment.
20920         Move file-scoped "static" declarations to the top.
20921         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
20922
20923 2007-08-17  Bruno Haible  <bruno@clisp.org>
20924         and Paul Eggert  <eggert@cs.ucla.edu>
20925
20926         * MODULES.html.sh: Add diffseq.
20927         * modules/diffseq: New file.
20928         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
20929         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
20930
20931 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20932
20933         Import changes from coreutils for bootstrap script.
20934
20935         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
20936
20937         * build-aux/bootstrap (slurp): Work even in environments where
20938         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
20939         current code does not slurp files whose names start with ".", and
20940         this looks like it might be a troublesome area.
20941
20942         2007-07-11  Jim Meyering  <jim@meyering.net>
20943
20944         If there's a GPL vN copyright comment, require that N == 3.
20945
20946         2007-07-08  Jim Meyering  <jim@meyering.net>
20947
20948         Run the coreutils-specific code only if tests/Makefile.am.in exists.
20949         * build-aux/bootstrap (mam_template): Move definition out of loop.
20950
20951         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
20952
20953         * build-aux/bootstrap (symlink_to_dir): Rename function from
20954         symlink_to_gnulib.  Add a directory parameter.  Update all
20955         callers.
20956         (cp_mark_as_generated): Also check for -- and link to -- files in
20957         gl/.
20958
20959         2007-07-08  Jim Meyering  <jim@meyering.net>
20960
20961         Adapt to deeper hierarchy in gnulib.
20962         * build-aux/bootstrap (symlink_to_dir): If the destination
20963         directory doesn't exist, create it. This is required at least for
20964         "lib/uniwidth/cjk.h".
20965
20966         2007-05-15  Jim Meyering  <jim@meyering.net>
20967
20968         * build-aux/bootstrap: Now that generated Makefile.am files
20969         are no longer under version control, they must be created at
20970         bootstrap time.
20971
20972 2007-08-14  Ben Pfaff  <blp@gnu.org>
20973
20974         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
20975
20976 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
20977
20978         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
20979         given the changes below.
20980         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
20981         even on hosts that have padding bits beyond the supported 64.
20982
20983 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20984
20985         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
20986         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
20987         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
20988         depends on it.
20989         (xstrtol_error): Remove.
20990         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
20991         but with a different signature.
20992         (ATTRIBUTE_NORETURN, __attribute__): New macros.
20993         * lib/xstrtol-error.c: Include exitfail.h.
20994         (xstrtol_fatal): New function, with a different signature from the
20995         old xstrtol_error, so that the caller need not worry about passing
20996         in an exit status, or about storage management of the option argument.
20997         (xstrtol_error): Now a static function.  Redo signature to
20998         implement xstrtol_fatal.  Output the correct number of hyphens in
20999         front of the option so that the caller need not worry about
21000         storage management.
21001         (N_): New macro.
21002         (_): Remove; not used now.
21003         * modules/xstrtol: Depend on getopt.
21004         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
21005         of old STRTOL_FATAL_ERROR macro.
21006         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
21007         of test program.
21008         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
21009         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
21010
21011 2007-08-08  Eric Blake  <ebb9@byu.net>
21012
21013         * lib/xstrtol-error.c: Add missing include.
21014
21015         Move xstrtol messages into gnulib domain, when --pobase is used.
21016         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
21017         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
21018         * modules/xstrtol (Files): Distribute new file.
21019         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
21020         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
21021         * tests/test-xstrtol.c: ...into new file.
21022         * tests/test-xstrtoul.c: Also test xstrtoul.
21023         * tests/test-xstrtoimax.c: Also test xstrtoimax.
21024         * tests/test-xstrtoumax.c: Also test xstrtoumax.
21025         * tests/test-xstrtol.sh: Drive the tests.
21026         * tests/test-xstrtoimax.sh: Likewise.
21027         * tests/test-xstrtoumax.sh: Likewise.
21028         * modules/xstrtol-tests: New module.
21029         * modules/xstrtoimax-tests: Likewise.
21030         * modules/xstrtoumax-tests: Likewise.
21031
21032 2007-08-08  Jim Meyering  <jim@meyering.net>
21033
21034         New function: mfile_name_concat.
21035         * lib/filenamecat.c (mfile_name_concat): New function, just like
21036         file_name_concat, but return NULL upon failure rather than exiting
21037         with a diagnostic.
21038         * lib/filenamecat.h: Declare it.
21039
21040 2007-08-07  Bruno Haible  <bruno@clisp.org>
21041
21042         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
21043         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
21044         warning from gcc.
21045         Reported by Eric Blake.
21046
21047 2007-08-07  Simon Josefsson  <simon@josefsson.org>
21048
21049         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
21050         * modules/crypto/arcfour (License): Likewise.
21051         * modules/crypto/des-tests (License): Likewise.
21052         * modules/crypto/gc-arctwo-tests (License): Likewise.
21053         * modules/crypto/gc-des-tests (License): Likewise.
21054         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
21055         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
21056         * modules/crypto/gc-md2-tests (License): Likewise.
21057         * modules/crypto/gc-md4-tests (License): Likewise.
21058         * modules/crypto/gc-md5-tests (License): Likewise.
21059         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
21060         * modules/crypto/gc-rijndael-tests (License): Likewise.
21061         * modules/crypto/gc-sha1-tests (License): Likewise.
21062         * modules/crypto/gc-tests (License): Likewise.
21063         * modules/crypto/hmac-md5 (License): Likewise.
21064         * modules/crypto/hmac-sha1 (License): Likewise.
21065         * modules/crypto/md2-tests (License): Likewise.
21066         * modules/crypto/md4-tests (License): Likewise.
21067         * modules/crypto/md5 (License): Likewise.
21068         * modules/crypto/rijndael (License): Likewise.
21069         * modules/crypto/sha1 (License): Likewise.
21070         * modules/memxor (License): Likewise.
21071
21072 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21073         and Bruno Haible  <bruno@clisp.org>
21074
21075         * NEWS: Describe interface changes to human, xstrtol.
21076         * lib/human.h: Include <xstrtol.h>.
21077         (human_options): Return enum strtol_error, not int.  Remove
21078         bool arg; take int * instead.
21079         * lib/human.c: Don't include "gettext.h".
21080         (_): Remove; no longer used.
21081         Don't include <xstrtol.h>, since human.h does it.
21082         (human_options): Adjust to abovementioned interface changes.
21083         Do not report error to stderr; that's now the caller's
21084         responsibility.
21085         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
21086         interface change.
21087         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
21088         Str, Argument_type_string.  All uses changed.  Put " argument"
21089         in diagnostics to make them clearer.  Change wording of suffix
21090         message for clarity.
21091         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
21092         Argument_type_string.
21093         (STRTOL_FATAL_WARN): Remove; no longer used.
21094         * modules/human (Depends-on): Remove gettext-h.
21095
21096 2007-08-06  Simon Josefsson  <simon@josefsson.org>
21097
21098         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
21099
21100 2007-07-31  Bruno Haible  <bruno@clisp.org>
21101
21102         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
21103         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
21104         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
21105
21106 2007-07-31  Bruno Haible  <bruno@clisp.org>
21107
21108         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
21109         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
21110
21111 2007-07-30  Bruno Haible  <bruno@clisp.org>
21112
21113         * modules/base64 (License): Use the synonymous term "LGPLv2+".
21114         * modules/c-ctype (License): Likewise.
21115         * modules/c-strcase (License): Likewise.
21116         * modules/check-version (License): Likewise.
21117         * modules/iconv (License): Likewise.
21118         * modules/iconv_open (License): Likewise.
21119         * modules/read-file (License): Likewise.
21120         * modules/striconv (License): Likewise.
21121         * modules/strverscmp (License): Likewise.
21122         * modules/vasprintf (License): Likewise.
21123         * modules/crypto/des (License): Likewise.
21124         * modules/crypto/gc (License): Likewise.
21125         * modules/crypto/gc-arcfour (License): Likewise.
21126         * modules/crypto/gc-arctwo (License): Likewise.
21127         * modules/crypto/gc-des (License): Likewise.
21128         * modules/crypto/gc-hmac-md5 (License): Likewise.
21129         * modules/crypto/gc-hmac-sha1 (License): Likewise.
21130         * modules/crypto/gc-md2 (License): Likewise.
21131         * modules/crypto/gc-md4 (License): Likewise.
21132         * modules/crypto/gc-md5 (License): Likewise.
21133         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
21134         * modules/crypto/gc-random (License): Likewise.
21135         * modules/crypto/gc-rijndael (License): Likewise.
21136         * modules/crypto/gc-sha1 (License): Likewise.
21137         * modules/crypto/md2 (License): Likewise.
21138         * modules/crypto/md4 (License): Likewise.
21139
21140 2007-07-30  Jim Meyering  <jim@meyering.net>
21141
21142         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
21143         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
21144         it has valid stat data.  This bug would cause du not to count the
21145         sizes of inaccessible directories.
21146         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
21147         in <http://bugzilla.redhat.com/250077>.
21148
21149 2007-07-25  Peter O'Gorman  <peter@pogma.com>
21150             Bruno Haible  <bruno@clisp.org>
21151
21152         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
21153         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
21154         #include_next, gives a diagnostic about it, but reports no error in
21155         the exit code.
21156         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
21157
21158 2007-07-24  Ben Pfaff  <blp@gnu.org>
21159
21160         Improve name: "count-one-bits" is better than "popcount".
21161         * MODULES.html.sh: Update name.
21162         * lib/popcount.h: Renamed lib/count-one-bits.h.
21163         (popcount): Renamed count_one_bits.
21164         (popcountl): Renamed count_one_bits_l.
21165         (popcountll): Renamed count_one_bits_ll.
21166         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
21167         * modules/popcount: Renamed module/count-one-bits.
21168         * modules/popcount-tests: Renamed module/count-one-bits-tests.
21169         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
21170
21171 2007-07-23  Ben Pfaff  <blp@gnu.org>
21172
21173         * lib/popcount.h (popcount32): Reduce size of constants, to allow
21174         better code generation, and add U to large constants to avoid
21175         warnings, in non-GCC case.
21176         Suggested by Bruno Haible.
21177
21178 2007-07-23  Ben Pfaff  <blp@gnu.org>
21179
21180         * lib/popcount.h: Use verify_true instead of if...abort.
21181         * modules/popcount: Depend on verify module.
21182         Suggested by Jim Meyering.
21183
21184 2007-07-23  Bruno Haible  <bruno@clisp.org>
21185
21186         * gnulib-tool (func_import): Create a .cvsignore file also when the
21187         directory is not yet in CVS but the toplevel directory is. When
21188         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
21189         Reported by Karl Berry.
21190
21191 2007-07-22  Ben Pfaff  <blp@gnu.org>
21192
21193         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
21194         case.
21195         Suggested by Eric Blake.
21196
21197 2007-07-22  Ben Pfaff  <blp@gnu.org>
21198
21199         New module: popcount.
21200         * MODULES.html.sh: Add popcount.
21201         * modules/popcount: New file.
21202         * modules/popcount-tests: New file.
21203         * tests/test-popcount.c: New file.
21204         * lib/popcount.h: New file.
21205         * m4/popcount.m4: New file.
21206
21207 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21208
21209         * build-aux/announce-gen: Update to GPLv3.
21210
21211         * build-aux/config.guess: Update from config.
21212
21213 2007-07-21  Bruno Haible  <bruno@clisp.org>
21214
21215         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
21216         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
21217
21218 2007-07-20  Jim Meyering  <jim@meyering.net>
21219
21220         * check-module: Diagnose a self-dependency.
21221
21222 2007-07-19  Bruno Haible  <bruno@clisp.org>
21223
21224         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
21225         empty.
21226         Reported by Eric Blake.
21227
21228 2007-07-18  Bruno Haible  <bruno@clisp.org>
21229
21230         * gnulib-tool: New options --po-base, --po-domain.
21231         (func_usage): Document them.
21232         (pobase, po_domain): New variables.
21233         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
21234         DEFAULT_TEXT_DOMAIN.
21235         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
21236         (func_import): Consider pobase and po_domain. Create a po/ directory.
21237         (func_create_testdir): Set pobase and po_domain to empty.
21238         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
21239         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
21240
21241 2007-07-18  Bruno Haible  <bruno@clisp.org>
21242
21243         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21244         EXTRA_DIST augmentation for files in build-aux/.
21245
21246 2007-07-16  Bruno Haible  <bruno@clisp.org>
21247
21248         * modules/lseek (License): Use the synonymous term "LGPLv2+".
21249         * modules/getdelim (License): Likewise.
21250
21251 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21252
21253         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
21254         * modules/d-type (License): Likewise.
21255         * modules/extensions (License): Likewise.
21256         * modules/fnmatch (License): Likewise.
21257         * modules/fseeko (License): Likewise.
21258         * modules/getaddrinfo (License): Likewise.
21259         * modules/getline (License): Likewise.
21260         * modules/getlogin_r (License): Likewise.
21261         * modules/getpass (License): Likewise.
21262         * modules/gettimeofday (License): Likewise.
21263         * modules/glob (License): Likewise.
21264         * modules/inet_ntop (License): Likewise.
21265         * modules/malloc (License): Likewise.
21266         * modules/malloca (License): Likewise.
21267         * modules/memmem (License): Likewise.
21268         * modules/mempcpy (License): Likewise.
21269         * modules/memset (License): Likewise.
21270         * modules/minmax (License): Likewise.
21271         * modules/mktime (License): Likewise.
21272         * modules/netinet_in (License): Likewise.
21273         * modules/pathmax (License): Likewise.
21274         * modules/poll (License): Likewise.
21275         * modules/regex (License): Likewise.
21276         * modules/snprintf (License): Likewise.
21277         * modules/stdbool (License): Likewise.
21278         * modules/stdint (License): Likewise.
21279         * modules/stdio (License): Likewise.
21280         * modules/strcase (License): Likewise.
21281         * modules/strcasestr (License): Likewise.
21282         * modules/strdup (License): Likewise.
21283         * modules/string (License): Likewise.
21284         * modules/strndup (License): Likewise.
21285         * modules/strnlen (License): Likewise.
21286         * modules/strpbrk (License): Likewise.
21287         * modules/strptime (License): Likewise.
21288         * modules/strsep (License): Likewise.
21289         * modules/sys_select (License): Likewise.
21290         * modules/sys_socket (License): Likewise.
21291         * modules/sys_stat (License): Likewise.
21292         * modules/sys_time (License): Likewise.
21293         * modules/time (License): Likewise.
21294         * modules/time_r (License): Likewise.
21295         * modules/timegm (License): Likewise.
21296         * modules/unistd (License): Likewise.
21297         * modules/vsnprintf (License): Likewise.
21298         * modules/wctype (License): Likewise.
21299
21300 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21301
21302         * modules/argz (License): LGPLv2+.
21303
21304 2007-07-15  Karl Berry  <karl@gnu.org>
21305
21306         * doc/gnulib.texi: revise node structure per new fdl.texi.
21307
21308 2007-07-14  Bruno Haible  <bruno@clisp.org>
21309
21310         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
21311         the output file.
21312         * lib/uniname/uninames.h: Regenerated.
21313
21314 2007-07-14  Karl Berry  <karl@gnu.org>
21315
21316         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
21317         omitting sectioning and index commands.
21318
21319 2007-07-13  Bruno Haible  <bruno@clisp.org>
21320
21321         New gnulib-tool option --more-symlinks.
21322         * gnulib-tool (func_usage): Document --more-symlinks.
21323         (do_copyrights): New variable.
21324         Recognize option --more-symlinks.
21325         (func_import): Don't add a copyright notice transform to
21326         sed_transform_lib_file if do_copyrights is empty.
21327
21328 2007-07-13  Bruno Haible  <bruno@clisp.org>
21329
21330         * lib/vasnprintf.c (decimal_point_char): Define also if
21331         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
21332         && !NEED_PRINTF_DIRECTIVE_A.
21333         Reported by Clemens Koller <clemens.koller@anagramm.de> via
21334         Gary V. Vaughan <gary@gnu.org>.
21335
21336 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
21337
21338         * lib/inttypes_.h: Undo previous change, since it was fixed
21339         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
21340
21341 2007-07-13  Bruno Haible  <bruno@clisp.org>
21342
21343         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
21344         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
21345
21346 2007-07-13  Jim Meyering  <jim@meyering.net>
21347
21348         df: Don't fail for Tru64's "file-on-file mount".
21349         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
21350         so we fall through and use statfs instead.  Details here:
21351         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
21352         Reported by Albert Chin.
21353
21354 2007-07-13  Bruno Haible  <bruno@clisp.org>
21355
21356         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
21357         * modules/configmake (License): Likewise.
21358         * modules/gettext (License): Likewise.
21359         * modules/gettext-h (License): Likewise.
21360         * modules/include_next (License): Likewise.
21361         * modules/link-warning (License): Likewise.
21362         * modules/localcharset (License): Likewise.
21363         * modules/localename (License): Likewise.
21364         * modules/lock (License): Likewise.
21365         * modules/relocatable-lib-lgpl (License): Likewise.
21366         * modules/size_max (License): Likewise.
21367         * modules/vasnprintf (License): Likewise.
21368         * modules/wchar (License): Likewise.
21369         * modules/xsize (License): Likewise.
21370
21371 2007-07-13  Bruno Haible  <bruno@clisp.org>
21372
21373         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
21374         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
21375
21376 2007-07-12  Bruno Haible  <bruno@clisp.org>
21377
21378         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
21379         in the modules files.
21380
21381 2007-07-11  Karl Berry  <karl@gnu.org>
21382
21383         * MODULES.html.sh (func_module): use
21384          sed -e '\|^'"${includefile}"'$|d'
21385          instead of /.../d, to avoid errors on $includefile's containing /.
21386
21387 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21388
21389         * gnulib-tool (func_import): Avoid duplication of --avoid
21390         statements
21391         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
21392         names to `_' in variable names.
21393
21394 2007-07-10  Eric Blake  <ebb9@byu.net>
21395
21396         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
21397         * NEWS: Document this change.
21398
21399 2007-07-08  Bruno Haible  <bruno@clisp.org>
21400
21401         Update to Unicode 5.0.
21402         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
21403         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
21404         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
21405         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
21406         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
21407         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
21408         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
21409         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
21410         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
21411         U+10A3F, U+1D242..U+1D244.
21412         (nonspacing_table_ind): Update.
21413         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
21414         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
21415
21416 2007-07-08  Bruno Haible  <bruno@clisp.org>
21417
21418         Update to Unicode 5.0.
21419         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
21420         code transform. Extend the name index field of unicode_name_to_code and
21421         unicode_code_to_name from 16 to 24 bits.
21422         * lib/uniname/uniname.c (unicode_character_name,
21423         unicode_name_character): Add the range 0x12xxx to the code transform.
21424         * lib/uniname/uninames.h: Regenerated.
21425         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
21426
21427 2007-07-07  Bruno Haible  <bruno@clisp.org>
21428
21429         * modules/wcwidth-tests: New file.
21430         * tests/test-wcwidth.c: New file.
21431
21432         Work around MacOS X wcwidth() bug.
21433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
21434         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
21435         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
21436         original wcwidth in non-UTF-8 locales.
21437         * modules/wcwidth (Depends-on): Add localcharset, streq,
21438         uniwidth/width.
21439         * doc/functions/wcwidth.texi: Update.
21440
21441 2007-07-07  Bruno Haible  <bruno@clisp.org>
21442
21443         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
21444         (wcwidth): New declaration.
21445         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
21446         macros.
21447         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
21448         here. Prepare for creating <wchar.h> unconditionally.
21449         * modules/wchar (Depends-on): Add link-warning.
21450         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
21451         REPLACE_WCWIDTH, and GL_LINK_WARNING.
21452         * lib/wcwidth.h: Remove file.
21453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
21454         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
21455         * modules/wcwidth (Files): Remove lib/wcwidth.h.
21456         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
21457         (Include): Replace wcwidth.h with <wchar.h>.
21458         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
21459         * lib/mbchar.h: Don't include wcwidth.h.
21460         * lib/mbswidth.c: Likewise.
21461         * NEWS: Mention the change.
21462
21463 2007-07-07  Bruno Haible  <bruno@clisp.org>
21464
21465         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
21466         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
21467         definition with an external declaration.
21468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
21469         defined as a function. Remove AC_C_INLINE requirement.
21470         * modules/wcwidth (Files): Add lib/wcwidth.c.
21471         (Makefile.am): Remove redundant statement.
21472
21473 2007-07-07  Bruno Haible  <bruno@clisp.org>
21474
21475         * MODULES.html.sh (Unicode string functions): Add the new modules.
21476
21477         * tests/uniwidth/test-u32-strwidth.c: New file.
21478         * modules/uniwidth/u32-strwidth-tests: New file.
21479
21480         * lib/uniwidth/u32-strwidth.c: New file.
21481         * modules/uniwidth/u32-strwidth: New file.
21482
21483         * tests/uniwidth/test-u16-strwidth.c: New file.
21484         * modules/uniwidth/u16-strwidth-tests: New file.
21485
21486         * lib/uniwidth/u16-strwidth.c: New file.
21487         * modules/uniwidth/u16-strwidth: New file.
21488
21489         * tests/uniwidth/test-u8-strwidth.c: New file.
21490         * modules/uniwidth/u8-strwidth-tests: New file.
21491
21492         * lib/uniwidth/u8-strwidth.c: New file.
21493         * modules/uniwidth/u8-strwidth: New file.
21494
21495         * tests/uniwidth/test-u32-width.c: New file.
21496         * modules/uniwidth/u32-width-tests: New file.
21497
21498         * lib/uniwidth/u32-width.c: New file.
21499         * modules/uniwidth/u32-width: New file.
21500
21501         * tests/uniwidth/test-u16-width.c: New file.
21502         * modules/uniwidth/u16-width-tests: New file.
21503
21504         * lib/uniwidth/u16-width.c: New file.
21505         * modules/uniwidth/u16-width: New file.
21506
21507         * tests/uniwidth/test-u8-width.c: New file.
21508         * modules/uniwidth/u8-width-tests: New file.
21509
21510         * lib/uniwidth/u8-width.c: New file.
21511         * modules/uniwidth/u8-width: New file.
21512
21513         * tests/uniwidth/test-uc_width.c: New file.
21514         * modules/uniwidth/width-tests: New file.
21515
21516         * lib/uniwidth/width.c: New file, from GNU libiconv.
21517         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
21518         * modules/uniwidth/width: New file.
21519
21520         * lib/uniwidth.h: New file, from GNU libiconv.
21521         * modules/uniwidth/base: New file.
21522
21523 2007-07-07  Bruno Haible  <bruno@clisp.org>
21524
21525         * lib/uniname.h: New file, from GNU gettext.
21526         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
21527         * lib/uniname/uninames.h: New file, from GNU gettext.
21528         * lib/uniname/uniname.c: New file, from GNU gettext.
21529         * tests/uniname/test-uninames.sh: New file.
21530         * tests/uniname/test-uninames.c: New file, from GNU gettext.
21531         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
21532         * modules/uniname/base: New file.
21533         * modules/uniname/uniname: New file.
21534         * modules/uniname/uniname-tests: New file.
21535         * MODULES.html.sh (Unicode string functions): Add the new modules.
21536
21537 2007-07-06  Bruno Haible  <bruno@clisp.org>
21538
21539         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
21540
21541 2007-07-06  Bruno Haible  <bruno@clisp.org>
21542
21543         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
21544         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
21545         includes <cygwin/sys_time.h> which includes <sys/select.h> which
21546         include <sys/time.h>.
21547         Reported by Eric Blake.
21548
21549 2007-07-06  Eric Blake  <ebb9@byu.net>
21550
21551         Fix testing canonicalize on cygwin.
21552         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21553         Revert patch from 2007-06-19.
21554         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
21555         canonicalize module is also in use.
21556         * tests/test-canonicalize.c: New file.
21557         * tests/test-canonicalize.sh: Likewise.
21558         * modules/canonicalize-tests: Likewise.
21559
21560 2007-07-06  Jim Meyering  <jim@meyering.net>
21561
21562         * lib/getugroups.c (getugroups): Detect getgrent failure.
21563         Adjust comment to reflect reality: this function may return -1.
21564
21565 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
21566
21567         * build-aux/bootstrap (TP_URL,get_translations): Update to use
21568         the new TP address.
21569         (usage): Fix typo
21570         (gnulib_mk): New variable.
21571
21572 2007-07-05  Jim Meyering  <jim@meyering.net>
21573
21574         Don't let endgrent clobber errno, no matter how improbable.
21575         * lib/getugroups.c (getugroups): Save and restore errno around
21576         endgrent call.
21577
21578         Close the group DB even when failing with 2^31 or more members.
21579         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
21580
21581 2007-07-04  Jim Meyering  <jim@meyering.net>
21582
21583         * lib/getugroups.h: New file.
21584         * lib/getugroups.c: Include "getugroups.h".
21585         Remove uses of "register" keyword.
21586         Move local variable, "cp", down into scope where used.
21587         Give "username" parameter the "const" attribute.
21588         * modules/getugroups (Files): Add lib/getugroups.h
21589
21590 2007-07-04  Karl Berry  <karl@gnu.org>
21591
21592         * MODULES.html.sh (func_all_modules): Complete rename of
21593         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
21594
21595 2007-07-02  Bruno Haible  <bruno@clisp.org>
21596
21597         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
21598         mode, when inttypes.h comes from gnulib.
21599         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21600
21601 2007-07-02  Simon Josefsson  <simon@josefsson.org>
21602
21603         * NEWS: Mention lgpl module name change.
21604
21605         * modules/lgpl-2.1: Renamed from lgpl.
21606
21607         * NEWS: Mention gpl module name change.
21608
21609         * modules/gpl-3.0: New file, based on gpl-2.0.
21610
21611         * modules/gpl-2.0: Renamed from gpl.
21612
21613         * modules/gpl: Fix filename, doc/gpl.texi is now found at
21614         doc/gpl-2.0.texi.
21615
21616 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21617
21618         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
21619         #define __STDC_LIMIT_MACROS temporarily while including
21620         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
21621         Problem reported by Joel E. Denny in
21622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
21623
21624 2007-07-01  Bruno Haible  <bruno@clisp.org>
21625
21626         * lib/unistdio.h: New file.
21627         * lib/unistdio/u-asnprintf.h: New file.
21628         * lib/unistdio/u-asprintf.h: New file.
21629         * lib/unistdio/u-printf-args.c: New file.
21630         * lib/unistdio/u-printf-args.h: New file.
21631         * lib/unistdio/u-printf-parse.h: New file.
21632         * lib/unistdio/u-snprintf.h: New file.
21633         * lib/unistdio/u-sprintf.h: New file.
21634         * lib/unistdio/u-vasprintf.h: New file.
21635         * lib/unistdio/u-vsnprintf.h: New file.
21636         * lib/unistdio/u-vsprintf.h: New file.
21637         * lib/unistdio/ulc-asnprintf.c: New file.
21638         * lib/unistdio/ulc-asprintf.c: New file.
21639         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
21640         * lib/unistdio/ulc-printf-parse.c: New file.
21641         * lib/unistdio/ulc-snprintf.c: New file.
21642         * lib/unistdio/ulc-sprintf.c: New file.
21643         * lib/unistdio/ulc-vasnprintf.c: New file.
21644         * lib/unistdio/ulc-vasprintf.c: New file.
21645         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
21646         * lib/unistdio/ulc-vsnprintf.c: New file.
21647         * lib/unistdio/ulc-vsprintf.c: New file.
21648         * lib/unistdio/u8-asnprintf.c: New file.
21649         * lib/unistdio/u8-asprintf.c: New file.
21650         * lib/unistdio/u8-printf-parse.c: New file.
21651         * lib/unistdio/u8-snprintf.c: New file.
21652         * lib/unistdio/u8-sprintf.c: New file.
21653         * lib/unistdio/u8-vasnprintf.c: New file.
21654         * lib/unistdio/u8-vasprintf.c: New file.
21655         * lib/unistdio/u8-vsnprintf.c: New file.
21656         * lib/unistdio/u8-vsprintf.c: New file.
21657         * lib/unistdio/u8-u8-asnprintf.c: New file.
21658         * lib/unistdio/u8-u8-asprintf.c: New file.
21659         * lib/unistdio/u8-u8-snprintf.c: New file.
21660         * lib/unistdio/u8-u8-sprintf.c: New file.
21661         * lib/unistdio/u8-u8-vasnprintf.c: New file.
21662         * lib/unistdio/u8-u8-vasprintf.c: New file.
21663         * lib/unistdio/u8-u8-vsnprintf.c: New file.
21664         * lib/unistdio/u8-u8-vsprintf.c: New file.
21665         * lib/unistdio/u16-asnprintf.c: New file.
21666         * lib/unistdio/u16-asprintf.c: New file.
21667         * lib/unistdio/u16-printf-parse.c: New file.
21668         * lib/unistdio/u16-snprintf.c: New file.
21669         * lib/unistdio/u16-sprintf.c: New file.
21670         * lib/unistdio/u16-vasnprintf.c: New file.
21671         * lib/unistdio/u16-vasprintf.c: New file.
21672         * lib/unistdio/u16-vsnprintf.c: New file.
21673         * lib/unistdio/u16-vsprintf.c: New file.
21674         * lib/unistdio/u16-u16-asnprintf.c: New file.
21675         * lib/unistdio/u16-u16-asprintf.c: New file.
21676         * lib/unistdio/u16-u16-snprintf.c: New file.
21677         * lib/unistdio/u16-u16-sprintf.c: New file.
21678         * lib/unistdio/u16-u16-vasnprintf.c: New file.
21679         * lib/unistdio/u16-u16-vasprintf.c: New file.
21680         * lib/unistdio/u16-u16-vsnprintf.c: New file.
21681         * lib/unistdio/u16-u16-vsprintf.c: New file.
21682         * lib/unistdio/u32-asnprintf.c: New file.
21683         * lib/unistdio/u32-asprintf.c: New file.
21684         * lib/unistdio/u32-printf-parse.c: New file.
21685         * lib/unistdio/u32-snprintf.c: New file.
21686         * lib/unistdio/u32-sprintf.c: New file.
21687         * lib/unistdio/u32-vasnprintf.c: New file.
21688         * lib/unistdio/u32-vasprintf.c: New file.
21689         * lib/unistdio/u32-vsnprintf.c: New file.
21690         * lib/unistdio/u32-vsprintf.c: New file.
21691         * lib/unistdio/u32-u32-asnprintf.c: New file.
21692         * lib/unistdio/u32-u32-asprintf.c: New file.
21693         * lib/unistdio/u32-u32-snprintf.c: New file.
21694         * lib/unistdio/u32-u32-sprintf.c: New file.
21695         * lib/unistdio/u32-u32-vasnprintf.c: New file.
21696         * lib/unistdio/u32-u32-vasprintf.c: New file.
21697         * lib/unistdio/u32-u32-vsnprintf.c: New file.
21698         * lib/unistdio/u32-u32-vsprintf.c: New file.
21699         * tests/unistdio/test-ulc-asnprintf1.c: New file.
21700         * tests/unistdio/test-ulc-asnprintf1.h: New file.
21701         * tests/unistdio/test-ulc-printf1.h: New file.
21702         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
21703         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
21704         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
21705         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
21706         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
21707         * tests/unistdio/test-ulc-vasprintf1.c: New file.
21708         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
21709         * tests/unistdio/test-ulc-vsprintf1.c: New file.
21710         * tests/unistdio/test-u8-asnprintf1.c: New file.
21711         * tests/unistdio/test-u8-asnprintf1.h: New file.
21712         * tests/unistdio/test-u8-printf1.h: New file.
21713         * tests/unistdio/test-u8-vasnprintf1.c: New file.
21714         * tests/unistdio/test-u8-vasnprintf2.c: New file.
21715         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
21716         * tests/unistdio/test-u8-vasnprintf3.c: New file.
21717         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
21718         * tests/unistdio/test-u8-vasprintf1.c: New file.
21719         * tests/unistdio/test-u8-vsnprintf1.c: New file.
21720         * tests/unistdio/test-u8-vsprintf1.c: New file.
21721         * tests/unistdio/test-u16-asnprintf1.c: New file.
21722         * tests/unistdio/test-u16-asnprintf1.h: New file.
21723         * tests/unistdio/test-u16-printf1.h: New file.
21724         * tests/unistdio/test-u16-vasnprintf1.c: New file.
21725         * tests/unistdio/test-u16-vasnprintf2.c: New file.
21726         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
21727         * tests/unistdio/test-u16-vasnprintf3.c: New file.
21728         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
21729         * tests/unistdio/test-u16-vasprintf1.c: New file.
21730         * tests/unistdio/test-u16-vsnprintf1.c: New file.
21731         * tests/unistdio/test-u16-vsprintf1.c: New file.
21732         * tests/unistdio/test-u32-asnprintf1.c: New file.
21733         * tests/unistdio/test-u32-asnprintf1.h: New file.
21734         * tests/unistdio/test-u32-printf1.h: New file.
21735         * tests/unistdio/test-u32-vasnprintf1.c: New file.
21736         * tests/unistdio/test-u32-vasnprintf2.c: New file.
21737         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
21738         * tests/unistdio/test-u32-vasnprintf3.c: New file.
21739         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
21740         * tests/unistdio/test-u32-vasprintf1.c: New file.
21741         * tests/unistdio/test-u32-vsnprintf1.c: New file.
21742         * tests/unistdio/test-u32-vsprintf1.c: New file.
21743         * modules/unistdio/base: New file.
21744         * modules/unistdio/u-printf-args: New file.
21745         * modules/unistdio/ulc-asnprintf: New file.
21746         * modules/unistdio/ulc-asprintf: New file.
21747         * modules/unistdio/ulc-fprintf: New file.
21748         * modules/unistdio/ulc-printf-parse: New file.
21749         * modules/unistdio/ulc-snprintf: New file.
21750         * modules/unistdio/ulc-sprintf: New file.
21751         * modules/unistdio/ulc-vasnprintf: New file.
21752         * modules/unistdio/ulc-vasprintf: New file.
21753         * modules/unistdio/ulc-vfprintf: New file.
21754         * modules/unistdio/ulc-vsnprintf: New file.
21755         * modules/unistdio/ulc-vsprintf: New file.
21756         * modules/unistdio/u8-asnprintf: New file.
21757         * modules/unistdio/u8-asprintf: New file.
21758         * modules/unistdio/u8-printf-parse: New file.
21759         * modules/unistdio/u8-snprintf: New file.
21760         * modules/unistdio/u8-sprintf: New file.
21761         * modules/unistdio/u8-vasnprintf: New file.
21762         * modules/unistdio/u8-vasprintf: New file.
21763         * modules/unistdio/u8-vsnprintf: New file.
21764         * modules/unistdio/u8-vsprintf: New file.
21765         * modules/unistdio/u8-u8-asnprintf: New file.
21766         * modules/unistdio/u8-u8-asprintf: New file.
21767         * modules/unistdio/u8-u8-snprintf: New file.
21768         * modules/unistdio/u8-u8-sprintf: New file.
21769         * modules/unistdio/u8-u8-vasnprintf: New file.
21770         * modules/unistdio/u8-u8-vasprintf: New file.
21771         * modules/unistdio/u8-u8-vsnprintf: New file.
21772         * modules/unistdio/u8-u8-vsprintf: New file.
21773         * modules/unistdio/u16-asnprintf: New file.
21774         * modules/unistdio/u16-asprintf: New file.
21775         * modules/unistdio/u16-printf-parse: New file.
21776         * modules/unistdio/u16-snprintf: New file.
21777         * modules/unistdio/u16-sprintf: New file.
21778         * modules/unistdio/u16-vasnprintf: New file.
21779         * modules/unistdio/u16-vasprintf: New file.
21780         * modules/unistdio/u16-vsnprintf: New file.
21781         * modules/unistdio/u16-vsprintf: New file.
21782         * modules/unistdio/u16-u16-asnprintf: New file.
21783         * modules/unistdio/u16-u16-asprintf: New file.
21784         * modules/unistdio/u16-u16-snprintf: New file.
21785         * modules/unistdio/u16-u16-sprintf: New file.
21786         * modules/unistdio/u16-u16-vasnprintf: New file.
21787         * modules/unistdio/u16-u16-vasprintf: New file.
21788         * modules/unistdio/u16-u16-vsnprintf: New file.
21789         * modules/unistdio/u16-u16-vsprintf: New file.
21790         * modules/unistdio/u32-asnprintf: New file.
21791         * modules/unistdio/u32-asprintf: New file.
21792         * modules/unistdio/u32-printf-parse: New file.
21793         * modules/unistdio/u32-snprintf: New file.
21794         * modules/unistdio/u32-sprintf: New file.
21795         * modules/unistdio/u32-vasnprintf: New file.
21796         * modules/unistdio/u32-vasprintf: New file.
21797         * modules/unistdio/u32-vsnprintf: New file.
21798         * modules/unistdio/u32-vsprintf: New file.
21799         * modules/unistdio/u32-u32-asnprintf: New file.
21800         * modules/unistdio/u32-u32-asprintf: New file.
21801         * modules/unistdio/u32-u32-snprintf: New file.
21802         * modules/unistdio/u32-u32-sprintf: New file.
21803         * modules/unistdio/u32-u32-vasnprintf: New file.
21804         * modules/unistdio/u32-u32-vasprintf: New file.
21805         * modules/unistdio/u32-u32-vsnprintf: New file.
21806         * modules/unistdio/u32-u32-vsprintf: New file.
21807         * modules/unistdio/ulc-asnprintf-tests: New file.
21808         * modules/unistdio/ulc-vasnprintf-tests: New file.
21809         * modules/unistdio/ulc-vasprintf-tests: New file.
21810         * modules/unistdio/ulc-vsnprintf-tests: New file.
21811         * modules/unistdio/ulc-vsprintf-tests: New file.
21812         * modules/unistdio/u8-asnprintf-tests: New file.
21813         * modules/unistdio/u8-vasnprintf-tests: New file.
21814         * modules/unistdio/u8-vasprintf-tests: New file.
21815         * modules/unistdio/u8-vsnprintf-tests: New file.
21816         * modules/unistdio/u8-vsprintf-tests: New file.
21817         * modules/unistdio/u16-asnprintf-tests: New file.
21818         * modules/unistdio/u16-vasnprintf-tests: New file.
21819         * modules/unistdio/u16-vasprintf-tests: New file.
21820         * modules/unistdio/u16-vsnprintf-tests: New file.
21821         * modules/unistdio/u16-vsprintf-tests: New file.
21822         * modules/unistdio/u32-asnprintf-tests: New file.
21823         * modules/unistdio/u32-vasnprintf-tests: New file.
21824         * modules/unistdio/u32-vasprintf-tests: New file.
21825         * modules/unistdio/u32-vsnprintf-tests: New file.
21826         * modules/unistdio/u32-vsprintf-tests: New file.
21827         * MODULES.html.sh (Unicode string functions): Add the new modules.
21828
21829 2007-07-01  Bruno Haible  <bruno@clisp.org>
21830
21831         * lib/sprintf.c (sprintf): Limit the available length estimation,
21832         to avoid address wraparound.
21833         * lib/vsprintf.c (vsprintf): Likewise.
21834         * modules/sprintf-posix (Dependencies): Add stdint.
21835         * modules/vsprintf-posix (Dependencies): Likewise.
21836
21837 2007-07-01  Bruno Haible  <bruno@clisp.org>
21838
21839         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
21840         Windows PATH as well. Conservative double-quoting. Comments.
21841
21842 2007-07-01  Bruno Haible  <bruno@clisp.org>
21843             Eric Blake  <ebb9@byu.net>
21844             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21845
21846         * gnulib-tool (self_abspathname): Fix algorithm to cope with
21847         empty components in $PATH, denoting '.'.
21848
21849 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21850
21851         * gnulib-tool: Fix indentation.
21852         (func_create_megatestdir): Likewise.
21853         Report by Bruno Haible.
21854
21855 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21856
21857         Sync from Automake.
21858         * build-aux/gnupload: Fix shell portability issues with for loops.
21859         Report by Karl Berry.
21860
21861 2007-06-29  Simon Josefsson  <simon@josefsson.org>
21862
21863         * build-aux/maint.mk (POURL): Use translationproject.org.
21864
21865 2007-06-27  Simon Josefsson  <simon@josefsson.org>
21866             Bruno Haible  <bruno@clisp.org>
21867
21868         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
21869         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
21870         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
21871         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
21872         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
21873
21874 2007-06-27  Bruno Haible  <bruno@clisp.org>
21875
21876         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
21877         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
21878
21879 2007-06-26  Karl Berry  <karl@gnu.org>
21880
21881         * MODULES.html.sh: remove xreadlink-with-size.
21882
21883 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21884
21885         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
21886         method that I hope also handles the double-include problem noted
21887         by Bruno Haible in
21888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
21889
21890 2007-06-23  Bruno Haible  <bruno@clisp.org>
21891
21892         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21893         Don't let the 'mostlyclean' target fail if the last subdirectory could
21894         not be removed.
21895         Reported by Karl Berry.
21896
21897 2007-06-23  Bruno Haible  <bruno@clisp.org>
21898
21899         * gnulib-tool (echo): Add a speedier workaround for ksh.
21900         * tests/test-echo.sh: Likewise.
21901
21902 2007-06-23  Bruno Haible  <bruno@clisp.org>
21903
21904         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
21905         * tests/test-echo.sh: Likewise.
21906
21907 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21908
21909         * gnulib-tool (IFS): Initialize early, so we don't set it to
21910         empty later.
21911         (self_abspathname): Rewrite algorithm to set it, reindent.
21912         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21913         (func_create_megatestdir): Merge some sed scripts.
21914
21915 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
21916
21917         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
21918         exposed by Sun Studio 11 cc on Solaris 8.
21919
21920 2007-06-22  Bruno Haible  <bruno@clisp.org>
21921
21922         * gnulib-tool (echo): Ensure the echo primitive does not interpret
21923         backslashes.
21924         * tests/test-echo.sh: New file.
21925
21926 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21927
21928         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
21929         simplify `sed_replace_build_aux' scripts, they are portable but
21930         echoing them with `echo' is not.
21931         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
21932
21933 2007-06-21  Karl Berry  <karl@gnu.org>
21934
21935         * config/srclist.txt: guess we can't handle the licenses via
21936         srclist at the moment.
21937
21938 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21939
21940         * MODULES.html.sh: Add include_next.
21941         * modules/include_next: New file.
21942
21943 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21944
21945         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
21946         INCLUDE_NEXT.
21947         (gl_CHECK_NEXT_HEADERS): New macro.
21948         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
21949         the obsolescent gl_ABSOLUTE_HEADER.
21950         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21951         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21952         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21953         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21954         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21955         * m4/math_h.m4 (gl_MATH_H): Likewise.
21956         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21957         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21958         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21959         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21960         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21961         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21962         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21963         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21965         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21966         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21967         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
21968         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
21969         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21970         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21971         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21972         * m4/inttypes.m4 (gl_INTTYPES_H): Define
21973         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
21974         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
21975         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
21976         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
21977         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
21978         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
21979         * lib/float_.h: Likewise.
21980         * lib/inttypes_.h: Likewise.
21981         * lib/math_.h: Likewise.
21982         * lib/search_.h: Likewise.
21983         * lib/signal_.h: Likewise.
21984         * lib/stdint_.h: Likewise.
21985         * lib/stdio_.h: Likewise.
21986         * lib/stdlib_.h: Likewise.
21987         * lib/string_.h: Likewise.
21988         * lib/sys_stat_.h: Likewise.
21989         * lib/sys_time_.h: Likewise.
21990         * lib/time_.h: Likewise.
21991         * lib/unistd_.h: Likewise.
21992         * lib/wchar_.h: Likewise.
21993         * lib/wctype_.h: Likewise.
21994         * lib/dirent_.h: Likewise.
21995         * lib/iconv_.h: Likewise.
21996         * lib/locale_.h: Likewise.
21997         * lib/netinet_in_.h: Likewise.
21998         * lib/sys_select_.h: Likewise.
21999         * lib/sys_socket_.h: Likewise.
22000         * lib/sysexits_.h: Likewise.
22001         * modules/fcntl (Depends-on): Depend on include_next, not
22002         absolute_header.
22003         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
22004         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
22005         * modules/fchdir: Likewise.
22006         * modules/float: Likewise.
22007         * modules/iconv_open: Likewise.
22008         * modules/inttypes: Likewise.
22009         * modules/locale: Likewise.
22010         * modules/math: Likewise.
22011         * modules/netinet_in: Likewise.
22012         * modules/search: Likewise.
22013         * modules/signal: Likewise.
22014         * modules/stdint: Likewise.
22015         * modules/stdio: Likewise.
22016         * modules/stdlib: Likewise.
22017         * modules/string: Likewise.
22018         * modules/sys_select: Likewise.
22019         * modules/sys_socket: Likewise.
22020         * modules/sys_stat: Likewise.
22021         * modules/sys_time: Likewise.
22022         * modules/sysexits: Likewise.
22023         * modules/time: Likewise.
22024         * modules/unistd: Likewise.
22025         * modules/wchar: Likewise.
22026         * modules/wctype: Likewise.
22027         * modules/sys_stat: Change maintainer to "all".
22028         * modules/unistd: Likewise.
22029
22030 2007-06-20  Karl Berry  <karl@gnu.org>
22031
22032         * config/srclist.txt: track www changes in license files.
22033
22034 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
22035
22036         * build-aux/bootstrap: Remove stray dot.
22037         Make sure build_aux settings are honored when linking
22038         gnulib_extra_files.
22039
22040 2007-06-19  Eric Blake  <ebb9@byu.net>
22041
22042         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22043         Allow compilation on cygwin.
22044
22045 2007-06-19  Jim Meyering  <jim@meyering.net>
22046
22047         xreadlink-with-size: Remove module.  No longer used.
22048         Ex-callers now use xreadlink or mreadlink-with-size.
22049         * modules/xreadlink-with-size: Remove module.
22050         * lib/xreadlink-with-size.c: Remove file.
22051         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
22052         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
22053         just before the function definition *is* accurate.
22054
22055         Eliminate one way canonicalize_filename_mode could exit.
22056         * lib/canonicalize.c (canonicalize_filename_mode):
22057         Use mreadlink_with_size, not xreadlink_with_size.
22058
22059 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
22060
22061         Detect porting problems to FreeBSD/arm, which has time_t wider than
22062         long int.  Original problem reported for GNU diff by Xin Li in
22063         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
22064         * modules/getdate (Depends-on): Add intprops, verify.
22065         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
22066         is an integer type no wider than long int.
22067
22068 2007-06-18  Jim Meyering  <jim@meyering.net>
22069
22070         New module: mreadlink-with-size.
22071         * MODULES.html.sh: Add mreadlink-with-size.
22072         * modules/mreadlink-with-size: New module
22073         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
22074         not xreadlink-with-size.
22075         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
22076
22077 2007-06-16  Bruno Haible  <bruno@clisp.org>
22078
22079         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
22080         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
22081         Reported by Gary V. Vaughan <gary@gnu.org>.
22082
22083 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
22084
22085         Revamp lchown so that it lives in unistd.h where it belongs.
22086         * lib/lchown.h: Remove.
22087         * lib/dirchownmod.c: Don't include lib/lchown.h.
22088         * lib/fchownat.c: Likewise.
22089         * lib/openat.c: Likewise.
22090         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
22091         does not follow symlinks.
22092         (EOPNOTSUPP): Define if not defined.
22093         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
22094         is defined to 0.
22095         (lchown): New decl.
22096         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
22097         Do not check for lchown decl.
22098         Set REPLACE_LCHOWN.
22099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
22100         REPLACE_LCHOWN.
22101         * modules/chown: Make it clear it follows symlinks.
22102         * modules/lchown: Make it clear it doesn't follow symlinks.
22103         (Files): Remove lib/lchown.h
22104         (Depends-on): Add unistd.
22105         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
22106         (Include): Include <unistd.h>, not "lchown.h".
22107         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
22108         REPLACE_LCHOWN.
22109
22110 2007-06-15  Jim Meyering  <jim@meyering.net>
22111
22112         Change license (GPL to LGPL) of fsusage and dependents.
22113         * modules/fsusage (License): Change to LGPL.
22114         * modules/full-read (License): Likewise.
22115         * modules/full-write (License): Likewise.
22116         * modules/safe-read (License): Likewise.
22117         * modules/safe-write (License): Likewise.
22118
22119 2007-06-14  Ben Pfaff  <blp@gnu.org>
22120
22121         Missing part of allocsa -> malloca transition.
22122         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
22123         gl_MALLOCA.
22124
22125 2007-06-12  Bruno Haible  <bruno@clisp.org>
22126
22127         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
22128         to ia64, x86_64, i386.
22129         Reported by Eric Blake.
22130
22131 2007-06-12  Bruno Haible  <bruno@clisp.org>
22132
22133         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
22134         cross-compiling to x86_64.
22135
22136 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
22137
22138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
22139         glitch reported by Ralf Wildenhues in
22140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
22141
22142         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
22143         Vin Shelton.
22144
22145 2007-06-11  Bruno Haible  <bruno@clisp.org>
22146
22147         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
22148         replacement string.
22149         Reported by Eric Blake.
22150
22151 2007-06-10  Bruno Haible  <bruno@clisp.org>
22152
22153         Prepare vasnprintf code for use with Unicode strings.
22154         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
22155         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
22156         TYPE_U32_STRING.
22157         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
22158         a_u32_string variants.
22159         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22160         * lib/printf-args.c: Don't include config.h and the specification
22161         header if PRINTF_FETCHARGS is already defined.
22162         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22163         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
22164         TYPE_U16_STRING, TYPE_U32_STRING.
22165         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
22166         u16_directive, u16_directives, u32_directive, u32_directives): New
22167         types.
22168         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
22169         New declarations.
22170         * lib/printf-parse.c: Don't include config.h and the specification
22171         header if PRINTF_PARSE is already defined. Eliminate the set of
22172         parameters for WIDE_CHAR_VERSION; the user of this file must provide
22173         them now. Include c-ctype.h.
22174         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
22175         directive and CHAR_T_ONLY_ASCII.
22176         * lib/vasnprintf.c: Don't include config.h and the specification header
22177         if VASNPRINTF is already defined.
22178         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
22179         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
22180         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
22181         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
22182         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
22183         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
22184         code accordingly.
22185         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
22186         pad_ourselves also in this case, with the 'c' and 's' directives, and
22187         with a different notion of "width".
22188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
22189
22190 2007-06-10  Bruno Haible  <bruno@clisp.org>
22191
22192         * modules/unistr/u32-mbsnlen: New file.
22193         * lib/unistr/u32-mbsnlen.c: New file.
22194
22195         * modules/unistr/u16-mbsnlen: New file.
22196         * lib/unistr/u16-mbsnlen.c: New file.
22197
22198         * modules/unistr/u8-mbsnlen: New file.
22199         * lib/unistr/u8-mbsnlen.c: New file.
22200
22201         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
22202         declarations.
22203
22204 2007-06-10  Bruno Haible  <bruno@clisp.org>
22205
22206         * lib/string_.h (mbsnlen): New declaration.
22207         * lib/mbsnlen.c: New file.
22208         * m4/mbsnlen.m4: New file.
22209         * modules/mbsnlen: New file.
22210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
22211         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
22212         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
22213
22214 2007-06-10  Bruno Haible  <bruno@clisp.org>
22215
22216         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
22217
22218 2007-06-10  Bruno Haible  <bruno@clisp.org>
22219
22220         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
22221         * lib/mbuiter.h: Likewise.
22222
22223 2007-06-10  Bruno Haible  <bruno@clisp.org>
22224
22225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
22226         declaration.
22227
22228 2007-06-10  Karl Berry  <karl@gnu.org>
22229
22230         * config/srclist.txt: remove gettext entries, Bruno prefers
22231         to update individually.
22232
22233 2007-06-10  Bruno Haible  <bruno@clisp.org>
22234
22235         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
22236         'maxlen'. Ensure only length + width bytes are allocated, not
22237         length + 1 + width.
22238
22239 2007-06-09  Bruno Haible  <bruno@clisp.org>
22240
22241         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
22242         (CHAR_T): Remove macro.
22243         (VASNPRINTF): Update.
22244
22245 2007-06-09  Bruno Haible  <bruno@clisp.org>
22246
22247         * MODULES.html.sh (Unicode string functions): Add the new modules.
22248
22249         * modules/uniconv/u32-conv-to-enc: New file.
22250         * lib/uniconv/u32-conv-to-enc.c: New file.
22251         * modules/uniconv/u32-conv-to-enc-tests: New file.
22252         * tests/uniconv/test-u32-conv-to-enc.c: New file.
22253
22254         * modules/uniconv/u16-conv-to-enc: New file.
22255         * lib/uniconv/u16-conv-to-enc.c: New file.
22256         * lib/uniconv/u-conv-to-enc.h: New file.
22257         * modules/uniconv/u16-conv-to-enc-tests: New file.
22258         * tests/uniconv/test-u16-conv-to-enc.c: New file.
22259
22260         * modules/uniconv/u8-conv-to-enc: New file.
22261         * lib/uniconv/u8-conv-to-enc.c: New file.
22262         * modules/uniconv/u8-conv-to-enc-tests: New file.
22263         * tests/uniconv/test-u8-conv-to-enc.c: New file.
22264
22265         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22266         u32_conv_to_encoding): New declarations.
22267
22268 2007-06-09  Bruno Haible  <bruno@clisp.org>
22269
22270         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
22271
22272 2007-06-09  Bruno Haible  <bruno@clisp.org>
22273
22274         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
22275         * modules/malloca: Renamed from modules/allocsa, updated.
22276         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
22277         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
22278         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
22279         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
22280         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
22281         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
22282         * modules/xmalloca: Renamed from modules/xallocsa, updated.
22283         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
22284         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
22285         * modules/c-strcasestr (Depends-on): Update.
22286         * lib/c-strcasestr.c: Update.
22287         * modules/c-strstr (Depends-on): Update.
22288         * lib/c-strstr.c: Update.
22289         * modules/canonicalize-lgpl (Depends-on): Update.
22290         * lib/canonicalize-lgpl.c: Update.
22291         * modules/clean-temp (Depends-on): Update.
22292         * lib/clean-temp.c: Update.
22293         * modules/csharpcomp (Depends-on): Update.
22294         * lib/csharpcomp.c: Update.
22295         * modules/csharpexec (Depends-on): Update.
22296         * lib/csharpexec.c: Update.
22297         * modules/javacomp (Depends-on): Update.
22298         * lib/javacomp.c: Update.
22299         * modules/javaexec (Depends-on): Update.
22300         * lib/javaexec.c: Update.
22301         * modules/mbscasestr (Depends-on): Update.
22302         * lib/mbscasestr.c: Update.
22303         * modules/mbsstr (Depends-on): Update.
22304         * lib/mbsstr.c: Update.
22305         * modules/setenv (Depends-on): Update.
22306         * lib/setenv.c: Update.
22307         * modules/strcasestr (Depends-on): Update.
22308         * lib/strcasestr.c: Update.
22309         * modules/striconveha (Depends-on): Update.
22310         * lib/striconveha.c: Update.
22311         * modules/relocatable-prog-wrapper (Files): Update.
22312         * lib/relocwrapper.c: Update.
22313         * build-aux/install-reloc: Update.
22314         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
22315
22316 2007-06-08  Bruno Haible  <bruno@clisp.org>
22317
22318         Port to uClibc.
22319         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
22320         * lib/fpurge.c (fpurge): Likewise.
22321         * lib/freading.c (freading): Likewise.
22322         * lib/fseeko.c (rpl_fseeko): Likewise.
22323         * lib/fseterr.c (fseterr): Likewise.
22324         * lib/fwriting.c (fwriting): Likewise.
22325         * tests/test-fflush.c (main): Avoid a failure on uClibc.
22326
22327 2007-06-08  Bruno Haible  <bruno@clisp.org>
22328
22329         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
22330         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
22331         * modules/gettext (Files): Add m4/intlmacosx.m4.
22332
22333 2007-06-07  Bruno Haible  <bruno@clisp.org>
22334
22335         * modules/localename-tests: New file.
22336         * tests/test-localename.c: New file.
22337
22338         New module 'localename'.
22339         * lib/localename.h: New file.
22340         * lib/localename.c: New file, from GNU gettext.
22341         * m4/localename.m4: New file.
22342         * modules/localename: New file.
22343
22344 2007-06-07  Bruno Haible  <bruno@clisp.org>
22345
22346         Work around the lack of <wchar.h> on some builds of uClibc.
22347         * doc/headers/wchar.texi: Update.
22348         * lib/wchar_.h: Include <wchar.h> only if it exists.
22349         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
22350         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
22351         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
22352         doesn't exist.
22353         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
22354         * modules/mbfile (Depends-on): Add wchar.
22355         * modules/mbiter (Depends-on): Likewise.
22356         * modules/mbuiter (Depends-on): Likewise.
22357         Reported by Simon Josefsson.
22358
22359 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22360
22361         Work around problem reported by Steven M. Schweda in
22362         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
22363         Tru64 5.1B with the Compaq compiler environment installed declares
22364         an 'isblank' function but does not define it in the C library.
22365         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
22366         * lib/regex_internal.h (isblank): Likewise.
22367         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
22368         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22369
22370 2007-06-05  Bruno Haible  <bruno@clisp.org>
22371
22372         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
22373         ia64.
22374         * modules/printf-safe: New file.
22375         * modules/fprintf-posix (Depends-on): Add printf-safe.
22376         * modules/printf-posix (Depends-on): Likewise.
22377         * modules/snprintf-posix (Depends-on): Likewise.
22378         * modules/sprintf-posix (Depends-on): Likewise.
22379         * modules/vasnprintf-posix (Depends-on): Likewise.
22380         * modules/vasprintf-posix (Depends-on): Likewise.
22381         * modules/vfprintf-posix (Depends-on): Likewise.
22382         * modules/vprintf-posix (Depends-on): Likewise.
22383         * modules/vsnprintf-posix (Depends-on): Likewise.
22384         * modules/vsprintf-posix (Depends-on): Likewise.
22385         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
22386         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
22387         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
22388         "no" on i386, x86_64, ia64.
22389         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
22390         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22391         on i386, x86_64, ia64.
22392         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
22393         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22394         on i386, x86_64, ia64.
22395         * tests/test-vasnprintf-posix.c: Include float.h.
22396         (LDBL80_WORDS): New macro.
22397         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22398         on i386, x86_64, ia64.
22399         * tests/test-vasprintf-posix.c: Include float.h.
22400         (LDBL80_WORDS): New macro.
22401         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22402         on i386, x86_64, ia64.
22403         * tests/test-snprintf-posix.c: Include float.h.
22404         * tests/test-sprintf-posix.c: Likewise.
22405         * tests/test-vsnprintf-posix.c: Likewise.
22406         * tests/test-vsprintf-posix.c: Likewise.
22407
22408 2007-06-05  Bruno Haible  <bruno@clisp.org>
22409
22410         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
22411         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
22412         non-IEEE numbers on i386, x86_64, ia64.
22413         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
22414         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
22415         * tests/test-isnanl.h: Include float.h.
22416         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
22417
22418 2007-06-05  Bruno Haible  <bruno@clisp.org>
22419
22420         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
22421         also the %a / %A. Handle the %a / %A code before this extra handling.
22422
22423 2007-06-05  Bruno Haible  <bruno@clisp.org>
22424
22425         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
22426         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
22427
22428 2007-06-05  Bruno Haible  <bruno@clisp.org>
22429
22430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
22431         typo in variable name.
22432
22433 2007-06-05  Eric Blake  <ebb9@byu.net>
22434
22435         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
22436         Reported by Simon Josefsson.
22437
22438 2007-06-04  Bruno Haible  <bruno@clisp.org>
22439
22440         Avoid test failures on some PowerPC platforms.
22441         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
22442         Define differently for PowerPC.
22443         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
22444         Reported by Gary V. Vaughan <gary@gnu.org>.
22445
22446 2007-06-02  Bruno Haible  <bruno@clisp.org>
22447
22448         Fix test-stdint failure on FreeBSD/ia64.
22449         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
22450         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
22451         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
22452         * doc/headers/stdint.texi: Update.
22453
22454 2007-06-01  Bruno Haible  <bruno@clisp.org>
22455
22456         * tests/test-binary-io.c (main): Pass a third argument to open().
22457         Reported by Gary V. Vaughan <gary@gnu.org>.
22458
22459 2007-06-01  Bruno Haible  <bruno@clisp.org>
22460
22461         * doc/functions/frexpl.texi: Update for mingw.
22462
22463 2007-06-01  Bruno Haible  <bruno@clisp.org>
22464
22465         * tests/test-lseek.c (main): Disable test of errno for invalid third
22466         argument.
22467         * doc/functions/lseek.texi: Update.
22468         Reported by Gary V. Vaughan <gary@gnu.org>.
22469
22470 2007-05-28  Bruno Haible  <bruno@clisp.org>
22471
22472         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
22473
22474 2007-05-31  Eric Blake  <ebb9@byu.net>
22475
22476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
22477         cross compiling.
22478
22479 2007-05-30  Eric Blake  <ebb9@byu.net>
22480         and Bruno Haible  <bruno@clisp.org>
22481
22482         Work around mingw test failures exposed by m4-1.4.9b.
22483         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
22484         * tests/test-unistd.c: Disable uid_t and git_t tests for the
22485         moment.
22486
22487 2007-05-30  Bruno Haible  <bruno@clisp.org>
22488
22489         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
22490         assuming that they are closed. Needed on HP-UX 11.
22491
22492 2007-05-29  Bruno Haible  <bruno@clisp.org>
22493
22494         Fix a problem with #include_next.
22495         * lib/dirent_.h: Split the double-inclusion guard.
22496         * lib/fcntl_.h: Likewise.
22497         * lib/float_.h: Likewise.
22498         * lib/iconv_.h: Likewise.
22499         * lib/inttypes_.h: Likewise.
22500         * lib/locale_.h: Likewise.
22501         * lib/math_.h: Likewise.
22502         * lib/netinet_in_.h: Likewise.
22503         * lib/search_.h: Likewise.
22504         * lib/signal_.h: Likewise.
22505         * lib/stdint_.h: Likewise.
22506         * lib/stdio_.h: Likewise.
22507         * lib/stdlib_.h: Likewise.
22508         * lib/string_.h: Likewise.
22509         * lib/sys_select_.h: Likewise.
22510         * lib/sys_socket_.h: Likewise.
22511         * lib/sys_stat_.h: Likewise.
22512         * lib/sys_time_.h: Likewise.
22513         * lib/sysexits_.h: Likewise.
22514         * lib/time_.h: Likewise.
22515         * lib/unistd_.h: Likewise.
22516         * lib/wchar_.h: Likewise.
22517         * lib/wctype_.h: Likewise.
22518
22519 2007-05-29  Bruno Haible  <bruno@clisp.org>
22520
22521         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
22522         for the moment.
22523
22524 2007-05-29  Bruno Haible  <bruno@clisp.org>
22525
22526         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
22527         invocation.
22528         Reported by Eric Blake.
22529
22530 2007-05-29  Bruno Haible  <bruno@clisp.org>
22531
22532         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
22533         compiling case.
22534
22535 2007-05-29  Eric Blake  <ebb9@byu.net>
22536             Bruno Haible  <bruno@clisp.org>
22537
22538         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
22539         cross compiles.
22540
22541 2007-05-28  Eric Blake  <ebb9@byu.net>
22542
22543         * modules/closein-tests (test_closein_LDADD): Support test on
22544         cygwin with libtool.
22545
22546 2007-05-28  Bruno Haible  <bruno@clisp.org>
22547
22548         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
22549         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22550         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22551         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22552         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22553         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22554         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22555         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22556         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22557
22558 2007-05-28  Eric Blake  <ebb9@byu.net>
22559
22560         Unconditionally include <config.h> in unit tests.
22561         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
22562         * tests/test-allocsa.c, tests/test-arcfour.c,
22563         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
22564         tests/test-array_list.c, tests/test-array_oset.c,
22565         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
22566         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
22567         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
22568         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
22569         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
22570         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
22571         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
22572         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
22573         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
22574         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
22575         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
22576         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
22577         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
22578         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
22579         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
22580         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
22581         test-md5.c, test-memmem.c, test-printf-posix.c,
22582         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
22583         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
22584         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
22585         test-strcasestr.c, test-striconv.c, test-striconveh.c,
22586         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
22587         test-vasnprintf-posix2.c, test-vasnprintf.c,
22588         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
22589         test-vfprintf-posix.c, test-vprintf-posix.c,
22590         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
22591         test-xvasprintf.c: Likewise.
22592
22593 2007-05-28  Bruno Haible  <bruno@clisp.org>
22594
22595         * gnulib-tool (func_import): Remember the --with-tests command-line
22596         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
22597         Reported by Eric Blake.
22598
22599 2007-05-28  Bruno Haible  <bruno@clisp.org>
22600
22601         * modules/ftell-tests: New file.
22602         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
22603         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
22604
22605         * lib/ftell.c: New file.
22606         * modules/ftell: New file.
22607         * m4/ftell.m4: New file.
22608         * doc/functions/ftell.texi: Update.
22609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
22610         REPLACE_FTELL.
22611         * lib/stdio_.h (rpl_ftell): New declaration.
22612         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
22613         REPLACE_FTELL.
22614
22615 2007-05-28  Eric Blake  <ebb9@byu.net>
22616
22617         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
22618
22619 2007-05-28  Bruno Haible  <bruno@clisp.org>
22620
22621         * modules/fseek-tests: New file.
22622         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
22623         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
22624
22625         * lib/fseek.c: New file.
22626         * modules/fseek: New file.
22627         * m4/fseek.m4: New file.
22628         * doc/functions/fseek.texi: Update.
22629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
22630         REPLACE_FSEEK.
22631         * lib/stdio_.h (rpl_fseek): New declaration.
22632         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
22633         REPLACE_FSEEK.
22634
22635 2007-05-28  Bruno Haible  <bruno@clisp.org>
22636
22637         * lib/stdio_.h (fflush): More comments.
22638
22639 2007-05-28  Bruno Haible  <bruno@clisp.org>
22640
22641         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
22642         runtime test.
22643
22644 2007-05-28  Eric Blake  <ebb9@byu.net>
22645
22646         Improve lseek module.
22647         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
22648         * lib/unistd_.h (lseek): Scale back link warning message.
22649         * tests/test-lseek.c: Beef up test.
22650         * tests/test-lseek.sh: Exercise more facets of lseek.
22651         Reported by Bruno Haible.
22652
22653 2007-05-28  Bruno Haible  <bruno@clisp.org>
22654
22655         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
22656         to define.
22657
22658 2007-05-27  Bruno Haible  <bruno@clisp.org>
22659
22660         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
22661
22662 2007-05-27  Bruno Haible  <bruno@clisp.org>
22663
22664         * modules/openmp: New file.
22665         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
22666         Noah Misch.
22667
22668 2007-05-26  Bruno Haible  <bruno@clisp.org>
22669
22670         * modules/chdir-long (Depends-on): Add fchdir.
22671         * modules/chdir-safer (Depends-on): Likewise.
22672         * modules/fts (Depends-on): Likewise.
22673         * modules/fts-lgpl (Depends-on): Likewise.
22674         * modules/openat (Depends-on): Likewise.
22675         * modules/savewd (Depends-on): Likewise.
22676
22677 2007-05-24  Eric Blake  <ebb9@byu.net>
22678
22679         Fix lseek on mingw.
22680         * modules/lseek: New module.
22681         * m4/lseek.m4: New file.
22682         * lib/lseek.c: New file.
22683         * modules/lseek-tests: New file.
22684         * tests/test-lseek.c: New file.
22685         * tests/test-lseek.sh: New file.
22686         * MODULES.html.sh: Document lseek module.
22687         * modules/fflush (Depends-on): Add lseek, fseeko.
22688         * modules/fseeko (Depends-on): Likewise.
22689         * modules/ftello (Depends-on): Likewise.
22690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
22691         broken.
22692         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
22693         broken.
22694         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
22695         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
22696         * lib/ftello.c (rpl_ftello): Likewise.
22697         * tests/test-fseeko.c (main): Test this.
22698         * tests/test-fseeko.sh: Likewise.
22699         * tests/test-ftello.c (main): Likewise.
22700         * tests/test-ftello.sh: Likewise.
22701         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
22702         implies replacing fseek.
22703         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
22704         HAVE_FTELLO.
22705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
22706         * modules/unistd (Makefile.am): Likewise.
22707         * lib/unistd_.h (lseek): Declare a replacement.
22708         * doc/functions/lseek.texi (lseek): Document this fix.
22709         * doc/functions/fseek.texi (fseek): Likewise.
22710         * doc/functions/ftell.texi (ftell): Likewise.
22711
22712 2007-05-24  Bruno Haible  <bruno@clisp.org>
22713
22714         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
22715         in the printed representation of a NaN.
22716         * tests/test-vasprintf-posix.c (test_function): Likewise.
22717         * tests/test-snprintf-posix.h (test_function): Likewise.
22718         * tests/test-sprintf-posix.h (test_function): Likewise.
22719         Reported by Eric Blake.
22720
22721 2007-05-23  Eric Blake  <ebb9@byu.net>
22722
22723         Fix fseeko/ftello on cygwin 1.5.24.
22724         * doc/functions/fseeko.texi (fseeko): Document the fix.
22725         * doc/functions/ftello.texi (ftello): Document the fix.
22726         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
22727         * doc/functions/stdout.text (stdout): New file.
22728         * doc/functions/stderr.text (stderr): New file.
22729         * doc/gnulib.texi (Function Substitutes): Use new files.
22730         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
22731         prior to 1.7.0.
22732         * tests/test-ftello.c (main): Likewise for ftello.
22733         * tests/test-fseeko.sh: New file.
22734         * tests/test-ftello.sh: New file.
22735         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
22736         with seekable stdin.
22737         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
22738         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
22739         (gl_REPLACE_FSEEKO): New macro.
22740         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
22741         * modules/fseeko (Files): Distribute fseeko.c.
22742         * modules/ftello (Files): Distribute ftello.c.
22743         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
22744         mode.
22745         * lib/ftello.c (rpl_ftello): New file.
22746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
22747         fseeko, ftello.
22748         (gl_STDIN_LARGE_OFFSET): New macro.
22749         * modules/stdio (Makefile.am): Perform the replacement.
22750         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
22751
22752 2007-05-23  Bruno Haible  <bruno@clisp.org>
22753
22754         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
22755         GNULIB_POSIXCHECK is defined.
22756
22757 2007-05-21  Bruno Haible  <bruno@clisp.org>
22758
22759         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
22760         Check also the output for NaN arguments. When cross-compiling, guess
22761         no on IRIX.
22762         * lib/vasnprintf.c: Update comments.
22763         * tests/test-vasnprintf-posix.c (strisnan): New function.
22764         (test_function): Use it.
22765         * tests/test-vasprintf-posix.c (strisnan): New function.
22766         (test_function): Use it.
22767         * tests/test-snprintf-posix.h (strisnan): New function.
22768         (test_function): Use it.
22769         * tests/test-sprintf-posix.h (strisnan): New function.
22770         (test_function): Use it.
22771         Reported by Eric Blake.
22772
22773 2007-05-20  Bruno Haible  <bruno@clisp.org>
22774
22775         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
22776         numbers that fails on BeOS.
22777         * doc/functions/frexpl.texi: Update.
22778
22779 2007-05-20  Jim Meyering  <jim@meyering.net>
22780
22781         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
22782         forced upon us by glibc-2.6.
22783
22784 2007-05-20  Bruno Haible  <bruno@clisp.org>
22785
22786         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
22787         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
22788         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
22789         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
22790         NEED_PRINTF_INFINITE.
22791         (is_infinitel): New function.
22792         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
22793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
22794         gl_PREREQ_VASNPRINTF_INFINITE.
22795         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
22796         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22797         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
22798         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
22799         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
22800         gl_PREREQ_VASNPRINTF_INFINITE.
22801         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22802         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22808         * doc/functions/fprintf.texi: Update.
22809         * doc/functions/printf.texi: Update.
22810         * doc/functions/snprintf.texi: Update.
22811         * doc/functions/sprintf.texi: Update.
22812         * doc/functions/vfprintf.texi: Update.
22813         * doc/functions/vprintf.texi: Update.
22814         * doc/functions/vsnprintf.texi: Update.
22815         * doc/functions/vsprintf.texi: Update.
22816
22817 2007-05-20  Bruno Haible  <bruno@clisp.org>
22818
22819         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
22820         was not found in libc.
22821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22822
22823 2007-05-20  Bruno Haible  <bruno@clisp.org>
22824
22825         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22826         printed as "-nan" instead of "nan".
22827         * tests/test-vasprintf-posix.c (test_function): Likewise.
22828         * tests/test-snprintf-posix.h (test_function): Likewise.
22829         * tests/test-sprintf-posix.h (test_function): Likewise.
22830         Needed for HP-UX 11.
22831
22832 2007-05-20  Jim Meyering  <jim@meyering.net>
22833
22834         Fix buggy test for the fchownat-deref bug.
22835         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
22836         symlink required for the run-test.  Without it, this test would
22837         always declare that fchownat doesn't work, and client code would
22838         unnecessarily use the replacement function with fixed libc.
22839         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
22840         Reported by Greg Schafer.
22841
22842 2007-05-19  Bruno Haible  <bruno@clisp.org>
22843
22844         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
22845         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
22846         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
22847         Needed for IRIX 6.5 and Solaris 2.5.1.
22848
22849 2007-05-19  Bruno Haible  <bruno@clisp.org>
22850
22851         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
22852         (test_function): Skip tests involving -0.0 on platforms where
22853         -0.0 = 0.0.
22854         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
22855         (test_function): Skip tests involving -0.0 on platforms where
22856         -0.0 = 0.0.
22857         * tests/test-snprintf-posix.h (have_minus_zero): New function.
22858         (test_function): Skip tests involving -0.0 on platforms where
22859         -0.0 = 0.0.
22860         * tests/test-sprintf-posix.h (have_minus_zero): New function.
22861         (test_function): Skip tests involving -0.0 on platforms where
22862         -0.0 = 0.0.
22863         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
22864         tests.
22865         * tests/test-printf-posix.h (test_function): Likewise.
22866         * tests/test-printf-posix.output: Remove all -0.0 related results.
22867         Needed for IRIX 6.5.
22868
22869 2007-05-19  Bruno Haible  <bruno@clisp.org>
22870
22871         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
22872         printed as "nan0x7fffffff" instead of "nan".
22873         * tests/test-vasprintf-posix.c (test_function): Likewise.
22874         * tests/test-snprintf-posix.h (test_function): Likewise.
22875         * tests/test-sprintf-posix.h (test_function): Likewise.
22876         * tests/test-fprintf-posix.h (NaN): Remove macro.
22877         (test_function): Remove all NaN related tests.
22878         * tests/test-printf-posix.h (NaN): Remove macro.
22879         (test_function): Remove all NaN related tests.
22880         * tests/test-printf-posix.output: Remove all NaN related results.
22881         Needed for IRIX 6.5.
22882
22883 2007-05-19  Bruno Haible  <bruno@clisp.org>
22884
22885         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
22886         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22887
22888 2007-05-19  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/float_.h: New file.
22891         * m4/float_h.m4: New file.
22892         * modules/float: New file.
22893         * modules/isnanl (Dependencies): Add float.
22894         * modules/isnanl-nolibm (Dependencies): Likewise.
22895         * modules/mathl (Dependencies): Likewise.
22896         * modules/printf-frexpl (Dependencies): Likewise.
22897         * modules/signbit (Dependencies): Likewise.
22898         * modules/vasnprintf (Dependencies): Likewise.
22899         * doc/headers/float.texi: Update.
22900
22901 2007-05-19  Jim Meyering  <jim@meyering.net>
22902
22903         * lib/utimens.c (gl_futimens): Rename from futimens,
22904         now that glibc-2.6 declares futimens.
22905         * lib/utimens.h: Likewise.
22906
22907 2007-05-19  Bruno Haible  <bruno@clisp.org>
22908
22909         Avoid test failures on mingw.
22910         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
22911         * tests/test-printf-posix.sh: Likewise.
22912         * tests/test-vfprintf-posix.sh: Likewise.
22913         * tests/test-vprintf-posix.sh: Likewise.
22914
22915 2007-05-19  Bruno Haible  <bruno@clisp.org>
22916
22917         Fix *printf result for NaN, Inf, -0.0 on mingw.
22918         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
22919         * lib/vasnprintf.c: Include math.h and isnan.h.
22920         (is_infinite_or_zero): New function.
22921         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
22922         values in the %f, %F, %e, %E, %g, %G directives.
22923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
22924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22925         gl_PRINTF_INFINITE and test its result. Invoke
22926         gl_PREREQ_VASNPRINTF_INFINITE.
22927         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22930         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22933         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22934         * doc/functions/fprintf.texi: Update.
22935         * doc/functions/printf.texi: Update.
22936         * doc/functions/snprintf.texi: Update.
22937         * doc/functions/sprintf.texi: Update.
22938         * doc/functions/vfprintf.texi: Update.
22939         * doc/functions/vprintf.texi: Update.
22940         * doc/functions/vsnprintf.texi: Update.
22941         * doc/functions/vsprintf.texi: Update.
22942
22943 2007-05-19  Bruno Haible  <bruno@clisp.org>
22944
22945         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
22946         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
22947         Instead of multiplying with 10^k, set extra_zeroes to k.
22948         (scale10_round_long_double): Remove function.
22949
22950 2007-05-18  Bruno Haible  <bruno@clisp.org>
22951
22952         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
22953         introduced on 2007-05-06.
22954
22955 2007-05-18  Bruno Haible  <bruno@clisp.org>
22956
22957         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
22958         %g directives.
22959         * tests/test-vasprintf-posix.c (test_function): Likewise.
22960         * tests/test-snprintf-posix.h (test_function): Likewise.
22961         * tests/test-sprintf-posix.h (test_function): Likewise.
22962
22963 2007-05-18  Bruno Haible  <bruno@clisp.org>
22964
22965         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
22966         (strmatch): New function.
22967         (test_function): Test the %f directive on numbers of various exponents.
22968         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
22969         (strmatch): New function.
22970         (test_function): Test the %f directive on numbers of various exponents.
22971         * tests/test-snprintf-posix.h (strmatch): New function.
22972         (test_function): Test the %f directive on numbers of various exponents.
22973         * tests/test-sprintf-posix.h (strmatch): New function.
22974         (test_function): Test the %f directive on numbers of various exponents.
22975         * tests/test-snprintf-posix.c (SIZEOF): New macro.
22976         * tests/test-sprintf-posix.c (SIZEOF): New macro.
22977         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
22978         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
22979
22980 2007-05-18  Bruno Haible  <bruno@clisp.org>
22981
22982         Add support for 'long double' number output.
22983         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
22984         * lib/vasnprintf.c: Include math.h and float+.h.
22985         (mp_limb_t): New type.
22986         (GMP_LIMB_BITS): New macro.
22987         (mp_twolimb_t): New type.
22988         (GMP_TWOLIMB_BITS): New macro.
22989         (mpn_t): New type.
22990         (multiply, divide, convert_to_decimal, decode_long_double,
22991         scale10_round_long_double, scale10_round_decimal_long_double,
22992         floorlog10l): New functions.
22993         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
22994         for the %f, %F, %e, %E, %g, %G directives.
22995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
22996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22997         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
22998         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
22999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23006         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
23007         * modules/snprintf-posix (Depends-on): Likewise.
23008         * modules/sprintf-posix (Depends-on): Likewise.
23009         * modules/vasnprintf-posix (Depends-on): Likewise.
23010         * modules/vasprintf-posix (Depends-on): Likewise.
23011         * modules/vfprintf-posix (Depends-on): Likewise.
23012         * modules/vsnprintf-posix (Depends-on): Likewise.
23013         * modules/vsprintf-posix (Depends-on): Likewise.
23014         * modules/vasnprintf (Files): Add lib/float+.h.
23015         * doc/functions/fprintf.texi: Update.
23016         * doc/functions/printf.texi: Update.
23017         * doc/functions/snprintf.texi: Update.
23018         * doc/functions/sprintf.texi: Update.
23019         * doc/functions/vfprintf.texi: Update.
23020         * doc/functions/vprintf.texi: Update.
23021         * doc/functions/vsnprintf.texi: Update.
23022         * doc/functions/vsprintf.texi: Update.
23023
23024 2007-05-18  Bruno Haible  <bruno@clisp.org>
23025
23026         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
23027
23028 2007-05-18  Bruno Haible  <bruno@clisp.org>
23029
23030         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
23031         for printing 64-bit integers. Needed for mingw.
23032
23033 2007-05-18  Bruno Haible  <bruno@clisp.org>
23034
23035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23036         gl_FUNC_FREXPL_WORKS.
23037         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
23038
23039 2007-05-18  Bruno Haible  <bruno@clisp.org>
23040
23041         * modules/frexpl-nolibm-tests: New file.
23042
23043         * modules/frexpl-nolibm: New file.
23044         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
23045
23046 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23047
23048         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
23049         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23050         GCC 4.2, which otherwise issues a lot of warnings.
23051         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
23052         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
23053         Likewise.
23054         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
23055         * modules/iconv_open (iconv.h): Likewise.
23056         * modules/locale (locale.h): Likewise.
23057         * modules/netinet_in (netinet/in.h): Likewise.
23058         * modules/sys_select (sys_select.h): Likewise.
23059         * modules/sys_socket (sys/socket.h): Likewise.
23060         * modules/sys_stat (sys/stat.h): Likewise.
23061         * modules/sysexits (sysexits.h): Likewise.
23062         * modules/unistd (unistd.h): Likewise.
23063
23064 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23065
23066         * modules/closein-tests (Makefile.am): Distribute
23067         `test-closein.sh'.
23068
23069 2007-05-17  Bruno Haible  <bruno@clisp.org>
23070
23071         * tests/test-printf-posix.output: Renamed from
23072         tests/test-fprintf-posix.out.
23073         * modules/fprintf-posix-tests: Update.
23074         * modules/printf-posix-tests: Update.
23075         * modules/vfprintf-posix-tests: Update.
23076         * modules/vprintf-posix-tests: Update.
23077         * tests/test-fprintf-posix.sh: Update.
23078         * tests/test-printf-posix.sh: Update.
23079         * tests/test-vfprintf-posix.sh: Update.
23080         * tests/test-vprintf-posix.sh: Update.
23081         Reported by Ralf Wildenhues.
23082
23083 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23084
23085         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
23086         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23087         GCC 4.2, which otherwise issues a lot of warnings.
23088         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
23089         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
23090         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
23091         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
23092         it should no longer be needed.
23093         * lib/string_.h: Likewise.
23094         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
23095         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
23096         * modules/inttypes (inttypes.h): Likewise.
23097         * modules/math (math.h): Likewise.
23098         * modules/search (search.h): Likewise.
23099         * modules/signal (signal.h): Likewise.
23100         * modules/stdint (stdint.h): Likewise.
23101         * modules/stdio (stdio.h): Likewise.
23102         * modules/stdlib (stdlib.h): Likewise.
23103         * modules/string (string.h): Likewise.
23104         * modules/sys_time (sys/time.h): Likewise.
23105         * modules/time (time.h): Likewise.
23106         * modules/wchar (wchar.h): Likewise.
23107         * modules/wctype (wtype.h): Likewise.
23108
23109 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23110
23111         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
23112
23113 2007-05-13  Bruno Haible  <bruno@clisp.org>
23114
23115         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
23116         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23117         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
23118         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23119         (gl_PREREQ_STRTOK_R): Don't require it here.
23120
23121 2007-05-13  Bruno Haible  <bruno@clisp.org>
23122
23123         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
23124         when used in C++ mode.
23125
23126 2007-05-12  Bruno Haible  <bruno@clisp.org>
23127
23128         * lib/linebuffer.h: Tweak doc.
23129         * lib/linebuffer.c: Likewise.
23130
23131 2007-05-12  James Youngman  <jay@gnu.org>
23132
23133         * lib/linebuffer.c (readlinebuffer_delim): New function,
23134         like readlinebuffer, but use a caller-specified delimiter.
23135         (readlinebuffer): Just call readlinebuffer_delim with '\n'
23136         as the delimiter.
23137         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
23138
23139 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23140
23141         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
23142         * modules/openat (Files): Remove openat-die.c.
23143         (Depends-on): Add openat-die.
23144         * modules/openat-die: New module.
23145
23146 2007-05-06  Bruno Haible  <bruno@clisp.org>
23147
23148         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
23149         Update with info about Cygwin.
23150         * doc/functions/fprintf.texi: Update.
23151         * doc/functions/printf.texi: Update.
23152         * doc/functions/snprintf.texi: Update.
23153         * doc/functions/sprintf.texi: Update.
23154         * doc/functions/vfprintf.texi: Update.
23155         * doc/functions/vprintf.texi: Update.
23156         * doc/functions/vsnprintf.texi: Update.
23157         * doc/functions/vsprintf.texi: Update.
23158         Reported by Eric Blake.
23159
23160 2007-05-06  Bruno Haible  <bruno@clisp.org>
23161
23162         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
23163         padding ourselves for the floating-point directives.
23164         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
23165         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
23166         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23167         gl_PRINTF_FLAG_ZERO and test its result. Invoke
23168         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
23169         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23171         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23176         * tests/test-snprintf-posix.h (test_function): Also check the width
23177         and some flags in the %f directive.
23178         * tests/test-sprintf-posix.h (test_function): Likewise.
23179         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23180         * tests/test-vasprintf-posix.c (test_function): Likewise.
23181         * doc/functions/fprintf.texi: Update.
23182         * doc/functions/printf.texi: Update.
23183         * doc/functions/snprintf.texi: Update.
23184         * doc/functions/sprintf.texi: Update.
23185         * doc/functions/vfprintf.texi: Update.
23186         * doc/functions/vprintf.texi: Update.
23187         * doc/functions/vsnprintf.texi: Update.
23188         * doc/functions/vsprintf.texi: Update.
23189
23190 2007-05-06  Bruno Haible  <bruno@clisp.org>
23191
23192         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
23193         pass the ' flag character to sprintf or snprintf.
23194         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
23195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
23196         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23197         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
23198         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
23199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23200         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23202         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23203         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23204         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23205         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23206         * tests/test-snprintf-posix.h (test_function): Also check the grouping
23207         flag.
23208         * tests/test-sprintf-posix.h (test_function): Likewise.
23209         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23210         * tests/test-vasprintf-posix.c (test_function): Likewise.
23211         * doc/functions/fprintf.texi: Update.
23212         * doc/functions/printf.texi: Update.
23213         * doc/functions/snprintf.texi: Update.
23214         * doc/functions/sprintf.texi: Update.
23215         * doc/functions/vfprintf.texi: Update.
23216         * doc/functions/vprintf.texi: Update.
23217         * doc/functions/vsnprintf.texi: Update.
23218         * doc/functions/vsprintf.texi: Update.
23219
23220 2007-05-01  Bruno Haible  <bruno@clisp.org>
23221
23222         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
23223
23224 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
23225
23226         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
23227         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
23228
23229 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23230
23231         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
23232         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
23233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
23234
23235 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
23236
23237         * lib/argp-help.c (struct hol_entry): New member `ord'.
23238         (HOL_ENTRY_PTRCMP): Use ord for comparison
23239         (hol_sort): Initialize ord.
23240
23241 2007-05-01  Bruno Haible  <bruno@clisp.org>
23242
23243         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
23244         Reported by Eric Blake.
23245         * doc/gnulib.texi (Function Substitutes): Update.
23246
23247 2007-05-01  Bruno Haible  <bruno@clisp.org>
23248
23249         * doc/functions.texi: Remove file, now redundant through
23250         doc/functions/*.texi.
23251
23252 2007-05-01  Bruno Haible  <bruno@clisp.org>
23253
23254         * modules/argp (Depends-on): Add sleep.
23255
23256 2007-05-01  Bruno Haible  <bruno@clisp.org>
23257
23258         * modules/sleep-tests: New file.
23259         * tests/test-sleep.c: New file.
23260
23261         * modules/sleep: New file.
23262         * lib/sleep.c: New file.
23263         * m4/sleep.m4: New file.
23264         * lib/unistd_.h (sleep): New declaration.
23265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
23266         HAVE_SLEEP.
23267         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
23268         * doc/functions/sleep.texi: Document the sleep module.
23269
23270 2007-05-01  Bruno Haible  <bruno@clisp.org>
23271
23272         * lib/sigprocmask.h: Remove file.
23273         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
23274         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
23275         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
23276         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
23277         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
23278         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
23279         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
23280         HAVE_SIGSET_T as a shell variable.
23281         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
23282         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
23283         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
23284         (Depends-on): Add signal. Remove verify.
23285         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
23286         (Include): Mention <signal.h> instead of sigprocmask.h.
23287         * NEWS: Mention the change.
23288         * lib/fatal-signal.c: Don't include sigprocmask.h.
23289
23290 2007-05-01  Bruno Haible  <bruno@clisp.org>
23291
23292         * modules/signal: New file.
23293         * lib/signal_.h: New file.
23294         * m4/signal_h.m4: New file.
23295
23296 2007-05-01  Bruno Haible  <bruno@clisp.org>
23297
23298         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
23299         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
23300         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
23301         HAVE_WCTYPE_CTMP_BUG into wctype.h.
23302
23303 2007-05-01  Bruno Haible  <bruno@clisp.org>
23304
23305         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
23306         configure time.
23307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
23308         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
23309         * modules/sys_stat (Makefile.am): Substitute their values into
23310         sys/stat.h.
23311
23312 2007-05-01  Bruno Haible  <bruno@clisp.org>
23313
23314         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
23315         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
23316         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
23317
23318 2007-05-01  Bruno Haible  <bruno@clisp.org>
23319
23320         * doc/header/assert.texi: Undo last change: don't mention the gnulib
23321         'assert' module here.
23322
23323 2007-05-01  Bruno Haible  <bruno@clisp.org>
23324
23325         * doc/functions/*.texi: New files.
23326         * doc/functions/google-ranking.txt: New file.
23327         * doc/gnulib.texi (Function Substitutes): New chapter.
23328         (ctime, inet_ntoa): Remove sections.
23329         * doc/ctime.texi: Remove file.
23330         * doc/inet_ntoa.texi: Remove file.
23331         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
23332         dependencies.
23333         (%.info): New rule, specifying a --reference-limit.
23334
23335 2007-05-01  Bruno Haible  <bruno@clisp.org>
23336
23337         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
23338
23339 2007-05-01  Bruno Haible  <bruno@clisp.org>
23340
23341         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
23342         the portability of 'mkdir' to mingw systems.
23343
23344 2007-05-01  Bruno Haible  <bruno@clisp.org>
23345
23346         * doc/headers/google-ranking.txt: New file.
23347
23348 2007-04-30  Eric Blake  <ebb9@byu.net>
23349
23350         Prefer fseeko to fseek.
23351         * modules/getpass (Depends-on): Add fseeko.
23352         * lib/getpass.c (getpass): Use fseeko, not fseek.
23353
23354 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
23355
23356         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
23357         assumes the sorting is stable, while most qsort implementations
23358         are not.  Use argument addresses to ensure they never compare as
23359         equal.
23360
23361         * tests/test-argp-2.sh (usage-indent test): Fix output
23362         (func_compare): Restore diff options
23363         * tests/test-argp.c: Restore #include "progname.h"
23364
23365 2007-04-29  Bruno Haible  <bruno@clisp.org>
23366
23367         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
23368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23369         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
23370         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23371         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
23372         (configure.ac): Define CHECK_SNPRINTF_POSIX.
23373         (TESTS, check_PROGRAMS): Add test-snprintf.
23374         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
23375         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
23376         (TESTS, check_PROGRAMS): Add test-vsnprintf.
23377         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
23378         assertions that fail on HP-UX, OSF/1, or IRIX.
23379         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
23380
23381 2007-04-29  Bruno Haible  <bruno@clisp.org>
23382
23383         * MODULES.html.sh (posix_functions): Remove 'contents'.
23384
23385 2007-04-29  Karl Berry  <karl@gnu.org>
23386
23387         * config/srclist.txt (gendocs_template_min): new entry.
23388
23389 2007-04-29  Bruno Haible  <bruno@clisp.org>
23390
23391         Work around fpurge bug on BSD systems.
23392         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
23393         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
23394         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
23395         fpurge to rpl_fpurge if the system already has this function.
23396         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
23397         the case where the system already has this function. Correct invariants
23398         on BSD systems.
23399         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
23400         BSD systems.
23401
23402 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23403
23404         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
23405         proposed by Sven Verdoolaege.
23406
23407         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
23408         options.
23409         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
23410         (usage and help tests): Update
23411
23412 2007-04-29  Bruno Haible  <bruno@clisp.org>
23413
23414         * tests/test-fflush.c (main): Use a file of size 17, not 10.
23415         Print more information in case of failure. Disable a test on BeOS.
23416
23417 2007-04-29  Bruno Haible  <bruno@clisp.org>
23418
23419         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
23420         This helps debugging on systems on which no gdb is available.
23421
23422 2007-04-29  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/freading.h: Improve comments.
23425         * lib/fwriting.h: Likewise.
23426         * tests/test-freading.c (main): Don't check freading immediately after
23427         repositioning. Needed for glibc.
23428
23429 2007-04-29  Bruno Haible  <bruno@clisp.org>
23430
23431         * lib/freading.c (freading): Trivial simplification.
23432
23433 2007-04-28  Bruno Haible  <bruno@clisp.org>
23434
23435         * tests/test-fwriting.c (main): Also test the interaction between
23436         fflush and fwriting.
23437         * modules/fwriting-tests (Depends-on): Add fflush.
23438
23439         * tests/test-freading.c (main): Also test the interaction between
23440         fflush and freading.
23441         * modules/freading-tests (Depends-on): Add fflush.
23442
23443 2007-04-28  Bruno Haible  <bruno@clisp.org>
23444
23445         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
23446         fseeko and ftello.
23447         Suggested by Eric Blake.
23448
23449 2007-04-28  Jim Meyering  <jim@meyering.net>
23450
23451         Avoid false-negative in gl_STDINT_H's C99 conformance test.
23452         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
23453         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
23454
23455 2007-04-27  Eric Blake  <ebb9@byu.net>
23456
23457         * doc/headers/assert.texi (assert.h): Document assert module use.
23458
23459 2007-04-27  Bruno Haible  <bruno@clisp.org>
23460
23461         * doc/headers/*.texi: New files.
23462         * doc/gnulib.texi (Header File Substitutes): New chapter.
23463         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
23464         dependencies.
23465         (standards.info ,standards.html, standards.dvi): Update dependencies.
23466         (mostlyclean, clean): New targets.
23467
23468 2007-04-27  Bruno Haible  <bruno@clisp.org>
23469
23470         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
23471         * modules/sysexits (Files, Makefile.am): Update.
23472
23473         * lib/sys_socket_.h: Renamed from lib/socket_.h.
23474         * modules/sys_socket (Files, Makefile.am): Update.
23475
23476         * lib/sys_stat_.h: Renamed from lib/stat_.h.
23477         * modules/sys_stat (Files, Makefile.am): Update.
23478
23479 2007-04-27  Eric Blake  <ebb9@byu.net>
23480
23481         * lib/freading.h: Improve comments.
23482         * lib/fwriting.h: Likewise.
23483         * lib/fflush.c: Likewise.
23484
23485         Fix closein for mingw.
23486         * modules/closein-tests: Add tests for closein.
23487         * tests/test-closein.c: New file.
23488         * tests/test-closein.sh: Likewise.
23489         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
23490         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
23491
23492 2007-04-27  Bruno Haible  <bruno@clisp.org>
23493
23494         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
23495         version is < 6.
23496         * lib/math_.h [__DECC]: Likewise.
23497         * lib/stdio_.h [__DECC]: Likewise.
23498         * lib/stdlib_.h [__DECC]: Likewise.
23499         * lib/string_.h [__DECC]: Likewise.
23500         * lib/time_.h [__DECC]: Likewise.
23501         * lib/wchar_.h [__DECC]: Likewise.
23502         * lib/wctype_.h [__DECC]: Likewise.
23503
23504 2007-04-27  Bruno Haible  <bruno@clisp.org>
23505
23506         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
23507
23508 2007-04-27  Bruno Haible  <bruno@clisp.org>
23509
23510         * lib/fflush.c: Add comments.
23511         * modules/fpurge-tests (Depends-on): Add fflush.
23512         * modules/freadable-tests (Depends-on): Likewise.
23513         * modules/fwritable-tests (Depends-on): Likewise.
23514
23515 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
23516
23517         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
23518         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
23519         Report by Bruno Haible <bruno@clisp.org>.
23520
23521 2007-04-26  Eric Blake  <ebb9@byu.net>
23522
23523         Fix fflush on mingw.
23524         * modules/fflush (Depends-on): Add freading.
23525         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
23526         but unread data.
23527
23528 2007-04-26  Eric Blake  <ebb9@byu.net>
23529         and Bruno Haible  <bruno@clisp.org>
23530
23531         Implement freading and fwriting.
23532         * lib/freading.c: New file.
23533         * lib/freading.h: Likewise.
23534         * m4/freading.m4: Likewise.
23535         * modules/freading: Likewise.
23536         * modules/freading-tests: Likewise.
23537         * tests/test-freading.c: Likewise.
23538         * lib/fwriting.c: New file.
23539         * lib/fwriting.h: Likewise.
23540         * m4/fwriting.m4: Likewise.
23541         * modules/fwriting: Likewise.
23542         * modules/fwriting-tests: Likewise.
23543         * tests/test-fwriting.c: Likewise.
23544         * MODULES.html.sh (File stream based Input/Output): Mention them.
23545
23546 2007-04-26  Bruno Haible  <bruno@clisp.org>
23547
23548         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
23549         'long' when we assume it.
23550         Suggested by Eric Blake.
23551
23552 2007-04-26  Bruno Haible  <bruno@clisp.org>
23553
23554         Ensure fseeko, ftello are declared on glibc systems.
23555         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
23556         * modules/fseeko (configure.ac-early): Likewise.
23557         * modules/ftello (configure.ac-early): Likewise.
23558         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
23559         AC_FUNC_FSEEKO for this.
23560         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
23561         (gl_CHECK_FSEEKO): Remove macro.
23562
23563 2007-04-26  Bruno Haible  <bruno@clisp.org>
23564
23565         * tests/test-fflush.c (main): Also check the ftell result after
23566         fflush and fseek/fseeko.
23567         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
23568         file descriptor position cache in the stream.
23569         * lib/fseeko.c (rpl_fseeko): Likewise.
23570
23571 2007-04-26  Bruno Haible  <bruno@clisp.org>
23572
23573         * modules/fflush-tests (Depends-on): Add fseeko.
23574
23575 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
23576             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23577
23578         * lib/argz_.h: ensure error_t definition is obtained in same
23579         mechanism system argz.h would have.
23580         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
23581         argz facilities are known bad.  Err on the side of caution if
23582         cross-compiling.
23583
23584 2007-04-25  Eric Blake  <ebb9@byu.net>
23585
23586         * lib/fpurge.c (includes): Use stdlib.h for free.
23587         * tests/test-fflush.c (main): Also test fflush-fseeko.
23588
23589 2007-04-25  Bruno Haible  <bruno@clisp.org>
23590
23591         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
23592         * lib/fseeko.c: New file.
23593         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
23594         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
23595         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
23596         gl_FUNC_FSEEKO.
23597         (gl_FUNC_FSEEKO): Invoke it.
23598         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
23599         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
23600         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
23601
23602 2007-04-25  Bruno Haible  <bruno@clisp.org>
23603
23604         * modules/fflush (Depends-on): Add ftello.
23605
23606 2007-04-25  Bruno Haible  <bruno@clisp.org>
23607
23608         * modules/ftello-tests: New file.
23609         * tests/test-ftello.c: New file.
23610
23611         * modules/ftello: New file.
23612         * m4/ftello.m4: New file.
23613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
23614         HAVE_FTELLO.
23615         * lib/stdio_.h (ftello): New declaration.
23616         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
23617         HAVE_FTELLO.
23618
23619 2007-04-25  Bruno Haible  <bruno@clisp.org>
23620
23621         * modules/fseeko-tests: New file.
23622         * tests/test-fseeko.c: New file.
23623
23624         * modules/fseeko: New file.
23625         * m4/fseeko.m4: New file.
23626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
23627         HAVE_FSEEKO.
23628         * lib/stdio_.h (fseeko): New declaration.
23629         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
23630         HAVE_FSEEKO.
23631
23632 2007-04-25  Bruno Haible  <bruno@clisp.org>
23633
23634         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
23635
23636 2007-04-25  Bruno Haible  <bruno@clisp.org>
23637
23638         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
23639         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
23640         * tests/test-unistd.c: Likewise.
23641         * tests/test-fcntl.c: Likewise.
23642
23643 2007-04-23  Eric Blake  <ebb9@byu.net>
23644
23645         * lib/fflush.c: Fix missing include.
23646         Reported by Bruno Haible.
23647
23648 2007-04-23  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
23651         Reported by Eric Blake.
23652
23653 2007-04-23  Bruno Haible  <bruno@clisp.org>
23654
23655         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
23656
23657 2007-04-23  Bruno Haible  <bruno@clisp.org>
23658
23659         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
23660
23661 2007-04-23  Bruno Haible  <bruno@clisp.org>
23662
23663         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
23664         Needed on HP-UX 11.
23665
23666 2007-04-16  Eric Blake  <ebb9@byu.net>
23667
23668         Make fflush rely on fpurge.
23669         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
23670         open coding all variants.
23671         * modules/fflush (Depends-on): Add fpurge and unistd.
23672         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
23673         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
23674
23675         Fix --with-tests compilation on cygwin.
23676         * modules/argmatch-tests (Makefile.am): List gnulib library first
23677         in LDADD.
23678         * modules/argp-tests (Makefile.am): Likewise.
23679         * modules/array-list-tests (Makefile.am): Likewise.
23680         * modules/array-oset-tests (Makefile.am): Likewise.
23681         * modules/avltree-list-tests (Makefile.am): Likewise.
23682         * modules/avltree-oset-tests (Makefile.am): Likewise.
23683         * modules/avltreehash-list-tests (Makefile.am): Likewise.
23684         * modules/carray-list-tests (Makefile.am): Likewise.
23685         * modules/dirname-tests (Makefile.am): Likewise.
23686         * modules/frexp-tests (Makefile.am): Likewise.
23687         * modules/isnanl-tests (Makefile.am): Likewise.
23688         * modules/linked-list-tests (Makefile.am): Likewise.
23689         * modules/linkedhash-list-tests (Makefile.am): Likewise.
23690         * modules/lock-tests (Makefile.am): Likewise.
23691         * modules/rbtree-list-tests (Makefile.am): Likewise.
23692         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23693         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
23694         * modules/tls-tests (Makefile.am): Likewise.
23695         * modules/tsearch-tests (Makefile.am): Likewise.
23696         * modules/xvasprintf-tests (Makefile.am): Likewise.
23697
23698         Fix fpurge for cygwin.
23699         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
23700         value.
23701         * modules/fpurge-tests (Depends-on): Clean up trash.
23702
23703 2007-04-16  Simon Josefsson  <simon@josefsson.org>
23704
23705         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
23706
23707         * m4/autobuild.m4: Re-indent.
23708
23709 2007-04-13  Bruno Haible  <bruno@clisp.org>
23710
23711         * modules/fpurge-tests: New file.
23712         * tests/test-fpurge.c: New file.
23713
23714         * modules/fpurge: New file.
23715         * lib/fpurge.h: New file.
23716         * lib/fpurge.c: New file.
23717         * m4/fpurge.m4: New file.
23718
23719 2007-04-13  Bruno Haible  <bruno@clisp.org>
23720
23721         * modules/fbufmode-tests: New file.
23722         * tests/test-fbufmode.c: New file.
23723
23724         * modules/fbufmode: New file.
23725         * lib/fbufmode.h: New file.
23726         * lib/fbufmode.c: New file.
23727         * m4/fbufmode.m4: New file.
23728
23729 2007-04-13  Bruno Haible  <bruno@clisp.org>
23730
23731         * modules/fwritable-tests: New file.
23732         * tests/test-fwritable.c: New file.
23733
23734         * modules/fwritable: New file.
23735         * lib/fwritable.h: New file.
23736         * lib/fwritable.c: New file.
23737         * m4/fwritable.m4: New file.
23738
23739 2007-04-13  Bruno Haible  <bruno@clisp.org>
23740
23741         * modules/freadable-tests: New file.
23742         * tests/test-freadable.c: New file.
23743
23744         * modules/freadable: New file.
23745         * lib/freadable.h: New file.
23746         * lib/freadable.c: New file.
23747         * m4/freadable.m4: New file.
23748
23749 2007-04-13  Bruno Haible  <bruno@clisp.org>
23750
23751         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
23752         MOSTLYCLEANFILES.
23753
23754 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23755
23756         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
23757         gzip bootstrap.conf to avoid dragging in i18n machinery.
23758         (gnulib_tool_option): Use it.
23759
23760 2007-04-13  Bruno Haible  <bruno@clisp.org>
23761
23762         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
23763         %F directives.
23764         * tests/test-vasprintf-posix.c (test_function): Likewise.
23765         * tests/test-snprintf-posix.h (test_function): Likewise.
23766         * tests/test-sprintf-posix.h (test_function): Likewise.
23767         * tests/test-fprintf-posix.h (test_function): Likewise.
23768         * tests/test-printf-posix.h (test_function): Likewise.
23769         * tests/test-fprintf-posix.out: Likewise.
23770
23771 2007-04-13  Bruno Haible  <bruno@clisp.org>
23772
23773         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
23774         * modules/tls-tests (configure.ac): Likewise.
23775         Reported by Arto C. Nirkko <anirkko@insel.ch>.
23776
23777 2007-04-13  Bruno Haible  <bruno@clisp.org>
23778
23779         * lib/tls.c (glthread_tls_get): Fix return type.
23780         Patch by Arto C. Nirkko <anirkko@insel.ch>.
23781
23782 2007-04-12  Eric Blake  <ebb9@byu.net>
23783
23784         * modules/gettime (Depends-on): Remove gettime.
23785         Reported by Dmitry V. Levin.
23786
23787 2007-04-12  Bruno Haible  <bruno@clisp.org>
23788
23789         * modules/fflush (Include): Mention <stdio.h>.
23790         * modules/strtoimax (Include): Mention <inttypes.h>.
23791         * modules/strtoumax (Include): Likewise.
23792
23793 2007-04-12  Eric Blake  <ebb9@byu.net>
23794
23795         * .cvsignore: New file.
23796         * .gitignore: Likewise.
23797
23798 2007-04-12  Bruno Haible  <bruno@clisp.org>
23799
23800         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
23801         not before, since $(LDADD) often contains libgnu.a.
23802         * modules/striconv-tests (test_striconv_LDADD): Likewise.
23803         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
23804         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
23805         Needed on Cygwin.
23806
23807 2007-04-12  Eric Blake  <ebb9@byu.net>
23808
23809         Work around glibc's failure to flush stdin on fclose.
23810         * lib/closein.c (close_stdin): Flush stdin before closing.
23811
23812         Work around glibc's failure to reset seekable stdin on exit.
23813         * modules/closein: New module.
23814         * lib/closein.c: New file.
23815         * lib/closein.h: Likewise.
23816         * m4/closein.m4: Likewise.
23817         * MODULES.html.sh (File stream based Input/Output): Document it.
23818
23819 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23820
23821         * gnulib-tool: Rename generated 'autobuild' script to
23822         'do-autobuild' in --create-megatestdir output.
23823
23824         * doc/gnulib.texi (Build robot for gnulib): Fix.
23825
23826 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23827
23828         * modules/sysexits (Depends-on): Add absolute-header.
23829
23830 2007-04-12  Eric Blake  <ebb9@byu.net>
23831
23832         No need to preserve errno on success.
23833         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
23834         Reported by Bruno Haible.
23835
23836 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23837
23838         * MODULES.html.sh (Support for maintaining and releasing
23839         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
23840
23841 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23842
23843         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
23844
23845 2007-04-12  Simon Josefsson  <simon@josefsson.org>
23846
23847         * modules/autobuild: New module.
23848
23849         * m4/autobuild.m4: New file.
23850
23851 2007-04-11  Bruno Haible  <bruno@clisp.org>
23852
23853         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
23854         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
23855         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
23856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
23857         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23858         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23859         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23863         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
23864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
23867         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23868         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
23870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23872         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
23873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
23876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
23879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
23880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
23881         Reported by Eric Blake.
23882
23883 2007-04-11  Bruno Haible  <bruno@clisp.org>
23884
23885         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
23886
23887 2007-04-10  Bruno Haible  <bruno@clisp.org>
23888
23889         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
23890         for NaN and Infinity. Needed on FreeBSD 6.1.
23891         * tests/test-vasnprintf-posix.c (test_function): Undo last change
23892         regarding results for "%010a" of Infinity and NaN.
23893         * tests/test-vasprintf-posix.c (test_function): Likewise.
23894         * tests/test-snprintf-posix.h (test_function): Likewise.
23895         * tests/test-sprintf-posix.h (test_function): Likewise.
23896         * tests/test-fprintf-posix.h (test_function): Likewise.
23897         * tests/test-printf-posix.h (test_function): Likewise.
23898         * tests/test-fprintf-posix.out: Likewise.
23899
23900 2007-04-10  Bruno Haible  <bruno@clisp.org>
23901
23902         * modules/locale-tests: New file.
23903         * tests/test-locale.c: New file.
23904
23905         * modules/locale: New file.
23906         * lib/locale_.h: New file.
23907         * m4/locale_h.m4: New file.
23908
23909 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
23910             Bruno Haible  <bruno@clisp.org>
23911
23912         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
23913         be determined, test for availability of the copysignf, copysign,
23914         copysignl functions.
23915         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
23916         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
23917         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
23918
23919 2007-04-09  Eric Blake  <ebb9@byu.net>
23920
23921         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
23922         * modules/stdio (Makefile.am): Support fflush.
23923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23924         * modules/fflush: New file.
23925         * lib/fflush.c: Likewise.
23926         * m4/fflush.m4: Likewise.
23927         * modules/fflush-tests: New test.
23928         * tests/test-fflush.c: Likewise.
23929         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
23930
23931 2007-04-06  Bruno Haible  <bruno@clisp.org>
23932
23933         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
23934         (VASNPRINTF): Use signbit for faster determination whether to print a
23935         minus sign.
23936         * modules/vasnprintf (Files): Remove lib/float+.h.
23937         * modules/fprintf-posix (Depends-on): Add signbit.
23938         * modules/snprintf-posix (Depends-on): Likewise.
23939         * modules/sprintf-posix (Depends-on): Likewise.
23940         * modules/vasnprintf-posix (Depends-on): Likewise.
23941         * modules/vasprintf-posix (Depends-on): Likewise.
23942         * modules/vfprintf-posix (Depends-on): Likewise.
23943         * modules/vsnprintf-posix (Depends-on): Likewise.
23944         * modules/vsprintf-posix (Depends-on): Likewise.
23945
23946 2007-04-06  Bruno Haible  <bruno@clisp.org>
23947
23948         * tests/test-frexp.c (main): Test also the sign bit of zero results.
23949         * tests/test-frexpl.c (main): Likewise.
23950         * tests/test-ldexpl.c (main): Likewise.
23951         * modules/frexp-tests (Depends-on): Add signbit.
23952         * modules/frexpl-tests (Depdends-on): Likewise.
23953         * modules/ldexpl-tests (Depdends-on): Likewise.
23954
23955 2007-04-06  Bruno Haible  <bruno@clisp.org>
23956
23957         * modules/signbit-tests: New file.
23958         * tests/test-signbit.c: New file.
23959
23960         * modules/signbit: New file.
23961         * lib/signbitf.c: New file.
23962         * lib/signbitd.c: New file.
23963         * lib/signbitl.c: New file.
23964         * m4/signbit.m4: New file.
23965         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
23966         (signbit): New macro.
23967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
23968         REPLACE_SIGNBIT.
23969         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
23970         REPLACE_FREXPL into math.h.
23971
23972 2007-04-06  Bruno Haible  <bruno@clisp.org>
23973
23974         * modules/isnanf-nolibm-tests: New file.
23975         * tests/test-isnanf.c: New file.
23976
23977         * modules/isnanf-nolibm: New file.
23978         * lib/isnanf.h: New file.
23979         * lib/isnanf.c: New file.
23980         * lib/isnan.c: Consider the USE_FLOAT macro.
23981         * m4/isnanf.m4: New file.
23982
23983 2007-04-06  Bruno Haible  <bruno@clisp.org>
23984
23985         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
23986         (Link): New section.
23987
23988         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
23989
23990 2007-04-06  Bruno Haible  <bruno@clisp.org>
23991
23992         Assume the 'long double' type.
23993         * m4/longdouble.m4: Remove file.
23994         * config/srclist.txt: Don't mention longdouble.m4.
23995         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
23996         * lib/float+.h: Likewise.
23997         * lib/frexp.c: Likewise.
23998         * lib/printf-args.h: Likewise.
23999         * lib/printf-args.c: Likewise.
24000         * lib/printf-frexp.c: Likewise.
24001         * lib/printf-parse.c: Likewise.
24002         * lib/vasnprintf.c: Likewise.
24003         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
24004         * m4/intl.m4: Likewise.
24005         * m4/isnanl.m4: Likewise.
24006         * m4/printf.m4: Likewise.
24007         * m4/printf-frexpl.m4: Likewise.
24008         * m4/vasnprintf.m4: Likewise.
24009         * modules/allocsa (Files): Remove m4/longdouble.m4.
24010         * modules/gettext (Files): Likewise.
24011         * modules/relocatable-prog-wrapper (Files): Likewise.
24012         * modules/vasnprintf (Files): Likewise.
24013         * modules/isnanl (Files): Likewise.
24014         (Include): Simplify.
24015         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
24016         (Include): Simplify.
24017         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
24018         (Include): Simplify.
24019         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
24020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24021         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
24022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24023         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24025         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
24026         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24027         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24028         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24029         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
24030         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24031         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
24032         * tests/test-isnanl.c: Likewise.
24033         * tests/test-snprintf-posix.h: Likewise.
24034         * tests/test-sprintf-posix.h: Likewise.
24035         * tests/test-vasnprintf-posix.c: Likewise.
24036         * tests/test-vasnprintf-posix2.c: Likewise.
24037         * tests/test-vasprintf-posix.c: Likewise.
24038
24039 2007-04-06  Bruno Haible  <bruno@clisp.org>
24040
24041         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
24042         * lib/math_.h [__DECC]: Include the overridden include file through
24043         #include_next, outside the double-inclusion guard.
24044         * lib/stdio_.h [__DECC]: Likewise.
24045         * lib/stdlib_.h [__DECC]: Likewise.
24046         * lib/string_.h [__DECC]: Likewise.
24047         * lib/time_.h [__DECC]: Likewise.
24048         * lib/wchar_.h [__DECC]: Likewise.
24049         * lib/wctype_.h [__DECC]: Likewise.
24050         * lib/inttypes_.h [__DECC]: Likewise.
24051         Reported by Albert Chin <china@thewrittenword.com> in
24052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
24053
24054 2007-04-04  Eric Blake  <ebb9@byu.net>
24055
24056         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
24057         1.5.x.
24058
24059 2007-04-04  Bruno Haible  <bruno@clisp.org>
24060
24061         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
24062         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
24063
24064 2007-04-04  Bruno Haible  <bruno@clisp.org>
24065
24066         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
24067         results for "%010a" of Infinity and NaN.
24068         * tests/test-vasprintf-posix.c (test_function): Likewise.
24069         * tests/test-snprintf-posix.h (test_function): Likewise.
24070         * tests/test-sprintf-posix.h (test_function): Likewise.
24071         * tests/test-fprintf-posix.h (test_function): Remove these tests.
24072         * tests/test-printf-posix.h (test_function): Likewise.
24073         * tests/test-fprintf-posix.out: Update.
24074         Needed for FreeBSD 6.1.
24075
24076 2007-04-04  Bruno Haible  <bruno@clisp.org>
24077
24078         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
24079         directly used by the gnulib modules nor by gnulib-tool.
24080
24081 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24082
24083         * DEPENDENCIES: Give overall description of version dependency
24084         desirability.  Use more-typical names for apps.
24085         Add shell, coreutils, diffutils, grep, tar, gzip.
24086
24087 2007-04-04  Simon Josefsson  <simon@josefsson.org>
24088
24089         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
24090
24091 2007-04-04  Karl Berry  <karl@gnu.org>
24092
24093         * MODULES.html.sh (func_module): missing '.
24094
24095 2007-04-03  Bruno Haible  <bruno@clisp.org>
24096
24097         * modules/argmatch-tests (Makefile.am): New variable
24098         test_argmatch_LDADD.
24099         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
24100         * modules/array-list-tests (Makefile.am): New variable
24101         test_array_list_LDADD.
24102         * modules/array-oset-tests (Makefile.am): New variable
24103         test_array_oset_LDADD.
24104         * modules/avltree-list-tests (Makefile.am): New variable
24105         test_avltree_list_LDADD.
24106         * modules/avltree-oset-tests (Makefile.am): New variable
24107         test_avltree_oset_LDADD.
24108         * modules/avltreehash-list-tests (Makefile.am): New variable
24109         test_avltreehash_list_LDADD.
24110         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
24111         test_canonicalize_lgpl_LDADD.
24112         * modules/carray-list-tests (Makefile.am): New variable
24113         test_carray_list_LDADD.
24114         * modules/dirname-tests (Makefile.am): New variable
24115         test_dirname_LDADD.
24116         * modules/linked-list-tests (Makefile.am): New variable
24117         test_linked_list_LDADD.
24118         * modules/linkedhash-list-tests (Makefile.am): New variable
24119         test_linkedhash_list_LDADD.
24120         * modules/rbtree-list-tests (Makefile.am): New variable
24121         test_rbtree_list_LDADD.
24122         * modules/rbtree-oset-tests (Makefile.am): New variable
24123         test_rbtree_oset_LDADD.
24124         * modules/rbtreehash-list-tests (Makefile.am): New variable
24125         test_rbtreehash_list_LDADD.
24126         * modules/xvasprintf-tests (Makefile.am): New variable
24127         test_xvasprintf_LDADD.
24128         Reported by Eric Blake.
24129
24130 2007-04-03  Eric Blake  <ebb9@byu.net>
24131
24132         * DEPENDENCIES: Weaken m4 requirements.
24133
24134 2007-04-03  Bruno Haible  <bruno@clisp.org>
24135
24136         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
24137         * modules/isnanl-tests (configure.ac): Likewise.
24138
24139 2007-04-03  Ben Pfaff  <blp@gnu.org>
24140
24141         * modules/iconv_open: Add $(srcdir)/ to source directory
24142         references in Makefile fragments that call gperf, to fix VPATH
24143         builds.
24144
24145 2007-04-03  Bruno Haible  <bruno@clisp.org>
24146
24147         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
24148         * lib/ldexpl.c: Undo last change.
24149
24150 2007-04-03  Bruno Haible  <bruno@clisp.org>
24151
24152         * modules/printf-frexpl (Depends-on): Undo last change.
24153         (Files): Add m4/ldexpl.m4.
24154
24155 2007-04-03  Bruno Haible  <bruno@clisp.org>
24156
24157         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
24158         * modules/isnanl (Link): New section.
24159
24160         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
24161         * modules/frexp (Link): New section.
24162
24163         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
24164         * modules/frexpl (Link): New section.
24165
24166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
24167         * modules/ldexpl (Link): New section.
24168
24169 2007-04-03  Bruno Haible  <bruno@clisp.org>
24170
24171         * modules/TEMPLATE-EXTENDED: New file.
24172         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
24173
24174 2007-04-03  Bruno Haible  <bruno@clisp.org>
24175
24176         * DEPENDENCIES: New file.
24177         Suggested by Simon Josefsson.
24178
24179 2007-04-03  Bruno Haible  <bruno@clisp.org>
24180
24181         * doc/gnulib.texi: Escape @.
24182
24183 2007-04-03  James Youngman  <jay@gnu.org>
24184         and Paul Eggert  <eggert@cs.ucla.edu>
24185
24186         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
24187         birthtime on all systems that have birthtime, not just those which
24188         use st_birthtimensec rather than st_birthtim.  Putting zero in
24189         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
24190         that the birth time is not available for files on an NFS mount.
24191
24192 2007-04-03  Simon Josefsson  <simon@josefsson.org>
24193
24194         * modules/memxor: Move back from crypto/, suggested by Bruno.
24195         * modules/crypto/hmac-sha1: Fix memxor dependency.
24196
24197         * modules/crypto/gc: Moved from ../.
24198
24199 2007-04-02  Eric Blake  <ebb9@byu.net>
24200
24201         * lib/ldexpl.c (includes): Avoid libm.
24202
24203         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
24204
24205 2007-04-02  Bruno Haible  <bruno@clisp.org>
24206
24207         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
24208         on IRIX.
24209
24210 2007-04-02  Bruno Haible  <bruno@clisp.org>
24211
24212         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
24213         x86 or x86_64 platforms running MacOS X.
24214         Reported by Ryan Schmidt <@ryandesign.com>.
24215
24216 2007-04-02  Bruno Haible  <bruno@clisp.org>
24217
24218         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
24219         i386.
24220
24221 2007-04-01  Simon Josefsson  <simon@josefsson.org>
24222
24223         * modules/crypto/arcfour: Moved from ../.
24224         * modules/crypto/arcfour-tests: Moved from ../.
24225         * modules/crypto/arctwo: Moved from ../.
24226         * modules/crypto/arctwo-tests: Moved from ../.
24227         * modules/crypto/des: Moved from ../.
24228         * modules/crypto/des-tests: Moved from ../.
24229         * modules/crypto/gc-arcfour: Moved from ../.
24230         * modules/crypto/gc-arcfour-tests: Moved from ../.
24231         * modules/crypto/gc-arctwo: Moved from ../.
24232         * modules/crypto/gc-arctwo-tests: Moved from ../.
24233         * modules/crypto/gc-des: Moved from ../.
24234         * modules/crypto/gc-des-tests: Moved from ../.
24235         * modules/crypto/gc-hmac-md5: Moved from ../.
24236         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
24237         * modules/crypto/gc-hmac-sha1: Moved from ../.
24238         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
24239         * modules/crypto/gc-md2: Moved from ../.
24240         * modules/crypto/gc-md2-tests: Moved from ../.
24241         * modules/crypto/gc-md4: Moved from ../.
24242         * modules/crypto/gc-md4-tests: Moved from ../.
24243         * modules/crypto/gc-md5: Moved from ../.
24244         * modules/crypto/gc-md5-tests: Moved from ../.
24245         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
24246         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
24247         * modules/crypto/gc-random: Moved from ../.
24248         * modules/crypto/gc-rijndael: Moved from ../.
24249         * modules/crypto/gc-rijndael-tests: Moved from ../.
24250         * modules/crypto/gc-sha1: Moved from ../.
24251         * modules/crypto/gc-sha1-tests: Moved from ../.
24252         * modules/crypto/gc-tests: Moved from ../.
24253         * modules/crypto/hmac-md5: Moved from ../.
24254         * modules/crypto/hmac-md5-tests: Moved from ../.
24255         * modules/crypto/hmac-sha1: Moved from ../.
24256         * modules/crypto/hmac-sha1-tests: Moved from ../.
24257         * modules/crypto/md2: Moved from ../.
24258         * modules/crypto/md2-tests: Moved from ../.
24259         * modules/crypto/md4: Moved from ../.
24260         * modules/crypto/md4-tests: Moved from ../.
24261         * modules/crypto/md5: Moved from ../.
24262         * modules/crypto/md5-tests: Moved from ../.
24263         * modules/crypto/memxor: Moved from ../.
24264         * modules/crypto/rijndael: Moved from ../.
24265         * modules/crypto/rijndael-tests: Moved from ../.
24266         * modules/crypto/sha1: Moved from ../.
24267
24268 2007-03-30  James Youngman  <jay@gnu.org>
24269
24270         * tests/test-stat-time.c (prepare_test): use chmod() rather than
24271         rename() to change the ctime of a file (because ctime is unaffected
24272         by rename on jfs2 on AIX 5.1).
24273         (main): Start by doing cleanup, in case a previous run failed leaving
24274         test files behind.
24275
24276 2007-03-31  Bruno Haible  <bruno@clisp.org>
24277
24278         Support old proprietary implementations of iconv.
24279         * modules/iconv_open: New file.
24280         * lib/iconv_.h: New file.
24281         * m4/iconv_h.m4: New file.
24282         * lib/iconv_open.c: New file.
24283         * lib/iconv_open-aix.gperf: New file.
24284         * lib/iconv_open-hpux.gperf: New file.
24285         * lib/iconv_open-irix.gperf: New file.
24286         * lib/iconv_open-osf.gperf: New file.
24287         * m4/iconv_open.m4: New file.
24288         * modules/linebreak (Depends-on): Add iconv_open.
24289         * modules/striconv (Depends-on): Likewise.
24290         * modules/striconveh (Depends-on): Likewise.
24291         * modules/unicodeio (Depends-on): Likewise.
24292         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
24293         (iconv_t)(-1).
24294         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
24295         conversion if cd is (iconv_t)(-1).
24296         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
24297         is not possible.
24298
24299 2007-03-31  Bruno Haible  <bruno@clisp.org>
24300
24301         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24302         work on Solaris either. Protect also second use of "autodetect_jp".
24303
24304 2007-03-31  Bruno Haible  <bruno@clisp.org>
24305
24306         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
24307         the function is not present.
24308
24309 2007-03-31  Bruno Haible  <bruno@clisp.org>
24310
24311         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
24312         the function is not present.
24313
24314 2007-03-31  Bruno Haible  <bruno@clisp.org>
24315
24316         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
24317         a bug in HP-UX iconv_open().
24318
24319 2007-03-31  Bruno Haible  <bruno@clisp.org>
24320
24321         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
24322         (Mathematics <math.h>): New section, add fpieee.
24323         (Input/output <stdio.h>): Add fseterr.
24324         (Mathematics <math.h>): New section, add printf-frexp.
24325         (Container data structures): Add sublist.
24326         (Core language properties): Add fpucw, inline.
24327         (Functions for greatest-width integer types <inttypes.h>): Add
24328         imaxabs, imaxdiv, inttypes.
24329         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
24330         isnanl-nolibm, ldexp.
24331         (Mathematics <math.h>): New section, add printf-frexpl.
24332         (Support for systems lacking POSIX:2001): Add fprintf-posix,
24333         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
24334         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
24335         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
24336         (Unicode string functions): Add unistr/u*-mbtoucr.
24337         (Java): Add javacomp-script, javaexec-script.
24338         (C#): Add csharpcomp-script, csharpexec-script.
24339         (Support for building libraries and executables): Add havelib,
24340         relocatable-*.
24341         (Support for maintaining and releasing projects): Renamed from
24342         'Support for maintaining and release projects'. Add announce-gen.
24343
24344 2007-03-31  Bruno Haible  <bruno@clisp.org>
24345
24346         * README: Talk primarily about git.
24347         (git and CVS): Renamed from CVS.
24348         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
24349         gnulib is available through git.
24350         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
24351
24352 2007-03-30  Bruno Haible  <bruno@clisp.org>
24353
24354         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
24355         * lib/poll_.h: Likewise.
24356         * lib/stat_.h: Likewise.
24357         * lib/sys_time_.h: Likewise.
24358         * lib/sysexit_.h: Likewise.
24359         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
24360         * lib/stdbool_.h: Likewise.
24361         * lib/byteswap_.h: Add double-inclusion guard.
24362
24363 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
24364
24365         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
24366
24367 2007-03-30  Karl Berry  <karl@gnu.org>
24368
24369         * config/srclist-update: double space after USA in the license
24370         substitution, since that's how it's usually (?) written.
24371
24372 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24373
24374         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
24375         reported by Bruno Haible.
24376
24377 2007-03-29  Bruno Haible  <bruno@clisp.org>
24378
24379         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
24380         a bug in AIX iconv().
24381
24382 2007-03-29  Bruno Haible  <bruno@clisp.org>
24383
24384         * modules/ldexpl-tests: New file.
24385         * tests/test-ldexpl.c: New file.
24386
24387 2007-03-29  Bruno Haible  <bruno@clisp.org>
24388
24389         * lib/ldexpl.c: Include fpucw.h.
24390         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
24391         multiplication.
24392         * modules/ldexpl (Depends-on): Add fpucw.
24393
24394 2007-03-29  Bruno Haible  <bruno@clisp.org>
24395
24396         * modules/ldexpl: New file.
24397         * m4/ldexpl.m4: New file.
24398         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
24399         set.
24400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
24401         REPLACE_LDEXPL.
24402         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
24403         REPLACE_LDEXPL.
24404         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24405         gl_FUNC_LDEXPL_WORKS.
24406         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
24407         * modules/mathl (Files): Remove lib/ldexpl.c.
24408         (Depends-on): Add ldexpl.
24409
24410 2007-03-29  Bruno Haible  <bruno@clisp.org>
24411
24412         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
24413
24414 2007-03-29  Bruno Haible  <bruno@clisp.org>
24415
24416         * tests/test-striconveh.c (main): Don't assume that a direct conversion
24417         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
24418         and possibly also HP-UX.
24419         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24420         work on AIX, IRIX, HP-UX, OSF/1.
24421         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24422         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24423         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24424         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24425         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
24426         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24427
24428 2007-03-29  Bruno Haible  <bruno@clisp.org>
24429
24430         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
24431
24432 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24433
24434         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
24435         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
24436
24437 2007-03-29  Eric Blake  <ebb9@byu.net>
24438
24439         * lib/acl-internal.h: Remove redundant include.
24440         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
24441         Cygwin when a file is locked.
24442
24443 2007-03-29  Bruno Haible  <bruno@clisp.org>
24444
24445         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
24446         file.
24447         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
24448
24449 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24450
24451         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
24452         try to remove a parent directory if the child couldn't be removed
24453         (except for the first rmdir, which could fail because the child
24454         doesn't exist).  Problem reported by Jeff Blaine in
24455         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
24456
24457 2007-03-28  Bruno Haible  <bruno@clisp.org>
24458
24459         * lib/striconveh.c (utf8conv_carefully): New function.
24460         (mem_cd_iconveh_internal): Invoke it.
24461
24462 2007-03-28  Bruno Haible  <bruno@clisp.org>
24463
24464         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
24465         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
24466         input.
24467         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
24468         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
24469         unistr/u8-uctomb.
24470
24471 2007-03-28  Bruno Haible  <bruno@clisp.org>
24472
24473         * modules/unistr/u8-mbtoucr: New file.
24474         * lib/unistr/u8-mbtoucr.c: New file.
24475         * modules/unistr/u16-mbtoucr: New file.
24476         * lib/unistr/u16-mbtoucr.c: New file.
24477         * modules/unistr/u16-mbtoucr: New file.
24478         * lib/unistr/u16-mbtoucr.c: New file.
24479         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
24480
24481 2007-03-27  Simon Josefsson  <simon@josefsson.org>
24482             Bruno Haible  <bruno@clisp.org>
24483
24484         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
24485         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
24486         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
24487
24488         * m4/stdio_h.m4: Add stubs for vasprintf too.
24489
24490         * modules/stdio: Support vasprintf in sed command.
24491
24492         * modules/vasprintf: Depend on stdio for prototypes.  Remove
24493         vasprintf.h.  Add stdio module indicator.
24494
24495         * lib/stdio_.h: Declare asprintf and vasprintf, based on
24496         vasprintf.h.
24497
24498         * lib/vasprintf.h: File removed.
24499
24500         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
24501         * lib/vasprintf.c: Ditto.
24502         * lib/xvasprintf.c: Ditto.
24503         * tests/test-vasprintf-posix.c: Ditto.
24504         * tests/test-vasprintf.c: Ditto.
24505
24506 2007-03-27  Bruno Haible  <bruno@clisp.org>
24507
24508         Make vasnprintf multithread-safe.
24509         * lib/vasnprintf.c (decimal_point_char): New function.
24510         (VASNPRINTF): Use it.
24511         Suggested by Simon Josefsson.
24512
24513 2007-03-27  Eric Blake  <ebb9@byu.net>
24514
24515         Support sub-second birthtime on cygwin.
24516         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
24517         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
24518         (get_stat_birthtime): Also work with st_birthtim.
24519
24520 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
24521
24522         * lib/stat-time.h (USE_BIRTHTIME): Remove.
24523         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
24524         (get_stat_birthtime_ns): Do not try to use "spare" fields.
24525         (get_stat_birthtime_ns): Simplify compile-time tests.
24526         (get_stat_birthtime): Change the API to look like
24527         get_stat_mtime etc., except return a negative tv_nsec on error.
24528         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
24529         Don't check for "spare" fields.
24530         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
24531         or for struct stat.st_birthtime, as these tests aren't used.
24532         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
24533
24534 2007-03-27  Bruno Haible  <bruno@clisp.org>
24535
24536         * lib/stat-time.h: Include <sys/stat.h>.
24537
24538 2007-03-27  James Youngman  <jay@gnu.org>
24539
24540         * lib/stat-time.h (get_stat_birthtime): New function for
24541           retrieving st_birthtime as provided by UFS2 (hence *BSD).
24542         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
24543           and its variants.
24544         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
24545         * modules/stat-time-test: New file.
24546         * tests/test-stat-time.c: New test, devised by Bruno Haible.
24547
24548 2007-03-26  Bruno Haible  <bruno@clisp.org>
24549
24550         Better support of signalling NaNs.
24551         * lib/atanl.c: Include isnanl.h.
24552         (atanl): Perform test for NaN at the beginning of the function and
24553         through a call to isnanl.
24554         * lib/cosl.c: Include isnanl.h.
24555         (cosl): Perform test for NaN at the beginning of the function and
24556         through a call to isnanl.
24557         * lib/ldexpl.c: Include isnanl.h.
24558         (ldexpl): Perform test for NaN through a call to isnanl.
24559         * lib/logl.c: Include isnanl.h.
24560         (logl): Perform test for NaN at the beginning of the function and
24561         through a call to isnanl.
24562         * lib/sinl.c: Include isnanl.h.
24563         (sinl): Perform test for NaN at the beginning of the function and
24564         through a call to isnanl.
24565         * lib/sqrtl.c: Include isnanl.h.
24566         (sqrtl): Perform test for NaN at the beginning of the function and
24567         through a call to isnanl.
24568         * lib/tanl.c: Include isnanl.h.
24569         (tanl): Perform test for NaN at the beginning of the function and
24570         through a call to isnanl.
24571         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
24572         * modules/mathl (Depends-on): Add isnanl.
24573
24574 2007-03-26  Eric Blake  <ebb9@byu.net>
24575
24576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
24577         regression in logic sense of previous patch.
24578
24579 2007-03-26  Bruno Haible  <bruno@clisp.org>
24580
24581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
24582         unportable shell command "if ! ...".
24583         Reported by Ralf Wildenhues.
24584
24585 2007-03-25  Bruno Haible  <bruno@clisp.org>
24586
24587         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
24588         <sysexits.h> file, and only add EX_CONFIG.
24589         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
24590         absolute file name and whether it is sufficient. Substitute also
24591         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
24592         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
24593         ABSOLUTE_SYSEXITS_H into sysexits.h.
24594
24595 2007-03-25  Bruno Haible  <bruno@clisp.org>
24596
24597         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
24598         hints is NULL.
24599
24600 2007-03-25  Bruno Haible  <bruno@clisp.org>
24601
24602         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
24603         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
24604
24605 2007-03-25  Bruno Haible  <bruno@clisp.org>
24606
24607         * lib/vasnprintf.c: Include langinfo.h.
24608         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
24609         multithread-safe.
24610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
24611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
24612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
24618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24619         Reported by Simon Josefsson.
24620
24621 2007-03-25  Bruno Haible  <bruno@clisp.org>
24622
24623         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
24624         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
24625         * modules/vasnprintf (Depends-on): Add stdint.
24626
24627 2007-03-25  Bruno Haible  <bruno@clisp.org>
24628
24629         * modules/fpieee: New file.
24630         * m4/fpieee.m4: New file.
24631         * modules/isnan-nolibm (Depends-on): Add fpieee.
24632         * modules/isnanl-nolibm (Depends-on): Add fpieee.
24633         * modules/isnanl (Depends-on): Add fpieee.
24634
24635 2007-03-25  Bruno Haible  <bruno@clisp.org>
24636
24637         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
24638
24639 2007-03-25  Bruno Haible  <bruno@clisp.org>
24640
24641         Avoid test failures on IRIX 6.5.
24642         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
24643         (main): Use it.
24644         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
24645         macros.
24646         (main): Use them.
24647
24648 2007-03-25  Bruno Haible  <bruno@clisp.org>
24649
24650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
24651         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
24652         exists but doesn't work.
24653         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
24654         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
24655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
24656         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
24657
24658 2007-03-25  Bruno Haible  <bruno@clisp.org>
24659
24660         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
24661         returns inf. Needed on IRIX 6.5.
24662
24663 2007-03-25  Bruno Haible  <bruno@clisp.org>
24664
24665         * tests/test-frexpl.c: Include isnanl-nolibm.h.
24666         (main): Use isnanl instead of x != x idiom.
24667         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
24668
24669         * tests/test-frexp.c: Include isnan.h.
24670         (main): Use isnan instead of x != x idiom.
24671         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
24672
24673 2007-03-25  Bruno Haible  <bruno@clisp.org>
24674
24675         * tests/test-frexp.c (NaN): New function/macro.
24676         (main): Use it instead of 0.0 / 0.0.
24677         * tests/test-isnan.c (NaN): New function/macro.
24678         (main): Use it instead of 0.0 / 0.0.
24679         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
24680         (test_function): Use it instead of 0.0 / 0.0.
24681         * tests/test-vasprintf-posix.c (NaN): New function/macro.
24682         (test_function): Use it instead of 0.0 / 0.0.
24683         * tests/test-snprintf-posix.h (NaN): New function/macro.
24684         (test_function): Use it instead of 0.0 / 0.0.
24685         * tests/test-sprintf-posix.h (NaN): New function/macro.
24686         (test_function): Use it instead of 0.0 / 0.0.
24687         * tests/test-fprintf-posix.h (NaN): New function/macro.
24688         (test_function): Use it instead of 0.0 / 0.0.
24689         * tests/test-printf-posix.h (NaN): New function/macro.
24690         (test_function): Use it instead of 0.0 / 0.0.
24691
24692         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
24693
24694 2007-03-25  Bruno Haible  <bruno@clisp.org>
24695
24696         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
24697
24698 2007-03-25  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/regexec.c (merge_state_with_log): Make static.
24701
24702 2007-03-25  Bruno Haible  <bruno@clisp.org>
24703
24704         * lib/trigl.c (kernel_rem_pio2): Make static.
24705
24706 2007-03-25  Bruno Haible  <bruno@clisp.org>
24707
24708         * lib/sincosl.c (sincosl_table): Make static.
24709
24710 2007-03-25  Bruno Haible  <bruno@clisp.org>
24711
24712         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
24713         if the compiler does not support C99.
24714
24715 2007-03-25  Bruno Haible  <bruno@clisp.org>
24716
24717         * modules/time (Makefile.am): Ensure all rule action lines start with a
24718         tab.
24719
24720 2007-03-24  Bruno Haible  <bruno@clisp.org>
24721
24722         * modules/tsearch-tests: New file.
24723         * tests/test-tsearch.sh: New file.
24724         * tests/test-tsearch.c: New file, mostly copied from glibc.
24725
24726         * modules/search-tests: New file.
24727         * tests/test-search.c: New file.
24728
24729         * modules/search: New file.
24730         * lib/search_.h: New file, incorporating lib/tsearch.h.
24731         * m4/search_h.m4: New file.
24732         * lib/tsearch.h: Remove file.
24733         * lib/tsearch.c: Include search.h instead of tsearch.h.
24734         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
24735         HAVE_TSEARCH.
24736         * modules/tsearch (Files): Remove lib/tsearch.h.
24737         (Depends-on): Add search.
24738         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
24739         (Include): Change tsearch.h into search.h.
24740
24741 2007-03-24  Bruno Haible  <bruno@clisp.org>
24742
24743         * modules/fpucw: New file.
24744         * lib/fpucw.h: New file.
24745         * lib/frexp.c: Include fpucw.h.
24746         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24747         (FUNC): Use them.
24748         * lib/printf-frexp.c: Include fpucw.h.
24749         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
24750         (FUNC): Use them.
24751         * lib/vasnprintf.c: Include fpucw.h.
24752         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
24753         'long double' calculations.
24754         * tests/test-frexpl.c: Include fpucw.h.
24755         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24756         * tests/test-printf-frexpl.c: Include fpucw.h.
24757         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
24758         * modules/frexpl (Depends-on): Add fpucw.
24759         * modules/printf-frexpl (Depends-on): Likewise.
24760         * modules/fprintf-posix (Depends-on): Likewise.
24761         * modules/snprintf-posix (Depends-on): Likewise.
24762         * modules/sprintf-posix (Depends-on): Likewise.
24763         * modules/vasnprintf-posix (Depends-on): Likewise.
24764         * modules/vasprintf-posix (Depends-on): Likewise.
24765         * modules/vfprintf-posix (Depends-on): Likewise.
24766         * modules/vsnprintf-posix (Depends-on): Likewise.
24767         * modules/vsprintf-posix (Depends-on): Likewise.
24768         * modules/frexpl-tests (Depends-on): Likewise.
24769         * modules/printf-frexpl-tests (Depends-on): Likewise.
24770
24771 2007-03-24  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/float+.h: New file.
24774         * lib/isnan.c: Include float+.h.
24775         (SIZE): New macro.
24776         (FUNC): Compare only SIZE bytes of the value.
24777         * lib/vasnprintf.c: Include float+.h.
24778         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
24779         SIZEOF_LDBL or SIZEOF_DBL bytes.
24780         * modules/isnan-nolibm (Files): Add lib/float+.h.
24781         * modules/isnanl-nolibm (Files): Add lib/float+.h.
24782         * modules/isnanl (Files): Add lib/float+.h.
24783         * modules/vasnprintf (Files): Add lib/float+.h.
24784
24785 2007-03-24  Bruno Haible  <bruno@clisp.org>
24786
24787         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
24788         include isnanl-nolibm.h.
24789
24790 2007-03-24  Bruno Haible  <bruno@clisp.org>
24791
24792         * tests/test-read-file.c (main): Don't produce spurious output for
24793         expected situations. Make the test fail if it encountered unexpected
24794         results.
24795
24796 2007-03-24  Bruno Haible  <bruno@clisp.org>
24797
24798         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
24799         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
24800
24801 2007-03-24  Bruno Haible  <bruno@clisp.org>
24802
24803         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
24804
24805 2007-03-24  Bruno Haible  <bruno@clisp.org>
24806
24807         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
24808         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
24809
24810         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
24811         * modules/utf8-ucs4: Turn into a symbolic link to module
24812         unistr/u8-mbtouc.
24813
24814         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
24815         utf8-ucs4-unsafe.
24816         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
24817         unistr/u8-mbtouc-unsafe.
24818
24819         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
24820         * modules/utf16-ucs4: Turn into a symbolic link to module
24821         unistr/u16-mbtouc.
24822
24823         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
24824         utf16-ucs4-unsafe.
24825         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
24826         unistr/u16-mbtouc-unsafe.
24827
24828         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
24829         * modules/ucs4-utf8: Turn into a symbolic link to module
24830         unistr/u8-ubtomb.
24831
24832         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
24833         * modules/ucs4-utf16: Turn into a symbolic link to module
24834         unistr/u16-ubtomb.
24835
24836 2007-03-24  Bruno Haible  <bruno@clisp.org>
24837
24838         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
24839         Enable the function only if HAVE_INLINE.
24840         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
24841         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24842         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
24843         Enable the function only if HAVE_INLINE.
24844         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
24845         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
24846         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
24847         Enable the function only if HAVE_INLINE.
24848         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
24849         Enable the function only if HAVE_INLINE.
24850         * modules/utf8-ucs4: Update.
24851         * modules/utf8-ucs4-unsafe: Update.
24852         * modules/utf16-ucs4: Update.
24853         * modules/utf16-ucs4-unsafe: Update.
24854         * modules/ucs4-utf8: Update.
24855         * modules/ucs4-utf16: Update.
24856
24857 2007-03-24  Bruno Haible  <bruno@clisp.org>
24858
24859         * lib/utf8-ucs4.h: Remove file.
24860         * lib/utf8-ucs4-unsafe.h: Remove file.
24861         * lib/utf16-ucs4.h: Remove file.
24862         * lib/utf16-ucs4-unsafe.h: Remove file.
24863         * lib/ucs4-utf8.h: Remove file.
24864         * lib/ucs4-utf16.h: Remove file.
24865         * lib/unistr.h: Include their previous contents.
24866         * m4/utf-ucs4.m4: Remove file.
24867         * m4/ucs4-utf.m4: Remove file.
24868         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
24869         (Depends-on): Add unistr/base.
24870         (configure.ac): Remove gl_UTF_UCS4.
24871         (Makefile.am): Update.
24872         (Include): Change to unistr.h.
24873         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
24874         (Depends-on): Add unistr/base.
24875         (configure.ac): Remove gl_UTF_UCS4.
24876         (Makefile.am): Update.
24877         (Include): Change to unistr.h.
24878         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
24879         (Depends-on): Add unistr/base.
24880         (configure.ac): Remove gl_UTF_UCS4.
24881         (Makefile.am): Update.
24882         (Include): Change to unistr.h.
24883         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
24884         (Depends-on): Add unistr/base.
24885         (configure.ac): Remove gl_UTF_UCS4.
24886         (Makefile.am): Update.
24887         (Include): Change to unistr.h.
24888         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
24889         (Depends-on): Add unistr/base.
24890         (configure.ac): Remove gl_UCS4_UTF.
24891         (Makefile.am): Update.
24892         (Include): Change to unistr.h.
24893         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
24894         (Depends-on): Add unistr/base.
24895         (configure.ac): Remove gl_UCS4_UTF.
24896         (Makefile.am): Update.
24897         (Include): Change to unistr.h.
24898         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
24899         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
24900         utf8-ucs4-unsafe.h.
24901         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
24902         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
24903         utf16-ucs4-unsafe.h.
24904         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
24905         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
24906         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
24907         * lib/unistr/u8-strchr.c: Likewise.
24908         * lib/unistr/u8-strrchr.c: Likewise.
24909         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
24910         * lib/unistr/u16-strchr.c: Likewise.
24911         * lib/unistr/u16-strrchr.c: Likewise.
24912         * lib/striconveh.c: Update.
24913         * lib/linebreak.c: Update.
24914
24915 2007-03-24  Bruno Haible  <bruno@clisp.org>
24916
24917         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
24918         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
24919
24920 2007-03-22  Bruno Haible  <bruno@clisp.org>
24921
24922         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
24923
24924 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
24925
24926         * MODULES.html.sh (File system functions): New module write-any-file.
24927         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
24928         * m4/write-any-file.m4: New files.
24929
24930 2007-03-23  Eric Blake  <ebb9@byu.net>
24931
24932         * gnulib-tool: Rearrange space-tab sequences, since some editors
24933         like to eat them.
24934
24935 2007-03-23  Eric Blake  <ebb9@byu.net>
24936
24937         * lib/version-etc.c (version_etc_va): Update license wording to
24938         be more concise.  Recommended by Richard Stallman.
24939
24940 2007-03-22  Bruno Haible  <bruno@clisp.org>
24941
24942         * lib/poll.c (MSG_PEEK): New fallback definition.
24943
24944 2007-03-22  Bruno Haible  <bruno@clisp.org>
24945
24946         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
24947         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
24948         (main): Update.
24949         Fixes a compilation error on BeOS.
24950
24951 2007-03-22  Bruno Haible  <bruno@clisp.org>
24952
24953         * modules/frexpl-tests: New file.
24954         * tests/test-frexpl.c: New file.
24955
24956         * modules/frexpl: New file.
24957         * m4/frexpl.m4: New file.
24958         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
24959         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
24960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
24961         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
24962         (Depends-on): Add frexpl. Remove isnanl-nolibm.
24963         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
24964
24965 2007-03-22  Bruno Haible  <bruno@clisp.org>
24966
24967         * lib/frexpl.c: Share code with lib/frexp.c.
24968         * modules/mathl (Files): Add lib/frexp.c.
24969         (Depends-on): Add isnanl-nolibm.
24970
24971 2007-03-22  Bruno Haible  <bruno@clisp.org>
24972
24973         * modules/printf-frexp (Files): Add m4/frexp.m4.
24974         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
24975         only if the found frexp function actually works.
24976
24977 2007-03-22  Bruno Haible  <bruno@clisp.org>
24978
24979         * lib/frexp.c: Remove older implementation that uses divisions.
24980
24981 2007-03-21  Bruno Haible  <bruno@clisp.org>
24982
24983         * modules/frexp-tests: New file.
24984         * tests/test-frexp.c: New file.
24985
24986         * modules/frexp: New file.
24987         * lib/frexp.c: New file.
24988         * m4/frexp.m4: New file.
24989         * lib/math_.h (frexp): New declaration.
24990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
24991         REPLACE_FREXP.
24992         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
24993
24994 2007-03-21  Bruno Haible  <bruno@clisp.org>
24995
24996         * modules/isnanl-tests: New file.
24997         * tests/test-isnanl.c: New file.
24998
24999         * modules/isnanl: New file.
25000         * lib/isnanl.h: New file.
25001         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
25002         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
25003         gl_FUNC_ISNANL_WORKS.
25004         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
25005         New macros.
25006
25007 2007-03-21  Bruno Haible  <bruno@clisp.org>
25008
25009         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
25010         lib/isnanl.h.
25011         (Include): Update.
25012         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
25013         * lib/vasnprintf.c: Update.
25014         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
25015         tests/test-isnanl.h, remove tests/test-isnanl.c.
25016         (Makefile.am): Update.
25017         * tests/test-isnanl-nolibm.c: New file.
25018         * tests/test-isnanl.h: New file.
25019         * tests/test-isnanl.c: Remove file.
25020
25021 2007-03-21  Jim Meyering  <jim@meyering.net>
25022
25023         When trying to open ".", treat ESTALE like EACCES.
25024         * lib/savewd.c (savewd_save): Resort to forking not just upon
25025         failure with EACCES, but also when errno is ESTALE.
25026
25027 2007-03-20  Bruno Haible  <bruno@clisp.org>
25028
25029         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
25030         Needed on AIX 5.1. Reported by Matthew Woehlke.
25031
25032 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25033
25034         Suggestions by Bruno Haible:
25035         * lib/acl-internal.h: Include "gettext.h" rather than rolling
25036         our own.
25037         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
25038         * modules/acl (Depends-on): Add gettext.
25039
25040 2007-03-19  Bruno Haible  <bruno@clisp.org>
25041
25042         * modules/iconvme: Remove file.
25043         * lib/iconvme.h: Remove file.
25044         * lib/iconvme.c: Remove file.
25045         * m4/iconvme.m4: Remove file.
25046
25047 2007-03-19  Bruno Haible  <bruno@clisp.org>
25048
25049         * doc/relocatable-maint.texi: Break long shell script line.
25050         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25051
25052 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25053
25054         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
25055         handle file_has_acl.
25056         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
25057         * lib/acl.c: Move header inclusions and related macro defns into
25058         lib/acl-internal.h.
25059         (S_ISLNK): Remove defn, since that's now done for us.
25060         (file_has_acl): Move to lib/file-has-acl.c.
25061         Call acl_trivial if available.  This is the crucial part of the fix.
25062         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
25063         shared within the library.  Rewrite a bit, partly to make it compatible
25064         with the GNU coding style.
25065         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
25066         Remove unnecessary double-quotes.
25067         Don't test for acl_to_text; the build will catch that.
25068         Replace acl_entries if it doesn't exist and it is needed.
25069         Check for -lsec and acl_trivial (as used on Solaris 10).
25070         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
25071         lib/file-has-acl.c.
25072         (Depends-on): Add sys_stat, for S_ISLNK.
25073
25074 2007-03-19  Ben Pfaff  <blp@gnu.org>
25075
25076         * doc/gnulib.texi: Fix typos.
25077         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25078
25079 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25080
25081         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
25082         If size is zero here, buf must be zero.
25083
25084 2007-03-19  Simon Josefsson  <simon@josefsson.org>
25085
25086         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
25087         <bruno@clisp.org>.
25088
25089 2007-03-18  Bruno Haible  <bruno@clisp.org>
25090
25091         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
25092         Suggested by Eric Blake.
25093
25094 2007-03-18  Ben Pfaff  <blp@gnu.org>
25095
25096         * doc/relocatable.texi: Recommend using as prefix a directory
25097         that does not exist and will never be created.  Based on
25098         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
25099         and others.
25100
25101 2007-03-17  Bruno Haible  <bruno@clisp.org>
25102
25103         * lib/fchownat.c: Include lchown.h.
25104
25105 2007-03-17  Bruno Haible  <bruno@clisp.org>
25106
25107         Fix endless loop when the given allocated size was > INT_MAX.
25108         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
25109         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
25110         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
25111         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
25112         * lib/sprintf.c (sprintf): Likewise.
25113
25114 2007-03-17  Bruno Haible  <bruno@clisp.org>
25115
25116         * tests/test-argp-2.sh (func_compare): Output a context diff.
25117
25118 2007-03-17  Bruno Haible  <bruno@clisp.org>
25119
25120         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
25121         locale's decimal-point character.
25122
25123 2007-03-17  Bruno Haible  <bruno@clisp.org>
25124
25125         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
25126         before comparing it. Needed because on some platforms (e.g. x86) a
25127         'long double' occupies less bytes than sizeof (long double).
25128
25129 2007-03-17  Bruno Haible  <bruno@clisp.org>
25130
25131         * tests/test-crc.c (main): Make printf statements 64-bit clean.
25132         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
25133         * tests/test-getaddrinfo.c (simple): Likewise.
25134         * tests/test-read-file.c (main): Likewise.
25135
25136 2007-03-17  Bruno Haible  <bruno@clisp.org>
25137
25138         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
25139
25140 2007-03-17  Bruno Haible  <bruno@clisp.org>
25141
25142         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
25143         unused variable.
25144
25145 2007-03-17  Bruno Haible  <bruno@clisp.org>
25146
25147         * tests/test-c-strcasecmp.c: Include c-strcase.h.
25148         * tests/test-c-strncasecmp.c: Likewise.
25149
25150 2007-03-17  Bruno Haible  <bruno@clisp.org>
25151
25152         * modules/stdlib (Depends-on): Add unistd.
25153         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
25154         Needed for MacOS X 10.3.
25155
25156 2007-03-17  Bruno Haible  <bruno@clisp.org>
25157
25158         * lib/unistr/u-strdup.h: Include <stdlib.h>.
25159
25160 2007-03-17  Bruno Haible  <bruno@clisp.org>
25161
25162         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
25163
25164 2007-03-17  Bruno Haible  <bruno@clisp.org>
25165
25166         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
25167         to reflect files copied from gnulib (with or without modifications).
25168         Suggested by Jim Meyering.
25169
25170 2007-03-17  Eric Blake  <ebb9@byu.net>
25171
25172         * NEWS: Document stdlib change from 2007-02-18.
25173
25174 2007-03-17  Jim Meyering  <jim@meyering.net>
25175
25176         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
25177         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
25178         someone uses a name containing shell meta-characters.
25179         Reported by Alfred M. Szmidt.
25180
25181         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
25182
25183 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25184
25185         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
25186         and copy gettext configuration files only if configure.ac contains
25187         a use of AM_GNU_GETTEXT_VERSION.
25188
25189 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25190
25191         * build-aux/bootstrap (gnulib_name): New variable.
25192         (gnulib_tool_options): Use it.
25193
25194 2007-03-13  Simon Josefsson  <simon@josefsson.org>
25195
25196         * tests/test-des.c: Use new namespace.
25197
25198 2007-03-15  Bruno Haible  <bruno@clisp.org>
25199
25200         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
25201         Reported by James Youngman <jay@gnu.org>.
25202
25203 2007-03-15  Bruno Haible  <bruno@clisp.org>
25204
25205         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
25206         declared prototype. Needed with cc on OSF/1 5.1.
25207
25208 2007-03-15  Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
25211         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
25212         (struct gl_list_implementation): Add dispose_fn argument to the
25213         'create_empty', 'create' methods.
25214         (struct gl_list_impl_base): Add field 'dispose_fn'.
25215         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
25216         argument.
25217         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
25218         dispose_fn argument.
25219         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
25220         dispose_fn on the dropped values.
25221         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
25222         dispose_fn argument.
25223         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
25224         dropped values.
25225         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
25226         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25227         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
25228         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25229         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
25230         argument.
25231         (gl_tree_list_free): Call dispose_fn on the dropped values.
25232         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
25233         the dropped values.
25234         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
25235         Add dispose_fn argument.
25236         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
25237         Call dispose_fn on the dropped values.
25238         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
25239         Add dispose_fn argument.
25240         (gl_sublist_create): Initialize the 'dispose_fn' field.
25241         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
25242         * tests/test-array_list.c (main): Update.
25243         * tests/test-carray_list.c (main): Update.
25244         * tests/test-avltree_list.c (main): Update.
25245         * tests/test-rbtree_list.c (main): Update.
25246         * tests/test-avltreehash_list.c (main): Update.
25247         * tests/test-rbtreehash_list.c (main): Update.
25248         * tests/test-linked_list.c (main): Update.
25249         * tests/test-linkedhash_list.c (main): Update.
25250         * tests/test-array_oset.c (main): Update.
25251
25252 2007-03-15  Bruno Haible  <bruno@clisp.org>
25253
25254         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
25255         (gl_oset_create_empty): Add dispose_fn argument.
25256         (struct gl_oset_implementation): Add dispose_fn argument to
25257         'create_empty' method.
25258         (struct gl_oset_impl_base): Add dispose_fn field.
25259         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
25260         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
25261         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
25262         values.
25263         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
25264         (gl_tree_oset_free): Call dispose_fn on the dropped values.
25265         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25266         dropped value.
25267         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25268         dropped value.
25269         * tests/test-array_oset.c (main): Update.
25270         * tests/test-avltree_oset.c (main): Update.
25271         * tests/test-rbtree_oset.c (main): Update.
25272         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
25273
25274 2007-03-13  Bruno Haible  <bruno@clisp.org>
25275
25276         * tests/test-stdbool.c (i): Update after last patch.
25277
25278 2007-03-12  Bruno Haible  <bruno@clisp.org>
25279
25280         * lib/quotearg.c: Include <wctype.h> early, before the definition of
25281         the iswprint macro. Needed on Solaris 2.5.1.
25282
25283 2007-03-12  Bruno Haible  <bruno@clisp.org>
25284
25285         * tests/test-printf-frexp.c (main): Declare x as volatile.
25286
25287 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25288
25289         * doc/gnulib.texi (Build robot for gnulib): New section.
25290
25291 2007-03-12  Jim Meyering  <jim@meyering.net>
25292
25293         * build-aux/bootstrap: New file.
25294         * build-aux/bootstrap.conf: New file, from coreutils.
25295
25296 2007-03-11  Bruno Haible  <bruno@clisp.org>
25297
25298         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
25299
25300 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25301
25302         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
25303         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
25304         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
25305
25306 2007-03-11  Bruno Haible  <bruno@clisp.org>
25307
25308         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
25309         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
25310
25311 2007-03-11  Bruno Haible  <bruno@clisp.org>
25312
25313         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
25314         formula. Needed for SunPRO C 5.0.
25315
25316 2007-03-11  Bruno Haible  <bruno@clisp.org>
25317
25318         * modules/long-options (Depends-on): Add getopt.
25319
25320 2007-03-11  Bruno Haible  <bruno@clisp.org>
25321
25322         * modules/modechange (Depends-on): Add stdbool.
25323
25324 2007-03-11  Bruno Haible  <bruno@clisp.org>
25325
25326         * modules/i-ring (Depends-on): Add stdbool.
25327
25328 2007-03-11  Bruno Haible  <bruno@clisp.org>
25329
25330         * modules/gc-des (Depends-on): Add stdbool.
25331
25332 2007-03-11  Bruno Haible  <bruno@clisp.org>
25333
25334         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
25335
25336 2007-03-11  Bruno Haible  <bruno@clisp.org>
25337
25338         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
25339
25340 2007-03-11  Bruno Haible  <bruno@clisp.org>
25341
25342         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
25343
25344 2007-03-11  Bruno Haible  <bruno@clisp.org>
25345
25346         * lib/vasnprintf.c (sprintf): Undefine.
25347
25348 2007-03-11  Bruno Haible  <bruno@clisp.org>
25349
25350         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
25351         initializers in SunPRO C and Compaq C compilers.
25352
25353 2007-03-11  Bruno Haible  <bruno@clisp.org>
25354
25355         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
25356         decrementing code ANSI C compliant.
25357
25358 2007-03-11  Bruno Haible  <bruno@clisp.org>
25359
25360         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
25361         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
25362
25363 2007-03-11  Bruno Haible  <bruno@clisp.org>
25364
25365         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
25366         <stdbool.h> substitute doesn't pass.
25367
25368 2007-03-11  Bruno Haible  <bruno@clisp.org>
25369
25370         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
25371
25372 2007-03-11  Bruno Haible  <bruno@clisp.org>
25373
25374         * gnulib-tool (func_create_megatestdir): Create also an autobuild
25375         script, for submission to autobuild.josefsson.org.
25376
25377 2007-03-10  Bruno Haible  <bruno@clisp.org>
25378
25379         * modules/canonicalize-lgpl-tests: New file.
25380         * tests/test-canonicalize-lgpl.sh: New file.
25381         * tests/test-canonicalize-lgpl.c: New file.
25382
25383         * modules/c-strcase-tests: New file.
25384         * tests/test-c-strcase.sh: New file.
25385         * tests/test-c-strcasecmp.c: New file.
25386         * tests/test-c-strncasecmp.c: New file.
25387
25388         * modules/atexit-tests: New file.
25389         * tests/test-atexit.sh: New file.
25390         * tests/test-atexit.c: New file.
25391
25392 2007-03-10  Bruno Haible  <bruno@clisp.org>
25393
25394         * tests/test-binary-io.sh: Use temporary filenames that are not so
25395         likely to clash with those of other tests (in a parallel make).
25396         * tests/test-binary-io.c: Likewise.
25397
25398 2007-03-10  Bruno Haible  <bruno@clisp.org>
25399
25400         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
25401         fallback; use #error instead.
25402         Suggested by Simon Josefsson.
25403
25404 2007-03-10  Bruno Haible  <bruno@clisp.org>
25405
25406         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
25407         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
25408         first and the last.
25409
25410 2007-03-10  Bruno Haible  <bruno@clisp.org>
25411
25412         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
25413
25414 2007-03-10  Bruno Haible  <bruno@clisp.org>
25415
25416         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
25417         "make distcheck".
25418         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
25419         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
25420         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
25421
25422 2007-03-10  Bruno Haible  <bruno@clisp.org>
25423
25424         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
25425         variable.
25426         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
25427         variable.
25428
25429 2007-03-09  Eric Blake  <ebb9@byu.net>
25430         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
25431
25432         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
25433         types are not being provided by gnulib.
25434         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
25435         types are supported.
25436
25437 2007-03-10  Bruno Haible  <bruno@clisp.org>
25438
25439         * lib/stdio_.h (__attribute__): New macro.
25440         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
25441         vsprintf): Specify __attribute__ __format__ for GCC.
25442         Suggested by Eric Blake.
25443
25444 2007-03-09  Bruno Haible  <bruno@clisp.org>
25445
25446         * modules/printf-posix-tests: New file.
25447         * tests/test-printf-posix.sh: New file.
25448         * tests/test-printf-posix.c: New file.
25449
25450         * modules/printf-posix: New file.
25451         * lib/printf.c: New file.
25452         * m4/printf-posix-rpl.m4: New file.
25453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
25454         REPLACE_PRINTF.
25455         * lib/stdio_.h (printf): New declaration.
25456         (format, __format__, ____printf____, ____scanf____, ____strftime____,
25457         ____strfmon____): New macros.
25458         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
25459         REPLACE_PRINTF.
25460
25461 2007-03-09  Bruno Haible  <bruno@clisp.org>
25462
25463         * tests/test-vasnprintf-posix2.sh: New file.
25464         * tests/test-vasnprintf-posix2.c: New file.
25465         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
25466         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
25467         (Makefile.am): Activate test-vasnprintf-posix2.sh.
25468
25469         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
25470         a locale dependent decimal point, rather than always '.'.
25471
25472 2007-03-09  Eric Blake  <ebb9@byu.net>
25473
25474         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
25475         spite of platforms like Tandem/NSK that define it to -1.
25476
25477 2007-03-08  Bruno Haible  <bruno@clisp.org>
25478
25479         * modules/vprintf-posix-tests: New file.
25480         * tests/test-vprintf-posix.sh: New file.
25481         * tests/test-vprintf-posix.c: New file.
25482         * tests/test-printf-posix.h: New file.
25483
25484         * modules/vprintf-posix: New file.
25485         * lib/vprintf.c: New file.
25486         * m4/vprintf-posix.m4: New file.
25487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
25488         REPLACE_VPRINTF.
25489         * lib/stdio_.h (vprintf): New declaration.
25490         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
25491         REPLACE_VPRINTF.
25492
25493 2007-03-08  Bruno Haible  <bruno@clisp.org>
25494
25495         * modules/fprintf-posix-tests: New file.
25496         * tests/test-fprintf-posix.sh: New file.
25497         * tests/test-fprintf-posix.c: New file.
25498
25499         * modules/fprintf-posix: New file.
25500         * lib/fprintf.c: New file.
25501         * m4/fprintf-posix.m4: New file.
25502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
25503         REPLACE_FPRINTF.
25504         * lib/stdio_.h (fprintf): New declaration.
25505         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
25506         REPLACE_FPRINTF.
25507
25508 2007-03-08  Bruno Haible  <bruno@clisp.org>
25509
25510         * modules/vfprintf-posix-tests: New file.
25511         * tests/test-vfprintf-posix.sh: New file.
25512         * tests/test-vfprintf-posix.c: New file.
25513         * tests/test-fprintf-posix.h: New file.
25514         * tests/test-fprintf-posix.out: New file.
25515
25516         * modules/vfprintf-posix: New file.
25517         * lib/vfprintf.c: New file.
25518         * m4/vfprintf-posix.m4: New file.
25519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
25520         REPLACE_VFPRINTF.
25521         * lib/stdio_.h (vfprintf): New declaration.
25522         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
25523         REPLACE_VFPRINTF.
25524
25525 2007-03-08  Bruno Haible  <bruno@clisp.org>
25526
25527         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
25528
25529 2007-03-08  Bruno Haible  <bruno@clisp.org>
25530
25531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
25532         instead of 'expr' invocations.
25533         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25534         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25535         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25537         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25538         Suggested by Paul Eggert.
25539
25540 2007-03-08  Bruno Haible  <bruno@clisp.org>
25541
25542         * modules/fseterr-tests: New file.
25543         * tests/test-fseterr.c: New file.
25544
25545         * modules/fseterr: New file.
25546         * lib/fseterr.h: New file.
25547         * lib/fseterr.c: New file.
25548
25549 2007-03-08  Bruno Haible  <bruno@clisp.org>
25550
25551         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
25552         * lib/getopt_.h: Likewise.
25553         * lib/mbswidth.h: Likewise.
25554         * lib/setenv.h: Likewise.
25555         * lib/vasnprintf.h: Likewise.
25556         * lib/vasprintf.h: Likewise.
25557         * lib/verror.h: Likewise.
25558         * lib/xsetenv.h: Likewise.
25559         * lib/xvasprintf.h: Likewise.
25560
25561 2007-03-08  Jim Meyering  <jim@meyering.net>
25562
25563         * users.txt: Add parted.
25564
25565         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
25566
25567 2007-03-07  Bruno Haible  <bruno@clisp.org>
25568
25569         * m4/printf.m4: Make the shell script snippets copy&pastable.
25570
25571 2007-03-02  Bruno Haible  <bruno@clisp.org>
25572
25573         * lib/netinet_in_.h: New file.
25574         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
25575         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
25576         * modules/netinet_in (Files): Add lib/netinet_in_.h.
25577         (Depends-on): Add absolute-header.
25578         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
25579         into netinet/in.h.
25580
25581 2007-03-03  Bruno Haible  <bruno@clisp.org>
25582
25583         * lib/sys_select_.h: New file.
25584         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
25585         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
25586         * modules/sys_select (Files): Add lib/sys_select_.h.
25587         (Depends-on): Add absolute-header.
25588         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
25589         into sys/select.h.
25590
25591 2007-03-02  Bruno Haible  <bruno@clisp.org>
25592
25593         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
25594         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
25595         values.
25596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
25597         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
25598         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
25599         * modules/sys_socket (Depends-on): Add absolute-header.
25600         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
25601         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
25602         (Include): Remove requirement of inclusion of <sys/types.h>.
25603
25604 2007-03-02  Bruno Haible  <bruno@clisp.org>
25605
25606         * lib/byteswap_.h (bswap_32): Fix formula.
25607
25608 2007-03-06  Bruno Haible  <bruno@clisp.org>
25609
25610         * modules/sprintf-posix-tests: New file.
25611         * tests/test-sprintf-posix.c: New file.
25612
25613         * modules/sprintf-posix: New file.
25614         * lib/sprintf.c: New file.
25615         * m4/sprintf-posix.m4: New file.
25616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
25617         REPLACE_SPRINTF.
25618         * lib/stdio_.h (sprintf): New declaration.
25619         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
25620         REPLACE_SPRINTF.
25621
25622 2007-03-06  Bruno Haible  <bruno@clisp.org>
25623
25624         * modules/vsprintf-posix-tests: New file.
25625         * tests/test-vsprintf-posix.c: New file.
25626         * tests/test-sprintf-posix.h: New file.
25627
25628         * modules/vsprintf-posix: New file.
25629         * lib/vsprintf.c: New file.
25630         * m4/vsprintf-posix.m4: New file.
25631         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
25632         REPLACE_VSPRINTF.
25633         * lib/stdio_.h (vsprintf): New declaration.
25634         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
25635         REPLACE_VSPRINTF.
25636
25637 2007-03-06  Bruno Haible  <bruno@clisp.org>
25638
25639         * modules/vsnprintf (Depend-on): Remove minmax.
25640
25641 2007-03-06  Bruno Haible  <bruno@clisp.org>
25642
25643         * modules/snprintf-posix-tests: New file.
25644         * tests/test-snprintf-posix.c: New file.
25645
25646         * modules/snprintf-posix: New file.
25647         * m4/snprintf-posix.m4: New file.
25648         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
25649         gl_FUNC_SNPRINTF.
25650         (gl_FUNC_SNPRINTF): Invoke it.
25651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
25652         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
25653         is set.
25654         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
25655
25656 2007-03-06  Bruno Haible  <bruno@clisp.org>
25657
25658         * modules/vsnprintf-posix-tests: New file.
25659         * tests/test-vsnprintf-posix.c: New file.
25660         * tests/test-snprintf-posix.h: New file.
25661
25662         * modules/vsnprintf-posix: New file.
25663         * m4/vsnprintf-posix.m4: New file.
25664         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
25665         gl_FUNC_VSNPRINTF.
25666         (gl_FUNC_VSNPRINTF): Invoke it.
25667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
25668         * lib/stdio_.h (vsnprintf): Define as a replacement if
25669         REPLACE_VSNPRINTF is set.
25670         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
25671
25672 2007-03-06  Bruno Haible  <bruno@clisp.org>
25673
25674         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
25675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
25676
25677 2007-03-06  Bruno Haible  <bruno@clisp.org>
25678
25679         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
25680         (asinl): Declare also if HAVE_DECL_ASINL is set.
25681         (atanl): Declare also if HAVE_DECL_ATANL is set.
25682         (ceill): Declare also if HAVE_DECL_CEILL is set.
25683         (cosl): Declare also if HAVE_DECL_COSL is set.
25684         (expl): Declare also if HAVE_DECL_EXPL is set.
25685         (floorl): Declare also if HAVE_DECL_FLOORL is set.
25686         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
25687         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
25688         (logl): Declare also if HAVE_DECL_LOGL is set.
25689         (sinl): Declare also if HAVE_DECL_SINL is set.
25690         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
25691         (tanl): Declare also if HAVE_DECL_TANL is set.
25692         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
25693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
25694         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
25695         declaration of frexpl, ldexpl.
25696         * modules/printf-frexpl (Depends-on): Add math.
25697         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
25698
25699 2007-03-05  Bruno Haible  <bruno@clisp.org>
25700
25701         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
25702         frexpl and ldexpl are declared.
25703         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
25704
25705 2007-03-05  Bruno Haible  <bruno@clisp.org>
25706
25707         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
25708         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
25709
25710 2007-03-05  Bruno Haible  <bruno@clisp.org>
25711
25712         * lib/stdio_.h: Include <stddef.h>.
25713
25714 2007-03-05  Bruno Haible  <bruno@clisp.org>
25715
25716         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
25717
25718 2007-03-05  Bruno Haible  <bruno@clisp.org>
25719
25720         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
25721         NetBSD 4, from Ralf Wildenhues.
25722
25723 2007-03-04  Bruno Haible  <bruno@clisp.org>
25724
25725         * lib/vasprintf.h: Update #if logic for the case when the functions
25726         exist but are overridden.
25727
25728 2007-03-04  Bruno Haible  <bruno@clisp.org>
25729
25730         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
25731         implementations: glibc-2.4 and MacOS X 10.3.
25732         * tests/test-vasnprintf-posix.c (test_function): Test also the case
25733         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
25734         * tests/test-vasprintf-posix.c (test_function): Likewise.
25735
25736 2007-03-04  Bruno Haible  <bruno@clisp.org>
25737
25738         * modules/vasprintf-posix-tests: New file.
25739         * tests/test-vasprintf-posix.c: New file.
25740
25741         * modules/vasprintf-posix: New file.
25742         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
25743         defined.
25744         * m4/vasprintf-posix.m4: New file.
25745         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
25746         gl_FUNC_VASPRINTF.
25747         (gl_FUNC_VASPRINTF): Invoke it.
25748         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
25749         here.
25750         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
25751
25752 2007-03-04  Bruno Haible  <bruno@clisp.org>
25753
25754         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
25755         REPLACE_GETTIMEOFDAY.
25756         * modules/sys_time (Makefile.am): Likewise.
25757         * m4/sys_time_h.m4: Likewise.
25758         * m4/gettimeofday.m4: Likewise.
25759
25760 2007-03-04  Bruno Haible  <bruno@clisp.org>
25761
25762         * modules/vasnprintf-posix-tests: New file.
25763         * tests/test-vasnprintf-posix.c: New file.
25764
25765         * modules/vasnprintf-posix: New file.
25766         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
25767         printf-frexpl.h.
25768         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
25769         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
25770         REPLACE_VASNPRINTF is defined.
25771         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
25772         gl_FUNC_VASNPRINTF.
25773         (gl_FUNC_VASNPRINTF): Invoke it.
25774         * m4/vasnprintf-posix.m4: New file.
25775         * m4/printf.m4: New file.
25776
25777 2007-03-04  Bruno Haible  <bruno@clisp.org>
25778
25779         Compile progreloc.c only if --enable-relocatable is specified.
25780         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
25781         if --enable-relocatable was specified.
25782         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
25783         lib_SOURCES.
25784
25785 2007-03-04  Jim Meyering  <jim@meyering.net>
25786
25787         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
25788         Use it consistently, rather than enumerating errno constants.
25789
25790 2007-03-04  Bruno Haible  <bruno@clisp.org>
25791
25792         * modules/xvasprintf-tests: New file.
25793         * tests/test-xvasprintf.c: New file.
25794
25795         * modules/vasprintf-tests: New file.
25796         * tests/test-vasprintf.c: New file.
25797
25798         * modules/vasnprintf-tests: New file.
25799         * tests/test-vasnprintf.c: New file.
25800
25801         * modules/vsnprintf-tests: New file.
25802         * tests/test-vsnprintf.c: New file.
25803
25804         * modules/snprintf-tests: New file.
25805         * tests/test-snprintf.c: New file.
25806
25807 2007-03-04  Bruno Haible  <bruno@clisp.org>
25808
25809         Compile relocatable.c only if --enable-relocatable is specified.
25810         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
25811         gl_RELOCATABLE_LIBRARY.
25812         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
25813         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
25814         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
25815         gl_RELOCATABLE_LIBRARY.
25816         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
25817         (Makefile.am): Remove lib_SOURCES.
25818         * modules/relocatable-lib-lgpl (configure.ac): Invoke
25819         gl_RELOCATABLE_LIBRARY.
25820         (Makefile.am): Remove lib_SOURCES.
25821         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
25822         always.
25823         * modules/relocatable-prog-wrapper (configure.ac): Invoke
25824         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
25825
25826 2007-03-04  Bruno Haible  <bruno@clisp.org>
25827
25828         * modules/argmatch-tests: New file.
25829         * tests/test-argmatch.c: New file.
25830
25831         * tests/test-allocsa.c (main): Halve the number of loop runs.
25832
25833         * modules/alloca-opt-tests: New file.
25834         * tests/test-alloca-opt.c: New file.
25835
25836 2007-03-04  Jim Meyering  <jim@meyering.net>
25837
25838         Work around difference between Linux ACLs and Solaris 10 ZFS.
25839         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
25840         for EINVAL.
25841
25842 2007-03-03  Bruno Haible  <bruno@clisp.org>
25843
25844         * modules/relocatable-prog (Depends-on): Add back progreloc's
25845         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
25846
25847 2007-03-03  Bruno Haible  <bruno@clisp.org>
25848
25849         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
25850         * modules/relocatable-lib: New file.
25851
25852 2007-03-03  Bruno Haible  <bruno@clisp.org>
25853
25854         * modules/relocatable-prog: Renamed from modules/relocatable.
25855         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
25856
25857 2007-03-03  Bruno Haible  <bruno@clisp.org>
25858
25859         * modules/relocatable-script (Files): Add doc/relocatable.texi,
25860         m4/relocatable-lib.m4.
25861         (Depends-on): Remove 'relocatable'.
25862         (configure.ac): Add gl_RELOCATABLE_NOP.
25863
25864 2007-03-03  Bruno Haible  <bruno@clisp.org>
25865
25866         * modules/relocatable-prog-wrapper: New file.
25867         * modules/relocatable (Depends-on): Add it. Remove all other
25868         dependencies except progname.
25869         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
25870
25871         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
25872         (gl_FUNC_STRERROR): Nop.
25873         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
25874
25875         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
25876         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
25877
25878         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
25879         (gl_FUNC_READLINK): Update.
25880
25881         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
25882
25883 2007-03-03  Bruno Haible  <bruno@clisp.org>
25884
25885         * lib/xreadlink.c: Include <unistd.h> unconditionally.
25886         * modules/xreadlink (Depends-on): Add unistd.
25887         * modules/xreadlink-with-size (Depends-on): Likewise.
25888
25889 2007-03-03  Bruno Haible  <bruno@clisp.org>
25890
25891         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
25892         extracted from gt_FUNC_SETENV.
25893         (gt_FUNC_SETENV): Remove macro.
25894         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
25895         remove gt_FUNC_SETENV.
25896
25897 2007-03-03  Bruno Haible  <bruno@clisp.org>
25898
25899         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
25900         ENABLE_RELOCATABLE here.
25901         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
25902
25903 2007-03-03  Bruno Haible  <bruno@clisp.org>
25904
25905         * modules/rbtreehash-list-tests (Depends-on): Add progname.
25906         * tests/test-rbtreehash_list.c: Include progname.h.
25907         (main): Call set_program_name.
25908
25909         * modules/rbtree-oset-tests (Depends-on): Add progname.
25910         * tests/test-rbtree_oset.c: Include progname.h.
25911         (main): Call set_program_name.
25912
25913         * modules/rbtree-list-tests (Depends-on): Add progname.
25914         * tests/test-rbtree_list.c: Include progname.h.
25915         (main): Call set_program_name.
25916
25917         * modules/linked-list-tests (Depends-on): Add progname.
25918         * tests/test-linked_list.c: Include progname.h.
25919         (main): Call set_program_name.
25920
25921 2007-03-03  Bruno Haible  <bruno@clisp.org>
25922
25923         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
25924         All uses of __restrict changed to _Restrict_.
25925         * lib/glob_.h (__restrict): Remove macro.
25926
25927 2007-03-02  Bruno Haible  <bruno@clisp.org>
25928
25929         * modules/gettext (configure.ac): Require gettext infrastructure
25930         from version 0.16.1.
25931
25932 2007-03-02  Bruno Haible  <bruno@clisp.org>
25933
25934         * modules/linkedhash-list-tests (Depends-on): Add progname.
25935         * tests/test-linkedhash_list.c: Include progname.h.
25936         (main): Call set_program_name.
25937
25938         * modules/carray-list-tests (Depends-on): Add progname.
25939         * tests/test-carray_list.c: Include progname.h.
25940         (main): Call set_program_name.
25941
25942         * modules/avltreehash-list-tests (Depends-on): Add progname.
25943         * tests/test-avltreehash_list.c: Include progname.h.
25944         (main): Call set_program_name.
25945
25946         * modules/avltree-oset-tests (Depends-on): Add progname.
25947         * tests/test-avltree_oset.c: Include progname.h.
25948         (main): Call set_program_name.
25949
25950         * modules/avltree-list-tests (Depends-on): Add progname.
25951         * tests/test-avltree_list.c: Include progname.h.
25952         (main): Call set_program_name.
25953
25954         * modules/array-oset-tests (Depends-on): Add progname.
25955         * tests/test-array_oset.c: Include progname.h.
25956         (main): Call set_program_name.
25957
25958         * modules/array-list-tests (Depends-on): Add progname.
25959         * tests/test-array_list.c: Include progname.h.
25960         (main): Call set_program_name.
25961
25962         * modules/argp-tests (Depends-on): Add progname.
25963         * tests/test-argp.c: Include argp.h first. Include progname.h.
25964         (main): Call set_program_name.
25965
25966 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
25967
25968         * doc/gnulib-tool.texi (Initial import): Reword description of
25969         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
25970         limited effect even if defined after the first system include.
25971
25972 2007-03-01  Bruno Haible  <bruno@clisp.org>
25973
25974         * build-aux/config.libpath: Update to libtool-1.5.22.
25975         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25976
25977 2007-03-01  Bruno Haible  <bruno@clisp.org>
25978
25979         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
25980         foo_CFLAGS.
25981         Reported by Ralf Wildenhues.
25982
25983 2007-03-01  Bruno Haible  <bruno@clisp.org>
25984
25985         * build-aux/install-reloc: Remove object files left over by some
25986         compilers.
25987         Reported by Ralf Wildenhues.
25988
25989 2007-03-01  Bruno Haible  <bruno@clisp.org>
25990
25991         * build-aux/install-reloc: Break long lines.
25992
25993 2007-03-01  Bruno Haible  <bruno@clisp.org>
25994
25995         * doc/relocatable.texi: Document that it may not work on OpenBSD.
25996         Reported by Ralf Wildenhues.
25997
25998 2007-03-01  Bruno Haible  <bruno@clisp.org>
25999
26000         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
26001         include ordering constraints.
26002
26003 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26004
26005         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
26006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
26007         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
26008         as another example.
26009         * lib/time_.h: Fix misspelling.
26010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
26011         Require gl_HEADER_TIME_H_DEFAULTS.
26012         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
26013         * m4/time_r.m4 (gl_TIME_R): Likewise.
26014         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
26015
26016 2007-03-01  Bruno Haible  <bruno@clisp.org>
26017
26018         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
26019         * m4/utimens.m4 (gl_UTIMENS): Likewise.
26020
26021 2007-03-01  Jim Meyering  <jim@meyering.net>
26022
26023         * modules/xreadlink (Maintainer): Add my name.
26024         * modules/xreadlink-with-size (Depends-on): Alphabetize.
26025
26026 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
26027             Bruno Haible  <bruno@clisp.org>
26028
26029         * build-aux/install-reloc: Compile also c-ctype.c.
26030         * build-aux/relocatable.sh.in: New file.
26031         * doc/relocatable.texi: New file.
26032         * doc/relocatable-maint.texi: New file.
26033         * doc/gnulib.texi: Include relocatable-maint.texi.
26034         * lib/progreloc.c: Include unistd.h unconditionally.
26035         * lib/relocwrapper.c: Include unistd.h unconditionally.
26036         Include c-ctype.h.
26037         (add_dotbin): Use c_tolower.
26038         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
26039         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
26040         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
26041         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
26042         to m4/relocatable-lib.m4.
26043         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
26044         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
26045         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
26046         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
26047         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
26048         * modules/relocatable: New file.
26049         * modules/relocatable-lib: New file.
26050         * modules/relocatable-script: New file.
26051
26052 2007-02-28  Bruno Haible  <bruno@clisp.org>
26053
26054         Import --enable-relocatable infrastructure.
26055         * build-aux/config.libpath: New file, from GNU gettext.
26056         * build-aux/install-reloc: New file, from GNU gettext.
26057         * build-aux/reloc-ldflags: New file, from GNU gettext.
26058         * lib/relocatable.h: New file, from GNU gettext.
26059         * lib/relocatable.c: New file, from GNU gettext.
26060         * lib/relocwrapper.c: New file, from GNU gettext.
26061         * m4/relocatable.m4: New file, from GNU gettext.
26062
26063 2007-02-28  Bruno Haible  <bruno@clisp.org>
26064
26065         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
26066
26067         * modules/xreadlink: New file, from GNU gettext with modifications.
26068         * lib/xreadlink.c: New file, from GNU gettext.
26069         * lib/xreadlink.h: Add comments.
26070         (xreadlink): New declaration.
26071
26072         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
26073         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
26074         lib/xreadlink-with-size.c.
26075         (configure.ac): Remove gl_XREADLINK invocation.
26076         (Makefile.am): Augment lib_SOURCES.
26077         * m4/xreadlink.m4: Remove file.
26078         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
26079         (xreadlink_with_size): Renamed from xreadink.
26080         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
26081         * modules/canonicalize (Depends-on): Replace xreadlink with
26082         xreadlink-with-size.
26083         * lib/canonicalize.c (canonicalize_filename_mode): Update.
26084
26085 2007-02-25  Jim Meyering  <jim@meyering.net>
26086
26087         * build-aux/announce-gen: When complaining about excess arguments,
26088         list them.
26089
26090 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         * README: Document signed integer overflow situation more
26093         accurately.
26094
26095 2007-02-25  Bruno Haible  <bruno@clisp.org>
26096
26097         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
26098         'a' or 'A' conversion.
26099
26100 2007-02-25  Bruno Haible  <bruno@clisp.org>
26101
26102         * modules/filename: Renamed from modules/pathname.
26103         (Files): Replace lib/pathname.h with lib/filename.h. Replace
26104         lib/concatpath.c with lib/concat-filename.c.
26105         (Makefile.am): Update.
26106         (Include): Replace pathname.h with filename.h.
26107         * lib/filename.h: Renamed from lib/pathname.h.
26108         (concatenated_filename): Renamed from concatenated_pathname.
26109         * lib/concat-filename.c: Renamed from lib/concatpath.c.
26110         (concatenated_filename): Renamed from concatenated_pathname.
26111         * lib/findprog.c: Include filename.h instead of pathname.h.
26112         (find_in_path): Update.
26113         * lib/javacomp.c: Include filename.h instead of pathname.h.
26114         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26115         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26116         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26117         is_oldgcj_14_13_usable, is_javac_usable): Update.
26118         * lib/javaexec.c: Include filename.h instead of pathname.h.
26119         (execute_java_class): Update.
26120         * modules/findprog: Update.
26121         * modules/javacomp: Update.
26122         * modules/javaexec: Update.
26123         * MODULES.html.sh (File system functions): Add 'filename', remove
26124         'pathname'.
26125
26126 2007-02-25  Bruno Haible  <bruno@clisp.org>
26127
26128         * modules/printf-frexpl-tests: New file.
26129         * tests/test-printf-frexpl.c: New file.
26130
26131         * modules/printf-frexpl: New file.
26132         * lib/printf-frexpl.h: New file.
26133         * lib/printf-frexpl.c: New file.
26134         * m4/printf-frexpl.m4: New file.
26135
26136 2007-02-25  Bruno Haible  <bruno@clisp.org>
26137
26138         * modules/printf-frexp-tests: New file.
26139         * tests/test-printf-frexp.c: New file.
26140
26141         * modules/printf-frexp: New file.
26142         * lib/printf-frexp.h: New file.
26143         * lib/printf-frexp.c: New file.
26144         * m4/printf-frexp.m4: New file.
26145
26146 2007-02-25  Bruno Haible  <bruno@clisp.org>
26147
26148         Assume automake >= 1.10 for the tests.
26149         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
26150         * modules/arctwo-tests: Likewise.
26151         * modules/argp-tests: Likewise.
26152         * modules/avltree-list-tests: Likewise.
26153         * modules/avltree-oset-tests: Likewise.
26154         * modules/avltreehash-list-tests: Likewise.
26155         * modules/carray-list-tests: Likewise.
26156         * modules/crc-tests: Likewise.
26157         * modules/des-tests: Likewise.
26158         * modules/gc-arcfour-tests: Likewise.
26159         * modules/gc-arctwo-tests: Likewise.
26160         * modules/gc-des-tests: Likewise.
26161         * modules/gc-hmac-md5-tests: Likewise.
26162         * modules/gc-hmac-sha1-tests: Likewise.
26163         * modules/gc-md2-tests: Likewise.
26164         * modules/gc-md4-tests: Likewise.
26165         * modules/gc-md5-tests: Likewise.
26166         * modules/gc-pbkdf2-sha1-tests: Likewise.
26167         * modules/gc-rijndael-tests: Likewise.
26168         * modules/gc-sha1-tests: Likewise.
26169         * modules/gc-tests: Likewise.
26170         * modules/getaddrinfo-tests: Likewise.
26171         * modules/hmac-md5-tests: Likewise.
26172         * modules/hmac-sha1-tests: Likewise.
26173         * modules/linked-list-tests: Likewise.
26174         * modules/linkedhash-list-tests: Likewise.
26175         * modules/lock-tests: Likewise.
26176         * modules/md2-tests: Likewise.
26177         * modules/md4-tests: Likewise.
26178         * modules/md5-tests: Likewise.
26179         * modules/rbtree-list-tests: Likewise.
26180         * modules/rbtree-oset-tests: Likewise.
26181         * modules/rbtreehash-list-tests: Likewise.
26182         * modules/read-file-tests: Likewise.
26183         * modules/rijndael-tests: Likewise.
26184         * modules/stdint-tests: Likewise.
26185         * modules/tls-tests: Likewise.
26186
26187 2007-02-24  Bruno Haible  <bruno@clisp.org>
26188
26189         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
26190         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
26191         function; instead check whether isnan with a double argument links.
26192         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
26193         function; instead check whether isnan with a 'long double' argument
26194         links.
26195         Reported by Eric Blake <ebb9@byu.net>.
26196
26197 2007-02-24  Bruno Haible  <bruno@clisp.org>
26198
26199         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
26200         defined.
26201         * lib/isnanl.c: Remove all code. Just include isnan.c.
26202         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
26203
26204 2007-02-25  Jim Meyering  <jim@meyering.net>
26205
26206         Avoid conflicting types for 'unsetenv' on FreeBSD.
26207         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
26208         conflicting with FreeBSD's (5.0 and 6.1) function declaration
26209         in stdlib.h.
26210
26211 2007-02-24  Bruno Haible  <bruno@clisp.org>
26212
26213         * modules/isnanl-nolibm-tests: New file.
26214         * tests/test-isnanl.c: New file.
26215
26216         * modules/isnanl-nolibm: New file.
26217         * lib/isnanl.h: New file.
26218         * lib/isnanl.c: New file.
26219         * m4/isnanl.m4: New file.
26220
26221 2007-02-24  Bruno Haible  <bruno@clisp.org>
26222
26223         * modules/isnan-nolibm-tests: New file.
26224         * tests/test-isnan.c: New file.
26225
26226         * modules/isnan-nolibm: New file.
26227         * lib/isnan.h: New file.
26228         * lib/isnan.c: New file.
26229         * m4/isnan.m4: New file.
26230
26231 2007-02-24  Bruno Haible  <bruno@clisp.org>
26232
26233         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
26234         assume that an exponent fits in 20 bits.
26235
26236 2007-02-24  Jim Meyering  <jim@meyering.net>
26237
26238         * m4/regex.m4: Update the description of the configure-time option,
26239         --without-included-regex, to state accurately what the defaults are,
26240         and perhaps to give people an idea why using this option is risky.
26241
26242 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26243
26244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
26245         loops on small arguments.  This attempts to avoid the problem
26246         Bruno Haible reported for AIX 4.3.2 in
26247         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
26248
26249 2007-02-23  Bruno Haible  <bruno@clisp.org>
26250
26251         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
26252         Needed for help2man.
26253
26254 2007-02-23  Karl Berry  <karl@gnu.org>
26255
26256         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
26257         exists, foo.h should be cvs-ignored, not committed.
26258
26259 2007-02-23  Eric Blake  <ebb9@byu.net>
26260
26261         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
26262         * lib/stat-time.h (includes): Likewise.
26263         * lib/utimecmp.c (includes): Likewise.
26264         * lib/utimens.h (includes): Likewise.
26265         * lib/getdate.y (includes): Also include "timespec.h" for use
26266         internal to the module.
26267         * modules/utimens (Depends-on): Revert yesterday's patch.
26268         * modules/nanosleep (Depends-on): Add missing dependency.
26269
26270 2007-02-22  Bruno Haible  <bruno@clisp.org>
26271
26272         * lib/glob.c: Don't include getlogin_r.h.
26273
26274 2007-02-22  Jim Meyering  <jim@meyering.net>
26275
26276         * modules/utimens (Depends-on): Add timespec, required for
26277         utimens.h's inclusion of timespec.h.
26278
26279 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26280
26281         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
26282         long unreadable paths in GNU/Linux.  Problem reported by Andreas
26283         Schwab in
26284         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
26285         I'll try to think of a better way to fix the Solaris problem.
26286
26287         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
26288         like glibc; on Solaris 10, it fails with errno == EINVAL.
26289         POSIX says the behavior is unspecified if the first argument is NULL,
26290         so play it safe and never pass NULL to the system getcwd.
26291
26292 2007-02-21  Jim Meyering  <jim@meyering.net>
26293
26294         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
26295         of gettimeofday.  It would conflict with the one now always
26296         provided via sys_time_.h.  Reported by Matthew Woehlke, as
26297         an IRIX 6.5 build failure.
26298
26299 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26300
26301         Minor fixups to port to Solaris 10 with Sun C 5.8.
26302         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
26303         * modules/getcwd (Depends-on): Add dirfd.
26304         * lib/putenv.c (putenv): #undef it.
26305         (rpl_putenv): New decl.
26306         (malloc, free): Include <stdlib.h> rather than prototyping separately.
26307
26308 2007-02-20  Bruno Haible  <bruno@clisp.org>
26309
26310         * modules/stdio-tests: New file.
26311         * tests/test-stdio.c: New file.
26312
26313         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
26314         (Depends-on): Add stdio.
26315         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26316         (Include): Use <stdio.h> instead of vsnprintf.h.
26317         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26318         HAVE_DECL_VSNPRINTF.
26319         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
26320
26321         * modules/snprintf (Files): Remove lib/snprintf.h.
26322         (Depends-on): Add stdio.
26323         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26324         (Include): Use <stdio.h> instead of snprintf.h.
26325         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26326         HAVE_DECL_SNPRINTF.
26327         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
26328         * lib/getaddrinfo.c: Likewise.
26329
26330         * modules/stdio: New file.
26331         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
26332         * lib/snprintf.h: Remove file.
26333         * lib/vsnprintf.h: Remove file.
26334         * lib/.cppi-disable: Remove snprintf.h.
26335         * m4/stdio_h.m4: New file.
26336         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
26337
26338 2007-02-20  Jim Meyering  <jim@meyering.net>
26339
26340         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
26341         used by e.g., mingw.  From Bruno Haible.
26342
26343 2007-02-19  Bruno Haible  <bruno@clisp.org>
26344
26345         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
26346         warnings.
26347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26348
26349 2007-02-19  Bruno Haible  <bruno@clisp.org>
26350
26351         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
26352         from mingw users.
26353
26354 2007-02-19  Bruno Haible  <bruno@clisp.org>
26355
26356         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
26357         warnings.
26358         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
26359
26360 2007-02-19  Jim Meyering  <jim@meyering.net>
26361
26362         Don't use FD after a successful "fdopendir (fd)".
26363         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
26364         Reset it by calling dirfd on the just-obtained DIR*.
26365
26366         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
26367         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
26368
26369 2007-02-18  Bruno Haible  <bruno@clisp.org>
26370
26371         * lib/readlink.c: Include <unistd.h>.
26372         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
26373         HAVE_READLINK.
26374         * modules/readlink (Depends-on): Add unistd.
26375         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26376         (Include): Add <unistd.h>.
26377
26378         * lib/getlogin_r.h: Remove file.
26379         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
26380         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
26381         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
26382         HAVE_DECL_GETLOGIN_R.
26383         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
26384         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26385         (Include): Use <unistd.h> instead of getlogin_r.h.
26386
26387         * lib/getcwd.h: Remove file.
26388         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
26389         * lib/xgetcwd.c: Likewise.
26390         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
26391         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
26392         * modules/getcwd (Files): Remove lib/getcwd.h.
26393         (Depends-on): Add unistd.
26394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26395         (Include): Use <unistd.h> instad of getcwd.h.
26396
26397         * lib/ftruncate.c: Include <unistd.h> first.
26398         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
26399         Set HAVE_FTRUNCATE.
26400         * modules/ftruncate (Depends-on): Add unistd.
26401         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26402
26403         * lib/fchdir.c: Include <unistd.h> first.
26404         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
26405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
26406         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
26407         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26408         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
26409
26410         * lib/dup2.c: Include <unistd.h> first.
26411         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
26412         HAVE_DUP2.
26413         * modules/dup2 (Depends-on): Add unistd.
26414         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26415
26416         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
26417         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
26418         REPLACE_CHOWN. Don't define chown as a macro here.
26419         * modules/chown (Depends-on): Add unistd.
26420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26421
26422         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
26423         Add definition for GL_LINK_WARNING.
26424         (chown, dup2): New declarations.
26425         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
26426         link warning.
26427         (ftruncate): New declaration.
26428         (getcwd): New declaration, taken from old getcwd.h.
26429         (getlogin_r): New declaration, taken from old getlogin_r.h.
26430         (readlink): New declaration.
26431         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
26432         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
26433         (gl_PREREQ_UNISTD): Remove macro.
26434         (gl_UNISTD_MODULE_INDICATOR): New macro.
26435         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
26436         many new variables. Don't set UNISTD_H.
26437         * modules/unistd (Description): Change.
26438         (Depends-on): Add link-warning.
26439         (configure.ac): Update.
26440         (Makefile.am): Create unistd.h always. Substitute many new variables
26441         into it.
26442
26443 2007-02-18  Bruno Haible  <bruno@clisp.org>
26444
26445         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
26446         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
26447         HAVE_GETSUBOPT.
26448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
26449         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
26450         * lib/getsubopt.h: Remove file.
26451         * modules/getsubopt (Files): Remove lib/getsubopt.h.
26452         (Depends-on): Add stdlib.
26453         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26454         (Includes): Use <stdlib.h> instead of getsubopt.h.
26455         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
26456         Set HAVE_GETSUBOPT.
26457         * lib/getsubopt.c: Don't include getsubopt.h.
26458
26459 2007-02-18  Bruno Haible  <bruno@clisp.org>
26460
26461         * modules/fchdir (Depends-on): Add dup2.
26462
26463 2007-02-18  Bruno Haible  <bruno@clisp.org>
26464
26465         * lib/stdlib_.h: Handle glibc's special invocation convention
26466         specially.
26467
26468 2007-02-18  Bruno Haible  <bruno@clisp.org>
26469
26470         * modules/stdlib-tests: New file.
26471         * tests/test-stdlib.c: New file.
26472
26473         * modules/mkstemp (Files): Remove lib/mkstemp.h.
26474         (Depends-on): Add stdlib.
26475         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26476         (Includes): Use <stdlib.h> instead of mkstemp.h.
26477         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
26478         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
26479         * lib/mkstemp.c: Don't include mkstemp.h.
26480         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
26481         * lib/stdlib--.h: Don't include mkstemp.h.
26482
26483         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
26484         (Depends-on): Add stdlib.
26485         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26486         (Includes): Use <stdlib.h> instead of mkdtemp.h.
26487         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
26488         HAVE_MKDTEMP.
26489         * lib/mkdtemp.c: Don't include mkdtemp.h.
26490         * lib/clean-temp.c: Don't include mkdtemp.h.
26491
26492         * modules/exit (Files): Remove lib/exit.h.
26493         (Depends-on): Add stdlib.
26494         (Makefile.am): Remove lib_SOURCES.
26495         (Include): Use <stdlib.h> instead of exit.h.
26496         * lib/argmatch.c: Don't include exit.h.
26497         * lib/execute.c: Likewise.
26498         * lib/pagealign_alloc.c: Likewise.
26499         * lib/pipe.c: Likewise.
26500         * lib/wait-process.c: Likewise.
26501         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
26502         * lib/exitfail.c: Likewise.
26503         * lib/savewd.c: Likewise.
26504         * lib/xsetenv.c: Likewise.
26505
26506         * modules/stdlib: New file.
26507         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
26508         and extra comments about mkstemp().
26509         * lib/exit.h: Remove file.
26510         * lib/mkdtemp.h: Remove file.
26511         * lib/mkstemp.h: Remove file.
26512         * m4/stdlib_h.m4: New file.
26513         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
26514
26515 2007-02-18  Bruno Haible  <bruno@clisp.org>
26516
26517         * modules/math-tests: New file.
26518         * tests/test-math.c: New file.
26519
26520         * modules/math: New file.
26521         * modules/mathl (Files): Remove lib/mathl.h.
26522         (Depends-on): Add math.
26523         (Makefile.am): Don't mention mathl.h.
26524         (Include): Use <math.h> instead of mathl.h.
26525         * lib/math_.h: New file.
26526         * lib/mathl.h: Remove file.
26527         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
26528         mathl.h.
26529         * lib/asinl.c: Likewise.
26530         * lib/atanl.c: Likewise.
26531         * lib/ceill.c: Likewise.
26532         * lib/cosl.c: Likewise.
26533         * lib/expl.c: Likewise.
26534         * lib/floorl.c: Likewise.
26535         * lib/frexpl.c: Likewise.
26536         * lib/ldexpl.c: Likewise.
26537         * lib/logl.c: Likewise.
26538         * lib/sincosl.c: Likewise.
26539         * lib/sinl.c: Likewise.
26540         * lib/sqrtl.c: Likewise.
26541         * lib/tanl.c: Likewise.
26542         * lib/trigl.c: Likewise.
26543         * m4/math_h.m4: New file.
26544         * MODULES.html.sh (Mathematics): Add math.
26545
26546 2007-02-17  Bruno Haible  <bruno@clisp.org>
26547
26548         * modules/wctype-tests: New file.
26549         * tests/test-wctype.c: New file.
26550
26551         * modules/wchar-tests: New file.
26552         * tests/test-wchar.c: New file.
26553
26554         * modules/unistd-tests: New file.
26555         * tests/test-unistd.c: New file.
26556
26557         * modules/time-tests: New file.
26558         * tests/test-time.c: New file.
26559
26560         * modules/sysexits-tests: New file.
26561         * tests/test-sysexits.c: New file.
26562
26563         * modules/sys_time-tests: New file.
26564         * tests/test-sys_time.c: New file.
26565
26566         * modules/sys_stat-tests: New file.
26567         * tests/test-sys_stat.c: New file.
26568
26569         * modules/sys_socket-tests: New file.
26570         * tests/test-sys_socket.c: New file.
26571
26572         * modules/sys_select-tests: New file.
26573         * tests/test-sys_select.c: New file.
26574
26575         * modules/string-tests: New file.
26576         * tests/test-string.c: New file.
26577
26578         * modules/stdbool-tests: New file.
26579         * tests/test-stdbool.c: New file.
26580
26581         * modules/netinet_in-tests: New file.
26582         * tests/test-netinet_in.c: New file.
26583
26584         * modules/inttypes-tests: New file.
26585         * tests/test-inttypes.c: New file.
26586
26587         * modules/fcntl-tests: New file.
26588         * tests/test-fcntl.c: New file.
26589
26590         * modules/byteswap-tests: New file.
26591         * tests/test-byteswap.c: New file.
26592
26593         * modules/arpa_inet-tests: New file.
26594         * tests/test-arpa_inet.c: New file.
26595
26596 2007-02-17  Bruno Haible  <bruno@clisp.org>
26597
26598         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
26599         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
26600         if the corresponding module is not enabled. Emit link warnings if
26601         the function is used nevertheless.
26602         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
26603         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
26604         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
26605         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
26606         * modules/inttypes (Depends-on): Add link-warning.
26607         (Makefile.am): Copy the contents of build-aux/link-warning.h into
26608         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
26609         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
26610         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
26611         * modules/imaxdiv (configure.ac): Likewise.
26612         * modules/strtoimax (configure.ac): Likewise.
26613         * modules/strtoumax (configure.ac): Likewise.
26614
26615 2007-02-17  Bruno Haible  <bruno@clisp.org>
26616
26617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
26618         gl_STRING_MODULE_INDICATOR_DEFAULTS.
26619         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
26620         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
26621
26622 2007-02-17  Bruno Haible  <bruno@clisp.org>
26623
26624         * modules/link-warning: New file.
26625         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
26626         * lib/string_.h (GL_LINK_WARNING): Remove definition.
26627         * modules/string (Depends-on): Add link-warning.
26628         (Makefile.am): Copy the contents of build-aux/link-warning.h into
26629         string.h.
26630         * MODULES.html.sh (Support for building libraries and executables): Add
26631         link-warning.
26632
26633 2007-02-17  Bruno Haible  <bruno@clisp.org>
26634
26635         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
26636         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
26637         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
26638         long lines.
26639
26640 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
26641             Bruno Haible  <bruno@clisp.org>
26642
26643         * modules/tmpfile: New file.
26644         * lib/tmpfile.c: New file.
26645         * m4/tmpfile.m4: New file.
26646         * MODULES.html.sh (func_all_modules): New section "Input/output".
26647
26648 2007-02-15  Bruno Haible  <bruno@clisp.org>
26649
26650         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
26651         (supports_delete_on_close): New function.
26652         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
26653
26654 2007-02-14  Bruno Haible  <bruno@clisp.org>
26655
26656         * modules/mbspcasecmp-tests: New file.
26657         * tests/test-mbspcasecmp.sh: New file.
26658         * tests/test-mbspcasecmp.c: New file.
26659
26660         New module mbspcasecmp.
26661         * modules/mbspcasecmp: New file.
26662         * lib/mbspcasecmp.c: New file.
26663         * lib/string_.h (strncasecmp): Change warning message.
26664         (mbspcasecmp): New declaration.
26665         * m4/mbspcasecmp.m4: New file.
26666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26667         GNULIB_MBSPCASECMP.
26668         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
26669         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
26670
26671 2007-02-14  Bruno Haible  <bruno@clisp.org>
26672
26673         * modules/mbsncasecmp-tests: New file.
26674         * tests/test-mbsncasecmp.sh: New file.
26675         * tests/test-mbsncasecmp.c: New file.
26676
26677         New module mbsncasecmp.
26678         * modules/mbsncasecmp: New file.
26679         * lib/mbsncasecmp.c: New file.
26680         * lib/string_.h (mbsncasecmp): New declaration.
26681         * m4/mbsncasecmp.m4: New file.
26682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26683         GNULIB_MBSNCASECMP.
26684         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
26685         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
26686
26687 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
26688
26689         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
26690         Verify that it doesn't overlap with our flags.
26691         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
26692         do not have the desired effect in multibyte locales; instead, use
26693         mbscasecmp.
26694         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
26695         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
26696         we don't require GNU fnmatch ourselves (if our users require it, they
26697         should do so explicitly).
26698
26699         Fix regex code so it doesn't rely on strcasecmp.
26700         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
26701         Otherwise, include gnulib's langinfo.h.
26702         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
26703         undesirable behavior in non-C locales.  Instead, rely on localecharset.
26704         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
26705         * modules/regex (FILES): Remove m4/codeset.m4.
26706         (Depends-on): Add localcharset.  Remove strcase.
26707
26708 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26709
26710         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
26711         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26712
26713 2007-02-13  Bruno Haible  <bruno@clisp.org>
26714
26715         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
26716         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26717
26718 2007-02-12  Bruno Haible  <bruno@clisp.org>
26719
26720         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
26721         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
26722         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
26723         time warning rather than a link error.
26724
26725 2007-02-12  Bruno Haible  <bruno@clisp.org>
26726
26727         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
26728         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26729         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26730
26731 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26732
26733         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
26734         args, not 2.
26735
26736 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
26737
26738         New module 'time', so that apps can include <time.h> as per
26739         POSIX and GNU instead of separate include files like time_r.h
26740         and timegm.h.  This implementation tries out a simpler approach
26741         for replacing decls in standard include files (as compared to
26742         the string module), somewhat as an experiment.
26743
26744         * config/srclist.txt: Comment out mktime.c for now.
26745         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
26746         since it doesn't apply any more.  Use generic wording instead.
26747         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
26748         'time'.
26749         * lib/time_.h, m4/time_h.m4, modules/time: New files.
26750         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
26751         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
26752         Don't include <sys/types.h>; no longer needed since we assume C89.
26753         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
26754         * lib/strftime.c: Likewise.
26755         * lib/time_r.c: Likewise.
26756         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
26757         * lib/nanosleep.c: Include <time.h> first, to check interface.
26758         * lib/strptime.c: Likewise.
26759         * lib/time_r.c: Likewise.
26760         * lib/timegm.c: Likewise.
26761         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
26762         needed.
26763         * lib/timegm.c: Don't include timegm.h; no longer needed.
26764         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
26765         time.h now handles any problems in that area.
26766         (struct timespec, nanosleep): Remove; time.h now arranges for these.
26767         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
26768         that time.h defines struct timespec.
26769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
26770         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
26771         handles that.
26772         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
26773         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
26774         needed.  Set REPLACE_LOCALTIME.
26775         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
26776         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
26777         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
26778         nanosleep; time_h.m4 now does that.  Don't require
26779         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
26780         module handles this now.
26781         * modules/getdate (Depends-on): Remove timespec.  Add time.
26782         * modules/nanosleep (Depends-on): Likewise.
26783         * modules/stat-time (Depends-on): Likewise.
26784         * modules/nanosleep (Include): Include time.h, not timespec.h.
26785         * modules/strptime (Files): Remove lib/strptime.h.
26786         (Depends-on): Add extensions, time.
26787         (Include): Include time.h, not strptime.h.
26788         * modules/time_r (Files): Remove lib/time_r.h.
26789         (Depends-on): Add time.
26790         (Include): Include time.h, not time_r.h.
26791         * modules/timegm: Likewise.
26792         * modules/timespec (Description): Now does timespec-related decls
26793         of our own, instead of struct timespec itself.
26794         (Depends-on): Add time; remove extensions.
26795         (Maintainer): Add self.
26796         * modules/utimecmp (Depends-on): Add time; remove timespec.
26797         * modules/utimens (Depends-on): Likewise.
26798         * modules/xnanosleep (Depends-on): Likewise.
26799
26800 2007-02-11  Bruno Haible  <bruno@clisp.org>
26801
26802         * lib/c-strstr.c: Include allocsa.h.
26803         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26804         * lib/c-strcasestr.c: Include allocsa.h.
26805         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26806         * lib/strcasestr.c: Include allocsa.h.
26807         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
26808         * lib/mbsstr.c: Include allocsa.h.
26809         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26810         allocsa/freesa instead of malloc/free.
26811         * lib/mbscasestr.c: Include allocsa.h.
26812         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
26813         allocsa/freesa instead of malloc/free.
26814         * modules/c-strstr (Depends-on): Add allocsa.
26815         * modules/c-strcasestr (Depends-on): Likewise.
26816         * modules/strcasestr (Depends-on): Likewise.
26817         * modules/mbsstr (Depends-on): Likewise.
26818         * modules/mbscasestr (Depends-on): Likewise.
26819
26820 2007-02-11  Bruno Haible  <bruno@clisp.org>
26821
26822         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
26823
26824         * modules/mbsspn-tests: New file.
26825         * tests/test-mbsspn.sh: New file.
26826         * tests/test-mbsspn.c: New file.
26827
26828 2007-02-11  Bruno Haible  <bruno@clisp.org>
26829
26830         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
26831
26832         * modules/mbspbrk-tests: New file.
26833         * tests/test-mbspbrk.sh: New file.
26834         * tests/test-mbspbrk.c: New file.
26835
26836 2007-02-11  Bruno Haible  <bruno@clisp.org>
26837
26838         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
26839         unneeded cast.
26840
26841         * modules/mbscspn-tests: New file.
26842         * tests/test-mbscspn.sh: New file.
26843         * tests/test-mbscspn.c: New file.
26844
26845 2007-02-11  Bruno Haible  <bruno@clisp.org>
26846
26847         * modules/mbscasecmp-tests: New file.
26848         * tests/test-mbscasecmp.sh: New file.
26849         * tests/test-mbscasecmp.c: New file.
26850
26851 2007-02-11  Bruno Haible  <bruno@clisp.org>
26852
26853         Ensure O(n) worst-case complexity of mbscasestr.
26854         * lib/mbscasestr.c: Include stdbool.h.
26855         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26856         functions.
26857         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
26858         the bookkeeping indicates that it's worth it.
26859         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
26860
26861         * modules/mbscasestr-tests: New file.
26862         * tests/test-mbscasestr1.c: New file.
26863         * tests/test-mbscasestr2.sh: New file.
26864         * tests/test-mbscasestr2.c: New file.
26865         * tests/test-mbscasestr3.sh: New file.
26866         * tests/test-mbscasestr3.c: New file.
26867         * tests/test-mbscasestr4.sh: New file.
26868         * tests/test-mbscasestr4.c: New file.
26869         * m4/locale-tr.m4: New file.
26870
26871 2007-02-11  Bruno Haible  <bruno@clisp.org>
26872
26873         Ensure O(n) worst-case complexity of mbsstr.
26874         * lib/mbsstr.c: Include stdbool.h.
26875         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
26876         functions.
26877         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
26878         bookkeeping indicates that it's worth it.
26879         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
26880
26881         * modules/mbsstr-tests: New file.
26882         * tests/test-mbsstr1.c: New file.
26883         * tests/test-mbsstr2.sh: New file.
26884         * tests/test-mbsstr2.c: New file.
26885         * tests/test-mbsstr3.sh: New file.
26886         * tests/test-mbsstr3.c: New file.
26887         * m4/locale-fr.m4: New file.
26888
26889 2007-02-11  Bruno Haible  <bruno@clisp.org>
26890
26891         * lib/mbsrchr.c (mbsrchr): Fix bug.
26892
26893         * modules/mbsrchr-tests: New file.
26894         * tests/test-mbsrchr.sh: New file.
26895         * tests/test-mbsrchr.c: New file.
26896
26897 2007-02-11  Bruno Haible  <bruno@clisp.org>
26898
26899         * lib/mbschr.c (mbschr): Fix bug.
26900
26901         * modules/mbschr-tests: New file.
26902         * tests/test-mbschr.sh: New file.
26903         * tests/test-mbschr.c: New file.
26904         * m4/locale-zh.m4: New file.
26905
26906 2007-02-11  Bruno Haible  <bruno@clisp.org>
26907
26908         Support for copying multibyte string iterators.
26909         * lib/mbiter.h: Include <string.h>.
26910         (mbiter_multi_copy): New function.
26911         (mbi_copy): New macro.
26912         * lib/mbuiter.h: Include <string.h>.
26913         (mbuiter_multi_copy): New function.
26914         (mbui_copy): New macro.
26915
26916 2007-02-11  Bruno Haible  <bruno@clisp.org>
26917
26918         New module mbslen.
26919         * modules/mbslen: New file.
26920         * lib/mbslen.c: New file.
26921         * lib/string_.h (mbslen): New declaration.
26922         * m4/mbslen.m4: New file.
26923         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26924         GNULIB_MBSLEN.
26925         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
26926         * MODULES.html.sh (Internationalization functions): Add mbslen.
26927
26928 2007-02-11  Bruno Haible  <bruno@clisp.org>
26929
26930         Ensure O(n) worst-case complexity of strcasestr substitute.
26931         * lib/strcasestr.c: Include stdbool.h.
26932         (knuth_morris_pratt): New function.
26933         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26934         bookkeeping indicates that it's worth it.
26935         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
26936
26937         * modules/strcasestr-tests: New file.
26938         * tests/test-strcasestr.c: New file.
26939
26940 2007-02-11  Bruno Haible  <bruno@clisp.org>
26941
26942         Ensure O(n) worst-case complexity of c_strcasestr.
26943         * lib/c-strcasestr.c: Include stdbool.h, string.h.
26944         (knuth_morris_pratt): New function.
26945         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
26946         the bookkeeping indicates that it's worth it.
26947         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
26948
26949         * modules/c-strcasestr-tests: New file.
26950         * tests/test-c-strcasestr.c: New file.
26951
26952 2007-02-11  Bruno Haible  <bruno@clisp.org>
26953
26954         Ensure O(n) worst-case complexity of c_strstr.
26955         * lib/c-strstr.c: Include stdbool.h, string.h.
26956         (knuth_morris_pratt): New function.
26957         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
26958         bookkeeping indicates that it's worth it.
26959         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
26960
26961         * lib/c-strstr.c: Complete rewrite for maintainability.
26962
26963         * modules/c-strstr-tests: New file.
26964         * tests/test-c-strstr.c: New file.
26965
26966 2007-02-11  Bruno Haible  <bruno@clisp.org>
26967
26968         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
26969         5.2.1 and earlier, whereby \055 was treated just like the range
26970         delimiter '-'.
26971         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26972
26973 2007-02-08  Bruno Haible  <bruno@clisp.org>
26974
26975         * modules/regex (Depends-on): Add stdbool.
26976         Reported by Dalibor Topic <robilad@kaffe.org>.
26977
26978 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
26979
26980         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
26981         Prefer returning from main to exiting from it.
26982         Remove unnecessary parens after sizeof.
26983
26984 2007-02-05  Bruno Haible  <bruno@clisp.org>
26985
26986         New module mbssep.
26987         * modules/mbssep: New file.
26988         * lib/mbssep.c: New file.
26989         * lib/string_.h (strsep): Add a conditional link warning.
26990         (mbssep): New declaration.
26991         * m4/mbssep.m4: New file.
26992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
26993         GNULIB_MBSSEP.
26994         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
26995         * MODULES.html.sh (Internationalization functions): Add mbssep.
26996
26997 2007-02-05  Bruno Haible  <bruno@clisp.org>
26998
26999         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
27000         Optimize search in case of 1 delimiter.
27001
27002 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27003
27004         * lib/acl.h: Include sys/types.h before sys/acl.h.
27005
27006 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27007
27008         Merge upstream fix for glibc bugzilla #3957:
27009
27010         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
27011
27012         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
27013         bit for RE_HAT_LISTS_NOT_NEWLINE.
27014         (build_charclass_op): Remove bogus comment.
27015
27016 2007-02-05  Simon Josefsson  <simon@josefsson.org>
27017
27018         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
27019
27020 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27021
27022         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
27023         * lib/memmem.c [!defined _LIBC]: Include config.h.
27024
27025 2007-02-04  Bruno Haible  <bruno@clisp.org>
27026
27027         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
27028         warning message.
27029
27030 2007-02-04  Bruno Haible  <bruno@clisp.org>
27031
27032         New module mbstok_r.
27033         * modules/mbstok_r: New file.
27034         * lib/mbstok_r.c: New file.
27035         * lib/string_.h (strtok_r): Change argument names to match the
27036         comments. Add a conditional link warning.
27037         (mbstok_r): New declaration.
27038         * m4/mbstok_r.m4: New file.
27039         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27040         GNULIB_MBSTOK_R.
27041         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
27042         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
27043
27044 2007-02-04  Bruno Haible  <bruno@clisp.org>
27045
27046         New module mbsspn.
27047         * modules/mbsspn: New file.
27048         * lib/mbsspn.c: New file.
27049         * lib/string_.h (strspn): Add a conditional link warning.
27050         (mbsspn): New declaration.
27051         * m4/mbsspn.m4: New file.
27052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27053         GNULIB_MBSSPN.
27054         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
27055         * MODULES.html.sh (Internationalization functions): Add mbsspn.
27056
27057 2007-02-04  Bruno Haible  <bruno@clisp.org>
27058
27059         New module mbspbrk.
27060         * modules/mbspbrk: New file.
27061         * lib/mbspbrk.c: New file.
27062         * lib/string_.h (strpbrk): Add a conditional link warning.
27063         (mbspbrk): New declaration.
27064         * m4/mbspbrk.m4: New file.
27065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27066         GNULIB_MBSPBRK.
27067         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
27068         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
27069
27070 2007-02-04  Bruno Haible  <bruno@clisp.org>
27071
27072         New module mbscspn.
27073         * modules/mbscspn: New file.
27074         * lib/mbscspn.c: New file.
27075         * lib/string_.h (strcspn): Add a conditional link warning.
27076         (mbscspn): New declaration.
27077         * m4/mbscspn.m4: New file.
27078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27079         GNULIB_MBSCSPN.
27080         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
27081         * MODULES.html.sh (Internationalization functions): Add mbscspn.
27082
27083 2007-02-04  Bruno Haible  <bruno@clisp.org>
27084
27085         New module mbscasestr, reduced goal of strcasestr.
27086         * modules/mbscasestr: New file.
27087         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
27088         (mbscasestr): Renamed from strcasestr.
27089         * lib/strcasestr.c: Don't include mbuiter.h.
27090         (strcasestr): Remove support for multibyte locales.
27091         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
27092         Change the conditional link warning.
27093         (mbscasestr): New declaration.
27094         * m4/mbscasestr.m4: New file.
27095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
27096         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
27097         REPLACE_STRCASESTR.
27098         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
27099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27100         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27101         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
27102         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
27103         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27104         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
27105         (Depends-on): Remove mbuiter.
27106         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
27107
27108 2007-02-04  Bruno Haible  <bruno@clisp.org>
27109
27110         Simplify handling of strncasecmp.
27111         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
27112         the conditional link warning.
27113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27114         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
27115         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
27116         * modules/strcase (configure.ac): Don't invoke
27117         gl_STRING_MODULE_INDICATOR.
27118         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
27119
27120 2007-02-04  Bruno Haible  <bruno@clisp.org>
27121
27122         New module mbscasecmp, reduced goal of strcasecmp.
27123         * modules/mbscasecmp: New file.
27124         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
27125         (mbscasecmp): Renamed from strcasecmp.
27126         * lib/strcasecmp.c: Don't include mbuiter.h.
27127         (strcasecmp): Remove support for multibyte locales.
27128         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
27129         Change the conditional link warning.
27130         (mbscasecmp): New declaration.
27131         * m4/mbscasecmp.m4: New file.
27132         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
27133         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
27134         REPLACE_STRCASECMP.
27135         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
27136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27137         GNULIB_MBSCASECMP.
27138         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
27139         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
27140         * modules/strcase (Files): Remove m4/mbrtowc.m4.
27141         (Depends-on): Remove mbuiter.
27142         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
27143
27144 2007-02-04  Bruno Haible  <bruno@clisp.org>
27145
27146         New module mbsstr. Remove module strstr.
27147         * modules/mbsstr: New file.
27148         * modules/strstr: Remove file.
27149         * lib/mbsstr.c: Renamed from lib/strstr.c.
27150         (mbsstr): Renamed from strstr.
27151         * lib/string_.h (strstr): Remove declaration. Change the conditional
27152         link warning.
27153         (mbsstr): New declaration.
27154         * m4/mbsstr.m4: New file.
27155         * m4/strstr.m4: Remove file.
27156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27157         REPLACE_STRSTR.
27158         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
27159         Don't initialize GNULIB_STRSTR.
27160         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
27161         substitute GNULIB_STRSTR and REPLACE_STRSTR.
27162         * MODULES.html.sh (Internationalization functions): Add mbsstr.
27163         (Support for systems lacking ANSI C 89): Remove strstr.
27164
27165 2007-02-04  Bruno Haible  <bruno@clisp.org>
27166
27167         New module mbsrchr.
27168         * modules/mbsrchr: New file.
27169         * lib/mbsrchr.c: New file.
27170         * lib/string_.h (strrchr): Add a conditional link warning.
27171         (mbsrchr): New declaration.
27172         * m4/mbsrchr.m4: New file.
27173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27174         GNULIB_MBSRCHR.
27175         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
27176         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
27177
27178 2007-02-04  Bruno Haible  <bruno@clisp.org>
27179
27180         New module mbschr.
27181         * modules/mbschr: New file.
27182         * lib/mbschr.c: New file.
27183         * lib/string_.h (strchr): Add a conditional link warning.
27184         (mbschr): New declaration.
27185         * m4/mbschr.m4: New file.
27186         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27187         GNULIB_MBSCHR.
27188         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
27189         * MODULES.html.sh (Internationalization functions): Add mbschr.
27190
27191 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27192
27193         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
27194
27195         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
27196
27197 2007-02-04  Bruno Haible  <bruno@clisp.org>
27198
27199         New module description section 'configure.ac-early'.
27200         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
27201         (func_get_autoconf_early_snippet): New function.
27202         (func_import, func_create_testdir): Use it. Remove special cases for
27203         modules 'extensions' and 'lock'.
27204         * modules/extensions (configure.ac-early): Require
27205         gl_USE_SYSTEM_EXTENSIONS.
27206         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
27207
27208 2007-02-04  Bruno Haible  <bruno@clisp.org>
27209
27210         Make use of gcj-4.3's -fsource and -ftarget option.
27211         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
27212         and if so try the options -fsource and -ftarget.
27213         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
27214         source_version, ftarget_option, target_version arguments.
27215         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
27216         (is_envjavac_oldgcj_14_14_usable): Renamed from
27217         is_envjavac_gcj_14_14_usable.
27218         (is_envjavac_oldgcj_14_13_usable): Renamed from
27219         is_envjavac_gcj_14_13_usable.
27220         (is_gcj_present): Update.
27221         (is_gcj_43, is_gcj43_usable): New functions.
27222         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
27223         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
27224         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
27225         try the options -fsource and -ftarget.
27226
27227 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27228
27229         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
27230         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
27231         larger value.
27232
27233 2007-02-03  Jim Meyering  <jim@meyering.net>
27234
27235         Give tools a better chance to allocate space for very large buffers.
27236         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
27237
27238         Make pwd and readlink work also when run with an unreadable parent dir
27239         on systems with openat support.
27240         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
27241         provided getcwd function, even when we have openat support.
27242         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
27243
27244 2007-02-02  Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27247         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
27248         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
27249         portability problems if one of these functions is only used on specific
27250         platforms.
27251         Reported by Paul Eggert.
27252
27253 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27254
27255         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
27256         is causing more trouble than it's curing.
27257         * lib/regex_internal.h (__mempcpy): Remove.
27258         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
27259         (and make the code a tad smaller to boot).
27260         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
27261
27262 2007-02-02  Jim Meyering  <jim@meyering.net>
27263
27264         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
27265         section, not in the Makefile.am: one.
27266
27267 2007-02-02  Eric Blake  <ebb9@byu.net>
27268
27269         * lib/strchrnul.c: Always include config.h first.
27270
27271         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
27272         gnulib strstr is not necessary here.
27273
27274 2007-02-02  Simon Josefsson  <simon@josefsson.org>
27275
27276         * m4/socklen.m4: Fix typo.
27277
27278 2007-02-02  Eric Blake  <ebb9@byu.net>
27279
27280         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
27281         * modules/netinet_in (Makefile.am): Likewise.
27282
27283 2007-02-01  Bruno Haible  <bruno@clisp.org>
27284
27285         * lib/string_.h (GL_LINK_WARNING): New macro.
27286         (strcasecmp, strstr, strcasestr): If provided by the system,
27287         conditionally define as a macro that leads to a warning instead of to
27288         an error.
27289         (strncasecmp): Conditionally define as a macro that leads to a warning.
27290
27291 2007-02-01  Karl Berry  <karl@gnu.org>
27292
27293         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
27294
27295 2007-02-01  Bruno Haible  <bruno@clisp.org>
27296
27297         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
27298         renamings.
27299
27300 2007-02-01  Eric Blake  <ebb9@byu.net>
27301
27302         * modules/regex (Depends-on): Revert dependence on mempcpy.
27303         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
27304         module's definition of mempcpy.
27305         Reported by Paul Eggert.
27306
27307 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27308
27309         * lib/string_.h: If the gnulib module XYZ is not present, undefine
27310         the symbol XYZ before redefining it.  This fixes a problem with
27311         programs that don't use XYZ, when compiled on systems that define
27312         XYZ to something else.
27313
27314 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27315
27316         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
27317         occurs when "mkdir -m foo" creates a setgid directory that is (1)
27318         writeable to group or other and (2) is intended to have a special
27319         mode bit that is set or cleared.  In such a case, the directory
27320         should be neither group- nor other-writeable until the special
27321         mode bits are right.
27322
27323 2007-01-31  Eric Blake  <ebb9@byu.net>
27324
27325         * modules/mountlist (Depends-on): Add strstr.
27326
27327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
27328         bug.
27329         * modules/string (Makefile.am): Remove redundant replacement.
27330         * modules/regex (Depends-on): Add mempcpy.
27331
27332 2007-01-31  Bruno Haible  <bruno@clisp.org>
27333
27334         New module description field 'Link'.
27335         * gnulib-tool (func_usage): Document --extract-link-directive.
27336         (sed_extract_prog): Recognize 'Link' directive.
27337         (func_get_link_directive): New function.
27338         (func_import): Show summary of link directives.
27339         Handle --extract-link-directive option.
27340         * modules/acl (Link): New section.
27341         * modules/clock-time (Link): New section.
27342         * modules/euidaccess (Link): New section.
27343         * modules/gettext (Link): New section.
27344         * modules/iconv (Link): New section.
27345         * modules/lock (Link): New section.
27346         * modules/nanosleep (Link): New section.
27347         * modules/readline (Link): New section.
27348
27349 2007-01-27  Bruno Haible  <bruno@clisp.org>
27350
27351         Enforce the use of gnulib modules for unportable <string.h> functions.
27352         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
27353         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
27354         (gl_HEADER_STRING_H_BODY): Require it.
27355         * lib/string_.h: If the gnulib module XYZ is not present, redefine
27356         the symbol XYZ to one that gives a link error.
27357         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
27358         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
27359         * modules/mempcpy (configure.ac): Likewise.
27360         * modules/memrchr (configure.ac): Likewise.
27361         * modules/stpcpy (configure.ac): Likewise.
27362         * modules/stpncpy (configure.ac): Likewise.
27363         * modules/strcase (configure.ac): Likewise.
27364         * modules/strcasestr (configure.ac): Likewise.
27365         * modules/strchrnul (configure.ac): Likewise.
27366         * modules/strdup (configure.ac): Likewise.
27367         * modules/strndup (configure.ac): Likewise.
27368         * modules/strnlen (configure.ac): Likewise.
27369         * modules/strpbrk (configure.ac): Likewise.
27370         * modules/strsep (configure.ac): Likewise.
27371         * modules/strstr (configure.ac): Likewise.
27372         * modules/strtok_r (configure.ac): Likewise.
27373
27374 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
27375
27376         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
27377
27378 2007-01-30  Jim Meyering  <jim@meyering.net>
27379
27380         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
27381
27382 2007-01-29  Bruno Haible  <bruno@clisp.org>
27383
27384         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
27385         * lib/execute.c: Likewise.
27386         * lib/pipe.c: Likewise.
27387         * lib/printf-args.h: Likewise.
27388         * lib/printf-args.c: Likewise.
27389         * lib/printf-parse.c: Likewise.
27390         * lib/vasnprintf.c: Likewise.
27391
27392 2007-01-29  Eric Blake  <ebb9@byu.net>
27393
27394         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
27395         declaration.
27396
27397 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27398
27399         * lib/strptime.h (strptime): Use 'restrict' for args where
27400         POSIX requires this.
27401         * lib/strptime.c (strptime): Likewise.
27402         Change license notice from LGPL to GPL, since gnulib-tool will
27403         change this as needed.
27404         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
27405         defined.
27406         Include "strptime.h" first, to check interface.
27407         Do not #undef _LIBC and _NL_CURRENT.
27408         Do not include <stdlib.h>; no longer needed.
27409         Include "time_r.h" and declare ptime_locale_status
27410         only if _LIBC is not defined.
27411         (__P): Remove unused macro.
27412         (match_string): Bring back glibc version, but use it only if _LIBC
27413         is defined.
27414         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
27415         Remove unnecessary assertion and abort() call.
27416         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
27417         * m4/strptime.m4: Fix serial number comment.
27418         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
27419         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
27420         (Depends-on): Add time_r.
27421
27422 2007-01-29  Bruno Haible  <bruno@clisp.org>
27423
27424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27425         strptime.
27426         * modules/strptime (Depends-on): Add stdbool.
27427         * lib/strptime.h: Include <time.h> always. Add comments.
27428
27429 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27430
27431         * modules/strptime: New file.
27432         * lib/strptime.h: New file.
27433         * lib/strptime.c: New file.
27434         * m4/strptime.m4: New file.
27435
27436 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27437
27438         * MODULES.html.sh: New module mpsort.
27439         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
27440
27441         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
27442         a circularity problem with HP-UX ia64 reported by Bob Proulx in
27443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
27444         All uses changed.
27445         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
27446         All uses changed.
27447         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
27448         to _Restrict_.
27449         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
27450         the parameter matches the prototype.
27451
27452 2007-01-28  Jim Meyering  <jim@meyering.net>
27453
27454         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
27455         sys/time.h here, reverting that part of the previous patch:
27456         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
27457
27458 2007-01-28  Bruno Haible  <bruno@clisp.org>
27459
27460         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
27461         value of $(SYS_TIME_H).
27462         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
27463         remove it conditionally, too. [added by Jim Meyering]
27464         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
27465         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27466         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
27467         GETTIMEOFDAY_REPLACEMENT to 1.
27468
27469 2007-01-28  Bruno Haible  <bruno@clisp.org>
27470
27471         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
27472         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
27473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
27474         Set UNISTD_H instead of UNISTD_H2.
27475         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
27476
27477 2007-01-28  Bruno Haible  <bruno@clisp.org>
27478
27479         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
27480         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
27481
27482 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27483
27484         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
27485         (func_create_testdir): Ensure C locale for `grep' and `tr'
27486         character ranges.
27487         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
27488         ACLOCAL_AMFLAGS parsing state machine.
27489
27490 2007-01-27  Bruno Haible  <bruno@clisp.org>
27491
27492         * modules/unistr/base: Update.
27493
27494 2007-01-27  Bruno Haible  <bruno@clisp.org>
27495
27496         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
27497         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
27498         * modules/unistr/u32-mbtouc-unsafe: Renamed from
27499         modules/unistr/u32-mbtouc.
27500         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
27501         * lib/unistr.h: Update.
27502         * lib/linebreak.c: Update.
27503         * modules/unistr/u32-mbtouc: Renamed from
27504         modules/unistr/u32-mbtouc-safe.
27505         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
27506         * lib/unistr.h: Update.
27507         * lib/unistr/u32-to-u8.c: Update.
27508         * lib/unistr/u32-to-u16.c: Update.
27509
27510 2007-01-27  Bruno Haible  <bruno@clisp.org>
27511
27512         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
27513         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
27514         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
27515         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
27516         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
27517         * modules/unistr/u16-mbtouc-unsafe: Renamed from
27518         modules/unistr/u16-mbtouc.
27519         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
27520         * lib/unistr.h: Update.
27521         * lib/linebreak.c: Update.
27522         * modules/linebreak: Update.
27523         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
27524         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
27525         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
27526         * modules/unistr/u16-mbtouc: Renamed from
27527         modules/unistr/u16-mbtouc-safe.
27528         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
27529         * lib/unistr.h: Update.
27530         * lib/unistr/u16-to-u8.c: Update.
27531         * modules/unistr/u16-to-u8: Update.
27532         * lib/unistr/u16-to-u32.c: Update.
27533         * modules/unistr/u16-to-u32: Update.
27534
27535 2007-01-27  Bruno Haible  <bruno@clisp.org>
27536
27537         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
27538         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
27539         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
27540         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
27541         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
27542         * modules/unistr/u8-mbtouc-unsafe: Renamed from
27543         modules/unistr/u8-mbtouc.
27544         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
27545         * lib/unistr.h: Update.
27546         * lib/striconveh.c: Update.
27547         * modules/striconveh: Update.
27548         * lib/linebreak.c: Update.
27549         * modules/linebreak: Update.
27550         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
27551         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
27552         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
27553         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
27554         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
27555         * lib/unistr.h: Update.
27556         * lib/striconveh.c: Update.
27557         * modules/striconveh: Update.
27558         * lib/unistr/u8-to-u16.c: Update.
27559         * modules/unistr/u8-to-u16: Update.
27560         * lib/unistr/u8-to-u32.c: Update.
27561         * modules/unistr/u8-to-u32: Update.
27562
27563 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27564
27565         Sync from Libtool.
27566         * lib/argz.c: Do not include strings.h nor memory.h, include
27567         string.h unconditionally.  Patch by Simon Josefsson.
27568
27569 2007-01-27  Bruno Haible  <bruno@clisp.org>
27570
27571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
27572         from gl_HEADER_STRING_H_BODY.
27573         (gl_HEADER_STRING_H_BODY): Require it.
27574         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
27575         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
27576         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
27577         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
27578         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27579         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
27580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27581         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
27582         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
27583         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
27584         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
27585         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
27586         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
27587         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27588         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
27589
27590 2007-01-27  Bruno Haible  <bruno@clisp.org>
27591
27592         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
27593         check_PROGRAMS into noinst_PROGRAMS.
27594         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
27595         check_PROGRAMS in this case.
27596         (func_import): Set for_test to false.
27597         (func_create_testdir): Set for_test to true.
27598
27599 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27600             Bruno Haible  <bruno@clisp.org>
27601
27602         * modules/strcasestr (Files): Remove lib/strcasestr.h.
27603         (Depends-on): Add string.
27604         (Includes): Use <string.h> instead of strcasestr.h.
27605         * modules/string (Makefile.am): Also substitute the value of
27606         REPLACE_STRCASESTR.
27607         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
27608         assume strcasestr is declared in <string.h> not <strings.h>. Also
27609         set REPLACE_STRCASESTR.
27610         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
27611         REPLACE_STRCASESTR.
27612         * lib/strcasestr.h: Remove file.
27613         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
27614         * lib/string_.h (strcasestr): New declaration.
27615
27616 2007-01-27  Bruno Haible  <bruno@clisp.org>
27617
27618         * lib/string_.h: Use 'extern'.
27619
27620 2007-01-27  Jim Meyering  <jim@meyering.net>
27621
27622         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
27623         of set-but-not-used local, "q".
27624
27625         * lib/mempcpy.c: Include <config.h> before <string.h>.
27626         This fixes a compilation error on HP-UX, due to the system's
27627         "restrict"-using mempcpy prototype.
27628
27629 2007-01-26  Bruno Haible  <bruno@clisp.org>
27630
27631         Small optimization.
27632         * lib/javacomp.c: Include c-strstr.h.
27633          (is_envjavac_gcj): Use c_strstr instead of strstr.
27634         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
27635
27636 2007-01-26  Bruno Haible  <bruno@clisp.org>
27637
27638         * MODULES.html.sh (Unicode string functions): Add the new modules.
27639
27640         * modules/uniconv/u32-strconv-to-locale: New file.
27641         * lib/uniconv/u32-strconv-to-locale.c: New file.
27642
27643         * modules/uniconv/u16-strconv-to-locale: New file.
27644         * lib/uniconv/u16-strconv-to-locale.c: New file.
27645
27646         * modules/uniconv/u8-strconv-to-locale: New file.
27647         * lib/uniconv/u8-strconv-to-locale.c: New file.
27648
27649         * modules/uniconv/u32-strconv-from-locale: New file.
27650         * lib/uniconv/u32-strconv-from-locale.c: New file.
27651
27652         * modules/uniconv/u16-strconv-from-locale: New file.
27653         * lib/uniconv/u16-strconv-from-locale.c: New file.
27654
27655         * modules/uniconv/u8-strconv-from-locale: New file.
27656         * lib/uniconv/u8-strconv-from-locale.c: New file.
27657
27658         * modules/uniconv/u32-strconv-to-enc: New file.
27659         * lib/uniconv/u32-strconv-to-enc.c: New file.
27660         * modules/uniconv/u32-strconv-to-enc-tests: New file.
27661         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
27662
27663         * modules/uniconv/u16-strconv-to-enc: New file.
27664         * lib/uniconv/u16-strconv-to-enc.c: New file.
27665         * lib/uniconv/u-strconv-to-enc.h: New file.
27666         * modules/uniconv/u16-strconv-to-enc-tests: New file.
27667         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
27668
27669         * modules/uniconv/u8-strconv-to-enc: New file.
27670         * lib/uniconv/u8-strconv-to-enc.c: New file.
27671         * modules/uniconv/u8-strconv-to-enc-tests: New file.
27672         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
27673
27674         * modules/uniconv/u32-strconv-from-enc: New file.
27675         * lib/uniconv/u32-strconv-from-enc.c: New file.
27676         * modules/uniconv/u32-strconv-from-enc-tests: New file.
27677         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
27678
27679         * modules/uniconv/u16-strconv-from-enc: New file.
27680         * lib/uniconv/u16-strconv-from-enc.c: New file.
27681         * modules/uniconv/u16-strconv-from-enc-tests: New file.
27682         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
27683
27684         * modules/uniconv/u8-strconv-from-enc: New file.
27685         * lib/uniconv/u8-strconv-from-enc.c: New file.
27686         * lib/uniconv/u-strconv-from-enc.h: New file.
27687         * modules/uniconv/u8-strconv-from-enc-tests: New file.
27688         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
27689
27690         * modules/uniconv/u32-conv-from-enc: New file.
27691         * lib/uniconv/u32-conv-from-enc.c: New file.
27692         * modules/uniconv/u32-conv-from-enc-tests: New file.
27693         * tests/uniconv/test-u32-conv-from-enc.c: New file.
27694
27695         * modules/uniconv/u16-conv-from-enc: New file.
27696         * lib/uniconv/u16-conv-from-enc.c: New file.
27697         * lib/uniconv/u-conv-from-enc.h: New file.
27698         * modules/uniconv/u16-conv-from-enc-tests: New file.
27699         * tests/uniconv/test-u16-conv-from-enc.c: New file.
27700
27701         * modules/uniconv/u8-conv-from-enc: New file.
27702         * lib/uniconv/u8-conv-from-enc.c: New file.
27703         * modules/uniconv/u8-conv-from-enc-tests: New file.
27704         * tests/uniconv/test-u8-conv-from-enc.c: New file.
27705
27706         * modules/uniconv/base: New file.
27707         * lib/uniconv.h: New file.
27708
27709 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
27710
27711         * doc/gnulib-tool.texi (Initial import): Update to match current
27712         behavior with strdup module.
27713         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
27714         * lib/memmem.h: Remove; all uses removed.  This is now done
27715         by <string.h>.
27716         * lib/mempcpy.h: Likewise.
27717         * lib/memrchr.h: Likewise.
27718         * lib/stpcpy.h: Likewise.
27719         * lib/stpncpy.h: Likewise.
27720         * lib/strcase.h: Likewise.
27721         * lib/strchrnul.h: Likewise.
27722         * lib/strdup.h: Likewise.
27723         * lib/strndup.h: Likewise.
27724         * lib/strnlen.h: Likewise.
27725         * lib/strpbrk.h: Likewise.
27726         * lib/strsep.h: Likewise.
27727         * lib/strstr.h: Likewise.
27728         * lib/strtok_r.h: Likewise.
27729         * lib/string_.h: New file.
27730         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
27731         Rely on <string.h> instead.
27732         * lib/canon-host.c: Likewise.
27733         * lib/chdir-long.c: Likewise.
27734         * lib/concatpath.c: Likewise.
27735         * lib/exclude.c: Likewise.
27736         * lib/fchdir.c: Likewise.
27737         * lib/getaddrinfo.c: Likewise.
27738         * lib/getcwd.c: Likewise.
27739         * lib/getsubopt.c: Likewise.
27740         * lib/glob.c: Likewise.
27741         * lib/hard-locale.c: Likewise.
27742         * lib/iconvme.c: Likewise.
27743         * lib/javacomp.c: Likewise.
27744         * lib/mempcpy.c: Likewise.
27745         * lib/memrchr.c: Likewise.
27746         * lib/regex_internal.h: Likewise.
27747         * lib/stpncpy.c: Likewise.
27748         * lib/strcasecmp.c: Likewise.
27749         * lib/strchrnul.c: Likewise.
27750         * lib/strdup.c: Likewise.
27751         * lib/striconv.c: Likewise.
27752         * lib/striconveh.c: Likewise.
27753         * lib/striconveha.c: Likewise.
27754         * lib/strncasecmp.c: Likewise.
27755         * lib/strndup.c: Likewise.
27756         * lib/strnlen.c: Likewise.
27757         * lib/strsep.c: Likewise.
27758         * lib/strstr.c: Likewise.
27759         * lib/strtok_r.c: Likewise.
27760         * lib/userspec.c: Likewise.
27761         * lib/w32spawn.h: Likewise.
27762         * lib/xstrndup.c: Likewise.
27763         * lib/mountlist.c (strstr): Remove decl.
27764         * m4/string_h.m4: New file.
27765         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
27766         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
27767         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
27768         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
27769         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
27770         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
27771         Set REPLACE_STRCASECMP if necessary.
27772         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
27773         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
27774         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
27775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
27776         HAVE_DECL_STRDUP if necessary.
27777         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
27778         since gl_FUNC_STRNDUP does that now.
27779         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
27780         Check for decl here...
27781         (gl_PREREQ_STRNLEN): ... not here.
27782         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
27783         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
27784         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
27785         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
27786         necessary.
27787         * modules/string: New file.
27788         * modules/memmem (Files): Remove special-purpose include file.
27789         (Depends-on): Add string.
27790         (Include): Include <string.h>, not the removed file.
27791         * modules/mempcpy: Likewise.
27792         * modules/memrchr: Likewise.
27793         * modules/stpcpy: Likewise.
27794         * modules/stpncpy: Likewise.
27795         * modules/strcase: Likewise.
27796         * modules/strchrnul: Likewise.
27797         * modules/strdup: Likewise.
27798         * modules/strndup: Likewise.
27799         * modules/strnlen: Likewise.
27800         * modules/strpbrk: Likewise.
27801         * modules/strsep: Likewise.
27802         * modules/strstr: Likewise.
27803         * modules/strtok_r: Likewise.
27804         * tests/test-dirname.c: Don't include "strdup.h", since
27805         <string.h> now suffices.
27806         * tests/test-memmem.c: Don't include "memmem.h", since
27807         <string.h> now suffices.
27808
27809 2007-01-25  Bruno Haible  <bruno@clisp.org>
27810
27811         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
27812         *resultp is 0.
27813
27814         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
27815         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
27816         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
27817         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
27818
27819         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
27820         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
27821         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
27822         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
27823         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
27824         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
27825
27826 2007-01-24  Bruno Haible  <bruno@clisp.org>
27827
27828         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
27829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
27830         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
27831         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
27832         gl_FUNC_FTS_CORE.
27833         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
27834         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
27835         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27836         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
27837         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
27838         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
27839         gl_FUNC_FCHOWNAT.
27840         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
27841         gl_FUNC_STRFTIME.
27842         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
27843         Reported by Ralf Wildenhues.
27844
27845 2007-01-24  Bruno Haible  <bruno@clisp.org>
27846
27847         Drop AC_REQUIRE calls that are redundant with the module dependencies.
27848         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
27849         gl_GETADDRINFO.
27850         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
27851         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
27852         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
27853
27854 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27855
27856         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
27857         Don't use 'exit'; just return from 'main'.
27858         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
27859
27860         * lib/fnmatch_.h: Readjust white space and comments to match
27861         glibc, to avoid spurious diffs.
27862
27863 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27864
27865         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
27866         2004-12-01 change by Jakub Jelinek, since this code won't compile
27867         if !LIBC.  Problem reported by Bob Proulx.
27868
27869 2007-01-23  Bruno Haible  <bruno@clisp.org>
27870
27871         * lib/striconveh.c: Include c-strcaseeq.h.
27872         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
27873         * modules/striconveh (Depends-on): Add c-strcaseeq.
27874
27875 2007-01-23  Bruno Haible  <bruno@clisp.org>
27876
27877         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
27878
27879         * modules/c-strcaseeq: New file.
27880         * lib/c-strcaseeq.h: New file.
27881
27882         * modules/streq: New file.
27883         * lib/streq.h: New file.
27884
27885 2007-01-23  Bruno Haible  <bruno@clisp.org>
27886
27887         * modules/striconveha-tests: New file.
27888         * tests/test-striconveha.c: New file.
27889
27890         * lib/striconveha.h: Include <stdbool.h>.
27891         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
27892         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
27893         (mem_iconveha_notranslit): Renamed from mem_iconveha.
27894         (mem_iconveha): New function.
27895         (str_iconveha_notranslit): Renamed from str_iconveha.
27896         (str_iconveha): New function.
27897         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
27898         c-strcase.
27899
27900 2007-01-23  Bruno Haible  <bruno@clisp.org>
27901
27902         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
27903         encodings without forgiving before trying any encoding with handler.
27904         (str_iconveha): Try all encodings without forgiving before trying any
27905         encoding with handler.
27906
27907 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27908
27909         Import the following changes from libc.
27910
27911         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
27912
27913         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
27914
27915         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
27916
27917         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
27918         normal_bracket label.
27919
27920         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
27921
27922         [BZ #361]
27923         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
27924         to normal_bracket after fetching the next character.
27925
27926 2007-01-22  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
27929         argument.
27930         * lib/striconveh.c (iconv_carefully_1): New function.
27931         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
27932         argument.
27933         (str_cd_iconveh): Update.
27934         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
27935         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
27936         * tests/test-striconveh.c (MAGIC): New macro.
27937         (new_offsets): New function.
27938         (main): Test call with and without offsets.
27939
27940 2007-01-22  Bruno Haible  <bruno@clisp.org>
27941
27942         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
27943         * modules/sys_select (Makefile.am): Likewise.
27944         * modules/sys_socket (Makefile.am): Likewise.
27945         * modules/sys_time (Makefile.am): Likewise.
27946
27947 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
27948
27949         * modules/gettimeofday (License): Change from GPL to LGPL, since
27950         gettimeofday is a library function.
27951
27952 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27953
27954         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
27955
27956 2007-01-21  Bruno Haible  <bruno@clisp.org>
27957
27958         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
27959
27960 2007-01-21  Bruno Haible  <bruno@clisp.org>
27961
27962         * modules/striconveha: New file.
27963         * lib/striconveha.h: New file.
27964         * lib/striconveha.c: New file.
27965         * MODULES.html.sh (Internationalization functions): Add striconveha.
27966         * lib/striconv.c (str_iconv): Optimize the case of an empty input
27967         string.
27968         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
27969
27970 2007-01-21  Bruno Haible  <bruno@clisp.org>
27971
27972         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
27973         * lib/striconveh.c (str_iconveh): Likewise.
27974
27975 2007-01-21  Bruno Haible  <bruno@clisp.org>
27976
27977         * lib/striconveh.h (mem_iconveh): New declaration.
27978         * lib/striconveh.c (mem_iconveh): New function.
27979         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
27980
27981 2007-01-21  Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
27984
27985         * lib/striconveh.h (mem_cd_iconveh): Change specification.
27986         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
27987         original result buffer.
27988         (str_cd_iconveh): Update.
27989         * tests/test-striconveh.c (main): Update.
27990
27991         * lib/striconv.h (mem_cd_iconv): Change specification.
27992         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
27993         result buffer.
27994         (str_cd_iconv): Update.
27995         * tests/test-striconv.c (main): Update.
27996
27997 2007-01-21  Bruno Haible  <bruno@clisp.org>
27998
27999         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
28000
28001 2007-01-20  Jim Meyering  <jim@meyering.net>
28002
28003         * lib/userspec.c (parse_with_separator): If a user or group string
28004         starts with "+", skip the corresponding name-to-ID look-up, since
28005         such a look-up must fail: user and group names may not include "+".
28006
28007 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28008
28009         * lib/poll.c: Include sys/time.h and time.h unconditionally,
28010         since we now assume the sys_time module.
28011         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
28012         check for sys/time.h; no longer needed.
28013         * modules/poll (Depends-on): Depend on sys_time.
28014
28015 2007-01-18  Bruno Haible  <bruno@clisp.org>
28016
28017         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
28018         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28019
28020         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
28021         gettimeofday.
28022
28023         * tests/test-gettimeofday.c: Include <time.h>.
28024         (dummy): Remove variable.
28025
28026         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
28027         gl_HEADER_SYS_TIME_H.
28028         (gl_HEADER_SYS_TIME_H): New macro.
28029
28030         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
28031         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
28033         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
28034         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28035         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
28036         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
28037         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28038         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
28039         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
28040         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28041
28042         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
28043         last change; it caused a compilation error when cross-compiling to
28044         Cygwin.
28045
28046 2007-01-18  Jim Meyering  <jim@meyering.net>
28047
28048         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
28049         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
28050         than the race-prone "test -d sys || mkdir sys".
28051         (configure.ac): Use AC_PROG_MKDIR_P.
28052         * modules/sys_select: Likewise.
28053         * modules/sys_socket: Likewise.
28054         * modules/sys_time: Likewise.
28055
28056 2007-01-18  Eric Blake  <ebb9@byu.net>
28057
28058         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
28059         replace gettimeofday.
28060         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
28061         name, to avoid infinite recursion.
28062
28063 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
28064
28065         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
28066         module sys_time.
28067         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
28068         assume timespec.h defines struct timeval.
28069         * lib/settime.c: Likewise.
28070         * lib/utimens.c: Likewise.
28071         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
28072         since we now assume the gettimeofday module.
28073         * lib/tempname.c (__gen_tempname): Likewise.
28074         * lib/gettimeofday.h: Remove.
28075         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
28076         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
28077         Include <time.h>, for 'time()'.
28078         (localtime_buffer_addr): Also use this workaround if
28079         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
28080         to simplify the uses.  All uses changed.
28081         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
28082         that #undef is inside {}, and 'const' follows type name consistently.
28083         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
28084         (gettimeofday): Do not use the maximum possible value for
28085         tv->tv_usec, since that might break usages other than ls.c.
28086         Instead, we'll leave ls.c alone.  This undoes today's patch
28087         by Bruno.  Add a compile-time warning for 1s-clock resolution;
28088         we've never observed the problem but might as well keep the
28089         canary.
28090         * lib/nanosleep.c: Include timespec.h first, for interface check.
28091         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
28092         now assume the sys_time module.
28093         * lib/tempname.c: Likewise.
28094         * lib/timespec.h: Likewise.
28095         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
28096         needed.
28097         * lib/strftime.c: Likewise.
28098         * lib/timespec.h: Likewise.
28099         * lib/posixtm.c: Include posixtm.h first, for interface check.
28100         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
28101         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
28102         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
28103         * lib/sys_time_.h: New file.
28104         * lib/timespec.h (struct timespec): Use long int, not long.
28105         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28106         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
28107         Remove obsolescent call to AC_HEADER_TIME.
28108         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28110         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28111         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
28112         Likewise.
28113         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
28114         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
28115         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
28116         into the sys_time module.  Check for gettimeofday just once.
28117         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
28118         for gettimeofday signature to just check the signature.  Merely
28119         compile it, since linking doesn't test signature.  Improve test for
28120         whether gettimeofday.o is actually needed.
28121         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
28122         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
28123         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
28124         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28125         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
28126         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
28127         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
28128         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
28129         than worrying about sys/time.h.
28130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28131         Don't bother worrying about TIME_WITH_SYS_TIME.
28132         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28133         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
28134         * m4/sys_time_h.m4: New file.
28135         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
28136         Don't include sys/time.h.  Return from main rather than exiting.
28137         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
28138         all uses changed.
28139         * modules/gethrxtime (Depends-on): Add sys_time.
28140         * modules/gettime (Depends-on): Likewise.
28141         * modules/gettimeofday (Depends-on): Likewise.
28142         * modules/nanosleep (Depends-on): Likewise.
28143         * modules/settime (Depends-on): Likewise.
28144         * modules/tempname (Depends-on): Likewise.
28145         * modules/utimens (Depends-on): Likewise.
28146         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
28147         (Include:) Change back to <sys/time.h>.
28148         (Maintainer:) Add self.
28149         * modules/sys_time: New file.
28150         * modules/tempname (Depends-on): Add gettimeofday.
28151         * tests/test-gettimeofday.c: Include <sys/time.h>
28152         rather than gettimeofday.h.
28153
28154 2007-01-17  Bruno Haible  <bruno@clisp.org>
28155
28156         * gnulib-tool (func_get_license): Revert last patch. Instead, let
28157         the license default to GPL.
28158         (func_create_testdir): Don't complain if a module is LGPL and its
28159         tests module depends on GPLed modules.
28160
28161 2007-01-17  Bruno Haible  <bruno@clisp.org>
28162
28163         * lib/gettimeofday.c (gettimeofday): Add code for the case
28164         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
28165         maximum possible value for tv->tv_usec, rather than the minimum one.
28166
28167 2005-10-08  Martin Lambers  <marlam@marlam.de>
28168 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28169 2007-01-16  Bruno Haible  <bruno@clisp.org>
28170
28171         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
28172         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
28173         gl_FUNC_GETTIMEOFDAY.
28174         (Include): Add gettimeofday.h.
28175         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
28176         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
28177         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
28178         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
28179         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
28180         * lib/gettimeofday.h: New file.
28181         * lib/gettimeofday.c: Include <sys/timeb.h>.
28182         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
28183         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28184         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
28185         fall back on time().
28186
28187         * tests/test-gettimeofday.c: New file.
28188         * modules/gettimeofday-tests: New file.
28189
28190 2007-01-16  Eric Blake  <ebb9@byu.net>
28191
28192         * modules/fnmatch (Depends-on): Depend on wchar.
28193         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
28194         * m4/fnmatch.m4: Likewise.
28195         * modules/mbchar (Makefile.am): Assume <wchar.h>.
28196         * m4/mbchar.m4: Likewise.
28197         * modules/mbswidth (Depends-on): Depend on wchar.
28198         * lib/mbswidth.c: Assume <wchar.h>.
28199         * m4/mbswidth.m4: Likewise.
28200         * modules/quotearg (Depends-on): Depend on wchar.
28201         * lib/quotearg.c: Assume <wchar.h>.
28202         * m4/quotearg.m4: Likewise.
28203         * modules/regex (Depends-on): Depend on wchar.
28204         * lib/regex_internal.h: Assume <wchar.h>.
28205         * m4/regex.m4: Likewise.
28206         * modules/stdint (Depends-on): Depend on wchar.
28207         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
28208         * m4/stdint.m4: Likewise.
28209         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
28210         * modules/strftime (Depends-on): Depend on wchar.
28211         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
28212         * modules/strtol (Depends-on): Depend on wchar.
28213         * lib/strtol.c: Assume <wchar.h>.
28214         * modules/wcwidth (Depends-on): Depend on wchar.
28215         * lib/wcwidth.h: Assume <wchar.h>.
28216         * m4/wcwidth.m4: Likewise.
28217
28218 2007-01-16  Bruno Haible  <bruno@clisp.org>
28219
28220         * modules/csharpexec-script: New, created from...
28221         * modules/csharpexec: ... this.
28222
28223 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28224
28225         * modules/javaexec-script: New, created from...
28226         * modules/javaexec: ... this.
28227
28228 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28229
28230         * modules/poll (Dependencies): Add sys_select.
28231
28232 2007-01-15  Jim Meyering  <jim@meyering.net>
28233
28234         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
28235         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
28236         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
28237         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
28238
28239 2007-01-15  Bruno Haible  <bruno@clisp.org>
28240
28241         * modules/striconveh: New file.
28242         * lib/striconveh.h: New file.
28243         * lib/striconveh.c: New file.
28244         * MODULES.html.sh (Internationalization functions): Add striconveh.
28245
28246         * modules/striconveh-tests: New file.
28247         * tests/test-striconveh.c: New file.
28248
28249 2007-01-15  Bruno Haible  <bruno@clisp.org>
28250
28251         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
28252         not from GNU libiconv or GNU libc.
28253
28254 2007-01-15  Bruno Haible  <bruno@clisp.org>
28255
28256         * doc/gnulib-intro.texi (Copyright): Explain the different license
28257         terms for module descriptions, autoconf macros, tests, documentation.
28258
28259 2007-01-14  Bruno Haible  <bruno@clisp.org>
28260
28261         * modules/striconv-tests: New file.
28262         * tests/test-striconv.c: New file.
28263
28264 2007-01-14  Bruno Haible  <bruno@clisp.org>
28265
28266         * modules/iconv-tests: New file.
28267         * tests/test-iconv.c: New file.
28268
28269 2007-01-14  Bruno Haible  <bruno@clisp.org>
28270
28271         * gnulib-tool (func_get_license): For test modules, use the license of
28272         the main module.
28273
28274 2007-01-14  Bruno Haible  <bruno@clisp.org>
28275
28276         * modules/iconv (Include): Clarify that <iconv.h> can only be included
28277         if iconv is found to exist.
28278
28279 2007-01-14  Bruno Haible  <bruno@clisp.org>
28280
28281         * modules/c-ctype-tests: New file.
28282         * tests/test-c-ctype.c: New file.
28283
28284 2007-01-14  Bruno Haible  <bruno@clisp.org>
28285
28286         * modules/binary-io-tests: New file.
28287         * tests/test-binary-io.sh: New file.
28288         * tests/test-binary-io.c: New file.
28289
28290 2007-01-14  Bruno Haible  <bruno@clisp.org>
28291
28292         * modules/array-oset-tests: New file.
28293         * tests/test-array_oset.c: New file.
28294
28295 2007-01-14  Bruno Haible  <bruno@clisp.org>
28296
28297         * modules/array-list-tests: New file.
28298         * tests/test-array_list.c: New file.
28299
28300 2007-01-14  Bruno Haible  <bruno@clisp.org>
28301
28302         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
28303         and make.
28304         Reported by Simon Josefsson in
28305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
28306
28307 2007-01-14  Bruno Haible  <bruno@clisp.org>
28308
28309         * modules/allocsa-tests: New file.
28310         * tests/test-allocsa.c: New file.
28311
28312 2007-01-14  Bruno Haible  <bruno@clisp.org>
28313
28314         * modules/fchdir (Depends-on): Add absolute-header.
28315         * modules/unistd (Depends-on): Likewise.
28316
28317 2006-12-30  Bruno Haible  <bruno@clisp.org>
28318
28319         * modules/fchdir: New file.
28320         * modules/unistd (Files): Add lib/unistd_.h.
28321         (Makefile.am): Generate unistd.h from unistd_.h.
28322         * lib/fchdir.c: New file.
28323         * lib/dirent_.h: New file.
28324         * lib/unistd_.h: New file.
28325         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
28326         * m4/fchdir.m4: New file.
28327         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
28328         (gl_HEADER_UNISTD): Invoke it.
28329         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
28330         function.
28331         * lib/backupfile.c (opendir, closedir): Undefine.
28332         * lib/chown.c (open, close): Undefine.
28333         * lib/clean-temp.c (open, close): Undefine.
28334         * lib/copy-file.c (open, close): Undefine.
28335         * lib/execute.c (open, close): Undefine.
28336         * lib/fsusage.c (open, close): Undefine.
28337         * lib/gc-gnulib.c (open, close): Undefine.
28338         * lib/getcwd.c (opendir, closedir): Undefine.
28339         * lib/glob.c (opendir, closedir): Undefine.
28340         * lib/javacomp.c (open, close): Undefine.
28341         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
28342         * lib/openat-proc.c (open, close): Undefine.
28343         * lib/pagealign_alloc.c (open, close): Undefine.
28344         * lib/pipe.c (open, close): Undefine.
28345         * lib/progreloc.c (open, close): Undefine.
28346         * lib/savedir.c (opendir, closedir): Undefine.
28347         * lib/utime.c (open, close): Undefine.
28348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
28349
28350 2007-01-10  Bruno Haible  <bruno@clisp.org>
28351
28352         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
28353
28354 2007-01-12  Eric Blake  <ebb9@byu.net>
28355
28356         Provide a robust <wchar.h>.  Further simplifications are now
28357         possible in other modules, but not included here.
28358         * modules/wchar: New module.
28359         * m4/wchar.m4: New file.
28360         * lib/wchar_.h: Likewise.
28361         * modules/mbchar (Depends-on): Depend on wchar, as the first use
28362         of the new module.
28363         * MODULES.html.sh (Extended multibyte and wide character utilities):
28364         New section.
28365
28366 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28367
28368         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
28369         to a reasonable default for memory allocation.
28370         (xreadlink): Don't allocate a huge buffer, to work around a buggy
28371         file system that reports garbage st_size values for symlinks.
28372         Problem reported by Liyang Hu.
28373
28374 2007-01-11  Simon Josefsson  <simon@josefsson.org>
28375
28376         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
28377         Emacs .#* auto-save files).
28378
28379 2007-01-11  Bruno Haible  <bruno@clisp.org>
28380
28381         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
28382         directory.
28383
28384 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28385
28386         Use @...@ consistently in lib/wctype_.h.
28387         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
28388         on it being set to 1 or 0.
28389         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
28390         go back to AC_SUBSTing it.
28391         * modules/wctype (Makefile.am): Undo previous change.
28392
28393 2007-01-10  Eric Blake  <ebb9@byu.net>
28394
28395         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
28396         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
28397         * modules/wctype (Makefile.am): Likewise.
28398         Reported by Chris McGuire.
28399
28400 2007-01-10  Jim Meyering  <jim@meyering.net>
28401
28402         fts.c: a small readability/maintainability improvement
28403         * lib/fts.c (fts_read): Make this code slightly more readable and
28404         maintainable by hoisting the "sp->fts_cur = p" assignments to
28405         immediately follow the statements that set P.  Derived from
28406         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
28407
28408 2007-01-10  Eric Blake  <ebb9@byu.net>
28409
28410         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
28411         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
28412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28413         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28414         Reported by Chris McGuire.
28415
28416 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28417
28418         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
28419         in sed script.
28420
28421 2007-01-09  Bruno Haible  <bruno@clisp.org>
28422
28423         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
28424         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
28425         variables.
28426         (func_module): Use them.
28427
28428 2007-01-09  Bruno Haible  <bruno@clisp.org>
28429
28430         * modules/unistr/base: New file.
28431         * lib/unistr.h: New file.
28432
28433         * modules/unistr/u8-to-u16: New file.
28434         * lib/unistr/u8-to-u16.c: New file.
28435
28436         * modules/unistr/u8-to-u32: New file.
28437         * lib/unistr/u8-to-u32.c: New file.
28438
28439         * modules/unistr/u16-to-u8: New file.
28440         * lib/unistr/u16-to-u8.c: New file.
28441
28442         * modules/unistr/u16-to-u32: New file.
28443         * lib/unistr/u16-to-u32.c: New file.
28444
28445         * modules/unistr/u32-to-u8: New file.
28446         * lib/unistr/u32-to-u8.c: New file.
28447
28448         * modules/unistr/u32-to-u16: New file.
28449         * lib/unistr/u32-to-u16.c: New file.
28450
28451         * modules/unistr/u8-check: New file.
28452         * modules/unistr/u16-check: New file.
28453         * modules/unistr/u32-check: New file.
28454         * lib/unistr/u8-check.c: New file.
28455         * lib/unistr/u16-check.c: New file.
28456         * lib/unistr/u32-check.c: New file.
28457
28458         * modules/unistr/u8-chr: New file.
28459         * modules/unistr/u16-chr: New file.
28460         * modules/unistr/u32-chr: New file.
28461         * lib/unistr/u8-chr.c: New file.
28462         * lib/unistr/u16-chr.c: New file.
28463         * lib/unistr/u32-chr.c: New file.
28464
28465         * modules/unistr/u8-cmp: New file.
28466         * modules/unistr/u16-cmp: New file.
28467         * modules/unistr/u32-cmp: New file.
28468         * lib/unistr/u8-cmp.c: New file.
28469         * lib/unistr/u16-cmp.c: New file.
28470         * lib/unistr/u32-cmp.c: New file.
28471
28472         * modules/unistr/u8-cpy: New file.
28473         * modules/unistr/u16-cpy: New file.
28474         * modules/unistr/u32-cpy: New file.
28475         * lib/unistr/u8-cpy.c: New file.
28476         * lib/unistr/u16-cpy.c: New file.
28477         * lib/unistr/u32-cpy.c: New file.
28478         * lib/unistr/u-cpy.h: New file.
28479
28480         * modules/unistr/u8-cpy-alloc: New file.
28481         * modules/unistr/u16-cpy-alloc: New file.
28482         * modules/unistr/u32-cpy-alloc: New file.
28483         * lib/unistr/u8-cpy-alloc.c: New file.
28484         * lib/unistr/u16-cpy-alloc.c: New file.
28485         * lib/unistr/u32-cpy-alloc.c: New file.
28486         * lib/unistr/u-cpy-alloc.h: New file.
28487
28488         * modules/unistr/u8-endswith: New file.
28489         * modules/unistr/u16-endswith: New file.
28490         * modules/unistr/u32-endswith: New file.
28491         * lib/unistr/u8-endswith.c: New file.
28492         * lib/unistr/u16-endswith.c: New file.
28493         * lib/unistr/u32-endswith.c: New file.
28494         * lib/unistr/u-endswith.h: New file.
28495
28496         * modules/unistr/u8-mblen: New file.
28497         * modules/unistr/u16-mblen: New file.
28498         * modules/unistr/u32-mblen: New file.
28499         * lib/unistr/u8-mblen.c: New file.
28500         * lib/unistr/u16-mblen.c: New file.
28501         * lib/unistr/u32-mblen.c: New file.
28502
28503         * modules/unistr/u8-mbtouc: New file.
28504         * modules/unistr/u16-mbtouc: New file.
28505         * modules/unistr/u32-mbtouc: New file.
28506         * lib/unistr/u8-mbtouc.c: New file.
28507         * lib/unistr/u16-mbtouc.c: New file.
28508         * lib/unistr/u32-mbtouc.c: New file.
28509
28510         * modules/unistr/u8-mbtouc-safe: New file.
28511         * modules/unistr/u16-mbtouc-safe: New file.
28512         * modules/unistr/u32-mbtouc-safe: New file.
28513         * lib/unistr/u8-mbtouc-safe.c: New file.
28514         * lib/unistr/u16-mbtouc-safe.c: New file.
28515         * lib/unistr/u32-mbtouc-safe.c: New file.
28516
28517         * modules/unistr/u8-move: New file.
28518         * modules/unistr/u16-move: New file.
28519         * modules/unistr/u32-move: New file.
28520         * lib/unistr/u8-move.c: New file.
28521         * lib/unistr/u16-move.c: New file.
28522         * lib/unistr/u32-move.c: New file.
28523         * lib/unistr/u-move.h: New file.
28524
28525         * modules/unistr/u8-next: New file.
28526         * modules/unistr/u16-next: New file.
28527         * modules/unistr/u32-next: New file.
28528         * lib/unistr/u8-next.c: New file.
28529         * lib/unistr/u16-next.c: New file.
28530         * lib/unistr/u32-next.c: New file.
28531
28532         * modules/unistr/u8-prev: New file.
28533         * modules/unistr/u16-prev: New file.
28534         * modules/unistr/u32-prev: New file.
28535         * lib/unistr/u8-prev.c: New file.
28536         * lib/unistr/u16-prev.c: New file.
28537         * lib/unistr/u32-prev.c: New file.
28538
28539         * modules/unistr/u8-set: New file.
28540         * modules/unistr/u16-set: New file.
28541         * modules/unistr/u32-set: New file.
28542         * lib/unistr/u8-set.c: New file.
28543         * lib/unistr/u16-set.c: New file.
28544         * lib/unistr/u32-set.c: New file.
28545         * lib/unistr/u-set.h: New file.
28546
28547         * modules/unistr/u8-startswith: New file.
28548         * modules/unistr/u16-startswith: New file.
28549         * modules/unistr/u32-startswith: New file.
28550         * lib/unistr/u8-startswith.c: New file.
28551         * lib/unistr/u16-startswith.c: New file.
28552         * lib/unistr/u32-startswith.c: New file.
28553         * lib/unistr/u-startswith.h: New file.
28554
28555         * modules/unistr/u8-stpcpy: New file.
28556         * modules/unistr/u16-stpcpy: New file.
28557         * modules/unistr/u32-stpcpy: New file.
28558         * lib/unistr/u8-stpcpy.c: New file.
28559         * lib/unistr/u16-stpcpy.c: New file.
28560         * lib/unistr/u32-stpcpy.c: New file.
28561         * lib/unistr/u-stpcpy.h: New file.
28562
28563         * modules/unistr/u8-stpncpy: New file.
28564         * modules/unistr/u16-stpncpy: New file.
28565         * modules/unistr/u32-stpncpy: New file.
28566         * lib/unistr/u8-stpncpy.c: New file.
28567         * lib/unistr/u16-stpncpy.c: New file.
28568         * lib/unistr/u32-stpncpy.c: New file.
28569         * lib/unistr/u-stpncpy.h: New file.
28570
28571         * modules/unistr/u8-strcat: New file.
28572         * modules/unistr/u16-strcat: New file.
28573         * modules/unistr/u32-strcat: New file.
28574         * lib/unistr/u8-strcat.c: New file.
28575         * lib/unistr/u16-strcat.c: New file.
28576         * lib/unistr/u32-strcat.c: New file.
28577         * lib/unistr/u-strcat.h: New file.
28578
28579         * modules/unistr/u8-strchr: New file.
28580         * modules/unistr/u16-strchr: New file.
28581         * modules/unistr/u32-strchr: New file.
28582         * lib/unistr/u8-strchr.c: New file.
28583         * lib/unistr/u16-strchr.c: New file.
28584         * lib/unistr/u32-strchr.c: New file.
28585
28586         * modules/unistr/u8-strcmp: New file.
28587         * modules/unistr/u16-strcmp: New file.
28588         * modules/unistr/u32-strcmp: New file.
28589         * lib/unistr/u8-strcmp.c: New file.
28590         * lib/unistr/u16-strcmp.c: New file.
28591         * lib/unistr/u32-strcmp.c: New file.
28592
28593         * modules/unistr/u8-strcpy: New file.
28594         * modules/unistr/u16-strcpy: New file.
28595         * modules/unistr/u32-strcpy: New file.
28596         * lib/unistr/u8-strcpy.c: New file.
28597         * lib/unistr/u16-strcpy.c: New file.
28598         * lib/unistr/u32-strcpy.c: New file.
28599         * lib/unistr/u-strcpy.h: New file.
28600
28601         * modules/unistr/u8-strcspn: New file.
28602         * modules/unistr/u16-strcspn: New file.
28603         * modules/unistr/u32-strcspn: New file.
28604         * lib/unistr/u8-strcspn.c: New file.
28605         * lib/unistr/u16-strcspn.c: New file.
28606         * lib/unistr/u32-strcspn.c: New file.
28607         * lib/unistr/u-strcspn.h: New file.
28608
28609         * modules/unistr/u8-strdup: New file.
28610         * modules/unistr/u16-strdup: New file.
28611         * modules/unistr/u32-strdup: New file.
28612         * lib/unistr/u8-strdup.c: New file.
28613         * lib/unistr/u16-strdup.c: New file.
28614         * lib/unistr/u32-strdup.c: New file.
28615         * lib/unistr/u-strdup.h: New file.
28616
28617         * modules/unistr/u8-strlen: New file.
28618         * modules/unistr/u16-strlen: New file.
28619         * modules/unistr/u32-strlen: New file.
28620         * lib/unistr/u8-strlen.c: New file.
28621         * lib/unistr/u16-strlen.c: New file.
28622         * lib/unistr/u32-strlen.c: New file.
28623         * lib/unistr/u-strlen.h: New file.
28624
28625         * modules/unistr/u8-strmblen: New file.
28626         * modules/unistr/u16-strmblen: New file.
28627         * modules/unistr/u32-strmblen: New file.
28628         * lib/unistr/u8-strmblen.c: New file.
28629         * lib/unistr/u16-strmblen.c: New file.
28630         * lib/unistr/u32-strmblen.c: New file.
28631
28632         * modules/unistr/u8-strmbtouc: New file.
28633         * modules/unistr/u16-strmbtouc: New file.
28634         * modules/unistr/u32-strmbtouc: New file.
28635         * lib/unistr/u8-strmbtouc.c: New file.
28636         * lib/unistr/u16-strmbtouc.c: New file.
28637         * lib/unistr/u32-strmbtouc.c: New file.
28638
28639         * modules/unistr/u8-strncat: New file.
28640         * modules/unistr/u16-strncat: New file.
28641         * modules/unistr/u32-strncat: New file.
28642         * lib/unistr/u8-strncat.c: New file.
28643         * lib/unistr/u16-strncat.c: New file.
28644         * lib/unistr/u32-strncat.c: New file.
28645         * lib/unistr/u-strncat.h: New file.
28646
28647         * modules/unistr/u8-strncmp: New file.
28648         * modules/unistr/u16-strncmp: New file.
28649         * modules/unistr/u32-strncmp: New file.
28650         * lib/unistr/u8-strncmp.c: New file.
28651         * lib/unistr/u16-strncmp.c: New file.
28652         * lib/unistr/u32-strncmp.c: New file.
28653
28654         * modules/unistr/u8-strncpy: New file.
28655         * modules/unistr/u16-strncpy: New file.
28656         * modules/unistr/u32-strncpy: New file.
28657         * lib/unistr/u8-strncpy.c: New file.
28658         * lib/unistr/u16-strncpy.c: New file.
28659         * lib/unistr/u32-strncpy.c: New file.
28660         * lib/unistr/u-strncpy.h: New file.
28661
28662         * modules/unistr/u8-strnlen: New file.
28663         * modules/unistr/u16-strnlen: New file.
28664         * modules/unistr/u32-strnlen: New file.
28665         * lib/unistr/u8-strnlen.c: New file.
28666         * lib/unistr/u16-strnlen.c: New file.
28667         * lib/unistr/u32-strnlen.c: New file.
28668         * lib/unistr/u-strnlen.h: New file.
28669
28670         * modules/unistr/u8-strpbrk: New file.
28671         * modules/unistr/u16-strpbrk: New file.
28672         * modules/unistr/u32-strpbrk: New file.
28673         * lib/unistr/u8-strpbrk.c: New file.
28674         * lib/unistr/u16-strpbrk.c: New file.
28675         * lib/unistr/u32-strpbrk.c: New file.
28676         * lib/unistr/u-strpbrk.h: New file.
28677
28678         * modules/unistr/u8-strrchr: New file.
28679         * modules/unistr/u16-strrchr: New file.
28680         * modules/unistr/u32-strrchr: New file.
28681         * lib/unistr/u8-strrchr.c: New file.
28682         * lib/unistr/u16-strrchr.c: New file.
28683         * lib/unistr/u32-strrchr.c: New file.
28684
28685         * modules/unistr/u8-strspn: New file.
28686         * modules/unistr/u16-strspn: New file.
28687         * modules/unistr/u32-strspn: New file.
28688         * lib/unistr/u8-strspn.c: New file.
28689         * lib/unistr/u16-strspn.c: New file.
28690         * lib/unistr/u32-strspn.c: New file.
28691         * lib/unistr/u-strspn.h: New file.
28692
28693         * modules/unistr/u8-strstr: New file.
28694         * modules/unistr/u16-strstr: New file.
28695         * modules/unistr/u32-strstr: New file.
28696         * lib/unistr/u8-strstr.c: New file.
28697         * lib/unistr/u16-strstr.c: New file.
28698         * lib/unistr/u32-strstr.c: New file.
28699         * lib/unistr/u-strstr.h: New file.
28700
28701         * modules/unistr/u8-strtok: New file.
28702         * modules/unistr/u16-strtok: New file.
28703         * modules/unistr/u32-strtok: New file.
28704         * lib/unistr/u8-strtok.c: New file.
28705         * lib/unistr/u16-strtok.c: New file.
28706         * lib/unistr/u32-strtok.c: New file.
28707         * lib/unistr/u-strtok.h: New file.
28708
28709         * modules/unistr/u8-uctomb: New file.
28710         * modules/unistr/u16-uctomb: New file.
28711         * modules/unistr/u32-uctomb: New file.
28712         * lib/unistr/u8-uctomb.c: New file.
28713         * lib/unistr/u16-uctomb.c: New file.
28714         * lib/unistr/u32-uctomb.c: New file.
28715
28716         * MODULES.html.sh (Unicode string functions): Add the new modules.
28717
28718 2007-01-08  Bruno Haible  <bruno@clisp.org>
28719
28720         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
28721         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
28722         subdirectories.
28723
28724 2007-01-08  Karl Berry  <karl@gnu.org>
28725
28726         * doc/error.texi: mention that main() fns must set program_name
28727         when progname is used.
28728
28729 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
28730
28731         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
28732         WCTYPE_H is empty, for the benefit of builds from non-distclean
28733         directories.  Problem reported by Eric Blake in
28734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
28735
28736 2007-01-08  Bruno Haible  <bruno@clisp.org>
28737
28738         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
28739         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
28740         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
28741         PROVIDE_CANONICALIZE_FILENAME_MODE.
28742         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
28743
28744 2007-01-08  Bruno Haible  <bruno@clisp.org>
28745
28746         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
28747         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
28748         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
28749         * lib/fts.c: Likewise.
28750         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
28751
28752 2006-12-25  Bruno Haible  <bruno@clisp.org>
28753
28754         * modules/utf8-ucs4-safe: New file.
28755         * lib/utf8-ucs4-safe.h: New file.
28756         * lib/unistr/utf8-ucs4-safe.c: New file.
28757
28758         * modules/utf16-ucs4-safe: New file.
28759         * lib/utf16-ucs4-safe.h: New file.
28760         * lib/unistr/utf16-ucs4-safe.c: New file.
28761
28762         * MODULES.html.sh (Unicode string functions): Add the new modules.
28763
28764 2007-01-08  Bruno Haible  <bruno@clisp.org>
28765
28766         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
28767         (Depends-on): Add unitypes.
28768         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28769         (u8_mbtouc_aux): Move out to separate file.
28770         (u8_mbtouc): Use ucs4_t, uint8_t types.
28771         * lib/unistr/utf8-ucs4.c: New file.
28772
28773         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
28774         (Depends-on): Add unitypes.
28775         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
28776         (u16_mbtouc_aux): Move out to separate file.
28777         (u16_mbtouc): Use ucs4_t, uint16_t types.
28778         * lib/unistr/utf16-ucs4.c: New file.
28779
28780         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
28781         (Depends-on): Add unitypes.
28782         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
28783         (u8_uctomb_aux): Move out to separate file.
28784         (u8_uctomb): Use ucs4_t, uint8_t types.
28785         * lib/unistr/ucs4-utf8.c: New file.
28786
28787         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
28788         (Depends-on): Add unitypes.
28789         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
28790         (u16_uctomb_aux): Move out to separate file.
28791         (u16_uctomb): Use ucs4_t, uint16_t types.
28792         * lib/unistr/ucs4-utf16.c: New file.
28793
28794 2006-12-25  Bruno Haible  <bruno@clisp.org>
28795
28796         * modules/unitypes: New file.
28797         * lib/unitypes.h: New file.
28798         * MODULES.html.sh (func_all_modules): New section "Unicode string
28799         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
28800         this section. Add unitypes.
28801
28802 2007-01-08  Bruno Haible  <bruno@clisp.org>
28803
28804         Avoid variable names that conflict with those from libtool.
28805         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
28806         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
28807         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
28808         library_names_spec to acl_library_names_spec, hardcode_* to
28809         acl_hardcode_*.
28810         Reported by Ralf Wildenhues.
28811
28812 2007-01-08  Bruno Haible  <bruno@clisp.org>
28813
28814         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
28815         definition.
28816         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
28817         definition.
28818         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
28819         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
28820         definition.
28821         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
28822         definition.
28823         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
28824         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
28825         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
28826         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
28827         definition.
28828         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
28829         definition.
28830         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
28831         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
28832         GC_USE_<algorithm>.
28833         * lib/gc-libgcrypt.c: Likewise.
28834         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
28835         * modules/gc-arctwo (configure.ac): Likewise.
28836         * modules/gc-des (configure.ac): Likewise.
28837         * modules/gc-hmac-md5 (configure.ac): Likewise.
28838         * modules/gc-hmac-sha1 (configure.ac): Likewise.
28839         * modules/gc-md2 (configure.ac): Likewise.
28840         * modules/gc-md4 (configure.ac): Likewise.
28841         * modules/gc-md5 (configure.ac): Likewise.
28842         * modules/gc-random (configure.ac): Likewise.
28843         * modules/gc-rijndael (configure.ac): Likewise.
28844         * modules/gc-sha1 (configure.ac): Likewise.
28845
28846 2007-01-08  Bruno Haible  <bruno@clisp.org>
28847
28848         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
28849         macro definition.
28850         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
28851         definition.
28852         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
28853         definition.
28854         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
28855         * modules/fcntl-safer (configure.ac): Likewise.
28856         * modules/fopen-safer (configure.ac): Likewise.
28857         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
28858         GNULIB_FWRITEERROR macro definition.
28859
28860 2007-01-08  Bruno Haible  <bruno@clisp.org>
28861
28862         * m4/gnulib-common.m4: New file.
28863         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
28864         (func_get_filelist): Add m4/gnulib-common.m4.
28865
28866 2007-01-08  Bruno Haible  <bruno@clisp.org>
28867
28868         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
28869         command.
28870
28871 2007-01-08  Jim Meyering  <jim@meyering.net>
28872
28873         Use a more robust test for a "can't happen" condition.
28874         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
28875         narrowed the st_size value.  Presuming the "can't happen" condition
28876         is true, that narrowing could conceivably convert an invalid st_size
28877         value into a valid one.  Instead, use a change based on Matthew
28878         Woehlke's original patch.
28879
28880         Slight readability improvement: use an assert-like macro
28881         in place of literal "abort ()" uses.
28882         * lib/fts.c (fts_assert): Define.
28883         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
28884         Use this macro instead of a bare 'abort'.
28885
28886 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28887
28888         Don't worry about using IRIX 5.3's wctype.h broken definitions;
28889         simply work around them.
28890         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
28891         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
28892         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
28893         declaring.
28894         Don't bother to define as macros, since the standard doesn't require it.
28895         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
28896         longer worry about IRIX 5.3.
28897         (HAVE_WCTYPE_CTMP_BUG): Remove.
28898
28899 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28900
28901         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
28902         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
28903         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28904         Problems reported by Georg Schwarz for IRIX 5.3.
28905
28906         * gnulib-tool (autoconf_minversion): Take the maximum version number
28907         found, not the minimum.  Problem reported by James Youngman.
28908
28909 2007-01-03  Karl Berry  <karl@gnu.org>
28910
28911         * doc/error.texi: new file, explaining interaction with progname.
28912         * doc/gnulib.texi: include it.  Update copyright.
28913
28914 2007-01-03  Simon Josefsson  <simon@josefsson.org>
28915
28916         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
28917         AC_CANONICAL_HOST, to improve autobuild outputs.
28918
28919 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
28920             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28921
28922         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
28923         sockets, server sockets, and other file descriptors.  Count errors
28924         to compute the return value.  Reorder the code a bit to be easier
28925         to follow.  Don't set event bits that were not requested (except
28926         POLLERR and POLLHUP).
28927
28928 2007-01-01  Bruno Haible  <bruno@clisp.org>
28929
28930         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
28931
28932 2007-01-03  Jim Meyering  <jim@meyering.net>
28933
28934         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
28935
28936 2007-01-02  Bruno Haible  <bruno@clisp.org>
28937
28938         * modules/settime (Include): Require timespec.h.
28939         * modules/nanosleep (Include): Likewise.
28940
28941 2007-01-01  Bruno Haible  <bruno@clisp.org>
28942
28943         * gnulib-tool (func_emit_copyright_notice): Bump year.
28944         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
28945
28946 2007-01-01  Bruno Haible  <bruno@clisp.org>
28947
28948         Improve support for OpenBSD.
28949         * build-aux/config.rpath (libname_spec): Export.
28950         (library_names_spec): New variable. Export.
28951         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
28952         library_names_spec from the config.rpath output. Locate shared library
28953         through the name pattern in library_names_spec.
28954
28955 2007-01-01  Eric Blake  <ebb9@byu.net>
28956
28957         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
28958
28959 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
28960
28961         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
28962         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
28963         assume the C locale, and avoid an "eval" that could cause trouble.
28964         Problem with SORT reported by Bob Proulx.
28965
28966         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
28967         Define.  Trivial patch from Henning Nielsen Lund, originally
28968         sent to bug-grep@gnu.org today.
28969
28970 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28971
28972         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
28973         struct stat.  Problem reported by Henning Nielsen Lund.
28974         * lib/acl.c: Include acl.h first, to check interface.  Don't
28975         bother to include sys/types.h and sys/stat.h again.
28976
28977 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28978
28979         Import the following change from libc; problem reported by
28980         Sven Verdoolaege.
28981
28982         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
28983
28984         [BZ #1373]
28985         * lib/argp.h: Remove __NTH for __argp_usage inline function.
28986
28987 2006-12-28  Jim Meyering  <jim@meyering.net>
28988
28989         * build-aux/announce-gen: Do not assume that the package
28990         builds any of tar.gz, tar.bz2, and .xdelta files.
28991         Suggestion from Simon Josefsson.
28992
28993 2006-12-28  Simon Josefsson  <simon@josefsson.org>
28994
28995         * modules/announce-gen: New file.
28996
28997 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28998
28999         * lib/mbchar.h: Just include <wctype.h>; the wctype module
29000         handles its gotchas now.
29001         * lib/mbswidth.c: Likewise.
29002         * lib/wcwidth.h: Likewise.
29003         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
29004         and iswcntrl; the wctype module does this stuff now.
29005         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29007         * modules/mbchar (Depends-on): Add wctype.
29008         * modules/mbswidth (Depends-on): Likewise.
29009         * modules/wcwidth (Depends-on): Likewise.
29010
29011 2006-12-27  Eric Blake  <ebb9@byu.net>
29012
29013         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
29014         module uses more than what <wctype.h> is required to provide.
29015
29016 2006-12-26  Eric Blake  <ebb9@byu.net>
29017
29018         * gnulib-tool (sed_extract_prog): Avoid space-tab.
29019
29020 2006-12-26  Eric Blake  <ebb9@byu.net>
29021
29022         * modules/absolute-header: New module.
29023         * modules/fcntl (Depends-on): Depend on it.
29024         * modules/inttypes (Depends-on): Likewise.
29025         * modules/stdint (Depends-on): Likewise.
29026         * modules/sys_stat (Depends-on): Likewise.
29027         * modules/wctype (Depends-on): Likewise.
29028         * MODULES.html.sh (Support for building libraries and
29029         executables): Document it.
29030
29031 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
29032
29033         * gnulib-tool (SED): Remove, undoing previous change.
29034         The problem was that it broke coreutils on Solaris, because
29035         "sed --posix" leaked into a makefile.
29036         (sed): New alias, if 'alias' and GNU sed.
29037
29038 2006-12-24  Jim Meyering  <jim@meyering.net>
29039
29040         Work around an fchownat bug in glibc-2.4:
29041         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
29042         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
29043         in spite of the -P option.
29044         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
29045         New macros.
29046         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
29047         * modules/openat (Files): Add lib/fchownat.c.
29048         * lib/openat.c (fchownat): Don't define here.  Move to...
29049         * lib/fchownat.c: ...this new file.
29050
29051 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29052
29053         Fix bug reported by Bruno Haible in
29054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
29055         where quotearg.c didn't compile on Mac OS X 10.2 because it
29056         lacks <wchar.h> and wint_t.
29057         * lib/wctype_.h (__wctype_wint_t): New type.
29058         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
29059         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
29060         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
29061         Arg is now of type __wctype_wint_t, not wint_t.
29062         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
29063         substitute HAVE_WINT_T.
29064         * modules/wctype (Files): Add m4/wint_t.m4.
29065         (wctype.h): Substitute HAVE_WINT_T.
29066
29067 2006-12-23  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
29070
29071 2006-12-23  Bruno Haible  <bruno@clisp.org>
29072
29073         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
29074         S_ISLNK.
29075         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
29076         mingw.
29077
29078 2006-12-22  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/copy-file.c: Include acl.h.
29081         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
29082         Close the file descriptors only after being done with copy_acl.
29083         * modules/copy-file (Depends-on): Add acl.
29084
29085 2006-12-22  Bruno Haible  <bruno@clisp.org>
29086
29087         * gnulib-tool (SED): New variable.
29088         Use $SED instead of sed everywhere.
29089
29090 2006-12-22  Bruno Haible  <bruno@clisp.org>
29091
29092         * modules/no-c++: New file.
29093         * m4/no-c++.m4: New file.
29094         * MODULES.html.sh (Support for building libraries and executables):
29095         Add no-c++.
29096
29097 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
29098
29099         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29100         Include <limits.h>, and use its INT_MAX to rewrite the
29101         j loop so that it does not overflow 'int'.  Problem reported by
29102         Ralf Wildenhues in
29103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
29104         Play it safe by shifting left by 1 rather than multiplying by 2,
29105         as GCC is less likely to optimize this away when the value
29106         is signed (when it assumes overflow leads to undefined behavior).
29107         Also, don't assume time_t uses two's complement.
29108
29109 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
29110
29111         * MODULES.html.sh: New module wctype.
29112         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
29113         * lib/fnmatch.c: Don't bother to include <wchar.h> before
29114         <wctype.h>, since the new wctype module should fix this.
29115         * lib/quotearg.c: Include <wctype.h> unconditionally, since
29116         the wctype module should arrange for it.
29117         * lib/regex_internal.h: Likewise.
29118         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
29119         since the wctype module should handle this now.
29120         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
29121         * modules/fnmatch (Depends-on): Add wctype.
29122         * modules/quotearg (Depends-on): Likewise.
29123         * modules/regex (Depends-on): Likewise.
29124
29125 2006-12-19  Bruno Haible  <bruno@clisp.org>
29126
29127         * lib/strdup.h [C++]: Wrap definitions in extern "C".
29128         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
29129
29130 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29131
29132         * modules/savewd (Depends-on): Fix dependency on fcntl.
29133
29134 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29135
29136         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
29137         conforms to C99, rather than relying on the user's environment
29138         setting of STDINT_H.
29139
29140 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29141         and Eric Blake  <ebb9@byu.net>
29142
29143         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
29144         This is more consistent with the other defines here.
29145         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
29146         Port to z/OS.  Problem reported by Paul Gilmartin.
29147         Change local vars to use gl_ prefix rather than ac_.
29148         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
29149         with other defines.
29150         * modules/double-slash-root: New module.
29151         * modules/dirname (Files): Remove m4/double-slash-root.m4.
29152         (Depends-on): Add double-slash-root.
29153         * MODULES.html.sh (File system functions): Mention new module.
29154
29155 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
29156
29157         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
29158         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
29159         This is for the benefit of gzip, which doesn't do i18n.
29160
29161 2006-12-12  Jim Meyering  <jim@meyering.net>
29162
29163         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
29164         Reported by Andreas Schwab <schwab@suse.de>.
29165
29166 2006-12-12  Bruno Haible  <bruno@clisp.org>
29167
29168         Merge these changes.
29169         2006-09-05  Bruno Haible  <bruno@clisp.org>
29170         * lib/iconvme.c (iconv_string): No need to save and restore errno when
29171         iconv_alloc succeeded.
29172         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
29173         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
29174         test for " && dest " at the end - dest is always != NULL there. Call
29175         iconv with 4xNULL arguments initially, to reset the state. Call iconv
29176         with 2xNULL arguments, also to flush the state storage. Handle the
29177         IRIX iconv behaviour. Realloc the final result, to throw away unused
29178         memory.
29179
29180 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
29181
29182         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
29183         and fchmodat unconditionally, since glibc 2.4 has them.
29184         Problem reported by Arkadiusz Miskiewicz.
29185
29186 2006-12-10  Bruno Haible  <bruno@clisp.org>
29187
29188         * gnulib-tool (func_import): Show the include files only for those
29189         modules that are copied and specified.
29190         Reported by Karl Berry.
29191
29192 2006-12-08  Jim Meyering  <jim@meyering.net>
29193
29194         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
29195         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
29196
29197         * build-aux/announce-gen: Add two new options, both optional:
29198         --bootstrap-tools=TOOL_LIST
29199               a comma-separated list of tools, e.g.,
29200               autoconf,automake,bison,gnulib
29201         --gnulib-snapshot-date=DATE
29202               if gnulib is in the bootstrap tool list,
29203               then report this as the snapshot date.
29204               If not specified, use the current date/time.
29205               If you specify a date here, be sure it's UTC.
29206
29207 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29208
29209         * tests/test-argp-2.sh: Fix test to match actual output.
29210         (func_compare): Fix sed script to be portable.
29211
29212 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29213
29214         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
29215         workaround for this case.  It is not autoconfigured now; offhand
29216         it's hard to see how to autoconfigure it.
29217
29218 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29219
29220         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
29221         a directory that is about to be chowned.  Such a directory's
29222         initial file permissions should permit the owner only and this
29223         should not be changed until after the chown, since the group and
29224         other bits would be incorrect if they granted permission before
29225         the chown.
29226
29227         Fix porting problem for iswctype reported by Georg Schwarz in:
29228         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
29229         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
29230         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
29231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
29232         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29233
29234 2006-12-03  Jim Meyering  <jim@meyering.net>
29235
29236         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
29237         p->fts_statp may not yet be defined.
29238         (fts_read): Instead, set it in the caller, once p->fts_statp is
29239         sure to be defined, and corresponds to a top-level directory.
29240         This bug made du -x fail.  Here's the coreutils test case:
29241         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
29242         Reported by Mike Frysinger.
29243
29244 2006-12-01  Jim Meyering  <jim@meyering.net>
29245
29246         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
29247         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
29248         Reported by Simon Josefsson.
29249
29250 2006-11-30  Jim Meyering  <jim@meyering.net>
29251
29252         * m4/warning.m4: Use the all-permissive copyright notice
29253         recommended by RMS (rather than LGPL).
29254         * m4/vararrays.m4: Likewise.
29255         * m4/flexmember.m4: Likewise.
29256
29257 2006-11-29  Bruno Haible  <bruno@clisp.org>
29258
29259         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29260         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
29261         using +=.
29262         Reported by Simon Josefsson <simon@josefsson.org>.
29263
29264 2006-11-28  James Youngman <jay@gnu.org>
29265
29266         * README: Advise users that they might find the bug-gnulib@gnu.org
29267         and autotools-announce@gnu.org mailing lists useful.
29268
29269 2006-11-28  Bruno Haible  <bruno@clisp.org>
29270
29271         * m4/ptrdiff_max.m4: Remove file.
29272
29273 2006-11-21  Bruno Haible  <bruno@clisp.org>
29274
29275         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
29276         _AC_COMPUTE_INT.
29277         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29278         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
29279         _AC_COMPUTE_INT.
29280         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29281         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
29282         _AC_COMPUTE_INT.
29283         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29284
29285 2006-11-28  Jim Meyering  <jim@meyering.net>
29286
29287         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
29288         warning from "gcc -Wshadow" about shadowing the builtin.
29289
29290 2006-11-27  Bruno Haible  <bruno@clisp.org>
29291
29292         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
29293         _AC_COMPUTE_INT.
29294         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29295
29296 2006-11-27  Bruno Haible  <bruno@clisp.org>
29297             Paul Eggert  <eggert@cs.ucla.edu>
29298
29299         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
29300
29301 2006-11-26  Bruno Haible  <bruno@clisp.org>
29302
29303         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29304         noinst_LTLIBRARIES.
29305
29306 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29307             Bruno Haible  <bruno@clisp.org>
29308
29309         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
29310         if compiling with "gcc -ansi".
29311
29312 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29313
29314         Fix some incompatibilities with gcc -ansi -pedantic.
29315         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
29316         if compiling pedantically with GCC, unless it's C99 or later.
29317         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
29318         it mishandles gcc -ansi -pedantic as well.
29319         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
29320         if gcc -pedantic.
29321         * lib/regexec.c (check_node_accept_bytes): Don't use auto
29322         initializers for struct if -pedantic, unless it's C99 or later.
29323
29324 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
29325
29326         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
29327         Don't close an fd more than once. Identical atimes indicate
29328         success, not failure.
29329
29330 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
29331
29332         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
29333
29334 2006-11-23  Jim Meyering  <jim@meyering.net>
29335
29336         * build-aux/announce-gen: New file.  From coreutils.
29337
29338 2006-11-22  Jim Meyering  <jim@meyering.net>
29339
29340         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
29341         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
29342         (fts_read): Use a temporary to narrow the overused st_size member
29343         before using it in a switch statement.  Reported by Matthew Woehlke.
29344
29345         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
29346         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29347
29348 2006-11-20  Bruno Haible  <bruno@clisp.org>
29349
29350         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
29351         changequote instead of pairs of brackets.
29352         Reported by Andreas Schwab <schwab@suse.de>.
29353
29354 2006-11-21  Jim Meyering  <jim@meyering.net>
29355
29356         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
29357         so as to remain compatible with older compilers.
29358         Patch from Michael Deutschmann.
29359
29360 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29361
29362         * MODULES.html.sh (File system functions): Add openat.
29363
29364         * lib/openat.h (rpl_fstatat): New macro, if
29365         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
29366         (fstatat): Define to rpl_fstatat under the same conditions,
29367         unless COMPILING_FSTATAT.
29368         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
29369         seems to have the bug.
29370         * lib/fstatat.c: New file.
29371         * modules/openat (Files): Add it.
29372
29373 2006-11-20  Bruno Haible  <bruno@clisp.org>
29374
29375         * Makefile: New file.
29376
29377 2006-11-20  Jim Meyering  <jim@meyering.net>
29378
29379         The beginnings of syntax-related checks for gnulib.
29380         * lib/Makefile: New file.
29381         * lib/t-idcache: New script.  Ensure that the two halves of
29382         idcache.c stay in sync.
29383
29384         * lib/idcache.c: Adjust comments in user- and group- portions to
29385         be more accurate, and to be consistent with one another.
29386
29387 2006-11-20  Jim Meyering  <jim@meyering.net>
29388
29389         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
29390         continue using the flexible array member (thus, this module performs
29391         half as many malloc calls), with the addition that...
29392         (getgroup, getuser): Consistently record a non-match via an empty
29393         "name" string, and map an empty string match to a NULL return value.
29394         * modules/idcache (Depends-on): Re-add flexmember.
29395
29396         * lib/idcache.c (getuser): Remove all uses of the register keyword.
29397         (getuidbyname, getgroup, getgidbyname): Likewise.
29398
29399         Use cleaner syntax: NULL rather than 0.
29400         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
29401
29402 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29403
29404         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
29405         It mishandled the case where the group was missing.
29406         Problem reported by Greg Schafer.
29407         * modules/idcache: Likewise.
29408
29409 2006-11-18  Jim Meyering  <jim@meyering.net>
29410
29411         * check-module (%exempt_header): Add exception for some
29412         conditionally-included headers.
29413
29414         * modules/i-ring (Depends-on): Add verify.
29415         (License): Change to LGPL.
29416
29417 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29418
29419         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
29420         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
29421         and inttostr.h.  Use snprintf rather than uinttostr, so that
29422         LGPLed code doesn't depend on GPLed.
29423
29424 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29425
29426         * modules/inline (License): Change from GPL to LGPL.
29427
29428 2006-11-17  Jim Meyering  <jim@meyering.net>
29429
29430         * modules/d-type (License): Switch to LGPL.
29431
29432 2006-11-15  Bruno Haible  <bruno@clisp.org>
29433
29434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
29435
29436 2006-11-15  Eric Blake  <ebb9@byu.net>
29437
29438         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
29439         the module dependency.
29440
29441 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29442             Bruno Haible  <bruno@clisp.org>
29443
29444         * gnulib-tool (func_create_testdir): Add license consistency check.
29445
29446 2006-11-15  Eric Blake  <ebb9@byu.net>
29447
29448         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
29449         random "(cached)" in configure output.
29450
29451 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29452
29453         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
29454         test for conforming inttypes.h is both announced and cached.
29455
29456         * MODULES.html.sh (seen_modules, seen_files): New variables.
29457         (func_module): Rewrite to use a few less gnulib-tool and sed
29458         invocations.  Avoid a couple of quadratic algorithms for ...
29459         (missed_modules, missed_files): ... these, with ...
29460         (func_append, func_tmpdir): ... these new functions, from
29461         gnulib-tool.  Analogously, install traps for cleanup.
29462
29463         * tests/test-gc.c (main): Remove unused variables.
29464         * tests/test-read-file.c: Include stdlib.h, for 'free'.
29465
29466 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
29467
29468         * modules/inttostr (License): Change to LGPL.
29469
29470 2006-11-14  Eric Blake  <ebb9@byu.net>
29471
29472         * modules/tempname (License): Change to LGPL.
29473
29474 2006-11-14  Eric Blake  <ebb9@byu.net>
29475
29476         * doc/functions.texi (Function Portability): *printf functions on
29477         Cygwin now understand all POSIX size specifiers.
29478
29479 2006-11-14  Bruno Haible  <bruno@clisp.org>
29480
29481         * modules/c-ctype (License): Change to LGPL.
29482
29483 2006-11-12  Bruno Haible  <bruno@clisp.org>
29484
29485         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29486         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
29487         for GNOME libraries, for which the include files are installed in
29488         subdirectories of $prefix/include.
29489
29490 2006-11-12  Bruno Haible  <bruno@clisp.org>
29491
29492         * m4/lib-link.m4: Require at least autoconf-2.54.
29493         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
29494         name to underscores for the --with option.
29495
29496 2006-11-13  Bruno Haible  <bruno@clisp.org>
29497
29498         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
29499         the tests directory.
29500         Reported by Ralf Wildenhues.
29501
29502 2006-11-13  Bruno Haible  <bruno@clisp.org>
29503
29504         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
29505         (func_emit_initmacro_end): Undo the override here.
29506         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
29507         Works around the famous automake error in coreutils.
29508
29509 2006-11-13  Eric Blake  <ebb9@byu.net>
29510
29511         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
29512         element, not its node.
29513
29514 2006-11-12  Bruno Haible  <bruno@clisp.org>
29515
29516         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
29517         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
29518
29519 2006-11-12  Bruno Haible  <bruno@clisp.org>
29520
29521         * gnulib-tool: New option --local-symlink.
29522         (func_usage): Document it.
29523         (lsymbolic): New variable.
29524         (func_import, func_create_testdir): If --symlink was not specified,
29525         test whether --local-symlink was specified and the file comes from
29526         the local_gnulib_dir.
29527
29528 2006-11-12  Bruno Haible  <bruno@clisp.org>
29529
29530         * gnulib-tool (func_ln): New function.
29531         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
29532
29533 2006-11-12  Bruno Haible  <bruno@clisp.org>
29534
29535         Finish support for source files in subdirectories.
29536         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
29537         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
29538         AUTOMAKE_OPTIONS.
29539         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
29540
29541 2006-11-12  Bruno Haible  <bruno@clisp.org>
29542
29543         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29544         EXTRA_lib_SOURCES augmentation.
29545         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
29546
29547 2006-11-12  Jim Meyering  <jim@meyering.net>
29548
29549         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
29550         file descriptors.  This also averts a failure on systems with
29551         native openat support when a traversed directory lacks "x" access.
29552         * lib/fts_.h: Include "i-ring.h"
29553         (struct FTS) [fts_fd_ring]: New member.
29554         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
29555         (FCHDIR): Add parentheses.
29556         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
29557         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
29558         When descending, rather than simply closing the previous
29559         fts_cwd_fd value, push that file descriptor onto the ring.
29560         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
29561         (fts_open): Initialize the new fd_ring member.
29562         (fts_close): Clear the ring.
29563         (fts_safe_changedir): When possible, use our new fd_ring to skip
29564         the diropen and fstat and dev/ino comparison that would normally
29565         accompany a virtual `chdir ("..")'.
29566
29567         * modules/fts (Depends-on): Add i-ring.
29568         * modules/i-ring: New module.
29569         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
29570         * m4/i-ring.m4: New file.
29571
29572 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29573
29574         * gnulib-tool (func_create_testdir): Fix replacement of
29575         `build-aux' in configure.ac.  Run autotools in gltests
29576         subdirectory.
29577         (func_create_testdir, func_create_megatestdir, test): There is
29578         no need for '--force' in most autotool invocations in a new
29579         tree.  Actually fail the whole test if any of the tools, or the
29580         configure or make stages fail.
29581
29582         Sync from Automake.
29583         * build-aux/gnupload: Revert last change.  Add pointer to upload
29584         instructions of the GNU Maintenance Instructions.
29585         Suggestion by Karl Berry.
29586
29587 2006-11-10  Jim Meyering  <jim@meyering.net>
29588
29589         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
29590
29591 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29592
29593         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
29594         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
29595         (bind_textdomain_codeset) [! ENABLE_NLS]:
29596         Evaluate all the arguments.  That way, callers get compatible behavior
29597         if the arguments have side effects.  Also, it avoids some GCC
29598         diagnostics in some cases; Joel E. Denny reported problems when Bison
29599         was configured with --enable-gcc-warnigs.
29600
29601 2006-11-10  Jim Meyering  <jim@meyering.net>
29602
29603         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
29604         relevant options in CFLAGS (like -O, -fno-inline) are taken into
29605         account.
29606
29607 2006-11-10  Jim Meyering  <jim@meyering.net>
29608
29609         * modules/inline: New file/module.
29610         * modules/xalloc (Files): Remove m4/inline.m4.
29611         (Depends-on): Add inline, instead.
29612         * modules/oset: Likewise.
29613         * modules/list: Likewise.
29614
29615 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29616
29617         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
29618         Problem reported by Matthew Woehlke.
29619
29620 2006-11-09  Bruno Haible  <bruno@clisp.org>
29621
29622         * lib/tempname.c (gen_tempname): Remove variant that invokes
29623         __gen_tempname.
29624         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
29625         __gen_tempname.
29626
29627 2006-11-08  Bruno Haible  <bruno@clisp.org>
29628
29629         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
29630         to 'yes' instead of 'cross-compiling'.
29631
29632 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
29633
29634         * lib/quotearg.h (quotearg_free): New decl.
29635         * lib/quotearg.c (quotearg_free): New function.
29636         (slot0, nslots, slotvec0, slotvec):
29637         Now file-scope so that quotearg_free can get at them.
29638
29639 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29640
29641         Sync from Automake.
29642         * build-aux/gnupload: Add missing 'gnu' to example URL.
29643         Report by Karl Berry.
29644
29645 2006-11-08  Bruno Haible  <bruno@clisp.org>
29646
29647         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
29648         Suggested by Paul Eggert.
29649
29650 2006-11-08  Jim Meyering  <jim@meyering.net>
29651
29652         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
29653         It's already included if !_LIBC.
29654         (fts_safe_changedir): Add a comment.
29655
29656 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29657
29658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
29659         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
29660         Matthew Woehlke.
29661
29662         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
29663         definitions up, to avoid colliding with change below.
29664         (static_inline) [HAVE_INLINE]: New macro.
29665         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
29666         Provide extern decls when !HAVE_INLINE.  Do not define unless
29667         static_inline is defined, either by us or by xmalloc.c.  Use
29668         static_inline rather than static inline.
29669         (XCALLOC): Optimize sizeof(T) = 1 case.
29670         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
29671
29672 2006-11-07  Bruno Haible  <bruno@clisp.org>
29673
29674         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
29675         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
29676         AC_C_INLINE.
29677         * modules/xalloc (Files): Add m4/inline.m4.
29678
29679 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29680
29681         * README: Fix typo.
29682         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
29683         (Miscellanous Notes): ...from this.
29684
29685 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29686
29687         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
29688         Mention that offsetof should be used instead of sizeof.
29689         From Bruno Haible.
29690
29691 2006-11-07  Bruno Haible  <bruno@clisp.org>
29692
29693         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
29694
29695 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29696
29697         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29698         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
29699         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
29700         (gl_tree_add_before, gl_tree_add_after):
29701         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
29702         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
29703         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
29704         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
29705         (gl_linked_add_after, gl_linked_add_at): Likewise.
29706         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
29707         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
29708         (gl_tree_add_before, gl_tree_add_after): Likewise.
29709         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
29710         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
29711         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29712
29713 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29714
29715         * lib/gl_oset.h: Use C comment style, not C++ comment style.
29716
29717 2006-11-06  Bruno Haible  <bruno@clisp.org>
29718
29719         * m4/inline.m4: New file.
29720         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
29721         * modules/list (Files): Add m4/inline.m4.
29722         * modules/oset (Files): Likewise.
29723
29724 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29725
29726         * lib/idcache.c: Include <stddef.h>, for offsetof.
29727         (struct userid.name): Change from char * to a flexible array member.
29728         All uses changed.
29729         * modules/idcache (Depends-on): Add flexmember.
29730
29731         * MODULES.html.sh (Core language properties): New module flexmember.
29732         * modules/flexmember, m4/flexmember.m4: New files.
29733
29734         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
29735         inline functions that are identical with the old xnmalloc_inline,
29736         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
29737         that we can avoid some unnecessary integer multiplications and
29738         divisions in the common case where the element size is known at
29739         compile time.
29740         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
29741         needed.
29742         (xnboundedmalloc): Remove.
29743         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
29744         arguments, for consistency with rest of this header.
29745         (xcharalloc): Rewrite using XNMALLOC.
29746         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
29747         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
29748         versions have been moved to lib/xalloc.h and renamed to be the
29749         non-*_inline versions.
29750         (xmalloc, xrealloc): Implement without reference to the xnmalloc
29751         and xnrealloc functions, since those functions are now inline and
29752         now call us.
29753         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
29754         renaming described above.
29755         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
29756         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
29757         captures the dependency in AC_C_INLINE.
29758
29759         New module canonicalize-lgpl, proposed by Charles Wilson in
29760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
29761         with a few small changes afterwards.
29762         * MODULES.html.sh (File system functions): New module
29763         canonicalize-lgpl.
29764         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
29765         and canonicalize_file_name.
29766         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
29767         * modules/canonicalize-lgpl: New files.
29768
29769 2006-11-05  Bruno Haible  <bruno@clisp.org>
29770
29771         * gnulib-tool (func_import, func_create_testdir): Create directories
29772         also for files in subdirectories of lib/.
29773
29774 2006-11-05  Bruno Haible  <bruno@clisp.org>
29775
29776         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
29777         ANSI C compliant.
29778
29779 2006-11-03  Bruno Haible  <bruno@clisp.org>
29780
29781         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
29782         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
29783         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
29784         (xnboundedmalloc): New inline function.
29785         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
29786         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
29787         xmalloc.
29788         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
29789         xmalloc.
29790         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
29791         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
29792         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
29793         xmalloc.
29794         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29795         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
29796         xmalloc.
29797         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
29798         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29799         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
29800         xmalloc.
29801         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
29802         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
29803         gl_tree_add_after): Use XMALLOC instead of xmalloc.
29804         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
29805         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
29806         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
29807         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
29808
29809 2006-11-03  Bruno Haible  <bruno@clisp.org>
29810
29811         * lib/c-ctype.h [C++]: Define functions without name mangling.
29812         * lib/fwriteerror.h [C++]: Likewise.
29813         * lib/gcd.h [C++]: Likewise.
29814         * lib/linebreak.h [C++]: Likewise.
29815
29816 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
29817
29818         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
29819         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
29820         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
29821         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29822         Check for functions and headers just once.
29823         Check for declaration of canonicalize_file_name.
29824         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
29825
29826 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
29827
29828         * gnulib-tool (func_import): Fix typo in actioncmd.
29829
29830 2006-11-02  Bruno Haible  <bruno@clisp.org>
29831
29832         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
29833         newline sequence in the Makefile.am snippet as a space, like "make"
29834         does.
29835         Reported by Roger Persson <perrog@gmail.com>.
29836
29837 2006-11-01  Bruno Haible  <bruno@clisp.org>
29838
29839         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
29840         already declared in <string.h>.
29841         * lib/strcase.h (strncasecmp): Don't declare it if yes.
29842
29843 2006-11-01  Bruno Haible  <bruno@clisp.org>
29844
29845         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
29846         * lib/strcase.h: Include <string.h>.
29847         (strcasecmp): Define to rpl_strcasecmp here.
29848
29849 2006-11-01  Bruno Haible  <bruno@clisp.org>
29850
29851         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
29852
29853 2006-11-01  Eric Blake  <ebb9@byu.net>
29854
29855         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
29856
29857         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
29858
29859 2006-10-29  Bruno Haible  <bruno@clisp.org>
29860
29861         Make it compile in C++ mode.
29862         * lib/full-write.c (full_rw): Add a cast.
29863
29864 2006-11-01  Bruno Haible  <bruno@clisp.org>
29865
29866         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
29867         be POSIX compliant.
29868         Reported by Roger Persson <perrog@gmail.com>.
29869
29870 2006-11-01  Eric Blake  <ebb9@byu.net>
29871
29872         * lib/getopt_.h: Fix comments.
29873
29874 2006-10-31  Eric Blake  <ebb9@byu.net>
29875
29876         * modules/tmpdir (Depends-on): Add sys_stat.
29877         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
29878         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
29879         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
29880         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
29881         tempname.
29882
29883 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
29884
29885         Avoid some C++ diagnostics reported by Bruno Haible.
29886         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
29887         xmalloc.
29888         (quotearg_alloc): Use xcharalloc rather than xmalloc.
29889         (struct slotvec): Move to top level.
29890         (quotearg_n_options): Rewrite to avoid xmalloc.
29891         * lib/xalloc.h (xcharalloc): New function.
29892         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
29893         [defined __cplusplus]: Add function template that provides result
29894         type propagation.  This part of the change is from Bruno Haible.
29895
29896 2006-10-29  Bruno Haible  <bruno@clisp.org>
29897
29898         Make it compile in C++ mode.
29899         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
29900         * lib/strnlen1.c (strnlen1): Cast memchr result.
29901         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
29902         * lib/clean-temp.c (string_equals, string_hash): Add casts.
29903         (create_temp_dir): Rename local variable 'template'.
29904         (compile_csharp_using_sscli): Add cast.
29905         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
29906         * lib/findprog.c (find_in_path): Likewise.
29907         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
29908         * lib/wait-process.c (register_slave_subprocess): Likewise.
29909
29910 2006-10-22  Bruno Haible  <bruno@clisp.org>
29911
29912         * modules/tsearch: New file.
29913         * lib/tsearch.h: New file.
29914         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
29915         * m4/tsearch.m4: New file.
29916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
29917
29918 2006-10-29  Eric Blake  <ebb9@byu.net>
29919
29920         * lib/arcfour.c: Assume config.h.
29921         * lib/arctwo.c: Likewise.
29922         * lib/base64.c: Likewise.
29923         * lib/check-version.c: Likewise.
29924         * lib/crc.c: Likewise.
29925         * lib/des.c: Likewise.
29926         * lib/gc-gnulib.c: Likewise.
29927         * lib/gc-libgcrypt.c: Likewise.
29928         * lib/gc-pbkdf2-sha1.c: Likewise.
29929         * lib/getaddrinfo.c: Likewise.
29930         * lib/getdelim.c: Likewise.
29931         * lib/getline.c: Likewise.
29932         * lib/hmac-md5.c: Likewise.
29933         * lib/hmac-sha1.c: Likewise.
29934         * lib/iconvme.c: Likewise.
29935         * lib/md2.c: Likewise.
29936         * lib/md4.c: Likewise.
29937         * lib/memxor.c: Likewise.
29938         * lib/read-file.c: Likewise.
29939         * lib/readline.c: Likewise.
29940         * lib/rijndael-alg-fst.c: Likewise.
29941         * lib/rijndael-api-fst.c: Likewise.
29942         * lib/xgetdomainname.c: Likewise.
29943
29944 2006-10-28  Eric Blake  <ebb9@byu.net>
29945
29946         * lib/xstrndup.c: Assume config.h.
29947
29948 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
29951         stat-macros.h is now for our own macros, whereas stat_h is for
29952         macros in the <sys/stat.h> name space.
29953         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
29954         (STAT_MACROS_H): Remove.
29955         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
29956         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
29957         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
29958         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
29959         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
29960         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
29961         Move these macros to ...
29962         * lib/stat_.h: here.  Don't include stat-macros.h.
29963         * lib/canonicalize.c: Don't include stat-macros.h.
29964         * lib/chown.c: Likewise.
29965         * lib/euidaccess.c: Likewise.
29966         * lib/file-type.c: Likewise.
29967         * lib/filemode.c: Likewise.
29968         * lib/glob.c: Likewise.
29969         * lib/isapipe.c: Likewise.
29970         * lib/lchown.c: Likewise.
29971         * lib/lstat.c: Likewise.
29972         * lib/mkdir-p.c: Likewise.
29973         * lib/rmdir.c: Likewise.
29974         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
29975         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
29976         unless mkdir isn't declared, to speed up 'configure'.
29977         Always create sys/stat.h, since it's unlikely any real sys/stat.h
29978         would define all the S_* symbols.
29979         * modules/canonicalize (Depends-on):
29980         Depend on sys_stat, not stat-macros.
29981         * modules/chown: Likewise.
29982         * modules/euidaccess: Likewise.
29983         * modules/filemode: Likewise.
29984         * modules/file-type: Likewise.
29985         * modules/glob: Likewise.
29986         * modules/isapipe: Likewise.
29987         * modules/lchown: Likewise.
29988         * modules/lstat: Likewise.
29989         * modules/mkancesdirs: Likewise.
29990         * modules/rmdir: Likewise.
29991         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
29992         * modules/modechange: Likewise.
29993         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
29994         (configure.ac): Remove gl_STAT_MACROS.
29995         * modules/sys_stat (Depends-on): Remove stat-macros.
29996
29997 2006-10-27  Bruno Haible  <bruno@clisp.org>
29998
29999         * m4/signed.m4: Remove file.
30000         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
30001         invocation.
30002         * modules/vasnprintf (Files): Remove m4/signed.m4.
30003
30004 2006-10-27  Bruno Haible  <bruno@clisp.org>
30005
30006         Update to GNU gettext 0.16.
30007         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
30008         m4/inttypes-h.m4, m4/signed.m4.
30009         * m4/gettext.m4: Update to GNU gettext 0.16.
30010         * m4/intl.m4: New file, from GNU gettext.
30011         * m4/intldir.m4: New file, from GNU gettext.
30012         * config/srclist.txt: Update
30013
30014 2006-10-27  Eric Blake  <ebb9@byu.net>
30015
30016         * MODULES.html.sh: Document tempname.
30017         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
30018         dependencies.
30019         (Files): Move lib/tempname.c...
30020         * modules/tempname: ...to this new module.
30021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
30022         (gl_PREREQ_TEMPNAME): Move...
30023         * m4/tempname.m4: ...to this new file.
30024         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
30025         * modules/sys_stat (Depends-on): Add stat-macros.
30026         * lib/stat_.h (includes): Pick up stat macros.
30027         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
30028         if stat macros are broken.
30029         * lib/tempname.c (includes): No need to include "stat-macros.h".
30030         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
30031         (direxists, __path_search) [!_LIBC]: Don't compile these in
30032         gnulib; the tmpdir module covers that.
30033         * lib/tempname.h: New file.
30034
30035 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30036
30037         * COPYING: Explain how gnulib-tool converts licence headers.
30038         Almost all wording by Eric Blake.
30039
30040 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
30041
30042         * lib/mbchar.h (is_basic_table): Make read-only.
30043         * lib/mbchar.c (is_basic_table): Likewise.
30044         Reported by John Darrington.
30045
30046 2006-10-25  Bruno Haible  <bruno@clisp.org>
30047
30048         * lib/progname.h (set_program_name): Undefine before defining.
30049
30050 2006-10-25  Bruno Haible  <bruno@clisp.org>
30051
30052         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
30053         false for non-gcc C++ compilers.
30054         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30055
30056 2006-10-24  Bruno Haible  <bruno@clisp.org>
30057
30058         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
30059         iconv implementations like Irix iconv.
30060
30061 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30062
30063         * modules/vararrays: New file.
30064         * m4/vararrays.m4: New file, taken from diffutils.
30065         * MODULES.html.sh: New module vararrays.
30066
30067 2006-10-24  Karl Berry  <karl@gnu.org>
30068
30069         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
30070         Don't call GNU Unix.
30071
30072 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30073
30074         * users.txt: Add Libtool.
30075
30076         Sync from Libtool:
30077
30078         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30079
30080         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
30081         to gnulib's policy of including config.h unconditionally.
30082
30083 2006-10-24  Bruno Haible  <bruno@clisp.org>
30084
30085         * modules/wcwidth (Files): Add m4/wint_t.m4.
30086         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
30087         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
30088
30089 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30090
30091         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
30092         to pacify GCC with some -W flags enabled.  Problem reported by
30093         Bruno Haible.
30094
30095 2006-10-24  Jim Meyering  <jim@meyering.net>
30096
30097         * MODULES.html.sh: Remove uinttostr.  It's not a module.
30098         Reported by Karl Berry.
30099
30100 2006-10-23  Bruno Haible  <bruno@clisp.org>
30101
30102         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
30103
30104 2006-10-24  Bruno Haible  <bruno@clisp.org>
30105
30106         * lib/gl_list.h: Use C comment style, not C++ comment style.
30107
30108 2006-10-23  Eric Blake  <ebb9@byu.net>
30109
30110         * lib/getaddrinfo.c (includes): Add missing include.
30111
30112 2006-10-23  Bruno Haible  <bruno@clisp.org>
30113             Paul Eggert  <eggert@cs.ucla.edu>
30114
30115         Ability to rename obstack_free.
30116         * lib/obstack.h (__obstack_free): New macro. Declare instead of
30117         obstack_free.
30118         (obstack_free): Invoke the __obstack_free macro.
30119         * lib/obstack.c (obstack_free): Use __obstack_free macro.
30120
30121 2006-10-23  Bruno Haible  <bruno@clisp.org>
30122             Paul Eggert  <eggert@cs.ucla.edu>
30123
30124         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
30125         __argc, __argv from the declaration. (They are defined as macros on
30126         mingw.)
30127
30128 2006-10-22  Bruno Haible  <bruno@clisp.org>
30129
30130         * doc/gnulib-intro.texi: New file.
30131         * doc/gnulib.texi: Include it.
30132
30133 2006-10-21  Bruno Haible  <bruno@clisp.org>
30134
30135         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
30136         "Introduction", "Miscellanous Notes", "Particular Modules".
30137
30138 2006-10-21  Bruno Haible  <bruno@clisp.org>
30139
30140         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30141         Change mostlyclean-local rule to avoid sh syntax error from bash
30142         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
30143
30144 2006-10-23  Jim Meyering  <jim@meyering.net>
30145
30146         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
30147         in place of snprintf.
30148
30149         * modules/inttostr (Files): Add lib/uinttostr.c.
30150         * lib/uinttostr.c (inttostr): New file/function.
30151         * lib/inttostr.h (uinttostr): Declare.
30152         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
30153         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
30154         Add uinttostr.
30155         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
30156
30157 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30158
30159         * lib/canonicalize.c (ELOOP): Define if not already defined.
30160         Problem reported by Bruno Haible in
30161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
30162
30163 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30164
30165         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
30166         Problem reported by Perry Smith and Ville Laurikari.
30167
30168         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
30169         uses.
30170
30171 2006-10-19  Bruno Haible  <bruno@clisp.org>
30172
30173         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
30174         for mingw.
30175
30176 2006-10-19  Bruno Haible  <bruno@clisp.org>
30177
30178         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
30179         Needed for mingw.
30180
30181 2006-10-19  Bruno Haible  <bruno@clisp.org>
30182
30183         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
30184
30185 2006-10-19  Bruno Haible  <bruno@clisp.org>
30186
30187         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
30188         it.
30189
30190 2006-10-19  Bruno Haible  <bruno@clisp.org>
30191
30192         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
30193         invocation.
30194
30195 2006-10-19  Bruno Haible  <bruno@clisp.org>
30196
30197         * gnulib-tool (func_create_testdir): Don't include ftruncate and
30198         mountlist by default.
30199
30200 2006-10-16  Bruno Haible  <bruno@clisp.org>
30201
30202         * lib/c-strstr.c: Include c-strstr.h.
30203
30204 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30205
30206         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
30207         in a slash.
30208
30209 2006-10-18  Bruno Haible  <bruno@clisp.org>
30210
30211         * lib/lock.h [C++]: Wrap definitions in extern "C".
30212
30213 2006-10-18  Bruno Haible  <bruno@clisp.org>
30214
30215         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
30216         gl_LIBOBJS list.
30217
30218 2006-10-18  Bruno Haible  <bruno@clisp.org>
30219
30220         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
30221
30222 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
30223
30224         * lib/xstrtol.h: Include gettext.h.
30225         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
30226         Problem reported by Eric Blake.
30227         * modules/xstrtol (Depends-on): Add gettext-h.
30228
30229 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
30230
30231         * lib/strftime.c (advance): New macro.
30232         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
30233         incomplete type, so you can't add 0 to it.  Problem and patch
30234         reported by Eelco Dolstra for dietlibc.
30235
30236 2006-10-18  Jim Meyering  <jim@meyering.net>
30237
30238         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
30239         type for a local, and rename it: s/up/user_proc/.
30240
30241 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
30242
30243         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
30244         READ_UTMP_USER_PROCESS.
30245         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
30246
30247 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30248
30249         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
30250         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
30251
30252 2006-10-17  Eric Blake  <ebb9@byu.net>
30253
30254         * lib/sigprocmask.c (sigprocmask): Fix typo.
30255
30256         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
30257
30258         * modules/clean-temp (Makefile.am): Don't add to make output...
30259         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
30260         config.h.
30261
30262 2006-10-17  Bruno Haible  <bruno@clisp.org>
30263
30264         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
30265         differently if DEFAULT_TEXT_DOMAIN is set.
30266
30267 2006-10-16  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/clean-temp.c: Include fwriteerror.h.
30270
30271 2006-10-16  Bruno Haible  <bruno@clisp.org>
30272
30273         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
30274
30275 2006-10-16  Bruno Haible  <bruno@clisp.org>
30276
30277         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
30278         * lib/sigprocmask.h: Include <sys/types.h>.
30279         (sigset_t): Use the system's definition if present.
30280
30281 2006-10-17  Eric Blake  <ebb9@byu.net>
30282
30283         * lib/xvasprintf.c (includes): Assume config.h.
30284         * lib/xasprintf.c (includes): Likewise.
30285
30286 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30287
30288         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
30289         at least as wide as intmax_t.
30290
30291 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
30292
30293         (Imported from Automake.)
30294         * build-aux/gnupload: Update to version 1.1 of directive file.
30295
30296 2006-10-16  Eric Blake  <ebb9@byu.net>
30297
30298         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
30299         match Automake 1.10a.
30300
30301 2006-10-14  Bruno Haible  <bruno@clisp.org>
30302
30303         * modules/sigprocmask: New file.
30304         * lib/sigprocmask.h: New file.
30305         * lib/sigprocmask.c: New file.
30306         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
30307         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
30308         request sigprocmask.o.
30309         (gl_PREREQ_SIGPROCMASK): New macro.
30310         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
30311         (Depends-on): Add sigprocmask.
30312         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
30313         gt_SIGNALBLOCKING. Test for 'raise' only once.
30314         * lib/fatal-signal.c: Include sigprocmask.h.
30315         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
30316         unblock_fatal_signals): Define always.
30317         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30318         sigprocmask.
30319
30320 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30321
30322         Sync from Automake.
30323         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
30324         which incorrectly sets the mode of an existing destination
30325         directory.  In some cases the unpatched install-sh could do the
30326         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
30327         system.  We hope this is rare in practice, but it's clearly worth
30328         fixing.  Problem reported by Alex Unleashed in
30329         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
30330         Also, don't bother to check for -m bugs unless we're using -m;
30331         suggested by Stepan Kasal.
30332
30333 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30334
30335         Sync from Automake.
30336         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
30337         `-c' flag, so they appear at the same position as in %FASTDEP%
30338         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
30339         which ignores unknown options only after the first non-option.
30340         Bug report against M4 by Nelson H. F. Beebe.
30341
30342 2006-10-13  Jim Meyering  <jim@meyering.net>
30343
30344         Fix a bug in yesterday's change.
30345         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
30346         p->fts_statp->st_dev would be used uninitialized.
30347         Ensures that we always call fts_stat on the very first entry.
30348         Miklos Szeredi reported that find -xdev stopped working.
30349
30350 2006-10-12  Bruno Haible  <bruno@clisp.org>
30351
30352         * gnulib-tool (func_get_automake_snippet): Append an automatically
30353         computed EXTRA_DIST augmentation.
30354         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
30355         * modules/alloca-opt (Makefile.am): Likewise.
30356         * modules/allocsa (Makefile.am): Likewise.
30357         * modules/arcfour (Makefile.am): Likewise.
30358         * modules/arctwo (Makefile.am): Likewise.
30359         * modules/argmatch (Makefile.am): Likewise.
30360         * modules/argz (Makefile.am): Likewise.
30361         * modules/atexit (Makefile.am): Likewise.
30362         * modules/backupfile (Makefile.am): Likewise.
30363         * modules/byteswap (Makefile.am): Likewise.
30364         * modules/c-strtod (Makefile.am): Likewise.
30365         * modules/c-strtold (Makefile.am): Likewise.
30366         * modules/calloc (Makefile.am): Likewise.
30367         * modules/canon-host (Makefile.am): Likewise.
30368         * modules/canonicalize (Makefile.am): Likewise.
30369         * modules/chdir-long (Makefile.am): Likewise.
30370         * modules/chdir-safer (Makefile.am): Likewise.
30371         * modules/check-version (Makefile.am): Likewise.
30372         * modules/chown (Makefile.am): Likewise.
30373         * modules/cloexec (Makefile.am): Likewise.
30374         * modules/close-stream (Makefile.am): Likewise.
30375         * modules/closeout (Makefile.am): Likewise.
30376         * modules/crc (Makefile.am): Likewise.
30377         * modules/csharpexec (Makefile.am): Likewise.
30378         * modules/cycle-check (Makefile.am): Likewise.
30379         * modules/des (Makefile.am): Likewise.
30380         * modules/dev-ino (Makefile.am): Likewise.
30381         * modules/dirfd (Makefile.am): Likewise.
30382         * modules/dirname (Makefile.am): Likewise.
30383         * modules/dup2 (Makefile.am): Likewise.
30384         * modules/eealloc (Makefile.am): Likewise.
30385         * modules/error (Makefile.am): Likewise.
30386         * modules/euidaccess (Makefile.am): Likewise.
30387         * modules/exclude (Makefile.am): Likewise.
30388         * modules/exitfail (Makefile.am): Likewise.
30389         * modules/fcntl-safer (Makefile.am): Likewise.
30390         * modules/fcntl (Makefile.am): Likewise.
30391         * modules/file-type (Makefile.am): Likewise.
30392         * modules/fileblocks (Makefile.am): Likewise.
30393         * modules/filemode (Makefile.am): Likewise.
30394         * modules/filenamecat (Makefile.am): Likewise.
30395         * modules/fnmatch (Makefile.am): Likewise.
30396         * modules/fopen-safer (Makefile.am): Likewise.
30397         * modules/fpending (Makefile.am): Likewise.
30398         * modules/fprintftime (Makefile.am): Likewise.
30399         * modules/free (Makefile.am): Likewise.
30400         * modules/fsusage (Makefile.am): Likewise.
30401         * modules/ftruncate (Makefile.am): Likewise.
30402         * modules/fts (Makefile.am): Likewise.
30403         * modules/gc-arcfour (Makefile.am): Likewise.
30404         * modules/gc-des (Makefile.am): Likewise.
30405         * modules/gc-hmac-md5 (Makefile.am): Likewise.
30406         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
30407         * modules/gc-md4 (Makefile.am): Likewise.
30408         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30409         * modules/gc-sha1 (Makefile.am): Likewise.
30410         * modules/gc (Makefile.am): Likewise.
30411         * modules/getaddrinfo (Makefile.am): Likewise.
30412         * modules/getcwd (Makefile.am): Likewise.
30413         * modules/getdelim (Makefile.am): Likewise.
30414         * modules/getdomainname (Makefile.am): Likewise.
30415         * modules/getgroups (Makefile.am): Likewise.
30416         * modules/gethostname (Makefile.am): Likewise.
30417         * modules/gethrxtime (Makefile.am): Likewise.
30418         * modules/getline (Makefile.am): Likewise.
30419         * modules/getloadavg (Makefile.am): Likewise.
30420         * modules/getlogin_r (Makefile.am): Likewise.
30421         * modules/getndelim2 (Makefile.am): Likewise.
30422         * modules/getopt (Makefile.am): Likewise.
30423         * modules/getpagesize (Makefile.am): Likewise.
30424         * modules/getpass-gnu (Makefile.am): Likewise.
30425         * modules/getpass (Makefile.am): Likewise.
30426         * modules/getsubopt (Makefile.am): Likewise.
30427         * modules/gettime (Makefile.am): Likewise.
30428         * modules/gettimeofday (Makefile.am): Likewise.
30429         * modules/getugroups (Makefile.am): Likewise.
30430         * modules/getusershell (Makefile.am): Likewise.
30431         * modules/glob (Makefile.am): Likewise.
30432         * modules/group-member (Makefile.am): Likewise.
30433         * modules/hard-locale (Makefile.am): Likewise.
30434         * modules/hash (Makefile.am): Likewise.
30435         * modules/hmac-md5 (Makefile.am): Likewise.
30436         * modules/hmac-sha1 (Makefile.am): Likewise.
30437         * modules/human (Makefile.am): Likewise.
30438         * modules/idcache (Makefile.am): Likewise.
30439         * modules/imaxabs (Makefile.am): Likewise.
30440         * modules/imaxdiv (Makefile.am): Likewise.
30441         * modules/inet_ntop (Makefile.am): Likewise.
30442         * modules/inet_pton (Makefile.am): Likewise.
30443         * modules/intprops (Makefile.am): Likewise.
30444         * modules/inttostr (Makefile.am): Likewise.
30445         * modules/inttypes (Makefile.am): Likewise.
30446         * modules/isapipe (Makefile.am): Likewise.
30447         * modules/javaversion (Makefile.am): Likewise.
30448         * modules/lchmod (Makefile.am): Likewise.
30449         * modules/lchown (Makefile.am): Likewise.
30450         * modules/localcharset (Makefile.am): Likewise.
30451         * modules/long-options (Makefile.am): Likewise.
30452         * modules/lstat (Makefile.am): Likewise.
30453         * modules/malloc (Makefile.am): Likewise.
30454         * modules/mathl (Makefile.am): Likewise.
30455         * modules/mbchar (Makefile.am): Likewise.
30456         * modules/md2 (Makefile.am): Likewise.
30457         * modules/md4 (Makefile.am): Likewise.
30458         * modules/md5 (Makefile.am): Likewise.
30459         * modules/memcasecmp (Makefile.am): Likewise.
30460         * modules/memchr (Makefile.am): Likewise.
30461         * modules/memcmp (Makefile.am): Likewise.
30462         * modules/memcoll (Makefile.am): Likewise.
30463         * modules/memcpy (Makefile.am): Likewise.
30464         * modules/memmem (Makefile.am): Likewise.
30465         * modules/memmove (Makefile.am): Likewise.
30466         * modules/mempcpy (Makefile.am): Likewise.
30467         * modules/memrchr (Makefile.am): Likewise.
30468         * modules/memset (Makefile.am): Likewise.
30469         * modules/memxor (Makefile.am): Likewise.
30470         * modules/mkancesdirs (Makefile.am): Likewise.
30471         * modules/mkdir-p (Makefile.am): Likewise.
30472         * modules/mkdir (Makefile.am): Likewise.
30473         * modules/mkdtemp (Makefile.am): Likewise.
30474         * modules/mkstemp (Makefile.am): Likewise.
30475         * modules/mktime (Makefile.am): Likewise.
30476         * modules/modechange (Makefile.am): Likewise.
30477         * modules/mountlist (Makefile.am): Likewise.
30478         * modules/nanosleep (Makefile.am): Likewise.
30479         * modules/obstack (Makefile.am): Likewise.
30480         * modules/openat (Makefile.am): Likewise.
30481         * modules/pagealign_alloc (Makefile.am): Likewise.
30482         * modules/pathmax (Makefile.am): Likewise.
30483         * modules/physmem (Makefile.am): Likewise.
30484         * modules/poll (Makefile.am): Likewise.
30485         * modules/posixtm (Makefile.am): Likewise.
30486         * modules/posixver (Makefile.am): Likewise.
30487         * modules/putenv (Makefile.am): Likewise.
30488         * modules/quote (Makefile.am): Likewise.
30489         * modules/quotearg (Makefile.am): Likewise.
30490         * modules/raise (Makefile.am): Likewise.
30491         * modules/read-file (Makefile.am): Likewise.
30492         * modules/readline (Makefile.am): Likewise.
30493         * modules/readlink (Makefile.am): Likewise.
30494         * modules/readtokens (Makefile.am): Likewise.
30495         * modules/readutmp (Makefile.am): Likewise.
30496         * modules/realloc (Makefile.am): Likewise.
30497         * modules/regex (Makefile.am): Likewise.
30498         * modules/rename-dest-slash (Makefile.am): Likewise.
30499         * modules/rename (Makefile.am): Likewise.
30500         * modules/rijndael (Makefile.am): Likewise.
30501         * modules/rmdir (Makefile.am): Likewise.
30502         * modules/rpmatch (Makefile.am): Likewise.
30503         * modules/safe-read (Makefile.am): Likewise.
30504         * modules/safe-write (Makefile.am): Likewise.
30505         * modules/same-inode (Makefile.am): Likewise.
30506         * modules/same (Makefile.am): Likewise.
30507         * modules/save-cwd (Makefile.am): Likewise.
30508         * modules/savedir (Makefile.am): Likewise.
30509         * modules/setenv (Makefile.am): Likewise.
30510         * modules/settime (Makefile.am): Likewise.
30511         * modules/sha1 (Makefile.am): Likewise.
30512         * modules/sig2str (Makefile.am): Likewise.
30513         * modules/snprintf (Makefile.am): Likewise.
30514         * modules/stat-macros (Makefile.am): Likewise.
30515         * modules/stat-time (Makefile.am): Likewise.
30516         * modules/stdbool (Makefile.am): Likewise.
30517         * modules/stdint (Makefile.am): Likewise.
30518         * modules/stdlib-safer (Makefile.am): Likewise.
30519         * modules/stpcpy (Makefile.am): Likewise.
30520         * modules/stpncpy (Makefile.am): Likewise.
30521         * modules/strcase (Makefile.am): Likewise.
30522         * modules/strcasestr (Makefile.am): Likewise.
30523         * modules/strchrnul (Makefile.am): Likewise.
30524         * modules/strcspn (Makefile.am): Likewise.
30525         * modules/strdup (Makefile.am): Likewise.
30526         * modules/strerror (Makefile.am): Likewise.
30527         * modules/strftime (Makefile.am): Likewise.
30528         * modules/strndup (Makefile.am): Likewise.
30529         * modules/strnlen (Makefile.am): Likewise.
30530         * modules/strpbrk (Makefile.am): Likewise.
30531         * modules/strsep (Makefile.am): Likewise.
30532         * modules/strstr (Makefile.am): Likewise.
30533         * modules/strtod (Makefile.am): Likewise.
30534         * modules/strtoimax (Makefile.am): Likewise.
30535         * modules/strtok_r (Makefile.am): Likewise.
30536         * modules/strtol (Makefile.am): Likewise.
30537         * modules/strtoll (Makefile.am): Likewise.
30538         * modules/strtoul (Makefile.am): Likewise.
30539         * modules/strtoull (Makefile.am): Likewise.
30540         * modules/strtoumax (Makefile.am): Likewise.
30541         * modules/strverscmp (Makefile.am): Likewise.
30542         * modules/sys_socket (Makefile.am): Likewise.
30543         * modules/sys_stat (Makefile.am): Likewise.
30544         * modules/sysexits (Makefile.am): Likewise.
30545         * modules/time_r (Makefile.am): Likewise.
30546         * modules/timegm (Makefile.am): Likewise.
30547         * modules/timespec (Makefile.am): Likewise.
30548         * modules/tmpfile-safer (Makefile.am): Likewise.
30549         * modules/trim (Makefile.am): Likewise.
30550         * modules/unistd-safer (Makefile.am): Likewise.
30551         * modules/unlinkdir (Makefile.am): Likewise.
30552         * modules/unlocked-io (Makefile.am): Likewise.
30553         * modules/userspec (Makefile.am): Likewise.
30554         * modules/utime (Makefile.am): Likewise.
30555         * modules/utimecmp (Makefile.am): Likewise.
30556         * modules/utimens (Makefile.am): Likewise.
30557         * modules/vasnprintf (Makefile.am): Likewise.
30558         * modules/vasprintf (Makefile.am): Likewise.
30559         * modules/vsnprintf (Makefile.am): Likewise.
30560         * modules/xalloc (Makefile.am): Likewise.
30561         * modules/xgetcwd (Makefile.am): Likewise.
30562         * modules/xnanosleep (Makefile.am): Likewise.
30563         * modules/xreadlink (Makefile.am): Likewise.
30564         * modules/xstrtod (Makefile.am): Likewise.
30565         * modules/xstrtol (Makefile.am): Likewise.
30566         * modules/xstrtold (Makefile.am): Likewise.
30567         * modules/yesno (Makefile.am): Likewise.
30568         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
30569
30570 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30571
30572         * modules/error (Makefile.am): Distribute files through
30573         EXTRA_DIST, not lib_SOURCES.
30574
30575 2006-10-12  Eric Blake  <ebb9@byu.net>
30576
30577         * modules/error (Makefile.am): Distribute files in /lib.
30578         * modules/obstack (Makefile.am): Likewise.
30579
30580 2006-10-12  Bruno Haible  <bruno@clisp.org>
30581
30582         * modules/acl (Makefile.am): Distribute all files in lib/ through
30583         EXTRA_DIST.
30584         * modules/arcfour (Makefile.am): Likewise.
30585         * modules/arctwo (Makefile.am): Likewise.
30586         * modules/argmatch (Makefile.am): Likewise.
30587         * modules/argz (Makefile.am): Likewise.
30588         * modules/atexit (Makefile.am): Likewise.
30589         * modules/backupfile (Makefile.am): Likewise.
30590         * modules/c-strtod (Makefile.am): Likewise.
30591         * modules/c-strtold (Makefile.am): Likewise.
30592         * modules/calloc (Makefile.am): Likewise.
30593         * modules/canon-host (Makefile.am): Likewise.
30594         * modules/canonicalize (Makefile.am): Likewise.
30595         * modules/chdir-long (Makefile.am): Likewise.
30596         * modules/chdir-safer (Makefile.am): Likewise.
30597         * modules/check-version (Makefile.am): Likewise.
30598         * modules/chown (Makefile.am): Likewise.
30599         * modules/cloexec (Makefile.am): Likewise.
30600         * modules/close-stream (Makefile.am): Likewise.
30601         * modules/closeout (Makefile.am): Likewise.
30602         * modules/crc (Makefile.am): Likewise.
30603         * modules/cycle-check (Makefile.am): Likewise.
30604         * modules/des (Makefile.am): Likewise.
30605         * modules/dirfd (Makefile.am): Likewise.
30606         * modules/dirname (Makefile.am): Likewise.
30607         * modules/dup2 (Makefile.am): Likewise.
30608         * modules/euidaccess (Makefile.am): Likewise.
30609         * modules/exclude (Makefile.am): Likewise.
30610         * modules/exitfail (Makefile.am): Likewise.
30611         * modules/fcntl-safer (Makefile.am): Likewise.
30612         * modules/file-type (Makefile.am): Likewise.
30613         * modules/fileblocks (Makefile.am): Likewise.
30614         * modules/filemode (Makefile.am): Likewise.
30615         * modules/filenamecat (Makefile.am): Likewise.
30616         * modules/fnmatch (Makefile.am): Likewise.
30617         * modules/fopen-safer (Makefile.am): Likewise.
30618         * modules/fpending (Makefile.am): Likewise.
30619         * modules/fprintftime (Makefile.am): Likewise.
30620         * modules/free (Makefile.am): Likewise.
30621         * modules/fsusage (Makefile.am): Likewise.
30622         * modules/ftruncate (Makefile.am): Likewise.
30623         * modules/fts (Makefile.am): Likewise.
30624         * modules/gc (Makefile.am): Likewise.
30625         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30626         * modules/getaddrinfo (Makefile.am): Likewise.
30627         * modules/getcwd (Makefile.am): Likewise.
30628         * modules/getdelim (Makefile.am): Likewise.
30629         * modules/getdomainname (Makefile.am): Likewise.
30630         * modules/getgroups (Makefile.am): Likewise.
30631         * modules/gethostname (Makefile.am): Likewise.
30632         * modules/gethrxtime (Makefile.am): Likewise.
30633         * modules/getline (Makefile.am): Likewise.
30634         * modules/getloadavg (Makefile.am): Likewise.
30635         * modules/getlogin_r (Makefile.am): Likewise.
30636         * modules/getopt (Makefile.am): Likewise.
30637         * modules/getpass (Makefile.am): Likewise.
30638         * modules/getpass-gnu (Makefile.am): Likewise.
30639         * modules/getsubopt (Makefile.am): Likewise.
30640         * modules/gettime (Makefile.am): Likewise.
30641         * modules/gettimeofday (Makefile.am): Likewise.
30642         * modules/getugroups (Makefile.am): Likewise.
30643         * modules/getusershell (Makefile.am): Likewise.
30644         * modules/glob (Makefile.am): Likewise.
30645         * modules/group-member (Makefile.am): Likewise.
30646         * modules/hard-locale (Makefile.am): Likewise.
30647         * modules/hash (Makefile.am): Likewise.
30648         * modules/hmac-md5 (Makefile.am): Likewise.
30649         * modules/hmac-sha1 (Makefile.am): Likewise.
30650         * modules/human (Makefile.am): Likewise.
30651         * modules/idcache (Makefile.am): Likewise.
30652         * modules/imaxabs (Makefile.am): Likewise.
30653         * modules/imaxdiv (Makefile.am): Likewise.
30654         * modules/inet_ntop (Makefile.am): Likewise.
30655         * modules/inet_pton (Makefile.am): Likewise.
30656         * modules/inttostr (Makefile.am): Likewise.
30657         * modules/isapipe (Makefile.am): Likewise.
30658         * modules/lchown (Makefile.am): Likewise.
30659         * modules/long-options (Makefile.am): Likewise.
30660         * modules/lstat (Makefile.am): Likewise.
30661         * modules/malloc (Makefile.am): Likewise.
30662         * modules/mathl (Makefile.am): Likewise.
30663         * modules/mbchar (Makefile.am): Likewise.
30664         * modules/md2 (Makefile.am): Likewise.
30665         * modules/md4 (Makefile.am): Likewise.
30666         * modules/md5 (Makefile.am): Likewise.
30667         * modules/memcasecmp (Makefile.am): Likewise.
30668         * modules/memchr (Makefile.am): Likewise.
30669         * modules/memcmp (Makefile.am): Likewise.
30670         * modules/memcoll (Makefile.am): Likewise.
30671         * modules/memcpy (Makefile.am): Likewise.
30672         * modules/memmem (Makefile.am): Likewise.
30673         * modules/memmove (Makefile.am): Likewise.
30674         * modules/mempcpy (Makefile.am): Likewise.
30675         * modules/memrchr (Makefile.am): Likewise.
30676         * modules/memset (Makefile.am): Likewise.
30677         * modules/memxor (Makefile.am): Likewise.
30678         * modules/mkancesdirs (Makefile.am): Likewise.
30679         * modules/mkdir (Makefile.am): Likewise.
30680         * modules/mkdir-p (Makefile.am): Likewise.
30681         * modules/mkdtemp (Makefile.am): Likewise.
30682         * modules/mkstemp (Makefile.am): Likewise.
30683         * modules/mktime (Makefile.am): Likewise.
30684         * modules/modechange (Makefile.am): Likewise.
30685         * modules/mountlist (Makefile.am): Likewise.
30686         * modules/nanosleep (Makefile.am): Likewise.
30687         * modules/openat (Makefile.am): Likewise.
30688         * modules/pagealign_alloc (Makefile.am): Likewise.
30689         * modules/physmem (Makefile.am): Likewise.
30690         * modules/poll (Makefile.am): Likewise.
30691         * modules/posixtm (Makefile.am): Likewise.
30692         * modules/posixver (Makefile.am): Likewise.
30693         * modules/putenv (Makefile.am): Likewise.
30694         * modules/quote (Makefile.am): Likewise.
30695         * modules/quotearg (Makefile.am): Likewise.
30696         * modules/raise (Makefile.am): Likewise.
30697         * modules/read-file (Makefile.am): Likewise.
30698         * modules/readline (Makefile.am): Likewise.
30699         * modules/readlink (Makefile.am): Likewise.
30700         * modules/readtokens (Makefile.am): Likewise.
30701         * modules/readutmp (Makefile.am): Likewise.
30702         * modules/realloc (Makefile.am): Likewise.
30703         * modules/regex (Makefile.am): Likewise.
30704         * modules/rename (Makefile.am): Likewise.
30705         * modules/rename-dest-slash (Makefile.am): Likewise.
30706         * modules/rijndael (Makefile.am): Likewise.
30707         * modules/rmdir (Makefile.am): Likewise.
30708         * modules/rpmatch (Makefile.am): Likewise.
30709         * modules/safe-read (Makefile.am): Likewise.
30710         * modules/safe-write (Makefile.am): Likewise.
30711         * modules/same (Makefile.am): Likewise.
30712         * modules/save-cwd (Makefile.am): Likewise.
30713         * modules/savedir (Makefile.am): Likewise.
30714         * modules/setenv (Makefile.am): Likewise.
30715         * modules/settime (Makefile.am): Likewise.
30716         * modules/sha1 (Makefile.am): Likewise.
30717         * modules/sig2str (Makefile.am): Likewise.
30718         * modules/snprintf (Makefile.am): Likewise.
30719         * modules/stdlib-safer (Makefile.am): Likewise.
30720         * modules/stpcpy (Makefile.am): Likewise.
30721         * modules/stpncpy (Makefile.am): Likewise.
30722         * modules/strcase (Makefile.am): Likewise.
30723         * modules/strcasestr (Makefile.am): Likewise.
30724         * modules/strchrnul (Makefile.am): Likewise.
30725         * modules/strcspn (Makefile.am): Likewise.
30726         * modules/strdup (Makefile.am): Likewise.
30727         * modules/strerror (Makefile.am): Likewise.
30728         * modules/strftime (Makefile.am): Likewise.
30729         * modules/strndup (Makefile.am): Likewise.
30730         * modules/strnlen (Makefile.am): Likewise.
30731         * modules/strpbrk (Makefile.am): Likewise.
30732         * modules/strsep (Makefile.am): Likewise.
30733         * modules/strstr (Makefile.am): Likewise.
30734         * modules/strtod (Makefile.am): Likewise.
30735         * modules/strtoimax (Makefile.am): Likewise.
30736         * modules/strtok_r (Makefile.am): Likewise.
30737         * modules/strtol (Makefile.am): Likewise.
30738         * modules/strtoll (Makefile.am): Likewise.
30739         * modules/strtoul (Makefile.am): Likewise.
30740         * modules/strtoull (Makefile.am): Likewise.
30741         * modules/strtoumax (Makefile.am): Likewise.
30742         * modules/strverscmp (Makefile.am): Likewise.
30743         * modules/time_r (Makefile.am): Likewise.
30744         * modules/timegm (Makefile.am): Likewise.
30745         * modules/tmpfile-safer (Makefile.am): Likewise.
30746         * modules/unistd-safer (Makefile.am): Likewise.
30747         * modules/unlinkdir (Makefile.am): Likewise.
30748         * modules/userspec (Makefile.am): Likewise.
30749         * modules/utime (Makefile.am): Likewise.
30750         * modules/utimecmp (Makefile.am): Likewise.
30751         * modules/utimens (Makefile.am): Likewise.
30752         * modules/vasnprintf (Makefile.am): Likewise.
30753         * modules/vasprintf (Makefile.am): Likewise.
30754         * modules/vsnprintf (Makefile.am): Likewise.
30755         * modules/xalloc (Makefile.am): Likewise.
30756         * modules/xgetcwd (Makefile.am): Likewise.
30757         * modules/xnanosleep (Makefile.am): Likewise.
30758         * modules/xreadlink (Makefile.am): Likewise.
30759         * modules/xstrtod (Makefile.am): Likewise.
30760         * modules/xstrtol (Makefile.am): Likewise.
30761         * modules/xstrtold (Makefile.am): Likewise.
30762         * modules/yesno (Makefile.am): Likewise.
30763
30764 2006-10-12  Jim Meyering  <jim@meyering.net>
30765
30766         * m4/getloadavg.m4: Revert the change below.
30767
30768         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
30769         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
30770         fail with a symlink, which is what coreutils' ./bootstrap now
30771         creates by default.
30772
30773 2006-10-12  Bruno Haible  <bruno@clisp.org>
30774
30775         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
30776         mingw.
30777         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
30778         MSVC and mingw explicitly.
30779
30780 2006-10-11  Simon Josefsson  <jas@extundo.com>
30781             Bruno Haible  <bruno@clisp.org>
30782
30783         Add support for multiple gnulib-tool invocations in the scope of a
30784         single configure.ac file.
30785         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
30786         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
30787         with the same contents as the _LIBADD variable.
30788         (func_emit_initmacro_start, func_emit_initmacro_end,
30789         func_emit_initmacro_done): New functions.
30790         (func_import, func_create_testdir): Invoke them. Allow the identifiers
30791         gl_LIBOBJS and gl_LTLIBOBJS.
30792
30793 2006-10-11  Bruno Haible  <bruno@clisp.org>
30794
30795         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
30796         (func_create_testdir): Don't create po/Makefile.am, don't invoke
30797         autoreconf. Instead, invoke autopoint explicitly but move back the
30798         *.m4 files from gnulib.
30799
30800 2006-10-11  Bruno Haible  <bruno@clisp.org>
30801
30802         * gnulib-tool (func_usage): Make module names after --create-testdir
30803         optional.
30804         (func_create_testdir): If no module was specified, use nearly all
30805         modules.
30806
30807 2006-10-12  Jim Meyering  <jim@meyering.net>
30808
30809         Big performance improvement for fts-based tools that use FTS_NOSTAT.
30810         Avoid spurious inode-mismatch problems on non-POSIX file systems.
30811         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
30812         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
30813         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
30814         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
30815         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
30816         (fts_set_stat_required): New function.
30817         (fts_open): Defer the calls to fts_stat, if possible or requested.
30818         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
30819         into fts_stat itself.
30820         (fts_read): Perform any required (deferred) fts_stat call.
30821         (fts_build): Likewise, for the directory we're about to open and read.
30822         In the readdir loop, carefully decide whether each entry will require
30823         an eventual call to fts_stat, using dirent.d_type info if available.
30824         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
30825         a command line argument into this function.  Update all callers.
30826         Map a return value of FTS_DOT to FTS_D for a command line argument.
30827         * modules/fts (Depends-on): Add d-type.  Alphabetize.
30828         Thanks to Miklos Szeredi for his tenacity and for the initial
30829         bug report about "find" failing on a FUSE-based file system.
30830
30831         * lib/fts.c (fts_open): Use consistent indentation.
30832
30833 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30834
30835         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
30836         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
30837         reported by Jim Meyering.  All uses of cache variables renamed
30838         to match Autoconf's.
30839         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
30840         the other one.
30841
30842         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
30843         Fix misspelling in diagnostic.
30844
30845 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30846
30847         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
30848         defined.  Problem reported by Matthew Woehlke.
30849
30850         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
30851         Add support for Tandem NonStop R series.
30852         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
30853         Use new macro.
30854
30855         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
30856         (has_trailing_slash): Omit size arg; all callers changed.
30857         Omit 'inline', since it doesn't help performance and we'd
30858         need to configure it.
30859         Don't count //, ///, etc. as having a trailing slash.
30860         As a side effect, this removes a C99ism reported by Matthew Woehlke.
30861         (rpl_rename_dest_slash): On failure, use rename's errno rather
30862         than (in some cases) an incorrect or junk errno.
30863         Simplify code by removing need to compute length; this does
30864         cause it to make two passes instead of one over the file name,
30865         but it's worth it.
30866
30867         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
30868         change, since Autoconf's version may no longer be appropriate now
30869         that we are using CVS Autoconf's version.  Add support for Tandem.
30870
30871 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30872             Bruno Haible  <bruno@clisp.org>
30873
30874         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
30875         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
30876         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
30877         gl_AC_TYPE_LONG_LONG.
30878
30879         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
30880         instead of HAVE_LONG_LONG.
30881         * lib/printf-args.c (printf_fetchargs): Likewise.
30882         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
30883         * lib/vasnprintf.c (VASNPRINTF): Likewise.
30884         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
30885         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
30886         gl_AC_TYPE_LONG_LONG.
30887
30888 2006-10-11  Bruno Haible  <bruno@clisp.org>
30889
30890         * m4/longlong.m4: Add comments.
30891         * m4/ulonglong.m4: Likewise.
30892
30893 2006-10-10  Bruno Haible  <bruno@clisp.org>
30894
30895         Make it possible to #define stpcpy, strdup to aliases.
30896         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
30897         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
30898
30899 2006-10-10  Bruno Haible  <bruno@clisp.org>
30900
30901         Make it possible to #define gcd to an alias.
30902         * lib/gcd.c: Include config.h.
30903
30904 2006-10-10  Bruno Haible  <bruno@clisp.org>
30905
30906         Make it possible to #define c_isascii to an alias.
30907         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
30908         defined. Undefine the macros before defining them, to avoid gcc
30909         warnings.
30910         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
30911         define NO_C_CTYPE_MACROS early.
30912
30913 2006-10-10  Bruno Haible  <bruno@clisp.org>
30914
30915         Make it possible to #define set_program_name to an alias.
30916         * lib/progname.c: Don't undefine set_program_name; instead, undefine
30917         ENABLE_RELOCATABLE early.
30918
30919 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30920
30921         Port to Tandem NSK OSS, which has 64-bit signed int but at most
30922         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
30923         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
30924         More generally, don't assume that 64-bit signed int is available
30925         if unsigned int is, and vice versa.
30926         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
30927         unsigned symbols, not on their signed counterparts.
30928         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
30929         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
30930         (UINT64_C, UINTMAX_C):
30931         Likewise.
30932         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
30933         unsigned counterparts.
30934         (Have_long_long, Unsigned): New macros.
30935         (Int): Renamed from INT.
30936         (strtoimax): Use the new macros.
30937         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
30938         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
30939         * modules/inttypes (inttypes.h): Substitute
30940         HAVE_UNSIGNED_LONG_LONG_INT.
30941         * modules/stdint (stdint.h): Likewise.
30942         (Files): Add m4/ulonglong.m4.
30943
30944 2006-10-10  Bruno Haible  <bruno@clisp.org>
30945
30946         Fix a gcc -Wshadow warning.
30947         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
30948         to 'bucket'.
30949         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
30950         gl_linked_indexof_from_to): Likewise.
30951         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
30952         Likewise.
30953         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
30954         Likewise.
30955         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
30956         Reported by Eric Blake.
30957
30958 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30959
30960         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
30961         for NetBSD.  Problem reported by Bruno Haible.
30962
30963 2006-10-09  Jim Meyering  <jim@meyering.net>
30964
30965         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
30966         Patch from Bruno Haible.
30967
30968 2006-10-09  Jim Meyering  <jim@meyering.net>
30969
30970         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
30971         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
30972         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
30973
30974 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         Don't include <config.h> twice; this doesn't work in some cases,
30977         e.g., when config.h has "#define intmax_t long long int" and
30978         we include <config.h>, <inttypes.h>, <config.h> in that order.
30979         Problem reported by Matthew Woehlke in:
30980         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
30981         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
30982         * lib/fts-cycle.c: Don't include config.h.
30983         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
30984         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
30985         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
30986         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
30987         inttypes.h.
30988         * lib/xstrtoumax.c: Likewise.
30989         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
30990         __strtol and the like, so that this module is more like its siblings.
30991         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
30992         Remove; no longer needed now that we assume gnulib inttypes.h.
30993
30994 2006-10-08  Bruno Haible  <bruno@clisp.org>
30995
30996         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
30997         option.
30998
30999 2006-10-07  Jim Meyering  <jim@meyering.net>
31000
31001         * modules/inttypes (inttypes.h): Revert what seems to have been
31002         an inadvertent part of today's change: use "|", not "/" in the
31003         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
31004
31005 2006-10-07  Bruno Haible  <bruno@clisp.org>
31006
31007         * modules/sublist: New file.
31008
31009 2006-10-07  Bruno Haible  <bruno@clisp.org>
31010
31011         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
31012         * modules/argz (argz.h): Likewise.
31013         * modules/arpa_inet (arpa/inet.h): Likewise.
31014         * modules/byteswap (byteswap.h): Likewise.
31015         * modules/configmake (configmake.h): Likewise.
31016         * modules/fcntl (fcntl.h): Likewise.
31017         * modules/fnmatch (fnmatch.h): Likewise.
31018         * modules/getopt (getopt.h): Likewise.
31019         * modules/glob (glob.h): Likewise.
31020         * modules/inttypes (inttypes.h): Likewise.
31021         * modules/netinet_in (netinet/in.h): Likewise.
31022         * modules/poll (poll.h): Likewise.
31023         * modules/stdbool (stdbool.h): Likewise.
31024         * modules/stdint (stdint.h): Likewise.
31025         * modules/sys_select (sys/select.h): Likewise.
31026         * modules/sys_socket (sys/socket.h): Likewise.
31027         * modules/sys_stat (sys/stat.h): Likewise.
31028         * modules/sysexits (sysexits.h): Likewise.
31029         * modules/unistd (unistd.h): Likewise.
31030         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31031         Add a "DO NOT EDIT" comment to the generated file.
31032         (func_import): Likewise for gnulib-comp.m4.
31033
31034 2006-10-07  Bruno Haible  <bruno@clisp.org>
31035
31036         * lib/gl_sublist.h: New file.
31037         * lib/gl_sublist.c: New file.
31038
31039 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31040
31041         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
31042         name (relative to the original working directory) and the file
31043         name component (relative to the temporary working directory).  All
31044         callers changed.
31045         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
31046         * lib/mkdir-p.c (make_dir_parents): Likewise.
31047         * lib/mkdir-p.h (make_dir_parents): Likewise.
31048
31049 2006-10-06  Eric Blake  <ebb9@byu.net>
31050
31051         Define several macros for use by the clean-temp module.
31052         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
31053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
31054         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
31055
31056         * lib/clean-temp.h (close_stream_temp): New declaration.
31057         * lib/clean-temp.c (includes): Pull in headers according to what
31058         other modules are in use.
31059         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
31060
31061 2006-10-06  Bruno Haible  <bruno@clisp.org>
31062
31063         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
31064         instead of fopen, fwriteerror.
31065
31066 2006-10-06  Bruno Haible  <bruno@clisp.org>
31067
31068         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
31069         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
31070         int.
31071         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
31072         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
31073         Return an error indicator.
31074         Suggested by Eric Blake.
31075
31076 2006-10-06  Bruno Haible  <bruno@clisp.org>
31077
31078         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
31079         Reported by Eric Blake.
31080
31081 2006-10-06  Bruno Haible  <bruno@clisp.org>
31082
31083         * modules/closeout (Description): Mention stderr too.
31084
31085 2006-10-06  Bruno Haible  <bruno@clisp.org>
31086         and Paul Eggert  <eggert@cs.ucla.edu>
31087
31088         * lib/closeout.c (close_stdout): Also close stderr.
31089         * lib/closeout.h: Update comment.
31090
31091 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
31092
31093         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
31094         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
31095         * lib/dirchownmod.c: Include lchown.h.
31096         * lib/lchown.c: Don't include files that lchown.h now includes.
31097         Don't declare chown, since lchown.h now does that.
31098         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
31099         (lchown): Define to rpl_chown if lchown is declared but
31100         does not exist.  Declare using a prototype if lchown is not
31101         declared.  Add a copyright notice.
31102         * lib/mkstemp.h: Include <unistd.h>.
31103         * lib/openat.c: Include lchown.h.
31104
31105         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
31106         we now test for that separately.
31107         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
31108         rather than O_NOFOLLOW, when testing whether it's possible to
31109         avoid a race condition reliably.
31110         * lib/savewd.c (savewd_chdir): Likewise.
31111
31112         Remove macros that are no longer needed now that stdint.h is
31113         reliable.
31114         * lib/fsusage.c (UINTMAX_MAX): Remove.
31115         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
31116         * lib/utimecmp.c (SIZE_MAX): Remove.
31117
31118         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
31119
31120         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
31121         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
31122         O_NOATIME works.
31123
31124 2006-10-05  Bruno Haible  <bruno@clisp.org>
31125
31126         * lib/gl_list.h (gl_sortedlist_search_from_to,
31127         gl_sortedlist_indexof_from_to): New declarations.
31128         (gl_list_implementation): New fields sortedlist_search_from_to,
31129         sortedlist_indexof_from_to.
31130         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
31131         inline functions.
31132         * lib/gl_list.c (gl_sortedlist_search_from_to,
31133         gl_sortedlist_indexof_from_to): New functions.
31134         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
31135         function.
31136         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
31137         (gl_array_sortedlist_search_from_to): New function.
31138         (gl_array_list_implementation): Update.
31139         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
31140         function.
31141         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
31142         (gl_carray_sortedlist_search_from_to): New function.
31143         (gl_carray_list_implementation): Update.
31144         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
31145         gl_linked_sortedlist_indexof_from_to): New functions.
31146         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31147         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31148         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
31149         gl_tree_sortedlist_indexof_from_to): New functions.
31150         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31151         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31152         Update.
31153         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31154         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
31155         Update.
31156
31157 2006-10-05  Bruno Haible  <bruno@clisp.org>
31158
31159         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
31160         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
31161         (struct gl_list_implementation): Add fields search_from_to,
31162         indexof_from_to. Remove fields search, indexof.
31163         (gl_list_search): Use the search_from_to method.
31164         (gl_list_search_from, gl_list_search_from_to): New functions.
31165         (gl_list_indexof): Use the indexof_from_to method.
31166         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31167         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
31168         (gl_list_search_from, gl_list_search_from_to): New functions.
31169         (gl_list_indexof): Use the indexof_from_to method.
31170         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31171         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
31172         gl_array_indexof. Add start_index, end_index arguments.
31173         (gl_array_search_from_to): Renamed from gl_array_search. Add
31174         start_index, end_index arguments.
31175         (gl_array_remove, gl_array_list_implementation): Update.
31176         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
31177         gl_carray_indexof. Add start_index, end_index arguments.
31178         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
31179         start_index, end_index arguments.
31180         (gl_carray_remove, gl_carray_list_implementation): Update.
31181         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
31182         gl_linked_search. Add start_index, end_index arguments.
31183         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
31184         start_index, end_index arguments.
31185         (gl_linked_remove): Update.
31186         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31187         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31188         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
31189         field to 'size_t'.
31190         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
31191         gl_tree_search. Add start_index, end_index arguments.
31192         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31193         start_index, end_index arguments.
31194         (gl_tree_remove): Update.
31195         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31196         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31197         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
31198         function.
31199         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
31200         gl_tree_search. Add start_index, end_index arguments.
31201         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31202         start_index, end_index arguments.
31203         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31204         Update.
31205         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31206
31207 2006-10-05  Bruno Haible  <bruno@clisp.org>
31208
31209         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
31210
31211         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
31212         fwriteerror_temp): New declarations.
31213         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
31214         (descriptors): New variable.
31215         (cleanup): First, close the descriptors.
31216         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
31217         fclose_temp, fwriteerror_temp): New functions.
31218
31219 2006-10-04  Jim Meyering  <jim@meyering.net>
31220
31221         * lib/fts.c (fts_open): Tiny comment change.
31222
31223 2006-10-04  Bruno Haible  <bruno@clisp.org>
31224
31225         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
31226         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
31227         gl_LOCK_BODY.
31228         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
31229         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
31230         gl_LOCK_EARLY_BODY.
31231         (gl_LOCK): Require gl_LOCK_BODY.
31232
31233 2006-10-04  Bruno Haible  <bruno@clisp.org>
31234
31235         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
31236         (gl_oset_search_atleast): New declaration.
31237         (struct gl_oset_implementation): Add field 'search_atleast'.
31238         (gl_oset_search_atleast): New inline function.
31239         * lib/gl_oset.c (gl_oset_search_atleast): New function.
31240         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
31241         (gl_array_oset_implementation): Update.
31242         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
31243         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
31244         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
31245
31246 2006-10-04  Bruno Haible  <bruno@clisp.org>
31247
31248         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
31249
31250 2006-10-03  Bruno Haible  <bruno@clisp.org>
31251
31252         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
31253         from gl_avltreehash_list_implementation.
31254
31255 2006-10-03  Bruno Haible  <bruno@clisp.org>
31256
31257         * lib/gl_oset.c (gl_oset_add): Fix return type.
31258
31259 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
31260
31261         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
31262
31263 2006-10-02  Eric Blake  <ebb9@byu.net>
31264
31265         * modules/strnlen (Depends-on): Add extensions.
31266
31267 2006-10-02  Eric Blake  <ebb9@byu.net>
31268
31269         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
31270         definition in 2.60+.
31271
31272 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
31273
31274         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
31275         checks.
31276
31277 2006-10-02  Bruno Haible  <bruno@clisp.org>
31278
31279         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
31280         to the AUTOMAKE_OPTIONS.
31281         Reported by Jim Meyering.
31282
31283 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
31284
31285         Work around bug in Solaris 10 /proc file system:
31286         /proc/self/fd/NNN/.. isn't the parent directory of
31287         the directory whose file descriptor is NNN.  This needs to
31288         be worked around at run time, not compile time, since a
31289         program might be built on Solaris 8, where things work, and
31290         run on Solaris 10.
31291         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
31292         to use the following interface instead:
31293         (OPENAT_BUFFER_SIZE): New macro.
31294         (openat_proc_name): New function.
31295         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
31296         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
31297         Likewise.
31298         * lib/openat-proc.c: New file.
31299         * modules/openat (Files): Add lib/openat-proc.c.
31300         (Depends-on): Add same-inode, stdbool.
31301         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
31302
31303 2006-09-29  Bruno Haible  <bruno@clisp.org>
31304
31305         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
31306         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
31307         argument. Set stdout_closed before testing for ferror, not after.
31308         (fwriteerror, fwriteerror_no_ebadf): New functions.
31309
31310 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31311
31312         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
31313
31314 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
31315
31316         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
31317         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
31318
31319 2006-09-28  Jim Meyering  <jim@meyering.net>
31320
31321         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
31322         Include <unistd.h>.
31323
31324 2006-09-28  Bruno Haible  <bruno@clisp.org>
31325
31326         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
31327         * modules/linkedhash-list (Depends-on): Likewise.
31328         * modules/rbtreehash-list (Depends-on): Likewise.
31329
31330 2006-09-28  Bruno Haible  <bruno@clisp.org>
31331
31332         * lib/strndup.h: Simplify the redefinition of strndup.
31333         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
31334         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
31335
31336 2006-09-28  Bruno Haible  <bruno@clisp.org>
31337
31338         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
31339         * lib/gl_linkedhash_list.c: Likewise.
31340         * lib/gl_rbtreehash_list.c: Likewise.
31341
31342 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
31343
31344         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
31345         getaddrinfo.
31346
31347         * lib/__fpending.h: Don't include <stdio_ext.h> unless
31348         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
31349         it causes <stdio_ext.h> to cause a compile-time error.
31350         Problem reported by Nelson H. F. Beebe.
31351         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
31352         of HAVE_DECL___PENDING.
31353
31354         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
31355         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
31356         declaration.
31357
31358 2006-09-27  Jim Meyering  <jim@meyering.net>
31359
31360         This file could end up with a definition for a function
31361         named __strndup, rather than rpl_strndup on a system with
31362         incomplete weak_alias support.
31363         * lib/strndup.c (strndup): Rename from __strndup.
31364         Remove #defines that used to map __strndup to strndup.
31365         Don't use K&R prototypes.
31366         Remove LIBC-related code, since this file is not sync'd with glibc.
31367         * lib/strndup.h: Revamp, accordingly.
31368         * m4/strndup.m4: Modernize.
31369
31370 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31371
31372         * modules/savewd (Depends-on): Add 'raise'.
31373         * lib/savewd.c: Include <signal.h>, for 'raise'.
31374
31375 2006-09-26  Jim Meyering  <jim@meyering.net>
31376
31377         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
31378         when we detect Darwin 8.7.0's acl_get_file bug.
31379         Rearrange to perform the new (below) run-test while $LIBS
31380         contains any acl-related library.  Set USE_ACL at the end.
31381         (gl_ACL_GET_FILE): New function.
31382
31383 2006-09-26  Eric Blake  <ebb9@byu.net>
31384
31385         * lib/verror.c: Include <config.h> unconditionally.
31386
31387 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
31388
31389         * modules/clock-time (Maintainer): Add self.
31390         * modules/getlogin_r (Depends-on): Add extensions.
31391
31392 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31393
31394         * modules/clock-time: New module.
31395         * modules/nanosleep (Depends-on): Add clock-time.
31396         * modules/gethrxtime (Depends-on): Likewise.
31397         * modules/gettime (Depends-on): Likewise.
31398         * modules/settime (Depends-on): Likewise.
31399
31400         * modules/fts-lgpl: Depend on openat.
31401         * modules/mkancesdirs: Depend on savewd.
31402         * modules/mkdir-p: Likewise.
31403
31404 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31405
31406         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
31407
31408         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
31409         `gl_have_arbitrary_file_name_length_limit' to
31410         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
31411         actually works between configure runs.
31412
31413 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31414             Bruno Haible  <bruno@clisp.org>
31415
31416         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
31417
31418 2006-09-25  Jim Meyering  <jim@meyering.net>
31419
31420         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
31421         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
31422
31423 2006-09-25  Eric Blake  <ebb9@byu.net>
31424
31425         * gnulib-tool (func_import, func_create_testdir): Fix typos in
31426         exec's in 2006-09-18 patch when shuffling fds.
31427
31428 2006-09-25  Bruno Haible  <bruno@clisp.org>
31429
31430         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
31431         Reported by Jim Meyering.
31432
31433 2006-09-24  Jim Meyering  <jim@meyering.net>
31434
31435         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
31436         compare a pointer against a literal "0".  That caused failures with
31437         at least HP-UX's hpcc.
31438
31439 2006-09-22  Simon Josefsson  <jas@extundo.com>
31440
31441         * modules/gc-sha1:
31442         * modules/gc-md4:
31443         * modules/gc-hmac-sha1:
31444         * modules/gc-hmac-md5:
31445         * modules/gc-des:
31446         * modules/gc-arcfour: Distribute more files.
31447
31448 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31449
31450         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
31451         (gl_linked_iterator_from_to): Initialize struct completely.
31452         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
31453         (gl_tree_iterator_from_to): Likewise
31454         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
31455         * lib/gl_array_list.c [lint] (gl_array_iterator)
31456         (gl_array_iterator_from_to): Likewise.
31457         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
31458         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
31459         (gl_carray_iterator_from_to): Likewise.
31460
31461         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
31462         * lib/md4.c (md4_process_block): Remove unused variable.
31463         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
31464         parentheses for clarity.
31465
31466 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31467
31468         * modules/bison-i18n (Depends-on): Add gettext.
31469
31470 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31471
31472         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
31473         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31474         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
31475         also add missing comma that caused broken test.
31476         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
31477         stdlib.h, for `abort'.
31478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
31479         variables.
31480         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
31481         include unistd.h if present, for `rmdir'.
31482         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
31483         variables.
31484         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
31485         in the process include standard headers for prototypes.
31486         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
31487         gets declared on GNU/Linux.
31488         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
31489         unistd.h, for `rmdir'.
31490         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
31491
31492         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
31493         always true.
31494         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
31495
31496         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
31497
31498 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31499
31500         * gnulib-tool (func_version): Create output all at once.  This
31501         may help avoid triggering unnecessary SIGPIPEs, and at any
31502         rate it doesn't hurt.
31503
31504 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31505             Bruno Haible  <bruno@clisp.org>
31506
31507         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
31508         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31509         * m4/signed.m4 (bh_C_SIGNED): Likewise.
31510
31511         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
31512         (gl_FUNC_VASPRINTF): Invoke it.
31513
31514 2006-09-22  Bruno Haible  <bruno@clisp.org>
31515
31516         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
31517         getloadavg.c as first argument.
31518
31519 2006-09-22  Bruno Haible  <bruno@clisp.org>
31520
31521         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
31522         at the beginning of the gl_INIT macro.
31523         * modules/getloadavg (configure.ac): Pass $gl_source_base to
31524         gl_GETLOADAVG.
31525
31526 2006-09-22  Bruno Haible  <bruno@clisp.org>
31527
31528         * gnulib-tool (func_create_megatestdir): Don't include the config-h
31529         module.
31530         Suggested by Ralf Wildenhues.
31531
31532 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31533
31534         Import this patch from libc:
31535
31536         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
31537
31538         * lib/regex_internal.c (re_string_reconstruct): Handle
31539         offset < pstr->valid_raw_len && pstr->offsets_needed case.
31540         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
31541         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
31542         re_string_context_at.
31543
31544         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
31545         now requires it.
31546         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
31547         gl_REGEX now does it for us.
31548         (gl_REGEX): Add test taken from
31549         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
31550
31551         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
31552         Check that large offsets work.  Modernize Autoconf usages.
31553         Prefer "yes" to mean a good thing rather than a bad.
31554         Don't put "#define mkstemp" in config.h, as this might interfere
31555         with standard system headers that "#define mkstemp mkstemp64".
31556
31557         * modules/mkstemp (Depends-on): Add extensions, so that
31558         mkstemp is visible on some platforms.
31559         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
31560         (Include): Change to "mkstemp.h" from <stdlib.h>.
31561         (Files): Add mkstemp.h.
31562
31563         * lib/mkstemp.h: New file, since some standard headers
31564         #define mkstemp.
31565         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
31566         Include "mkstemp.h".
31567         Make the _LIBC code resemble glibc original more,
31568         e.g., use K&R style.
31569         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
31570         (mkstemp): Remove, since mkstemp.h does this for us.
31571         * lib/stdlib--.h: Include mkstemp.h.
31572
31573         Import this patch from libc:
31574
31575         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
31576
31577         * lib/tempname.c (__gen_tempname): Change attempts_min
31578         into a macro.  Use preprocessor to decide how to initialize
31579         attempts [Coverity CID 67].
31580
31581 2006-09-20  Bruno Haible  <bruno@clisp.org>
31582
31583         * lib/mkdtemp.c: Import from libc.
31584         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
31585                 * sysdeps/posix/tempname.c (__gen_tempname): Change
31586                 attempts_min into a macro.  Use preprocessor to decide how to
31587                 initialize attempts [Coverity CID 67].
31588         2001-11-27  Paul Eggert  <eggert@twinsun.com>
31589                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
31590                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
31591
31592 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31593
31594         * gnulib-tool (func_exit): New function, to allow to pass the
31595         exit status portably through the trap.  Use everywhere.
31596         (--help, --version): Signal a write error.
31597         (trap): catch SIGPIPE, for write errors.
31598         Exit at the end of the trap, with the correct exit status.
31599
31600 2006-09-19  Karl Berry  <karl@gnu.org>
31601
31602         * doc/gnulib.texi: note about the license texinfo files.
31603
31604 2006-09-19  Eric Blake  <ebb9@byu.net>
31605
31606         * gnulib-tool: Avoid space-tab.
31607
31608 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31609
31610         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
31611         that prevented coreutils 6.1 from building.  Problem reported
31612         by Petter Reinholdtsen.
31613
31614 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
31615
31616         * gnulib-tool (avoidlist): Fix typo that broke options like
31617         --avoid=lock that are used by coreutils bootstrap.
31618
31619 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
31620
31621         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
31622         more systematically.
31623
31624 2006-09-18  Jim Meyering  <jim@meyering.net>
31625
31626         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
31627
31628 2006-09-18  Bruno Haible  <bruno@clisp.org>
31629
31630         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
31631
31632 2006-09-18  Bruno Haible  <bruno@clisp.org>
31633
31634         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
31635         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
31636         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
31637         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
31638         * m4/gettext.m4: Require autoconf >= 2.52.
31639         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
31640         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
31641         of gl_cv_header_inttypes_h.
31642
31643 2006-09-18  Bruno Haible  <bruno@clisp.org>
31644
31645         * lib/javaversion.c: Include configmake.h.
31646
31647 2006-09-18  Bruno Haible  <bruno@clisp.org>
31648
31649         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
31650         avoid that the while loops be executed in a subshell.
31651
31652 2006-09-18  Bruno Haible  <bruno@clisp.org>
31653
31654         * MODULES.html.sh (func_module): Break long lines.
31655         Suggested by Bruce Korb <bkorb@gnu.org>.
31656
31657 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31658
31659         Speed up by a factor of 1.12.
31660         * gnulib-tool (nl): New variable.
31661         (func_import): Rewrite include directive extraction to only read each
31662         directive once.
31663
31664 2006-09-17  Bruno Haible  <bruno@clisp.org>
31665
31666         * modules/javaversion (Makefile.am): Remove DEFS setting.
31667         (Depends-on): Add configmake, for PKGDATADIR definition.
31668
31669 2006-09-17  Bruno Haible  <bruno@clisp.org>
31670
31671         * gnulib-tool (func_create_testdir): Rewrite all files at once.
31672
31673 2006-09-17  Bruno Haible  <bruno@clisp.org>
31674
31675         * gnulib-tool (func_append): New function, stolen from libtool.m4.
31676         (func_modules_transitive_closure, func_modules_add_dummy,
31677         func_modules_to_filelist, func_import, func_create_testdir,
31678         func_create_megatestdir, ...): Use it wherever possible.
31679         Suggested by Ralf Wildenhues.
31680
31681 2006-09-16  Karl Berry  <karl@gnu.org>
31682
31683         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
31684         to avoid sectioning errors.
31685         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
31686         [ifinfo]: blank line after @center-ed titles.
31687         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
31688         Spell FSF address consistently with others.
31689         (These changes approved by rms.)
31690
31691 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31692
31693         Speed up by a factor of 1.61.
31694         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
31695         already checked module names again.
31696
31697 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31698
31699         Speed up by a factor of 1.13.
31700         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
31701         for new_files, and the input to func_add_or_update.
31702
31703 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31704
31705         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
31706         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
31707
31708 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31709
31710         * modules/mkancesdirs (Depends-on): Add fcntl.
31711         * modules/savewd: New file.
31712         * MODULES.html.sh (File system functions): Add savewd.
31713
31714         * modules/configmake (Makefile.am): Add support for the
31715         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
31716
31717 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31718
31719         * m4/savewd.m4: New file.
31720
31721 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31722
31723         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
31724         (dirchownmod): New arg FD.  All callers changed.
31725         Use FD rather than opening the directory ourself, as opening is
31726         now the caller's responsibility.
31727         * lib/dirchownmod.h: Likewise.
31728         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
31729         hosts that require <sys/types.h> before <sys/stat.h>.  Include
31730         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
31731         (test_dir): Remove.
31732         (mkancesdirs): Return length of prefix of FILE that has already
31733         been made, or -2 if there is a child doing the work.  Redo
31734         algorithm so that it is O(N) rather than O(N**2).  Optimize away
31735         ".", and treat ".." specially since it might stray back into
31736         already-created areas.  Use a subprocess if necessary.  New arg
31737         WD; all users changed.  MAKE_DIR function should now return 1
31738         if it creates a directory that is not readable.  Return -2 if
31739         a child process is spun off.
31740         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
31741         Adjust signature to match code.
31742         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
31743         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
31744         all users changed.
31745         * lib/savewd.c, lib/savewd.h: New files.
31746
31747 2006-09-15  Jim Meyering  <jim@meyering.net>
31748
31749         * modules/rename-dest-slash: New module.
31750         * MODULES.html.sh (posix_compat): Add it here.
31751
31752         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
31753
31754 2006-09-15  Jim Meyering  <jim@meyering.net>
31755
31756         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
31757         file.
31758
31759         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
31760
31761 2006-09-15  Jim Meyering  <jim@meyering.net>
31762
31763         * lib/rename-dest-slash.c (has_trailing_slash): Use
31764         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
31765         (rpl_rename_dest_slash): Perform the cheaper trailing slash
31766         test before testing whether SRC is a directory.
31767         Suggestions from Bruno Haible.
31768
31769         Avoid a warning about an unused variable.
31770         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
31771         into the #ifdef block where it's used.
31772
31773         * lib/rename-dest-slash.c: New file.
31774
31775 2006-09-14  Bruno Haible  <bruno@clisp.org>
31776
31777         * lib/allocsa.c: Include <config.h> unconditionally.
31778         * lib/asnprintf.c: Likewise.
31779         * lib/asprintf.c: Likewise.
31780         * lib/c-strcasecmp.c: Likewise.
31781         * lib/c-strcasestr.c: Likewise.
31782         * lib/c-strncasecmp.c: Likewise.
31783         * lib/c-strstr.c: Likewise.
31784         * lib/classpath.c: Likewise.
31785         * lib/clean-temp.c: Likewise.
31786         * lib/concatpath.c: Likewise.
31787         * lib/copy-file.c: Likewise.
31788         * lib/csharpcomp.c: Likewise.
31789         * lib/csharpexec.c: Likewise.
31790         * lib/execute.c: Likewise.
31791         * lib/fatal-signal.c: Likewise.
31792         * lib/findprog.c: Likewise.
31793         * lib/fwriteerror.c: Likewise.
31794         * lib/gl_array_list.c: Likewise.
31795         * lib/gl_array_oset.c: Likewise.
31796         * lib/gl_avltree_list.c: Likewise.
31797         * lib/gl_avltree_oset.c: Likewise.
31798         * lib/gl_avltreehash_list.c: Likewise.
31799         * lib/gl_carray_list.c: Likewise.
31800         * lib/gl_linked_list.c: Likewise.
31801         * lib/gl_linkedhash_list.c: Likewise.
31802         * lib/gl_list.c: Likewise.
31803         * lib/gl_oset.c: Likewise.
31804         * lib/gl_rbtree_list.c: Likewise.
31805         * lib/gl_rbtree_oset.c: Likewise.
31806         * lib/gl_rbtreehash_list.c: Likewise.
31807         * lib/imaxabs.c: Likewise.
31808         * lib/imaxdiv.c: Likewise.
31809         * lib/javacomp.c: Likewise.
31810         * lib/javaexec.c: Likewise.
31811         * lib/javaversion.c: Likewise.
31812         * lib/linebreak.c: Likewise.
31813         * lib/localcharset.c: Likewise.
31814         * lib/lock.c: Likewise.
31815         * lib/mbchar.c: Likewise.
31816         * lib/mbswidth.c: Likewise.
31817         * lib/mkdtemp.c: Likewise.
31818         * lib/pipe.c: Likewise.
31819         * lib/printf-args.c: Likewise.
31820         * lib/printf-parse.c: Likewise.
31821         * lib/progname.c: Likewise.
31822         * lib/progreloc.c: Likewise.
31823         * lib/readlink.c: Likewise.
31824         * lib/sh-quote.c: Likewise.
31825         * lib/stpcpy.c: Likewise.
31826         * lib/stpncpy.c: Likewise.
31827         * lib/strcasecmp.c: Likewise.
31828         * lib/strcasestr.c: Likewise.
31829         * lib/strcspn.c: Likewise.
31830         * lib/striconv.c: Likewise.
31831         * lib/strncasecmp.c: Likewise.
31832         * lib/strnlen1.c: Likewise.
31833         * lib/strstr.c: Likewise.
31834         * lib/strtok_r.c: Likewise.
31835         * lib/tls.c: Likewise.
31836         * lib/tmpdir.c: Likewise.
31837         * lib/unicodeio.c: Likewise.
31838         * lib/unsetenv.c: Likewise.
31839         * lib/vasnprintf.c: Likewise.
31840         * lib/vasprintf.c: Likewise.
31841         * lib/wait-process.c: Likewise.
31842         * lib/xallocsa.c: Likewise.
31843         * lib/xsetenv.c: Likewise.
31844         * lib/xstriconv.c: Likewise.
31845
31846 2006-09-13  Simon Josefsson  <jas@extundo.com>
31847
31848         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
31849         that internally, suggested by Ralf Wildenhues
31850         <Ralf.Wildenhues@gmx.de>.
31851
31852 2006-09-13  Simon Josefsson  <jas@extundo.com>
31853
31854         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
31855         @LIBOBJS@.
31856         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31857
31858 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31859
31860         * lib/_fpending.c: Include <config.h> unconditionally, since we no
31861         longer worry about uses that don't define HAVE_CONFIG_H.
31862         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
31863         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
31864         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
31865         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
31866         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
31867         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
31868         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
31869         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
31870         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
31871         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
31872         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
31873         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
31874         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
31875         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
31876         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
31877         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
31878         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
31879         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
31880         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
31881         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
31882         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
31883         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
31884         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
31885         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
31886         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
31887         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
31888         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
31889         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
31890         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
31891         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
31892         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
31893         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
31894         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
31895         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
31896         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
31897         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
31898         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
31899         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
31900         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
31901         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
31902         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
31903         Likewise.
31904
31905 2006-09-13  Eric Blake  <ebb9@byu.net>
31906
31907         * lib/getopt.c: Fix typo in last commit.
31908
31909 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31910
31911         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
31912         dgettext.
31913
31914 2006-09-12  Jim Meyering  <jim@meyering.net>
31915
31916         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
31917         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
31918         Reported by Nelson H. F. Beebe.
31919
31920 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31921
31922         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
31923         program_invocation_name and program_invocation_short_name are
31924         initialized.
31925         * lib/argp-namefrob.h: Move declarations of program_invocation_name
31926         and program_invocation_short_name to argp.h, so they are visible
31927         to user programs.
31928         * lib/argp.h: Likewise
31929
31930 2006-09-10  Bruno Haible  <bruno@clisp.org>
31931
31932         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
31933         m4/inttypes_h.m4, m4/uintmax_t.m4.
31934
31935 2006-09-10  Bruno Haible  <bruno@clisp.org>
31936
31937         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
31938         gl_AC_TYPE_UINTMAX_T.
31939
31940 2006-09-10  Bruno Haible  <bruno@clisp.org>
31941
31942         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
31943
31944 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
31945
31946         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
31947         convention.  Text proposed by Bruno Haible.
31948         (struct argp_option): Document the use of N_() wrappers.
31949
31950         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
31951         '\v', and translate the two parts separately, instead of feeding
31952         the whole string to gettext.  This allows to exclude
31953         '\v' from the strings visible to the translator by writing doc
31954         strings as N_("..") "\v" N_("..").
31955
31956 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
31957
31958         * config/srclist.txt: Undo latest change; the bug was fixed.
31959
31960 2006-09-09  Bruno Haible  <bruno@clisp.org>
31961
31962         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
31963         assignments if building a library without libtool.
31964         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
31965         in func_emit_lib_Makefile_am.
31966         (func_import): When building a static library libfoo.a, arrange to
31967         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
31968         (func_create_testdir): Likewise.
31969         * modules/gc (configure.ac, Makefile.am): If building statically,
31970         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
31971         * modules/iconvme (configure.ac, Makefile.am): Likewise.
31972         * modules/striconv (configure.ac, Makefile.am): Likewise.
31973         Based on a suggestion by Ralf Wildenhues.
31974
31975 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31976
31977         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31978         Check for unistd.h too, since Autoconf doesn't assume POSIX.
31979         Also:
31980
31981         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31982         Add year_2050_test to catch glibc bug 2821
31983         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31984
31985         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31986         Prefer #ifdef to #if.
31987
31988         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
31989         Return from 'main' instead of calling 'exit'.
31990
31991 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
31992
31993         * lib/mktime.c (guess_time_tm): Fix bug where mktime
31994         returned the maximum time_t value rather than (time_t) -1.
31995         Problem originally reported by William Bardwell
31996         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
31997
31998         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
31999         Moved to here ...
32000         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32001         ... from here.
32002
32003 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32004
32005         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
32006         2821 is fixed.
32007
32008 2006-09-08  Jim Meyering  <jim@meyering.net>
32009
32010         Don't make generated files read-only.  That would bother too many
32011         people.  However, do retain the ability to work when targets are
32012         read-only: remove the destination and temporary files before writing
32013         them (when generated via sed or echo), or by using the -f option for
32014         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
32015         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32016         * modules/byteswap, modules/configmake, modules/fcntl:
32017         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32018         * modules/localcharset, modules/netinet_in, modules/poll:
32019         * modules/stdbool, modules/stdint, modules/sys_select:
32020         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32021
32022 2006-09-08  Jim Meyering  <jim@meyering.net>
32023
32024         Avoid new build failure on FreeBSD 6.0.
32025         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
32026         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
32027         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
32028
32029 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32030
32031         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
32032
32033 2006-09-07  Jim Meyering  <jim@meyering.net>
32034
32035         Fix global typo in last change: use chmod u-w, not chmod u-x.
32036         Spotted by Paul Eggert and Bruce Korb.
32037         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32038         * modules/byteswap, modules/configmake, modules/fcntl:
32039         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32040         * modules/localcharset, modules/netinet_in, modules/poll:
32041         * modules/stdbool, modules/stdint, modules/sys_select:
32042         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32043
32044 2006-09-06  Jim Meyering  <jim@meyering.net>
32045
32046         Make generated files be read-only.
32047         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
32048         Ensure that each generated file is now read-only.
32049         * modules/argz: Likewise.
32050         * modules/arpa_inet: Likewise.
32051         * modules/byteswap: Likewise.
32052         * modules/configmake: Likewise.
32053         * modules/fcntl: Likewise.
32054         * modules/fnmatch: Likewise.
32055         * modules/getopt: Likewise.
32056         * modules/glob: Likewise.
32057         * modules/inttypes: Likewise.
32058         * modules/netinet_in: Likewise.
32059         * modules/poll: Likewise.
32060         * modules/stdbool: Likewise.
32061         * modules/stdint: Likewise.
32062         * modules/sys_select: Likewise.
32063         * modules/sys_socket: Likewise.
32064         * modules/sys_stat: Likewise.
32065         * modules/sysexits: Likewise.
32066         * modules/localcharset: Same as above, but continue using temporary
32067         file named "t-$@" (why different?) rather than the "$@-t" used
32068         everywhere else.
32069
32070         * modules/sysexits (Makefile.am): Replace literal occurrences
32071         of "sysexit.h" more readable, and more consistent, "$@".
32072
32073 2006-09-06  Bruno Haible  <bruno@clisp.org>
32074
32075         * modules/striconv: New file.
32076         * modules/xstriconv: New file.
32077         * MODULES.html.sh (Internationalization functions): Add striconv,
32078         xstriconv.
32079
32080 2006-09-06  Bruno Haible  <bruno@clisp.org>
32081
32082         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
32083         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
32084         not using libtool correctly.
32085
32086 2006-09-06  Bruno Haible  <bruno@clisp.org>
32087
32088         * lib/striconv.h: New file.
32089         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
32090         iconvstring.c.
32091         * lib/xstriconv.h: New file.
32092         * lib/xstriconv.c: New file.
32093
32094 2006-09-06  Bruno Haible  <bruno@clisp.org>
32095
32096         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32097         lib_..._LDFLAGS.
32098
32099 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32100
32101         * lib/argz_.h: Sync from Libtool.
32102
32103         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
32104                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32105
32106         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
32107
32108 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
32109
32110         * modules/trim: New file.
32111
32112 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
32113
32114         * lib/trim.h: New file.
32115         * lib/trim.c: New file.
32116
32117 2006-09-05  Bruno Haible  <bruno@clisp.org>
32118
32119         * MODULES.html.sh (String handling): Add trim.
32120
32121 2006-09-04  Karl Berry  <karl@gnu.org>
32122
32123         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
32124         until next release.
32125
32126 2006-09-03  Bruno Haible  <bruno@clisp.org>
32127
32128         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
32129         correctly.
32130
32131 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32132
32133         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
32134         not gl_GETLOADAVG.  Omit unneeded semicolons.
32135         Problems reported by Ralf Wildenhues in
32136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32137         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
32138         at the end, which is the usual gnulib style.
32139
32140         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
32141         of doing all the work ourselves.
32142         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
32143         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
32144
32145 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32146
32147         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
32148         Problem reported by Ralf Wildenhues in
32149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32150
32151         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
32152         HAVE_STRUCT_STATFS_F_FSTYPENAME.
32153
32154 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32155
32156         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
32157         yesterday's patch by changing test -n to test -z.
32158
32159 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32160
32161         * modules/getloadavg (Files): Add m4/getloadavg.m4.
32162         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
32163         the former is now obsolescent.
32164
32165         * modules/chdir-long (Depends-on): Add fcntl.
32166
32167 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32168
32169         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
32170         obsolescent, and programs should use gnulib instead.
32171         * m4/getloadavg.m4: New file, with contents taken from Autoconf
32172         but with prefixes changed.
32173
32174 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32175
32176         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
32177         or stdbool.h, because they might not exist while configuring.
32178
32179         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
32180         Don't include unistd.h or limits.h; not needed, since chdir-long.h
32181         does that for us.
32182         (O_DIRECTORY): Remove.
32183
32184 2006-08-31  Eric Blake  <ebb9@byu.net>
32185
32186         * gnulib-tool: Don't let emacs change spaces to TAB.
32187
32188 2006-08-31  Bruno Haible  <bruno@clisp.org>
32189
32190         * gnulib-tool: When calling func_import more than once, do it in a
32191         subshell.
32192         Reported by Eric Blake <ebb9@byu.net>.
32193
32194 2006-08-31  Bruno Haible  <bruno@clisp.org>
32195
32196         * gnulib-tool (nl): Remove variable.
32197         (sed_transform_lib_file): Use more robust test for config-h module.
32198         (func_import): Fix typo in 2006-08-25 patch.
32199
32200 2006-08-31  Bruno Haible  <bruno@clisp.org>
32201
32202         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
32203         specified, augment Makefile.am variables instead of assigning them.
32204
32205 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32206
32207         Work around a bug in both the Linux and SunOS 64-bit kernels:
32208         nanosleep mishandles sleeps for longer than 2**31 seconds.
32209         Problem reported by Frank v Waveren in
32210         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
32212         Check for nanosleep bug.
32213         (LIB_NANOSLEEP): Append clock_gettime library if needed.
32214
32215 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32216
32217         Work around a bug in both the Linux and SunOS 64-bit kernels:
32218         nanosleep mishandles sleeps for longer than 2**31 seconds.
32219         Problem reported by Frank v Waveren in
32220         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32221         * lib/nanosleep.c (BILLION): New constant.
32222         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
32223         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
32224         implementation.
32225
32226 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32227
32228         * modules/nanosleep (Depends-on): Add gettime.
32229
32230 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32231         and Simon Josefsson  <jas@extundo.com>
32232         and Oskar Liljeblad  <oskar@osk.mine.nu>
32233
32234         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
32235         * gnulib-tool (func_import): New license type 'unmodifiable license
32236         text'.
32237         * modules/fdl: Use it.  Longer description.
32238         * module/gpl, module/lgpl: New files.
32239
32240 2006-08-30  Jim Meyering  <jim@meyering.net>
32241
32242         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
32243         shadowing the parameter.
32244
32245 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32246
32247         Sync from Libtool:
32248
32249         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32250
32251         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
32252         sharing with gnulib.  Report by Eric Blake.
32253
32254 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32255
32256         * modules/isapipe: New file.
32257         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
32258
32259 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32260
32261         * modules/configmake (Makefile.am): Add a comment, and omit
32262         the CONFIGMAKE_ prefix from generated macro names.  Suggested
32263         by Bruno Haible.
32264
32265 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32266
32267         * m4/isapipe.m4: New file.
32268
32269 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32270
32271         * lib/isapipe.c, lib/isapipe.h: New files.
32272
32273 2006-08-29  Jim Meyering  <jim@meyering.net>
32274
32275         * modules/configmake (Makefile.am): Make configmake.h depend on
32276         Makefile.  Otherwise, a stale configmake.h could hang around.
32277
32278 2006-08-29  Eric Blake  <ebb9@byu.net>
32279
32280         * lib/error.c (error_at_line, print_errno_message): Match libc, after
32281         resolution of upstream bug 3044.
32282
32283 2006-08-29  Bruno Haible  <bruno@clisp.org>
32284
32285         * modules/localcharset (Depends-on): Add configmake.
32286         (Makefile.am): Remove setting of LIBDIR through DEFS.
32287
32288 2006-08-29  Bruno Haible  <bruno@clisp.org>
32289
32290         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
32291         defined.
32292
32293 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32294
32295         * modules/fcntl: New file.
32296         * modules/chdir-safer (Depends-on): Add fcntl.
32297         * modules/fts: Likewise.
32298         * modules/mkdir-p: Likewise.
32299
32300         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
32301         This undoes the most recent change, since we're now addressing the
32302         problem in a different way.
32303
32304         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
32305         into output, since the output might be called Makefile.am even
32306         if $makefile_name is something different.
32307         (func_import): Use $makefile_am rather than
32308         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
32309         empty.
32310
32311         * modules/inttypes (Files): Add m4/inttypes-h.m4.
32312
32313 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32314
32315         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
32316         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
32317         recent change to stdint.m4, since we're now addressing the problem in a
32318         different way.
32319
32320 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32321
32322         * m4/fcntl_h.m4: New file.
32323
32324 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32325
32326         * lib/fcntl_.h: New file.
32327         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
32328         the fcntl module.
32329         * lib/dirchownmod.c: Likewise.
32330         * lib/fts.c: Likewise.
32331
32332         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
32333         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
32334         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
32335         just before including <inttypes.h>, to avoid circular inclusion.
32336
32337 2006-08-28  Jim Meyering  <jim@meyering.net>
32338
32339         * doc/visibility.texi: Actually read and correct the grammar of the
32340         sentence affected by yesterday's change.
32341
32342 2006-08-28  Eric Blake  <ebb9@byu.net>
32343
32344         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
32345         needs wrapper.
32346
32347 2006-08-28  Eric Blake  <ebb9@byu.net>
32348
32349         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
32350
32351 2006-08-28  Eric Blake  <ebb9@byu.net>
32352
32353         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
32354
32355 2006-08-28  Bruno Haible  <bruno@clisp.org>
32356
32357         * modules/c-strstr: New file, from GNU gettext.
32358         * MODULES.html.sh (String handling): Add c-strstr.
32359
32360 2006-08-28  Bruno Haible  <bruno@clisp.org>
32361
32362         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
32363         macros.
32364         Reported by Eric Blake.
32365
32366 2006-08-28  Bruno Haible  <bruno@clisp.org>
32367
32368         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
32369         (VASNPRINTF): Return a string of length > INT_MAX without failing.
32370         * lib/vasprintf.c: Include errno.h, limits.h.
32371         (EOVERFLOW): New fallback definition.
32372         (vasprintf): Test here whether the string length is > INT_MAX.
32373         * lib/vsnprintf.c: Include errno.h, limits.h.
32374         (EOVERFLOW): New fallback definition.
32375         (vsnprintf): Fix bug when generated string was too long for the buffer.
32376         Test here whether the string length is > INT_MAX.
32377
32378 2006-08-28  Bruno Haible  <bruno@clisp.org>
32379
32380         * lib/inttypes_.h (SCNX*): Remove definitions.
32381         Reported by Eric Blake.
32382
32383 2006-08-28  Bruno Haible  <bruno@clisp.org>
32384
32385         * lib/c-strstr.h: New file, from GNU gettext.
32386         * lib/c-strstr.c: New file, from GNU gettext.
32387
32388 2006-08-28  Bruno Haible  <bruno@clisp.org>
32389
32390         * gnulib-tool: Reorder some statements.
32391
32392 2006-08-28  Bruno Haible  <bruno@clisp.org>
32393
32394         * gnulib-tool: New option --makefile-name.
32395         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
32396         $makefile_name.
32397         (func_import): Write $makefile_name to the cache file, and read it from
32398         there unless explicitly specified. Use $makefile_name as file name
32399         instead of Makefile.am. Adjust the recommendations accordingly.
32400
32401 2006-08-28  Bruno Haible  <bruno@clisp.org>
32402
32403         * gnulib-tool (func_verify_module): Check against misapplying patch.
32404
32405 2006-08-28  Bruno Haible  <bruno@clisp.org>
32406
32407         * gnulib-tool (func_relativize, func_relconcat): New functions.
32408         Give an error if --local-dir is given with --update.
32409         Remove trailing slashes from $local_gnulib_dir.
32410         (func_import): Store the relativized $local_gnulib_dir in
32411         gnulib-cache.m4, and read it from there if not specified explicitly.
32412
32413 2006-08-28  Bruno Haible  <bruno@clisp.org>
32414
32415         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
32416         is the current directory. Respect also $local_gnulib_dir.
32417
32418 2006-08-28  Bruno Haible  <bruno@clisp.org>
32419             Simon Josefsson  <jas@extundo.com>
32420
32421         BeOS portability.
32422         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
32423
32424 2006-08-27  Jim Meyering  <jim@meyering.net>
32425
32426         * doc/visibility.texi: Remove duplicate word: "pointer".
32427
32428 2006-08-26  Bruno Haible  <bruno@clisp.org>
32429
32430         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
32431         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
32432         (Makefile.am): Create inttypes.h from inttypes_.h.
32433         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
32434
32435         * modules/imaxabs: New file.
32436
32437         * modules/imaxdiv: New file.
32438
32439 2006-08-26  Bruno Haible  <bruno@clisp.org>
32440
32441         * m4/inttypes.m4: New file.
32442         * m4/_inttypes_h.m4: Remove file.
32443         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
32444         PRI_MACROS_BROKEN.
32445         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
32446
32447         * m4/imaxabs.m4: New file.
32448
32449         * m4/imaxdiv.m4: New file.
32450
32451 2006-08-26  Bruno Haible  <bruno@clisp.org>
32452
32453         * lib/inttypes_.h: New file.
32454         * lib/inttypes.h: Remove file.
32455         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
32456
32457         * lib/imaxabs.c: New file.
32458
32459         * lib/imaxdiv.c: New file.
32460
32461 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32462
32463         New config-h module, so that "make" output needn't be cluttered
32464         by -DHAVE_CONFIG_H.
32465         * MODULES.html.sh (Support for building libraries and executables):
32466         Add config-h.
32467         * modules/config-h: New file.
32468         * gnulib-tool (nl, sed_transform_lib_file): New vars.
32469         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
32470         the config-h module is used.
32471
32472         New configmake module, so that "make" output needn't be cluttered
32473         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
32474         * MODULES.html.sh (Support for building libraries and executables):
32475         Add configmake.
32476         * modules/configmake: New file.
32477
32478 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32479
32480         * m4/config-h.m4: New file.
32481
32482 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32483
32484         * config/srclist.txt: Add elisp-comp.
32485
32486 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32487
32488         * MODULES.html.sh (Support for building libraries and executables):
32489         Add elisp-comp.
32490         * build-aux/elisp-comp: New file.
32491         * modules/elisp-comp: New file.
32492
32493 2006-08-24  Bruno Haible  <bruno@clisp.org>
32494
32495         * gnulib-tool (func_create_testdir): Use non-default values of
32496         sourcebase and m4base.
32497
32498 2006-08-24  Bruno Haible  <bruno@clisp.org>
32499
32500         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
32501         HTML structure.
32502
32503 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32504
32505         * modules/openat (Depends-on): Add lchown.
32506
32507 2006-08-23  Bruno Haible  <bruno@clisp.org>
32508
32509         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
32510         of gl_LOCK_EARLY instead of gl_LOCK.
32511
32512 2006-08-23  Bruno Haible  <bruno@clisp.org>
32513
32514         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
32515         on OSF/1 to no.
32516         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
32517
32518 2006-08-23  Bruno Haible  <bruno@clisp.org>
32519
32520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
32521         as unusable.
32522
32523         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
32524         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
32525         (gl_LOCK): New macro.
32526
32527 2006-08-22  Simon Josefsson  <jas@extundo.com>
32528
32529         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
32530         to md5 module.
32531
32532 2006-08-22  Simon Josefsson  <jas@extundo.com>
32533
32534         * MODULES.html.sh: Add "Support for maintaining and release
32535         projects".
32536
32537         * build-aux/gnupload: New file, from coreutils.
32538
32539 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32540
32541         Avoid the need for AC_LIBSOURCES in m4 macros.
32542         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
32543         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
32544         * modules/check-version (EXTRA_DIST): Add check-version.h.
32545         * modules/crc (EXTRA_DIST): Add crc.h.
32546         * modules/des (EXTRA_DIST): Add des.h.
32547         * modules/gc (EXTRA_DIST): Add gc.h.
32548         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
32549         * modules/getline (EXTRA_DIST): Add getline.h.
32550         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
32551         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
32552         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
32553         * modules/md2 (EXTRA_DIST): Add md2.h.
32554         * modules/md4 (EXTRA_DIST): Add md4.h.
32555         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
32556         * modules/read-file (EXTRA_DIST): Add read-file.h.
32557         * modules/readline (EXTRA_DIST): Add readline.h.
32558         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
32559         rijndael-api-fst.h.
32560
32561 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32562
32563         * m4/rijndael.m4 (gl_ARCFOUR):
32564         * m4/arctwo.m4 (gl_ARCTWO):
32565         * m4/check-version.m4 (gl_CHECK_VERSION):
32566         * m4/crc.m4 (gl_CRC):
32567         * m4/des.m4 (gl_DES):
32568         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
32569         * m4/gc.m4 (gl_GC):
32570         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
32571         * m4/getline.m4 (gl_FUNC_GETLINE):
32572         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
32573         * m4/hmac-md5.m4 (gl_HMAC_MD5):
32574         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
32575         * m4/md2.m4 (gl_MD2):
32576         * m4/md4.m4 (gl_MD4):
32577         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
32578         * m4/read-file.m4 (gl_FUNC_READ_FILE):
32579         * m4/readline.m4 (gl_FUNC_READLINE):
32580         * m4/rijndael.m4 (gl_RIJNDAEL):
32581         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32582         to get the necessary .h files and whatnot.
32583
32584 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32585
32586         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
32587         gnulib rather than the other way around.
32588         * config/srclistvars.sh (COREUTILS): Remove.
32589
32590 2006-08-22  Jim Meyering  <jim@meyering.net>
32591
32592         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
32593
32594         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
32595
32596 2006-08-22  Eric Blake  <ebb9@byu.net>
32597
32598         * modules/regexprops-generic: New file.
32599         * MODULES.html.sh (Support for building documentation): List it.
32600
32601 2006-08-22  Eric Blake  <ebb9@byu.net>
32602
32603         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
32604         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32605         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
32606         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32607
32608 2006-08-22  Bruno Haible  <bruno@clisp.org>
32609
32610         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
32611         and lib_LTLIBRARIES like the other lib_* variables.
32612
32613 2006-08-22  Bruno Haible  <bruno@clisp.org>
32614
32615         * build-aux/x-to-1.in: New file, from GNU gettext.
32616
32617 2006-08-22  Bruno Haible  <bruno@clisp.org>
32618
32619         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
32620         <utmpx.h> exists.
32621
32622 2006-08-22  Bruno Haible  <bruno@clisp.org>
32623
32624         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
32625         <utmpx.h> exists.
32626
32627 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32628
32629         BeOS portability.
32630         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
32631         exist.
32632         Problem reported by Bruno Haible.
32633
32634 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32635
32636         Avoid the need for AC_LIBSOURCES in m4 macros.
32637         * modules/acl (EXTRA_DIST): Add acl.h.
32638         * modules/argmatch (Files): Add m4/argmatch.m4.
32639         (configure.ac): Add gl_ARGMATCH.
32640         (EXTRA_DIST): Renamed from lib_SOURCES, for
32641         consistency with the other modules.  Remove argmatch.c.
32642         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
32643         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
32644         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
32645         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
32646         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
32647         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
32648         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
32649         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
32650         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
32651         * modules/closeout (EXTRA_DIST): Add closeout.h.
32652         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
32653         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
32654         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
32655         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
32656         dirname.h; remove basename.c and stripslash.c.
32657         * modules/exclude (EXTRA_DIST): Add exclude.h.
32658         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
32659         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
32660         * modules/file-type (EXTRA_DIST): Add file-type.h.
32661         * modules/filemode (EXTRA_DIST): Add filemode.h.
32662         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
32663         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32664         * modules/fpending (EXTRA_DIST): Add __fpending.h.
32665         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
32666         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
32667         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
32668         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
32669         * modules/getdate (EXTRA_DIST): Add getdate.c.
32670         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
32671         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
32672         * modules/getpass (EXTRA_DIST): Add getpass.h.
32673         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
32674         * modules/group-member (EXTRA_DIST): Add group-member.h.
32675         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
32676         * modules/hash (EXTRA_DIST): Add hash.h.
32677         * modules/human (EXTRA_DIST): Add human.h.
32678         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
32679         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
32680         * modules/lchown (EXTRA_DIST): Add lchown.h.
32681         * modules/long-options (EXTRA_DIST): Add long-options.h.
32682         * modules/lstat (EXTRA_DIST): Add lstat.h.
32683         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
32684         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
32685         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
32686         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
32687         * modules/memxor (EXTRA_DIST): Add memxor.h.
32688         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
32689         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
32690         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
32691         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
32692         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
32693         * modules/physmem (EXTRA_DIST): Add physmem.h.
32694         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
32695         * modules/posixver (EXTRA_DIST): Add posixver.h.
32696         * modules/quote (EXTRA_DIST): Add quote.h.
32697         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
32698         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
32699         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
32700         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
32701         regex_internal.h regexec.c.
32702         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
32703         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
32704         * modules/same (EXTRA_DIST): Add same.h.
32705         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
32706         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
32707         * modules/savedir (EXTRA_DIST): Add savedir.h.
32708         * modules/sha1 (EXTRA_DIST): Add sha1.h.
32709         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
32710         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
32711         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
32712         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
32713         * modules/strdup (EXTRA_DIST): Add strdup.h.
32714         * modules/strftime (EXTRA_DIST): Add strftime.h.
32715         * modules/strndup (EXTRA_DIST): Add strndup.h.
32716         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
32717         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
32718         * modules/time_r (EXTRA_DIST): Add time_r.h.
32719         * modules/timespec (EXTRA_DIST): Add timespec.h.
32720         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
32721         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
32722         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
32723         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
32724         * modules/userspec (EXTRA_DIST): Add userspec.h.
32725         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
32726         * modules/utimens (EXTRA_DIST): Add utimens.h.
32727         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
32728         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
32729         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
32730         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
32731         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
32732         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
32733         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
32734         * modules/yesno (EXTRA_DIST): Add yesno.h.
32735
32736 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
32737
32738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
32739
32740         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
32741         * m4/dev-ino.m4, same-inode.m4: Remove.
32742
32743         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
32744         * m4/acl.m4 (AC_FUNC_ACL):
32745         * m4/backupfile.m4 (gl_BACKUPFILE):
32746         * m4/c-strtod.m4 (gl_C99_STRTOLD):
32747         * m4/canon-host.m4 (gl_CANON_HOST):
32748         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
32750         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
32751         * m4/cloexec.m4 (gl_CLOEXEC):
32752         * m4/close-stream.m4 (gl_CLOSE_STREAM):
32753         * m4/closeout.m4 (gl_CLOSEOUT):
32754         * m4/dirfd.m4 (gl_FUNC_DIRFD):
32755         * m4/dirname.m4 (gl_DIRNAME):
32756         * m4/exclude.m4 (gl_EXCLUDE):
32757         * m4/exitfail.m4 (gl_EXITFAIL):
32758         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
32759         * m4/file-type.m4 (gl_FILE_TYPE):
32760         * m4/filemode.m4 (gl_FILEMODE):
32761         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
32762         * m4/fpending.m4 (gl_FUNC_FPENDING):
32763         * m4/fprintftime.m4 (gl_FPRINTFTIME):
32764         * m4/fts.m4 (gl_FUNC_FTS):
32765         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
32766         * m4/getdate.m4 (gl_GETDATE):
32767         * m4/gethrxtime.m4 (gl_GETHRXTIME):
32768         * m4/getpagesize.m4 (gl_GETPAGESIZE):
32769         * m4/getpass.m4 (gl_FUNC_GETPASS):
32770         * m4/gettime.m4 (gl_GETTIME):
32771         * m4/getugroups.m4 (gl_GETUGROUPS):
32772         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
32773         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
32774         * m4/hard-locale.m4 (gl_HARD_LOCALE):
32775         * m4/hash.m4 (gl_HASH):
32776         * m4/idcache.m4 (gl_IDCACHE):
32777         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
32778         * m4/lchown.m4 (gl_FUNC_LCHOWN):
32779         * m4/long-options.m4 (gl_LONG_OPTIONS):
32780         * m4/lstat.m4 (gl_FUNC_LSTAT):
32781         * m4/md5.m4 (gl_MD5):
32782         * m4/memcasecmp.m4 (gl_MEMCASECMP):
32783         * m4/memcoll.m4 (gl_MEMCOLL):
32784         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
32785         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
32786         * m4/memxor.m4 (gl_MEMXOR):
32787         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
32788         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
32789         * m4/modechange.m4 (gl_MODECHANGE):
32790         * m4/mountlist.m4 (gl_MOUNTLIST):
32791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32792         * m4/openat.m4 (gl_FUNC_OPENAT):
32793         * m4/pathmax.m4 (gl_PATHMAX):
32794         * m4/physmem.m4 (gl_PHYSMEM):
32795         * m4/posixtm.m4 (gl_POSIXTM):
32796         * m4/posixver.m4 (gl_POSIXVER):
32797         * m4/quote.m4 (gl_QUOTE):
32798         * m4/quotearg.m4 (gl_QUOTEARG):
32799         * m4/readtokens.m4 (gl_READTOKENS):
32800         * m4/readutmp.m4 (gl_READUTMP):
32801         * m4/regex.m4 (gl_REGEX):
32802         * m4/safe-read.m4 (gl_SAFE_READ):
32803         * m4/safe-write.m4 (gl_SAFE_WRITE):
32804         * m4/same.m4 (gl_SAME):
32805         * m4/save-cwd.m4 (gl_SAVE_CWD):
32806         * m4/savedir.m4 (gl_SAVEDIR):
32807         * m4/settime.m4 (gl_SETTIME):
32808         * m4/sha1.m4 (gl_SHA1):
32809         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
32810         * m4/stat-macros.m4 (gl_STAT_MACROS):
32811         * m4/stat-time.m4 (gl_STAT_TIME):
32812         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
32813         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
32814         * m4/strdup.m4 (gl_FUNC_STRDUP):
32815         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
32816         * m4/strndup.m4 (gl_FUNC_STRNDUP):
32817         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
32818         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
32819         * m4/time_r.m4 (gl_TIME_R):
32820         * m4/timespec.m4 (gl_TIMESPEC):
32821         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
32822         * m4/unlinkdir.m4 (gl_UNLINKDIR):
32823         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
32824         * m4/userspec.m4 (gl_USERSPEC):
32825         * m4/utimecmp.m4 (gl_UTIMECMP):
32826         * m4/utimens.m4 (gl_UTIMENS):
32827         * m4/xalloc.m4 (gl_XALLOC):
32828         * m4/xgetcwd.m4 (gl_XGETCWD):
32829         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
32830         * m4/xreadlink.m4 (gl_XREADLINK):
32831         * m4/xstrtod.m4 (gl_XSTRTOD):
32832         * m4/yesno.m4 (gl_YESNO):
32833         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
32834         to get the necessary .h files and whatnot.
32835
32836 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
32837             Bruno Haible  <bruno@clisp.org>
32838
32839         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
32840         /bin/sh understanding of '!' conditional negation.
32841
32842 2006-08-21  Jim Meyering  <jim@meyering.net>
32843
32844         * modules/openat (Depends-on): Really alphabetize.
32845
32846         * modules/acl (Depends-on): Add error and quote.
32847
32848         * check-module (find_included_lib_files): Add at-func.c to the
32849         ok-to-include-more-than-once white list.
32850
32851         * modules/openat (Depends-on): Add lstat.  Alphabetize.
32852
32853 2006-08-21  Bruno Haible  <bruno@clisp.org>
32854
32855         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32856         Emit a pkgdata_DATA variable only if some snippets add contents to it.
32857         Reported by Martin Lambers <marlam@marlam.de>.
32858
32859 2006-08-21  Bruno Haible  <bruno@clisp.org>
32860
32861         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
32862         specify an installation location, don't emit a noinst_LIBRARIES or
32863         noinst_LTLIBRARIES assignment.
32864
32865 2006-08-21  Bruno Haible  <bruno@clisp.org>
32866
32867         BeOS portability.
32868         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
32869         BeOS has mbrtowc() but no <wctype.h>.
32870
32871 2006-08-21  Bruno Haible  <bruno@clisp.org>
32872
32873         BeOS portability.
32874         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
32875         exist.
32876
32877 2006-08-21  Bruno Haible  <bruno@clisp.org>
32878
32879         BeOS portability.
32880         * lib/mbchar.h: Include <wctype.h> only if it exists.
32881
32882 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32883
32884         Remove files that are no longer needed by their respective modules.
32885         * m4/obstack.m4: Remove.
32886         * m4/strerror_r.m4: Remove.
32887         * m4/uint32_t.m4: Remove.
32888         * m4/uintptr_t.m4: Remove.
32889         * m4/ullong_max.m4: Remove.
32890         * m4/xstrtoimax.m4: Remove.
32891         * m4/xstrtoumax.m4: Remove.
32892
32893         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
32894         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
32895         dependencies now capture this.
32896
32897         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32898         Do not use AC_LIBSOURCES, since gnulib modules now do this.
32899         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
32900         * m4/human.m4 (gl_HUMAN): Likewise.
32901         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
32902         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
32903
32904         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
32905
32906         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
32907         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
32908         stdint.
32909         * m4/human.m4 (gl_HUMAN): Likewise.
32910         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
32911         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
32912         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32913         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32914         * m4/xstrtol (gl_XSTRTOL): Likewise.
32915
32916         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
32917         AC_TYPE_LONG_LONG_INT.
32918         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
32919         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
32920         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
32921         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
32922
32923         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
32924         on stdbool.
32925
32926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
32927         (gl_PREREQ_XSTRTOUL): Remove.
32928
32929         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
32930
32931         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
32932         mode.
32933
32934 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
32935
32936         Add and change modules to make it easier for coreutils to use
32937         gnulib-tool.
32938         * modules/backupfile (Files): Remove m4/d-ino.m4.
32939         (Depends-on): Add d-ino.
32940         * modules/cycle-check (Depends-on): Add stdint.
32941         (lib_SOURCES): Add cycle-check.h.
32942         * modules/d-ino: New module.
32943         * modules/d-type: New module.
32944         * modules/error (Files): Remove m4/strerror_r.m4.
32945         * modules/filemode (Files): Add m4/st_dm_mode.m4.
32946         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32947         m4/inttypes_h.m4, m4/uintmax_t.m4.
32948         (Depends-on): Add stdint.
32949         (lib_SOURCES): Add fsusage.h.
32950         * modules/getcwd (Files): Remove d-ino.m4.
32951         (Depends-on): Add d-ino.
32952         * modules/getndelim2 (Depends-on): Add stdint.
32953         * modules/glob (Files): Remove m4/d-type.m4.
32954         (Depends-on): Add d-type.
32955         * modules/host-os: New module.
32956         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
32957         m4/inttypes_h.m4, m4/uintmax_t.m4.
32958         * Depends-on: Add stdint.
32959         (lib_SOURCES): Add human.h.
32960         * modules/inttostr (Files): Remove m4/intmax_t.m4,
32961         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
32962         m4/uintmax_t.m4, m4/ulonglong.m4.
32963         (Depends-on): Add stdint.
32964         (EXTRA_DIST): Add inttostr.h.
32965         * modules/lchmod: New module.
32966         * modules/link-follow: New module.
32967         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
32968         (Depends-on): Add lchmod.
32969         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
32970         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
32971         (Depends-on): Add stdint.
32972         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
32973         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
32974         (Depends-on): Add stdint.
32975         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
32976         * modules/perl: New module.
32977         * modules/regex (Depends-on): Add stdint.
32978         * modules/rmdir-errno: New module.
32979         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32980         m4/intmax_t.m4.
32981         (Depends-on): Add stdint.
32982         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
32983         m4/uintmax_t.m4.
32984         (Depends-on): Add stdint.
32985         * modules/unlink-busy: New module.
32986         * modules/utimecmp (Depends-on): Add stdint.
32987         * modules/uptime: New module.
32988         * modules/winsz-ioctl: New module.
32989         * modules/winsz-termios: New module.
32990         * modules/xnanosleep (Depends-on): Add nanosleep.
32991         * modules/ullong_max: Remove.
32992         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
32993         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
32994         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
32995         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
32996         (Depends-on): Add inttypes.
32997         (lib_SOURCES): Add xstrtol.h.
32998         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
32999         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
33000         * MODULES.html.sh: Move 'assert' into the assert section.
33001         Move 'dummy' into the linking section.
33002         Remove ullong_max.
33003         Add section for compatibility checks for POSIX:2001 functions,
33004         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
33005         winsz-ioctl, and winsz-termios into it.
33006         Add lchmod.
33007         Add top-level Misc section and put host-os, perl, and uptime
33008         into it.
33009
33010 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33011
33012         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
33013         now assume the stdint module.  Do not include inttypes.h.
33014         * lib/fsusage.h: Likewise.
33015         * lib/getndelim2.c: Likewise.
33016         * lib/human.h: Likewise.
33017         * lib/inttostr.h: Likewise.
33018         * lib/obstack.c: Likewise.
33019         * lib/regex_internal.h: Likewise.
33020         * lib/tempname.c: Likewise.
33021         * lib/utimecmp.c: Likewise.
33022         * lib/xstrtol.h: Likewise.
33023
33024         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
33025
33026         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
33027         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
33028         * lib/xtime.h: Likewise.
33029
33030 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33031
33032         * modules/openat (Files): Add lib/fchmodat.c.
33033         Fixes problem reported by Jay Youngman.
33034
33035 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33036
33037         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
33038         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
33039
33040 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33041             Bruno Haible  <bruno@clisp.org>
33042
33043         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
33044         and is a script that invokes bison. Tighten the code. Add comments.
33045
33046 2006-08-18  Jim Meyering  <jim@meyering.net>
33047
33048         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
33049         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
33050         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
33051         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
33052
33053 2006-08-18  Bruno Haible  <bruno@clisp.org>
33054
33055         * modules/bison-i18n: New file.
33056         * MODULES.html.sh (Internationalization functions): Add it.
33057
33058 2006-08-18  Bruno Haible  <bruno@clisp.org>
33059
33060         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
33061         sys/statvfs.h. When getmntinfo was found, check its declaration and
33062         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
33063
33064 2006-08-18  Bruno Haible  <bruno@clisp.org>
33065
33066         * m4/bison-i18n.m4: New file, from bison.
33067
33068 2006-08-18  Bruno Haible  <bruno@clisp.org>
33069
33070         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
33071         (ME_DUMMY): Treat "kernfs" as a dummy.
33072         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
33073
33074 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33075
33076         Update from coreutils.
33077
33078         2006-08-15  Jim Meyering  <jim@meyering.net>
33079
33080         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
33081
33082         2006-01-17  Jim Meyering  <jim@meyering.net>
33083
33084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
33085
33086         2006-01-11  Jim Meyering  <jim@meyering.net>
33087
33088         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
33089         Check for the lchmod function.
33090
33091 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33092
33093         Update from coreutils.
33094
33095         * lib/__fpending.h: Add copyright notice.
33096         * lib/fprintftime.h: Likewise.
33097         * lib/savedir.c: Use (C) in copyright notice.
33098         * lib/savedir.h: Likewise.
33099
33100         2006-08-15  Jim Meyering  <jim@meyering.net>
33101
33102         * lib/at-func.c: New file, with the logic of all emulated at-functions.
33103         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
33104         in support of the EXPECTED_ERRNO macro.
33105         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
33106         definitions.  Instead, define the appropriate symbols and include
33107         "at-func.c".
33108         * lib/mkdirat.c (mkdirat): Likewise.
33109         * lib/fchmodat.c (fchmodat): Likewise.
33110         (ENOSYS): Remove definition.
33111         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
33112         it.  Don't include "unistd--.h" -- it wasn't ever used.
33113
33114         2006-01-17  Jim Meyering  <jim@meyering.net>
33115
33116         Rewrite fts.c not to change the current working directory,
33117         by using openat, fstatat, fdopendir, etc..
33118
33119         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
33120         (HAVE_OPENAT_SUPPORT): Define.
33121         [_LIBC] (fchdir): Don't undef or define; no longer used.
33122         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
33123         Now, this `function' always succeeds, and consumes its file descriptor
33124         parameter -- so callers must not close such FDs.  Update callers.
33125         (diropen_fd, opendirat, cwd_advance_fd): New functions.
33126         (diropen): Add parameter, SP.  Adjust all callers.
33127         Implement using diropen_fd, rather than open.
33128         (fts_open): Initialize new member, fts_cwd_fd.
33129         Remove fts_rft-setting code.
33130         (fts_close): Close fts_cwd_fd, if necessary.
33131         (__opendir2): Define in terms of opendir or opendirat,
33132         depending on whether the FST_NOCHDIR flag is set.
33133         (fts_build): Since fts_safe_changedir consumes its FD, and since
33134         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
33135         and close the dup'd file descriptor upon failure.
33136         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
33137         (fts_safe_changedir): Tweak semantics to reflect that this function
33138         now calls cwd_advance_fd and hence consumes its FD argument.
33139         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
33140         [struct FTS] (fts_rft): Remove now-unused member.
33141         [struct FTS] (fts_cycle.state): Improve comment.
33142
33143         * lib/openat.c (openat_needs_fchdir): New function.
33144         * lib/openat.h (openat_needs_fchdir): Declare it.
33145
33146 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
33147
33148         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
33149         Problem and fix reported by Pádraig Brady in
33150         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
33151
33152 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33153
33154         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
33155
33156 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33157
33158         * lib/memcoll.c (memcoll): Optimize for the common case where the
33159         arguments are bytewise equal.
33160
33161 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33162
33163         * doc/regexprops-generic.texi: Add a copyright notice.
33164
33165 2006-08-15  Bruno Haible  <bruno@clisp.org>
33166
33167         * modules/tmpdir (License): Change to LGPL.
33168
33169 2006-08-15  Bruno Haible  <bruno@clisp.org>
33170
33171         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
33172         module.
33173
33174 2006-08-14  Simon Josefsson  <jas@extundo.com>
33175
33176         * config/srclist.txt: Add gnupload.
33177
33178 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33179
33180         Change copyright notice from LGPL 2 to GPL 2, since that's the
33181         standard form used in the gnulib repository.
33182         * tests/test-lock.c: Likewise.
33183         * tests/test-stdint.c: Likewise.
33184         * tests/test-tls.c: Likewise.
33185
33186         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
33187         prelude-manager.  User shorter URLs for GNU projects, without '?'.
33188         Add copyright notice.
33189
33190         * check-module: Add copyright notice.  Output a copyright
33191         notice if "--version" is specified.
33192         * modules/COPYING: New file.
33193         * tests/test-getaddrinfo.c: Add copyright notice.
33194         * tests/test-verify.c: Likewise.
33195
33196 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33197
33198         Change copyright notice from LGPL 2 to GPL 2, since that's the
33199         standard form used in the gnulib repository.
33200         * lib/lock.c: LGPL -> GPL.
33201         * lib/lock.h: Likewise.
33202         * lib/strnlen1.c: Likewise.
33203         * lib/strnlen1.h: Likewise.
33204         * lib/tls.c: Likewise.
33205         * lib/tls.h: Likewise.
33206         * lib/tmpdir.c: Likewise.
33207
33208         * lib/TODO: Remove; this belongs only in coreutils.
33209
33210 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33211
33212         Add copyright notices to long-enough files that lack them, since
33213         otherwise the files aren't clearly free.  Use the same notice that
33214         getdate.texi already uses.
33215         * doc/alloca-opt.texi: Add copyright notice.
33216         * doc/alloca.texi: Likewise.
33217         * doc/ctime.texi: Likewise.
33218         * doc/functions.texi: Likewise.
33219         * doc/gcd.texi: Likewise.
33220         * doc/gnulib-tool.texi: Likewise.
33221         * doc/inet_ntoa.texi: Likewise.
33222         * doc/visibility.texi: Likewise.
33223
33224         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
33225         * doc/quote.texi: Add copyright notice.
33226
33227         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
33228         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
33229         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
33230         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
33231         is now obsolete, and give a pointer to the Sun list.
33232         Add copyright notice.
33233
33234 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33235
33236         * config/srclistvars.sh: Add copyright notice.
33237
33238 2006-08-14  Eric Blake  <ebb9@byu.net>
33239
33240         Import the following change from libc:
33241
33242         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
33243
33244         Upstream bug 2997.
33245         * lib/misc/error.c: Add space between program name and message if file
33246         name is missing.
33247
33248 2006-08-12  Karl Berry  <karl@gnu.org>
33249
33250         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
33251         remove, these originate in gnulib now.
33252
33253 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33254
33255         * doc/Makefile (standards.info standards.html standards.dvi):
33256         Also depend on make-stds.texi.
33257
33258 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33259
33260         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
33261         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
33262
33263         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
33264         in wchar_t.  Problem reported by Eric Blake.
33265
33266         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
33267         LEN is smaller than SIZE.  Suggested by Bruno Haible.
33268         Also, help the compiler to keep LEN in a register.
33269
33270 2006-08-11  Eric Blake  <ebb9@byu.net>
33271
33272         * users.txt: Sort.  Add tar.
33273
33274 2006-08-11  Bruno Haible  <bruno@clisp.org>
33275
33276         * users.txt: New file.
33277
33278 2006-08-11  Bruno Haible  <bruno@clisp.org>
33279
33280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
33281         before <wchar.h>. Needed for OSF/1 and BSD/OS.
33282
33283 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33284
33285         * modules/snprintf (Depends-on): Remove minmax.
33286         (Maintainer): Add self and Bruno.
33287
33288 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33289
33290         * lib/.cppi-disable: Add snprintf.h, socket_.h.
33291         * lib/snprintf.c: Include <errno.h> and <limits.h>.
33292         (EOVERFLOW): Define if the system does not.
33293         Do not include "minmax.h"; it wasn't used.
33294         (snprintf): Don't assume size_t promotes to an unsigned type.
33295         Fix bug when generated string was too long for the buffer: the
33296         buffer's contents are supposed to be the initial prefix of the
33297         output.  Don't assume vasnprintf returns EOVERFLOW if the size
33298         exceeds INT_MAX; do the check ourselves.
33299
33300         Import the following changes from libc:
33301
33302         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
33303
33304         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
33305         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
33306         set wc to the byte which couldn't be converted.
33307         (re_string_reconstruct): Don't clear valid_raw_len before calling
33308         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
33309         tip_context using re_string_context_at.
33310
33311         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
33312
33313         * lib/posix/regex.h: g++ still cannot handled [restrict].
33314
33315         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
33316
33317         * lib/posix/regex.h: Remove special handling for VMS.
33318
33319 2006-08-10  Jim Meyering  <jim@meyering.net>
33320
33321         * modules/same-inode: New module.
33322         * modules/dev-ino: New module.
33323         * modules/cycle-check: Depend on these modules, rather than simply
33324         including their .h files.
33325         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
33326         required via m4/cycle-check.m4.
33327         * modules/same: Depend on new same-inode module, rather than
33328         including same-inode.h.
33329         * modules/chdir-safer: New file.
33330
33331         * modules/chown (Depends-on): Add stat-macros.
33332
33333 2006-08-10  Jim Meyering  <jim@meyering.net>
33334
33335         * m4/cycle-check.m4: New file.
33336         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
33337         * m4/dev-ino.m4, m4/same-inode.m4: New files.
33338
33339 2006-08-10  Eric Blake  <ebb9@byu.net>
33340
33341         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
33342         in from original proposal.
33343
33344 2006-08-10  Eric Blake  <ebb9@byu.net>
33345         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33346
33347         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
33348         namespace.
33349
33350 2006-08-10  Bruno Haible  <bruno@clisp.org>
33351
33352         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
33353         as well.
33354
33355 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33356
33357         Sync from coreutils.
33358
33359         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
33360
33361         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
33362         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
33363
33364 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33365
33366         * modules/restrict: Remove; no longer needed now that we assume
33367         Autoconf 2.59 or later.
33368         * MODULES.html.sh: Remove 'restrict'.
33369         * modules/argp (Depends-on): Remove 'restrict'.
33370         * modules/base64 (Depends-on): Likewise.
33371         * modules/gc (Depends-on): Likewise.
33372         * modules/getaddrinfo (Depends-on): Likewise.
33373         * modules/glob (Depends-on): Likewise.
33374         * modules/inet_ntop (Depends-on): Likewise.
33375         * modules/inet_pton (Depends-on): Likewise.
33376         * modules/memxor (Depends-on): Likewise.
33377         * modules/regex (Depends-on): Likewise.
33378         * modules/strtok_r (Depends-on): Likewise.
33379         * modules/time_r (Depends-on): Likewise.
33380
33381 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33382
33383         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
33384         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
33385         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33386         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
33387         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
33388         * m4/memxor.m4 (gl_MEMXOR): Likewise.
33389         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
33390         gl_C_RESTRICT replaced by AC_C_RESTRICT.
33391
33392         Merge from coreutils.
33393         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
33394         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
33395         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33396         * m4/time_r.m4 (gl_TIME_R): Likewise.
33397
33398 2006-08-09  Karl Berry  <karl@gnu.org>
33399
33400         * config/srclist.txt: no more gettext-tools, per Bruno.
33401
33402 2006-08-08  Eric Blake  <ebb9@byu.net>
33403
33404         * modules/verror: New module.
33405         * MODULES.html.sh: Document it.
33406
33407 2006-08-08  Eric Blake  <ebb9@byu.net>
33408
33409         * lib/verror.h, lib/verror.c: New files.
33410
33411 2006-08-08  Eric Blake  <ebb9@byu.net>
33412
33413         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
33414         verror_at_line output complies with GNU Coding Standards even when
33415         file is NULL.
33416
33417 2006-08-07  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
33420         versions of AIX.
33421         Reported by Ralf Wildenhues.
33422
33423 2006-08-07  Bruno Haible  <bruno@clisp.org>
33424
33425         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
33426         in an AC_DEFUN. Needed so that the autoconf snippets can use
33427         AC_REQUIRE.
33428
33429 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33430
33431         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33432         Initialize pkgdata_DATA.
33433         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
33434         overriding it.
33435
33436 2006-08-06  Eric Blake  <ebb9@byu.net>
33437
33438         * lib/error.h: Fold in some upstream changes from glibc.
33439         * lib/error.c: Likewise.
33440
33441 2006-08-04  Bruno Haible  <bruno@clisp.org>
33442
33443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33444         Make the mostlyclean-local rule depend on mostlyclean-generic.
33445         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
33446
33447 2006-07-31  Bruno Haible  <bruno@clisp.org>
33448
33449         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
33450         <stdlib.h>, <string.h>.
33451
33452 2006-07-30  Bruno Haible  <bruno@clisp.org>
33453
33454         * modules/readlink (License): Change to LGPL.
33455
33456 2006-07-30  Bruno Haible  <bruno@clisp.org>
33457
33458         * modules/javaversion (Makefile.am): Distribute javaversion.java and
33459         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
33460         set PKGDATADIR to point to it.
33461
33462 2006-07-30  Bruno Haible  <bruno@clisp.org>
33463
33464         * modules/csharpexec (configure.ac): Comment out macro invocation.
33465         * modules/javaexec (configure.ac): Likewise.
33466         * modules/javacomp-script (configure.ac): Likewise.
33467
33468         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
33469
33470 2006-07-30  Bruno Haible  <bruno@clisp.org>
33471
33472         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
33473         linked-list.
33474
33475 2006-07-30  Bruno Haible  <bruno@clisp.org>
33476
33477         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
33478
33479 2006-07-30  Bruno Haible  <bruno@clisp.org>
33480
33481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33482         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
33483         get removed.
33484
33485 2006-07-29  Bruno Haible  <bruno@clisp.org>
33486
33487         Make it possible for gnulib-tool to work with locally modified or
33488         augmented gnulib repositories.
33489         * gnulib-tool (func_usage): Document --local-dir option.
33490         (local_gnulib_dir): New variable.
33491         Handle --local-dir option.
33492         (func_lookup_file): New function.
33493         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
33494         (func_get_description, func_get_filelist, func_get_description,
33495         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
33496         func_get_automake_snippet, func_get_include_directive,
33497         func_get_license, func_get_maintainer): Use func_lookup_file.
33498         (func_import, func_create_testdir): Use func_lookup_file.
33499
33500 2006-07-29  Bruno Haible  <bruno@clisp.org>
33501
33502         * modules/setenv (Depends-on): Add unistd.
33503
33504 2006-07-29  Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
33507
33508 2006-07-29  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
33511
33512 2006-07-29  Bruno Haible  <bruno@clisp.org>
33513
33514         * gnulib-tool (import, update): If there is no Makefile.am, look at
33515         aclocal.m4, instead of bailing out.
33516
33517 2006-07-29  Bruno Haible  <bruno@clisp.org>
33518
33519         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
33520         Categorize the options by when they are useful.
33521
33522 2006-07-29  Bruno Haible  <bruno@clisp.org>
33523
33524         * gnulib-tool (func_usage): Document option --no-libtool.
33525         Handle option --no-libtool.
33526         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
33527         for changed semantics of $libtool variable.
33528         (func_import): Likewise. If libtool is not used, show this through
33529         an option --no-libtool.
33530         (func_create_testdir): Update.
33531
33532 2006-07-29  Bruno Haible  <bruno@clisp.org>
33533
33534         * gnulib-tool (func_import): Extend error message about missing
33535         --doc-base.
33536
33537 2006-07-29  Bruno Haible  <bruno@clisp.org>
33538
33539         * gnulib-tool (func_import): Don't create the $docbase directory if
33540         there is no file to store there.
33541
33542 2006-07-29  Bruno Haible  <bruno@clisp.org>
33543
33544         * gnulib-tool (autoconf_minversion): If a --dir option is given and
33545         relevant, look for configure.ac there, not in the current directory.
33546         Also use a simple search for AC_PREREQ, not "autoconf --trace".
33547
33548 2006-07-29  Bruno Haible  <bruno@clisp.org>
33549
33550         * gnulib-tool (SORT): New variable.
33551         (func_usage): Undocument --assume-autoconf option.
33552         Remove --assume-autoconf option handling.
33553         (autoconf_minversion): Determine from the contents of configure.ac.
33554         (func_import): Remove autoconf_minversion handling.
33555         Suggested by Eric Blake.
33556
33557 2006-07-29  Bruno Haible  <bruno@clisp.org>
33558
33559         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
33560
33561 2006-07-29  Bruno Haible  <bruno@clisp.org>
33562
33563         * config/srclist.txt (*setenv.[ch]): Remove rules.
33564
33565 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33566
33567         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
33568
33569 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33570
33571         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
33572         arpa/inet.h.
33573
33574 2006-07-28  Simon Josefsson  <jas@extundo.com>
33575
33576         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
33577         * modules/inet_pton (Depends-on): Likewise.
33578
33579 2006-07-28  Simon Josefsson  <jas@extundo.com>
33580
33581         * m4/netinet_in_h.m4: New file.
33582
33583 2006-07-28  Simon Josefsson  <jas@extundo.com>
33584
33585         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
33586         #include's.
33587
33588 2006-07-28  Simon Josefsson  <jas@extundo.com>
33589
33590         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
33591         #include's.
33592
33593 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
33594
33595         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
33596         setgid on directories only if they set these bits.
33597         * lib/modechange.h: Remove obsolete comment about masks.
33598
33599 2006-07-28  Eric Blake  <ebb9@byu.net>
33600
33601         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
33602         macro expansion.
33603
33604 2006-07-28  Bruno Haible  <bruno@clisp.org>
33605
33606         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
33607
33608 2006-07-28  Bruno Haible  <bruno@clisp.org>
33609
33610         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
33611
33612 2006-07-28  Bruno Haible  <bruno@clisp.org>
33613
33614         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33615         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33616         Define fallbacks.
33617         Avoids link error on FreeBSD 4.x.
33618         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33619
33620         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
33621         encoding.
33622         * lib/mbswidth.c (iswcntrl): Likewise.
33623
33624 2006-07-27  Bruno Haible  <bruno@clisp.org>
33625
33626         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
33627         test.
33628
33629 2006-07-27  Bruno Haible  <bruno@clisp.org>
33630
33631         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
33632         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
33633         defined.
33634
33635 2006-07-26  Eric Blake  <ebb9@byu.net>
33636
33637         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
33638
33639 2006-07-26  Eric Blake  <ebb9@byu.net>
33640
33641         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
33642         like mingw that lack mkstemp.
33643         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
33644         avoid compilation warning on mingw.
33645
33646 2006-07-26  Bruno Haible  <bruno@clisp.org>
33647
33648         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
33649         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
33650         INT_FAST*_MIN, INTPTR_MIN.
33651
33652 2006-07-25  Bruno Haible  <bruno@clisp.org>
33653
33654         * modules/version-etc (Depends-on): Add stdarg.
33655
33656 2006-07-25  Bruno Haible  <bruno@clisp.org>
33657
33658         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
33659         complex commands.
33660
33661 2006-07-25  Bruno Haible  <bruno@clisp.org>
33662
33663         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
33664         defined in <stdarg.h> or config.h.
33665
33666 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33667
33668         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
33669         (gl_STDIO_SAFER): Remove.
33670
33671 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
33672
33673         * MODULES.html.sh (File stream based Input/Output):
33674         Add fopen-safer, tmpfile-safer; remove stdio-safer.
33675         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
33676         * modules/fopen-safer, modules/tmpfile-safer: New files.
33677         * modules/stdio-safer: Remove.
33678
33679 2006-07-24  Bruno Haible  <bruno@clisp.org>
33680
33681         * modules/tmpdir: New file.
33682         * MODULES.html.sh (File system functions): Add it.
33683
33684 2006-07-24  Bruno Haible  <bruno@clisp.org>
33685
33686         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
33687         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
33688
33689 2006-07-24  Bruno Haible  <bruno@clisp.org>
33690
33691         * modules/clean-temp: New file.
33692
33693 2006-07-24  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/tmpdir.m4: New file, from GNU gettext.
33696
33697 2006-07-24  Bruno Haible  <bruno@clisp.org>
33698
33699         * lib/tmpdir.h: New file, from GNU gettext.
33700         * lib/tmpdir.c: New file, from GNU gettext.
33701
33702 2006-07-24  Bruno Haible  <bruno@clisp.org>
33703
33704         * lib/clean-temp.h: New file, from GNU gettext.
33705         * lib/clean-temp.c: New file, from GNU gettext.
33706
33707 2006-07-23  Eric Blake  <ebb9@byu.net>
33708
33709         * modules/stdio-safer (Files): Add tmpfile-safer.c.
33710         (Depends-on): Add binary-io.
33711
33712 2006-07-23  Eric Blake  <ebb9@byu.net>
33713
33714         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
33715
33716 2006-07-23  Eric Blake  <ebb9@byu.net>
33717
33718         * lib/tmpfile-safer.c: New file.
33719         * lib/stdio-safer.h (fopen_safer): Add prototype.
33720         * lib/stdio--.h (tmpfile): Make safer.
33721
33722 2006-07-23  Bruno Haible  <bruno@clisp.org>
33723
33724         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
33725         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
33726         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
33727         gl_linked_remove_at): Use it.
33728
33729 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33730         and Simon Josefsson <jas@extundo.com>
33731
33732         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
33733
33734         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
33735
33736 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33737
33738         * modules/close-stream: New file.
33739         * modules/closeout (Description): Make it clear that it exits
33740         with a diagnostic on error.
33741         (Depends-on): Add close-stream.  Remove fpending, stdbool.
33742         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
33743
33744 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33745
33746         * m4/close-stream.m4: New file.
33747
33748 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33749
33750         * lib/close-stream.c, lib/close-stream.h: New files.
33751
33752 2006-07-22  Bruno Haible  <bruno@clisp.org>
33753
33754         Merge from GNU gettext 0.15.
33755
33756         2006-05-01  Bruno Haible  <bruno@clisp.org>
33757
33758                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
33759
33760         2006-07-22  Bruno Haible  <bruno@clisp.org>
33761
33762                 * modules/javaversion: New file.
33763                 * MODULES.html.sh (Java): Add javaversion.
33764
33765         2006-03-12  Bruno Haible  <bruno@clisp.org>
33766
33767                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
33768
33769         2005-12-04  Bruno Haible  <bruno@clisp.org>
33770
33771                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
33772                 (untested).
33773
33774         2006-06-21  Bruno Haible  <bruno@clisp.org>
33775
33776                 Avoid warnings from recent versions of mcs.
33777                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
33778                 -o, -L, -r any more. Use options documented since mcs-1.0
33779                 instead. Similarly for -g.
33780
33781         2005-12-04  Bruno Haible  <bruno@clisp.org>
33782
33783                 * build-aux/csharpcomp.sh.in: Suffix for resources is
33784                 .resources, not .resource.
33785
33786         2005-07-09  Bruno Haible  <bruno@clisp.org>
33787
33788                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
33789                 add a .dll suffix.
33790                 Reported by Mark Junker <mjscod@gmx.de>.
33791
33792         2006-07-22  Bruno Haible  <bruno@clisp.org>
33793
33794                 * modules/gettext: Upgrade to gettext-0.15.
33795                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
33796                 m4/visibility.m4.
33797                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
33798
33799 2006-07-22  Bruno Haible  <bruno@clisp.org>
33800
33801         Merge from GNU gettext 0.15.
33802
33803         2006-03-25  Bruno Haible  <bruno@clisp.org>
33804
33805                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
33806
33807         2006-07-21  Bruno Haible  <bruno@clisp.org>
33808
33809                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
33810                 "1.1".
33811
33812         2006-05-09  Bruno Haible  <bruno@clisp.org>
33813
33814                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
33815                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
33816                 for the conftestver execution.
33817
33818         2006-05-01  Bruno Haible  <bruno@clisp.org>
33819
33820                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
33821                 optional target-version argument. Verify that the compiler
33822                 groks source of the specified source-version, or add -source
33823                 option as necessary. Verify that the compiler produces
33824                 bytecode in the specified target-version, or add -target and
33825                 -source options as necessary. Make the result of the test
33826                 available as variable CONF_JAVAC. Also log error output in
33827                 config.log.
33828
33829         2006-03-11  Bruno Haible  <bruno@clisp.org>
33830
33831                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
33832
33833         2006-05-09  Bruno Haible  <bruno@clisp.org>
33834
33835                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
33836                 CLASSPATH_SEPARATOR to a semicolon.
33837
33838         2006-03-12  Bruno Haible  <bruno@clisp.org>
33839
33840                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
33841                 available as variable CONF_JAVA, for subsequent autoconf
33842                 tests. Also log error output in config.log.
33843
33844         2006-07-19  Bruno Haible  <bruno@clisp.org>
33845
33846                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
33847                 that getline works on glibc2 systems. Needed to avoid trouble
33848                 in relocatable.c.
33849                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
33850
33851         2005-12-04  Bruno Haible  <bruno@clisp.org>
33852
33853                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
33854                 launcher (untested).
33855
33856         2005-12-04  Bruno Haible  <bruno@clisp.org>
33857
33858                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
33859
33860         2006-07-22  Bruno Haible  <bruno@clisp.org>
33861
33862                 * gettext.m4: Update from GNU gettext-0.15.
33863                 * nls.m4: Likewise.
33864                 * po.m4: Likewise.
33865                 * inttypes-pri.m4: Likewise.
33866                 * inttypes-h.m4: Renamed from inttypes.m4.
33867                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
33868
33869 2006-07-22  Bruno Haible  <bruno@clisp.org>
33870
33871         Merge from GNU gettext 0.15.
33872
33873         2005-07-05  Bruno Haible  <bruno@clisp.org>
33874
33875                 * printf-args.c (printf_fetchargs): Work around broken
33876                 definition of wint_t on mingw.
33877
33878         2005-02-12  Bruno Haible  <bruno@clisp.org>
33879
33880                 * xallocsa.h: Add extern "C" for C++.
33881
33882         2006-05-17  Bruno Haible  <bruno@clisp.org>
33883
33884                 Cygwin portability.
33885                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
33886
33887         2006-04-30  Bruno Haible  <bruno@clisp.org>
33888
33889                 * progreloc.c: Include <mach-o/dyld.h> if available.
33890                 (find_executable): Use _NSGetExecutablePath when possible.
33891
33892         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
33893
33894                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
33895                 function.
33896
33897         2005-12-29  Bruno Haible  <bruno@clisp.org>
33898
33899                 * progreloc.c (set_program_name_and_installdir): Fix
33900                 compilation error.
33901
33902         2005-12-04  Bruno Haible  <bruno@clisp.org>
33903
33904                 Cygwin portability.
33905                 * progreloc.c: Include <windows.h> also on Cygwin.
33906                 (find_executable): Add support for Cygwin.
33907                 (set_program_name_and_installdir): Handle also platforms with
33908                 nonempty EXEEXT.
33909
33910         2006-07-11  Bruno Haible  <bruno@clisp.org>
33911
33912                 * javacomp.c: Fix a comment.
33913                 Reported by Jim Meyering.
33914
33915         2006-04-30  Bruno Haible  <bruno@clisp.org>
33916
33917                 * javacomp.h (compile_java_class): Add source_version,
33918                 target_version arguments.
33919                 * javacomp.c: Rewritten to choose only a compiler that
33920                 respects the specified source_version and target_version.
33921
33922         2006-06-27  Bruno Haible  <bruno@clisp.org>
33923
33924                 Assume correct S_ISDIR macro.
33925                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
33926
33927         2006-07-22  Bruno Haible  <bruno@clisp.org>
33928
33929                 * javaversion.h: New file, from GNU gettext.
33930                 * javaversion.c: New file, from GNU gettext.
33931                 * javaversion.java: New file, from GNU gettext.
33932                 * javaversion.class: New file, from GNU gettext.
33933
33934         2006-05-17  Bruno Haible  <bruno@clisp.org>
33935
33936                 Cygwin portability.
33937                 * javaexec.c (execute_java_class): Test for jview program
33938                 also on Cygwin.
33939
33940         2006-04-09  Bruno Haible  <bruno@clisp.org>
33941
33942                 * fatal-signal.c: Don't include string.h.
33943                 (at_fatal_signal): Use a copying loop instead of memcpy.
33944
33945         2005-12-04  Bruno Haible  <bruno@clisp.org>
33946
33947                 * csharpexec.c: Add support for 'clix' launcher (untested).
33948                 (execute_csharp_using_sscli): New function.
33949                 (execute_csharp_program): Call it.
33950
33951         2006-06-21  Bruno Haible  <bruno@clisp.org>
33952
33953                 Avoid warnings from recent versions of mcs.
33954                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
33955                 -o, -L, -r any more. Use options documented since mcs-1.0
33956                 instead. Similarly for -g.
33957
33958         2005-07-09  Bruno Haible  <bruno@clisp.org>
33959
33960                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
33961                 add a .dll suffix.
33962                 Reported by Mark Junker <mjscod@gmx.de>.
33963
33964         2006-06-17  Bruno Haible  <bruno@clisp.org>
33965
33966                 * config.charset: Update for NetBSD 3.0.
33967
33968         2006-05-17  Bruno Haible  <bruno@clisp.org>
33969
33970                 Cygwin portability.
33971                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
33972
33973         2006-05-16  Bruno Haible  <bruno@clisp.org>
33974
33975                 * localcharset.c [CYGWIN]: Include <windows.h>.
33976                 (get_charset_aliases): For Cygwin, return the same CPxxx
33977                 aliases list as under WIN32.
33978                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
33979                 the environment variables. Fall back to GetACP().
33980
33981         2006-04-05  Bruno Haible  <bruno@clisp.org>
33982
33983                 * config.charset: Update Juan Manuel Guerrero's address.
33984
33985         2005-02-12  Bruno Haible  <bruno@clisp.org>
33986
33987                 * allocsa.h: Add extern "C" for C++.
33988
33989         2005-02-10  Bruno Haible  <bruno@clisp.org>
33990
33991                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
33992                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
33993
33994         2006-07-22  Bruno Haible  <bruno@clisp.org>
33995
33996                 * gettext.h: Update to GNU gettext-0.15.
33997
33998 2006-07-22  Bruno Haible  <bruno@clisp.org>
33999
34000         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
34001         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
34002         lib-prefix.m4, longdouble.m4, ssize_t.m4.
34003
34004 2006-07-21  Eric Blake  <ebb9@byu.net>
34005
34006         * modules/stdlib-safer: New file.
34007         * MODULES.html.sh (File stream based Input/Output): Add
34008         stdlib-safer.
34009
34010 2006-07-21  Eric Blake  <ebb9@byu.net>
34011
34012         * lib/stdlib-safer.h: New file from coreutils, required by
34013         stdlib--.h.
34014
34015 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34016
34017         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
34018
34019 2006-07-20  Bruno Haible  <bruno@clisp.org>
34020
34021         * gnulib-tool: Recognize new option --assume-autoconf.
34022         (autoconf_minversion): New variable.
34023         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
34024
34025 2006-07-20  Bruno Haible  <bruno@clisp.org>
34026
34027         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
34028
34029 2006-07-19  Derek R. Price  <derek@ximbiot.com>
34030
34031         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
34032         Reindent and repaginate.
34033
34034 2006-07-19  Derek Price  <derek@ximbiot.com>
34035
34036         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
34037         Correct grammar.
34038
34039 2006-07-17  Bruno Haible  <bruno@clisp.org>
34040
34041         * modules/list: New file.
34042         * modules/array-list: New file.
34043         * modules/carray-list, modules/carray-list-tests: New files.
34044         * modules/linked-list, modules/linked-list-tests: New files.
34045         * modules/avltree-list, modules/avltree-list-tests: New files.
34046         * modules/rbtree-list, modules/rbtree-list-tests: New files.
34047         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
34048         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
34049         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
34050         * modules/oset: New file.
34051         * modules/array-oset: New file.
34052         * modules/avltree-oset, modules/avltree-oset-tests: New files.
34053         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
34054         * tests/test-carray_list.c: New file.
34055         * tests/test-linked_list.c: New file.
34056         * tests/test-avltree_list.c: New file.
34057         * tests/test-rbtree_list.c: New file.
34058         * tests/test-linkedhash_list.c: New file.
34059         * tests/test-avltreehash_list.c: New file.
34060         * tests/test-rbtreehash_list.c: New file.
34061         * tests/test-avltree_oset.c: New file.
34062         * tests/test-rbtree_oset.c: New file.
34063         * MODULES.html.sh (Container data structures): New section.
34064
34065 2006-07-17  Bruno Haible  <bruno@clisp.org>
34066
34067         * m4/gl_list.m4: New file.
34068
34069 2006-07-17  Bruno Haible  <bruno@clisp.org>
34070
34071         * lib/gl_list.h: New file.
34072         * lib/gl_list.c: New file.
34073         * lib/gl_array_list.h: New file.
34074         * lib/gl_array_list.c: New file.
34075         * lib/gl_carray_list.h: New file.
34076         * lib/gl_carray_list.c: New file.
34077         * lib/gl_linked_list.h: New file.
34078         * lib/gl_linked_list.c: New file.
34079         * lib/gl_anylinked_list1.h: New file.
34080         * lib/gl_anylinked_list2.h: New file.
34081         * lib/gl_avltree_list.h: New file.
34082         * lib/gl_avltree_list.c: New file.
34083         * lib/gl_anyavltree_list1.h: New file.
34084         * lib/gl_anyavltree_list2.h: New file.
34085         * lib/gl_rbtree_list.h: New file.
34086         * lib/gl_rbtree_list.c: New file.
34087         * lib/gl_anyrbtree_list1.h: New file.
34088         * lib/gl_anyrbtree_list2.h: New file.
34089         * lib/gl_anytree_list1.h: New file.
34090         * lib/gl_anytree_list2.h: New file.
34091         * lib/gl_linkedhash_list.h: New file.
34092         * lib/gl_linkedhash_list.c: New file.
34093         * lib/gl_anyhash_list1.h: New file.
34094         * lib/gl_anyhash_list2.h: New file.
34095         * lib/gl_avltreehash_list.h: New file.
34096         * lib/gl_avltreehash_list.c: New file.
34097         * lib/gl_rbtreehash_list.h: New file.
34098         * lib/gl_rbtreehash_list.c: New file.
34099         * lib/gl_anytreehash_list1.h: New file.
34100         * lib/gl_anytreehash_list2.h: New file.
34101
34102         * lib/gl_oset.h: New file.
34103         * lib/gl_oset.c: New file.
34104         * lib/gl_array_oset.h: New file.
34105         * lib/gl_array_oset.c: New file.
34106         * lib/gl_avltree_oset.h: New file.
34107         * lib/gl_avltree_oset.c: New file.
34108         * lib/gl_rbtree_oset.h: New file.
34109         * lib/gl_rbtree_oset.c: New file.
34110         * lib/gl_anytree_oset.h: New file.
34111
34112 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34113
34114         * m4/mkancesdirs.m4: New file.
34115         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
34116         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
34117         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
34118         it.
34119
34120 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34121
34122         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
34123         * lib/mkancesdirs.h: New files.
34124         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
34125         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
34126         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
34127         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
34128         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
34129         callers changed.  Revamp internals significantly, by not
34130         attempting to create directories that are temporarily more
34131         permissive than the final results.  Do not attempt to use
34132         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
34133         This removes some race conditions, fixes some bugs, and simplifies
34134         things.  Use new dirchownmod function to do owner and mode changes.
34135         * lib/mkdir-p.h: Likewise.
34136         * lib/modechange.c (octal_to_mode): New function.
34137         (struct mode_change): New member mentioned.
34138         (make_node_op_equals): New arg mentioned.  All callers changed.
34139         (mode_compile): Keep track of which mode bits the user has explicitly
34140         mentioned.
34141         (mode_adjust): New arg DIR, so that we implement the X op correctly.
34142         New arg PMODE_BITS, to keep track of which mode bits the user
34143         mentioned; it treats S_ISUID and S_ISGID speciall.
34144         All callers changed.
34145         * lib/modechange.h: Likewise.
34146
34147 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34148
34149         * MODULES.html.sh: Add mkancestors.
34150         * modules/mkancesdirs: New module.
34151         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
34152         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
34153         The chdir-safer and afs files are now orphans; I'll remove them
34154         unless someone speaks up.
34155         Add lib/dirchownmod.c, lib/dirchownmod.h.
34156         (Depends-on): Remove alloca, chown, save-cwd, dirname.
34157         Add lchown, mkancesdirs.
34158         (Maintainer): Add self.
34159
34160 2006-07-15  Karl Berry  <karl@gnu.org>
34161
34162         * gnulib-tool: help message wording/arrangement.
34163
34164 2006-07-14  Simon Josefsson  <jas@extundo.com>
34165
34166         * doc/gnulib.texi (Libtool and Windows): New section.
34167
34168 2006-07-12  Simon Josefsson  <jas@extundo.com>
34169
34170         * modules/gendocs (License): Fix license, approved by Karl.
34171
34172 2006-07-12  Eric Blake  <ebb9@byu.net>
34173
34174         * MODULES.html.sh: Add gendocs.
34175
34176 2006-07-11  Eric Blake  <ebb9@byu.net>
34177
34178         * modules/fdl: New module, to install doc/fdl.texi.
34179         * MODULES.html.sh: Add new section for documentation modules.
34180         * gnulib-tool: Avoid space-tab.
34181         (--doc-base): New option, to manage files from doc.
34182
34183 2006-07-11  Eric Blake  <ebb9@byu.net>
34184
34185         * m4/absolute-header.m4: Fix comments to match recent change.
34186
34187 2006-07-11  Eric Blake  <ebb9@byu.net>
34188
34189         * gnulib-tool: List --doc-base before --tests-base.
34190
34191 2006-07-11  Derek R. Price  <derek@ximbiot.com>
34192
34193         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
34194
34195 2006-07-11  Bruno Haible  <bruno@clisp.org>
34196
34197         * README: Mention where to put documentation.
34198
34199 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34200
34201         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
34202
34203 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34204
34205         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
34206         to stdint.m4.
34207
34208 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34209
34210         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
34211         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
34212         "no/such/file/stdint.h" when there is no such file, so that
34213         the resulting C code can be parsed by dodgy compilers.
34214         Problems reported by Bob Proulx.
34215
34216 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34217
34218         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
34219         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34220         macros into the GNU _D_EXACT_NAMLEN.
34221         * lib/savedir.c:  Likewise.
34222         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
34223
34224 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34225         and Paul Eggert  <eggert@cs.ucla.edu>
34226
34227         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
34228         * m4/savedir.m4:
34229         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34230         macros into the GNU _D_EXACT_NAMLEN.
34231
34232 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34233
34234         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
34235         around the absolute name, to work around a problem with the HP-UX
34236         11.23 native C compiler, reported by Bob Proulx.
34237
34238 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34239
34240         * doc/maintain.texi, make-stds.texi: Sync from
34241         <http://savannah.gnu.org/projects/gnustandards>.
34242
34243 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34244
34245         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
34246
34247 2006-07-09  Jim Meyering  <jim@meyering.net>
34248
34249         * m4/glob.m4: Remove a doubled word in a comment.
34250
34251 2006-07-09  Jim Meyering  <jim@meyering.net>
34252
34253         * lib/argp-pv.c: Remove a doubled word in a comment.
34254         * lib/check-version.c (check_version): Likewise.
34255         * lib/javacomp.c (compile_java_class): Likewise.
34256
34257 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34258
34259         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
34260         for the benefit of people using Autoconf 2.60.  If you want to
34261         support older Autoconf versions you can copy m4/onceonly_2_57.m4
34262         (or m4/onceonly.m4, if pre-2.57) manually.
34263
34264 2006-07-08  Jim Meyering  <jim@meyering.net>
34265
34266         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
34267         comment.
34268         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
34269         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
34270         comment.
34271
34272 2006-07-08  Jim Meyering  <jim@meyering.net>
34273
34274         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
34275
34276 2006-07-07  Simon Josefsson  <jas@extundo.com>
34277
34278         * tests/test-crc.c: Change expected crc value, the test vector
34279         were probably computed using the old broken crc.c?
34280
34281 2006-07-06  Simon Josefsson  <jas@extundo.com>
34282
34283         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
34284         now the canonical place for the M4 file).
34285
34286         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
34287         from the sys_socket dependency now.
34288
34289         * modules/inet_pton (Files): Ditto.
34290
34291         * modules/inet_ntop (Files): Ditto.
34292
34293 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34294
34295         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
34296         not gl_PREREQ_GETUSERSHELL.
34297
34298 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34299
34300         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
34301         with only one argument, for Autoconf 2.60.
34302         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
34303         expand to nothing, so add a shell command to avoid syntax error.
34304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
34305
34306 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34307
34308         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
34309
34310 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34311
34312         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
34313         no longer needed.  Check for isblank decl.
34314         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
34315         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
34316         of existence.
34317
34318 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34319
34320         * lib/getloadavg.c: Use __VMS, not VMS.
34321         * lib/getopt.c: Likewise.
34322         * lib/getpagesize.h: Likewise.
34323         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
34324         and probably does not work.
34325
34326 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34327
34328         * lib/.cppi-disable: Add wcwidth.
34329         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
34330         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
34331         (ISGRAPH): Remove.  All uses changed to isgraph.
34332         (FOLD) [!defined _LIBC]: Remove special case.
34333         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
34334         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
34335         HAVE_ISBLANK.
34336         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
34337         case.
34338
34339 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34340
34341         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
34342         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
34343         brackets.  Other minor changes to suppress some compiler
34344         warnings.
34345
34346 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34347         and Paul Eggert  <eggert@cs.ucla.edu>
34348
34349         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
34350         of invoking obsolescent AC_HEADER_DIRENT macro.
34351         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
34352         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
34353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34354         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34355         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
34356         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34357         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
34358         * m4/readdir.m4: Remove; no longer needed.
34359
34360 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34361         and Paul Eggert  <eggert@cs.ucla.edu>
34362
34363         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
34364         Don't worry about this obsolete case any more.
34365         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
34366         directories.
34367         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
34368         worry about this obsolete case any more.
34369         * lib/fts.c: Likewise.
34370         * lib/getcwd.c: Likewise.
34371         * lib/glob.h: Likewise.
34372         * lib/savedir.c: Likewise.
34373
34374 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34375
34376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
34377         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
34378         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
34379         needed.
34380         All uses removed.
34381         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34382         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34383         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
34384         needed.
34385         * m4/getdate.m4 (gl_GETDATE): Likewise.
34386         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34387         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34388         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34389         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34390         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34391         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34392         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
34393         needed.
34394
34395 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34396
34397         * lib/memcasecmp.c: Include <limits.h>.
34398         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
34399         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
34400         Don't assume isdigit succeeds only on '0' through '9'.
34401
34402 2006-07-05  Eric Blake  <ebb9@byu.net>
34403
34404         * modules/getaddrinfo (Depends-on): Add snprintf.
34405
34406 2006-07-05  Eric Blake  <ebb9@byu.net>
34407
34408         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
34409         to avoid 'header present but could not be compiled' on cygwin.
34410
34411 2006-07-05  Eric Blake  <ebb9@byu.net>
34412
34413         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
34414         missing from netdb.h.
34415         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
34416
34417 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34418
34419         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
34420         no longer needed.
34421         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
34422         * m4/getdate.m4 (gl_GETDATE): Likewise.
34423         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34424         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34425         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34426         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34427         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34428
34429 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34430
34431         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
34432         All uses of is_space replaced by isspace.
34433         * lib/exit.h: Don't talk about STDC_HEADERS.
34434         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
34435         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
34436         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
34437         replaced by isprint etc.
34438         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
34439         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34440         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
34441         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
34442         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
34443         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34444
34445 2006-07-05  Bruno Haible  <bruno@clisp.org>
34446
34447         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
34448         the function exists, before testing against AIX.
34449         Reported by Martin Lambers <marlam@marlam.de>.
34450
34451 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34452
34453         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
34454         From Mark D. Baushke.
34455
34456 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34457
34458         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
34459         to the absolute name, not just one, to bypass Sun C 5.8's
34460         "warning: #include of /usr/include/... may be non-portable".
34461
34462 2006-07-04  Eric Blake  <ebb9@byu.net>
34463
34464         * modules/dirname-tests: New test module.
34465         * tests/test-dirname.c: New file, replacing dirname.c
34466         TEST_DIRNAME section that was recently deleted.
34467
34468 2006-07-04  Bruno Haible  <bruno@clisp.org>
34469
34470         Assume ANSI C header files and <ctype.h> functions.
34471         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
34472         (mbsnwidth): Use isprint, iscntrl instead.
34473
34474 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34475
34476         Merge from coreutils.
34477         * MODULES.html.sh: Add xstrtold.
34478         * modules/xstrtold: New file.
34479         * modules/cycle-check (Files): Add lib/same-inode.h.
34480         * modules/dirname (Files): Add m4/double-slash-root.m4.
34481         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
34482         * modules/mkdir-p (Files): Add lib/same-inode.h.
34483         * modules/same (Files): Add lib/same-inode.h.
34484
34485 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34486
34487         * m4/absolute-header.m4: Renamed from full-header-path.m4.
34488         This is to keep the terminology clean; POSIX talks about
34489         "absolute pathnames", not "full pathnames", but the GNU
34490         Coding Standards say to use "path" for something else;
34491         so use "absolute" to keep both sides happy.
34492         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
34493         Set gl_absolute_header, not gl_full_header_path.
34494         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
34495         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
34496         All uses changed.
34497
34498         Merge from coreutils.
34499
34500         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34501
34502         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
34503         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
34504         want to require the building of c-strtod.o.
34505         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
34506         needs -lm directly.
34507         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
34508
34509         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
34510
34511         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
34512         --as-needed option if available.  Problem reported by Albert Chin in
34513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
34514         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
34515         cc merely issues a bunch of annoying warnings for --as-needed
34516         (this problem was reported by Bob Proulx).  Also, try linking with
34517         -lm to detect a bug in binutils 2.16 (this problem was reported
34518         by Ralf Wildenhues).
34519
34520         2006-06-18  Jim Meyering  <jim@meyering.net>
34521
34522         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
34523         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
34524         macro.
34525         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
34526         also check for glibc-2.4's abort-inducing bug.
34527
34528         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
34529         Low-probability clean-up should be to use rmdir to get rid of
34530         the just-created directory, not unlink.
34531
34532         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
34533         configure fail, and request a bug report to inform us about it.
34534         Add a comment that, barring reports to the contrary, in 2007 we'll
34535         assume ftruncate is universally available.
34536
34537         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34538
34539         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
34540
34541         2006-03-12  Jim Meyering  <jim@meyering.net>
34542
34543         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
34544         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
34545         * m4/same.m4 (gl_SAME): Likewise.
34546         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
34547
34548         2006-03-11  Eric Blake  <ebb9@byu.net>
34549
34550         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
34551         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
34552         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
34553         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
34554
34555 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34556
34557         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
34558         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
34559         reported by Mark D. Baushke, one in
34560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
34561
34562         Merge from coreutils.
34563
34564         * lib/.cppi-disable: Add stdint_.h.
34565         * lib/.cvsignore: Add stdint.h.
34566
34567         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34568
34569         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
34570         both double and long double versions.
34571         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
34572         * lib/xstrtold.c: New file.
34573         * lib/xstrtod.h (xstrtold): New decl.
34574
34575         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34576
34577         * lib/filemode.c (setst): Remove.
34578         (strmode): Rewrite to avoid setst.  This makes the code shorter,
34579         (arguably) clearer, and the generated code is a bit smaller on my
34580         Debian GNU/Linux stable x86 host.
34581
34582         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34583
34584         * lib/filemode.c: Include "filemode.h" first, to test the interface.
34585         Assume that filemode.h includes sys/types.h and sys/stat.h.
34586         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
34587         (ftypelet): Reorder to put common cases first, for efficiency.
34588         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
34589         to do 'M'.
34590         (strmode): Renamed from mode_string, and now stores 12 bytes instead
34591         of 10, for compatibility with FreeBSD.  All callers changed.
34592         (filemodestring): Now stores 12 bytes instead of 10, and sets file
34593         types that can't be deduced solely from st_mode.  First arg is now a
34594         const pointer.
34595         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
34596         (strmode): Renamed from mode_string.
34597         (filemodestring): New decl.
34598         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
34599         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
34600         needed.
34601         (S_ISPORT, S_ISWHT): New macros, if not already defined.
34602
34603         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
34604
34605         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
34606         fsusage.h now does that.  Include fsusage.h first, to test interface.
34607         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
34608         at most one method (the old code could have generated decls that
34609         didn't conform to C89, not that this was ever exercised).
34610         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
34611
34612         2006-03-19  Jim Meyering  <jim@meyering.net>
34613
34614         Work even in a chroot where d_ino values for entries in "/"
34615         don't match the stat.st_ino values for the same names.
34616         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
34617         number, iterate through all entries again, using lstat instead.
34618         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
34619         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
34620
34621         * lib/getcwd.c (__getcwd): Clarify a comment.
34622         Use memcpy in place of a call to strcpy.
34623
34624         2006-03-12  Jim Meyering  <jim@meyering.net>
34625
34626         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
34627         matches that of the current directory (which we're about to chdir ".."
34628         out of), then save the dev-ino of the parent, instead.
34629
34630         * lib/same-inode.h (SAME_INODE): New file/macro.
34631         * lib/chdir-safer.c (SAME_INODE): Remove definition.
34632         Include "same-inode.h", instead.
34633         * lib/same.c: Likewise.
34634         * lib/cycle-check.h: Include "same-inode.h".
34635         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
34636         * lib/cycle-check.c (SAME_INODE): Remove definition.
34637         * lib/root-dev-ino.h: Include "same-inode.h".
34638
34639         2006-03-11  Eric Blake  <ebb9@byu.net>
34640
34641         * lib/same.c (same_name): s/base_name/last_component/
34642         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
34643         * lib/filenamecat.c (file_name_concat): Likewise.
34644
34645         2006-03-11  Eric Blake  <ebb9@byu.net>,
34646                     Paul Eggert  <eggert@cs.ucla.edu>
34647
34648         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
34649         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
34650         drive prefix.
34651         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
34652         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
34653         (last_component): New method.
34654         * lib/dirname.c (dir_len): Determine when drive letters need a
34655         subsequent slash.  Preserve // when it is special.
34656         (dir_name): Don't append dot when drive letter is absolute.
34657         [TEST_DIRNAME]: Move into a full-blown gnulib test.
34658         * lib/basename.c (base_name): New semantics - malloc the result.
34659         Preserve // when it is special.  Preserve relative files that look
34660         like drive letters.
34661         (base_len): Preserve // when it is special.
34662         (last_component): New method, similar to old base_name semantics.
34663         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
34664         base_name.  Strip redundant slashes from ///.
34665
34666 2006-07-03  Jim Meyering  <jim@meyering.net>
34667
34668         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
34669         macro is used before the first cycle_check call.
34670
34671 2006-07-03  Eric Blake  <ebb9@byu.net>
34672
34673         * modules/dirname (Depends-on): Add xstrndup.
34674
34675 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34676
34677         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
34678         test cases, so that config.log is a bit easier to follow.
34679
34680 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34681
34682         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
34683         both are 64 bits, since this seems to be the tradition, and this
34684         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
34685         we ever run into a host that prefers long long to long in this
34686         case, we'll need another configure-time test.  Problem reported by
34687         Jim Meyering.
34688
34689 2006-07-02  Eric Blake  <ebb9@byu.net>
34690
34691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
34692
34693 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34694
34695         * modules/inttypes (Depends-on): No longer depends on stdint.
34696         * modules/stdint (Description): Say more about assumptions.
34697         Say that the fast types might differ.  Say macros are used.
34698         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
34699         (Makefile.am): Revise list of substituted symbols to match
34700         new stdint.m4.
34701         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
34702         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
34703         * tests/test-stdint.c (verify_same_types)
34704         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
34705         the code conforms to C99/C89.
34706         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
34707         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
34708
34709 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34710
34711         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
34712         but fix a bug, by requiring at least 64 bits.
34713         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34714         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
34715         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
34716         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
34717
34718         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
34719         changes.  Make 2.59 a prerequisite.  Check and substitute for
34720         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
34721         inttypes.h.  Do not use special include files; just use the
34722         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
34723         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
34724         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
34725         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
34726         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
34727         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
34728         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
34729         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
34730         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
34731         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
34732         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
34733         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
34734         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
34735         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
34736         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
34737         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
34738         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
34739         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
34740         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
34741         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
34742         WINT_MAX.  Check for C99 conformance more strictly, by detecting
34743         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
34744         not check for things that C99 does not require, e.g., int8_t.  If
34745         a test isn't needed unless <stdint.h> isn't working, and is
34746         unlikely to be needed for any other reason, then don't do it
34747         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
34748         size_t, since we assume C89 freestanding at least.  Do not check
34749         for sig_atomic_t, wchar_t, or wint_t, since the code now does
34750         the right thing even if the types are not defined.  Instead use:
34751         (gl_STDINT_TYPE_PROPERTIES): New macro.
34752         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
34753         testing whether <sys/types.h> clashes, as Autoconf does this for
34754         us now.  All uses removed.
34755         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
34756         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
34757         (gl_CHECK_TYPE_SAME):
34758         Remove; no longer needed.
34759         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
34760         exists, since we'll return 0 anyway in that case.
34761         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
34762
34763 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
34764
34765         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
34766         possible collision with system files.
34767         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
34768         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
34769         WCHAR_MIN and WCHAR_MAX in this case.
34770         (<stddef.h>): Do not include; no longer needed.
34771         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
34772         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
34773         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
34774         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
34775         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
34776         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
34777         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
34778         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
34779         !defined(__c99))]: Include in this case too, since it's harmless
34780         now.
34781         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
34782         dangerous to do so.
34783         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
34784         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
34785         (_STDINT_MIN, _STDINT_MAX): New macros.
34786         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
34787         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
34788         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
34789         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
34790         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
34791         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
34792         macros, not typedefs; this simplifies things quite a bit.
34793         Use long int for all types narrower than int64_t.
34794         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
34795         Define in terms of long long int or int64_t or long int,
34796         not int64_t or int32_t.  This saves some compile-time testing.
34797         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
34798         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
34799         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
34800         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
34801         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
34802         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
34803         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
34804         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
34805         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
34806         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
34807         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34808         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34809         undef any previous version and define our own version, for
34810         simplicity and consistency with the new macros for types.
34811         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
34812         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
34813         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
34814         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
34815         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
34816         @WINT_T_SUFFIX@ to keep things simple here.
34817         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
34818         Simplify by assuming typical 8/16/32/64 host, since we're
34819         already doing that elsewhere anyway.
34820         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
34821         and assume long long int is 64 bits if available.  This
34822         speeds up 'configure'.
34823
34824 2006-07-01  Eric Blake  <ebb9@byu.net>
34825
34826         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
34827         Reported by Andreas Buening.
34828
34829 2006-07-01  Eric Blake  <ebb9@byu.net>
34830
34831         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
34832
34833 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34834
34835         * lib/getaddrinfo.c: fixed typo
34836
34837 2006-06-29  Jim Meyering  <jim@meyering.net>
34838
34839         * modules/strftime (Maintainer): Add my name, since with the
34840         FPRINTFTIME changes strftime.c has forked from glibc.
34841
34842 2006-06-29  Eric Blake  <ebb9@byu.net>
34843
34844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
34845
34846 2006-06-29  Eric Blake  <ebb9@byu.net>
34847
34848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
34849
34850 2006-06-29  Eric Blake  <ebb9@byu.net>
34851
34852         * lib/stat_.h: New file.
34853
34854 2006-06-29  Eric Blake  <ebb9@byu.net>
34855
34856         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
34857         unused static function.
34858
34859 2006-06-29  Eric Blake  <ebb9@byu.net>
34860
34861         * doc/functions.texi (Function Portability): Document missing lstat
34862         on mingw.
34863
34864 2006-06-29  Eric Blake  <ebb9@byu.net>
34865
34866         * MODULES.html.sh: Add sys_stat.
34867         * modules/sys_stat: New module.
34868         * modules/mkstemp (Depends-on): Add sys_stat.
34869
34870 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34871
34872         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
34873
34874 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34875
34876         * m4/c-bs-a.m4: Removed.
34877
34878 2006-06-29  Derek R. Price  <derek@ximbiot.com>
34879
34880         * lib/strftime.c: Assume strftime() exists.
34881
34882 2006-06-29  Derek Price  <derek@ximbiot.com>
34883
34884         * modules/c-bs-a: Removed - \a is C89.
34885         * MODULES.html.sh: Remove c-bs-a.
34886
34887 2006-06-29  Bruno Haible  <bruno@clisp.org>
34888
34889         * modules/wcwidth (License): Change to LGPL.
34890
34891 2006-06-28  Simon Josefsson  <jas@extundo.com>
34892
34893         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
34894         on _WIN32.
34895
34896         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
34897         getnameinfo.
34898
34899 2006-06-28  Simon Josefsson  <jas@extundo.com>
34900
34901         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
34902
34903 2006-06-28  Simon Josefsson  <jas@extundo.com>
34904
34905         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
34906         functions there.  It will succeed on Windows XP, but on Windows
34907         2000 and (presumably) earlier, it will fail, and use the internal
34908         re-implementation.
34909         (use_win32_p): New function.
34910         (getaddrinfo): Use strtoul on servname, to support numeric ports.
34911         Support AI_NUMERICSERV to disable getservbyname.
34912         (getnameinfo): New function, only supports
34913         NI_NUMERICHOST|NI_NUMERICSERV for now.
34914
34915         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
34916         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
34917         getnameinfo.
34918
34919 2006-06-28  Eric Blake  <ebb9@byu.net>
34920
34921         * modules/wcwidth: New file.
34922         * modules/mbchar (Depends-on): Add wcwidth.
34923         * modules/mbswidth (Depends-on): Add wcwidth.
34924         * MODULES.html.sh: Add wcwidth.
34925
34926 2006-06-28  Eric Blake  <ebb9@byu.net>
34927
34928         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
34929         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
34930
34931 2006-06-28  Eric Blake  <ebb9@byu.net>
34932
34933         * lib/xvasprintf.h: Fix comments.
34934
34935 2006-06-28  Eric Blake  <ebb9@byu.net>
34936
34937         * lib/mbchar.h (wcwidth): Include wcwidth.h.
34938         * lib/mbswidth.c (wcwidth): Move from here...
34939         * lib/wcwidth.h: ...to this new file.
34940
34941 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34942
34943         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
34944
34945         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
34946         it's obsolete.
34947         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
34948
34949 2006-06-28  Derek R. Price  <derek@ximbiot.com>
34950
34951         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
34952         Autoconf 2.60 says this stuff was obsolete.
34953
34954 2006-06-28  Bruno Haible  <bruno@clisp.org>
34955
34956         * modules/wcwidth (Files): Add m4/wchar_t.m4.
34957
34958 2006-06-28  Bruno Haible  <bruno@clisp.org>
34959
34960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
34961         gt_TYPE_WCHAR_T.
34962
34963 2006-06-28  Bruno Haible  <bruno@clisp.org>
34964
34965         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
34966         declaration for wcwidth.
34967         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
34968
34969 2006-06-28  Bruno Haible  <bruno@clisp.org>
34970
34971         * lib/mkdtemp.c [MINGW]: Include <io.h>.
34972         (mkdir): Define using _mkdir.
34973
34974 2006-06-28  Bruno Haible  <bruno@clisp.org>
34975
34976         * lib/getaddrinfo.h: Fix POSIX URL.
34977         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
34978         _WIN32.
34979         (use_win32_p): Make static.
34980         (getaddrinfo): Reject service name if it is empty or does not consist
34981         solely of decimal digits, or if its value is > 65535.
34982         (getnameinfo): Remove useless casts.
34983
34984 2006-06-27  Simon Josefsson  <jas@extundo.com>
34985
34986         * modules/sys_select: New file, suggested by Bruno Haible, Paul
34987         Eggert and Martin Lambers.
34988
34989 2006-06-27  Simon Josefsson  <jas@extundo.com>
34990
34991         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
34992         Eggert and Martin Lambers.
34993
34994 2006-06-27  Bruno Haible  <bruno@clisp.org>
34995
34996         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
34997         result to 0, not to empty.
34998         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
34999
35000 2006-06-27  Bruno Haible  <bruno@clisp.org>
35001
35002         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
35003
35004 2006-06-26  Simon Josefsson  <jas@extundo.com>
35005
35006         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
35007         present.
35008
35009 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35010
35011         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
35012         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
35013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
35014
35015 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
35016
35017         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
35018
35019 2006-06-26  Bruno Haible  <bruno@clisp.org>
35020
35021         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
35022
35023 2006-06-26  Bruno Haible  <bruno@clisp.org>
35024
35025         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
35026
35027 2006-06-26  Bruno Haible  <bruno@clisp.org>
35028
35029         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
35030         SGI C compiler in pre-C99 mode.
35031         Suggested by Mark D. Baushke and Larry Jones.
35032
35033 2006-06-26  Bruno Haible  <bruno@clisp.org>
35034
35035         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
35036         WCHAR_MAX.
35037         Reported by Mark D. Baushke and Larry Jones.
35038
35039 2006-06-26  Bruno Haible  <bruno@clisp.org>
35040
35041         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
35042         in pre-C99 mode.
35043         Suggested by Mark D. Baushke and Larry Jones.
35044
35045 2006-06-23  Simon Josefsson  <jas@extundo.com>
35046             Bruno Haible  <bruno@clisp.org>
35047
35048         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
35049         Emit mostlyclean-local rule.
35050         (func_emit_tests_Makefile_am): Likewise.
35051         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
35052
35053 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
35054
35055         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
35056
35057 2006-06-23  Bruno Haible  <bruno@clisp.org>
35058
35059         * tests/test-stdint.c: Update to match ISO C 99 Technical
35060         Corrigendum 1.
35061
35062 2006-06-23  Bruno Haible  <bruno@clisp.org>
35063
35064         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
35065
35066 2006-06-23  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/stdint_.h: Treat IRIX like OpenBSD.
35069
35070 2006-06-23  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
35073         ISO C 99 Technical Corrigendum 1.
35074
35075 2006-06-22  Simon Josefsson  <jas@extundo.com>
35076
35077         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
35078         MinGW.
35079
35080 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35081
35082         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
35083         needed.  Some compiler complained about some of them.  Problem reported
35084         by Larry Jones in
35085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
35086
35087 2006-06-21  Simon Josefsson  <jas@extundo.com>
35088
35089         * tests/test-getaddrinfo.c: New file.
35090
35091         * modules/getaddrinfo-tests: New file.
35092
35093         * MODULES.html.sh: Add inet_pton.
35094
35095         * modules/inet_pton: New file.
35096
35097 2006-06-21  Simon Josefsson  <jas@extundo.com>
35098
35099         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
35100         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
35101         of using the (limited) gnulib implementation on Windows XP.
35102
35103         * m4/inet_pton.m4: New file.
35104
35105 2006-06-21  Simon Josefsson  <jas@extundo.com>
35106
35107         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
35108         variable.
35109
35110         * lib/socket_.h: Don't define WINVER.
35111
35112         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
35113         slightly modified to work in gnulib.
35114
35115 2006-06-21  Simon Josefsson  <jas@extundo.com>
35116
35117         * doc/gnulib.texi (Windows sockets): Add.
35118
35119 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35120
35121         * lib/read-file.c (fread_file): Start with buffer allocation of
35122         0 bytes rather than 1 byte; this simplifies the code.
35123         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
35124         code to free buffer and save/restore errno.
35125         (internal_read_file): Remove unused local.
35126
35127 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35128
35129         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
35130         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
35131         Problem reported by Denis Excoffier in
35132         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
35133
35134 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35135
35136         * modules/sys_socket, modules/socklen: Include sys/types since
35137         FreeBSD 4.x's sys/socket.h needs it.
35138
35139 2006-06-19  Simon Josefsson  <jas@extundo.com>
35140
35141         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
35142
35143 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35144
35145         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
35146
35147 2006-06-19  Bruno Haible  <bruno@clisp.org>
35148
35149         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
35150         and FULL_PATH_INTTYPES_H in angle brackets.
35151         Reported by Mark D. Baushke <mdb@gnu.org>.
35152
35153 2006-06-17  Eric Blake  <ebb9@byu.net>
35154
35155         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
35156         errno.
35157
35158 2006-06-17  Bruno Haible  <bruno@clisp.org>
35159
35160         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
35161         <sys/inttypes.h>.
35162
35163 2006-06-17  Bruno Haible  <bruno@clisp.org>
35164
35165         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
35166         whether errno is declared. Assume <errno.h> declares errno.
35167
35168 2006-06-17  Bruno Haible  <bruno@clisp.org>
35169
35170         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
35171
35172 2006-06-17  Bruno Haible  <bruno@clisp.org>
35173
35174         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
35175         problem on Solaris 2.5.1.
35176
35177 2006-06-16  Eric Blake  <ebb9@byu.net>
35178
35179         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
35180         * lib/unicodeio.c [!defined errno]: Likewise.
35181         * lib/strtol.c [!defined errno]: Likewise.
35182         * lib/strtod.c [!defined errno]: Likewise.
35183
35184 2006-06-15  Eric Blake  <ebb9@byu.net>
35185
35186         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
35187
35188 2006-06-15  Eric Blake  <ebb9@byu.net>
35189
35190         * config/srclist.txt (ssize_t.m4): Lose sync.
35191
35192 2006-06-15  Bruno Haible  <bruno@clisp.org>
35193
35194         * modules/stdint (Files): Include m4/full-header-path.m4,
35195         m4/size_max.m4, m4/wchar_t.m4.
35196         (Makefile.am): Many more substitutions.
35197         * modules/stdint-tests: New file.
35198         * tests/test-stdint.c: New file.
35199
35200 2006-06-15  Bruno Haible  <bruno@clisp.org>
35201
35202         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
35203         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
35204         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
35205         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
35206         gl_CHECK_TYPE_SAME): New macros.
35207
35208 2006-06-15  Bruno Haible  <bruno@clisp.org>
35209
35210         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
35211
35212 2006-06-15  Bruno Haible  <bruno@clisp.org>
35213
35214         * lib/stdint_.h: Rewritten to be fully auto-configured.
35215         Fixes bug on HP-UX/IA64.
35216
35217 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35218
35219         * lib/getdate.y (__attribute__): Don't define if already defined.
35220         Problem reported by Larry Jones.
35221         * lib/utimens.c (__attribute__): Likewise.
35222
35223 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
35224
35225         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
35226         reported by Andreas Schwab.
35227
35228 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35229             Bruno Haible  <bruno@clisp.org>
35230
35231         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
35232         check for the declaration of strnlen and a run test that exposes the
35233         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
35234         rpl_strndup.
35235
35236 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35237             Bruno Haible  <bruno@clisp.org>
35238
35239         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
35240
35241 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35242
35243         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
35244         compile test, for Tru64 4.0D.
35245
35246 2006-05-28  Karl Berry  <karl@gnu.org>
35247
35248         * config/srclist.txt (printf-args.c): lose sync.
35249
35250 2006-05-26  Martin Lambers  <marlam@marlam.de>
35251
35252         * lib/getpass.c: Updates the test for the native W32 API, and adds
35253         missing includes, thus fixing compilation warnings.
35254
35255 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35256
35257         * lib/exclude.c (exclude_fnmatch): New function.
35258         (excluded_file_name): Call exclude_fnmatch.
35259         * lib/exclude.h (excluded_file_name): New prototype
35260
35261 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
35262
35263         * lib/tempname.c (small_open, large_open): New macros.
35264         (__open, __open64) [!_LIBC]: Remove.
35265         (__gen_tempname): Use small_open and large_open instead of __open
35266         and __open64.  This fixes a portability bug on HP-UX 11.11i
35267         reported by Simon Wing-Tang in
35268         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
35269
35270 2006-05-24  Bruno Haible  <bruno@clisp.org>
35271
35272         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
35273         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
35274         Reported by Thorsten Maerz <torte@netztorte.de> via
35275         Aaron Stone <aaron@serendipity.cx>.
35276
35277 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35278
35279         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
35280         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
35281         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
35282         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
35283         not really conditional on the cache.
35284         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
35285
35286 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35287
35288         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
35289         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
35290         (my_usleep): Don't mishandle maximum value.
35291
35292 2006-05-19  Jim Meyering  <jim@meyering.net>
35293
35294         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
35295
35296 2006-05-17  Bruno Haible  <bruno@clisp.org>
35297
35298         Cygwin portability.
35299         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
35300
35301 2006-05-17  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/stdint_.h: Fix recognition of Cygwin.
35304
35305 2006-05-15  Bruno Haible  <bruno@clisp.org>
35306
35307         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
35308         on libtool patch by Ralf Wildenhues.
35309
35310 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35311
35312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
35313         test for C99 conformance; (bool) 0.5 is an integer constant
35314         expression, but (bool) -0.5 is not.  Problem reported by Fedor
35315         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
35316
35317 2006-05-11  Simon Josefsson  <jas@extundo.com>
35318
35319         * m4/xvasprintf.m4: Fix obvious typo.
35320
35321 2006-05-11  Jim Meyering  <jim@meyering.net>
35322
35323         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
35324         James Lemley.
35325
35326 2006-05-10  Simon Josefsson  <jas@extundo.com>
35327
35328         * lib/md4.c: Typo fix, update copyright years.
35329         (K1, K2): Don't use L because it turn computations into 64-bit on
35330         64-bit platforms.
35331
35332 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35333
35334         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
35335         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
35336         unwanted sign propagation, e.g., on hosts with 64-bit int.
35337         There still are some problems with reeelly weird theoretical hosts
35338         (e.g., 33-bit int) but it's not worth worrying about now.
35339         * lib/sha1.c (rol): Likewise.
35340         (K1, K2, K3, K4): Remove unnecessary L suffix.
35341
35342 2006-05-10  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/des.c: Cast to avoid warnings.
35345
35346 2006-05-09  Bruno Haible  <bruno@clisp.org>
35347
35348         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
35349         (Depends-on): Depend also on xsize, stdarg.
35350         (configure.ac): Add gl_XVASPRINTF.
35351
35352 2006-05-09  Bruno Haible  <bruno@clisp.org>
35353
35354         * m4/xvasprintf.m4: New file.
35355
35356 2006-05-09  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
35359         (EOVERFLOW): Define fallback value.
35360         (xstrcat): New function.
35361         (xvasprintf): Recognize the special case of a string concatenation.
35362
35363 2006-05-08  Eric Blake  <ebb9@byu.net>
35364
35365         * gnulib-tool (func_version): Base copyright year on CVS date.
35366         (func_emit_copyright_notice): New function.
35367         (func_emit_lib_Makefile_am): Use it.
35368         (func_emit_tests_Makefile_am): Likewise.
35369         (func_import): Likewise.
35370
35371 2006-05-08  Bruno Haible  <bruno@clisp.org>
35372
35373         * modules/stdarg: New file.
35374         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
35375
35376 2006-05-08  Bruno Haible  <bruno@clisp.org>
35377
35378         * m4/stdarg.m4: New file, from GNU gettext.
35379
35380 2006-05-08  Bruno Haible  <bruno@clisp.org>
35381
35382         * config/srclist.txt (build-aux/config.rpath): different from latest
35383         release.
35384
35385 2006-05-08  Bruno Haible  <bruno@clisp.org>
35386
35387         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
35388
35389 2006-05-05  Jim Meyering  <jim@meyering.net>
35390
35391         * m4/warning.m4: New file, derived from bison's file by the same name.
35392
35393 2006-05-03  Bruno Haible  <bruno@clisp.org>
35394
35395         * lib/stdint_.h: Shorter URL.
35396         * lib/inttypes.h: Likewise.
35397
35398 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35399
35400         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
35401
35402 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35403
35404         * lib/verify.h: Document the internals better.  Most of this change
35405         was written by Bruno Haible.
35406
35407 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35408
35409         * doc/verify.texi: New file, partly based on a proposal by
35410         Bruno Haible.
35411
35412 2006-05-02  Bruno Haible  <bruno@clisp.org>
35413
35414         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
35415         test from here...
35416         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
35417
35418 2006-04-29  Bruno Haible  <bruno@clisp.org>
35419
35420         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
35421         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
35422
35423 2006-04-29  Bruno Haible  <bruno@clisp.org>
35424
35425         * gnulib-tool: Make --update option actually work.
35426
35427 2006-04-29  Bruno Haible  <bruno@clisp.org>
35428
35429         * doc/gcd.texi: New file.
35430         * doc/gnulib.texi: Include it.
35431
35432 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
35433
35434         * lib/getdate.y (get_date): When adding relative date, start with the
35435         initial time, not with the result of the first mktime call.
35436
35437 2006-04-25  Bruno Haible  <bruno@clisp.org>
35438
35439         * gnulib-tool (func_import): Output the include directives in three
35440         blocks, sorted separately.
35441         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35442
35443 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35444
35445         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
35446         to define main with arguments, for C++.  Reported by Eric Blake.
35447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35448         Prefer 'int main ()' to 'int main (void)', for C++.
35449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
35450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
35451         for 'main', for C99 and C++.
35452
35453 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35454
35455         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
35456         Don't assume that exit status -1 is valid.
35457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35458         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35459         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35460         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
35461         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
35462         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
35463         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
35464         functions can be used without declaring them, or that you can
35465         exit with status -1.
35466         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35467
35468 2006-04-24  Karl Berry  <karl@gnu.org>
35469
35470         * config/srclist.txt (longdouble.m4): sync lost.
35471
35472 2006-04-24  Eric Blake  <ebb9@byu.net>
35473
35474         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
35475
35476 2006-04-24  Bruno Haible  <bruno@clisp.org>
35477
35478         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
35479         poll() implementation in AIX.
35480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35481
35482 2006-04-24  Bruno Haible  <bruno@clisp.org>
35483
35484         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
35485         assigned exactly once.
35486
35487 2006-04-23  Claudio Fontana  <claudio@gnu.org>
35488             Bruno Haible  <bruno@clisp.org>
35489
35490         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
35491         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
35492         for AM_CPPFLAGS.
35493
35494 2006-04-23  Bruno Haible  <bruno@clisp.org>
35495
35496         * modules/copy-file: Depend on unistd.
35497         * modules/execute: Likewise.
35498         * modules/fatal-signal: Likewise.
35499         * modules/findprog: Likewise.
35500         * modules/mkdtemp : Likewise.
35501         * modules/pipe: Likewise.
35502         * modules/wait-process: Likewise.
35503
35504 2006-04-23  Bruno Haible  <bruno@clisp.org>
35505
35506         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
35507         condition was already detected.
35508         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35509
35510 2006-04-23  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/copy-file.c: Include <unistd.h> unconditionally.
35513         * lib/execute.c: Likewise.
35514         * lib/fatal-signal.c: Likewise.
35515         * lib/findprog.c: Likewise.
35516         * lib/mkdtemp.c: Likewise.
35517         * lib/pipe.h: Likewise.
35518         * lib/pipe.c: Likewise.
35519         * lib/wait-process.h: Likewise.
35520
35521 2006-04-23  Bruno Haible  <bruno@clisp.org>
35522
35523         * gnulib-tool (func_usage): Fix --import description. Document
35524         --update.
35525         (func_import): Create temporary file in a temporary directory, if
35526         --dry-run is specified. Silence errors from 'grep' when there are no
35527         m4 files in $m4dir.
35528         (func_create_testdir): Silence errors from 'grep' when there are no
35529         m4 files in $m4dir.
35530         Reported by Karl Berry <karl@freefriends.org>.
35531
35532 2006-04-20  Bruno Haible  <bruno@clisp.org>
35533
35534         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
35535         one argument, so that the code will be portable to Autoconf 2.60.
35536         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
35537         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35538         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
35539
35540 2006-04-19  Derek Price  <derek@ximbiot.com>
35541             Eric Blake  <ebb9@byu.net>
35542
35543         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
35544         rather than "/full/path.h".  Update comment to match.  Shorten &
35545         generalize m4_translit call via AS_TR_CPP.
35546
35547 2006-04-19  Derek Price  <derek@ximbiot.com>
35548             Eric Blake  <ebb9@byu.net>
35549
35550         * lib/inttypes.h: Correct grammar in comment.
35551
35552 2006-04-18  Derek Price  <derek@ximbiot.com>
35553             Paul Eggert  <eggert@cs.ucla.edu>
35554
35555         * modules/inttypes: New file.
35556         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
35557
35558 2006-04-18  Derek Price  <derek@ximbiot.com>
35559             Paul Eggert  <eggert@cs.ucla.edu>
35560
35561         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
35562         New files.
35563
35564 2006-04-18  Derek Price  <derek@ximbiot.com>
35565             Paul Eggert  <eggert@cs.ucla.edu>
35566
35567         * lib/inttypes.h: New file.
35568         * lib/strtoimax.c: Assume <inttypes.h>.
35569
35570 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
35571
35572         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
35573         isn't mounted.  Problem reported by Kir Kolyshkin.
35574
35575 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35576
35577         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
35578         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
35579         Derek R. Price.
35580         * lib/regex.h (RE_DUP_MAX): Update comment to match current
35581         implementation.
35582
35583 2006-04-12  Eric Blake  <ebb9@byu.net>
35584
35585         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
35586         is now done automatically by the corresponding Autoconf macro.
35587
35588 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
35589
35590         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
35591         time_r.h.
35592
35593 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35594
35595         Merge regex changes from libc, removing some of our
35596         POSIX-conformance changes that were rejected and redoing them in a
35597         less-intrusive way.
35598
35599         * lib/regcomp.c (re_compile_internal, init_dfa):
35600         Length arg is now size_t, not Idx.  All uses changed.
35601         (peek_token): Forward decl now says internal_function.
35602         (__re_error_msgid, __re_error_msgid_idx):
35603         Now static rather than extern with attribute_hidden.
35604         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
35605         For some reason libc prefers K&R style defns for external functions.
35606         (regerror) [!defined _LIBC]: Likewise.
35607         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
35608         (seek_collating_symbol_entry, lookup_collation_sequence_value):
35609         (build_range_exp, build_collating_symbol):
35610         Use K&R-style defn.
35611         (re_compile_fastmap): Use '\0' to memset, not 0.
35612         (utf8_sb_map): Make the calculations more obvious.
35613         (init_dfa, parse_bracket_exp, build_charclass_op):
35614         Call calloc and cast result, as glibc does.
35615         (init_word_char, fetch_token, peek_token, peek_token_bracket):
35616         (build_range_exp, build_collating_symbol):
35617         Now internal functions.
35618
35619         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
35620
35621         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
35622         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
35623         Don't depend on VMS; depend on __VMS instead, for POSIX
35624         namespace cleanness.
35625         (regoff_t): Define to ssize_t, not long int.
35626
35627         Remove the REG_ macros named below.  Instead, make the old names
35628         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
35629         __USE_GNU_REGEX.
35630         (REG_BACKSLASH_ESCAPE_IN_LISTS):
35631         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
35632         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
35633         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
35634         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
35635         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
35636         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
35637         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
35638         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
35639         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
35640         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
35641         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
35642         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
35643         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
35644         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
35645         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
35646         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
35647         (REG_NREGS):
35648         Remove.  All uses replaced by the old RE_* names.
35649         (RE_BACKSLASH_ESCAPE_IN_LISTS):
35650         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
35651         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
35652         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
35653         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
35654         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
35655         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
35656         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
35657         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
35658         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
35659         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
35660         Don't bother having these macros be independent of each others'
35661         values, since they no longer exist in the POSIX name space.
35662
35663         Rename the following member names back to their old names,
35664         unless !__USE_GNU_REGEX.  All uses changed back.
35665         (buffer): Renamed from re_buffer.
35666         (allocated): Renamed from re_allocated.
35667         (used): Renamed from re_used.
35668         (syntax): Renamed from re_syntax.
35669         (fastmap): Renamed from re_fastmap.
35670         (translate): Renamed from re_translate.
35671         (can_be_null): Renamed from re_can_be_null.
35672         (regs_allocated): Renamed from re_regs_allocated.
35673         (fastmap_accurate): Renamed from re_fastmap_accurate.
35674         (no_sub): Renamed from re_no_sub.
35675         (not_bol): Renamed from re_not_bol.
35676         (not_eol): Renamed from re_not_eol.
35677         (newline_anchor): Renamed from re_newline_anchor.
35678         (num_regs): Renamed from rm_num_regs.
35679         (start): Renamed from rm_start.
35680         (end): Renamed from rm_end.
35681
35682         (free_state): Move up a bit.
35683
35684         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
35685         #define to be empty.
35686         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
35687         when that is what is intended.
35688         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
35689         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
35690         (MAX): New macro.
35691         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
35692         All uses changed back to re_malloc, etc.  It's now the caller's
35693         responsibility to check for overflow; all callers changed.
35694         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
35695         (re_x2nrealloc): Remove.
35696         (free_state): Remove decl.
35697
35698         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
35699         (re_set_registers, re_exec):
35700         Use K&R-style defn.
35701
35702         2006-01-31  Roland McGrath  <roland@redhat.com>
35703
35704         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
35705         Reported by Mike Frysinger <vapier@gentoo.org>.
35706
35707         2006-01-15  Andreas Jaeger  <aj@suse.de>
35708
35709         [BZ #1950]
35710         * lib/regex_internal.c (re_string_reconstruct): Adjust for
35711         build_wcs_upper_buffer change.
35712         (build_wcs_upper_buffer): Change return type.
35713
35714         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
35715
35716         * lib/regex_internal.h: Include <stdint.h> if available.
35717
35718         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
35719
35720         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
35721
35722         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35723
35724         * lib/regcomp.c: Adjust for changed secondary hash function.
35725
35726         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
35727
35728         * lib/regex.h: Pretty printing.
35729         Clean up namespace a bit.
35730
35731         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
35732
35733         * lib/regexec.c (update_cur_sifted_state, check_arrival,
35734         check_arrival_add_next_nodes): Avoid using uninitialized variable.
35735
35736         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35737                     Ulrich Drepper  <drepper@redhat.com>
35738
35739         [BZ #1302]
35740         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
35741         changed.
35742         (bitset_word_t): Renamed from bitset_word.  All uses changed.
35743
35744         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
35745
35746         [BZ #281]
35747         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
35748         * lib/regcomp.c: Remove unnecessary uses of
35749         unsigned RE_TRANSLATE_TYPE.
35750         * lib/regex_internal.h: Likewise.
35751         * lib/regex_internal.c: Likewise.
35752         * lib/regexec.c: Likewise.
35753         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
35754
35755         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
35756
35757         * lib/regexec.c (find_recover_state): Remove unnecessary
35758         initialization.
35759         (transit_state_bkref): Make DFA a const pointer.
35760         (get_subexp): Likewise.
35761         (check_arrival): Likewise.
35762         (update_cur_sifted_state): Likewise.
35763         (re_search_internal): Likewise.
35764         (prune_impossible_nodes): Likewise.
35765         (acquire_init_state_context): Likewise.
35766         (proceed_next_node): Likewise.
35767         (set_regs): Likewise.
35768         (free_fail_stack_return): Likewise.
35769         (check_arrival_expand_ecl): Mark DFA parameter as const.
35770         (check_arrival_expand_ecl_sub): Likewise.
35771         (check_subexp_limits): Likewise.
35772         (sub_epsilon_src_nodes):  Likewise.
35773         (add_epsilon_src_nodes):  Likewise.
35774         (merge_state_array): Likewise.
35775         (update_regs): Likewise.
35776         (build_trtable): Likewise.
35777         (sift_states_backward): Mark MCTX parameter as const.
35778         (build_sifted_states): Likewise.
35779         (update_cur_sifted_state): Likewise.
35780         (sift_states_mkref): Likewise.
35781         (check_arrival_expand_ecl): Mark eclosure as const.
35782         (check_dst_limits_calc_pos_1): Likewise.
35783         * lib/regex_internal.h (re_match_context_t): Make dfa a const
35784         pointer.
35785
35786         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
35787
35788         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
35789         (transit_state_sb): Likewise.
35790         (transit_state_mb): Likewise.
35791         (sift_states_iter_mb): Likewise.
35792         (check_arrival_add_next_nodes): Likewise.
35793         (check_node_accept_bytes): Change first parameter to pointer-to-const.
35794         [_LIBC] (re_search_2_stub): Use mempcpy.
35795
35796         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
35797         mbrtowc for very simple UTF-8 case.
35798
35799         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
35800         a pointer-to-const.
35801         (re_acquire_state_context): Likewise.
35802         * lib/regex_internal.h: Adjust prototypes.
35803
35804         * lib/regex.c: Prevent using C++ compilers.
35805
35806         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
35807         (re_acquire_state_context): Likewise.
35808
35809 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35810
35811         * modules/regex (Depends-on): Add ssize_t.
35812
35813 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35814
35815         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
35816         translation table.
35817
35818 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35819
35820         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
35821
35822 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
35823             Bruno Haible  <bruno@clisp.org>
35824
35825         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
35826         <sys/types.h> and <inttypes.h>.
35827
35828 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35829
35830         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
35831         `__error_t_defined', so argp.h will not typedef the former.
35832
35833 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35834
35835         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
35836         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
35837         glibc names.  Even if glibc is changed to conform to POSIX, the
35838         traditional names will be available anyway, since regex depends on
35839         the extensions module.  Also, fix a longstanding typo in the
35840         implementation of Spencer ERE test #75 from grep 2.3.  Problems
35841         reported by Emanuele Giaquinta.  Also, change sense of cached
35842         variable, so that the message makes sense.
35843
35844 2006-03-24  Simon Josefsson  <jas@extundo.com>
35845
35846         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
35847         including some doc fixes.
35848         (base64_encode_alloc): Fix +1 bug on allocation failures.
35849
35850 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35851
35852         * lib/base64.c (base64_encode): Do not read past end of array with
35853         unsanitized input on systems with CHAR_BIT > 8.
35854
35855 2006-03-24  Eric Blake  <ebb9@byu.net>
35856
35857         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
35858
35859 2006-03-22  Karl Berry  <karl@gnu.org>
35860
35861         * config/srclist.txt (*setenv.[ch]): get from coreutils.
35862         * config/srclistvars.sh (COREUTILS): new var.
35863
35864 2006-03-17  Jim Meyering  <jim@meyering.net>
35865
35866         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
35867         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
35868
35869 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35870
35871         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
35872         no longer needs it.  Instead, check that regoff_t is as least
35873         as wide as ptrdiff_t.
35874
35875         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
35876         so that our regex.h stays compatible with the installed regex.
35877         This is helpful for installers who configure --without-included-regex.
35878         Problem reported by Emanuele Giaquinta.
35879
35880 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
35881
35882         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
35883         Typedef to long int, not to off_, as POSIX will likely change
35884         in that direction.
35885
35886 2006-03-15  Eric Blake  <ebb9@byu.net>
35887
35888         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
35889
35890 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
35891
35892         * lib/argp-help.c (validate_uparams): Fix typo
35893         * lib/argp-parse.c (argp_default_options): Consistently begin help
35894         messages with a lowercase letter.
35895
35896 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
35897
35898         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
35899         overrun buffers and shouldn't be used (much as gets shouldn't be
35900         used).
35901         * lib/time_r.c (asctime_r, ctime_r): Likewise.
35902
35903 2006-03-08  Simon Josefsson  <jas@extundo.com>
35904
35905         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
35906         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35907
35908 2006-03-08  Simon Josefsson  <jas@extundo.com>
35909
35910         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
35911         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35912
35913 2006-03-08  Simon Josefsson  <jas@extundo.com>
35914
35915         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
35916         signal that configure disabled the device.
35917
35918 2006-03-08  Simon Josefsson  <jas@extundo.com>
35919
35920         * build-aux/maint.mk: Fix refresh-po, to handle no translated
35921         languages.
35922
35923 2006-03-07  Simon Josefsson  <jas@extundo.com>
35924
35925         * modules/getopt (Depends-on): Add unistd.
35926
35927         * modules/unistd: New file.
35928
35929 2006-03-07  Simon Josefsson  <jas@extundo.com>
35930
35931         * modules/gc-random: New file.
35932
35933 2006-03-07  Simon Josefsson  <jas@extundo.com>
35934
35935         * m4/unistd_h.m4: New file.
35936
35937 2006-03-07  Simon Josefsson  <jas@extundo.com>
35938
35939         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
35940         test to be side-effect free by storing the result in the cache
35941         variable gl_cv_lib_readline, and moving the assignment of
35942         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
35943         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35944
35945 2006-03-07  Simon Josefsson  <jas@extundo.com>
35946
35947         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
35948         error on missing devices (the functions will return an error).
35949
35950         * m4/gc.m4: Move random stuff to gc-random.m4
35951
35952 2006-03-07  Simon Josefsson  <jas@extundo.com>
35953
35954         * lib/unistd_.h: New file.
35955
35956 2006-03-07  Simon Josefsson  <jas@extundo.com>
35957
35958         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
35959
35960 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35961
35962         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
35963         Problem reported by Juan Manuel Guerrero.
35964
35965 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35966
35967         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
35968         the unistd module.
35969         * lib/getlogin_r.c: Likewise.
35970         * lib/getlogin_r.h: Likewise.
35971         * lib/glob.c: Likewise.
35972         * lib/pagealign_alloc.c: Likewise.
35973         * lib/unistd_.h: Remove; no longer needed.
35974
35975 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
35976
35977         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35978         Add unistd.
35979         * modules/c-stack (Depends-on): Add unistd.
35980         * modules/getlogin_r: Likewise.
35981         * modules/glob: Likewise.
35982         * modules/pagealign_alloc: Likewise.
35983         * modules/unistd (Files): Remove lib/unistd_.h.
35984         (EXTRA_DIST): Remove.
35985         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
35986         need unistd_.h.
35987         (MOSTLYCLEANFILES): Remove unistd.h-t.
35988
35989 2006-03-03  Simon Josefsson  <jas@extundo.com>
35990
35991         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
35992
35993 2006-03-03  Simon Josefsson  <jas@extundo.com>
35994
35995         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
35996         libidn and bison.
35997
35998 2006-03-03  Simon Josefsson  <jas@extundo.com>
35999
36000         * build-aux/maint.mk: Add indent target.
36001
36002 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
36003
36004         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
36005         our replacement poll.h in any case, to avoid a differing
36006         declaration from a system header.  Seen on AIX.
36007
36008 2006-03-01  Simon Josefsson  <jas@extundo.com>
36009
36010         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
36011         <kasal@ucw.cz>.
36012
36013 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36014
36015         * modules/gettime (Depends-on): Add extensions module.
36016         * modules/nanosleep (Depends-on): Likewise.
36017         * modules/settime (Depends-on): Likewise.
36018
36019 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36020
36021         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
36022         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
36023         pedantically.
36024         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36025         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
36026
36027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
36028         not "==".  Reported by Ralf Wildenhues.
36029
36030 2006-03-01  Karl Berry  <karl@gnu.org>
36031
36032         * doc/Copyright/request-*: new files, synced from gnuorg.
36033
36034 2006-03-01  Karl Berry  <karl@gnu.org>
36035
36036         * config/srclist.txt (Copyright/*): new entries.
36037
36038 2006-02-28  Simon Josefsson  <jas@extundo.com>
36039
36040         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
36041
36042 2006-02-27  Simon Josefsson  <jas@extundo.com>
36043
36044         * lib/base64.h: Indent #define's.  From Jim Meyering
36045         <jim@meyering.net>.
36046
36047 2006-02-27  Jim Meyering  <jim@meyering.net>
36048
36049         Revert the change of 2006-02-24, so these files can continue
36050         to be sync'd from gettext.
36051         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
36052         of `config.h'.
36053
36054 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
36055
36056         * modules/intprops: New file.
36057         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
36058         Add intprops.
36059         * modules/getloadavg (Files): Remove lib/intprops.h.
36060         (Depends-on): Add intprops.
36061         * modules/human: Likewise.
36062         * modules/inttostr: Likewise.
36063         * modules/openat: Likewise.
36064         * modules/sig2str: Likewise.
36065         * modules/userspec: Likewise.
36066         * modules/utimecmp: Likewise.
36067         * modules/xnanosleep: Likewise.
36068         * modules/xstrtol: Likewise.
36069
36070 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
36071
36072         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
36073         * modules/lock-tests (TESTS): Use $(EXEEXT).
36074         * modules/tls-tests: Likewise.
36075         * modules/argp-tests: Likewise.
36076         (check_PROGRAMS): New var, replacing...
36077         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
36078
36079 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36080
36081         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
36082         `config.h'.
36083
36084 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36085
36086         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
36087
36088 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36089
36090         Sync from coreutils.
36091         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
36092         gl_CHDIR_SAFER.
36093
36094 2006-02-22  Jim Meyering  <jim@meyering.net>
36095
36096         Sync from coreutils.
36097         * m4/chdir-safer.m4: New file.
36098
36099 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
36102         AT_FDCWD exceeds INT_MAX.
36103         * lib/openat.h (AT_FDCWD): Likewise.
36104
36105 2006-02-17  Eric Blake  <address@hidden>
36106
36107         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
36108
36109 2006-02-16  Simon Josefsson  <jas@extundo.com>
36110
36111         * modules/getaddrinfo (Depends-on): Add sys_socket.
36112
36113 2006-02-15  Simon Josefsson  <jas@extundo.com>
36114
36115         * build-aux/maint.mk: Add dsyntax-check rule.
36116
36117 2006-02-15  Eric Blake  <ebb9@byu.net>
36118
36119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
36120         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
36121         'present but cannot compile' warnings on cygwin.
36122         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
36123         use ws2tcpip.h if sys/socket.h works.
36124         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
36125         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
36126
36127 2006-02-14  Simon Josefsson  <jas@extundo.com>
36128
36129         * modules/maintainer-makefile (Files): Rename.
36130
36131         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
36132         and (the local) Makefile.cfg to maint-cfg.mk.
36133
36134         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
36135         to the latter.
36136
36137         * modules/maintainer-makefile: New module.
36138
36139         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
36140         severaly stripped to make it possible to build it up from scratch
36141         with reliable tests.
36142
36143         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
36144         fixes to permit overriding the default actions when configure and
36145         makefile are not available.
36146
36147 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36148
36149         Sync from coreutils.
36150         * modules/lstat (Depends-on): Don't depend on xalloc.
36151         (License): Change from GPL to LGPL, since this is now simply a
36152         replacement for a libc function.
36153
36154 2006-02-14  Jim Meyering  <jim@meyering.net>
36155
36156         Sync from coreutils.
36157
36158         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
36159         failure on deficient systems, and simplify gnulib lgpl dependencies.
36160         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
36161         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
36162
36163         * lib/xalloc-die.c: Remove unused definition of N_.
36164
36165 2006-02-14  Jim Meyering  <jim@meyering.net>
36166
36167         Sync from coreutils.
36168         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
36169         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
36170         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
36171         double-quote uses of that variable, to accommodate the rare case in
36172         which getmntent is available in none of the libraries checked.  This
36173         happens at least on FreeBSD 5.0.
36174
36175 2006-02-13  Simon Josefsson  <jas@extundo.com>
36176
36177         * gnulib-tool (Usage): Fix --import, from
36178         karl@freefriends.org (Karl Berry).
36179
36180 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36181
36182         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
36183
36184 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
36185
36186         * lib/argp-namefrob.h: Restore changes accidentally lost during the
36187         "autoupdate" on 2005-12-12.
36188
36189 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36190
36191         * modules/closeout (Depends-on): Remove atexit.
36192
36193 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36194
36195         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
36196         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
36197
36198 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36199
36200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
36201         __EXTENSIONS__ if this causes compilation to fail.  Problem
36202         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
36203         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
36204
36205 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36206
36207         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
36208         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
36209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
36210         All uses changed.
36211
36212 2006-01-26  Simon Josefsson  <jas@extundo.com>
36213
36214         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
36215         prototype is visible on mingw32.
36216
36217         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
36218         for mingw32.
36219
36220         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
36221         mingw32).
36222
36223 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
36224
36225         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
36226         attempt to open for write; this always fails, at least on POSIX
36227         hosts.  This reinstates the 2006-01-09 change, which was
36228         inadvertently removed.
36229
36230 2006-01-26  Bruno Haible  <bruno@clisp.org>
36231
36232         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
36233         Reported by Paul Eggert.
36234
36235 2006-01-26  Bruno Haible  <bruno@clisp.org>
36236             Paul Eggert  <eggert@cs.ucla.edu>
36237
36238         * lib/stdbool_.h (_Bool)
36239         [(! (defined __cplusplus || defined __BEOS__)
36240           && !defined __GNUC__
36241           && !(defined __HP_cc || defined __xlc__
36242                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
36243                || defined __sgi))]:
36244         #define to signed char in these cases too; this simplifies
36245         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
36246         etc., separately) and makes it more conservative.
36247
36248 2006-01-25  Simon Josefsson  <jas@extundo.com>
36249
36250         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
36251         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
36252         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
36253
36254 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36255
36256         * lib/argp-namefrob.h: Bugfix. Remove stray #
36257
36258 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36259
36260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
36261         so that we test the test.
36262         Check for yet another HP-UX cc bug involving *bool |= bool.
36263
36264 2006-01-25  Karl Berry  <karl@gnu.org>
36265
36266         * config/srclist.txt (vasnprintf.c): sync lost.
36267
36268 2006-01-25  Jim Meyering  <jim@meyering.net>
36269
36270         Sync from the stable (b5) branch of coreutils:
36271
36272         * lib/fts.c (fts_children): Don't let close() clobber errno from
36273         failed fchdir().
36274
36275         * lib/fts.c (fts_stat): When following a symlink-to-directory,
36276         don't necessarily interpret stat-fails+lstat-succeeds as indicating
36277         a dangling symlink.  That can also happen at least for ELOOP.
36278         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
36279         FYI, this bug predates the inclusion of fts.c in coreutils.
36280
36281         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
36282         in their own block, so pre-c99 compilers don't object.
36283
36284         Avoid the double-free (first in fts_read, second in fts_close) that
36285         would occur when an `active' directory is made inaccessible (e.g.,
36286         via chmod a-x) during a traversal.
36287         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36288         before returning.  Reproduce this failure by
36289         mkdir -p a/b; cd a; chmod a-x . b
36290         Reported by Stavros Passas.
36291
36292 2006-01-25  Jim Meyering  <jim@meyering.net>
36293
36294         * lib/fileblocks.c: Remove more useless parentheses.
36295         * lib/readutmp.h: Likewise.
36296
36297 2006-01-25  Bruno Haible  <bruno@clisp.org>
36298
36299         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
36300         warnings.
36301         Reported by Paul Eggert.
36302
36303 2006-01-25  Bruno Haible  <bruno@clisp.org>
36304
36305         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
36306         rid of a trap command. For Solaris sh.
36307         Reported by Mark D. Baushke <mdb@gnu.org>.
36308
36309 2006-01-24  Simon Josefsson  <jas@extundo.com>
36310
36311         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
36312         Bruno.
36313
36314 2006-01-24  Karl Berry  <karl@gnu.org>
36315
36316         * config/srclist.txt (argp-namefrob.h): sync lost.
36317
36318 2006-01-24  Jim Meyering  <jim@meyering.net>
36319
36320         * modules/openat (Files): Add lib/intprops.h.
36321         From Mark D. Baushke.
36322
36323 2006-01-24  Jim Meyering  <jim@meyering.net>
36324
36325         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
36326         Reported by Mark D. Baushke.
36327
36328 2006-01-24  Jim Meyering  <jim@meyering.net>
36329
36330         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
36331
36332 2006-01-24  Bruno Haible  <bruno@clisp.org>
36333
36334         * modules/strnlen (Maintainer): Change from glibc to all.
36335
36336 2006-01-24  Bruno Haible  <bruno@clisp.org>
36337
36338         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
36339         Patch by Paul Eggert.
36340
36341 2006-01-24  Bruno Haible  <bruno@clisp.org>
36342
36343         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
36344         already has it.
36345         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
36346         2005-11-26.
36347
36348         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
36349         'signed char' to avoid problems with the built-in _Bool type.
36350         Reported by Paul Eggert on 2005-11-26.
36351
36352 2006-01-24  Bruno Haible  <bruno@clisp.org>
36353
36354         * gnulib-tool (func_import): Avoid constructing complicated sed
36355         expressions inside backquote.
36356         Report and solution by Mark D. Baushke <mdb@gnu.org>.
36357
36358 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
36359
36360         These changes imported from libc.
36361         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
36362         test and two separate function calls.
36363         * lib/strndup.c (__strndup): Add libc_hidden_def.
36364
36365 2006-01-23  Simon Josefsson  <jas@extundo.com>
36366
36367         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
36368         Remove the test_*_SOURCES variable: automake infers it by default.
36369         * modules/tls-tests: Likewise.
36370
36371 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36372
36373         Work around porting bugs reported by Dieter in
36374         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
36375         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
36376         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
36377         Include "getopt.h" first, to check interface.
36378         (getenv): Declare only if defined HAVE_DECL_GETENV &&
36379         !HAVE_DECL_GETENV.
36380         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
36381         (__strndup): Revert to K&R-style function dfns, the glibc style.
36382         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
36383         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
36384         Include strnlen.h first, to get prototype properly.
36385         (strnlen): Renamed from __strnlen.
36386         Remove weak alias.
36387
36388 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36389
36390         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
36391
36392 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36393
36394         * config/srclist.txt: Adjust to reflect glibc reorganization.
36395         This affects only comments.
36396
36397 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36398
36399          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
36400          Reported by Bruce Korb <bkorb@gnu.org>.
36401
36402 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36403
36404         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
36405         to pacify gcc -Wswitch-default.
36406
36407 2006-01-22  Bruno Haible  <bruno@clisp.org>
36408
36409         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
36410         temporary buffer for sprintf, take into account the precision also
36411         for 'd', 'i', 'u', 'o', 'x', 'X'.
36412
36413 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36414
36415         * modules/argp-tests: New module
36416         * tests/test-argp.c: New file
36417         * tests/test-argp-2.sh: New file
36418
36419 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36420
36421         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
36422         (__argp_base_name): Removed
36423         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
36424         typo.
36425         (__argp_base_name): Provide macro definition or extern declaration
36426         depending on the configuration
36427
36428 2006-01-20  Simon Josefsson  <jas@extundo.com>
36429
36430         * modules/inet_ntop (Depends-on): Depend on sys_socket.
36431
36432 2006-01-20  Simon Josefsson  <jas@extundo.com>
36433
36434         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
36435
36436 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
36437
36438         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
36439         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
36440         Suggested by Bruno Haible.
36441
36442 2006-01-20  Karl Berry  <karl@gnu.org>
36443
36444         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
36445         until changes propagate, I guess.
36446
36447 2006-01-19  Simon Josefsson  <jas@extundo.com>
36448
36449         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
36450
36451 2006-01-19  Simon Josefsson  <jas@extundo.com>
36452
36453         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
36454
36455 2006-01-19  Simon Josefsson  <jas@extundo.com>
36456
36457         * gnulib-tool: Set check_PROGRAMS.
36458
36459         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36460         modules/des-tests, modules/gc-arcfour-tests,
36461         modules/gc-arctwo-tests, modules/gc-des-tests,
36462         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36463         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36464         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36465         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36466         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
36467         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
36468         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
36469         test_*_SOURCES.
36470
36471 2006-01-18  Simon Josefsson  <jas@extundo.com>
36472
36473         * modules/socklen (Depends-on): Depend on sys_socket.
36474
36475 2006-01-18  Simon Josefsson  <jas@extundo.com>
36476
36477         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36478         modules/des-tests, modules/gc-arcfour-tests,
36479         modules/gc-arctwo-tests, modules/gc-des-tests,
36480         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36481         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36482         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36483         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36484         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
36485         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
36486         $(EXEEXT) to automake TESTS variable, for mingw32.
36487
36488 2006-01-17  Simon Josefsson  <jas@extundo.com>
36489
36490         * modules/socklen (Include): Need sys/socket.h.
36491
36492 2006-01-17  Bruno Haible  <bruno@clisp.org>
36493
36494         * modules/ssize_t (Include): Add <sys/types.h>.
36495
36496 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36497
36498         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
36499         it's not portable and it doesn't work with cross-compiles.
36500         Problem reported by Bruno Haible.  Fix missing-$ typo in
36501         'test "gl_cv_ignore_unused_libraries" ...' that prevented
36502         -zignore from being used with Sun's C compiler.
36503
36504 2006-01-12  Simon Josefsson  <jas@extundo.com>
36505
36506         * lib/base64.c: Fix warning, reported by Bruno Haible
36507         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
36508
36509 2006-01-12  Bruno Haible  <bruno@clisp.org>
36510
36511         * modules/ldd: New file.
36512         * build-aux/ldd.sh.in: New file.
36513         * MODULES.html.sh (Support for building libraries and executables): Add
36514         ldd.
36515
36516 2006-01-12  Bruno Haible  <bruno@clisp.org>
36517
36518         * m4/ldd.m4: New file.
36519
36520 2006-01-12  Bruno Haible  <bruno@clisp.org>
36521
36522         * gnulib-tool (func_import, func_create_testdir): Don't go into an
36523         endless loop while replacing $auxdir with build-aux.
36524
36525 2006-01-11  Simon Josefsson  <jas@extundo.com>
36526
36527         * lib/stdint_.h (SIZE_MAX): Add missing (.
36528
36529 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
36530
36531         Sync from coreutils.
36532         * lib/md5.c: Fix commentary typos.
36533         (alignof, UNALIGNED_P): No need for a GCC-specific version.
36534         * lib/md5.h (__attribute__): Remove; unused.
36535         * lib/sha1.c: Fix commentary to match md5 better.
36536         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
36537         so that we don't need to worry about alignment.  All uses changed.
36538         This merges the 2005-10-28 md5 change into sha1.
36539
36540 2006-01-11  Jim Meyering  <jim@meyering.net>
36541
36542         Sync from coreutils.
36543         * lib/md5.c (OP): Fix spacing.
36544
36545 2006-01-11  Bruno Haible  <bruno@clisp.org>
36546
36547         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36548         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
36549         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
36550
36551 2006-01-11  Bruno Haible  <bruno@clisp.org>
36552
36553         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36554         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
36555         the "early" section as well.
36556
36557 2006-01-11  Bruno Haible  <bruno@clisp.org>
36558
36559         Avoid "ar: no archive members specified" error on MacOS X.
36560         * gnulib-tool (func_modules_add_dummy): New function.
36561         (func_import, func_create_testdir): Invoke it.
36562
36563 2006-01-11  Bruno Haible  <bruno@clisp.org>
36564
36565         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
36566         with $auxdir in AC_CONFIG_FILES statements.
36567
36568 2006-01-11  Bruno Haible  <bruno@clisp.org>
36569
36570         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36571         Initialize also noinst_HEADERS to empty.
36572
36573 2006-01-11  Bruno Haible  <bruno@clisp.org>
36574
36575         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
36576         variables.
36577         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
36578         autoreconf.
36579
36580 2006-01-11  Bruno Haible  <bruno@clisp.org>
36581
36582         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
36583         overridable by the user.
36584         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36585
36586 2006-01-10  Simon Josefsson  <jas@extundo.com>
36587
36588         * modules/sys_socket: New file.
36589
36590 2006-01-10  Simon Josefsson  <jas@extundo.com>
36591
36592         * m4/sys_socket_h.m4: New file.
36593
36594 2006-01-10  Simon Josefsson  <jas@extundo.com>
36595
36596         * lib/socket_.h: New file.
36597
36598 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36599
36600         * modules/readutmp (Maintainer): Add myself.
36601
36602 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36603
36604         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
36605         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
36606         People who are still concerned with buggy memcmp implementations
36607         can invoke gl_FUNC_MEMCMP themselves.
36608
36609 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36610
36611         * lib/regex_internal.h (BITSET_WORD_BITS):
36612         Work around a bug in 64-bit PGC (before version 6.1-2), where the
36613         preprocessor mishandles large unsigned values as if they were signed.
36614         Problem reported by Claudio Fontana in
36615         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
36616
36617 2006-01-10  Jim Meyering  <jim@meyering.net>
36618
36619         Avoid the double-free (first in fts_read, second in fts_close) that
36620         would occur when an `active' directory is made inaccessible (e.g.,
36621         via chmod a-x) during a traversal.
36622         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36623         before returning.  Reproduce this failure by
36624         mkdir -p a/b; cd a; chmod a-x . b
36625         Reported by Stavros Passas.
36626
36627         Sync from coreutils.
36628         * lib/sha1.c: Tweak grammar in a comment.
36629
36630 2006-01-10  Jim Meyering  <jim@meyering.net>
36631
36632         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
36633         Patch by Joerg Sonnenberger.
36634
36635 2006-01-10  Bruno Haible  <bruno@clisp.org>
36636
36637         * modules/readutmp: Depend on module free.
36638         * modules/strtok_r: Depend on module restrict.
36639
36640 2006-01-10  Bruno Haible  <bruno@clisp.org>
36641
36642         * modules/gettext (configure.ac): Add an invocation of
36643         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
36644
36645 2006-01-10  Bruno Haible  <bruno@clisp.org>
36646
36647         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
36648         Reported by Werner Lemberg <wl@gnu.org>.
36649
36650 2006-01-10  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/localcharset.c: Update from GNU gettext.
36653
36654 2006-01-10  Bruno Haible  <bruno@clisp.org>
36655
36656         * lib/argp.h (__const): Remove macro. Use const instead.
36657         * lib/argp-fmtstream.h (__const): Likewise.
36658         * lib/glob_.h (__const): Remove macro.
36659         * lib/glob-libc.h: Use const instead of __const.
36660
36661 2006-01-10  Bruno Haible  <bruno@clisp.org>
36662
36663         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
36664         variable.
36665         Needed to avoid an automake error regarding the 'gettext' module.
36666
36667 2006-01-09  Simon Josefsson  <jas@extundo.com>
36668
36669         * modules/inet_ntop (Depends-on): Add restrict.
36670
36671 2006-01-09  Simon Josefsson  <jas@extundo.com>
36672
36673         * modules/gc-rijndael-tests (License): Put under LGPL.
36674
36675         * modules/gc-des-tests (License): Likewise.
36676
36677         * modules/gc-arcfour-tests (License): Likewise.
36678
36679         * modules/gc-arctwo-tests (License): Likewise.
36680
36681         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
36682
36683         * modules/gc-hmac-sha1-tests (Files): Likewise.
36684
36685         * modules/gc-hmac-md5-tests (License): Likewise.
36686
36687         * modules/gc-sha1-tests (License): Likewise.
36688
36689         * modules/gc-md5-tests (License): Likewise.
36690
36691         * modules/gc-md4-tests (License): Likewise.
36692
36693         * modules/gc-md2-tests (License): Likewise.
36694
36695         * modules/gc-tests (License): Likewise.
36696
36697         * modules/des-tests (License): Likewise.
36698
36699         * modules/md4-tests (License): Likewise.
36700
36701         * modules/md2-tests (License): Likewise.
36702
36703 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36704
36705         Sync from coreutils:
36706
36707         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
36708         * modules/lib-ignore: New file.
36709         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
36710         chdir-safer.m4, lchmod.m4.
36711         * modules/openat: Add mkdirat.c, openat-priv.h.
36712
36713 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36714
36715         Sync from coreutils.
36716         * m4/lib-ignore.m4: New file.
36717         * m4/lchmod.m4: New file.
36718
36719 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36720
36721         Sync from coreutils.
36722         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
36723         for write access: POSIX says that must fail.
36724         * lib/fts.c (diropen): Likewise.
36725         * lib/save-cwd.c (save_cwd): Likewise.
36726         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
36727         well, for minor improvements on hosts that lack O_DIRECTORY.
36728         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
36729         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
36730         Fall back on chown if open failed with EACCES.
36731
36732         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
36733         Report an error at compile-time if only a 1-second nominal clock
36734         resolution is found.
36735
36736         * lib/lchmod.h: New file.
36737         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
36738         (make_dir_parents): Use lchown rather than chown, and
36739         lchmod rather than chmod.
36740
36741         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
36742         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
36743         "proc" reported by n0dalus.
36744
36745         * lib/mountlist.c: Include <limits.h>.
36746         (dev_from_mount_options)
36747         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
36748         New function.  It no longer assumes "dev=" has the System V meaning
36749         on Linux (since it doesn't).  It also parses "dev=" more carefully.
36750         (read_file_system_list)
36751         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
36752         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
36753         dev= in that case.
36754
36755         * lib/posixtm.h (PDS_PRE_2000): New macro.
36756         * lib/posixtm.c (year): Arg is now syntax_bits rather than
36757         allow_century.  All usages changed.  Reject dates outside the range
36758         1969-1999 if PDS_PRE_2000 is used.
36759
36760 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36761
36762         Sync from coreutils.
36763         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
36764         (Time of day items): Mention the possibility of leap seconds.
36765         Problem reported by Dr. David Alan Gilbert.
36766
36767 2006-01-09  Jim Meyering  <jim@meyering.net>
36768
36769         Sync from coreutils.
36770
36771         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
36772
36773         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
36774
36775         * lib/modechange.c (mode_compile): Reject an invalid mode string
36776         that starts with an octal digit.  From Andreas Gruenbacher.
36777
36778         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
36779         and dup to open_safer and dup_safer, respectively.
36780         (openat_permissive): Fix typo in comment.
36781
36782         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
36783         "gettext.h"; either no longer needed or are guaranteed by openat.h.
36784         (_): Remove; no longer needed.
36785         (openat): Renamed from rpl_openat; no need for rpl_openat
36786         since openat.h renames openat for us.
36787         Replace most of the body with a call to openat_permissive,
36788         to avoid duplicate code.
36789         Port to (probably hypothetical) environments were mode_t is
36790         wider than int.
36791         (openat_permissive): Require mode arg, so that we can check
36792         types better.  Put it just after flags.  Change cwd failure
36793         indicator from pointer-to-bool to pointer-to-errno-value.
36794         All callers changed.
36795         Invoke openat_save_fail and/or openat_restore_fail if
36796         cwd_errno is null, so that openat can call us.
36797         (openat_permissive, fdopendir, fstatat, unlinkat):
36798         Simplify errno handling to avoid some duplicate code,
36799         as it's OK to set errno on success.
36800         * lib/openat.h: Revamp code so that function macros depend on
36801         __OPENAT_PREFIX only, not also on AT_FDCWD.
36802         (openat_ro): Remove.  Caller changed to use openat_permissive.
36803         (openat_permissive): Now a macro, if not a function.
36804         (openat_restore_fail, openat_save_fail): Now always functions,
36805         since mkdirat needs them even if __OPENAT_PREFIX is defined.
36806
36807         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
36808         and openat.c.
36809         * lib/mkdirat.c: Include openat-priv.h.
36810         Remove definitions of macros defined therein.
36811         * lib/openat.c: Likewise.
36812
36813         * lib/mkdirat.c (mkdirat): New file and function.
36814         * lib/openat.h (mkdirat): Declare.
36815
36816         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
36817
36818         * lib/openat.h (openat_permissive): Declare.
36819         (openat_ro): Define.
36820
36821         * lib/openat.c (EXPECTED_ERRNO): New macro.
36822         (openat_permissive): New function -- used in remove.c rewrite.
36823         (all functions): Set errno just before returning, only if there
36824         was an actual failure.
36825         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
36826
36827         Emulate openat-family functions using Linux's procfs, if possible.
36828         Idea and some code based on Ulrich Drepper's glibc changes.
36829
36830         * lib/openat.c: (BUILD_PROC_NAME): New macro.
36831         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
36832         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
36833         before falling back on save_cwd and restore_cwd.
36834         (fdopendir, fstatat, unlinkat): Likewise.
36835
36836         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
36837         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
36838
36839         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
36840         as second argument to va_arg.  Otherwise, some versions of gcc
36841         warn that `if this code is reached, the program will abort'.
36842
36843 2006-01-09  Jim Meyering  <jim@meyering.net>
36844
36845         Sync from coreutils.
36846         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
36847         Require openat-priv.h.
36848
36849 2006-01-09  Bruno Haible  <bruno@clisp.org>
36850
36851         * modules/strnlen (Include): Use strnlen.h.
36852
36853 2006-01-09  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
36856
36857 2006-01-09  Bruno Haible  <bruno@clisp.org>
36858
36859         * lib/sysexit_.h (EX_OK): New macro.
36860         Suggested by Martin Lambers <marlam@marlam.de>.
36861
36862 2006-01-09  Bruno Haible  <bruno@clisp.org>
36863
36864         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
36865         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
36866
36867 2006-01-09  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
36870         numbers.
36871
36872 2006-01-09  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
36875         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
36876         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
36877         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
36878
36879 2006-01-09  Bruno Haible  <bruno@clisp.org>
36880
36881         * build-aux/javacomp.sh.in: New file, moved from lib/.
36882         * modules/javacomp-script (Files): Update.
36883         (configure.ac): Add AC_CONFIG_FILES invocation.
36884         (EXTRA_DIST): Remove variable.
36885
36886         * build-aux/javaexec.sh.in: New file, moved from lib/.
36887         * modules/javaexec (Files): Update.
36888         (configure.ac): Add AC_CONFIG_FILES invocation.
36889         (EXTRA_DIST): Remove javaexec.sh.in.
36890
36891         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
36892         * modules/csharpcomp-script (Files): Update.
36893         (configure.ac): Add AC_CONFIG_FILES invocation.
36894         (EXTRA_DIST): Remove variable.
36895
36896         * build-aux/csharpexec.sh.in: New file, moved from lib/.
36897         * modules/csharpexec (Files): Update.
36898         (configure.ac): Add AC_CONFIG_FILES invocation.
36899         (EXTRA_DIST): Remove csharpexec.sh.in.
36900
36901 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36902
36903         Sync from coreutils.
36904
36905         Add POSIX ACL support
36906         * lib/acl.h (copy_acl, set_acl): Add declarations.
36907         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
36908         systems other than Linux.
36909         (chmod_or_fchmod): New function: use fchmod when possible,
36910         and chmod otherwise.
36911         (file_has_acl): Add a POSIX ACL implementation, with a
36912         Linux-specific subcase.
36913         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
36914         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
36915         acls are unsupported.
36916         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
36917         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
36918         are unsupported.
36919
36920 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
36921
36922         Sync from coreutils.
36923         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
36924
36925 2006-01-07  Bruno Haible  <bruno@clisp.org>
36926
36927         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
36928         gl_EARLY.
36929
36930 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36931
36932         * lib/strftime.c (tzname): Don't declare if it is already #defined.
36933         Problem reported for Mingw by Mark Junker.
36934
36935 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36936
36937         * README: Gnulib normally doesn't generate a tarball.
36938
36939 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36940
36941         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
36942         long int, not int, for nanosecond counts, so that people who are
36943         used to POSIX struct timespec won't be surprised.  Reported by Jim
36944         Meyering.
36945
36946 2005-12-28  Bruno Haible  <bruno@clisp.org>
36947
36948         * build-aux/config.rpath: Update from GNU gettext.
36949
36950 2005-12-16  Jim Meyering  <jim@meyering.net>
36951
36952         * modules/fprintftime: New module.
36953         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
36954
36955 2005-12-16  Jim Meyering  <jim@meyering.net>
36956
36957         * m4/fprintftime.m4: New file.
36958
36959 2005-12-16  Jim Meyering  <jim@meyering.net>
36960
36961         * lib/fprintftime.c, lib/fprintftime.h: New files.
36962
36963 2005-12-15  Simon Josefsson  <jas@extundo.com>
36964
36965         * modules/socklen (configure.ac): Fix M4 macro name, to align with
36966         new m4/socklen.m4.
36967
36968 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36969
36970         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
36971         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
36972
36973 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36974
36975         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
36976         * lib/argp-help.c (fill_in_uparams): Check if the constructed
36977         struct uparams is valid. Fall back to the default values if it is
36978         not.
36979
36980 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36981
36982         * modules/argp (Files): Add argp-pin.c
36983         (Depends-on): dirname
36984         (lib_SOURCES): Add argp-pin.c
36985
36986 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36987
36988         * m4/argp.m4:  Check if program_invocation_name and
36989         program_invocation_short_name are declared and define appropriate
36990         macros if they are not.
36991
36992 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36993
36994         * lib/argp-help.c (__argp_base_name): New function
36995         (__argp_short_program_name): Rewrite using __argp_base_name
36996         * lib/argp-namefrob.h: Define program_invocation_name and
36997         program_invocation_short_name if requested
36998         (__argp_base_name): Add prototype
36999         * lib/argp-parse.c (argp_def): Use gettext wrappers
37000         (argp_default_parser): Use __argp_base_name
37001         * lib/argp-pin.c: New file. Defines program_invocation_name and
37002         program_invocation_short_name on systems that lack them.
37003
37004 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37005
37006         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
37007         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37008         porting problem reported by Georg Schwarz in
37009         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37010
37011 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37012
37013         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
37014         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37015         porting problem reported by Georg Schwarz in
37016         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37017
37018 2005-12-05  Bruno Haible  <bruno@clisp.org>
37019
37020         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
37021         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
37022         Reported by Mark Junker <mjscod@gmx.de>.
37023
37024 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
37025
37026         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
37027         Use implementation from Albert Chin, with some
37028         comments/corrections by Stepan Kasal and myself.
37029
37030 2005-12-02  Bruno Haible  <bruno@clisp.org>
37031
37032         * gnulib-tool (func_import): Accept GPLed build tool modules when
37033         --lgpl is given.
37034         * modules/csharpcomp-script: New file.
37035         * modules/csharpcomp: Depend on it.
37036         * modules/javacomp-script: New file.
37037         * modules/javacomp: Depend on it.
37038         Suggested by Simon Josefsson.
37039
37040 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
37041
37042         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
37043         statement, to work around an HP-UX 10.20 compiler bug reported by
37044         Peter O'Gorman.
37045
37046 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37047
37048         * modules/savedir (Depends-on): Add openat.
37049
37050 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37051
37052         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
37053         (uintmax_t) [defined uintmax_t]: Do not declare.
37054         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
37055         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
37056         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
37057         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
37058         sake of portability to weird hosts that C allows (though we don't
37059         know of any practical examples).
37060
37061         * lib/savedir.h (fdsavedir): New decl.
37062         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
37063         contains most of the former guts of savedir.
37064         (savedir): Use savedirstream.
37065         Include "openat.h".
37066
37067 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37068
37069         * modules/obstack (Files): Add m4/ulonglong.m4.
37070         Problem reported by Davide Angelocola.
37071
37072 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37073
37074         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
37075         coreutils no longer futzes with rounding modes.
37076
37077 2005-11-14  Jim Meyering  <jim@meyering.net>
37078
37079         * lib/mkstemp-safer.c: Include <config.h>, required for possible
37080         replacement of mkstemp.
37081
37082 2005-11-10  Simon Josefsson  <jas@extundo.com>
37083
37084         * lib/readline.c: Remove EOL.
37085
37086 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37087
37088         * modules/gethrxtime (Depends-on): Add gettime.
37089
37090 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37091
37092         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
37093         or gettimeofday; no longer needed.
37094
37095 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37096
37097         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
37098         time business.
37099         (gethrxtime) [! (HAVE_NANOUPTIME
37100         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
37101         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
37102         our own approximation.
37103
37104 2005-11-08  Eric Blake  <ebb9@byu.net>
37105
37106         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
37107
37108 2005-11-08  Eric Blake  <ebb9@byu.net>
37109
37110         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
37111
37112 2005-11-04  Bruno Haible  <bruno@clisp.org>
37113
37114         * gnulib-tool: Implement --update mode.
37115
37116 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37117
37118         Fix porting problem reported by Theodoros V. Kalamatianos.
37119         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
37120         Don't assume that futimes failing means we must fail.
37121
37122 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37123
37124         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
37125         variables to suggest the intended function of the PATH_MAX check.
37126
37127 2005-10-30  Kean Johnston  <jkj@sco.com>
37128
37129         Trivial changes to support SCO systems.
37130         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
37131         as PATH_MAX.
37132         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
37133         where __ptr is null when no I/O is pending.
37134
37135 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
37136
37137         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
37138         leave errno alone.  Problem reported by Dmitry V. Levin.
37139
37140 2005-10-28  Simon Josefsson  <jas@extundo.com>
37141
37142         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
37143         Test more.
37144
37145         * tests/test-gc-md2.c, tests/test-md2.c: New files.
37146
37147         * modules/md2, modules/md2-tests: New files.
37148
37149 2005-10-28  Simon Josefsson  <jas@extundo.com>
37150
37151         * m4/inet_ntop.m4: More tests.
37152
37153         * m4/gc-md2.m4, md2.m4: New file.
37154
37155 2005-10-28  Simon Josefsson  <jas@extundo.com>
37156
37157         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
37158         "restrict" keywords, as per POSIX.  Protect the function
37159         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
37160         Don't use K&R prototypes.  Check the sprintf return values.
37161         Re-define EAFNOSUPPORT if not present.  Indent.
37162
37163         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
37164         suggested by Bruno Haible <bruno@clisp.org>.
37165
37166         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
37167
37168         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
37169
37170         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
37171         libgcrypt).
37172
37173         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
37174
37175         * lib/md2.h, lib/md2.c: New files.
37176
37177 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
37178
37179         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
37180         errno alone.  Problem reported by Frederic Jolliton.
37181
37182 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37183
37184         * modules/verify (License): Change from GPL to LGPL.  This is a
37185         tiny module and there are apparently near-equivalents that are
37186         under the BSD license.
37187
37188 2005-10-24  Simon Josefsson  <jas@extundo.com>
37189
37190         * modules/sha1: Relicense to LGPL.
37191
37192 2005-10-24  Simon Josefsson  <jas@extundo.com>
37193
37194         * lib/md4.h: Shrink buffer size, now that we changed the type.
37195
37196 2005-10-23  Simon Josefsson  <jas@extundo.com>
37197
37198         * gnulib-tool (func_import): Fix --tests-base.
37199
37200 2005-10-22  Simon Josefsson  <jas@extundo.com>
37201
37202         * modules/arcfour (Depends-on): Need stdint.
37203
37204 2005-10-22  Simon Josefsson  <jas@extundo.com>
37205
37206         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
37207         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
37208
37209 2005-10-22  Simon Josefsson  <jas@extundo.com>
37210
37211         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
37212         suggested by Bruno Haible <bruno@clisp.org>.
37213
37214 2005-10-22  Simon Josefsson  <jas@extundo.com>
37215
37216         * lib/crc.h: Include stddef.h, for size_t.
37217
37218 2005-10-22  Simon Josefsson  <jas@extundo.com>
37219
37220         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
37221         arcfour_context struct (simplify test vector testing in GNU
37222         Shishi).
37223
37224 2005-10-21  Simon Josefsson  <jas@extundo.com>
37225
37226         * modules/des, modules/des-tests: New files.
37227
37228         * modules/gc-des, modules/gc-des-tests: New files.
37229
37230         * tests/test-des.c, tests/test-gc-des.c: New file.
37231
37232 2005-10-21  Simon Josefsson  <jas@extundo.com>
37233
37234         * modules/arctwo, modules/arctwo-tests: New files.
37235
37236         * tests/test-arctwo.c: New file.
37237
37238         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
37239
37240         * tests/test-gc-arctwo.c: New file.
37241
37242 2005-10-21  Simon Josefsson  <jas@extundo.com>
37243
37244         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
37245         Bruno Haible <bruno@clisp.org>.
37246
37247         * m4/gc-des.m4: New file.
37248
37249 2005-10-21  Simon Josefsson  <jas@extundo.com>
37250
37251         * m4/arctwo.m4: New file.
37252
37253         * m4/gc-arctwo.m4: New file.
37254
37255 2005-10-21  Simon Josefsson  <jas@extundo.com>
37256
37257         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
37258         block.
37259
37260 2005-10-21  Simon Josefsson  <jas@extundo.com>
37261
37262         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
37263         <bruno@clisp.org>.
37264
37265         * lib/hmac-sha1.c (hmac_sha1): Likewise.
37266
37267         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
37268         Bruno Haible <bruno@clisp.org>.
37269
37270         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
37271         <bruno@clisp.org>.
37272
37273 2005-10-21  Simon Josefsson  <jas@extundo.com>
37274
37275         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
37276
37277 2005-10-21  Simon Josefsson  <jas@extundo.com>
37278
37279         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
37280
37281 2005-10-21  Simon Josefsson  <jas@extundo.com>
37282
37283         * lib/des.h, lib/des.c: New files.
37284
37285         * lib/gc-gnulib.c: Support DES.c
37286
37287 2005-10-21  Simon Josefsson  <jas@extundo.com>
37288
37289         * lib/arctwo.h, lib/arctwo.c: New files.
37290
37291         * lib/gc-gnulib.c: Support ARCTWO.
37292
37293 2005-10-21  Simon Josefsson  <jas@extundo.com>
37294
37295         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
37296         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37297
37298 2005-10-21  Simon Josefsson  <jas@extundo.com>
37299
37300         * gnulib-tool (func_import, func_create_testdir): Define automake
37301         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
37302         Makefile.am snippet),
37303         suggested by Bruno Haible <bruno@clisp.org>.
37304
37305         * modules/gc (Makefile.am): Use it.
37306
37307 2005-10-21  Bruno Haible  <bruno@clisp.org>
37308
37309         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
37310         patch.
37311
37312 2005-10-19  Simon Josefsson  <jas@extundo.com>
37313
37314         * tests/test-gc-rijndael.c: New file.
37315
37316         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
37317
37318 2005-10-19  Simon Josefsson  <jas@extundo.com>
37319
37320         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
37321         interface too.
37322
37323 2005-10-19  Simon Josefsson  <jas@extundo.com>
37324
37325         * tests/test-gc-arcfour.c: New file.
37326
37327         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
37328
37329 2005-10-19  Simon Josefsson  <jas@extundo.com>
37330
37331         * modules/gc-md4, modules/gc-md4-tests: New file.
37332
37333         * tests/test-gc-md4.c: New file.
37334
37335 2005-10-19  Simon Josefsson  <jas@extundo.com>
37336
37337         * m4/gc-md4.m4: New file.
37338
37339 2005-10-19  Simon Josefsson  <jas@extundo.com>
37340
37341         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
37342         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
37343         <kasal@ucw.cz>.
37344
37345 2005-10-19  Simon Josefsson  <jas@extundo.com>
37346
37347         * m4/gc-arcfour.m4: New file.
37348
37349         * m4/gc-rijndael.m4: New file.
37350
37351 2005-10-19  Simon Josefsson  <jas@extundo.com>
37352
37353         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
37354
37355 2005-10-19  Simon Josefsson  <jas@extundo.com>
37356
37357         * lib/gc-gnulib.c: Support ARCFOUR.
37358
37359 2005-10-19  Simon Josefsson  <jas@extundo.com>
37360
37361         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
37362         support.
37363
37364         * lib/gc.h: Add ECB enum type.
37365
37366         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
37367
37368 2005-10-18  Simon Josefsson  <jas@extundo.com>
37369
37370         * tests/test-md5.c: New file.
37371
37372         * modules/md5-tests: New file.
37373
37374 2005-10-18  Simon Josefsson  <jas@extundo.com>
37375
37376         * tests/test-md4.c: New file.
37377
37378         * modules/md4, modules/md4-tests: New files.
37379
37380 2005-10-18  Simon Josefsson  <jas@extundo.com>
37381
37382         * m4/md4.m4: New file.
37383
37384 2005-10-18  Simon Josefsson  <jas@extundo.com>
37385
37386         * lib/md4.h, lib/md4.c: New files, based on md5.?.
37387
37388 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
37389
37390         * gnulib-tool (func_create_testdir): Omit the second check whether
37391         BUILT_SOURCES in nonempty.
37392
37393 2005-10-17  Simon Josefsson  <jas@extundo.com>
37394
37395         * tests/test-rijndael.c: New file.
37396
37397 2005-10-17  Simon Josefsson  <jas@extundo.com>
37398
37399         * modules/sha1: Depend on stdint instead of md5.
37400
37401         * modules/md5: Depend on stdint, remove uint32_t.
37402
37403 2005-10-17  Simon Josefsson  <jas@extundo.com>
37404
37405         * modules/gc-sha1-tests: New file.
37406
37407         * tests/test-gc-sha1.c: New file.
37408
37409 2005-10-17  Simon Josefsson  <jas@extundo.com>
37410
37411         * m4/md5.m4: Remove call to uint32_t.m4.
37412
37413 2005-10-17  Simon Josefsson  <jas@extundo.com>
37414
37415         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
37416
37417         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
37418         md5.h.
37419
37420         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
37421
37422         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
37423
37424 2005-10-17  Simon Josefsson  <jas@extundo.com>
37425
37426         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
37427
37428 2005-10-17  Simon Josefsson  <jas@extundo.com>
37429
37430         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
37431
37432 2005-10-17  Simon Josefsson  <jas@extundo.com>
37433
37434         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
37435
37436         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
37437
37438 2005-10-17  Bruno Haible  <bruno@clisp.org>
37439
37440         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
37441         that it can also be used in a test.
37442
37443 2005-10-16  Bruno Haible  <bruno@clisp.org>
37444
37445         * gnulib-tool (func_emit_tests_Makefile_am): Also define
37446         TESTS_ENVIRONMENT, so that individual tests can augment it.
37447
37448         * gnulib-tool (func_create_testdir): Use an intermediate target for
37449         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
37450         macros, like $(ALLOCA_H), which cannot be passed through the command
37451         line.
37452
37453 2005-10-15  Simon Josefsson  <jas@extundo.com>
37454
37455         * modules/rijndael-tests: New file.
37456
37457         * modules/rijndael: New file.
37458
37459 2005-10-15  Simon Josefsson  <jas@extundo.com>
37460
37461         * m4/rijndael.m4: New file.
37462
37463 2005-10-15  Simon Josefsson  <jas@extundo.com>
37464
37465         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
37466
37467         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
37468
37469 2005-10-14  Simon Josefsson  <jas@extundo.com>
37470
37471         * tests/test-arcfour.c: New file.
37472
37473         * modules/arcfour, modules/arcfour-tests: New files.
37474
37475 2005-10-14  Simon Josefsson  <jas@extundo.com>
37476
37477         * m4/arcfour.m4: New file.
37478
37479 2005-10-14  Simon Josefsson  <jas@extundo.com>
37480
37481         * lib/arcfour.h, lib/arcfour.c: New files.
37482
37483 2005-10-14  Roland McGrath  <roland@redhat.com>
37484
37485         Import from libc.  [BZ #1331]
37486         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
37487         macro argument.
37488         Reported by Matej Vela <vela@debian.org>.
37489
37490 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37491
37492         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
37493         include <wchar.h>; no longer needed.
37494
37495 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37496
37497         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
37498
37499 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
37500         and  Ulrich Drepper  <drepper@redhat.com>
37501
37502         Import from libc.
37503         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
37504         instead of inline stream orientation test and two separate
37505         function calls.  Pay no attention to USE_IN_LIBIO.
37506
37507 2005-10-13  Simon Josefsson  <jas@extundo.com>
37508
37509         * modules/gc-hmac-md5-tests: New file.
37510
37511         * tests/test-gc-hmac-sha1.c: New file.
37512
37513         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
37514
37515         * modules/gc-hmac-md5-tests: New file.
37516
37517         * tests/test-gc-md5.c: New file.
37518
37519         * modules/gc-md5-tests: New file.
37520
37521 2005-10-13  Simon Josefsson  <jas@extundo.com>
37522
37523         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
37524         Move memory allocation outside of loop.
37525
37526 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
37527
37528         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
37529         intermediate directory is in a read-only file system.  Problem
37530         reported by Eric Blake.
37531
37532 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
37533
37534         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
37535
37536 2005-10-12  Simon Josefsson  <jas@extundo.com>
37537
37538         * tests/test-hmac-sha1.c: New file.
37539
37540         * modules/hmac-sha1-tests: New file.
37541
37542         * modules/hmac-sha1: New file.
37543
37544 2005-10-12  Simon Josefsson  <jas@extundo.com>
37545
37546         * modules/gc-sha1: New file.
37547
37548 2005-10-12  Simon Josefsson  <jas@extundo.com>
37549
37550         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
37551
37552         * tests/test-gc-pbkdf2-sha1.c: New file.
37553
37554 2005-10-12  Simon Josefsson  <jas@extundo.com>
37555
37556         * modules/gc-md5, modules/gc-hmac-md5: New files.
37557
37558         * modules/gc (Files): Remove md5, memxor and hmac files.
37559
37560 2005-10-12  Simon Josefsson  <jas@extundo.com>
37561
37562         * m4/gc-pbkdf2-sha1.m4: New file.
37563
37564         * m4/gc-hmac-sha1.m4: New file.
37565
37566         * m4/gc-sha1: New file.
37567
37568         * m4/hmac-sha1.m4: New file.
37569
37570 2005-10-12  Simon Josefsson  <jas@extundo.com>
37571
37572         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
37573
37574         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
37575
37576 2005-10-12  Simon Josefsson  <jas@extundo.com>
37577
37578         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
37579         suggested by Bruno Haible <bruno@clisp.org>.
37580
37581 2005-10-12  Simon Josefsson  <jas@extundo.com>
37582
37583         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
37584
37585 2005-10-12  Simon Josefsson  <jas@extundo.com>
37586
37587         * lib/gc-pbkdf2-sha1.c: New file.
37588
37589         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
37590
37591 2005-10-12  Simon Josefsson  <jas@extundo.com>
37592
37593         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
37594
37595         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
37596
37597 2005-10-12  Simon Josefsson  <jas@extundo.com>
37598
37599         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
37600         GC_USE_HMAC_MD5, respectively.
37601
37602         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
37603         (gc_md5): Fix typo.
37604
37605         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
37606
37607         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
37608
37609         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
37610
37611 2005-10-12  Bruno Haible  <bruno@clisp.org>
37612
37613         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
37614         Reported by Stepan Kasal <kasal@ucw.cz>.
37615
37616 2005-10-11  Simon Josefsson  <jas@extundo.com>
37617
37618         * tests/test-crc.c: New file.
37619
37620         * modules/crc, modules/crc-tests: New files.
37621
37622 2005-10-11  Simon Josefsson  <jas@extundo.com>
37623
37624         * m4/crc.m4: New file.
37625
37626 2005-10-11  Simon Josefsson  <jas@extundo.com>
37627
37628         * lib/gc.h: Add gc_hash and gc_hash_buffer.
37629
37630         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
37631
37632         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
37633
37634 2005-10-11  Simon Josefsson  <jas@extundo.com>
37635
37636         * lib/crc.h, lib/crc.c: New files.
37637
37638         * lib/gc.h (gc_hash_buffer): Add doc.
37639
37640 2005-10-11  Bruno Haible  <bruno@clisp.org>
37641
37642         * modules/c-strcasestr: New file.
37643         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
37644
37645 2005-10-11  Bruno Haible  <bruno@clisp.org>
37646
37647         * modules/c-strcase: New file.
37648         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
37649
37650 2005-10-11  Bruno Haible  <bruno@clisp.org>
37651
37652         * lib/strcasecmp.c: Include limits.h.
37653         (strcasecmp): Avoid integer overflow on exotic platforms.
37654         * lib/strncasecmp.c: Include limits.h.
37655         (strncasecmp): Avoid integer overflow on exotic platforms.
37656         Reported by Paul Eggert.
37657
37658 2005-10-11  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/c-strcasestr.h: New file, from GNU gettext.
37661         * lib/c-strcasestr.c: New file, from GNU gettext.
37662
37663 2005-10-11  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/c-strcase.h: New file, from GNU gettext.
37666         * lib/c-strcasecmp.c: New file, from GNU gettext.
37667         * lib/c-strncasecmp.c: New file, from GNU gettext.
37668
37669 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
37670
37671         * modules/mempcpy (License): GPL -> LGPL.
37672         * modules/strchrnul (License): Likewise.
37673         * modules/sysexits (License): Likewise.
37674
37675 2005-10-08  Simon Josefsson  <jas@extundo.com>
37676
37677         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
37678
37679 2005-10-07  Simon Josefsson  <jas@extundo.com>
37680
37681         * m4/memxor.m4: Remove gl_C_RESTRICT call.
37682
37683 2005-10-06  Simon Josefsson  <jas@extundo.com>
37684
37685         * tests/test-hmac-md5.c: New file.
37686
37687         * modules/hmac-md5-tests: New file.
37688
37689         * modules/hmac-md5: New file.
37690
37691 2005-10-06  Simon Josefsson  <jas@extundo.com>
37692
37693         * m4/hmac-md5.m4: New file.
37694
37695         * m4/memxor.m4: Require gl_C_RESTRICT.
37696
37697 2005-10-06  Simon Josefsson  <jas@extundo.com>
37698
37699         * lib/memxor.c (memxor): Avoid casts and warnings.
37700
37701 2005-10-06  Simon Josefsson  <jas@extundo.com>
37702
37703         * lib/hmac-md5.c: New file.
37704
37705         * lib/hmac.h: New file.
37706
37707 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
37708
37709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
37710         promotes to int, not unsigned int, to catch the AIX 5.3
37711         compiler bug.
37712
37713 2005-10-05  Simon Josefsson  <jas@extundo.com>
37714
37715         * modules/memxor: New file.
37716
37717         * modules/iconv (Files): Move config.rpath to havelib, it is used
37718         there.
37719
37720         * modules/havelib (Files): Add config.rpath.
37721
37722 2005-10-05  Simon Josefsson  <jas@extundo.com>
37723
37724         * m4/memxor.m4: New file.
37725
37726 2005-10-05  Simon Josefsson  <jas@extundo.com>
37727
37728         * lib/memxor.c (memxor): Fix compiler error.
37729
37730         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
37731         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
37732
37733         * lib/memxor.h, lib/memxor.c: New files.
37734
37735         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
37736         we assume all systems have it, suggested by Jim Meyering
37737         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
37738         any systems lack sys/socket.h; mingw32 is known to lack it, but we
37739         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
37740         same reasons.
37741
37742 2005-10-05  Simon Josefsson  <jas@extundo.com>
37743
37744         * config/srclist.txt: Add glibc bug 1423 for md5.h.
37745
37746 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
37747
37748         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
37749         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
37750         needed, since the source code now assumes these .h files.
37751
37752 2005-10-05  Derek Price  <derek@ximbiot.com>
37753
37754         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
37755
37756 2005-10-05  Bruno Haible  <bruno@clisp.org>
37757
37758         * modules/stdint (License): Change to LGPL.
37759
37760 2005-10-04  Simon Josefsson  <jas@extundo.com>
37761
37762         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
37763         D. Baushke" <mdb@gnu.org>.
37764
37765 2005-10-04  Bruno Haible  <bruno@clisp.org>
37766
37767         * lib/verify.h (verify_true): Provide alternative definition for C++.
37768
37769 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
37770
37771         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
37772         (SSIZE_MAX): New macro, if not already defined.
37773         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
37774         than 2 GiB.
37775
37776 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37777
37778         Sync from coreutils.
37779         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
37780         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
37781         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
37782         ULLONG_MAX doesn't work with 2.7.2.1.
37783
37784 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37785
37786         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
37787         From Ben Pfaff.
37788
37789         * modules/exclude (Depends-on): Depend on verify.
37790         * modules/strtoimax (Depends-on): Likewise.
37791         * modules/utimecmp (Depends-on): Likewise.
37792
37793 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
37794
37795         * lib/exclude.c: Include verify.h.
37796         (verify): Remove.  All callers changed to use verify.h's version.
37797         * lib/strtoimax.c: Likewise.
37798         * lib/utimecmp.c: Likewis.e
37799
37800         Sync from coreutils.
37801         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
37802         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
37803         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
37804         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
37805         bother returning ENOSYS if settimeofday or stime fails; just let
37806         them return whatever errno they want to return.
37807         * lib/utimens.c: Include unistd.h, for dup2.
37808         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
37809         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
37810
37811 2005-10-02  Jim Meyering  <jim@meyering.net>
37812
37813         Sync from coreutils.
37814         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
37815         from glibc-2.2.5 that fails for read-only files.
37816
37817 2005-10-02  Jim Meyering  <jim@meyering.net>
37818
37819         Sync from coreutils.
37820         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
37821         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
37822         `#if HAVE_CONFIG_H'.
37823         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
37824         Remove AT_FDCWD test.
37825         Do not consume the fd unless successful.
37826         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
37827         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
37828         block, so that we don't even try to compile it if settimeofday is
37829         available.  This works around a compilation failure on OSF1 V5.1,
37830         due to stime requiring a `long int*' while tv_sec is `int'.
37831
37832 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
37833
37834         Sync from coreutils.
37835         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
37836         against `yes', rather than just testing for nonempty.
37837
37838 2005-10-01  Simon Josefsson  <jas@extundo.com>
37839
37840         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
37841         and Darwin.
37842
37843         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
37844         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
37845         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
37846         freeaddrinfo and gai_strerror are declared by the POSIX headers.
37847         Check if struct addrinfo is declared.
37848
37849 2005-10-01  Simon Josefsson  <jas@extundo.com>
37850
37851         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
37852         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
37853         AI_* and EAI_* definitions.  Protect function declarations.
37854
37855 2005-10-01  Jim Meyering  <jim@meyering.net>
37856
37857         Sync from coreutils.
37858
37859         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
37860         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
37861         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
37862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37863         in the inet and nsl libraries.  Required on Solaris 5.7.
37864
37865 2005-10-01  Jim Meyering  <jim@meyering.net>
37866
37867         Sync from coreutils.
37868         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
37869         in the inet and nsl libraries.  Required on Solaris 5.7.
37870
37871 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
37872
37873         * lib/getdelim.c (getdelim): Remove unused variables.
37874
37875 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
37876
37877         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
37878         so that the code works even with ancient cpp.  Portability problem
37879         with GCC 2.7.2.1 reported by Thomas M.Ott.
37880
37881 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
37882
37883         * modules/regex (Depends-on): Add strcase.
37884
37885         * modules/gethostname (Licence): Change from GPL to LGPL, since
37886         gethostname.c is a trivial implementation of a standard library
37887         function.
37888         * modules/poll (License): Change from GPL to LGPL, since it's
37889         derived from LGPL code.
37890
37891 2005-09-27  Jim Meyering  <jim@meyering.net>
37892
37893         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
37894         HAVE_CONFIG_H.
37895
37896         * lib/intprops.h (signed_type_or_expr__): Define.
37897         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
37898         for unsigned types.
37899
37900 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37901
37902         * lib/verify.h (verify_expr): Remove, replacing with:
37903         (verify_true): New macro that returns true instead of void.
37904         (verify_type__): Remove.
37905         (verify): Use verify_true rather than verify_type__.
37906
37907 2005-09-26  Bruno Haible  <bruno@clisp.org>
37908
37909         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
37910         is necessary.
37911         (lib_SOURCES): Remove mbchar.c.
37912         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
37913         (Files): Add m4/mbrtowc.m4.
37914         * modules/mbiter: Likewise.
37915         * modules/mbuiter: Likewise.
37916
37917 2005-09-26  Bruno Haible  <bruno@clisp.org>
37918
37919         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
37920         compile mbchar.c if they are not both present.
37921         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
37922         * m4/mbiter.m4 (gl_MBITER): Likewise.
37923         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
37924         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
37925         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
37926
37927 2005-09-25  Jim Meyering  <jim@meyering.net>
37928
37929         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
37930         also uses socklen_t.
37931
37932 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37933
37934         * lib/utimens.c (ENOSYS): Define if not already defined.
37935         (futimens): Support having a null PATH if the file descriptor
37936         is nonnegative.
37937
37938         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
37939         Remove.
37940         (__attribute): Define to empty unless GCC 3.1 or later.
37941         This works around a core dump on OpenBSD 3.4, which has GCC
37942         2.95.3, which dumps core when given __attribute__(()).  It also
37943         simplifies other tests, since we really don't want to bother with
37944         worrying about which ancient version of GCC supported what.
37945         Original problem reported by Yoann Vandoorselaere, with part of
37946         the fix suggested by Derek Price.
37947
37948 2005-09-24  Jim Meyering  <jim@meyering.net>
37949
37950         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
37951         so we can once again use a positive bitfield width of 1 -- now we
37952         don't have to explain why we were using a bitfield width of 2.
37953
37954 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37955
37956         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
37957         and similarly for the other external symbols.  Problem reported
37958         by James Gallager.
37959
37960         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
37961         bug reported by Jim Meyering.
37962
37963         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
37964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
37965         not needed, since socklen is a prerequisite module.
37966
37967 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37968
37969         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
37970         Problem reported by Eric Blake.
37971         (getaddrinfo): Initialize se so that it's not garbage.
37972         Redo internal storage allocation so that it doesn't make unportable
37973         assumptions about alignment.
37974         Fix a memory leak.
37975
37976         * lib/utimens.c (futimens): Use futimesat if available.
37977         Prefer it to futimes since it doesn't have the futimes bug.
37978
37979         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
37980         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
37981         Instead, declare a function that returns a pointer to an array,
37982         and use verify_type__ to declare the size of the array.
37983         Problem and germ of a solution reported by Bruno Haible.
37984         (verify_type__): Use 2, not 1, for bitfield size, to avoid
37985         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
37986
37987 2005-09-23  Jim Meyering  <jim@meyering.net>
37988
37989         Sync from coreutils.
37990         Correct build failure (socklen_t not defined) on at least
37991         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
37992         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
37993
37994 2005-09-23  Jim Meyering  <jim@meyering.net>
37995
37996         * modules/getaddrinfo (Depends-on): Add socklen.
37997
37998 2005-09-23  Bruno Haible  <bruno@clisp.org>
37999
38000         * tests/test-verify.c: New file.
38001
38002 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38003
38004         Sync from coreutils.
38005
38006         * modules/argmatch (Depends-on): Add verify.
38007         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
38008         unistd-safer.
38009         * modules/save-cwd (Depends-on): Likewise.
38010
38011         * modules/openat (Files): Add lib/openat-die.c.
38012         (Depends-on): Remove error, exitfail.
38013         Add dirname.
38014
38015         * modules/verify: New file.
38016         * MODULES.html.sh (Diagnostics <assert.h>): New section,
38017         with "verify" module.
38018
38019 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38020
38021         Sync from coreutils.
38022
38023         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
38024         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
38025         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
38026         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
38027         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
38028         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
38029         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
38030         Don't bother checking for string.h, stdlib.h, unistd.h.
38031         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
38032         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
38033         module's job.
38034         * m4/jm-macros.m4 (gl_MACROS): Likewise.
38035         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
38036
38037         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
38038         (gl_GETDATE): Use it.
38039
38040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
38041
38042 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38043
38044         Sync from coreutils.
38045
38046         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
38047         stat-time.h.
38048         * lib/argmatch.h: Include verify.h
38049         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
38050         (ARGMATCH_ASSERT): Remove; unused.
38051         * lib/canonicalize.c: Assume STDC_HEADERS.
38052         * lib/exclude.c: Include "strcase.h".
38053         * lib/regex_internal.h [!defined _LIBC]: Likewise.
38054         * lib/getusershell.c: Include stdio--.h rather than stdio.h
38055         and stdio-safer.h.
38056         (getusershell): Call fopen, not fopen_safer.
38057         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
38058         Do not include unistd-safer.h.
38059         (save_cwd): Don't call fd_safer; no longer needed
38060         now that we include fcntl--.h.
38061
38062         * lib/getdate.y (relative_time): New type.
38063         (RELATIVE_TIME_0): New constant.
38064         (parser_control): Use relative_time instead of doing it ourselves.
38065         (%union): Add new relative_time rel member.
38066         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
38067         Now typeless.
38068         (relunit, relunit_snumber): Now of type rel.
38069         (zone, rel, relunit, get_date): Adjust to above changes.
38070
38071         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
38072         Do not include unistd-safer.h.
38073         (getloadavg): Don't call fd_safer; no longer needed
38074         now that we include fcntl--.h.
38075
38076         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
38077         (make_dir_parents): Treat ENOSYS like EEXIST.
38078
38079         Improve quality of diagnostics on restore_cwd failure.
38080         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
38081         (make_dir_parents): Last arg is now int * (for errno), not bool *.
38082         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
38083         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
38084         each time through the loop.  Do not diagnose restore_cwd failure;
38085         that is the caller's job (and perhaps the caller does not care).
38086
38087         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
38088         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
38089         If the file already exists but is not a directory, don't bother
38090         to try to make its parents.
38091         Close potential file descriptor leak if we can't chdir("/") (!).
38092         Don't always return true if chdir($PWD) fails; return true only
38093         if the requested action was done successfully (except for the
38094         chdir($PWD)).
38095         Don't log final directory unless we actually made it.
38096         Refactor to avoid duplicate code to fix up permissions.
38097         Don't attempt to fix up parent permissions if chdir($PWD) fails.
38098
38099         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
38100         to make it a bit faster and (I hope) clearer.
38101         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
38102         Fix bug in formats like %2N.
38103
38104         * lib/verify.h: New file.
38105
38106 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38107
38108         Sync from coreutils.
38109         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
38110
38111 2005-09-22  Jim Meyering  <jim@meyering.net>
38112
38113         Sync from coreutils.
38114
38115         * m4/lstat.m4 (gl_FUNC_LSTAT):
38116         Use AC_LIBSOURCES to require lstat.c and lstat.h.
38117         Remove obsolete comment.
38118         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
38119         * m4/xstrtod.m4: Likewise.
38120
38121         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
38122
38123 2005-09-22  Jim Meyering  <jim@meyering.net>
38124
38125         Sync from coreutils.
38126
38127         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
38128
38129         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
38130         the .tm_year member, since otherwise gcc-4.0 would now warn about
38131         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
38132
38133         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
38134         order to avoid an unsuppressible warning from gcc on 64-bit systems.
38135
38136         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
38137         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
38138         when run in a time zone for which daylight savings time is in effect
38139         for the starting date.
38140
38141         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
38142         stop us from restricting permissions of just-created absolute-named
38143         directories.
38144         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
38145         to restore initial working directory.
38146         * lib/mkdir-p.c (make_dir_parents): New parameter:
38147         different_working_dir, to tell caller if/when we change the working
38148         directory and are unable to return to the initial one.
38149         * lib/mkdir-p.h (make_dir_parents): Update prototype.
38150         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
38151         `return false'.  This fixes a bug introduced on 2004-07-30.
38152
38153         * lib/openat.c (fdopendir): Be sure to close the supplied
38154         file descriptor before returning.  This makes our replacement
38155         implementation a little closer to Solaris's, where fdopendir
38156         ties the file descriptor to the returned DIR* pointer.
38157         * lib/openat.c (unlinkat): New function.
38158         * lib/openat.h (unlinkat): Add prototype.
38159         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
38160         (openat_restore_fail): Rename from openat_restore_die.
38161         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
38162
38163         Provide an alternative to exiting immediately upon save_cwd or
38164         restore_cwd failure.  Now, an application can arrange e.g.,
38165         to perform a longjump in that case.
38166         * lib/openat.c: Include dirname.h.
38167         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
38168         (rpl_openat, fdopendir, fstatat): Call openat_save_die
38169         and openat_restore_die rather than calling error directly.
38170         Don't include "error.h" or "exitfail.h"; they're no longer needed.
38171
38172         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
38173         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
38174         define.
38175
38176         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
38177         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
38178                             int utc, int nanoseconds);
38179         Background:
38180         date should not have to allocate a megabyte of virtual memory to
38181         handle a format argument like +%1048575T.  When implemented with
38182         strftime, it must allocate such a buffer, use strftime to fill it
38183         in, print it, then free it.
38184         With fprintftime, it simply prints everything and exits.
38185         With no need for memory allocation, that's one fewer way to fail.
38186         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
38187         optional field width, not before, so we accept %9:z, not %:9z.
38188         (my_strftime): Be sure to use L_('x') for literals.
38189
38190         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
38191         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
38192         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
38193         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
38194         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
38195         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
38196         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
38197         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
38198         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
38199         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
38200         * lib/xgethostname.c, lib/xreadlink.c:
38201         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
38202
38203         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
38204         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
38205         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
38206         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
38207         and don't include <sys/file.h>).
38208
38209 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
38210
38211         Sync from coreutils.
38212
38213         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
38214         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
38215         [!LDAV_DONE]: Avoid unused variable warning.
38216
38217 2005-09-21  Bruno Haible  <bruno@clisp.org>
38218
38219         * lib/unicodeio.h (unicode_to_mb): New declaration.
38220
38221 2005-09-20  Derek Price  <derek@ximbiot.com>
38222
38223         * lib/getaddrinfo.c: Don't include <netdb.h> included from
38224         getaddrinfo.h.
38225
38226 2005-09-20  Bruno Haible  <bruno@clisp.org>
38227
38228         * gnulib-tool: Remove trailing slashes from the values specified for
38229         --source-base, --m4-base, --tests-base, --aux-dir.
38230         Suggested by Simon Josefsson <jas@extundo.com>.
38231
38232 2005-09-20  Bruno Haible  <bruno@clisp.org>
38233
38234         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
38235         func_modules_to_filelist, func_import, func_create_testdir): Make all
38236         sorting results locale-independent, so that gnulib-cache.m4 doesn't
38237         change when gnulib-tool is invoked in a different locale.
38238
38239 2005-09-19  Simon Josefsson  <jas@extundo.com>
38240
38241         * m4/socklen.m4: Fix typo.
38242
38243 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38244
38245         Use a consistent style for including <config.h>.
38246         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
38247         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
38248         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
38249         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
38250         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
38251         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
38252         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
38253         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
38254         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
38255         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
38256         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
38257         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
38258         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
38259         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
38260         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
38261         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
38262         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
38263         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
38264         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
38265         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
38266         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
38267         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
38268         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
38269         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
38270         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
38271         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
38272         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
38273         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
38274         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
38275         lib/xstrtoumax.c, lib/yesno.c:
38276         Standardize inclusion of config.h.
38277         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
38278         lib/inttostr.h:  Removed inclusion of config.h from header files.
38279         * lib/inttostr.c:  Adjusted in-tree users.
38280         * lib/timespec.h: Remove superfluous warning to include config.h.
38281         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
38282         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
38283         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
38284         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
38285         config.h with HAVE_CONFIG_H.
38286
38287 2005-09-19  Jim Meyering  <jim@meyering.net>
38288
38289         * modules/pathmax (License): Change to LGPL.
38290
38291 2005-09-19  Derek Price  <derek@ximbiot.com>
38292
38293         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
38294
38295 2005-09-19  Bruno Haible  <bruno@clisp.org>
38296
38297         * gnulib-tool (import): Provide default for --tests-base.
38298
38299 2005-09-19  Bruno Haible  <bruno@clisp.org>
38300
38301         * doc/quote.texi: New file, extracted from gnulib.texi.
38302         * doc/ctime.texi: New file, extracted from gnulib.texi.
38303         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
38304         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
38305         * doc/gnulib.texi: Include them.
38306
38307 2005-09-18  Bruno Haible  <bruno@clisp.org>
38308
38309         Portability fix.
38310         * gnulib-tool (func_readlink): New function.
38311         (func_ln_if_changed): Use it.
38312
38313 2005-09-18  Bruno Haible  <bruno@clisp.org>
38314
38315         * gnulib-tool: Support --with-tests also with --import.
38316         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
38317         (func_import): Use variables $testsbase and $inctests. Emit a
38318         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
38319         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
38320         SUBDIRS += $testsdir.
38321         (func_create_testdir): Update.
38322
38323 2005-09-18  Bruno Haible  <bruno@clisp.org>
38324
38325         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
38326         instead of $dry_run.
38327         (func_cp_if_changed, func_mv_if_changed): Remove functions.
38328         (func_ln_if_changed): Don't handle dry-run here.
38329         (func_import): In dry-run mode, detect more precisely which actions
38330         would be performed, and don't use "...ing" verbs.
38331
38332 2005-09-18  Bruno Haible  <bruno@clisp.org>
38333
38334         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
38335         (func_import): Use join on two temporary files instead of three nested
38336         loops, in order to determine which files are new or old.
38337
38338 2005-09-18  Bruno Haible  <bruno@clisp.org>
38339
38340         * gnulib-tool (func_import): Comment out code that spits out the
38341         new files with --dry-run.
38342
38343 2005-09-18  Bruno Haible  <bruno@clisp.org>
38344
38345         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
38346
38347 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38348
38349         * lib/stat-time.h: New file.
38350         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
38351         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
38352         in a different way.
38353         (timespec_cmp): New function.
38354         * lib/utimecmp.c: Include stat-time.h.
38355         (SYSCALL_RESOLUTION): Depend on whether various struct stat
38356         members exist, not on the obsolescent ST_MTIM_NSEC.
38357         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
38358
38359 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38360
38361         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
38362
38363 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38364
38365         * MODULES.html.sh (File system functions): Add stat-time.
38366         * modules/stat-time: New file.
38367         * modules/timespec (Files): Remove m4/st_mtim.m4; this
38368         is now done in a different way, by the stat-time module.
38369         * modules/utimecmp (Depends-on): Add stat-time.
38370
38371 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
38372
38373         * m4/st_mtim.m4: Remove.  Superseded by...
38374         * m4/stat-time.m4: New file.
38375         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
38376         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
38377
38378 2005-09-15  Derek Price  <derek@ximbiot.com>
38379
38380         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
38381
38382 2005-09-15  Derek Price  <derek@ximbiot.com>
38383
38384         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
38385         * lib/regex_internal.c: Ditto, using this...
38386         (__GNUC_PREREQ): ...new macro.
38387         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
38388         using...
38389         (__GNUC_PREREQ): ...this new macro.
38390
38391         * lib/strstr.h: Include string.h. Define strstr as a macro here.
38392
38393 2005-09-15  Derek Price  <derek@ximbiot.com>
38394             Paul Eggert  <eggert@cs.ucla.edu>
38395
38396         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
38397         changes, consolidating in...
38398         * lib/regex_internal.h: ...this file.
38399
38400 2005-09-13  Jim Meyering  <jim@meyering.net>
38401
38402         * lib/canon-host.c: Filter through gnu indent and reword comments
38403         slightly.
38404         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
38405
38406 2005-09-13  Derek Price  <derek@ximbiot.com>
38407
38408         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
38409         failure.
38410         Reported by Jim Meyering  <jim@meyering.net>.
38411
38412 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
38413
38414         * lib/base64.c: Typo.
38415         (base64_encode): Put b64str in initialized data section.
38416
38417 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
38418
38419         Merge glibc and coreutils changes into gnulib, plus a few
38420         extra fixes.
38421         * lib/md5.c: Use #error rather than a string.
38422         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
38423         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
38424         (__attribute__): Define to empty for non recent-GCC.
38425         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
38426         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
38427         Renamed from their non-__ counterparts, with new macros replacing
38428         them if not _LIBC.  Add __THROW attribute.
38429         (rol): Remove.
38430         (struct md5_ctx): Align buffer if using GCC.
38431         * lib/sha1.h (struct sha1_ctx): Likewise.
38432         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
38433         The old name was backwards.
38434         (NOTSWAP): Remove; not used.
38435         (rol): New macro, moved here from md5.h.
38436         (sha1_process_block): Remove a FIXME that doesn't make sense.
38437
38438 2005-09-12  Derek Price  <derek@ximbiot.com>
38439
38440         Return usable errors from canon-host.
38441         * lib/canon-host.h: New file.
38442         * lib/canon-host.c (canon_host): Wrap...
38443         (canon_host_r): ...this new function, which now relies exclusively on
38444         getaddrinfo.
38445         (ch_strerror): New function.
38446         (last_cherror): New global.
38447         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
38448         interface.
38449         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
38450         void *.
38451         (freeaddrinfo): Free ai->ai_canonname when set.
38452
38453 2005-09-12  Derek Price  <derek@ximbiot.com>
38454
38455         Make canon-host require getaddrinfo.
38456         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
38457         AC_LIBSOURCE canon-host.h.  Call...
38458         (gl_PREREQ_CANON_HOST): ...this new function, which requires
38459         gl_GETADDRINFO.
38460         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
38461
38462 2005-09-12  Derek Price  <derek@ximbiot.com>
38463
38464         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
38465         LGPL.
38466         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
38467
38468 2005-09-12  Derek Price  <derek@ximbiot.com>
38469
38470         * lib/gai_strerror.c: Include config.h when available.  Include
38471         getaddrinfo.h before other headers to test interface.
38472         Reported by Larry Jones <lawrence.jones@ugs.com>.
38473
38474 2005-09-12  Derek Price  <derek@ximbiot.com>
38475             Paul Eggert  <eggert@cs.ucla.edu>
38476
38477         * modules/glob (Files): Add glob-libc.h.
38478
38479 2005-09-12  Derek Price  <derek@ximbiot.com>
38480             Paul Eggert  <eggert@cs.ucla.edu>
38481
38482         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
38483         glob_.h, glob-libc.h.
38484         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
38485
38486 2005-09-12  Derek Price  <derek@ximbiot.com>
38487             Paul Eggert  <eggert@cs.ucla.edu>
38488
38489         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
38490         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
38491         protecting things that should be done only in gnulib contexts.
38492         * lib/glob_.h: New file, containing only the glob things needed for
38493         gnulib.
38494         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
38495         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
38496         (glob, globfree, glob_pattern_p): Now defined simply in terms of
38497         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
38498         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
38499         and to respect the namespace rules better.
38500
38501 2005-09-08  Simon Josefsson  <jas@extundo.com>
38502
38503         * modules/socklen: New file.
38504
38505 2005-09-08  Simon Josefsson  <jas@extundo.com>
38506
38507         * m4/socklen.m4: New file.
38508
38509 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38510
38511         * modules/utimens (Files): Add m4/utimbuf.m4, since
38512         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
38513         Reported by Sergey Poznyakoff.
38514
38515 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38516
38517         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
38518         definitions, since that's the preferred style in glibc.
38519         Fix a minor spacing issue, and update copyright notice to match
38520         glibc's.
38521
38522 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38523
38524         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
38525
38526 2005-09-06  Simon Josefsson  <jas@extundo.com>
38527
38528         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
38529         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
38530
38531 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38532
38533         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
38534         warning.
38535
38536 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38537
38538         * config/srclist.txt: Add glibc bug 1302.
38539
38540 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
38541
38542         Change bitset word type from unsigned int to unsigned long int,
38543         as this has better performance on typical 64-bit hosts.
38544         Port bitset code to hosts with unusual word sizes.
38545         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
38546         (build_collating_symbol):
38547         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
38548         argument is a bitset.  This is merely a style issue, but it makes
38549         it clearer that an entire array is expected.
38550         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
38551         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
38552         Port to the case where bitset_word is not the same as unsigned int.
38553         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38554         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
38555         Likewise.
38556         * lib/regexec.c (check_dst_limits_calc_pos_1,
38557         check_subexp_matching_top):
38558         (build_trtable, group_nodes_into_DFAstates):
38559         Likewise.
38560         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
38561         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
38562         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
38563         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
38564         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
38565         * lib/regcomp.c (optimize_subexps, lower_subexp):
38566         Work even if bitset_word has holes in its bitwise representation.
38567         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
38568         * lib/regexec.c (check_dst_limits_calc_pos_1,
38569         check_subexp_matching_top):
38570         Likewise.
38571         * lib/regex_internal.c (re_string_reconstruct):
38572         Don't assume UCHAR_MAX == 255.
38573         * lib/regex_internal.h (bitset_set_all): Likewise.
38574         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
38575         All uses changed.
38576         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
38577         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
38578         All uses changed.
38579         (BITSET_WORD_MAX): New macro.
38580         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
38581         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
38582         (bitset_empty, bitset_copy):
38583         Prefer sizeof (bitset) to multiplying it out ourselves.
38584         (bitset_not_merge): Remove; unused.
38585         (bitset_contain): Return bool, not unsigned int with one bit on.
38586         All callers changed.
38587         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
38588         alignment than re_node_set; do this by defining a new internal
38589         type struct dests_alloc and using it to allocate memory.
38590
38591 2005-09-05  Bruno Haible  <bruno@clisp.org>
38592
38593         * gnulib-tool (func_import): Fix comparison in handling of symbolic
38594         links.
38595
38596 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
38597
38598         * modules/size_max (Makefile.am): Add size_max.h
38599
38600 2005-09-04  Derek Price  <derek@ximbiot.com>
38601
38602         * gnulib-tool (func_import): Fix reversed $symbolic logic.
38603
38604 2005-09-03  Simon Josefsson  <jas@extundo.com>
38605
38606         * gnulib-tool: Fix typo.
38607
38608 2005-09-03  Simon Josefsson  <jas@extundo.com>
38609
38610         * config/srclist.txt: Add glibc bug 1293.
38611
38612 2005-09-03  Derek Price  <derek@ximbiot.com>
38613
38614         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
38615         From Larry Jones <lawrence.jones@ugs.com>.
38616
38617 2005-09-02  Simon Josefsson  <jas@extundo.com>
38618
38619         * modules/socklen: New file.
38620
38621 2005-09-02  Simon Josefsson  <jas@extundo.com>
38622
38623         * modules/havelib: New module.
38624
38625         * modules/gettext, modules/iconv, modules/lock, modules/readline:
38626         Use havelib.
38627
38628 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
38629
38630         Check for arithmetic overflow when calculating sizes, to prevent
38631         some buffer-overflow issues.  These patches are conservative, in the
38632         sense that when I couldn't determine whether an overflow was possible,
38633         I inserted a run-time check.
38634         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
38635         macros.
38636         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
38637         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
38638         (re_xnrealloc, re_x2nrealloc): New inline functions.
38639         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
38640         parse_bracket_exp):
38641         (build_equiv_class, build_charclass): Check for arithmetic overflow
38642         in size expression calculations.
38643         * lib/regex_internal.c (re_string_realloc_buffers):
38644         (build_wcs_upper_buffer, re_node_set_add_intersect):
38645         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
38646         (re_dfa_add_node, register_state): Likewise.
38647         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
38648         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
38649         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
38650         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
38651
38652 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
38653
38654         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
38655         m4/ulonglong.m4.  Problem reported by Martin Lambers.
38656
38657 2005-09-02  Bruno Haible  <bruno@clisp.org>
38658
38659         Support for lib vs. lib64 distinction on biarch platforms.
38660         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
38661         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
38662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
38663
38664 2005-09-02  Bruno Haible  <bruno@clisp.org>
38665
38666         * gnulib-tool (import): In the other first-use case, provide defaults
38667         as well.
38668
38669 2005-09-02  Bruno Haible  <bruno@clisp.org>
38670
38671         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
38672         patches not yet found in the latest gettext release.
38673
38674 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38675
38676         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
38677         to avoid a collision with bits/local_lim.h in glibc.
38678         All uses changed.  Problem reported by Dmitry V. Levin in
38679         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
38680
38681         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
38682         bugs in int versus size_t comparisons.
38683         (re_string_context_at): Fix bug where the code assumed that
38684         Idx is signed.
38685
38686         Use bool where appropriate.
38687         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
38688         All callers changed.
38689         (calc_eclosure_iter): Likewise, for ROOT arg.
38690         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
38691         (build_charclass_op): Likewise, for NON_MATCH arg.
38692         * lib/regex_internal.c (re_string_allocate, re_string_construct):
38693         (re_string_construct_common): Likewise, for ICASE arg.
38694         * lib/regexec.c (re_search_2_stub, re_search_stub):
38695         Likewise, for RET_LEN arg.
38696         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
38697         (set_regs): Likewise, for FL_BACKTRACK arg.
38698         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
38699         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
38700         (calc_eclosure_iter, parse_bracket_exp):
38701         Use bool for internal variables that are booleans.
38702         * lib/regexec.c (re_search_internal, check_matching,
38703         proceed_next_node):
38704         (set_regs, build_sifted_states, sift_states_bkref):
38705         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
38706         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
38707         (find_collation_sequence_value):
38708         Likewise.
38709         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
38710         (re_node_set_compare):
38711         Return bool, not int. All callers changed.
38712         * lib/regexec.c (check_halt_node_context, check_dst_limits):
38713         (build_trtable, check_node_accept): Likewise.
38714         * lib/regex_internal.h: Include stdbool.h.
38715
38716         Fix bugs uncovered when converting to bool.
38717         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
38718         failure instead of charging ahead blindly.
38719         * lib/regex_internal.c (register_state): Likewise.
38720         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
38721         for freeing internal storage.
38722         (group_nodes_into_DFA_states): Use unsigned int, not int, for
38723         bitset pieces used as boolean, to avoid undefined behavior
38724         on hosts that do int overflow checking.
38725
38726 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
38727
38728         * config/srclist.txt: Add glibc bugs 1285-1287.
38729
38730 2005-09-01  Jim Meyering  <jim@meyering.net>
38731
38732         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
38733         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
38734         Require gl_STAT_MACROS, too.
38735
38736 2005-09-01  Bruno Haible  <bruno@clisp.org>
38737
38738         * gnulib-tool (import): In the first-use case, provide defaults.
38739
38740 2005-09-01  Bruno Haible  <bruno@clisp.org>
38741
38742         * gnulib-tool (func_import): Remove the .tmp files.
38743
38744 2005-09-01  Bruno Haible  <bruno@clisp.org>
38745
38746         * gnulib-tool (func_import): Fix handling of symbolic links.
38747
38748 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38749
38750         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
38751         old glibc regex code mishandles strings longer than 2**31 bytes.
38752         This patch fixes this when the regex code is used in gnulib
38753         (i.e., outside glibc).
38754
38755         This patch should not affect the use of the regex code inside
38756         glibc.  No doubt this problem also needs to be handled for glibc
38757         as well, but the result will be an incompatible change to the
38758         glibc ABI, and the old ABI will have to be supported too.  That
38759         can be the the subject for another patch.
38760
38761         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
38762         governing whether the rest of this patch is active.  By default,
38763         the macro is disabled and the patch has no effect.
38764         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
38765         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
38766         (struct re_pattern_buffer, re_search, re_search_2, re_match):
38767         (re_match_2, re_set_registers): Use the new types.
38768         * lib/regex_internal.h (Idx, re_hashval_t): New types.
38769         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
38770         New macros.
38771         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
38772         (re_string_context_at, bin_tree_t, re_dfastate_t):
38773         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
38774         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
38775         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
38776         (re_string_char_size_at, re_string_wchar_at):
38777         (re_string_elem_size_at):
38778         Use the new types and macros to port to 64-bit hosts.
38779         Use unsigned types for internal values, so that the code
38780         mostly works even for arrays larger than SSIZE_MAX.
38781         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
38782         (search_duplicated_node, calc_eclosure_iter, fetch_number):
38783         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38784         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
38785         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
38786         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
38787         (calc_inveclosure, parse_dup_op, build_range_exp):
38788         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
38789         (fetch_number, create_token_tree, mark_opt_subexp):
38790         Likewise.
38791         * lib/regex_internal.c (re_string_construct_common,
38792         create_ci_newstate):
38793         (create_cd_newstate, re_string_allocate, re_string_construct):
38794         (re_string_realloc_buffers, build_wcs_upper_buffer):
38795         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
38796         (re_string_reconstruct, re_string_peek_byte_case):
38797         (re_string_fetch_byte_case, re_string_context_at):
38798         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
38799         (re_node_set_init_copy, re_node_set_add_intersect):
38800         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
38801         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
38802         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
38803         (re_acquire_state, re_acquire_state_context, register_state):
38804         Likewise.
38805         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
38806         search_cur_bkref_entry):
38807         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
38808         (re_search_internal, re_search_2_stub, re_search_stub)
38809         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
38810         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
38811         (update_cur_sifted_state, check_dst_limits):
38812         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38813         (check_subexp_limits, sift_states_bkref, merge_state_array):
38814         (check_subexp_matching_top, get_subexp, get_subexp_sub):
38815         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
38816         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
38817         (expand_bkref_cache, check_node_accept_bytes):
38818         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
38819         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
38820         (acquire_init_state_context, check_halt_node_context):
38821         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
38822         (sift_states_backward, clean_state_log_if_needed):
38823         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
38824         (find_recover_state, transit_state_sb, transit_state_mb):
38825         (transit_state_bkref, build_trtable, match_ctx_clean):
38826         Likewise.
38827         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
38828         to work around an assumption that REG_MISSING is negative.
38829
38830         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
38831         (seek_collating_symbol_entry) [defined _LIBC]:
38832         (lookup_collation_sequence_value) [defined _LIBC]:
38833         (build_range_exp, build_collating_symbol) [defined _LIBC]:
38834         Use prototypes rather than old-style function definitions.
38835         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
38836         (transit_state_sb) [0]:
38837         (find_collation_sequence_value) [defined _LIBC]: Likewise.
38838
38839         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
38840         rm_eo.
38841
38842         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
38843         (optimize_subexps, lower_subexp):
38844         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
38845         since the signed shift might overflow.  Use 1u<<31 instead.
38846         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38847         Likewise.
38848         * lib/regexec.c (check_dst_limits_calc_pos_1,
38849         check_subexp_matching_top): Likewise.
38850
38851         * lib/regcomp.c (optimize_subexps, lower_subexp):
38852         Use CHAR_BIT rather than 8, for clarity.
38853         * lib/regexec.c (check_dst_limits_calc_pos_1):
38854         (check_subexp_matching_top): Likewise.
38855         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
38856         have to worry about portability issues when shifting it left.
38857         Remove no-longer-needed test for table_size > 0.
38858         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
38859         in a word, as the resulting behavior is undefined.
38860         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
38861         in one case, a <= should have been an <, and in another case the
38862         whole test was missing.
38863         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
38864         the standard name CHAR_BIT.
38865         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
38866         this is not true on one's complement and signed-magnitude hosts.
38867
38868         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
38869         next_last_offset.
38870         (struct re_dfa_t): Remove unused member states_alloc.
38871         * lib/regcomp.c (init_dfa): Don't initialize unused members.
38872
38873 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38874
38875         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
38876         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
38877         and large-file glibc and in 32-bit large-file Solaris.
38878
38879 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38880
38881         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
38882         lengths fit in regoff_t; this isn't true if regoff_t is the same
38883         width as size_t.
38884         * lib/regex.c (re_search_internal): 5th arg is LAST_START
38885         (= START + RANGE) instead of RANGE.  This avoids overflow
38886         problems when regoff_t is the same width as size_t.
38887         All callers changed.
38888         (re_search_2_stub): Check for overflow when adding the
38889         sizes of the two strings.
38890         (re_search_stub): Check for overflow when adding START
38891         to RANGE; if it occurs, substitute the extreme value.
38892
38893 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
38894
38895         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
38896
38897 2005-08-31  Jim Meyering  <jim@meyering.net>
38898
38899         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
38900         a pointer-to-const.
38901         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
38902         (register_state): Likewise.
38903         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
38904         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
38905         (group_nodes_into_DFAstates): Likewise.
38906
38907 2005-08-31  Jim Meyering  <jim@meyering.net>
38908
38909         * check-module: Add a FIXME comment.
38910
38911 2005-08-31  Eric Blake  <ebb9@byu.net>
38912
38913         * modules/unistd-safer (Files): Add unistd--.h.
38914         * modules/stdio-safer (Files): Add stdio--.h.
38915
38916 2005-08-31  Derek Price  <derek@ximbiot.com>
38917
38918         * lib/getdelim.c (getdelim): Return EOF on EOF.
38919         Reported by Larry Jones <lawrence.jones@ugs.com>.
38920
38921 2005-08-31  Bruno Haible  <bruno@clisp.org>
38922
38923         Avoid unnecessary diffs in the generated lib/Makefile.am.
38924         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
38925         the generated files.
38926         (func_import): Don't set cmd.
38927
38928 2005-08-31  Bruno Haible  <bruno@clisp.org>
38929
38930         * lib/strstr.c: Include <stddef.h>, for NULL.
38931         * lib/strcasestr.c: Likewise.
38932         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38933
38934 2005-08-31  Bruno Haible  <bruno@clisp.org>
38935
38936         * gnulib-tool: New option --macro-prefix.
38937         (func_import): Use macro_prefix.
38938         (import): Handle option --macro-prefix.
38939
38940 2005-08-31  Bruno Haible  <bruno@clisp.org>
38941
38942         * gnulib-tool (import): Rename most ac_* variables to cached_*.
38943         Also use new variables cached_lgpl, cached_libtool.
38944
38945 2005-08-31  Bruno Haible  <bruno@clisp.org>
38946
38947         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
38948         always instantiating them.
38949
38950 2005-08-31  Bruno Haible  <bruno@clisp.org>
38951
38952         * gnulib-tool (func_import): Read the previous cached settings
38953         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
38954         earlier added by gnulib but are now dropped. Warn when a gnulib file
38955         overwrites a non-gnulib file.
38956
38957 2005-08-31  Bruno Haible  <bruno@clisp.org>
38958
38959         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
38960         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
38961         projects that don't keep autogenerated files in CVS. Put into
38962         actioncmd only the specified modules, not the transitive closure.
38963
38964 2005-08-31  Bruno Haible  <bruno@clisp.org>
38965
38966         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
38967         Create directories that shall be filled.
38968         (import): Don't look for gl_* macros in configure.ac. Recurse across
38969         all directories containing a gnulib-cache.m4 files, if meaningful.
38970
38971 2005-08-31  Bruno Haible  <bruno@clisp.org>
38972
38973         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
38974         (import): Set seen_libtool when we see gl_LIBTOOL.
38975
38976 2005-08-31  Bruno Haible  <bruno@clisp.org>
38977
38978         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
38979         declaration macro definitions from generated gnulib.m4.
38980
38981 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
38982
38983         * lib/iconvme.h: Add prototype for iconv_alloc.
38984
38985 2005-08-29  Simon Josefsson  <jas@extundo.com>
38986
38987         * lib/iconvme.c: Fix errno.
38988
38989 2005-08-29  Bruno Haible  <bruno@clisp.org>
38990
38991         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
38992         that it works when the directory contains spaces.
38993
38994 2005-08-29  Bruno Haible  <bruno@clisp.org>
38995
38996         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
38997
38998 2005-08-29  Bruno Haible  <bruno@clisp.org>
38999
39000         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
39001         Emit more advice.
39002
39003 2005-08-29  Bruno Haible  <bruno@clisp.org>
39004         and Stepan Kasal  <kasal@ucw.cz>
39005
39006         * check-module: If more parameters are given, check each of them
39007         separately; add more exceptions, as noted by Jim Meyering.
39008         (check_module): New procedure.
39009         (%exempt_header): Now contains all exceptions.
39010
39011 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
39012
39013         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
39014
39015 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39016
39017         * lib/iconvme.c: Split iconv_string into iconv_alloc.
39018
39019 2005-08-28  Bruno Haible  <bruno@clisp.org>
39020
39021         * m4/gnulib-tool.m4: New file.
39022
39023 2005-08-27  Jim Meyering  <jim@meyering.net>
39024
39025         * modules/unistd-safer (Files): Add pipe-safer.c.
39026         * modules/fcntl-safer (Files): Add creat-safer.c.
39027
39028 2005-08-27  Jim Meyering  <jim@meyering.net>
39029
39030         * m4/stdlib-safer.m4: New file.  From coreutils.
39031         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
39032         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
39033         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
39034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
39035         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
39036
39037 2005-08-27  Jim Meyering  <jim@meyering.net>
39038
39039         * lib/fopen-safer.c: Merge minor changes from coreutils.
39040         * lib/dup-safer.c: Likewise.
39041         * lib/fd-safer.c: Likewise.
39042
39043         Merge from coreutils.
39044         * lib/stdio--.h: New file.
39045         * lib/stdlib--.h: New file.
39046         * lib/mkstemp-safer.c: New file.
39047
39048         GNU tar needs these.
39049         * lib/pipe-safer.c: New file.
39050         * lib/creat-safer.c: New file.
39051         * lib/fcntl--.h (creat): Define to creat_safer.
39052         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
39053         * lib/unistd--.h (pipe): Define to pipe_safer.
39054         * lib/unistd-safer.h: Declare pipe_safer.
39055
39056 2005-08-26  Simon Josefsson  <jas@extundo.com>
39057
39058         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
39059         Haible <bruno@clisp.org>.
39060
39061 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
39062
39063         * lib/regex_internal.h: Remove all references to
39064         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
39065         or better.
39066         (bitset_not, bitset_merge, bitset_not_merge):
39067         (bitset_mask, re_string_allocate, re_string_construct):
39068         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
39069         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
39070         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
39071         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
39072         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39073         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39074         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
39075         (re_acquire_state_context):
39076         Remove unnecessary forward decls.
39077         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
39078         Put __attribute at function definition,
39079         now that the function decl has been removed.
39080         * lib/regex_internal.c (re_string_peek_byte_case):
39081         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
39082         Likewise.
39083
39084 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
39085
39086         * m4/regex.m4: Add AC_PREREQ(2.50).
39087         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
39088
39089 2005-08-25  Simon Josefsson  <jas@extundo.com>
39090
39091         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
39092         __fsetlocking.
39093
39094 2005-08-25  Simon Josefsson  <jas@extundo.com>
39095
39096         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
39097         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
39098         GLIBC specific code.
39099
39100 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39101
39102         Make regex safe for g++.  This fixes one real bug (an "err"
39103         that should have been "*err").  g++ problem reported by
39104         Sam Steingold.
39105         * lib/regex_internal.h (re_calloc): New macro, consistent with
39106         re_malloc etc.  All callers of calloc changed to use re_calloc.
39107         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
39108         not int.  All callers changed.
39109         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
39110         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
39111         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
39112         (find_recover_state): Change "err" to "*err"; this fixes what
39113         appears to be a real bug.
39114         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
39115         versus int.
39116
39117 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39118
39119         * modules/regex (Depends-on): Add malloc, since the code
39120         assumes that !malloc(0) means failure.
39121
39122 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39123
39124         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
39125
39126         alloca modernization/simplification for regex.
39127         * lib/regex.c: Remove portability cruft for alloca.  This no longer
39128         needs to be at the start of the file, and can be moved into
39129         regex_internal.h and simplified.
39130         * lib/regex_internal.h: Include <alloca.h>.
39131         (__libc_use_alloca) [!defined _LIBC]: New macro.
39132         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
39133         now works outside glibc.
39134
39135 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39136
39137         * config/srclist.txt: Add glibc bugs 1241, 1245.
39138
39139 2005-08-25  Jim Meyering  <jim@meyering.net>
39140
39141         * lib/open-safer.c: Include <config.h>.
39142         Otherwise, we'd lose LARGEFILE support in any file using
39143         e.g. "fcntl--.h"
39144
39145 2005-08-25  Bruno Haible  <bruno@clisp.org>
39146
39147         * m4/minmax.m4: Require autoconf 2.52.
39148         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
39149         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
39150         alternatives of translit over the alphabet.
39151         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
39152
39153 2005-08-24  Simon Josefsson  <jas@extundo.com>
39154
39155         * tests/test-getpass.c: New file.
39156
39157 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39158
39159         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
39160         for GNU regex features.
39161
39162 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39163
39164         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
39165         * lib/regex.h (regerror): Likewise.
39166
39167         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
39168         requires this.  (The code never needed it.)
39169
39170         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
39171         All uses of recently-renamed identifiers changed to use the new,
39172         POSIX-compliant names.  The code will build and run just fine
39173         without these changes, but it's better to eat our own dog food
39174         and use the standard-conforming names.
39175
39176         * lib/regex.h: Fix a multitude of POSIX name space violations.
39177         These changes have an effect only for programs that define
39178         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
39179         do not change anything for programs compiled in the normal way.
39180         Also, there is no effect on the ABI.
39181
39182         (_REGEX_SOURCE): New macro.
39183         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
39184         defined and _GNU_SOURCE is not; this fixes a name space violation.
39185
39186         Rename the following macros to obey POSIX requirements.
39187         The old names are still visible as macros if _REGEX_SOURCE is defined.
39188         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
39189         RE_BACKSLASH_ESCAPE_IN_LISTS.
39190         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
39191         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
39192         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
39193         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
39194         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
39195         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
39196         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
39197         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
39198         (REG_INTERVALS): renamed from RE_INTERVALS.
39199         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
39200         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
39201         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
39202         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
39203         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
39204         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
39205         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
39206         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
39207         RE_UNMATCHED_RIGHT_PAREN_ORD.
39208         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
39209         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
39210         (REG_DEBUG): renamed from RE_DEBUG.
39211         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
39212         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
39213         unusual, since we can't clash with the POSIX REG_ICASE.
39214         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
39215         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
39216         (REG_NO_SUB): renamed from RE_NO_SUB.
39217         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
39218         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
39219         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
39220         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
39221         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
39222         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
39223         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
39224         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
39225         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
39226         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
39227         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
39228         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
39229         RE_SYNTAX_POSIX_MINIMAL_BASIC.
39230         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
39231         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
39232         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
39233         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
39234         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
39235         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
39236         (REG_FIXED): Renamed from REGS_FIXED.
39237         (REG_NREGS): Renamed from RE_NREGS.
39238
39239         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
39240         of other REG_* macros, since POSIX says the user is allowed to
39241         #undef these macros selectively.
39242
39243         (reg_errcode_t): Update comment stating what other tables need
39244         to be consistent.
39245
39246         Rename the following enum values to obey POSIX requirements.
39247         The old names are still visible as macros.
39248         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
39249         is not defined, since GNU is supposed to be a superset of POSIX as
39250         much as possible, and since we want reg_errcode_t to be a signed
39251         type for implementation consistency.
39252         (_REG_NOERROR): Renamed from REG_NOERROR.
39253         (_REG_NOMATCH): Renamed from REG_NOMATCH.
39254         (_REG_BADPAT): Renamed from REG_BADPAT.
39255         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
39256         (_REG_ECTYPE): Renamed from REG_ECTYPE.
39257         (_REG_EESCAPE): Renamed from REG_EESCAPE.
39258         (_REG_ESUBREG): Renamed from REG_ESUBREG.
39259         (_REG_EBRACK): Renamed from REG_EBRACK.
39260         (_REG_EPAREN): Renamed from REG_EPAREN.
39261         (_REG_EBRACE): Renamed from REG_EBRACE.
39262         (_REG_BADBR): Renamed from REG_BADBR.
39263         (_REG_ERANGE): Renamed from REG_ERANGE.
39264         (_REG_ESPACE): Renamed from REG_ESPACE.
39265         (_REG_BADRPT): Renamed from REG_BADRPT.
39266         (_REG_EEND): Renamed from REG_EEND.
39267         (_REG_ESIZE): Renamed from REG_ESIZE.
39268         (_REG_ERPAREN): Renamed from REG_ERPAREN.
39269         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
39270         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
39271         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
39272         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
39273
39274         (_REG_RE_NAME, _REG_RM_NAME): New macros.
39275         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
39276         changed.  But support the old name if the new one is not defined
39277         and if _REGEX_SOURCE.
39278
39279         Change the following member names in struct re_pattern_buffer.
39280         The old names are still supported if !_REGEX_SOURCE.
39281         The new names are always supported, regardless of _REGEX_SOURCE.
39282         (re_buffer): Renamed from buffer.
39283         (re_allocated): Renamed from allocated.
39284         (re_used): Renamed from used.
39285         (re_syntax): Renamed from syntax.
39286         (re_fastmap): Renamed from fastmap.
39287         (re_translate): Renamed from translate.
39288         (re_can_be_null): Renamed from can_be_null.
39289         (re_regs_allocated): Renamed from regs_allocated.
39290         (re_fastmap_accurate): Renamed from fastmap_accurate.
39291         (re_no_sub): Renamed from no_sub.
39292         (re_not_bol): Renamed from not_bol.
39293         (re_not_eol): Renamed from not_eol.
39294         (re_newline_anchor): Renamed from newline_anchor.
39295
39296         Change the following member names in struct re_registers.
39297         The old names are still supported if !_REGEX_SOURCE.
39298         The new names are always supported, regardless of _REGEX_SOURCE.
39299         (rm_num_regs): Renamed from num_regs.
39300         (rm_start): Renamed from start.
39301         (rm_end): Renamed from end.
39302
39303         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
39304         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
39305         Prepend __ to parameter names.
39306
39307         Undo yesterday's changes.
39308
39309 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39310
39311         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
39312         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
39313         lib/regex.c.
39314
39315 2005-08-24  Jim Meyering  <jim@meyering.net>
39316
39317         Sync from coreutils.
39318         * m4/fcntl-safer.m4: New file.
39319
39320         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
39321         and object files for this module.
39322
39323 2005-08-24  Jim Meyering  <jim@meyering.net>
39324
39325         Sync from coreutils.
39326         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
39327
39328 2005-08-24  Jim Meyering  <jim@meyering.net>
39329
39330         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
39331         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
39332
39333 2005-08-24  Jim Meyering  <jim@meyering.net>
39334
39335         * modules/fcntl-safer: New module.
39336         * modules/fts (Depends-on): Add fcntl-safer.
39337         * MODULES.html.sh (File descriptor based Input/Output):
39338         Add fcntl-safer.
39339
39340 2005-08-24  Bruno Haible  <bruno@clisp.org>
39341
39342         Support for unit test modules.
39343         * modules/README: Mention tests modules.
39344         * modules/TEMPLATE-TESTS: New file.
39345         * gnulib-tool: New options --extract-tests-module, --with-tests and
39346         --tests-base (unused for the moment).
39347         (testsbase, inctests): New variables.
39348         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
39349         (func_verify_module): Exclude TEMPLATE-TESTS.
39350         (func_verify_nontests_module, func_verify_tests_module): New functions.
39351         (func_get_dependencies): Add implicit dependency for tests modules.
39352         (func_get_tests_module): New function.
39353         (func_modules_transitive_closure): When --with-tests was specified,
39354         include the unit tests as well, unless explicitly avoided.
39355         (func_emit_lib_Makefile_am): Ignore the tests modules here.
39356         (func_emit_tests_Makefile_am): New function.
39357         (func_create_testdir): When --with-tests was specified, emit a
39358         tests/ directory.
39359         * MODULES.html.sh (Future developments): Update.
39360
39361 2005-08-24  Bruno Haible  <bruno@clisp.org>
39362
39363         * modules/tls-tests: New file.
39364         * tests/test-tls.c: New file, from GNU gettext.
39365
39366 2005-08-24  Bruno Haible  <bruno@clisp.org>
39367
39368         * modules/lock-tests: New file.
39369         * tests/test-lock.c: New file, from GNU gettext.
39370
39371 2005-08-24  Bruno Haible  <bruno@clisp.org>
39372
39373         * lib/lock.h: Add multiple inclusion guard.
39374         * lib/tls.h: Add multiple inclusion guard.
39375
39376 2005-08-24  Bruno Haible  <bruno@clisp.org>
39377
39378         * gnulib-tool: Add support for the --aux-dir option to
39379         --create-testdir, --create-megatestdir, --test, --megatest.
39380         (func_create_testdir, func_create_megatestdir): Optionally emit a
39381         AC_CONFIG_AUX_DIR directive.
39382         (create-testdir, create-megatestdir, test, megatest): Provide a
39383         default value for $auxdir.
39384
39385 2005-08-24  Bruno Haible  <bruno@clisp.org>
39386
39387         * gnulib-tool (import): Use compound statement instead of subshell
39388         where possible.
39389
39390 2005-08-24  Bruno Haible  <bruno@clisp.org>
39391
39392         * gnulib-tool (import): Change --aux-dir default to "build-aux".
39393
39394 2005-08-24  Bruno Haible  <bruno@clisp.org>
39395
39396         * gnulib-tool (func_version): Update.
39397
39398 2005-08-24  Bruno Haible  <bruno@clisp.org>
39399
39400         * gnulib-tool (func_import, func_create_testdir,
39401         func_create_megatestdir): Quote all autoconf macro arguments.
39402
39403 2005-08-24  Bruno Haible  <bruno@clisp.org>
39404
39405         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
39406         option --force, because --force causes the aclocal.m4 of each
39407         subdirectory to be newer than the corresponding config.h.in.
39408
39409 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39410
39411         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
39412         All contents moved to gl_REGEX.
39413         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
39414         assume that it does.
39415
39416 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39417
39418         * lib/regex.h (REG_NOSYS)
39419         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
39420         Define, since POSIX requires it as of 2001.
39421         (_REG_ENOSYS)
39422         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
39423         New private symbol, used to keep the enum signed in all cases.
39424         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
39425         Youngman in
39426         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
39427
39428         * lib/regex_internal.c (re_string_skip_chars, register_state):
39429         (calc_state_hash):
39430         Remove forward decls; no longer needed now that we use prototypes.
39431         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
39432         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
39433         (clean_state_log_if_needed): Likewise.
39434
39435 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39436
39437         * config/srclist.txt: Add glibc bugs 1231-1233.
39438
39439 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39440
39441         Fix problems reported by Sam Steingold in
39442         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
39443         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
39444         assumed that reg_errcode_t is a signed type, which is not
39445         necessarily true if _XOPEN_SOURCE is not defined.
39446         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
39447         since some compilers warn about it otherwise.
39448
39449 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39450
39451         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
39452         (init_word_char, create_initial_state, duplicate_node_closure):
39453         (fetch_token, peek_token_bracket, build_range_exp):
39454         (build_collating_symbol): Remove forward decls; no longer needed
39455         now that we use prototypes.
39456
39457         * lib/regcomp.c:
39458         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
39459         (re_compile_fastmap_iter, regcomp, regerror, regfree):
39460         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
39461         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
39462         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
39463         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
39464         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
39465         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
39466         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
39467         (build_range_exp, build_collating_symbol, parse_bracket_exp):
39468         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
39469         (build_charclass, build_charclass_op, fetch_number, create_tree):
39470         (create_token_tree, mark_opt_subexp, duplicate_tree):
39471         Use prototypes rather than old-style definitions.
39472
39473         * lib/regex_internal.c:
39474         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
39475         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
39476         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39477         (re_string_reconstruct, re_string_peek_byte_case):
39478         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
39479         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39480         (re_node_set_init_copy, re_node_set_add_intersect):
39481         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39482         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39483         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39484         (re_acquire_state, re_acquire_state_context, register_state):
39485         (create_ci_newstate, create_cd_newstate, free_state):
39486         Likewise.
39487         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
39488         re_search_2):
39489         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
39490         (re_search_internal, prune_impossible_nodes):
39491         (acquire_init_state_context, check_matching, static):
39492         (check_halt_node_context, check_halt_state_context, proceed_next_node):
39493         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
39494         (update_regs, sift_states_backward, build_sifted_states):
39495         (clean_state_log_if_needed, merge_state_array):
39496         (update_cur_sifted_state, add_epsilon_src_nodes):
39497         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
39498         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
39499         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
39500         (find_recover_state, check_subexp_matching_top, transit_state_mb):
39501         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
39502         (check_arrival, check_arrival_add_next_nodes):
39503         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39504         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39505         (check_node_accept_bytes, check_node_accept, extend_buffers):
39506         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
39507         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
39508         (sift_ctx_init):
39509         Likewise.
39510
39511         * lib/regex_internal.h:
39512         (re_string_allocate, re_string_construct, re_string_reconstruct):
39513         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
39514         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
39515         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
39516         (re_string_context_at, re_string_peek_byte_case):
39517         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
39518         is defined, since we now use prototypes always.
39519
39520         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
39521         C89 or better.  All uses removed.
39522
39523 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39524
39525         * config/srclist.txt: Add glibc bugs 1220-1227.
39526
39527 2005-08-20  Jim Meyering  <jim@meyering.net>
39528
39529         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
39530         of unused local, dfa.
39531
39532 2005-08-20  Bruno Haible  <bruno@clisp.org>
39533
39534         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
39535
39536 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39537
39538         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
39539         (re_node_set_insert_last, re_dfa_add_node):
39540         Rename local variables to avoid GCC shadowing warnings.
39541
39542 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39543
39544         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
39545         [defined lint]: Suppress bogus uninitialized-variable warnings.
39546
39547         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
39548         and let the caller return REG_ESPACE if out of space.  This
39549         removes an uninitialied-variable warning with GCC 4.0.1, and also
39550         avoids taking the address of a local variable.  All callers
39551         changed.
39552
39553 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39554
39555         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
39556         $LIBCSRC/posix/regexec.c.
39557         Add glibc bug 1217 for regcomp.c.
39558
39559 2005-08-19  Jim Meyering  <jim@meyering.net>
39560
39561         * lib/regexec.c (proceed_next_node): Redo local variables to
39562         avoid GCC shadowing warnings.
39563
39564 2005-08-18  Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/strstr.c (strstr): Fix return value in multibyte case.
39567         * lib/strcasestr.c (strcasestr): Likewise.
39568
39569 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
39570
39571         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
39572
39573 2005-08-17  Jim Meyering  <jim@meyering.net>
39574
39575         Make the %s format (seconds since the epoch) work for a negative
39576         number and when used with a zero-padded field width, e.g. %015s.
39577
39578         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
39579         label so that it precedes the code to set `digits'.  Otherwise,
39580         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
39581         print `00-22'.  Now, it prints `-0022', as it should.
39582
39583 2005-08-17  Bruno Haible  <bruno@clisp.org>
39584
39585         * modules/strstr (Files): Add m4/mbrtowc.m4.
39586         (Depends-on): Add mbuiter.
39587
39588 2005-08-17  Bruno Haible  <bruno@clisp.org>
39589
39590         * modules/strcasestr: New file.
39591         * MODULES.html.sh (String handling, based on ANSI C 89): Add
39592         strcasestr.
39593
39594 2005-08-17  Bruno Haible  <bruno@clisp.org>
39595
39596         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
39597
39598 2005-08-17  Bruno Haible  <bruno@clisp.org>
39599
39600         * modules/mbuiter: New file.
39601         * MODULES.html.sh (Extended multibyte and wide character utilities):
39602         Add mbuiter.
39603
39604 2005-08-17  Bruno Haible  <bruno@clisp.org>
39605
39606         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
39607         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
39608
39609 2005-08-17  Bruno Haible  <bruno@clisp.org>
39610
39611         * m4/strcasestr.m4: New file.
39612
39613 2005-08-17  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
39616         * lib/strstr.c: Completely rewritten, with multibyte locale support.
39617
39618 2005-08-17  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/strcasestr.h: New file.
39621         * lib/strcasestr.c: New file.
39622
39623 2005-08-17  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/strcasecmp.c: Use mbuiter.h.
39626
39627 2005-08-17  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/mbuiter.h: New file.
39630
39631 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
39632
39633         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
39634         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
39635         and gl_GETOPT are both invoked via different paths (as happens
39636         with GNU tar CVS because it uses both argp and getopt), the former
39637         wins.
39638
39639 2005-08-16  Bruno Haible  <bruno@clisp.org>
39640
39641         * modules/tls: New file.
39642         * MODULES.html.sh (Multithreading): Add tls.
39643
39644 2005-08-16  Bruno Haible  <bruno@clisp.org>
39645
39646         * modules/strnlen1: New file.
39647         * MODULES.html.sh (String handling): Add strnlen1.
39648
39649 2005-08-16  Bruno Haible  <bruno@clisp.org>
39650
39651         * modules/strcase (Files): Add m4/mbrtowc.m4.
39652         (Depends-on): Add strnlen1, mbchar.
39653
39654 2005-08-16  Bruno Haible  <bruno@clisp.org>
39655
39656         * modules/mbiter: New file.
39657         * MODULES.html.sh (Extended multibyte and wide character utilities):
39658         Add mbiter.
39659
39660 2005-08-16  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/mbfile: New file.
39663         * MODULES.html.sh (Extended multibyte and wide character utilities):
39664         Add mbfile.
39665
39666 2005-08-16  Bruno Haible  <bruno@clisp.org>
39667
39668         * modules/mbchar: New file.
39669         * MODULES.html.sh (Extended multibyte and wide character utilities):
39670         New section.
39671
39672 2005-08-16  Bruno Haible  <bruno@clisp.org>
39673
39674         * m4/tls.m4: New file, from GNU gettext.
39675
39676 2005-08-16  Bruno Haible  <bruno@clisp.org>
39677
39678         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
39679         always.
39680         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
39681
39682 2005-08-16  Bruno Haible  <bruno@clisp.org>
39683
39684         * m4/mbiter.m4: New file.
39685
39686 2005-08-16  Bruno Haible  <bruno@clisp.org>
39687
39688         * m4/mbfile.m4: New file.
39689
39690 2005-08-16  Bruno Haible  <bruno@clisp.org>
39691
39692         * m4/mbchar.m4: New file.
39693
39694 2005-08-16  Bruno Haible  <bruno@clisp.org>
39695
39696         * lib/tls.h: New file, from GNU gettext.
39697         * lib/tls.c: New file, from GNU gettext.
39698
39699 2005-08-16  Bruno Haible  <bruno@clisp.org>
39700
39701         * lib/strnlen1.h: New file.
39702         * lib/strnlen1.c: New file.
39703
39704 2005-08-16  Bruno Haible  <bruno@clisp.org>
39705
39706         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
39707         (mbi_init): Update.
39708         (mbi_avail, mbi_advance): Let the iteration end before the terminating
39709         NUL byte, not after it.
39710
39711 2005-08-16  Bruno Haible  <bruno@clisp.org>
39712
39713         * lib/strcase.h (strcasecmp): Add note in comments.
39714         * lib/strncasecmp.c: Use code from strcasecmp.c.
39715         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
39716         (strcasecmp): Work correctly in multibyte locales.
39717
39718 2005-08-16  Bruno Haible  <bruno@clisp.org>
39719
39720         * lib/mbiter.h: New file.
39721
39722 2005-08-16  Bruno Haible  <bruno@clisp.org>
39723
39724         * lib/mbfile.h: New file.
39725
39726 2005-08-16  Bruno Haible  <bruno@clisp.org>
39727
39728         * lib/mbchar.h: New file.
39729         * lib/mbchar.c: New file.
39730
39731 2005-08-16  Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
39734         the valid ones. Makes the comparison operations transitive:
39735         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
39736         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
39737
39738 2005-08-15  Simon Josefsson  <jas@extundo.com>
39739
39740         * modules/ssize_t (License): Change to 'unlimited'.
39741
39742         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
39743
39744 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39745
39746         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
39747         Add comments for each pending glibc patch.
39748
39749 2005-08-15  Bruno Haible  <bruno@clisp.org>
39750
39751         * lib/regex.h (__restrict_arr): Don't define to __restrict if
39752         __cplusplus is defined.
39753
39754 2005-08-14  Jim Meyering  <jim@meyering.net>
39755
39756         Sync from coreutils.
39757
39758         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
39759         Use the hash-table-based cycle-detection code not just when
39760         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
39761         Reported by James Youngman in
39762         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
39763         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
39764         FTS_TIGHT_CYCLE_CHECK.
39765         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
39766         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
39767         once again.
39768         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
39769         * lib/fts.c (fd_safer): Remove decl.
39770         Include fcntl--.h rather than unistd-safer.h
39771         (fts_safe_changedir): Don't call fd_safer; no longer needed
39772         now that we include fcntl--.h.
39773
39774 2005-08-12  Simon Josefsson  <jas@extundo.com>
39775
39776         * modules/getndelim2: Use ssize_t module.
39777         * modules/getnline: Likewise.
39778         * modules/safe-read: Likewise.
39779         * modules/xreadlink: Likewise.
39780
39781         * modules/ssize_t: New file.
39782
39783 2005-08-12  Simon Josefsson  <jas@extundo.com>
39784
39785         * m4/readline.m4: Look for termcap, curses or ncurses if required.
39786
39787 2005-08-12  Simon Josefsson  <jas@extundo.com>
39788
39789         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39790         ssize_t.
39791
39792 2005-08-12  Simon Josefsson  <jas@extundo.com>
39793
39794         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
39795         readline, getdelim and check_version.
39796         (Support for systems lacking ISO C 99: Sizes of integer types):
39797         Add size_max.
39798
39799 2005-08-12  Bruno Haible  <bruno@clisp.org>
39800
39801         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
39802
39803 2005-08-11  Simon Josefsson  <jas@extundo.com>
39804
39805         * modules/readline: New file.
39806
39807         * modules/strnlen (Files): Add strnlen.h.
39808
39809 2005-08-11  Simon Josefsson  <jas@extundo.com>
39810
39811         * m4/readline.m4: New file.
39812
39813 2005-08-11  Simon Josefsson  <jas@extundo.com>
39814
39815         * lib/readline.h, readline.c: New file.
39816
39817 2005-08-11  Simon Josefsson  <jas@extundo.com>
39818
39819         * doc/gnulib.texi (Initial import, Finishing touches): Mention
39820         gl_AVOID.
39821
39822 2005-08-11  Bruno Haible  <bruno@clisp.org>
39823
39824         * lib/strnlen.h (strnlen): Change parameter name to match comment.
39825
39826 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
39827
39828         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
39829
39830 2005-08-10  Simon Josefsson  <jas@extundo.com>
39831
39832         * tests/test-iconvme.c: New file.
39833
39834 2005-08-10  Simon Josefsson  <jas@extundo.com>
39835
39836         * m4/strnlen.m4: New file.
39837
39838         * m4/strndup.m4: Don't check for strnlen declaration, done in
39839         strnlen.m4.
39840
39841 2005-08-10  Simon Josefsson  <jas@extundo.com>
39842
39843         * lib/strndup.c: Use strnlen.h.
39844
39845         * lib/strnlen.h: New file.
39846
39847 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39848
39849         * README: Typos.
39850
39851 2005-08-02  Simon Josefsson  <jas@extundo.com>
39852
39853         * modules/readline: New file.
39854
39855 2005-08-02  Simon Josefsson  <jas@extundo.com>
39856
39857         * modules/getdelim: New file.
39858
39859         * modules/getline: Rewrite, don't use getndelim2.
39860
39861 2005-08-02  Simon Josefsson  <jas@extundo.com>
39862
39863         * m4/getline.m4: Separate out getdelim stuff into separate module.
39864
39865         * m4/getdelim.m4: New file.
39866
39867 2005-08-02  Simon Josefsson  <jas@extundo.com>
39868
39869         * lib/getline.h, getline.c: Rewrite.
39870
39871         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
39872
39873 2005-07-31  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/lock.h (gl_lock_initializer): New macro.
39876         (gl_lock_define_initialized): Use it.
39877         (gl_rwlock_initializer): New macro.
39878         (gl_rwlock_define_initialized): Use it.
39879         (gl_recursive_lock_initializer): New macro.
39880         (gl_recursive_lock_define_initialized): Use it.
39881
39882 2005-07-30  Karl Berry  <karl@gnu.org>
39883
39884         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
39885         Report from Ben Pfaff, regarding getopt.
39886
39887 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
39888
39889         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
39890         normal way.
39891         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
39892         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
39893         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
39894         (gl_GETOPT): Use the new macros.  Most of the implementation
39895         is moved to the new macros.  This is for programs like Emacs
39896         that don't want all the functionality of gl_GETOPT.
39897
39898 2005-07-26  Bruno Haible  <bruno@clisp.org>
39899
39900         * m4/lock.m4: Update from GNU gettext.
39901
39902 2005-07-26  Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/lock.h: Update from GNU gettext.
39905         * lib/lock.c: Update from GNU gettext.
39906
39907 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
39908
39909         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
39910         obsolescent AC_TRY_RUN.  Include the default includes files, for
39911         'exit'.
39912
39913 2005-07-24  Bruno Haible  <bruno@clisp.org>
39914
39915         * modules/visibility: New file.
39916         * MODULES.html.sh (Misc): Add visibility.
39917
39918 2005-07-24  Bruno Haible  <bruno@clisp.org>
39919
39920         * m4/visibility.m4: New file.
39921
39922 2005-07-24  Bruno Haible  <bruno@clisp.org>
39923
39924         * doc/visibility.texi: New file.
39925
39926 2005-07-22  Bruno Haible  <bruno@clisp.org>
39927
39928         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
39929         $(ALLOCA_H), redundant through BUILT_SOURCES.
39930         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
39931         redundant through BUILT_SOURCES.
39932         * modules/byteswap (Makefile.am): Remove explicit dependency on
39933         $(BYTESWAP_H), redundant through BUILT_SOURCES.
39934         * modules/fnmatch (Makefile.am): Remove explicit dependency on
39935         $(FNMATCH_H), redundant through BUILT_SOURCES.
39936         * modules/getopt (Makefile.am): Remove explicit dependency on
39937         $(GETOPT_H), redundant through BUILT_SOURCES.
39938         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
39939         redundant through BUILT_SOURCES.
39940         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
39941         redundant through BUILT_SOURCES.
39942         * modules/stdbool (Makefile.am): Remove explicit dependency on
39943         $(STDBOOL_H), redundant through BUILT_SOURCES.
39944         * modules/stdint (Makefile.am): Remove explicit dependency on
39945         $(STDINT_H), redundant through BUILT_SOURCES.
39946         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
39947         Remove explicit dependency on $(SYSEXITS_H).
39948         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
39949
39950 2005-07-18  Simon Josefsson  <jas@extundo.com>
39951
39952         * lib/check-version.c (check_version): Accept identical versions too.
39953
39954 2005-07-18  Bruno Haible  <bruno@clisp.org>
39955
39956         * modules/lock: New file.
39957         * MODULES.html.sh (Multithreading): New section.
39958
39959 2005-07-18  Bruno Haible  <bruno@clisp.org>
39960
39961         * m4/lock.m4: New file, from GNU gettext.
39962
39963 2005-07-18  Bruno Haible  <bruno@clisp.org>
39964
39965         * lib/lock.h: New file, from GNU gettext.
39966         * lib/lock.c: New file, from GNU gettext.
39967
39968 2005-07-18  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/lock.h (gl_once_t): New type.
39971         (gl_once_define, gl_once): New macros.
39972         * lib/lock.c (fresh_once): New variable.
39973         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
39974         functions.
39975
39976 2005-07-16  Simon Josefsson  <jas@extundo.com>
39977
39978         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
39979         workaround, suggested by Bruno.
39980
39981 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39982
39983         * modules/xalloc (Depends-on): Add xalloc-die.
39984         * modules/xvasprintf (Depends-on): Add xalloc-die.
39985
39986 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
39987
39988         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
39989         with a minor change.
39990
39991 2005-07-15  Bruno Haible  <bruno@clisp.org>
39992
39993         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
39994         When using lib/poll.c, define poll as rpl_poll.
39995
39996 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
39997
39998         * modules/argp (Depends-on): Remove unlocked-io.
39999
40000 2005-07-14  Derek Price  <derek@ximbiot.com>
40001
40002         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
40003         for glob symlink bug.
40004
40005 2005-07-14  Bruno Haible  <bruno@clisp.org>
40006
40007         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
40008         Instead, test for *_unlocked function declarations directly.
40009
40010 2005-07-11  Simon Josefsson  <jas@extundo.com>
40011
40012         * modules/size_max: New file.
40013
40014         * modules/xsize: Depend on size_max module for size_max.m4.
40015
40016 2005-07-11  Simon Josefsson  <jas@extundo.com>
40017
40018         * lib/size_max.h: New file.
40019
40020 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
40021
40022         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
40023         copyright symbol and the year.
40024         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
40025         (version_etc_va): Use parameterized copyright notice.
40026         Reword to conform to the current GNU coding standards.
40027
40028 2005-07-11  Karl Berry  <karl@gnu.org>
40029
40030         * doc/gnulib.texi (Quoting): new node.
40031         (Initial import): more info, from Patrice.
40032
40033 2005-07-11  Bruno Haible  <bruno@clisp.org>
40034
40035         * gnulib-tool (func_usage): Document option --avoid.
40036         (Command line options): Handle --avoid.
40037         (func_acceptable): New function.
40038         (func_modules_transitive_closure): Use it.
40039
40040 2005-07-11  Bruno Haible  <bruno@clisp.org>
40041
40042         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
40043         Reported by Jim Meyering.
40044
40045 2005-07-10  Bruno Haible  <bruno@clisp.org>
40046
40047         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
40048         Needed when size_t is smaller than 'unsigned int'.
40049         Reported by Paul Eggert.
40050
40051 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40052
40053         * modules/argp (Depends-on): Add unlocked-io
40054
40055 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40056
40057         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
40058         block of defines.
40059
40060 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
40061
40062         * config/srclist.txt: Comment out regcomp.c, since we have a porting
40063         fix now.
40064
40065 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
40066         and Paul Eggert  <eggert@cs.ucla.edu>
40067
40068         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
40069         in wint_t, not wchar_t.  Remove now-unnecessary cast.
40070
40071 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40072
40073         * modules/regex (Files): Add lib/regex_internal.c,
40074         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
40075         (Depends-on): Add extensions.
40076         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
40077
40078 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40079
40080         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
40081         pathconf.
40082         * m4/same.m4 (gl_SAME): Likewise.
40083         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
40084
40085         * m4/regex.m4: Adjust to new libc regex implementation.
40086         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
40087         all the .c and .h parts of (the new) regex.
40088         Quote the m4 stuff better.
40089         Check for RE_ICASE bug of old gnulib.
40090         Check for REG_STARTEND of recent libc.
40091         Rename local variables from jm_* to gl_*.
40092         Quote operand of "test -f".
40093         Say "recent enough" version of libc, not "version 2".
40094         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
40095         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
40096         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
40097         Remove check for btowc, isascii.
40098         Require AM_LANGINFO_CODESET.
40099
40100 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40101
40102         * lib/regex.c, regex.h: Sync from libc.
40103         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
40104         * lib/regexec.c:
40105         New files, synced from libc, except that regex_internal.h
40106         currently has a small porting fix.
40107
40108 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40109
40110         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
40111         regex_internal.c, regexec.c.
40112         Add regex_internal.h too, but as a comment, since the libc version
40113         is currently broken in gnulib mode.
40114
40115 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40116
40117         Support programs like Emacs that use gnulib but not gettext.
40118         * MODULES.html.sh (Internationalization functions): Add gettext-h.
40119         * modules/gettext-h: New file.
40120         * modules/gettext (Files): Remove lib/gettext.h.
40121         (Depends-on): Add gettext-h.
40122         (Makefile.am): Remove lib_SOURCES.
40123         * modules/argmatch, modules/c-stack, modules/closeout:
40124         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
40125         * modules/execute, modules/file-type, modules/getaddrinfo:
40126         * modules/getopt, modules/human, modules/javacomp:
40127         * modules/javaexec, modules/mkdir-p, modules/obstack:
40128         * modules/openat, modules/pagealign_alloc, modules/pipe:
40129         * modules/quotearg, modules/regex, modules/rpmatch:
40130         * modules/unicodeio, modules/userspec, modules/version-etc:
40131         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
40132         * modules/xsetenv:
40133         Depend on gettext-h, not gettext.
40134
40135 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40136
40137         * gnulib-tool (func_import): Add support for 'public domain' license.
40138         * modules/alloca, modules/atexit, modules/memmove:
40139         Now public domain, not GPL.
40140         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
40141         * modules/realloc, modules/strerror, modules/strtod:
40142         Now LGPL, not GPL.
40143
40144 2005-07-05  Bruno Haible  <bruno@clisp.org>
40145
40146         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
40147         autoconf CVS. Needed for mingw.
40148
40149 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40150
40151         Remove the dependency of the strftime module on the tzset module.
40152         * modules/strftime (Depends-on): Remove dependency on tzset.
40153
40154 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40155
40156         Remove the dependency of the strftime module on the tzset module.
40157         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
40158         gl_FUNC_TZSET_CLOBBER.
40159
40160 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40161
40162         Remove the dependency of the strftime module on the tzset module.
40163         * lib/strftime.c (my_strftime)
40164         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
40165         Copy the input structure, to work around some of the bug with
40166         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
40167         Solaris releases, you should also use the tzset module, but we won't
40168         require it as a dependency any more since we don't want LGPLed code
40169         to depend on GPLed code.
40170
40171 2005-07-02  Jim Meyering  <jim@meyering.net>
40172
40173         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
40174         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
40175         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
40176         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
40177
40178 2005-07-02  Jim Meyering  <jim@meyering.net>
40179
40180         * lib/backupfile.c (backup_args): Change a `0' to NULL.
40181
40182 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40183
40184         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
40185         declares only 'struct timespec;' (!).
40186
40187 2005-07-01  Jim Meyering  <jim@meyering.net>
40188
40189         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
40190         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
40191         * lib/save-cwd.c, tempname.c:
40192         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40193         and don't include <sys/file.h>).
40194
40195 2005-06-29  Jim Meyering  <jim@meyering.net>
40196
40197         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
40198         type name.  Use the variable name instead.
40199         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
40200         Likewise.
40201
40202 2005-06-28  Simon Josefsson  <jas@extundo.com>
40203
40204         * modules/check-version (Files): Add check-version.m4.
40205
40206 2005-06-28  Simon Josefsson  <jas@extundo.com>
40207
40208         * m4/check-version.m4: New file, suggested by Jim Meyering
40209         <jim@meyering.net>.
40210
40211 2005-06-28  Simon Josefsson  <jas@extundo.com>
40212
40213         * lib/check-version.h, lib/check-version.c: New files.
40214
40215 2005-06-28  Simon Josefsson  <jas@extundo.com>
40216
40217         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
40218         collision with global variable.  Better indentation.  Don't
40219         increment buffer pointer beyond buffer end.  Based on comments
40220         from Paul Eggert <eggert@cs.ucla.edu>.
40221
40222         * lib/base64.h: Indent.
40223
40224 2005-06-28  Simon Josefsson  <jas@extundo.com>
40225
40226         * doc/gnulib.texi (Library version handling): New section.
40227
40228 2005-06-28  Jim Meyering  <jim@meyering.net>
40229
40230         * check-module (find_included_lib_files): Hard-code another
40231         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
40232         but modules/fts-lgpl (correctly) does not list those files.
40233
40234         * modules/canonicalize (Files): Add lib/pathmax.h.
40235
40236 2005-06-25  Simon Josefsson  <jas@extundo.com>
40237
40238         * modules/check-version: New file.
40239
40240 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
40241
40242         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
40243         initializer of struct addrinfo, as an indication that we don't
40244         care how many members the structure has.
40245
40246 2005-06-24  Derek Price  <derek@ximbiot.com>
40247         and Bruno Haible  <bruno@clisp.org>
40248
40249         Remove stat module & update lstat.
40250         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
40251         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40252         * m4/stat.m4: Remove this file.
40253
40254 2005-06-24  Derek Price  <derek@ximbiot.com>
40255         and Bruno Haible  <bruno@clisp.org>
40256
40257         Remove stat module & update lstat.
40258         * lib/stat.c: Remove this file...
40259         (slash_aware_lstat): ...moving this content and its support...
40260         * lib/lstat.c (rpl_lstat): ...into here.
40261         * lib/lstat.h: New file.
40262
40263 2005-06-24  Derek Price  <derek@ximbiot.com>
40264         and Bruno Haible  <bruno@clisp.org>
40265
40266         Remove stat module & update lstat.
40267         * config/srclist.txt (libc sources): Remove stat.
40268
40269 2005-06-24  Derek Price  <derek@ximbiot.com>
40270         and Bruno Haible  <bruno@clisp.org>
40271
40272         Remove stat module & update lstat.
40273         * MODULES.html.sh (stat): Remove.
40274         * MODULES.html: Regenerated.
40275         * modules/lstat (Description): Correct function name.
40276         (Files): Add "lstat.h".
40277         (Depends-on): Remove stat, add xalloc, stat-macros.
40278         * modules/stat: Remove this file.
40279         (Include): Add "lstat.h", remove <sys/stat.h>.
40280
40281 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40282
40283         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
40284         (ranged_convert): Don't save conversion in a temporary struct.
40285         This causes a warning with GCC 4.0.0, and anyway in the typical
40286         case it's not worth the extra 100 bytes or so of code.
40287         (ranged_convert, __mktime_internal): When calling a function via a
40288         pointer P, use P () rather than (*P) (), as we now assume C89 or
40289         better.
40290
40291 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40292
40293         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
40294         "who -r" failed to give output.  Problem reported by Tim Waugh.
40295
40296         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
40297         (xcalloc): Use it to avoid needless tests.
40298         Problem reported by Jim Meyering.
40299
40300 2005-06-20  Derek Price  <derek@ximbiot.com>
40301
40302         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
40303         unnecessary for Autoconfs > 2.59c.
40304
40305 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40306
40307         * lib/argp.h (__option_is_short): Check upper limit of
40308         __key. Isprint() requires its argument to have the value
40309         of an unsigned char or EOF.
40310
40311 2005-06-16  Jim Meyering  <jim@meyering.net>
40312
40313         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
40314         when either N or S is zero.
40315
40316 2005-06-16  Derek Price  <derek@ximbiot.com>
40317
40318         * m4/bison.m4: Declare YACC & YFLAGS precious.
40319
40320 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
40321
40322         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
40323         multibyte string or pattern, fall back on unibyte matching.
40324         Problem reported by James Youngman.
40325
40326 2005-06-08  Bruno Haible  <bruno@clisp.org>
40327
40328         * modules/csharpcomp: New file.
40329         * MODULES.html.sh (C#): Add csharpcomp.
40330
40331 2005-06-08  Bruno Haible  <bruno@clisp.org>
40332
40333         * m4/csharpcomp.m4: New file, from GNU gettext.
40334
40335 2005-06-08  Bruno Haible  <bruno@clisp.org>
40336
40337         * lib/csharpcomp.h: New file, from GNU gettext.
40338         * lib/csharpcomp.c: New file, from GNU gettext.
40339         * lib/csharpcomp.sh.in: New file, from GNU gettext.
40340
40341 2005-06-08  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
40344         warning on mingw.
40345
40346 2005-06-07  Derek Price  <derek@ximbiot.com>
40347
40348         Sync from CVS.
40349         * lib/glob_.h: Indent nested #ifdef.
40350
40351 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40352
40353         Sync from coreutils.
40354         Use "file name" when talking about file names, instead of "filename"
40355         or "path", as per the GNU coding standards.
40356         * lib/mkdir-p.c: Renamed from makepath.c.
40357         (make_dir_parents): Renamed from make_path.  All callers changed.
40358         * lib/mkdir-p.h: Likewise.  All includers changed.
40359         * lib/filenamecat.c: Renamed from path-concat.c.
40360         (file_name_concat): Renamed from path_concat.  All callers changed.
40361         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
40362         * lib/filenamecat.h: Likewise.  All includers changed.
40363         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
40364         in comments or local variable names.
40365         * lib/basename.c: Likewise.
40366         * lib/canonicalize.c, canonicalize.h: Likewise.
40367         * lib/dirname.c, dirname.h: Likewise.
40368         * lib/euidaccess.c: Likewise.
40369         * lib/exclude.c: Likewise
40370         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
40371         * lib/fsusage.c, fsuage.h: Likewise.
40372         * lib/fts.c, fts_.h: Likewise.
40373         * lib/getcwd.c: Likewise.
40374         * lib/getloadavg.c: Likewise.
40375         * lib/mkstemp.c: Likewise.
40376         * lib/mountlist.c, mountlist.h: Likewise.
40377         * lib/openat.c, openat.h: Likewise.
40378         * lib/readlink-stub.c: Likewise.
40379         * lib/readutmp.c, readutmp.h: Likewise.
40380         * lib/rename.c: Likewise.
40381         * lib/rmdir.c: Likewise.
40382         * lib/same.c: Likewise.
40383         * lib/savedir.c: Likewise.
40384         * lib/stripslash.c: Likewise.
40385         * lib/tempname.c: Likewise.
40386         * lib/xreadlink.c: Likewise.
40387         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
40388         All uses changed.
40389         * lib/exclude.h: Likewise.
40390
40391         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
40392         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40393         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
40394         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40395         * lib/pathmax.h: Include <limits.h> unconditionally, since other
40396         files have been getting away with it for years (MORE/BSD 4.3
40397         is extinct now).
40398         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
40399         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40400
40401         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
40402         Define to 256, not 255, as per modern POSIX.
40403
40404 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40405
40406         Sync from coreutils.
40407         Use "file name" when talking about file names, instead of "filename"
40408         or "path", as per the GNU coding standards.
40409         * MODULES.html.sh: mkdir-p renamed from makepath.
40410         filenamecat renamed from path-concat.
40411         * modules/filenamecat: Renamed from modules/path-concat.
40412         (Files): filenamecat.h and filenamecat.c renamed from
40413         path-concat.h and path-concat.c.
40414         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
40415         (Include): filenamecat.h, not path-concat.h.
40416         * modules/mkdir-p: Renamed from modules/makepath.
40417         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
40418         makepath.c.
40419         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
40420         (Include): mkdir-p.h, not makepath.h.
40421
40422 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40423
40424         Sync from coreutils.
40425         * m4/mkdir-p.m4: Renamed from makepath.m4.
40426         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
40427         Rename files from makepath.c to mkdir-p.c, and from
40428         makepath.h to mkdir-p.h.
40429         * m4/filenamecat.m4: Renamed from path-concat.m4.
40430         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
40431         Rename files from path-concat.c to filenamecat.c,
40432         and from path-concat.h to filenamecat.h.
40433         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
40434         "file name" in local variables or comments.
40435         * m4/rename.m4: Likewise.
40436
40437 2005-06-01  Bruno Haible  <bruno@clisp.org>
40438
40439         * modules/csharpexec: New file.
40440         * MODULES.html.sh (C#): New section.
40441
40442 2005-06-01  Bruno Haible  <bruno@clisp.org>
40443
40444         * m4/csharp.m4: New file, from GNU gettext.
40445         * m4/csharpexec.m4: New file, from GNU gettext.
40446
40447 2005-06-01  Bruno Haible  <bruno@clisp.org>
40448
40449         * lib/csharpexec.h: New file, from GNU gettext.
40450         * lib/csharpexec.c: New file, from GNU gettext.
40451         * lib/csharpexec.sh.in: New file, from GNU gettext.
40452
40453 2005-05-31  Derek Price  <derek@ximbiot.com>
40454             Paul Eggert  <eggert@cs.ucla.edu>
40455
40456         Sync from cvs.
40457         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40458
40459 2005-05-31  Derek Price  <derek@ximbiot.com>
40460             Paul Eggert  <eggert@cs.ucla.edu>
40461
40462         Sync from cvs.
40463         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40464
40465 2005-05-29  Derek Price  <derek@ximbiot.com>
40466
40467         * config/srclist.txt (glob_.h, glob.c): Add these files.
40468
40469 2005-05-29  Derek Price  <derek@ximbiot.com>
40470
40471         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
40472         * modules/glob: New file.
40473         * modules/getlogin_r: Add link to POSIX spec in description.
40474
40475 2005-05-29  Derek Price  <derek@ximbiot.com>
40476             Paul Eggert  <eggert@cs.ucla.edu>
40477
40478         * m4/glob.m4: New file.
40479
40480 2005-05-29  Derek Price  <derek@ximbiot.com>
40481             Paul Eggert  <eggert@cs.ucla.edu>
40482
40483         * lib/glob_.h, lib/glob.c: New files.
40484
40485 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40486
40487         * modules/fts (Files): Remove m4/inttypes-pri.m4.
40488         * modules/fts-lgpl (Depends-on): Remove gettext.
40489
40490 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40491
40492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
40493         and don't require gt_INTTYPES_PRI.
40494
40495 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40496
40497         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
40498
40499         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
40500         the configuration hassle isn't worth it.
40501         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
40502         (LONGEST_MODIFIER, PRIuMAX): Remove.
40503
40504 2005-05-27  Bruno Haible  <bruno@clisp.org>
40505
40506         * lib/getlogin_r.h: Remove second include of <stddef.h>.
40507
40508 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
40509
40510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
40511         _POSIX_PTHREAD_SEMANTICS for Solaris.
40512
40513 2005-05-25  Derek Price  <derek@ximbiot.com>
40514
40515         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
40516
40517 2005-05-25  Derek Price  <derek@ximbiot.com>
40518             Paul Eggert  <eggert@cs.ucla.edu>
40519
40520         * modules/getlogin_r, m4/getlogin_r.m4: New files.
40521         * lib/getlogin_r.c, getlogin_r.h: New files.
40522
40523 2005-05-25  Bruno Haible  <bruno@clisp.org>
40524             Derek Price  <derek@ximbiot.com>
40525
40526         * lib/getlogin_r.h: Simplify API documentation.
40527
40528 2005-05-23  Derek Price  <derek@ximbiot.com>
40529
40530         * modules/minmax (Files): Add m4/minmax.m4.
40531         (configure.ac): Add gl_MINMAX.
40532
40533 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
40534
40535         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
40536         so that unistd-safer.h (GPL'ed code) need not be included.
40537
40538 2005-05-22  Bruno Haible  <bruno@clisp.org>
40539
40540         * m4/minmax.m4: New file.
40541         Based on a patch by Derek Price <derek@ximbiot.com>.
40542
40543 2005-05-22  Bruno Haible  <bruno@clisp.org>
40544
40545         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
40546         (INT64_MIN): Fix definition.
40547         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
40548
40549         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
40550         NEED_SIGNED_INT_TYPES.
40551
40552         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
40553         HAVE_SYSTEM_INTTYPES.
40554
40555 2005-05-22  Bruno Haible  <bruno@clisp.org>
40556
40557         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
40558         Also include <sys/param.h> if it defines MIN, MAX.
40559         Based on a patch by Derek Price <derek@ximbiot.com>.
40560
40561 2005-05-21  Jim Meyering  <jim@meyering.net>
40562
40563         * modules/fts (Files): Add m4/inttypes-pri.m4.
40564         (Depends-on): Add lstat and remove gettext.  Alphabetize.
40565
40566 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40567
40568         New fts module.
40569         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
40570         (setup_dir, free_dir): New functions.
40571         (enter_dir, leave_dir): Define trivial
40572         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
40573         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
40574         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
40575         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
40576         Move to fts-cycle.c.
40577         (fts_open): Use setup_dir.
40578         (fts_close): Use free_dir.
40579         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
40580         This adds a label and some gotos, but the alternatives were messier.
40581         Check for memory allocation failure when entering a dir.
40582         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
40583         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
40584         (FTS): New member fts_cycle, that is a union that contains the
40585         old active_dir_ht and cycle_state.  All uses changed to mention
40586         fts_cycle.ht and fts_cycle.state.
40587         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
40588         fts.c, with the following changes:
40589         (setup_dir, free_dir): New functions.
40590         (enter_dir): Now returns bool.  Return true if successful, false
40591         if memory exhausted.  All callers changed.
40592         Do not bother partly cleaning up on
40593         memory allocation failure; that is free_dir's job.
40594         However, free ad if hash_insert fails, to avoid memory leak.
40595         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
40596         fts->fts_options to see which union member to use.
40597
40598 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40599
40600         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
40601         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
40602
40603 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40604
40605         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
40606
40607 2005-05-20  Jim Meyering  <jim@meyering.net>
40608
40609         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
40610         Now a macro, to pacify GCC.
40611
40612 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
40613
40614         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
40615         of -1.
40616
40617 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
40618
40619         * lib/chown.c (rpl_chown): Return -1 on failure.
40620
40621 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
40622
40623         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
40624         Don't check for stddef.h.
40625         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
40626         don't use its results.
40627         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
40628         since we include them unconditionally.  Don't require
40629         AM_STDBOOL_H, since stdbool is a prerequisite.
40630         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
40631         since we assume C89 or better.
40632         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
40633         as we don't use their results.
40634         Don't check for fchdir, memmove, memset, strrchr, as we use
40635         them unconditionally.
40636         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
40637         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
40638
40639 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
40640
40641         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
40642         Include <stddef.h> unconditionally, since we assume C89 now.
40643         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
40644         * lib/fts.c: Include fts_.h first, to check interface.
40645         Do not include intprops.h; no longer needed.
40646         Include cycle-check.h and hash.h, since fts_.h no longer does.
40647         Remove unnecessary casts of closedir to void.
40648         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
40649         decide whether to decrement nlinks.
40650         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
40651         (FTS): Use struct hash_table * instead of Hash_table, so that
40652         we no longer need to include hash.h here.
40653
40654 2005-05-18  Jim Meyering  <jim@meyering.net>
40655
40656         * modules/dirfd (License): Change to LGPL.  Most of the code
40657         is already in the public domain.
40658
40659 2005-05-18  Jim Meyering  <jim@meyering.net>
40660
40661         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
40662         Reported by Yoann Vandoorselaere.
40663
40664 2005-05-17  Jim Meyering  <jim@meyering.net>
40665
40666         * m4/fts.m4: New file, from coreutils.
40667
40668 2005-05-17  Jim Meyering  <jim@meyering.net>
40669
40670         * lib/fts.c, lib/fts_.h: New files, from coreutils.
40671
40672 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40673
40674         Sync from coreutils.
40675         * m4/unlinkdir.m4: New file.
40676
40677 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40678
40679         Sync from coreutils.
40680         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
40681         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
40682         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
40683         White space changes only.
40684         * lib/makepath.c (make_path): Port to hosts where leading "//" is
40685         special.
40686         * lib/yesno.c: Include getline.h, not ctype.h.
40687         (yesno): Don't remove leading white space; POSIX doesn't allow it.
40688         Use getline to remove arbitrary restriction on response length.
40689
40690 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
40691
40692         * config/srclist-update: Spell out "Street" in FSF postal
40693         mail address; this is the style the FSF seems to prefer.
40694
40695         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
40696         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
40697         this updates FSF postal mail address.
40698
40699         Sync from coreutils.
40700         * modules/unlinkdir: New file.
40701         * modules/yesno (Depends-on): Add getline.
40702         * MODULES.html.sh (File system functions): Add unlinkdir.
40703
40704 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40705
40706         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
40707         lib/strsep.h:
40708         Change the initial comment to refer to GPL, not LGPL.
40709         gnulib-tool will change it to LGPL as needed.
40710
40711         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
40712         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
40713         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
40714         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
40715         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
40716         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
40717         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
40718         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
40719         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
40720         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
40721         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
40722         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
40723         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
40724         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
40725         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
40726         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
40727         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
40728         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
40729         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
40730         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
40731         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
40732         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
40733         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
40734         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
40735         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
40736         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
40737         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
40738         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
40739         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
40740         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
40741         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
40742         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
40743         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
40744         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
40745         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
40746         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
40747         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
40748         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
40749         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
40750         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
40751         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
40752         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
40753         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
40754         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
40755         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
40756         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
40757         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
40758         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
40759         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
40760         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
40761         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40762         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
40763         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
40764         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
40765         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
40766         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
40767         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
40768         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
40769         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
40770         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
40771         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
40772         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
40773         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
40774         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
40775         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
40776         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
40777         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
40778         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
40779         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
40780         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
40781         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
40782         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
40783         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
40784         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
40785         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
40786         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
40787         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
40788         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
40789         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
40790         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
40791         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
40792         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
40793         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
40794         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
40795         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
40796         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
40797         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
40798         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
40799         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
40800         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
40801         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
40802         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
40803         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
40804         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
40805         lib/yesno.c, lib/yesno.h:
40806         Update FSF postal mail address.
40807
40808 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40809
40810         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
40811         tests/test-memmem.c, tests/test-stpncpy.c:
40812         Update FSF postal mail address.
40813
40814 2005-05-13  Bruno Haible  <bruno@clisp.org>
40815
40816         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
40817         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
40818         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
40819         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
40820         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
40821         Add support for 64-bit integers in the MSVC compiler.
40822
40823 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40824
40825         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
40826
40827 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
40828
40829         * gnulib-tool (func_import): Sort and uniquify recommended includes.
40830
40831 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
40832
40833         * doc/getdate.texi (General date syntax): Don't say that date
40834         date --iso-8601=ns generates acceptable dates; it doesn't yet.
40835         Problem reported by Nic Ferrier.
40836
40837 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40838
40839         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
40840         specified in ai_socktype. Fix invalid ai_protocol
40841         check. ai_protocol is usually set to 0 or depending on
40842         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
40843         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
40844         ai_socktype / ai_protocol in the returned addrinfo structure.
40845
40846 2005-05-10  Simon Josefsson  <jas@extundo.com>
40847
40848         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
40849         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40850
40851 2005-05-10  Karl Berry  <karl@gnu.org>
40852
40853         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
40854         (from http://www.gnu.org/licenses).
40855         * doc/COPYING.LIB: also rename to COPYING.LESSER.
40856         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
40857         fdl.texi suffices.
40858
40859 2005-05-10  Karl Berry  <karl@gnu.org>
40860
40861         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
40862         (COPYING.DOC): remove.
40863
40864         * config/srclist-update: new FSF address.
40865
40866 2005-05-10  Derek Price  <derek@ximbiot.com>
40867
40868         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
40869         possible.
40870
40871 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40872             Bruno Haible  <bruno@clisp.org>
40873
40874         * modules/inet_ntop: New file.
40875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40876         inet_ntop.
40877
40878 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40879             Bruno Haible  <bruno@clisp.org>
40880
40881         * m4/inet_ntop.m4: New file.
40882
40883 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40884             Bruno Haible  <bruno@clisp.org>
40885
40886         * lib/inet_ntop.h: New file.
40887         * lib/inet_ntop.c: New file, from glibc with modifications.
40888
40889 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
40890
40891         * modules/time_r (License): Change to LGPL.
40892         * modules/extensions (License): Change to LGPL.  Actually,
40893         the license is more permissive than that, but currently gnulib-tool
40894         doesn't know how to handle more-permissive licenses.
40895
40896         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
40897         Problem reported by Dave Love.
40898
40899 2005-05-08  Jim Meyering  <jim@meyering.net>
40900
40901         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
40902         blank.
40903
40904 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40905
40906         * modules/argmatch (Depends-on): Add stdbool.
40907         * modules/backupfile (Depends-on): Likewise.
40908         * modules/chdir-long (Depends-on): Likewise.
40909         * modules/closeout (Depends-on): Likewise.
40910         * modules/cycle-check (Depends-on): Likewise.
40911         * modules/dirname (Depends-on): Likewise.
40912         * modules/fnmatch (Depends-on): Likewise.
40913         * modules/fsusage (Depends-on): Likewise.
40914         * modules/fwriteerror (Depends-on): Likewise.
40915         * modules/getcwd (Depends-on): Likewise.
40916         * modules/getloadavg (Depends-on): Likewise.
40917         * modules/hard-locale (Depends-on): Likewise.
40918         * modules/makepath (Depends-on): Likewise.
40919         * modules/mountlist (Depends-on): Likewise.
40920         * modules/nanosleep (Depends-on): Likewise.
40921         * modules/posixtm (Depends-on): Likewise.
40922         * modules/quotearg (Depends-on): Likewise.
40923         * modules/readtokens (Depends-on): Likewise.
40924         * modules/readtokens0 (Depends-on): Likewise.
40925         * modules/readutmp (Depends-on): Likewise.
40926         * modules/save-cwd (Depends-on): Likewise.
40927         * modules/strftime (Depends-on): Likewise.
40928         * modules/userspec (Depends-on): Likewise.
40929         * modules/utimecmp (Depends-on): Likewise.
40930         * modules/xgetcwd (Depends-on): Likewise.
40931         * modules/xnanosleep (Depends-on): Likewise.
40932         * modules/xstrtod (Depends-on): Likewise.
40933         * modules/yesno (Depends-on): Likewise.
40934
40935 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40936
40937         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
40938         needless checks.
40939
40940 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
40941
40942         Merge from coreutils.  Among other things,
40943         add bulletproofing for cases where stdin, stdout, or stderr are closed.
40944         * lib/fd-safer.c: New file.
40945         * lib/fcntl-safer.h, open-safer.c: Remove.
40946         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
40947         * lib/dup-safer.c: Include unistd-safer.h first.
40948         Don't include errno.h.
40949         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
40950         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
40951         * lib/file-type.c: Rely on file-type.h change.
40952         * lib/getloadavg.c: Include unistd-safer.h.
40953         (getloadavg): Use safer open.
40954         * lib/getusershell.c: Include "stdio-safer.h".
40955         (getusershell): Use safer fopen.
40956         * lib/long-options.c (long_options): Use NULL rather than 0.
40957         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
40958         'free'.
40959         * lib/modechange.c: Likewise.
40960         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
40961         (MODE_DONE): New constant.
40962         (struct mode_change): Remove 'next' member.
40963         (make_node_op_equals): New function; like the old one of the
40964         same name, except it allocates an array.
40965         (mode_compile, mode_create_from_ref): Use it.
40966         (mode_compile): Allocate result as an array, not a linked list.
40967         Parse octal string ourself, so that we catch mistakes like "+0".
40968         (mode_adjust): Arg is an array, not a linked list.
40969         * lib/modechange.c: Include stat-macros.h, xalloc.h.
40970         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
40971         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
40972         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
40973         Remove.  This is now stat-macros.h's job.
40974         (talloc): Remove.  All callers replaced by xalloc, so that
40975         our invokers don't have to worry about reporting memory failures.
40976         (make_node_op_equals): Remove.
40977         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40978         New constants.
40979         (struct mode_change): Moved here from modechange.h.
40980         (mode_append_entry): Remove.
40981         (mode_compile): Remove MASKED_OPS arg, since it encouraged
40982         apps to have incorrect behavior.  Use simpler algorithm for head
40983         and tail.  Don't futz with umask; that's now the job of mode_adjust.
40984         Detect more invalid usages rather than having somewhat-random behavior.
40985         Don't insert an "a=" action, as that leads to incorrect behavior.
40986         (mode_compile, mode_create_from_ref): Return NULL on error instead
40987         of an enum, since now there's only one way to have an error.  All
40988         callers changed.
40989         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
40990         at the correct time.  Simplify calculation of "+u" and its ilk.
40991         Don't mishandle "+X".
40992         (mode_free): Remove "register" and localize decls.
40993         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
40994         (struct mode_change): Move to modechange.c; callers don't
40995         need to see this stuff.
40996         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
40997         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
40998         (mode_change, mode_adjust): Reflect the new signatures noted above.
40999         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
41000         that might redefine system include files.
41001         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
41002         (my_usleep): Use NULL rather than (void *) 0.
41003         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
41004         Use siginterrupt to specify that system calls should be interrupted.
41005         (rpl_nanosleep): Move initialization of suspended closer to call of
41006         my_usleep.
41007         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
41008         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
41009         (desirable_utmp_entry): New function.
41010         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
41011         using x2nrealloc, to simplify logic.
41012         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
41013         size calculation.  Do not assume utmp file is a regular file.
41014         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
41015         (READ_UTMP_CHECK_PIDS): New constant.
41016         * lib/save-cwd.c: Include unistd-safer.h.
41017         (save_cwd): Use fd_safer.
41018         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
41019         [!_LIBC] Include "stat-macros.h" instead.
41020         * lib/unistd-safer.h (fd_safer): New decl.
41021
41022 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41023
41024         * modules/getloadavg (Depends-on): Add unistd-safer.
41025         * modules/getusershell (Depends-on): Add stdio-safer.
41026         * modules/lstat (Depends-on): Remove xalloc.
41027         * modules/mkstemp (Depends-on): Add stat-macros.
41028         * modules/modechange (Depends-on): Remove xstrtol.
41029         Add stat-macros, xalloc.
41030         * modules/save-cwd (Depends-on): Add unistd-safer.
41031         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
41032         * modules/unistd-safer (Files): Add lib/fd-safer.c
41033         (Makefile.am): Remove lib_SOURCES.
41034
41035         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
41036         Remove fcntl-safer; unistd-safer supersedes it.
41037
41038 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41039
41040         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
41041         AC_HEADER_STAT.
41042         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
41043         (gl_PREREQ_CHOWN): Remove.
41044         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
41045         it.  Don't require AC_HEADER_STAT.
41046         (gl_PREREQ_LSTAT): Remove.
41047         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
41048         Don't require AC_HEADER_STAT.
41049         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
41050         (gl_PREREQ_RMDIR): Remove.
41051         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
41052         mention stat-macros.h or AC_HEADER_STAT, since we'll make
41053         the stat-macros module a prerequisite.
41054         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
41055         * m4/filemode.m4 (gl_FILEMODE): Likewise.
41056         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
41057         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
41058         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
41059         variable names.
41060         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
41061         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
41062         variable prefixes.
41063         * m4/fcntl-safer.m4: Remove.
41064         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
41065         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
41066         Invoke gl_PREREQ_FD_SAFER.
41067         (gl_PREREQ_FD_SAFER): New macro.
41068         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
41069         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
41070         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
41071         Remove duplicate call to AC_LIBOBJ(readutmp).
41072         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
41073
41074         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
41075         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
41076
41077 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41078
41079         * MODULES.html.sh (Misc): Add byteswap.
41080
41081 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41082
41083         * modules/getcwd (Depends-on): Add extensions.
41084         * modules/openat (Depends-on): Likewise.
41085
41086 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41087
41088         * modules/byteswap: New file.
41089
41090 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41091
41092         * m4/byteswap.m4: New file.
41093
41094 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41095
41096         * lib/byteswap_.h: New file.
41097
41098 2005-04-25  Karl Berry  <karl@gnu.org>
41099
41100         * m4/gettext.m4: Update from GNU gettext 0.14.4.
41101
41102 2005-04-25  Albert Chin  <china@thewrittenword.com>
41103
41104         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
41105         Toolkit C bug.
41106
41107 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
41108
41109         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
41110         (func_ln_if_changed) Remove forcibly for no error message
41111         in case file does not exist.
41112
41113 2005-04-19  Simon Josefsson  <jas@extundo.com>
41114
41115         * gnulib-tool (Options): Make --symlink mean --symbolic.
41116
41117 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
41118
41119         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
41120
41121 2005-04-16  Simon Josefsson  <jas@extundo.com>
41122
41123         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
41124
41125 2005-04-15  Simon Josefsson  <jas@extundo.com>
41126
41127         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
41128
41129 2005-04-15  Simon Josefsson  <jas@extundo.com>
41130
41131         * gnulib-tool: Rename --symlink to --symbolic.
41132
41133 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
41134
41135         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
41136         symbolic links to files instead of copying/moving.  Add --aux-dir,
41137         specifying directory relative --dir where auxiliary build tools
41138         are placed.
41139
41140 2005-04-14  Bruno Haible  <bruno@clisp.org>
41141
41142         * modules/allocsa (License): Change to LGPL.
41143         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41144
41145 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41146
41147         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
41148         that "UTC +1 second" continues to work.  Problem reported
41149         by Dmitry V. Levin.
41150         (relunit_snumber): New rule.
41151         (relunit): Use it.
41152
41153 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
41154
41155         * lib/getdate.y (universal_time_zone_table): New constant.
41156         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
41157         universal_time_zone_table.
41158         (lookup_zone): Prefer universal_time_zone_table to
41159         local_time_zone_table, so that "GMT" time stamps are allowed in
41160         London during the summer.  Problem reported by Ian Abbott.
41161
41162 2005-04-12  Jim Meyering  <jim@meyering.net>
41163
41164         * lib/human.c (humblock): Set *options even when returning due to
41165         xstrtoumax conversion failure.  Thanks to a used-uninitialized
41166         warning from gcc-4.
41167
41168 2005-04-09  Jim Meyering  <jim@meyering.net>
41169
41170         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
41171         -Wuninitialized: initialize tm0.tm_year.
41172
41173 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41174
41175         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
41176         count, since there's no maximum.  All uses changed.
41177         Add member dsts_seen.
41178         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
41179         not being INT_MAX.
41180         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
41181         Use pc_rels_seen to decide whther a date is absolute.
41182
41183         * lib/getdate.y (number): Don't overwrite year.
41184         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
41185         check.
41186
41187 2005-04-02  Simon Josefsson  <jas@extundo.com>
41188
41189         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
41190         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
41191
41192 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
41193
41194         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
41195         where no absolute path name can be longer than PATH_MAX.
41196
41197 2005-03-27  Jim Meyering  <jim@meyering.net>
41198
41199         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
41200
41201 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
41202
41203         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
41204         "one's complement" -> "ones' complement" in comment, as per Knuth.
41205         "value of type" -> "type or expression" in comment.
41206         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
41207
41208 2005-03-26  Jim Meyering  <jim@meyering.net>
41209
41210         Comment nits.
41211         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
41212         Correct typos: s/or/of/.
41213
41214 2005-03-26  Jim Meyering  <jim@meyering.net>
41215
41216         * modules/check-include-files: Move to ../ and rename to...
41217         * check-module: ...this.
41218
41219 2005-03-25  Jim Meyering  <jim@meyering.net>
41220
41221         * modules/xvasprintf (Files): Add xalloc.h.
41222
41223 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41224
41225         * modules/gettext (Files): config/config.rpath ->
41226         build-aux/config.rpath
41227         * modules/iconv (Files): Likewise.
41228         Problem reported by Oskar Liljeblad.
41229
41230 2005-03-23  Jim Meyering  <jim@meyering.net>
41231
41232         * modules/check-include-files: New script to check for
41233         missing dependencies, multiple includes, etc.
41234
41235         * modules/c-strtold (Depends-on): Add xalloc.
41236         * modules/c-strtod (Depends-on): Add xalloc.
41237         * modules/hash (Depends-on): Add xalloc.
41238         (Files): Remove lib/xalloc.h.
41239
41240         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
41241         * modules/userspec (Files): Add lib/inttostr.h.
41242
41243 2005-03-23  Jim Meyering  <jim@meyering.net>
41244
41245         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
41246
41247 2005-03-22  Jim Meyering  <jim@meyering.net>
41248
41249         * modules/stat-macros: New module.
41250         * modules/canonicalize, modules/euidaccess, modules/file-type,
41251         * modules/filemode, modules/lchown, modules/makepath,
41252         * modules/rmdir, modules/stat: Depend on new stat-macros module
41253         rather than listing lib/stat-macros.h manually.
41254         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
41255
41256 2005-03-22  Jim Meyering  <jim@meyering.net>
41257
41258         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
41259
41260 2005-03-22  Bruno Haible  <bruno@clisp.org>
41261
41262         * config/srclist.txt: Replace target directory 'config' with
41263         'build-aux'.
41264         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
41265         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
41266         ../build-aux/.
41267
41268 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         * modules/chdir-long (Depends-on): Add mempcpy.
41271
41272         * modules/acl, modules/backupfile, modules/c-strtod,
41273         modules/c-strtold, modules/canon-host, modules/canonicalize,
41274         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
41275         modules/exclude, modules/exitfail, modules/file-type,
41276         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
41277         modules/getdate, modules/getline, modules/getpagesize,
41278         modules/getpass, modules/getugroups, modules/group-member,
41279         modules/hard-locale, modules/hash, modules/human, modules/idcache,
41280         modules/inttostr, modules/long-options, modules/makepath,
41281         modules/md5, modules/memcasecmp, modules/memcoll,
41282         modules/modechange, modules/mountlist, modules/path-concat,
41283         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
41284         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
41285         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
41286         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
41287         modules/strftime, modules/strndup, modules/strverscmp,
41288         modules/timespec, modules/unlocked-io, modules/userspec,
41289         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
41290         modules/yesno:
41291         Remove lib_SOURCES line from Makefile.am section, as this is now
41292         done automatically by the corresponding Autoconf macro.
41293
41294 2005-03-21  Jim Meyering  <jim@meyering.net>
41295
41296         Changes imported from coreutils.
41297
41298         * lib/cycle-check.c: Don't include xalloc.h.
41299
41300         * lib/path-concat.c: Don't include assert.h.
41301         (path_concat): Remove assertion that would have triggered
41302         for ABASE starting with more than one slash.
41303         Reported by Andreas Schwab.
41304
41305         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
41306         properly when ABASE is an absolute file name.
41307         Correct the description of this function.
41308         Include <assert.h>.
41309         Add an assertion and a test driver.
41310         This fixes a bug introduced on 2004-07-02.
41311         Andreas Schwab reported the resulting failure of cp --parents:
41312         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
41313
41314 2005-03-21  Jim Meyering  <jim@meyering.net>
41315
41316         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
41317         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
41318
41319 2005-03-21  Jim Meyering  <jim@meyering.net>
41320         and  Paul Eggert  <eggert@cs.ucla.edu>
41321
41322         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
41323         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
41324         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
41325         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
41326         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
41327         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
41328         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
41329         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
41330         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
41331         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
41332         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
41333         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
41334         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
41335         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
41336         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
41337         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
41338         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
41339         for these modules.
41340
41341 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
41342
41343         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
41344         (which shouldn't happen), generate nothing instead of returning 0
41345         immediately, so that nstrftime (NULL, ...) doesn't return 0.
41346
41347 2005-03-16  Bruno Haible  <bruno@clisp.org>
41348
41349         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
41350         HAVE_LONGLONG_64BIT.
41351
41352 2005-03-16  Bruno Haible  <bruno@clisp.org>
41353
41354         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
41355         HAVE_LONGLONG_64BIT.
41356
41357 2005-03-16  Bruno Haible  <bruno@clisp.org>
41358
41359         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
41360         HAVE_LONGLONG_64BIT.
41361
41362 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41363
41364         * lib/strftime.c (my_strftime): Prepend space to format so that we can
41365         reliably distinguish strftime failure from empty output on POSIX
41366         hosts.
41367
41368 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41369
41370         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
41371         (iconv_string): Don't guess a size-zero buffer, as that might cause
41372         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
41373         result would be 'too large', where 'too large' is (heuristically)
41374         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
41375         overflow concerns.  This will prevent some unwanted malloc failures
41376         when the inputs are very large.
41377
41378 2005-03-15  Karl Berry  <karl@gnu.org>
41379
41380         * config/srclist.txt (config.rpath): from gettext.
41381         * config/config.rpath: update.
41382
41383 2005-03-15  Bruno Haible  <bruno@clisp.org>
41384
41385         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
41386         to 'negate'.
41387
41388         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
41389         variable.
41390
41391         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
41392         results.
41393
41394 2005-03-14  Simon Josefsson  <jas@extundo.com>
41395
41396         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
41397         <fx@gnu.org>.
41398
41399 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
41400
41401         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
41402         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
41403         intprops.h.
41404         * lib/strtol.c: Likewise.
41405
41406 2005-03-14  Jim Meyering  <jim@meyering.net>
41407
41408         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
41409         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
41410         to be nonzero so that we (and caller) can detect the difference
41411         between a valid zero-length expansion and an error return, even
41412         when the underlying strftime fails before writing anything into
41413         that location.
41414
41415 2005-03-14  Bruno Haible  <bruno@clisp.org>
41416
41417         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
41418         Update from GNU gettext 0.14.3.
41419
41420 2005-03-10  Jim Meyering  <jim@meyering.net>
41421
41422         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
41423
41424 2005-03-10  Jim Meyering  <jim@meyering.net>
41425
41426         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
41427         so that this module works on systems without fchdir.
41428
41429 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
41430
41431         Factor int-properties macros into a single file, except for
41432         glibc-related files.
41433         * lib/intprops.h: New file.
41434         * lib/getloadavg.c: Include it instead of limits.h.
41435         (INT_STRLEN_BOUND): Remove.
41436         * lib/human.c: Include intprops.h.
41437         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
41438         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
41439         302/1000.
41440         * lib/inttostr.h: Include intprops.h instead of limits.h.
41441         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
41442         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
41443         for consistency with intprops.h.
41444         (time_t_is_integer, twos_complement_arithmetic): Use them.
41445         * lib/sig2str.h: Include <signal.h>, intprops.h.
41446         (INT_STRLEN_BOUND): Remove.
41447         * lib/strftime.c (TYPE_SIGNED): Remove.
41448         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
41449         * lib/strtol.c: Adjust comments to match intprops.h.
41450         * lib/userspec.c: Include intprops.h.
41451         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
41452         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
41453         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
41454         instead of rolling our own expressions.
41455         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
41456
41457         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
41458         instead of int.
41459         (my_strftime): Do not mishandle years close to INT_MAX, by doing
41460         the right thing even if adding 1900 would overflow.  Similarly
41461         for tm_mon + 1 and tm_yday + 1.
41462         Make %Y always equivalent to %C%y, and similarly for %G and %g.
41463         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
41464         (DO_SIGNED_NUMBER): New macro.
41465         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
41466
41467 2005-03-07  Bruno Haible  <bruno@clisp.org>
41468
41469         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
41470
41471 2005-03-07  Bruno Haible  <bruno@clisp.org>
41472
41473         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
41474
41475 2005-03-04  Derek R. Price  <derek@ximbiot.com>
41476
41477         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
41478         (func_import): Only replace files via --import when they have actually
41479         changed.
41480
41481 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41482
41483         * m4/mmap-anon.m4: New file.
41484         * m4/pagealign_alloc.m4: New file.
41485
41486 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41487             Bruno Haible  <bruno@clisp.org>
41488
41489         * modules/pagealign_alloc: New file.
41490         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
41491
41492 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41493             Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/pagealign_alloc.h: New file.
41496         * lib/pagealign_alloc.c: New file.
41497
41498 2005-03-03  Bruno Haible  <bruno@clisp.org>
41499
41500         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
41501         Use an all-permissive copyright notice, recommended by RMS.
41502
41503 2005-03-02  Bruno Haible  <bruno@clisp.org>
41504
41505         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
41506         of AIX, the replacement has to be done only after <string.h> is
41507         included, therefore not in config.h. stpncpy.h does the replacement,
41508         and stpncpy.c uses it.
41509
41510 2005-03-02  Bruno Haible  <bruno@clisp.org>
41511
41512         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
41513         stpncpy.c uses it.
41514
41515 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41516
41517         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
41518         The workaround isn't strictly needed for POSIX conformance, and
41519         it's too much of a pain to configure and maintain.  We'll ask
41520         people to fix their kernels instead.
41521         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
41522         (NANOSLEEP_BUG_WORKAROUND): Remove.
41523         (xnanosleep): Remove the workaround.
41524
41525 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41526
41527         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
41528         Reported by Derek Price.
41529         (Include): Add "timespec.h".
41530
41531         * modules/xnanosleep (Depends-on): Remove gethrxtime.
41532
41533 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41534
41535         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
41536         to detect nanosleep bug.
41537
41538 2005-03-01  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
41541
41542 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41543
41544         * modules/gethrxtime: New file.
41545         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
41546         (Depends-on): Add gethrxtime.
41547         (configure.ac): Add gl_XNANOSLEEP.
41548         (Makefile.am): Remove lib_SOURCES line.
41549
41550 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41551
41552         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
41553         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
41554
41555 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41556
41557         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
41558         * lib/timespec.h (gettime): Return void, since it always
41559         succeeds now.  All uses changed.
41560         * lib/gettime.c (gettime) Likewise.
41561         [HAVE_NANOTIME]: Prefer nanotime.
41562         Assume gettimeofday succeeds, as POSIX requires.
41563         Assime time () succeeds, since other code already does.
41564         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
41565         (timespec_subtract): Remove.
41566         (NANOSLEEP_BUG_WORKAROUND): New constant.
41567         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
41568         things considerably.  Use it only on GNU/Linux hosts, since the
41569         workaround shouldn't be needed elsewhere.
41570
41571 2005-02-24  Bruno Haible  <bruno@clisp.org>
41572
41573         * modules/gettext (Files): Add m4/glibc2.m4.
41574
41575 2005-02-24  Bruno Haible  <bruno@clisp.org>
41576
41577         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
41578         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
41579         * m4/progtest.m4:
41580         Update from GNU gettext 0.14.2.
41581         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
41582
41583 2005-02-24  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/localcharset.c: Update from GNU gettext 0.14.2.
41586         * lib/config.charset: Update from GNU gettext 0.14.2.
41587
41588 2005-02-24  Bruno Haible  <bruno@clisp.org>
41589
41590         * lib/gettext.h: Update from GNU gettext 0.14.2.
41591
41592 2005-02-23  Simon Josefsson  <jas@extundo.com>
41593
41594         * m4/iconvme.m4: New file.
41595
41596 2005-02-23  Jim Meyering  <jim@meyering.net>
41597
41598         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
41599         change.
41600         Thanks to Bruno Haible for catching it.
41601
41602 2005-02-22  Simon Josefsson  <jas@extundo.com>
41603
41604         * modules/iconvme: New file.
41605
41606         * MODULES.html.sh: Add iconvme.
41607
41608 2005-02-22  Simon Josefsson  <jas@extundo.com>
41609
41610         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
41611
41612 2005-02-22  Simon Josefsson  <jas@extundo.com>
41613
41614         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
41615
41616 2005-02-22  Jim Meyering  <jim@meyering.net>
41617
41618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
41619         s/ifndef/ifdef/.
41620
41621 2005-02-20  Neil Conway  <neilc@samurai.com>
41622
41623         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
41624         returned by OSX/Darwin if the specified buffer is not large
41625         enough for the hostname.
41626
41627 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41628
41629         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
41630         pass it to _help, otherwise the latter coredumps trying to
41631         dereference state.root_argp.
41632
41633 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41634
41635         * modules/chdir-long (Depends-on): Add memrchr.
41636         * modules/memrchr (Files): Add lib/memrchr.h.
41637         (Include): "memrchr.h".
41638
41639 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41640
41641         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
41642
41643 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
41644
41645         * lib/memrchr.h: New file.
41646         * lib/chdir-long.c: Include it.
41647         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
41648         Don't bother including stddef.h.
41649
41650 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
41651
41652         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
41653         inclusion.
41654         Include <sys/types.h>, for dev_t.
41655         (ME_DUMMY, ME_REMOTE): Move from here....
41656         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
41657         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
41658         Dmitry V. Levin.
41659         Include mountlist.h first, to test the interface.
41660
41661 2005-01-29  Bruno Haible  <bruno@clisp.org>
41662
41663         * lib/progname.c (program_name): Initialize.
41664         Needed when linking statically on MacOS X.
41665
41666 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41667
41668         Sync from coreutils.
41669         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
41670         (Depends-on): Add c-strtod.
41671         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
41672
41673 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
41674
41675         Sync from coreutils.
41676         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
41677
41678         Remove files that are specific to coreutils.
41679         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
41680
41681 2005-01-28  Bruno Haible  <bruno@clisp.org>
41682
41683         * modules/javacomp: New file.
41684         * MODULES.html.sh (Java): Add javacomp.
41685
41686 2005-01-28  Bruno Haible  <bruno@clisp.org>
41687
41688         * m4/javacomp.m4: New file, from GNU gettext.
41689
41690 2005-01-28  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/javacomp.sh.in: New file, from GNU gettext.
41693         * lib/javacomp.h: New file, from GNU gettext.
41694         * lib/javacomp.c: New file, from GNU gettext.
41695
41696 2005-01-26  Simon Josefsson  <jas@extundo.com>
41697
41698         * lib/gai_strerror.c: Use GPL in header.
41699
41700 2005-01-26  Bruno Haible  <bruno@clisp.org>
41701
41702         * modules/javaexec: New file.
41703         * MODULES.html.sh (Java): Add javaexec.
41704
41705 2005-01-26  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/javaexec.m4: New file, from GNU gettext.
41708
41709 2005-01-26  Bruno Haible  <bruno@clisp.org>
41710
41711         * lib/javaexec.sh.in: New file, from GNU gettext.
41712         * lib/javaexec.h: New file, from GNU gettext.
41713         * lib/javaexec.c: New file, from GNU gettext.
41714
41715 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41716
41717         * modules/lchown (Depends-on): Remove lchown.h
41718
41719 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41720
41721         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
41722         must be defined if the header file was not found, in order
41723         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
41724
41725 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41726
41727         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
41728         initializers for struct pentry_state.
41729         (__argp_error): Check return value of __asprintf
41730         (__argp_failure): Translate error message
41731
41732         * lib/argp-parse.c: Removed braces around the expansion of N_()
41733
41734 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
41735
41736         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
41737         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
41738         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
41739         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
41740         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
41741         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
41742         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
41743         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
41744         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
41745         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
41746         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
41747         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
41748         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
41749         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
41750         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
41751         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
41752         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
41753         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
41754         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
41755         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
41756         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
41757         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
41758         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
41759         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
41760         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
41761         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
41762         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
41763         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
41764         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
41765         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
41766         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
41767         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
41768         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
41769         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
41770         xstrtol.m4, xstrtoumax.m4, yesno.m4:
41771         Use an all-permissive copyright notice, recommended by RMS.
41772
41773 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
41774
41775         * modules/chdir-long (Depends-on): Remove mempcpy.
41776
41777 2005-01-21  Jim Meyering  <jim@meyering.net>
41778
41779         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
41780         same value as for Solaris 9.
41781
41782         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
41783         component length.  This included changing the parameter to be
41784         of type `char *' rather than `char const *'.
41785         * lib/chdir-long.h (chdir_long): Update prototype.
41786
41787         * lib/openat.c (fdopendir, fstatat): New functions.
41788         * lib/openat.h: Include headers required for use of DIR and struct
41789         stat.
41790         [AT_SYMLINK_NOFOLLOW]: Define.
41791         (fdopendir, fstatat): Add prototypes.
41792
41793 2005-01-21  Bruno Haible  <bruno@clisp.org>
41794
41795         * modules/classpath: New file.
41796         * MODULES.html.sh (Java): Add classpath.
41797
41798 2005-01-21  Bruno Haible  <bruno@clisp.org>
41799
41800         * lib/classpath.h: New file, from GNU gettext.
41801         * lib/classpath.c: New file, from GNU gettext.
41802
41803 2005-01-20  Simon Josefsson  <jas@extundo.com>
41804
41805         * modules/version-etc-fsf: New file.
41806
41807 2005-01-20  Simon Josefsson  <jas@extundo.com>
41808
41809         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
41810         * lib/version-etc.c: Remove version_etc_copyright.
41811         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
41812         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
41813
41814 2005-01-20  Simon Josefsson  <jas@extundo.com>
41815
41816         * lib/base64.h (isbase64): Add.
41817
41818         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
41819         using a unsigned prototype, don't inline.
41820         (base64_decode): Use it.
41821
41822 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41823
41824         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
41825         it.
41826
41827 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41828
41829         * lib/save-cwd.c (save_cwd): Remove code to support the case
41830         where fchdir is missing or flaky.
41831
41832 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
41833
41834         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
41835
41836 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
41837
41838         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
41839         AC_LIBSOURCES now does this.
41840         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
41841         with new ullong_max module.
41842
41843 2005-01-19  Bruno Haible  <bruno@clisp.org>
41844
41845         * modules/sh-quote: New file.
41846         * MODULES.html.sh (Executing programs): Add sh-quote.
41847
41848 2005-01-19  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/sh-quote.h: New file, from GNU gettext.
41851         * lib/sh-quote.c: New file, from GNU gettext.
41852
41853 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41854
41855         Merge from coreutils.
41856         * m4/ullong_max.m4: New file.
41857         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
41858         (gl_MACROS): Assume localeconv exists.
41859
41860 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41861
41862         Merge changes from coreutils, as described below in several
41863         changelogs dated today.
41864
41865         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
41866         (O_DIRECTORY): Remove; not needed here, since "." must be
41867         a directory.  All uses removed.
41868         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
41869         universal on Suns, and we also need to test for IRIX.
41870         Revamp code to use 'if' rather than '#if'.
41871         Avoid unnecessary comparison of cwd->desc to 0.
41872
41873         * lib/utimens.c (futimens): Robustify the previous patch, by checking
41874         for known valid error numbers rather than observed invalid ones.
41875
41876 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
41877
41878         * modules/ullong_max: New file.
41879
41880         * modules/chdir-long, modules/openat: New files.
41881         * modules/save-cwd (Depends-on): Depend on chdir-long.
41882         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
41883
41884 2005-01-18  Jim Meyering  <jim@meyering.net>
41885
41886         Merge from coreutils.
41887         * m4/chdir-long.m4, m4/openat.m4: New files.
41888         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
41889         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
41890         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
41891         is sane and DOES follow symlinks.  Besides, testing 20 different
41892         systems found no broken chown implementations.
41893         Prompted by a change in rsync's copy of this macro.
41894         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
41895
41896         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
41897
41898         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
41899         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
41900         NULL-means-set-to-current-time semantics.
41901         Remove temporary file immediately, rather than waiting
41902         for configure's at-exit trap code to do it.
41903
41904 2005-01-18  Jim Meyering  <jim@meyering.net>
41905
41906         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41907
41908         * lib/utimens.c (futimens): Account for the fact that futimes
41909         can also fail with errno == ENOSYS or errno == ENOENT.
41910         Patch from Dmitry V. Levin.
41911
41912         Change the name of the robust chdir function from chdir to chdir_long.
41913         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
41914         (restore_cwd): Use chdir_long, not chdir.
41915         * lib/chdir-long.c: Renamed from chdir.c.
41916         * lib/chdir-long.h: Renamed from chdir.h.
41917         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
41918         Hurd.
41919
41920 2005-01-18  Bruno Haible  <bruno@clisp.org>
41921
41922         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
41923         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
41924         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
41925         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
41926         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
41927         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
41928         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
41929         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
41930         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
41931         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
41932         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
41933         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
41934         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
41935         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
41936         Use an all-permissive copyright notice, recommended by RMS.
41937
41938 2005-01-18  Bob Proulx  <bob@proulx.com>
41939
41940         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
41941         simplify offsetof() macro construct to avoid compile failure with
41942         native HP-UX 11.0 ANSI C compiler.
41943
41944 2005-01-17  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
41947         redundant because stpncpy.m4 takes care of it.
41948
41949 2005-01-17  Bruno Haible  <bruno@clisp.org>
41950
41951         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
41952
41953 2005-01-17  Bruno Haible  <bruno@clisp.org>
41954
41955         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
41956         used.
41957
41958 2005-01-17  Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/fwriteerror.h (fwriteerror): Change specification to include
41961         fclose.
41962         * lib/fwriteerror.c: Include <stdbool.h>.
41963         (fwriteerror): At the end, close the file stream. Record whether
41964         stdout was already closed.
41965
41966 2005-01-17  Bruno Haible  <bruno@clisp.org>
41967
41968         * lib/execute.c (environ): Declare if needed.
41969         * lib/pipe.c (environ): Likewise.
41970         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
41971
41972 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41973
41974         * modules/argp: Depend on vsnprintf
41975
41976 2005-01-10  Jim Meyering  <jim@meyering.net>
41977
41978         * modules/closeout (Depends-on): Add atexit.
41979
41980 2005-01-06  Bruno Haible  <bruno@clisp.org>
41981
41982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
41983
41984 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41985
41986         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
41987         definitions to be after all include files, to avoid collisions.
41988         Problem reported by Bob Proulx.
41989
41990 2005-01-04  Jim Meyering  <jim@meyering.net>
41991
41992         Changes imported from coreutils.
41993         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
41994         as the mkstemp template, use a temporary directory and an
41995         8.3-friendly template to avoid trouble on systems like DJGPP.
41996         Reported by Juan M. Guerrero via Stepan Kasal.
41997         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
41998         close. Remove the temporary directory right away, rather than waiting
41999         for configure's at-exit trap code to do it.
42000         Suggestion from Stepan Kasal.
42001
42002 2005-01-01  Simon Josefsson  <jas@extundo.com>
42003
42004         * gnulib-tool: Print #include directives when --import'ing.
42005
42006 2004-12-28  Simon Josefsson  <jas@extundo.com>
42007
42008         * tests/test-base64.c: Include required header files.  Remove
42009         unused variables.
42010
42011 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42012
42013         * modules/error (Depends-on): Remove gettext.
42014
42015 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42016
42017         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
42018         not needed.  This removes a dependency on the gettext module.
42019         [defined _LIBC]: Do not include <libintl.h>; not needed.
42020
42021 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42022
42023         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
42024         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
42025
42026 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42027
42028         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
42029         HAVE_DECL_STRTOLD.
42030
42031 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42032
42033         * modules/getdate (Depends-on): Remove alloca-opt.
42034
42035 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42036
42037         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
42038
42039 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42040
42041         * lib/argp-parse.c: Include <stddef.h>.
42042         (alignof, alignto): New macros.
42043         (parser_init): Don't assume that void * is aligned sufficiently
42044         for struct option.
42045
42046         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
42047         need to extend the stack.
42048         (YYINITDEPTH): New macro, so that the initial stack isn't overly
42049         large.
42050
42051 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42052
42053         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
42054
42055 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42056
42057         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
42058         (2004-10-24) change.  Apparently this was a false alarm.
42059
42060         * modules/getdate: Depend on alloca-opt, not alloca.
42061
42062 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42063
42064         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
42065         Remove now-obsolete comment about AIX.
42066         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
42067         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
42068         (YYMAXDEPTH): New macro.
42069
42070 2004-12-18  Simon Josefsson  <jas@extundo.com>
42071
42072         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
42073
42074 2004-12-18  Bruno Haible  <bruno@clisp.org>
42075
42076         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
42077
42078 2004-12-18  Bruno Haible  <bruno@clisp.org>
42079
42080         * lib/fatal-signal.c (fatal_signals): Make non-const.
42081         (init_fatal_signals): New function.
42082         (uninstall_handlers, install_handlers): Ignore signals that were set to
42083         SIG_IGN.
42084         (at_fatal_signal): Call init_fatal_signals.
42085         (init_fatal_signal_set): Likewise. Ignore signals that were set to
42086         SIG_IGN.
42087         Reported by Paul Eggert.
42088
42089 2004-12-18  Bruno Haible  <bruno@clisp.org>
42090
42091         * doc/alloca.texi: New file.
42092         * doc/alloca-opt.texi: New file.
42093
42094 2004-12-17  Jim Meyering  <jim@meyering.net>
42095
42096         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
42097         Otherwise, install-sh could exit with improper exit status when
42098         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
42099
42100 2004-12-16  Simon Josefsson  <jas@extundo.com>
42101
42102         * tests/test-base64.c: Add license.
42103
42104 2004-12-15  Stepan Kasal  <address@hidden>
42105
42106         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
42107
42108 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
42109
42110         * modules/getcwd (Files): Add m4/d-ino.m4.
42111         Suggested by Mark D. Baushke.
42112
42113 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
42114
42115         * lib/getdate.y (textint): New member "negative".
42116         (time_zone_hhmm): New function.
42117         Expect 14 shift-reduce conflicts, not 13.
42118         (o_colon_minutes): New rule.
42119         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
42120         (yylex): Set the "negative" member of signed numbers.
42121
42122 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
42123
42124         * doc/getdate.texi (Time of day items, Time zone items):
42125         Describe new formats +00:00, UTC+00:00.
42126
42127 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42128
42129         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
42130         spurious "-l"s.  Problem reported by Stepan Kasal.
42131
42132 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
42133
42134         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
42135         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
42136
42137 2004-12-04  Simon Josefsson  <jas@extundo.com>
42138
42139         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
42140         Vandoorselaere <yoann@prelude-ids.org>.
42141
42142 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42143
42144         Changes imported from coreutils.
42145         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
42146         exist.
42147         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
42148
42149 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42150
42151         Changes imported from coreutils.
42152         * lib/hard-locale.c: Assume <locale.h> exists.
42153         Include "strdup.h".
42154         (GLIBC_VERSION): New macro.
42155         (hard_locale): Assume setlocale exists.
42156         Rewrite to avoid #ifdef.
42157         Use strdup rather than malloc + strcpy.
42158         * lib/human.c: Assume <locale.h> exists.
42159         (human_readable): Assume localeconv exists.
42160
42161 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42162
42163         * modules/hard-locale (Depends-on): Add strdup.
42164
42165 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42166
42167         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
42168         convert T2, not T.  (Imported from libc.)
42169
42170 2004-11-30  Simon Josefsson  <jas@extundo.com>
42171
42172         * modules/restrict (License): Change to LGPL.
42173
42174 2004-11-30  Simon Josefsson  <jas@extundo.com>
42175
42176         * m4/restrict.m4: Add copyright and copying conditions.
42177
42178 2004-11-30  Simon Josefsson  <jas@extundo.com>
42179
42180         * m4/base64.m4: New file.
42181
42182 2004-11-30  Simon Josefsson  <jas@extundo.com>
42183
42184         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
42185         base64.
42186
42187         * tests/test-base64.c: New file.
42188
42189         * modules/base64: New file.
42190
42191 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42192
42193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
42194         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
42195
42196         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
42197
42198 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42199
42200         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
42201         (__getcwd.c): Don't restore errno; glibc doesn't.
42202         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
42203         first, falling back to our code only if its results look suspicious.
42204         Ensure that the resulting buffer is only as large as necessary.
42205
42206         * lib/readutmp.c: Include readutmp.h first.
42207         Include <errno.h>, since readutmp.h no longer does that.
42208         * lib/readutmp.h: Don't include <errno.h>,
42209         <sys/param.h>, <time.h>; not needed to establish interface.
42210         (errno): Remove decl.
42211         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
42212         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
42213         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
42214
42215 2004-11-28  Simon Josefsson  <jas@extundo.com>
42216
42217         * lib/base64.h, base64.c: New file.
42218
42219 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
42220
42221         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
42222
42223 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
42224
42225         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
42226         (Depends-on): Remove pathmax, same.  Add mempcpy.
42227         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
42228         (Makefile.am): Append getcwd.h to lib_SOURCES.
42229         (Include): Add getcwd.h.
42230         (Maintainer): Change from Jim Meyering to "all, glibc",
42231         since getdate now uses intended-for-glibc code.
42232         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
42233         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
42234
42235 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42236
42237         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
42238         HP's ANSI C compiler.
42239         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
42240         Declaring int functions causes warnings on some modern systems and
42241         shouldn't be needed to compile on ancient ones.
42242         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
42243         defined.
42244
42245         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
42246         with the following changes.
42247         (__set_errno): Parenthesize properly.
42248         Include <stdbool.h>.
42249         (MIN, MAX, MATCHING_INO): New macros.
42250         (__getcwd): Define with prototype, not K&R form.
42251         Use heuristics to allocate default buffer on stack if possible.
42252         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
42253         behavior, and to avoid the PATH_MAX limit when computing
42254         ../../../../...
42255         Use MATCHING_INO to compare inode number to file.
42256         Check for arithmetic overflow in size calculations.
42257         Fix bug in reallocation of dot array that caused getcwd to fail
42258         on directories nested deeper than 75.
42259         Be more careful about saving errno on error.
42260         Do not use realloc; use only free+malloc, as this is a bit
42261         more flexible and avoids a needless copy operation.
42262         Do not inspect st_dev and st_ino for symbolic links; POSIX
42263         doesn't specify the latter.
42264         Check for closedir errors.
42265         Avoid needless casts.
42266         Use "#ifdef weak_alias" around weak_alias, to be like other
42267         glibc code.
42268         The following changes to getcwd.c have effect only when used in
42269         gnulib; they have no effect inside glibc proper.
42270         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
42271         as alloca isn't used.
42272         (alloca, __alloca): Likewise.
42273         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
42274         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42275         unconditionally, as gnulib assumes C89 or better.
42276         Do not include <sys/param.h>.
42277         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
42278         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
42279         better.
42280         (NULL) [!defined NULL]: Remove; we assume C89 or better.
42281         Include <dirent.h> in a way that is compatible with modern Autoconf.
42282         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
42283         New macros, if not already defined.
42284         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
42285         Use "_LIBC", not "defined _LIBC", for consistency.
42286         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
42287         a mempcpy module.
42288         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
42289         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
42290         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
42291         credit only to Jim Meyering and adjust the copyright dates.
42292         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
42293         <stdlib.h>, <unistd.h>, "pathmax.h".
42294         Instead, include "xgetcwd.h" (first) and "getcwd.h".
42295         (INITIAL_BUFFER_SIZE): Remove.
42296         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
42297
42298 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42299
42300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
42301         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
42302         Use the _ONCE methods, for efficiency.
42303         Check for fcntl.h.  In test program, include <errno.h>
42304         and <fcntl.h> if available.  Remove old K&R cruft from
42305         test program.  Check for common errors in GNU/Linux,
42306         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
42307         don't do AC_LIBOBJ, as that's getcwd.m4's job.
42308         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
42309         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
42310         name accordingly.
42311         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
42312         accommodate new getcwd.c.
42313         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
42314         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
42315         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
42316         that's all we need now.
42317
42318 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42319
42320         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
42321         argp-parse.c depends on getopt internals, that means we should
42322         always use our getopt, to be on the safe side.
42323         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
42324         order not to spoil the result of an eventual previous invocation
42325         of gl_GETOPT_SUBSTITUTE.
42326
42327 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42328
42329         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
42330         redefinition warnings. To avoid them, include the defines
42331         in `#if !defined __need_getopt ... #endif'. The only place
42332         where __getopt_argv_const is used is in definitions
42333         of getopt_long and getopt_long_only below, which are as well
42334         protected by `#ifndef __need_getopt'.
42335         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
42336         __need_getopt after including <stdio.h> and <unistd.h> These
42337         headers might have defined it.
42338
42339 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42340
42341         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
42342
42343 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42344
42345         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
42346         (futimens): New function, which uses futimes if available.
42347         (futimens, utimens): Support timespec==NULL, with same semantics
42348         as utime and utimens.
42349         * lib/utimens.h (futimens): New decl.
42350
42351 2004-11-23  Jim Meyering  <jim@meyering.net>
42352
42353         * lib/getopt_.h: Remove trailing blanks.
42354
42355 2004-11-23  Jim Meyering  <jim@meyering.net>
42356
42357         * lib/__fpending.c: Add comment.
42358
42359 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
42360
42361         * modules/canonicalize (Depends-on): Add xreadlink.
42362         Problem reported by James Youngman.
42363
42364 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42365
42366         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
42367         New macros.
42368         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
42369         optopt): Use them instead of invoking ## directly; otherwise, the
42370         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
42371
42372 2004-11-19  Bruno Haible  <bruno@clisp.org>
42373
42374         * lib/strtok_r.c: Move comments from here...
42375         * lib/strtok_r.h: ... to here.
42376
42377 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42378
42379         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
42380         implementations that mishandle size_t overflow.
42381
42382 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42383
42384         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
42385         might fail.  Problem reported by Yoann Vandoorselaere.
42386         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
42387         implementations that mishandle size_t overflow.
42388
42389 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42390
42391         * modules/canon-host (Depends-on): Add strdup.
42392
42393 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42394
42395         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
42396
42397 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42398
42399         * lib/canon-host.c: Include "strdup.h".
42400         (canon_host): Use getaddrinfo if available, so that IPv6 works.
42401         Use strdup instead of malloc/strcpy to duplicate strings.
42402
42403         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
42404         (human_space_before_unit): New constant.
42405         * lib/human.c (human_readable): Support it.
42406
42407         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
42408         (xgetcwd): Set errno correctly when failing.
42409         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
42410         the failure is actually due to a PATH_MAX problem.
42411
42412         Further getopt changes to make it more likely that glibc will
42413         buy the changes back.
42414         * lib/getopt.c (POSIXLY_CORRECT): New constant.
42415         (getopt): Use it, so to preserve glibc semantic
42416         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
42417         when compiling for libc.
42418         * lib/getopt_.h (__getopt_argv_const): Bring it back.
42419         (getopt_long, getopt_long_only): Use it.
42420
42421         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42422         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
42423         (getopt): Argv is now char * const *, as per standard.
42424         (_getopt_internal_r, _getopt_internal): Argv is now char **,
42425         not char *__getopt_argv_const *.
42426         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42427         _getopt_long_only_r): Likewise.
42428         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
42429         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42430         _getopt_long_r, _getopt_long_only_r): Likewise.
42431         * lib/getopt_.h (__getopt_argv_const): Remove.
42432         (getopt): Argv is now char * const *, as per standard.
42433
42434         * lib/getdate.y (tORDINAL): New token.
42435         (day, relunit): Allow it for relative times.
42436         (relative_time_table): Use tORDINAL for ordinals.
42437
42438 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42439
42440         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
42441         Document that "second" isn't allowed as an ordinal number.
42442
42443 2004-11-16  Jim Meyering  <jim@meyering.net>
42444
42445         * modules/closeout (Depends-on): Add fpending.
42446
42447 2004-11-15  Jim Meyering  <jim@meyering.net>
42448
42449         * lib/closeout.c: Include "__fpending.h" once again.
42450         Include <stdbool.h>.
42451         (close_stdout): Don't fail just because stdout was closed initially,
42452         since some programs don't write to stdout in the normal course of
42453         operation (other than --version and --help), and we don't want this
42454         function to make e.g. `touch file >&-' fail.
42455         But do fail if it was closed and someone has tried to write to it.
42456         E.g., `printf foo >&-' must fail.
42457
42458 2004-11-13  Jim Meyering  <jim@meyering.net>
42459
42460         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
42461
42462 2004-11-12  Simon Josefsson  <jas@extundo.com>
42463
42464         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
42465         small doc fix is still pending.
42466
42467 2004-11-11  Simon Josefsson  <jas@extundo.com>
42468
42469         * modules/strtok_r: New file.
42470
42471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42472         strtok_r.
42473
42474 2004-11-11  Simon Josefsson  <jas@extundo.com>
42475
42476         * m4/strtok_r.m4: New file.
42477
42478         * m4/getopt.m4: Replace opterr.
42479
42480 2004-11-11  Simon Josefsson  <jas@extundo.com>
42481
42482         * lib/strtok_r.h, strtok_r.c: New file.
42483
42484 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42485
42486         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
42487         of replacing opterr, getopt, etc.  This should handle the
42488         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
42489
42490 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42491
42492         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
42493         we can stop lying to compilers about the constness of argv when we
42494         are compiled outside glibc.
42495         (getopt, getopt_long, getopt_long_only): Use it.
42496         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42497         _getopt_internal, getopt): Likewise.
42498         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42499         _getopt_long_only_r): Likewise.
42500         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42501         _getopt_long_r, _getopt_long_only_r): Likewise.
42502
42503         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
42504         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
42505         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
42506         the other external symbols.
42507         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
42508         declaration, since the above renaming now works around collisions.
42509
42510 2004-11-11  Jim Meyering  <jim@meyering.net>
42511
42512         * lib/linebreak.c: Remove trailing blanks.
42513         * lib/alloca_.h: Likewise.
42514         * lib/acosl.c: Likewise.
42515         * lib/euidaccess.c: Likewise.
42516         * lib/allocsa.h: Likewise.
42517
42518 2004-11-10  Simon Josefsson  <jas@extundo.com>
42519
42520         * m4/getaddrinfo.m4: New file.
42521
42522 2004-11-10  Simon Josefsson  <jas@extundo.com>
42523
42524         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
42525
42526 2004-11-10  Simon Josefsson  <jas@extundo.com>
42527
42528         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42529         getaddrinfo.
42530
42531         * modules/getaddrinfo: New file.
42532
42533 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42534
42535         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
42536
42537 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42538
42539         * lib/mktime.c (SHR): New macro, which is a portable
42540         substitute for >> that should work even on Crays.
42541         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
42542         Problem reported by Mark D. Baushke in
42543         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
42544         * lib/getdate.y (SHR): Likewise.
42545         (tm_diff): Use it.
42546         * lib/strftime.c (SHR): Likewise.
42547         (tm_diff): Use it.
42548         * lib/quotearg.c (struct quoting_options): Use unsigned int for
42549         quote_these_too, so that right shifts are well defined.  All uses
42550         changed.
42551
42552 2004-11-10  Jim Meyering  <jim@meyering.net>
42553
42554         Ensure that no close failure goes unreported.
42555         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
42556         return early when it seems there's nothing to flush.
42557         Don't include __fpending.h.
42558
42559 2004-11-10  Jim Meyering  <jim@meyering.net>
42560
42561         * modules/closeout (Depends-on): Remove fpending.
42562
42563 2004-11-10  Jim Meyering  <jim@meyering.net>
42564
42565         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
42566
42567 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42568
42569         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
42570         gl_FUNC_STRFTIME.
42571         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
42572         and AC_REQUIRE when possible, to avoid duplicate checks.
42573         Check for <wchar.h>.
42574
42575 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42576
42577         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
42578
42579 2004-11-09  Bruno Haible  <bruno@clisp.org>
42580
42581         * m4/sockpfaf.m4: New file.
42582
42583 2004-11-05  Bruno Haible  <bruno@clisp.org>
42584
42585         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
42586         Reported by Mark D. Baushke <mdb@cvshome.org>.
42587
42588 2004-11-04  Bruno Haible  <bruno@clisp.org>
42589
42590         2004-09-11  Bruno Haible  <bruno@clisp.org>
42591                 * allocsa.valgrind: New file.
42592         2004-02-06  Bruno Haible  <bruno@clisp.org>
42593                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
42594                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
42595                 Reported by Christopher Seip <chris.seip@hp.com>.
42596
42597 2004-11-04  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/allocsa (Files): Add lib/allocsa.valgrind.
42600         (Makefile.am): Distribute it.
42601
42602 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
42605         with errno == ERANGE if the buffer is too small.
42606         Problem reported by Mark D. Baushke.
42607
42608 2004-11-03  Albert Chin  <china@thewrittenword.com>
42609             Paul Eggert  <eggert@cs.ucla.edu>
42610
42611         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
42612         equivalent, substitute $ac_type for equivalent type rather than
42613         blindly using uint32_t *always* which won't work if uint32_t is not
42614         available.  Define _UINT32_T to work around typedef of uint32_t if
42615         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
42616         2.5.1.
42617
42618 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42619
42620         * m4/jm-macros.m4: Sync from coreutils.
42621         (gl_MACROS): Check for mbrlen, for pathchk.
42622         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
42623
42624 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42625
42626         * lib/xreadlink.c (MAXSIZE): New macro.
42627         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
42628         size does not exceed MAXSIZE.  Avoid cast.
42629         As suggested by Mark D. Baushke in
42630         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
42631         if readlink fails with buffer size just under MAXSIZE, try again
42632         with MAXSIZE.
42633
42634 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42635
42636         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
42637
42638 2004-11-02  Derek R. Price  <derek@ximbiot.com>
42639         and  Paul Eggert  <eggert@cs.ucla.edu>
42640
42641         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
42642         (get_date): Overparenthesize to avoid GCC warning.
42643
42644 2004-11-02  Bruno Haible  <bruno@clisp.org>
42645
42646         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
42647         returns void.
42648
42649 2004-11-02  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
42652         function returns void.
42653
42654 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42655
42656         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
42657         fflush_unlocked, flockfile, funlockfile, funlockfile,
42658         fputs_unlocked, putc_unlocked.
42659
42660 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42661
42662         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42663         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
42664         already declared.
42665
42666 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42667
42668         * modules/getdate (Files): Add doc/getdate.texi.
42669         (Depends-on): Add setenv, xalloc.
42670
42671 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42672
42673         * lib/getdate.y: Add support for TZ="foo" within a date string.
42674         Fix some bugs near time_t boundaries.  Reject dates with
42675         out-of-range components, e.g., "Sept 31".
42676         Include <stdlib.h>, "setenv.h", "xalloc.h".
42677         (ISDIGIT_LOCALE): Remove; unused.
42678         Note that the TZ and time functions used here are not reentrant.
42679         (mktime_ok, get_tz): New functions.
42680         (TZBUFSIZE): New constant.
42681         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
42682         This requires that we sometimes generate our own TZ="XXX..." setting.
42683
42684 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
42685
42686         * doc/getdate.texi: New file, from coreutils with modifications for
42687         the new TZ parsing.
42688
42689 2004-10-27  Derek R. Price  <derek@ximbiot.com>
42690
42691         * lib/mktime.c (not_equal_tm): Remove redundant check.
42692
42693 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42694
42695         * modules/regex (lib_SOURCES): Add regex.c.
42696         Reported by James Youngman in
42697         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
42698
42699 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42700
42701         * lib/getdate.y: Use Bison 1.875 features, and some minor
42702         code cleanups.  This change does not affect semantics.
42703         Don't include <stdlib.h>; no longer needed.
42704         Don't include unlocked-io.h; only the "#if TEST" code uses
42705         stdio, and performance isn't crucial there.
42706         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
42707         Bison 1.875 features as described below.
42708         All uses of "PC." replaced by "pc->".
42709         (YYSTYPE): Add a forward declaration.
42710         (yylex, yyerror): Use full prototypes in forward decls.
42711         Use "%pure-parser" rather than obsolescent "%pure_parser".
42712         Use %parse-param and %lex-param instead of obsolescent
42713         YYPARSE_PARAM and YYLEX_PARAM.
42714         (meridian_table, month_and_day_table, time_units_table,
42715         relative_time_table, time_zone_table, military_table,
42716         lookup_zone, lookup_word, get_date):
42717         Use NULL instead of 0 where appropriate.
42718         (to_hour): Avoid abort (), to avoid a dependency on
42719         stdlib.h.
42720         (yyerror, yylex): Now accepts parser_control * arg.
42721         (main) [TEST]: Use '\0' rather than 0 for char.
42722
42723 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42724
42725         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
42726
42727 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
42728
42729         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
42730         It's now the caller's responsibility to handle the case where
42731         !HAVE_GETPAGESIZE && !defined getpagesize.
42732
42733         * lib/mktime.c (leapyear): Arg is long int, not int.
42734
42735 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
42736
42737         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
42738
42739 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42740
42741         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
42742         missing.  Problem reported by James Youngman.
42743
42744 2004-10-16  Simon Josefsson  <jas@extundo.com>
42745
42746         * gnulib-tool: Fix comments.  Fix parse problem.
42747         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
42748
42749 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
42750
42751         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
42752         implementation of getopt_long.  Problem reported by Alexander Taler in:
42753         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
42754
42755 2004-10-15  Bruno Haible  <bruno@clisp.org>
42756
42757         * gnulib-tool: Untabify. Initialize supplied_libname.
42758         (func_usage): More homogenous output.
42759         (func_modules_transitive_closure, func_modules_to_filelist,
42760         func_emit_lib_Makefile_am): New functions.
42761         (func_import): New function, extracted from big case statement. Use
42762         func_get_license, func_modules_transitive_closure,
42763         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
42764         opt_lgpl. Don't use test -a, as it's not portable.
42765         (func_create_testdir): Use func_modules_transitive_closure,
42766         func_modules_to_filelist, func_emit_lib_Makefile_am.
42767
42768 2004-10-15  Bruno Haible  <bruno@clisp.org>
42769
42770         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
42771
42772 2004-10-15  Bruno Haible  <bruno@clisp.org>
42773
42774         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
42775         the portions belonging to each module.
42776         Suggested by Derek Robert Price <derek@ximbiot.com>.
42777
42778 2004-10-12  Simon Josefsson  <jas@extundo.com>
42779
42780         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
42781         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
42782         to real functions.
42783
42784 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42785
42786         * modules/vsnprintf: New file.
42787
42788 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42789
42790         * m4/vsnprintf.m4: New file.
42791
42792 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42793
42794         * lib/vsnprintf.h: New file.
42795         * lib/vsnprintf.c: New file.
42796
42797 2004-10-11  Bruno Haible  <bruno@clisp.org>
42798
42799         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
42800         vsnprintf.
42801
42802 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42803
42804         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
42805
42806 2004-10-07  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
42809         fits into the provided buffer.
42810
42811 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
42812
42813         * lib/diacrit.c, diacrit.h: Add GPL notice.
42814
42815         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
42816         notice.
42817         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
42818         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
42819         This avoids a potential constant-folding bug.
42820
42821 2004-10-05  Bruno Haible  <bruno@clisp.org>
42822
42823         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
42824         for the declaration of strsep.
42825
42826 2004-10-05  Bruno Haible  <bruno@clisp.org>
42827
42828         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
42829
42830 2004-10-04  Simon Josefsson  <jas@extundo.com>
42831
42832         * modules/memmem: New file.
42833         * tests/test-memmem.c: New file.
42834         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
42835
42836 2004-10-04  Simon Josefsson  <jas@extundo.com>
42837
42838         * m4/memmem.m4: New file.
42839
42840 2004-10-04  Simon Josefsson  <jas@extundo.com>
42841
42842         * lib/memmem.h: New file.
42843         * lib/memmem.c: New file, taken from glibc.
42844
42845 2004-10-04  Simon Josefsson  <jas@extundo.com>
42846
42847         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
42848         '#ifdef USE_UNLOCKED_IO'.
42849
42850 2004-10-04  Simon Josefsson  <jas@extundo.com>
42851
42852         * config/srclist.txt: Add memmem from glibc.
42853
42854 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42855
42856         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
42857
42858         * modules/argmatch, modules/argp, modules/closeout, modules/error,
42859         modules/exclude, modules/getdate, modules/getline,
42860         modules/getndelim2, modules/getpass, modules/getpass-gnu,
42861         modules/getusershell, modules/linebuffer, modules/md5,
42862         modules/mountlist, modules/posixtm, modules/readtokens,
42863         modules/readutmp, modules/regex, modules/sha1,
42864         modules/version-etc, modules/yesno:
42865         Remove dependency on unlocked-io.
42866
42867 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42868
42869         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
42870
42871         * m4/unlocked-io.m4: Add copyright notice.
42872         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
42873
42874 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42875
42876         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
42877         * lib/xmalloc.c (xmemdup): Likewise.
42878         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
42879         XFREE): Remove these long-obsolescent macros.
42880         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
42881         * lib/xstrdup.c: Remove.
42882
42883         * lib/regex.c (re_comp): Cast gettext return value to char *,
42884         Problem reported by Martin Neitzel via Mark D. Baushke.
42885
42886 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
42887
42888         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
42889         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
42890         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
42891         regex.c, sha1.c, version-etc.c, yesno.c:
42892         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
42893         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
42894         the includer's responsibility.
42895
42896         Sync from coreutils.
42897
42898         * lib/modechange.c (mode_compile): Don't decrement a pointer that
42899         points to the start of a string, as the C Standard says the
42900         resulting behavior is undefined.
42901
42902         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
42903         simple -> simple_backups, numbered_existing ->
42904         numbered_existing_backups, numbered -> numbered_backups
42905         to avoid shadowing problems.  All uses changed.
42906         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
42907         * lib/backupfile.c (check_extension, numbered_backup):
42908         Rename locals to avoid shadowing 'basename'.
42909         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
42910         once.
42911
42912         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
42913         * lib/.cvsignore: Add getopt.h.
42914
42915 2004-10-04  Bruno Haible  <bruno@clisp.org>
42916
42917         * modules/README: New file.
42918         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
42919         not a module.
42920
42921 2004-10-02  Jim Meyering  <jim@meyering.net>
42922
42923         * lib/dirfd.h, getpagesize.h: Add copyright notice.
42924
42925 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42926
42927         * modules/strsep: New file.
42928
42929 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42930
42931         * m4/strsep.m4: New file.
42932
42933 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42934
42935         * lib/strsep.h: New file.
42936         * lib/strsep.c: New file.
42937
42938 2004-10-01  Simon Josefsson  <jas@extundo.com>
42939
42940         * lib/snprintf.c (snprintf): Handle size==0.
42941
42942 2004-10-01  Simon Josefsson  <jas@extundo.com>
42943             Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
42946         (snprintf): Declare 'args'.
42947
42948 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
42949
42950         * lib/snprintf.c: Remove comments as to why each header is needed.
42951
42952 2004-10-01  Bruno Haible  <bruno@clisp.org>
42953
42954         * MODULES.html.sh: Add strsep.
42955
42956 2004-09-30  Simon Josefsson  <jas@extundo.com>
42957
42958         * modules/snprintf: New file.
42959
42960 2004-09-30  Simon Josefsson  <jas@extundo.com>
42961
42962         * m4/snprintf.m4: New file.
42963
42964 2004-09-30  Simon Josefsson  <jas@extundo.com>
42965
42966         * lib/snprintf.h, lib/snprintf.c: New files.
42967
42968 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42969
42970         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
42971         (hol_entry_help): Never translate an empty string.
42972         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
42973         * lib/argp.h (OPTION_NO_TRANS): New option.
42974
42975 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42976
42977         * modules/argp (Maintainer): Replace Simon Josefsson
42978         by Sergey Poznyakoff.
42979
42980 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42981
42982         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
42983         changes merged back into glibc.
42984
42985 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
42986
42987         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
42988
42989 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
42990
42991         * lib/xvasprintf.c: Include xalloc.h.
42992         (xvasprintf): Use xalloc_die, not xmalloc_die.
42993
42994 2004-09-29  Bruno Haible  <bruno@clisp.org>
42995
42996         * modules/alloca-opt: New file, derived from modules/alloca.
42997         * modules/allocsa: Depend on alloca-opt instead of alloca.
42998         * modules/setenv: Likewise.
42999         * modules/vasnprintf: Likewise.
43000         * MODULES.html.sh: Add alloca-opt.
43001
43002 2004-09-28  Simon Josefsson  <jas@extundo.com>
43003
43004         * gnulib-tool: New parameter --lgpl, to asseert that modules are
43005         LGPL, and to replace license template from GPL to LGPL.
43006
43007 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43008
43009         * modules/dummy: Change license to LGPL.
43010
43011 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43012
43013         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
43014
43015 2004-09-24  Simon Josefsson  <jas@extundo.com>
43016
43017         * modules/minmax (License): Change from GPL to LGPL.
43018
43019 2004-09-23  Simon Josefsson  <jas@extundo.com>
43020
43021         * gnulib-tool (--import): Typo.
43022
43023 2004-09-23  Simon Josefsson  <jas@extundo.com>
43024
43025         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
43026
43027 2004-09-22  Bruno Haible  <bruno@clisp.org>
43028
43029         * modules/*: Add 'License' field.
43030         * gnulib-tool: Accept --extract-license option.
43031         (func_get_license): New function.
43032
43033 2004-09-21  Bruno Haible  <bruno@clisp.org>
43034
43035         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43036         Reported by Simon Josefsson.
43037
43038 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43039
43040         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
43041         gl_AC_TYPE_LONG_LONG.
43042
43043 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43044
43045         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
43046
43047 2004-09-18  Simon Josefsson  <jas@extundo.com>
43048         and  Paul Eggert  <eggert@cs.ucla.edu>
43049
43050         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
43051         calls with autoreconf.  Define GL_LIB.
43052
43053 2004-09-14  Karl Berry  <karl@gnu.org>
43054
43055         * config/srclist.txt: unsync setenv.c, sigh.
43056
43057 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43058
43059         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
43060         Problem reported by Bruno Haible in:
43061         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
43062
43063 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43064
43065         * config/srclist.txt: Comment out argp-pvh.c.
43066
43067 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
43068
43069         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
43070         in case some system header has #define'd it.  Problem reported by
43071         Soeren D. Schulze in
43072         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
43073
43074 2004-09-09  Karl Berry  <karl@gnu.org>
43075
43076         * regex.[ch]: delete from the root.  These were supposed to be
43077                 synced with emacs cvs, but this has not happened for about
43078                 a year, and anyway nothing else uses emacs regex.[ch].
43079                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
43080                 lib/regex[.ch] is untouched.
43081
43082 2004-09-09  Bruno Haible  <bruno@clisp.org>
43083
43084         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
43085
43086 2004-09-09  Bruno Haible  <bruno@clisp.org>
43087
43088         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
43089         modifications.
43090         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
43091
43092 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43093
43094         * modules/xvasprintf: New file.
43095         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
43096
43097 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43098
43099         * lib/xvasprintf.h: New file.
43100         * lib/xvasprintf.c: New file.
43101         * lib/xasprintf.c: New file.
43102
43103 2004-09-08  Bruno Haible  <bruno@clisp.org>
43104
43105         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
43106
43107 2004-09-08  Bruno Haible  <bruno@clisp.org>
43108
43109         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
43110         length is > INT_MAX.
43111         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
43112         more.
43113
43114 2004-09-08  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/stdint_.h: New file, taken from GNU clisp.
43117
43118 2004-09-08  Bruno Haible  <bruno@clisp.org>
43119             Oskar Liljeblad  <oskar@osk.mine.nu>
43120
43121         * modules/stdint: New file.
43122         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
43123
43124 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43125
43126         Import from coreutils.
43127         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
43128         strings on unbounded length.  alloca's performance benefits aren't
43129         that important here.
43130         (V_STRDUP): Remove.
43131         (parse_with_separator): New function, with most of the internals
43132         of the old parse_user_spec.  Allow user to omit both user and group,
43133         for compatibility with FreeBSD.
43134         Clone only the user name, not the entire spec.
43135         Do not set *uid, *gid unless entirely successful.
43136         Avoid memory leak in some failing cases.
43137         Fix regression for USER.GROUP reported by Dmitry V. Levin in
43138         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
43139         (parse_user_spec): Rewrite to use parse_with_separator.
43140
43141 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43142
43143         * modules/userspec: Don't depend on alloca.
43144
43145 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43146
43147         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
43148
43149 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43150
43151         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
43152         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
43153         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
43154
43155 2004-08-16  Simon Josefsson  <jas@extundo.com>
43156
43157         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
43158         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
43159         Add --dry-run for --import.
43160         Let user provided command line parameters override configure.ac
43161         settings.
43162
43163 2004-08-12  Simon Josefsson  <jas@extundo.com>
43164
43165         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
43166         as discussed with Paul Eggert in threads rooted at
43167         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
43168         and
43169         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
43170         Before, the test was empty, and relied on ELIDE_CODE in source
43171         code.)
43172         (gl_PREREQ_GETOPT): New macro.
43173         (gl_GETOPT): Use them.
43174
43175 2004-08-12  Simon Josefsson  <jas@extundo.com>
43176
43177         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
43178         * lib/getopt_.h: Renamed from getopt.h.
43179
43180 2004-08-12  Simon Josefsson  <jas@extundo.com>
43181
43182         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
43183         Change default library name from libfoo to libgnu.
43184         Now, if you have a configure.ac that says:
43185                 gl_SOURCE_BASE(gl)
43186                 gl_M4_BASE(gl/m4)
43187                 gl_MODULES(error getopt etcetera)
43188                 gl_INIT
43189         you can import all you need by running:
43190                 ../gnulib/gnulib-tool --import
43191
43192         * modules/getopt (Files): Rename getopt.h to getopt_.h.
43193         (Makefile.am): Rewrite, use logic from argz.
43194         (Include): Use <getopt.h> instead of "getopt.h".
43195
43196 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43197
43198         * modules/argp (Files): Add m4/unlocked-io.m4.
43199         (Depends-on): Add extensions.
43200
43201 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43202
43203         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
43204         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
43205         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
43206         Check for program_invocation_name, program_invocation_short_name,
43207         flockfile, funlockfile, features.h, _getopt_long_only_r.
43208
43209 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43210
43211         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
43212         its complicated substitute.
43213         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
43214         and program_invocation_name.
43215         (__argp_basename) [!_LIBC]: Remove; the only use was
43216         replaced by its body.
43217         (__argp_short_program_name): Change condition from
43218         !defined __argp_short_program_name to
43219         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
43220         to match argp-namefrob.h.
43221         (__argp_failure): Don't assume strerror_r returns char *.
43222         * lib/argp-parse.c (N_): Define unconditionally.
43223         (argp_default_options): Fill out initializers with 0 to avoid
43224         gcc warnings.
43225
43226 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43227
43228         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
43229         getopt1.c.
43230
43231 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43232
43233         Merge from coreutils.
43234
43235         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
43236
43237         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
43238         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
43239
43240 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43241
43242         Merge from coreutils.
43243
43244         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
43245         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
43246         for Reliant Unix 5.43.
43247
43248         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
43249         (union fooround): Use uintmax_t, not long int.
43250         The rest is a merge from libc:
43251         [defined _LIBC]: Include <shlib-compat.h>.
43252         (_obstack) [defined _LIBC]: Remove after 2.3.4.
43253
43254         * lib/settime.c (settime): Recode to avoid warning with
43255         Sun Forte C 6U2.
43256
43257         * lib/strverscmp.c: Convert to UTF-8.
43258
43259 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43260
43261         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
43262         m4/uintmax_t.m4.
43263
43264 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43265
43266         * modules/xalloc-die: New file.
43267         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
43268
43269         * modules/md5 (Files): Add m4/uint32_t.m4.
43270         * modules/sha1: Renamed from modules/sha.
43271         (Files):
43272         Rename lib/sha.h to lib/sha1.h.
43273         Rename lib/sha.c to lib/sha1.c.
43274         Rename m4/sha.m4 to m4/sha1.m4.
43275         (lib_SOURCES): Likewise.
43276         (configure.ac): Rename gl_SHA to gl_SHA1.
43277         (Include): sha.h -> sha1.h.
43278
43279 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43280
43281         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
43282         * m4/sha1.m4: Renamed from sha.m4.
43283         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
43284
43285 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43286
43287         * lib/obstack.h (obstack_empty_p):
43288         Don't assume that chunk->contents is suitably aligned.
43289         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
43290         Likewise. Problem reported by Benno in
43291         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
43292
43293         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
43294         readable.  This could be improved further but it'd take some work.
43295
43296 2004-08-08  Simon Josefsson  <jas@extundo.com>
43297
43298         * modules/xgethostname (Depends-on): Remove exit and error (not
43299         used).
43300
43301         * modules/getpass-gnu: Add getpass.h.
43302         (Depends-on): Add stdbool.
43303         * modules/getpass: Add getpass.h.
43304
43305 2004-08-08  Simon Josefsson  <jas@extundo.com>
43306
43307         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
43308         Check getpass declaration.
43309
43310 2004-08-08  Simon Josefsson  <jas@extundo.com>
43311
43312         * lib/xgethostname.c: Don't include error.h (not used).
43313
43314         * lib/getpass.h: Add.
43315         * lib/getpass.c: Include getpass.h first.
43316
43317 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
43318
43319         * lib/xalloc-die.c: New file.
43320         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
43321         All uses removed.
43322         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
43323         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
43324         xalloc-die.c.
43325         (_, N_, xalloc_die): Move to xalloc-die.c.
43326         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
43327         so that we needn't mess with xalloc_msg_memory_exhausted.
43328
43329         * lib/sha1.h: Renamed from sha.h.
43330         (SHA1_H): Renamed from _SHA_H.
43331         (sha1_ctx): Renamed from sha_ctx.
43332         (sha1_init_ctx): Renamed from sha_init_ctx.
43333         (sha1_process_block): Renamed from sha_process_block.
43334         (sha1_process_bytes): Renamed from sha_process_bytes.
43335         (sha1_finish_ctx): Renamed from sha_finish_ctx.
43336         (sha1_read_ctx): Renamed from sha_read_ctx.
43337         (sha1_stream): Renamed from sha_stream.
43338         (sha1_buffer): Renamed from sha_buffer.
43339         * lib/sha1.c: Likewise; renamed from sha.c.
43340         Do not include <sys/types.h>.
43341         Include <stddef.h> rather than <stdlib.h>.
43342
43343 2004-08-08  Bruno Haible  <bruno@clisp.org>
43344
43345         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
43346         FILESYSTEM_PREFIX_LEN.
43347         * lib/progreloc.c: Likewise.
43348         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
43349
43350 2004-08-06  Simon Josefsson  <jas@extundo.com>
43351
43352         * modules/progname (Depends-on): Don't depend on stdbool.
43353
43354 2004-08-06  Simon Josefsson  <jas@extundo.com>
43355
43356         * modules/getsubopt: New file.
43357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43358         getsubopt.
43359
43360 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43361
43362         More merge from coreutils.
43363
43364         * m4/utimens.m4, m4/utimecmp.m4: New files.
43365         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
43366         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
43367         prereq.m4, sha.m4: Import changes from coreutils.
43368
43369 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43370
43371         More merge from coreutils.
43372         * modules/raise, modules/readtokens0, modules/utimens:
43373         * modules/utimecmp, module/xnanosleep: New files.
43374         * modules/strftime: Add lib/strftime.h.
43375         Change include from <time.h> to "strftime.h".
43376         * modules/yesno: Add lib/yesno.h.
43377         * modules/backupfile: Remove lib/addext.c.
43378         * modules/euidaccess: Add stat-macros.h.
43379         * modules/canonicalize, modules/euidaccess,
43380         modules/filemode, modules/lchown, modules/makepath,
43381         modules/rmdir, modules/stat: Likewise.
43382
43383 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43384
43385         Merge from tar.
43386         * lib/argp-help.c (make_hol, hol_append): Don't assume that
43387         SIZE_MAX is a valid preprocessor constant.
43388         (__argp_basename): Change from "#ifndef _LIBC"
43389         to "#ifndef __argp_short_program_name", so that
43390         we don't compile these functions for tar.
43391
43392         More merges from coreutils.
43393         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
43394         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
43395         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
43396         * lib/addext.c: Remove; no longer needed.
43397         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
43398         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
43399         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
43400         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
43401         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
43402         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
43403         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
43404         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
43405         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
43406         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43407         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
43408         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
43409         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
43410         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
43411         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
43412         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
43413         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
43414         Import changes from coreutils.
43415
43416 2004-08-05  Simon Josefsson  <jas@extundo.com>
43417
43418         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
43419
43420 2004-08-05  Simon Josefsson  <jas@extundo.com>
43421
43422         * m4/getsubopt.m4: New file.
43423
43424 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43425
43426         Merge from coreutils.
43427
43428         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
43429         * m4/getcwd-path-max.m4: New files.
43430
43431         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
43432         FILESYSTEM_PREFIX_LEN ->
43433         FILE_SYSTEM_PREFIX_LEN.
43434         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
43435         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
43436         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
43437         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
43438
43439         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
43440         prerequisite modules now handle the DOS stuff.
43441         Don't check for unistd.h.
43442
43443 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43444
43445         Merge from coreutils.
43446
43447         * lib/.gdb-history: Remove; this doesn't belong here.
43448
43449         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
43450         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
43451         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
43452         * lib/getcwd.c: New files.
43453
43454         * lib/dirname.h: Include <stdbool.h>.
43455         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
43456         for consistency with POSIX terminology.  All uses changed.
43457         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
43458         (strip_trailing_slashes): Use bool for booleans.
43459         * lib/stripslash.c (strip_trailing_slashes): Likewise.
43460
43461         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
43462         sometimes returns a positive errno value even when it succeeds.
43463         (print_errno_message) [!LIBC]: Fall back on strerror if
43464         __strerror_r fails.
43465
43466         * lib/path-concat.c (mempcpy): Don't define if a system header defines
43467         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
43468         (longest_relative_suffix): New function.
43469         (path_concat): Use it.  Assume first argument is not NULL.
43470         Port to DOS.  Omit redundant separators.
43471         Report an error instead of returning NULL.
43472         Use mempcpy instead of memcpy.
43473         (xpath_concat): Remove: not declared or used.
43474
43475         * lib/same.h: Include <stdbool.h>
43476         (same_name): Return bool, not int.
43477         * lib/same.c (same_name): Likewise.
43478         (errno): Don't declare; we assume C89 or better now.
43479
43480         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
43481         if not already defined.
43482
43483         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
43484         * lib/dup-safer.c (errno): Likewise.
43485
43486 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43487
43488         Merge from coreutils.
43489         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
43490         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
43491         * modules/path-concat: Don't depend on strdup.
43492
43493 2004-08-03  Simon Josefsson  <jas@extundo.com>
43494
43495         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
43496         * lib/progname.h: Don't include stdbool.h.
43497
43498 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43499
43500         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
43501         * MODULES.html.sh (func_all_modules): Remove fatal.
43502
43503 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43504
43505         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
43506
43507 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43508
43509         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
43510         working.
43511
43512 2004-08-02  Simon Josefsson  <jas@extundo.com>
43513
43514         * lib/getsubopt.h: New file, with comments from Bruno Haible.
43515         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
43516         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
43517
43518 2004-08-01  Simon Josefsson  <jas@extundo.com>
43519
43520         * lib/xgetdomainname.c: Include stdlib.h, for free().
43521
43522 2004-07-19  Bruno Haible  <bruno@clisp.org>
43523
43524         * MODULES.html.sh (func_all_modules): Add dummy.
43525
43526 2004-07-16  Simon Josefsson  <jas@extundo.com>
43527
43528         * modules/dummy: New file.
43529
43530 2004-07-16  Simon Josefsson  <jas@extundo.com>
43531
43532         * lib/dummy.c: New file.
43533
43534 2004-07-16  Bruno Haible  <bruno@clisp.org>
43535
43536         * lib/backupfile.h: Add extern "C" for C++.
43537         * lib/closeout.h: Likewise.
43538         * lib/copy-file.h: Likewise.
43539         * lib/findprog.h: Likewise.
43540         * lib/full-write.h: Likewise.
43541         * lib/pathname.h: Likewise.
43542         * lib/progname.h: Likewise.
43543         * lib/stpcpy.h: Likewise.
43544         * lib/stpncpy.h: Likewise.
43545         * lib/strcase.h: Likewise.
43546         * lib/strstr.h: Likewise.
43547         * lib/xalloc.h: Likewise.
43548
43549         * lib/mbswidth.h: Add extern "C" for C++.
43550         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
43551
43552 2004-07-13  Robert Millan  <robertmh@gnu.org>
43553
43554         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
43555
43556 2004-07-09  Simon Josefsson  <jas@extundo.com>
43557
43558         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
43559         failed without this.)
43560
43561 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43562
43563         * modules/chown (Files): Add lib/fchown-stub.c, since
43564         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
43565
43566 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
43567
43568         * lib/fchown-stub.c: New file.
43569
43570 2004-06-24  Jim Meyering  <jim@meyering.net>
43571
43572         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
43573
43574 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43575
43576         * modules/argz: Omit "#include".
43577
43578         * MODULES.html.sh (func_all_modules): Add calloc, to match
43579         2004-06-01 addition of calloc module.
43580
43581 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         * m4/argz.m4: New file, which is autoupdated from libtool.
43584
43585 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43586
43587         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
43588         libtool.
43589
43590 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43591
43592         * config/srclist-update: Don't insist on "USA." before the
43593         close-comment, as libtool omits the period and puts the */ on a
43594         separate line.
43595         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
43596         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
43597
43598 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
43599
43600         * modules/argz: New file.
43601         * MODULES.html.sh (func_all_modules): Add argz.
43602
43603 2004-06-12  Jim Meyering  <jim@meyering.net>
43604         and  Paul Eggert  <eggert@cs.ucla.edu>
43605
43606         * modules/hash (Files): Add lib/xalloc.h.
43607         * modules/pipe (Depends-on): Add wait-process.
43608         * modules/stat (Depends-on): Add xalloc.
43609         * modules/userspec (Files): Add lib/userspec.h.
43610         * modules/xstrto
43611
43612         Upgrade from gettext-0.13.
43613         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
43614         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
43615         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
43616
43617 2004-06-10  Jim Meyering  <jim@meyering.net>
43618
43619         * lib/calloc.c: New file.
43620
43621 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
43622
43623         * lib/getdate.y (yylex): Allow space between sign and number.
43624         Problem reported by Dan Jacobson.
43625
43626 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
43627
43628         Merge from coreutils CVS.
43629
43630         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
43631         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
43632         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
43633         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
43634         xstrtol.m4: Fix copyright date and/or serial number.
43635
43636         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
43637         See if we need an fchown replacement.
43638         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
43639         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
43640         and use the replacement function if we detect either defect.
43641
43642         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
43643         gl_UTIMECMP.
43644
43645 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
43646         and  Jim Meyering  <jim@meyering.net>
43647
43648         Merge from coreutils CVS.
43649
43650         * lib/stat-macros.h: New file, with contents from file-type.h
43651         and coreutils' system.h.
43652         * lib/file-type.c: Include "stat-macros.h".
43653         * lib/file-type.h (file_type): Move all macro definitions to new file,
43654         stat-macros.h.
43655
43656         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
43657         Wrap old code with this conditional.
43658         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
43659         function that does not dereference symlinks.
43660         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
43661
43662         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
43663         dependency problems.
43664         (xreadlink): Accept new arg SIZE, for efficiency.
43665         All decls and uses changed.
43666         * lib/xreadlink.h: Include <stddef.h>, for size_t.
43667
43668         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
43669         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
43670
43671         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
43672         sysexits.h.
43673
43674 2004-06-01  Jim Meyering  <jim@meyering.net>
43675
43676         * m4/calloc.m4: New file.
43677
43678 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
43679
43680         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
43681         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
43682         Also, fix a typo in a diagnostic.
43683
43684 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
43685
43686         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
43687         or AC_FUNC_REALLOC.
43688
43689 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
43690
43691         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
43692         macros to be defined.
43693         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
43694         the allocator returns NULL because the requested size is zero.
43695
43696 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43697
43698         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
43699         var.  Add comment explaining why libc still defines it.  This
43700         merges the following patch from glibc:
43701         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
43702
43703 2004-05-20  Andreas Schwab  <schwab@suse.de>
43704
43705         * m4/free.m4: Replace free if it not known to work, not the other
43706         way round.
43707
43708 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43709
43710         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
43711         present in glibc since revision 1.1 of this file.
43712         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
43713         obstack_alignment_mask, obstack_alloc, obstack_base,
43714         obstack_blank, obstack_blank_fast, obstack_chunk_size,
43715         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
43716         obstack_grow0, obstack_init, obstack_int_grow,
43717         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
43718         obstack_next_free, obstack_object_size, obstack_ptr_grow,
43719         obstack_ptr_grow_fast, obstack_room): Remove declarations of
43720         nonexistent functions.
43721
43722 2004-05-18  Karl Berry  <karl@gnu.org>
43723
43724         * config/srclist.txt: break link for vasnprintf.c.
43725
43726 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43727
43728         Port obstack to the AS/400, where pointers are 16 bytes wide and
43729         you cannot cast an integer to a valid pointer.  This patch is
43730         currently waiting to be integrated into glibc; see
43731         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
43732
43733         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
43734         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
43735         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
43736         (struct obstack): temp member is now a union of a pointer and
43737         an integer, instead of an integer.  All integer uses changed.
43738         This does not affect the physical layout of struct obstack,
43739         except on hosts (like the AS/400) where the size or alignment of
43740         void * is greater than that of ptrdiff_t.
43741         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
43742         __STDC__)]: Store temporary in pointer member of union, not
43743         integer member.
43744         * lib/obstack.c: Include <stddef.h>, for offsetof.
43745         (struct fooalign): Remove; it doesn't need a name.
43746         (union fooround): Change double to long double, and add void *.
43747         (DEFAULT_ALIGNMENT): Use offsetof to compute.
43748         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
43749         not a macro.  Hence the values are always int; so remove all
43750         casts-to-int in uses.
43751
43752 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
43753
43754         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
43755         we can get this patch merged into glibc.
43756
43757 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43758             Paul Eggert  <eggert@cs.ucla.edu>
43759
43760         * m4/argp: Depend on alloca.
43761
43762 2004-05-17  Derek R. Price  <derek@ximbiot.com>
43763             Paul Eggert  <eggert@cs.ucla.edu>
43764
43765         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
43766         freecoding.
43767
43768 2004-05-17  Bruno Haible  <bruno@clisp.org>
43769
43770         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
43771         precision that consists of a '.' followed by an empty digit string.
43772         Patch by Tor Lillqvist <tml@iki.fi>.
43773
43774 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43775
43776         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
43777         for backward compatibility with older code.  We need our own
43778         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
43779         it under some other name, and our alloca.h will define it.
43780
43781 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
43782             Derek Price  <derek@ximbiot.com>
43783
43784         * lib/alloca.c: Include <alloca.h>, to get our interface.
43785         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
43786         include <alloca.h> first.  Use C89 prototype for alloca; this
43787         requires including <stddef.h> for size_t.  Use extern "C" if C++.
43788         Use #elif for simplicity, since we can assume C89 now.
43789         Don't try to source the system alloca.h since it will not be found
43790         and to prevent recursively including its replacement.
43791         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
43792         * lib/regex.c: Likewise.
43793
43794 2004-05-16  Derek Price  <derek@ximbiot.com>
43795             Paul Eggert  <eggert@cs.ucla.edu>
43796
43797         getline cleanup.  This changes the getndelim2 API: both order of
43798         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
43799         no delimiter).
43800
43801         * lib/getline.c: Don't include stddef.h or stdio.h, since our
43802         interface does that.
43803         (getline): Always use getdelim, so that we don't have two
43804         copies of this code.
43805         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
43806         if available.
43807         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
43808         (GETNDELIM2_MAXIMUM): New macro.
43809         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
43810         instead of the old practice of delim2==0.  All callers changed.
43811         Return -1 on overflow, instead of returning junk.
43812         Do not set *linesize unless allocation succeeds.
43813         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
43814         that we include sys/types.h.
43815         * lib/getnline.h: Likewise.
43816         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
43817         (getndelim2): Reorder arguments.
43818         * lib/getnline.c (getnline, getndelim):
43819         Don't discard the NMAX argument.
43820         (getnline): Invoke getndelim, to avoid code duplication.
43821         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
43822         of (size_t) -1 by callers of the getnline family.
43823
43824 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43825
43826         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
43827         Check for gettimeofday.
43828         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
43829         Check for settimeofday, stime.
43830
43831 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43832
43833         * lib/nanosleep.c (suspended): Change its type from int to
43834         sig_atomic_t volatile.
43835         (first_call): Make it private to rpl_nanosleep, and have it
43836         be zero initially as that's a bit faster.
43837         (my_usleep): Round up fractional times instead of truncating them,
43838         as this is the usual meaning for 'sleep'.
43839
43840         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
43841         doesn't work.
43842         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
43843         (ENOSYS): Define if not defined.
43844         (settime): Fall back on stime if it exists and settimeofday fails.
43845         But don't bother with fallbacks if a method fails with errno == EPERM.
43846
43847 2004-05-11  Jim Meyering  <jim@meyering.net>
43848
43849         Prior to this change, the save_cwd caller required read access to the
43850         current directory on most systems (ones with the fchdir function).
43851
43852         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
43853         fails, try write-only, and finally, resort to using xgetcwd.
43854
43855 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43856
43857         * lib/obstack.c, obstack.h: Import changes from libc.
43858
43859 2004-04-28  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
43862         also implicitly appends .exe to executables.
43863         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
43864         accepts Windows pathnames.
43865         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43866         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43867         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
43868         Treat Cygwin like Windows, since it now accepts Windows pathnames.
43869         Reported by Derek Robert Price <derek@ximbiot.com>.
43870
43871 2004-04-21  Karl Berry  <karl@gnu.org>
43872
43873         * config/srclist.txt (localcharset.c): break sync.
43874
43875 2004-04-20  Paul Eggert  <eggert@twinsun.com>
43876
43877         * m4/host-os.m4: Add a copyright notice.
43878
43879 2004-04-20  Jim Meyering  <jim@meyering.net>
43880
43881         Change UTILS_ to gl_ in AC_DEFINE'd names.
43882         Change utils_- and jm_-prefixed variables, too.
43883         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
43884         UTILS_FUNC_MKDIR_TRAILING_SLASH.
43885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
43886
43887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
43888         Don't emit trailing blanks.
43889         Also rename jm_-prefixed variables to have gl_ prefix.
43890
43891         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
43892         Also rename jm_-prefixed variables to have gl_ prefix.
43893
43894         * m4/jm-macros.m4: Reflect the renamings.
43895         * m4/prereq.m4: Likewise.
43896
43897 2004-04-20  Jim Meyering  <jim@meyering.net>
43898
43899         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
43900         memory.
43901
43902 2004-04-20  Jim Meyering  <jim@meyering.net>
43903             Bruno Haible  <bruno@clisp.org>
43904
43905         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
43906         memory when realloc fails.
43907
43908 2004-04-19  Jim Meyering  <jim@meyering.net>
43909
43910         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
43911         now that readutmp.c may call `free (0)'.
43912
43913 2004-04-19  Bruno Haible  <bruno@clisp.org>
43914
43915         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
43916         * m4/inttypes_h.m4: Likewise.
43917         * m4/stdint_h.m4: Likewise.
43918         * m4/intmax_t.m4: Likewise.
43919         * m4/uintmax_t.m4: Likewise.
43920
43921 2004-04-18  Jim Meyering  <jim@meyering.net>
43922
43923         * m4/prereq.m4: Don't forbid jm_ prefix.
43924
43925         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
43926         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
43927         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
43928         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
43929         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
43930         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
43931         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
43932         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
43933         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
43934         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
43935         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
43936         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
43937         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
43938         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
43939         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
43940         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
43941         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
43942         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
43943         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
43944
43945 2004-04-18  Jim Meyering  <jim@meyering.net>
43946
43947         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
43948         failure, don't leak memory and do call END_UTMP_ENT.
43949
43950 2004-04-16  Jim Meyering  <jim@meyering.net>
43951
43952         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
43953         coreutils' stat program.
43954         (gl_PREREQ): Don't require jm_PREREQ_STAT.
43955
43956 2004-04-11  Paul Eggert  <eggert@twinsun.com>
43957
43958         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
43959         C89.
43960         (CHAR_BIT): Remove, since we assume C89.
43961         Include <stdint.h> if available, as per current Autoconf CVS advice.
43962
43963 2004-03-31  Jim Meyering  <jim@meyering.net>
43964
43965         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
43966         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
43967         * m4/xalloc.m4: Likewise.
43968
43969 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43970
43971         Merge from coreutils.
43972
43973         * m4/inttostr.m4: New file.
43974         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
43975         Require AM_STDBOOL_H and gl_TIMESPEC instead.
43976         Require gl_CLOCK_TIME.
43977         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
43978
43979 2004-03-30  Paul Eggert  <eggert@twinsun.com>
43980
43981         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
43982         not bool, to be more consistent with Unix conventions.
43983         Suggested by Bruno Haible.
43984
43985         Merge from coreutils.
43986
43987         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
43988         * lib/umaxtostr.c: New files.
43989
43990         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
43991         the usual <time.h> dance.
43992         (get_date): Change signature to support fractional time stamps.
43993         All callers changed.
43994         * lib/getdate.y: Include "getdate.h" first, as we can now
43995         assume C89 and don't need to worry about 'const'.
43996         Similarly, include "unlocked-io.h" near start, not in middle.
43997         Include <limits.h>.
43998         (textint.value): Use long int rather than int.
43999         (textint.digits): Use size_t rather than int.
44000         (BILLION, LOG10_BILLION): New constants.
44001         (parser_control): New member rel_ns.  Members day_ordinal,
44002         time_zone, month, day, hour, minutes, rel_year, rel_month,
44003         rel_day, rel_hour, rel_minutes, rel_seconds
44004         are now long int, not int.  Member seconds is now struct timespec,
44005         not int.  New member timespec_seen.  Members dates_seen, days_seen,
44006         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
44007         not int.
44008         (%union.intval): Now long int, not int.
44009         New member timespec.
44010         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
44011         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
44012         (spec): Now is a timespec or an item list.
44013         (timespec, items): New nonterminals.
44014         (time, rel, relunit, number, get_date):
44015         Add support for fractional seconds.
44016         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
44017         (gmtime, localtime, mktime): Remove decls; not needed with C89.
44018         (to_hour): First arg is now long int, not int.
44019         (to_year): Returns long int, not int.
44020         Don't treat year -70 like 70.
44021         (tm_diff): Returns long int, not int.
44022         (lookup_word): Use bool instead of int when appropriate.
44023         (yylex): Use size_t for count, not int.
44024         Detect overflow when parsing large integer constants.
44025         Add support for fractions.
44026         (get_date): Make pointers 'const' if possible.
44027         Use more-portable code to detect integer overflow.
44028         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
44029         Don't use ctime; it's not reliable if the year has >4 digits.
44030
44031         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
44032         This is for compatibility with BSD.
44033
44034         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
44035         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
44036         From coreutils' system.h.
44037
44038         * lib/userspec.c: Don't include "posixver.h".
44039         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
44040         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
44041         compatible extension.  Simplify code by removing a boolean int
44042         that was always nonzero if a string was nonnull.
44043
44044 2004-03-30  Jim Meyering  <jim@meyering.net>
44045
44046         Merge from coreutils.
44047
44048         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
44049         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
44050         on some systems one must include <grp.h> before it.
44051         Reported by Christian Krackowizer.
44052
44053 2004-03-30  Jim Meyering  <jim@meyering.net>
44054
44055         Merge from coreutils.
44056
44057         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
44058
44059         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
44060         an empty input stream.
44061
44062         * lib/readtokens.c: Include <stdbool.h>.
44063         (readtoken): Use `size_t' rather than int/long.
44064         All callers adjusted.
44065         Use `bool' rather than `int' where appropriate.
44066         Use memset rather than an explicit loop.
44067         Use x2nrealloc rather than xrealloc.
44068         Allow the use of `\0' as a delimiter.
44069         (readtokens): Likewise.
44070         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
44071
44072 2004-03-30  Jim Meyering  <jim@meyering.net>
44073
44074         * m4/realloc.m4: Remove file, since now it does no more than
44075         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
44076         the `configure.ac' section of module/realloc.
44077         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
44078
44079 2004-03-30  Bruno Haible  <bruno@clisp.org>
44080
44081         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
44082         nonnull.
44083
44084 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44085
44086         Merge changes to getloadavg.c from coreutils and Emacs.
44087
44088         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
44089         Define to an expression, not to the empty string.
44090         Include cloexec.h and xalloc.h.
44091         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
44092         Use set_cloexec_flag rather than rolling our own.
44093         * lib/cloexec.c, lib/cloexec.h: New files.
44094
44095 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44096
44097         * m4/cloexec.m4: New file.
44098
44099 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44100
44101         * lib/getopt.h: Sync with libc CVS.
44102
44103 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44104             Bruno Haible  <bruno@clisp.org>
44105
44106         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
44107         mbswidth.
44108
44109 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44110             Bruno Haible  <bruno@clisp.org>
44111
44112         * lib/mbswidth.h: Include <wchar.h> only if
44113         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
44114         <wchar.h>.
44115         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
44116
44117 2004-03-09  Paul Eggert  <eggert@twinsun.com>
44118
44119         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
44120         Sync with libc CVS.
44121         * lib/getopt_int.h: New file, also synced from libc.
44122
44123 2004-03-09  Paul Eggert  <eggert@twinsun.com>
44124
44125         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
44126         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
44127         Bring back getopt.c, getopt.h, getopt1.c.
44128
44129 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44130
44131         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
44132         All uses changed.  Check for sa_sigaction member; this fixes
44133         a bug first reported by Jason Andrade in
44134         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44135
44136 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44137
44138         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
44139         '#if' expressions.  Unlike the code it replaces, it does not
44140         depend on (defined _SC_PAGESIZE).  However, it does depend on
44141         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
44142         first reported by Jason Andrade in
44143         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44144
44145 2004-02-25  Simon Josefsson  <jas@extundo.com>
44146
44147         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
44148
44149 2004-02-25  Simon Josefsson  <jas@extundo.com>
44150
44151         * lib/strdup.h: New file.
44152         * lib/strdup.c: Include it.
44153         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
44154         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
44155
44156 2004-02-23  Karl Berry  <karl@gnu.org>
44157
44158         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
44159         (from fencepost.gnu.org:/gd/gnuorg).
44160
44161 2004-02-23  Karl Berry  <karl@gnu.org>
44162
44163         * config/srclistvars.sh (GNUORG) [karl]: redefine.
44164         * config/srclist.txt: add maintain/standards documents.
44165
44166 2004-02-18  Bruno Haible  <bruno@clisp.org>
44167
44168         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
44169         Reported by Derek Robert Price <derek@ximbiot.com>.
44170
44171 2004-02-16  Karl Berry  <karl@gnu.org>
44172
44173         * config/mkinstalldirs, install-sh: update from automake.
44174
44175 2004-02-06  Karl Berry  <karl@gnu.org>
44176
44177         * m4/po.m4: update from gettext 0.14.1.
44178
44179 2004-02-06  Karl Berry  <karl@gnu.org>
44180
44181         * lib/config.charset: update from gettext 0.14.1.
44182
44183 2004-02-05  Paul Eggert  <eggert@twinsun.com>
44184
44185         Add comments and code, prompted by suggestions from Bruno Haible
44186         for sh-quote.
44187         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
44188         describing the enum quoting_style values.
44189         * lib/quotearg.c (quotearg_alloc): New function.
44190         (quotearg_buffer_restyled): Treat lone { and } as special.
44191         Treat = as special.  Work around bug with older shells
44192         that "see" a '\' that is really the 2nd byte of a multibyte char.
44193         Quote empty string with shell_quoting_style.
44194
44195 2004-02-03  Bruno Haible  <bruno@clisp.org>
44196
44197         * m4/pipe.m4: New file, from GNU gettext.
44198
44199 2004-02-03  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/pipe.h: New file, from GNU gettext.
44202         * lib/pipe.c: New file, from GNU gettext.
44203
44204 2004-01-27  Bruno Haible  <bruno@clisp.org>
44205
44206         * m4/execute.m4: New file, from GNU gettext.
44207
44208 2004-01-27  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/execute.h: New file, from GNU gettext.
44211         * lib/execute.c: New file, from GNU gettext.
44212         * lib/w32spawn.h: New file, from GNU gettext.
44213
44214 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44215
44216         Merge from diffutils.
44217
44218         * lib/file-type.c (file_type): Add typed memory objects.
44219         * lib/file-type.h (S_TYPEISTMO): New macro.
44220
44221         * lib/c-stack.h (c_stack_action): Remove argv argument.
44222         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
44223         (die): Don't calculate message unless segv_action returns.
44224         (get_stack_location, min_address_from_argv, max_address_from_argv,
44225         volatile stack_base, volatile_stack_size): Remove.
44226         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
44227         that every segmentation violation is a stack overflow.  (Ouch!)
44228         See Debian bug 136249 (still outstanding) for more info about why
44229         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
44230
44231 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44232
44233         Exit-status fix from coreutils.
44234
44235         Use exit_failure consistently in place of EXIT_FAILURE,
44236         so that program exit statuses are consistent on failure.
44237
44238         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
44239         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
44240         * lib/argmatch.h: Comment fix to match the above.
44241         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
44242         Now a macro referring to exit_failure, instead of a separate
44243         variable.  Include "exitfail.h" to get it.
44244         * lib/xstrtol.h: Include "exitfail.h".
44245         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
44246
44247         * lib/long-options.c (parse_long_options): Use prototype
44248         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
44249         for clarity.
44250
44251 2004-01-21  Jim Meyering  <jim@meyering.net>
44252
44253         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
44254         so as not to conflict with a different-sized __mktime_internal
44255         function in GNU libc.
44256         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
44257         Problem building statically-linked `ls' reported by Michael Brunnbauer.
44258
44259 2004-01-20  Karl Berry  <karl@gnu.org>
44260
44261         * config/config.guess: update from config.
44262
44263         * config/srclistvars.sh: GNUWWWLICENSES for karl.
44264
44265 2004-01-20  Bruno Haible  <bruno@clisp.org>
44266
44267         Safer stack allocation.
44268         * lib/setenv.c: Include allocsa.h.
44269         (alloca): Remove fallback definition.
44270         (freea): Remove macro.
44271         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
44272         instead of freea.
44273
44274 2004-01-20  Bruno Haible  <bruno@clisp.org>
44275
44276         * m4/eealloc.m4: New file, from GNU gettext.
44277
44278 2004-01-20  Bruno Haible  <bruno@clisp.org>
44279
44280         * m4/allocsa.m4: New file, from GNU gettext.
44281
44282 2004-01-20  Bruno Haible  <bruno@clisp.org>
44283
44284         * lib/xallocsa.h: New file, from GNU gettext.
44285         * lib/xallocsa.c: New file, from GNU gettext.
44286
44287 2004-01-20  Bruno Haible  <bruno@clisp.org>
44288
44289         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
44290
44291 2004-01-20  Bruno Haible  <bruno@clisp.org>
44292
44293         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
44294         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
44295         specially.
44296
44297 2004-01-20  Bruno Haible  <bruno@clisp.org>
44298
44299         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
44300         patch.
44301
44302 2004-01-20  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
44305
44306 2004-01-20  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/eealloc.h: New file.
44309
44310 2004-01-20  Bruno Haible  <bruno@clisp.org>
44311
44312         * lib/binary-io.h: Avoid warnings on Cygwin.
44313
44314 2004-01-20  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/allocsa.h: New file, from GNU gettext.
44317         * lib/allocsa.c: New file, from GNU gettext.
44318
44319 2004-01-18  Karl Berry  <karl@gnu.org>
44320
44321         * doc/gpl.texi, doc/lgpl.texi: new files.
44322
44323 2004-01-18  Karl Berry  <karl@gnu.org>
44324
44325         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
44326         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
44327
44328 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44329
44330         Merge from coreutils.
44331
44332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
44333         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
44334         (gl_DEFAULT_POSIX2_VERSION): Move
44335         the documentation from 'configure' into 'config.hin',
44336         so that 'configure --help' isn't burdened by it and
44337         we don't have to worry about its formatting there.
44338         Reword the documentation so that it's more succinct
44339         and can be run together into a single paragraph.
44340         * m4/same.m4 (gl_SAME): Check for pathconf.
44341
44342 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44343
44344         Merge from coreutils.
44345
44346         * lib/posixver.c: Include posixver.h.
44347
44348         * lib/same.c: Include <stdbool.h>, <limits.h>.
44349         (_POSIX_NAME_MAX): Define if not defined.
44350         (MIN): New macro.
44351         (same_name): If file names are silently truncated, report
44352         that the file names are the same if they are the same after
44353         the silent truncation.
44354
44355         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
44356         conversion function.
44357         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
44358         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
44359         longer needed.
44360
44361 2004-01-15  Jim Meyering  <jim@meyering.net>
44362
44363         Merge from coreutils.
44364
44365         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
44366         if no library is required.
44367         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
44368         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
44369         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
44370         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
44371         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
44372         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
44373         value, $ac_cv_search_crypt, if it's "none required".
44374         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
44375         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
44376         not gl_FUNC_GETLOADAVG.
44377         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
44378         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
44379
44380 2004-01-15  Jim Meyering  <jim@meyering.net>
44381
44382         Merge from coreutils.
44383
44384         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
44385         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
44386         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
44387
44388         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
44389         optional configure-time default.
44390
44391         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44392
44393         * lib/xreadlink.c (xreadlink): Correct outdated comment.
44394
44395 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
44396
44397         Merge from coreutils.
44398
44399         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
44400         value, $ac_cv_search_nanosleep, if it's "none required".
44401
44402 2004-01-14  Paul Eggert  <eggert@twinsun.com>
44403
44404         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
44405         with like-named macro in fnmatch.c.
44406         (EXT): Use an internal constant instead.
44407
44408         Merge fnmatch patches from glibc.
44409         * lib/fnmatch.c (mbsinit): Remove define.
44410         Add libc_hidden_ver (__fnmatch, fnmatch).
44411         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
44412         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
44413
44414 2004-01-14  Karl Berry  <karl@gnu.org>
44415
44416         * config/install-sh: update from automake.
44417
44418 2004-01-13  Karl Berry  <karl@gnu.org>
44419
44420         * config/install-sh: update from automake.
44421
44422 2004-01-09  Karl Berry  <karl@gnu.org>
44423
44424         * config/install-sh: update from automake.
44425
44426 2004-01-05  Karl Berry  <karl@gnu.org>
44427
44428         * config/config.{sub,guess}: update from config.
44429
44430 2003-12-31  Karl Berry  <karl@gnu.org>
44431
44432         * config/depcomp: update from automake.
44433
44434 2003-12-14  Karl Berry  <karl@gnu.org>
44435
44436         * lib/config.charset: update from gettext-runtime.
44437
44438 2003-12-03  Paul Eggert  <eggert@twinsun.com>
44439
44440         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
44441         Bug reported by Alfred M. Szmidt.
44442
44443 2003-12-03  Bruno Haible  <bruno@clisp.org>
44444
44445         * m4/gettext.m4: Upgrade from gettext-0.13.
44446         * m4/po.m4: Upgrade from gettext-0.13.
44447         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
44448         * m4/intmax.m4: New file, from gettext-0.13.
44449         * m4/printf-posix.m4: New file, from gettext-0.13.
44450
44451 2003-11-29  Karl Berry  <karl@gnu.org>
44452
44453         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
44454
44455 2003-11-25  Paul Eggert  <eggert@twinsun.com>
44456             Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/printf-parse.h: Don't include sys/types.h.
44459         (ARG_NONE): New macro.
44460         (char_directive): Change type of *arg_index fields to size_t.
44461         * lib/printf-parse.c: Don't include sys/types.h.
44462         (SSIZE_MAX): Remove macro.
44463         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
44464         Remove unnecessary overflow check.
44465         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
44466         fields.
44467
44468 2003-11-25  Bruno Haible  <bruno@clisp.org>
44469
44470         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
44471
44472 2003-11-25  Bruno Haible  <bruno@clisp.org>
44473
44474         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
44475         gt_TYPE_SSIZE_T.
44476
44477 2003-11-24  Paul Eggert  <eggert@twinsun.com>
44478
44479         * modules/alloca: Remove dependency on xalloc.
44480
44481 2003-11-24  Paul Eggert  <eggert@twinsun.com>
44482
44483         * lib/alloca.c: Remove dependency on xalloc module.
44484         (xalloc_die): Remove.
44485         (memory_full) [!defined emacs]: New macro.
44486         [!defined emacs]: Don't include xalloc.h.
44487         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
44488         address arithmetic overflows.  Change datatypes a bit to avoid
44489         unnecessary casts.
44490
44491 2003-11-22  Jim Meyering  <jim@meyering.net>
44492
44493         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
44494         s/size/size_t/.
44495
44496 2003-11-21  Karl Berry  <karl@gnu.org>
44497
44498         * config/config.{sub,guess}: update from config.
44499
44500 2003-11-18  Karl Berry  <karl@gnu.org>
44501
44502         * config/config.{sub,guess}: update from config.
44503
44504         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
44505
44506 2003-11-17  Paul Eggert  <eggert@twinsun.com>
44507
44508         * README: Mention that S+T cannot overflow if S is the size of
44509         an existing object and T is sufficiently small.
44510
44511 2003-11-17  Jim Meyering  <jim@meyering.net>
44512
44513         On systems without utime and without a utimes function capable of
44514         dealing with a NULL struct utimbuf* argument, this utime replacement
44515         could -- in unusual circumstances -- leak a file descriptor.
44516         * lib/utime.c: Include <unistd.h> and <errno.h>.
44517         (utime_null): Be sure to close `fd' and to preserve errno.
44518         Reported by Geoff Collyer via Arnold Robbins.
44519
44520 2003-11-17  Bruno Haible  <bruno@clisp.org>
44521
44522         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
44523         (Depends-on): Add xsize.
44524
44525 2003-11-17  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
44528
44529 2003-11-17  Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/vasnprintf.c (alloca): Remove fallback definition.
44532         (freea): Remove definition.
44533         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
44534         Reported by Paul Eggert.
44535
44536 2003-11-16  Paul Eggert  <eggert@twinsun.com>
44537             Bruno Haible  <bruno@clisp.org>
44538
44539         Protect against address arithmetic overflow.
44540         * lib/printf-args.h: Include stddef.h.
44541         (arguments): Change type of field 'count' to size_t.
44542         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
44543         'unsigned int' where appropriate.
44544         * lib/printf-parse.h: Include sys/types.h.
44545         (char_directive): Change type of *arg_index fields to ssize_t.
44546         (char_directives): Change type of fields 'count', max_*_length to
44547         size_t.
44548         * lib/printf-parse.c: Include sys/types.h and xsize.h.
44549         (SSIZE_MAX): Define fallback value.
44550         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
44551         instead of 'int' where appropriate. Check a_allocated, d_allocated
44552         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
44553         * lib/vasnprintf.c: Include xsize.h.
44554         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
44555         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
44556         overflow. Avoid wraparound when converting a width or precision from
44557         decimal to binary.
44558
44559 2003-11-16  Bruno Haible  <bruno@clisp.org>
44560
44561         Update from GNU gettext.
44562         * lib/printf-parse.c: Generalize to it can be compiled for wide
44563         strings.
44564         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
44565         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
44566         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
44567         SNPRINTF): New macros.
44568         Don't include <alloca.h> if the file is used inside libintl.
44569         (local_wcslen): New function, for Solaris 2.5.1.
44570         (VASNPRINTF): Use it instead of wcslen.
44571
44572 2003-11-16  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/xsize.h (xmax): New function.
44575         (xsum, xsum3, xsum4): Declare as "pure" functions.
44576
44577 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44578
44579         * modules/xalloc (Files): Undo latest change, since xalloc.h
44580         no longer needs SIZE_MAX or PTRDIFF_MAX.
44581
44582 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44583
44584         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
44585         gl_PTRDIFF_MAX.
44586
44587 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44588
44589         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
44590         "return", to pacify some unknown compiler.  Problem reported
44591         by Joerg Schilling.
44592
44593 2003-11-12  Paul Eggert  <eggert@twinsun.com>
44594
44595         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
44596         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
44597         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
44598         heuristic is just as accurate as far as we know, and it removes a
44599         dependency on size_max.m4 and ptrdiff_max.m4.
44600
44601 2003-11-11  Bruno Haible  <bruno@clisp.org>
44602
44603         * modules/xsize (Files): Add m4/size_max.m4.
44604         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
44605
44606 2003-11-11  Bruno Haible  <bruno@clisp.org>
44607
44608         * m4/size_max.m4: New file.
44609         * m4/ptrdiff_max.m4: New file.
44610         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
44611         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
44612         (gl_XALLOC): Invoke it.
44613
44614 2003-11-11  Bruno Haible  <bruno@clisp.org>
44615
44616         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
44617         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
44618         defined.
44619
44620 2003-11-10  Paul Eggert  <eggert@twinsun.com>
44621
44622         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
44623         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
44624         rejected some allocations of exactly SIZE_MAX - 2 bytes.
44625         From Bruno Haible.
44626         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
44627         not (size_t) -1, since it's defined here.
44628
44629 2003-11-09  Karl Berry  <karl@gnu.org>
44630
44631         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
44632
44633 2003-11-06  Paul Eggert  <eggert@twinsun.com>
44634
44635         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
44636         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
44637         Reject sizes of exactly SIZE_MAX bytes.
44638         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
44639         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
44640
44641 2003-11-05  Bruno Haible  <bruno@clisp.org>
44642
44643         * lib/xsize.h: Include limits.h, to avoid a possible collision with
44644         SIZE_MAX defined in <limits.h> on Solaris.
44645
44646 2003-11-04  Jim Meyering  <jim@meyering.net>
44647
44648         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
44649         variable names, rather than @VAR@.
44650         * modules/poll: Likewise.
44651
44652 2003-11-04  Bruno Haible  <bruno@clisp.org>
44653
44654         * modules/xsize: New file.
44655         * modules/linebreak: Depend on xsize.
44656         * MODULES.html.sh (func_all_modules): Add xsize.
44657
44658 2003-11-04  Bruno Haible  <bruno@clisp.org>
44659
44660         * m4/xsize.m4: New file.
44661
44662 2003-11-04  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/xsize.h: New file.
44665         * lib/linebreak.c: Include xsize.h.
44666         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
44667         argument for overflow.
44668         Suggested by Paul Eggert.
44669
44670 2003-11-03  Karl Berry  <karl@gnu.org>
44671
44672         * config/config.{guess,sub}: update from config.
44673
44674 2003-11-03  Jim Meyering  <jim@meyering.net>
44675
44676         * modules/userspec (lib_SOURCES): Add userspec.h.
44677         (Include): Add "userspec.h".
44678         Improve description.
44679
44680 2003-11-03  Jim Meyering  <jim@meyering.net>
44681
44682         * lib/userspec.c: Include "userspec.h".
44683         * lib/userspec.h: New file.
44684
44685 2003-11-03  Bruno Haible  <bruno@clisp.org>
44686
44687         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
44688
44689 2003-11-03  Bruno Haible  <bruno@clisp.org>
44690
44691         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
44692         available, to avoid (extremely rare) race condition.
44693         Suggested by Paul Eggert.
44694
44695 2003-11-02  Karl Berry  <karl@gnu.org>
44696
44697         * config/srclist.txt (vasprintf.c): sync broken, sigh.
44698
44699 2003-10-31  Paul Eggert  <eggert@twinsun.com>
44700
44701         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
44702         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
44703         (read_filesystem_list): Set and use me_type_malloced.
44704         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
44705         whatever the type happens to be), for brevity and consistency.
44706         Check for size calculation overflow on Alphas running OSF/1.
44707
44708 2003-10-31  Jim Meyering  <jim@meyering.net>
44709
44710         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
44711
44712         * lib/linebuffer.c: Include <string.h> for declaration of memset.
44713
44714 2003-10-30  Paul Eggert  <eggert@twinsun.com>
44715             Bruno Haible  <bruno@clisp.org>
44716
44717         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
44718         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
44719
44720 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44721
44722         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
44723         netbsd*-gnu*.  Suggested by Robert Millan.
44724
44725 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44726
44727         * modules/group-member: Depend on stdbool.
44728
44729 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44730
44731         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
44732
44733 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44734
44735         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
44736         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
44737         after the 'gnu' in these cases.  This fixes some bugs in the
44738         previous change, and is based on suggestions by Robert Millan.
44739
44740 2003-10-29  Paul Eggert  <eggert@twinsun.com>
44741
44742         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
44743         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
44744         no longer needed.
44745         * lib/quotearg.c (quotearg_n_options): Use it.
44746         * lib/group-member.c: Include <stdbool.h>.
44747         (free_group_info): Arg is now const *; don't free arg.
44748         (get_group_info): Now returns bool and accepts struct group_info *,
44749         rather than returning a malloc'ed struct group_info *.
44750         All uses changed.  Check for overflow in internal size calculation.
44751
44752         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
44753         rather than xmalloc/xrealloc.
44754         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
44755         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
44756         conformance bug: the old code used a pointer after freeing the
44757         storage that it addressed.
44758         * lib/hash.c (hash_initialize): Simplify the code by using
44759         xalloc_oversized rather than doing it by hand.
44760         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
44761         the buffer preserved.  Use free and xmalloc instead.
44762         * lib/quotearg.c (quotearg_n_options): Likewise.
44763         Use a simpler test for size overflow.  Don't use xalloc_oversized
44764         because unsigned int might be wider than size_t (!); this suggests
44765         that we should switch from unsigned int to size_t for slot numbers.
44766
44767 2003-10-28  Paul Eggert  <eggert@twinsun.com>
44768
44769         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
44770         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
44771         NetBSD kernels.  Requested by Richard Stallman.
44772
44773 2003-10-27  Paul Eggert  <eggert@twinsun.com>
44774
44775         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
44776         to allocate the returned structure.  Do not allocate a subarray,
44777         as x2nrealloc will do that.
44778         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
44779         instead of xnrealloc.
44780         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
44781
44782 2003-10-27  Bruno Haible  <bruno@clisp.org>
44783
44784         * lib/stdbool_.h: Better support for BeOS.
44785
44786 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44787
44788         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
44789         now uses inline.
44790
44791 2003-10-26  Paul Eggert  <eggert@twinsun.com>
44792
44793         * lib/xalloc.h (xalloc_oversized): New static inline function, for
44794         callers that want to do their own size-overflow checking.  Include
44795         <stdbool.h>, since xalloc_oversized returns bool.
44796         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
44797         to use xalloc_oversized.
44798
44799         Add two functions x2realloc, x2nrealloc, for programs that grow
44800         arrays dynamically by doubling their sizes.
44801         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
44802         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
44803         New functions.
44804
44805         Port to C99 semantics for 'inline' of external functions.
44806         Bug reported by Bruno Haible.
44807         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
44808         with the old contents of xnmalloc.
44809         (xnmalloc, xmalloc): Use it.
44810         (xnrealloc_inline): New static inline function,
44811         with the old contents of xnrealloc.
44812         (xnrealloc, xrealloc): Use it.
44813
44814         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
44815         that.
44816
44817 2003-10-26  Karl Berry  <karl@gnu.org>
44818
44819         * config/srclist.txt (COPYING.DOC): no longer available from
44820         /gd/gnuorg; don't know where the ultimate source is.
44821
44822 2003-10-25  Paul Eggert  <eggert@twinsun.com>
44823
44824         Fix several address-calculation bugs in the hash modules,
44825         plus some minor code cleanup.
44826
44827         * lib/hash.h: Include <stdbool.h>, for bool.
44828         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
44829         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
44830         hash_get_n_entries, hash_get_max_bucket_length,
44831         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
44832         hash_rehash): Use size_t rather than unsigned.
44833         * lib/hash.c (struct hash_table, hash_get_n_buckets,
44834         hash_get_n_buckets_used, hash_get_n_entries,
44835         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
44836         hash_get_entries, hash_do_for_each, hash_string, is_prime,
44837         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
44838         Likewise.
44839         (SIZE_MAX): Define if not defined.
44840         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
44841         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
44842         hash_print):
44843         Use const * when possible.
44844         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
44845         (check_tuning): Fix bug: if tuning parameters were very close to
44846         0 or 1, rounding errors could have caused subscript violations.
44847         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
44848         (hash_initialize): Add 'fail:' label
44849         to free table and return NULL, and use it to simplify code.
44850         Use calloc rather than clearing the storage ourself.
44851         (hash_initialize, hash_rehash): Check for arithmetic overflow in
44852         buffer size calculations.
44853         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
44854         Include <stddef.h>, for size_t.
44855         * lib/hash-pjw.c (hash_pjw): Likewise.
44856         Switch to method described by Bruno Haible.
44857         Include <limits.h>, for CHAR_BIT.
44858         (SIZE_BITS): New macro.
44859
44860 2003-10-23  Paul Eggert  <eggert@twinsun.com>
44861
44862         * m4/getline.m4 (AM_FUNC_GETLINE):
44863         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
44864         hosts.  Problem reported by Derek Robert Price in
44865         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
44866         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
44867         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
44868
44869 2003-10-21  Paul Eggert  <eggert@twinsun.com>
44870
44871         * lib/getndelim2.c (getndelim2): When size calculation overflows,
44872         ceiling the allocation at NMAX bytes rather than silently
44873         discarding input bytes before NMAX is reached.  This makes
44874         a difference only if NMAX exceeds SIZE_MAX / 2.
44875
44876         * lib/obstack.c: Merge from glibc.
44877         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
44878         Add libc_hidden_def (_obstack_newchunk).
44879         (_obstack_free) [! defined _LIBC]: Remove.
44880         [defined _LIBC]: Make a strong alias from obstack_free, rather than
44881         a clone of the function body.
44882         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
44883         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
44884
44885         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
44886         glibc.
44887         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
44888         arg to memcpy.
44889
44890         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
44891         (obstack_ptr_grow_fast, obstack_int_grow_fast):
44892         Don't use lvalue casts, as GCC plans to remove support for them
44893         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
44894         was also present in the non-GCC version, indicating that this
44895         code had always been buggy and had never been widely used.
44896         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
44897         Use the fast variant of each macro, rather than copying the
44898         definiens of the fast variant; that way, we'll be more likely to
44899         catch future bugs in the fast variants.
44900
44901 2003-10-20  Bruno Haible  <bruno@clisp.org>
44902
44903         * modules/wait-process: New file.
44904         * MODULES.html.sh (func_all_modules): Add wait-process.
44905
44906 2003-10-20  Bruno Haible  <bruno@clisp.org>
44907
44908         * m4/wait-process.m4: New file.
44909
44910 2003-10-20  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/wait-process.h: New file, from GNU gettext.
44913         * lib/wait-process.c: New file, from GNU gettext.
44914
44915 2003-10-19  Jim Meyering  <jim@meyering.net>
44916
44917         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
44918         HPUX 10.20.
44919
44920 2003-10-18  Karl Berry  <karl@gnu.org>
44921
44922         * config/config.guess: update from config.
44923
44924 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44925
44926         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
44927         (getgroups): First arg is int, not size_t.
44928         Don't let 'free' mangle errno.
44929
44930 2003-10-16  Paul Eggert  <eggert@twinsun.com>
44931
44932         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
44933
44934 2003-10-16  Karl Berry  <karl@gnu.org>
44935
44936         * config/config.{guess,sub}: update from config.
44937
44938 2003-10-16  Jim Meyering  <jim@meyering.net>
44939
44940         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
44941         memcpy.
44942
44943 2003-10-15  Paul Eggert  <eggert@twinsun.com>
44944
44945         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
44946         (SIZE_MAX): Remove.
44947         (new_exclude, add_exclude_file): Initial size no longer needs to
44948         be a power of 2.
44949         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
44950         our own address arithmetic overflow checking.
44951
44952         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
44953         (fnmatch): Do not alloca more than 2000 wide characters;
44954         instead, use malloc for large buffers.
44955         Check for address arithmetic overflow, and return -1
44956         with errno set to ENOMEM in that case.
44957         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
44958         (NEW_PATTERN): Do not alloca more than 8000 bytes;
44959         instead, return -1.  Check for address arithmetic overflow.
44960
44961 2003-10-14  Paul Eggert  <eggert@twinsun.com>
44962
44963         Handle invalid suffixes and overflow independently, so that
44964         callers can treat them independently as needed.  Fix some bugs in
44965         suffix handling, e.g., "100k@" was not diagnosed as an invalid
44966         suffix for a human-readable blocksize.  The major caller-visible
44967         change is the addition of a new
44968         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
44969         that both overflow and suffix chars were found.
44970
44971         * lib/human.c (humblock): Don't check separately for invalid suffix
44972         char; that is xstrtoumax's job (now that its bug is fixed).
44973         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
44974         INTMAX_MAX]: New macros.
44975         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
44976         TYPE_MAXIMUM): New macros.
44977         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
44978         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
44979         if overflow occurs, as it's what __strtol does and it's more useful
44980         in practice.
44981         (__xstrtol): If __strtol reports some error other than ERANGE,
44982         reflect it to the caller as LONGINT_INVALID.  If it reports
44983         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
44984         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
44985         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
44986         value.
44987         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
44988         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
44989         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
44990         [defined UINTMAX_MAX]: New macros.
44991
44992 2003-10-14  Bruno Haible  <bruno@clisp.org>
44993
44994         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
44995
44996 2003-10-14  Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/sig_atomic_t: New file, from GNU gettext.
44999         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
45000
45001 2003-10-14  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
45004         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
45005         Also use volatile where needed.
45006
45007 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45008
45009         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
45010         Change maintainer from Bruno Haible to 'all'.
45011
45012 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45013
45014         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
45015
45016 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45017
45018         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
45019         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
45020         and define in terms of the other primitives.
45021         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
45022         (SIZE_MAX): Define if not already defined.
45023         (array_size_overflow): New function.
45024         (xalloc_die): Abort instead of exiting if 'error' returns.
45025         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
45026         (xmalloc, xrealloc): Use them.
45027         (xcalloc): Check for address arithmetic overflow.
45028         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
45029         a bit faster than strcpy.
45030
45031 2003-10-10  Simon Josefsson  <jas@extundo.com>
45032
45033         * modules/argp (Depends-on): Add restrict and strcase.
45034
45035 2003-10-10  Simon Josefsson  <jas@extundo.com>
45036
45037         * m4/argp.m4: Add AC_C_INLINE.
45038
45039 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45040
45041         Merge getpass from libc, plus a few fixes.
45042
45043         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
45044         Include <stdbool.h>.
45045         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
45046         __fsetlocking to empty.
45047         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
45048         do include <bits/libc-lock.h>.
45049         Do not include <fcntl.h>; not needed.
45050         [_LIBC]: Include <wchar.h>.
45051         (NOTCANCEL_MODE): New macro.
45052         (flockfile, funlockfile) [_LIBC]: New macros.
45053         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
45054         [!_LIBC]: New macros.
45055         (call_fclose): New function.
45056         (getpass): Use it.  Save tty stream separately; this simplifies the
45057         code and makes it more reliable if stdin happens to equal stdout.
45058         Invoke __fsetlocking on tty.
45059         Handle thread cancellation if needed.
45060         Namespace cleanup (use __tcgetattr, __getline).
45061         Use bool for Booleans.
45062         [USE_IN_LIBIO]: Handle wide streams.
45063         [!_LIBC]: Unconditionally do the fseek, since we don't know what
45064         stream might go where.
45065
45066         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
45067         doesn't have to include <stdio.h> before us.
45068         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
45069         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
45070         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
45071         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
45072         if not declared, so that we can use getpass.c code from libc without
45073         rewriting it.
45074         (flockfile, ftrylockfile, funlockfile): New macros.
45075
45076 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45077
45078         * modules/getpass: Depend on stdbool.
45079
45080 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45081
45082         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
45083
45084 2003-10-07  Karl Berry  <karl@gnu.org>
45085
45086         * config/config.{guess,sub}: update from config.
45087
45088 2003-10-06  Jim Meyering  <jim@meyering.net>
45089             Bruno Haible  <bruno@clisp.org>
45090
45091         This lets translators provide better translations for the
45092         "Written by ..." part of --version output.
45093         * lib/version-etc.h: Include stdarg.h.
45094         (version_etc_copyright): Declare as readonly.
45095         (version_etc): Make this function variadic with a NULL-terminated list
45096         of author name strings.
45097         (version_etc_va): New declaration.
45098         * lib/version-etc.c: Include stdarg.h, stdlib.h.
45099         (version_etc_copyright): Declare as readonly.
45100         (version_etc_va): New function. Provide a different translatable string
45101         for each possible number of authors < 10. Abbreviate when there are 10
45102         authors or more.
45103         (version_etc): Make this function variadic. Call version_etc_va.
45104         Suggestion from Gary V. Vaughan.
45105
45106         * lib/long-options.h (parse_long_options): Change prototype: the
45107         authors string is moved to the end and becomes variadic.
45108         * lib/long-options.c: Include stdarg.h.
45109         (parse_long_options): Make this function variadic, too.
45110         Call version_etc_va, not version_etc.
45111
45112 2003-10-06  Bruno Haible  <bruno@clisp.org>
45113
45114         * modules/version-etc-2: Remove file.
45115         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
45116
45117 2003-10-06  Bruno Haible  <bruno@clisp.org>
45118
45119         * modules/fatal-signal: New file.
45120         * MODULES.html.sh (func_all_modules): Add fatal-signal.
45121
45122 2003-10-06  Bruno Haible  <bruno@clisp.org>
45123
45124         * m4/fatal-signal.m4: New file.
45125         * m4/signalblocking.m4: New file, from GNU gettext.
45126
45127 2003-10-06  Bruno Haible  <bruno@clisp.org>
45128
45129         * lib/version-etc-2.h: Remove file.
45130         * lib/version-etc-2.c: Remove file.
45131
45132 2003-10-06  Bruno Haible  <bruno@clisp.org>
45133
45134         * lib/fatal-signal.h: New file, from GNU gettext.
45135         * lib/fatal-signal.c: New file, from GNU gettext.
45136
45137 2003-10-05  Paul Eggert  <eggert@twinsun.com>
45138
45139         * README: Rework advice for preventing empty .o files.
45140         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
45141         not <sys/types.h>.
45142
45143 2003-10-04  Karl Berry  <karl@gnu.org>
45144
45145         * lib/argp*: update from libc.
45146
45147 2003-10-04  Karl Berry  <karl@gnu.org>
45148
45149         * config/config.{guess,sub}: update from config.
45150
45151 2003-10-02  Bruno Haible  <bruno@clisp.org>
45152
45153         * modules/lchown (Include): Add lchown.h.
45154         * modules/time_r (Include): Use "..." syntax.
45155         * modules/xgetdomainname (Include): Add xgetdomainname.h.
45156
45157 2003-10-01  Simon Josefsson  <jas@extundo.com>
45158
45159         * MODULES.html.sh (func_all_modules): Move gethostname from section
45160         'based on' to section 'lacking' POSIX:2001.
45161
45162 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
45163
45164         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
45165         to output mode on the same stream.
45166
45167 2003-09-29  Paul Eggert  <eggert@twinsun.com>
45168
45169         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
45170         Fix arg typo in previous patch.
45171
45172 2003-09-28  Jim Meyering  <jim@meyering.net>
45173
45174         * lib/error.c: Correct cpp indentation.
45175
45176 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45177
45178         * modules/free: New file.
45179
45180 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45181
45182         * m4/free.m4: New file.
45183
45184 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45185
45186         * lib/minmax.h (MIN, MAX)
45187         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
45188         Omit the special code that used __typeof__, since we worry that
45189         it could be more trouble than it's worth.  See:
45190         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
45191         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
45192
45193         * lib/free.c: New file.
45194
45195 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
45196
45197         Trivial fixes to Makefile.am parts of module listings.
45198         * modules/strstr: Append strstr.h to lib_SOURCES.
45199         * modules/strcase: Likewise, for strcase.h.
45200
45201 2003-09-27  Karl Berry  <karl@gnu.org>
45202
45203         * config/mkinstalldirs: update from automake.
45204
45205 2003-09-26  Paul Eggert  <eggert@twinsun.com>
45206
45207         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
45208         (error_tail): Do not loop, reallocating temporary buffer, since
45209         the output cannot contain more wide characters than the input
45210         contains bytes, the size must be big enough already.  This avoids
45211         one potential size overflow calculation.  Check for size overflow
45212         when calculating temporary buffer size.  Free temporary buffer
45213         when done, if it was allocated with malloc; this plugs a memory
45214         leak.  Remove casts from void * to pointers, that are no longer
45215         needed now that we're assuming C89 or better.
45216
45217         Merge error changes from glibc.
45218
45219         * lib/error.c, error.h: Update copyright notice header to match glibc.
45220         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
45221         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
45222         Disable cancellation while printing error.
45223         * lib/error.h: Prepend __ to parameter names.
45224
45225 2003-09-26  Jim Meyering  <jim@meyering.net>
45226
45227         * lib/error.c (error_tail): Move some declarations
45228         into inner scope where the local variables are used.
45229
45230 2003-09-26  Bruno Haible  <bruno@clisp.org>
45231
45232         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
45233         stpncpy().
45234         Don't define stpncpy through config.h; it's now done through stpncpy.h.
45235
45236 2003-09-26  Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/stpncpy.h (gnu_stpncpy): New declaration.
45239         (stpncpy): Define as alias for gnu_stpncpy.
45240         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
45241
45242 2003-09-25  Simon Josefsson  <jas@extundo.com>
45243
45244         * lib/xgetdomainname.h: New file.
45245         * lib/xgetdomainname.c: New file.
45246
45247 2003-09-25  Simon Josefsson  <jas@extundo.com>
45248             Bruno Haible  <bruno@clisp.org>
45249
45250         * modules/getdomainname: New file.
45251         * modules/xgetdomainname: New file.
45252         * MODULES.html.sh (func_all_modules): Add getdomainname,
45253         xgetdomainname.
45254
45255 2003-09-25  Simon Josefsson  <jas@extundo.com>
45256             Bruno Haible  <bruno@clisp.org>
45257
45258         * m4/getdomainname.m4: New file.
45259
45260 2003-09-25  Simon Josefsson  <jas@extundo.com>
45261             Bruno Haible  <bruno@clisp.org>
45262
45263         * lib/getdomainname.h: New file.
45264         * lib/getdomainname.c: New file.
45265
45266 2003-09-25  Karl Berry  <karl@gnu.org>
45267
45268         * lib/argp-fmtstream.c, argp-help.c: update from libc.
45269
45270 2003-09-25  Karl Berry  <karl@gnu.org>
45271
45272         * config/install-sh: update from automake.
45273
45274 2003-09-25  Bruno Haible  <bruno@clisp.org>
45275
45276         * modules/version-etc-2: New file, from modules/version-etc with
45277         modifications.
45278         * MODULES.html.sh (func_all_modules): Add version-etc-2.
45279
45280 2003-09-25  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
45283         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
45284
45285 2003-09-24  Simon Josefsson  <jas@extundo.com>
45286
45287         * modules/xgethostname: Add xgethostname.h.
45288
45289 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45290
45291         * lib/linebuffer.c (freebuffer): Don't free the argument, just
45292         the buffer associated with the argument.  Bug reported by
45293         Simon Josefsson.
45294
45295 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45296
45297         * README: Document assumptions that 'int' is at least 32 bits
45298         wide, that integer arithmetic is 2's complement without overflow,
45299         that there are no holes in integer values, that adding sizes of
45300         two nonoverlapping objects can't overflow, and that all-bits-zero
45301         yields scalar zero.  Fix spelling and capitalization typos.
45302
45303 2003-09-19  Karl Berry  <karl@gnu.org>
45304
45305         * lib/argp.h: update from libc.
45306
45307 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45308
45309         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
45310         to avoid spurious warnings like "AC_RUN_IFELSE was called before
45311         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
45312
45313 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45314
45315         * gnulib-tool: Use "test -h", not "test -L", for portability
45316         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
45317         (tags_regexp): Remove, since \| doesn't conform to POSIX.
45318         (sed_extract_prog): Issue s commands one-by-one, rather than
45319         using \| in one s command.
45320
45321 2003-09-16  Paul Eggert  <eggert@twinsun.com>
45322
45323         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
45324         input error, instead of returning NULL the next time we are called
45325         (and therefore losing track of errno).
45326
45327 2003-09-16  Bruno Haible  <bruno@clisp.org>
45328
45329         * gnulib-tool (func_create_testdir): Warn about duplicated
45330         dependencies.
45331
45332 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45333
45334         * modules/argmatch, modules/fatal, modules/obstack,
45335         modules/xalloc, modules/xgethostname: Sort dependencies by
45336         importance, not alphabetically.
45337
45338 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45339
45340         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
45341         fails, so that the caller gets the proper errno.
45342
45343         * lib/readutmp.c (read_utmp): Likewise.
45344         Check for fstat error.  Close stream and free storage
45345         when failing.
45346
45347 2003-09-14  Karl Berry  <karl@gnu.org>
45348
45349         * config/srclist.txt (strdup.c): disable for c89 changes.
45350
45351 2003-09-14  Jim Meyering  <jim@meyering.net>
45352
45353         * lib/getloadavg.c: Correct cpp indentation.
45354         * lib/strdup.c: Likewise.
45355         * lib/vasnprintf.c: Likewise.
45356
45357 2003-09-14  Bruno Haible  <bruno@clisp.org>
45358
45359         * modules/fwriteerror: New file.
45360         * MODULES.html.sh (func_all_modules): Add fwriteerror.
45361
45362 2003-09-14  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/fwriteerror.h: New file.
45365         * lib/fwriteerror.c: New file.
45366
45367 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45368
45369         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
45370         modules/xgethostname, modules/xalloc: Depend on exit.
45371
45372 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45373
45374         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
45375
45376         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
45377         and AC_MINIX, too, so that their extensions are available.
45378
45379         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
45380         This macro has been superseded by gl_BACKUPFILE.
45381
45382         More patches to assume C89 or better.
45383
45384         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
45385
45386         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
45387         unconditionally.
45388         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
45389         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
45390         Include <string.h>, <stdlib.h> unconditionally.
45391         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
45392         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
45393         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
45394         headers or for string.h.
45395         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
45396         or strtoul.
45397
45398         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
45399         headers.
45400         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
45401         * m4/userspec.m4 (gl_USERSPEC): Likewise.
45402         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
45403         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
45404         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45405         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
45406         memcpy, memset.
45407         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
45408         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
45409         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
45410         strtol.
45411         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
45412         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
45413         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
45414         strtoul.
45415
45416 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45417
45418         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
45419         * lib/obstack.c [!defined _LIBC]: Likewise.
45420         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
45421         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
45422         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
45423
45424         More changes to assume C89 or better.
45425
45426         * lib/error.c (error_tail): Assume vprintf.
45427
45428         * lib/argmatch.c (getenv): Remove decl.
45429         * lib/progreloc.c (get_full_program_name): Define via prototype.
45430         * lib/setenv.c (clearenv): Likewise.
45431         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
45432         needed.
45433         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
45434         (malloc, memcpy): Remove decls.
45435         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
45436         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
45437         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45438         (memcpy): Remove macro.
45439         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
45440         (__P): Remove.  All uses removed.
45441         (PTR): Remove.  All uses changed to void *.
45442         (CHAR_BIT, NULL): Remove.
45443         (spaces, zeros, memset_space, memset_zero)
45444         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
45445         Remove.
45446         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
45447         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
45448         Define with prototype.
45449         Remove now-unnecessary prototype decl.
45450         (extra_args_spec): Assume ANSI C.  All uses changed.
45451         (extra_args_spec_iso): Remove.
45452         (my_strftime, emacs_strftimeu): Define via prototype.
45453         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
45454         unconditionally.
45455         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
45456         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
45457         (strtoul, strtol): Remove decls.
45458         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
45459         LONG_MAX): Remove.
45460         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45461         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
45462         (LOCALE_PARAM_PROTO): New macro.
45463         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
45464         (INTERNAL (strtol), strtol): Define with a prototype.
45465         (PARAMS): Remove.  All uses removed.
45466         * lib/tempname.c: Include <string.h> unconditionally.
45467         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
45468         * lib/xgethostname.c (main): Define with a prototype.
45469         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
45470         Include <stdlib.h> unconditionally.
45471         (calloc, malloc, realloc, free): Remove decls.
45472         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
45473         Include <stdlib.h> unconditionally.  Sort include file names.
45474         (strtod): Remove.
45475         (xstrtod): Define with a prototype.
45476         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
45477         (strtol, strtoul): Remove decls.
45478
45479 2003-09-11  Paul Eggert  <eggert@twinsun.com>
45480
45481         More patches to assume C89 or better.
45482         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
45483         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
45484         string.h, memchr, STDC_HEADERS.
45485
45486 2003-09-11  Paul Eggert  <eggert@twinsun.com>
45487
45488         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
45489         Include <stdlib.h>, <string.h> unconditionally.
45490         Remove now-unnecessary cast to char *.
45491         * lib/strnlen.c: Include <string.h> unconditionally.
45492         * lib/yesno.c (yesno): Define with a prototype.
45493
45494 2003-09-11  Bruno Haible  <bruno@clisp.org>
45495
45496         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
45497
45498 2003-09-10  Jim Meyering  <jim@meyering.net>
45499
45500         * lib/error.c: Correct indentation of cpp directives.
45501
45502 2003-09-10  Bruno Haible  <bruno@clisp.org>
45503
45504         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
45505         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
45506         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
45507         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
45508         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
45509         <stdlib.h> and <string.h> checks.
45510         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
45511         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
45512
45513 2003-09-10  Bruno Haible  <bruno@clisp.org>
45514
45515         * lib/strcspn.c: Include <string.h> unconditionally.
45516         * lib/strpbrk.c: Include <string.h> unconditionally.
45517         * lib/strstr.c: Include <string.h> unconditionally.
45518         * lib/unicodeio.c: Include <string.h> unconditionally.
45519         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
45520         * lib/unsetenv.c: Likewise.
45521         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
45522         * lib/yesno.c: Include <stdlib.h> unconditionally.
45523         (rpmatch): Add prototype.
45524
45525 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45526
45527         More patches to assume C89 or better.
45528         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
45529         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
45530         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
45531         or for string.h.
45532         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
45533         stdlib.h.
45534         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
45535         C headers.
45536         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
45537         string.h.
45538         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
45539         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
45540         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
45541         or for string.h.
45542         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
45543         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
45544         C headers.
45545         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
45546         memcpy.
45547         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
45548         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
45549         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
45550         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
45551         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
45552         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
45553         string.h, free.
45554         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
45555         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
45556         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
45557         C headers, or for string.h.
45558         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
45559         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
45560         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
45561         headers, memory.h, stdlib.h, string.h, strings.h.
45562         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
45563         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
45564         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
45565         strchr.
45566         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
45567         headers, memory.h, string.h.
45568         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
45569         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
45570         free.
45571         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
45572         headers.
45573         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
45574         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
45575         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
45576         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
45577         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
45578
45579 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45580
45581         More K&R removal.
45582
45583         * lib/acosl.c (main): Use a prototype.
45584         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
45585         tanl.c: Likewise.
45586
45587         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
45588
45589         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
45590         (getopt, etopt_long, getopt_long_only, _getopt_internal)
45591         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
45592         with a prototype.
45593         * lib/getopt.c (const): Remove macro.
45594         Include <string.h> unconditionally.
45595         (my_index): Remove; all uses changed to strchr.
45596         (strlen): Remove decl.
45597         (exchange): Remove forward decl; no longer needed.
45598         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
45599         Define with prototype.
45600         * lib/getopt1.c (const): Remove macro.
45601         (getopt_long, getopt_long_only, main): Define with prototype.
45602
45603         * lib/getugroups.c: Include <string.h> unconditionally.
45604
45605         * lib/getusershell.c: Include <stdlib.h> unconditionally.
45606         (getusershell, setusershell, endusershell, readname, main):
45607         Define with prototypes.
45608
45609         * lib/group-member.c: Include group-member.h first.
45610         Include <stdlib.h> unconditionally.
45611
45612         * lib/hard-locale.c: Include hard-locale.h first.
45613         Include <stdlib.h>, <string.h> unconditionally.
45614
45615         * lib/hash.c (free, malloc): Remove decls.
45616         Include <stdlib.h> unconditionally.
45617
45618         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
45619         (getenv): Do not declare.
45620
45621         * lib/idcache.c: Include <string.h> unconditionally.
45622
45623         * lib/long-options.c: Include long-options.h first, to test interface.
45624         Include <stdlib.h> unconditionally.
45625
45626         * lib/makepath.c: Include makepath.h first, to test interface.
45627         Include <stdlib.h> and <string.h> unconditionally.
45628
45629         * lib/linebuffer.c: Include <stdlib.h>.
45630         (free): Remove decl.
45631
45632         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
45633         stddef.h. rpl_malloc returns void *, not char *.
45634         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
45635         prototype.
45636
45637         * lib/md5.h: Include <limits.h> unconditionally.
45638         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
45639         (__P): Remove; all uses removed.
45640         * lib/md5.c: Include "md5.h" first.
45641         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
45642         md5_buffer, md5_process_bytes, md5_process_block):
45643         Define with prototypes.
45644         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
45645         * lib/sha.c: Include "sha.h" first.
45646         Include <stdlib.h>, <string.h> unconditionally.
45647
45648         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
45649         * lib/memcmp.c (__ptr_t): Likewise.
45650         * lib/memrchr.c (__ptr_t): Likewise.
45651         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
45652         Include <string.h> unconditionally.
45653         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
45654         * lib/memchr.c: Include <stdlib.h> unconditionally.
45655         * lib/memchr.c (LONG_MAX): Remove.
45656         * lib/memrchr.c (LONG_MAX): Likewise.
45657         * lib/memchr.c (__memchr): Define via a prototype.
45658         * lib/memrchr.c (__memrchr): Likewise.
45659         * lib/memcmp.c (__P): Remove, and remove all uses.
45660         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
45661         Remove forward decls; no longer needed.
45662         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
45663         Use types required by C89 in prototype.
45664
45665         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
45666         * lib/savedir.c: Likewise.
45667         * lib/mkdir.c (free): Remove decl.
45668         * lib/rmdir.c (rmdir): Define with a prototype.
45669         * lib/savedir.c: Include savedir.h first, to test interface.
45670
45671         * lib/mktime.c (STDC_HEADERS): Remove.
45672         Include <stdlib.h>, <string.h> unconditionally.
45673
45674         * lib/modechange.c: Include <stdlib.h> unconditionally.
45675         (malloc): Remove decl.
45676
45677         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
45678         (free): Remove decl.
45679
45680         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
45681         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
45682         (This type really should be intptr_t, but that's a C99ism.)
45683         (_obstack_memcpy): Remove: all uses changed to memcpy.
45684         Include <string.h> unconditionally.
45685         (struct obstack): Assume __STDC__ for types of members
45686         chunkfun, freefun, extra_arg.
45687         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
45688         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
45689         obstack_begin, obstack_specify_allocation,
45690         obstack_specify_allocation_with_arg, obstack_chunkfun,
45691         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
45692         Remove unprototyped decls and the macros that use them.
45693         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
45694         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
45695         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
45696         (defined __STDC__ && __STDC__)]:
45697         Remove nonprototyped code.
45698         Include <stdlib.h> unconditionally.
45699         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
45700         _obstack_allocated_p, _obstack_free, obstack_free,
45701         _obstack_memory_used, print_and_abort):
45702         Define using prototypes.
45703         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
45704         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
45705         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
45706         obstack_next_free, obstack_object_size, obstack_room) [0]:
45707         Remove unused, unprototyped code.
45708
45709         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
45710
45711         * lib/physmem.c (physmem_total, physmem_available, main): Define
45712         with prototypes.
45713
45714         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
45715         (main): Define with a prototype.
45716
45717         * lib/posixver.c (getenv): Remove decl.
45718
45719         * lib/putenv.c (malloc): Returns void *, not char *.
45720         Include <string.h> unconditionally.
45721         (strchr, memcpy, NULL): Do not define.
45722
45723         * lib/readtokens.c: Include readtokens.h first, to test interface.
45724         Include <stdlib.h>, <string.h> unconditionally.
45725         (init_tokenbuffer): Define with a prototype.
45726
45727         * lib/regex.c (PARAMS): Remove.  All uses removed.
45728         All uses of _RE_ARGS removed, too.
45729         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
45730         unconditionally.
45731         (bzero): Assume memset exists.
45732         (memcmp, memcpy, NULL): Remove.
45733         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
45734         char, or assignments to local vars of type signed char.
45735         (init_syntax_once, PREFIX(extract_number_and_incr),
45736         PREFIX(print_partial_compiled_pattern),
45737         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
45738         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
45739         PREFIX(regex_grow_registers), PREFIX(regex_compile),
45740         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
45741         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
45742         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
45743         wcs_compile_range, byte_compile_range, truncate_wchar,
45744         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
45745         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
45746         count_mbs_length, wcs_re_match_2_internal,
45747         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
45748         PREFIX(alt_match_null_string_p),
45749         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
45750         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
45751         regfree, PREFIX(extract_number)): Define with prototype.  Remove
45752         now-unnecessary declaration, if any.
45753         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
45754         regcomp, regexec):
45755         Remove now-unnecessary casts among pointer types.
45756         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
45757
45758         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
45759         (free): Remove decl.
45760
45761         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
45762
45763         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
45764         (free): Remove decl.
45765
45766         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
45767         * lib/xgetcwd.c: Likewise.
45768
45769         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
45770         (free): Remove decl.
45771
45772         * lib/strchrnul.c (strchrnul): Define with a prototype.
45773         Fix bug: c_in was not converted to char before searching.
45774
45775         The following changes are not K&R related:
45776
45777         * lib/group-member.h: Include <sys/types.h>, so that this file is
45778         self-contained.
45779         * lib/makepath.h: Likewise.
45780
45781         * lib/getusershell.c (readname, default_index, line_size, readname):
45782         Use size_t, not int, for sizes.
45783         (readname): If the size overflows, report an error instead of
45784         looping forever.
45785
45786 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45787
45788         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
45789         libc.
45790
45791 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45792
45793         * README: New section: portability guidelines.
45794
45795 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45796
45797         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
45798         C89 spec.
45799
45800 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
45801
45802         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
45803
45804 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45805
45806         Assume C89 or better; remove K&R cruft.
45807         A few of these changes were first proposed by Derek Robert Price
45808         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
45809
45810         * lib/addext.c: Include <string.h> unconditionally.
45811         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
45812         Don't declare getenv or malloc.
45813
45814         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
45815         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
45816         (NULL): Remove.
45817         (find_stack_direction, alloca): Use prototypes.
45818
45819         * lib/atexit.c (atexit): Define using a prototype.
45820
45821         * lib/basename.c, dirname.c, stripslash.c:
45822         Include <string.h> unconditionally.
45823
45824         * lib/bcopy.c: Include <stddef.h>.
45825         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
45826
45827         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
45828
45829         * lib/error.h (error, error_at_line, error_print_progname)
45830         [! (defined (__STDC__) && __STDC__)]: Remove decls.
45831         * lib/error.c: Include error.h first, to check interface.
45832         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45833         (VA_START): Remove; all uses changeed to va_start.
45834         (exit, strerror): Remove decls.
45835         (error_print_progname): Prototype uncondionally.
45836         Don't include <errno.h>; no longer needed.
45837         (private_strerror): Remove.
45838         (error_tail): Always define.
45839         (error, error_at_line): Assume C89 or better; always use prototypes.
45840         * lib/fatal.c: Include "fatal.h" first, to test interface.
45841         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
45842         (VA_START): Remove; all uses changed to va_start.
45843         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
45844         this case.
45845         (exit): Remove decl.
45846         (fatal): Prototype unconditionally.  Assume va_start works.
45847         Abort at end, to pacify gcc.
45848
45849         * lib/euidaccess.c (main): Define with a prototype.
45850
45851         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
45852
45853         * lib/exitfail.c: Include <stdlib.h> unconditionally.
45854
45855         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
45856         prototypes.
45857         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
45858         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
45859         (getenv): Remove decl.
45860         (fnmatch): Define using a prototype.
45861         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
45862         (FCT): Define using a prototype.
45863
45864         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
45865
45866         * lib/gethostname.c: Include <stddef.h>.
45867         (gethostname): Define with prototype.  Length is size_t, not int.
45868
45869 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45870
45871         Assume C89 or better; remove K&R cruft.
45872         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
45873         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
45874         string.h, getenv, malloc.
45875         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
45876         headers.
45877         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
45878         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
45879         do not check for strerror.
45880         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
45881         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
45882         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
45883         do not check for doprnt or vprintf.
45884         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
45885         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
45886
45887 2003-09-08  Paul Eggert  <eggert@twinsun.com>
45888
45889         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
45890         getversion.c should have been removed then, but was accidentally
45891         preserved.
45892
45893         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
45894         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
45895
45896 2003-09-08  Karl Berry  <karl@gnu.org>
45897
45898         * config/config.sub, config.guess, srclistvars.sh: update from savannah
45899                 config, forget about prep.
45900
45901         * config/depcomp, missing: update from automake.
45902
45903 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45904
45905         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
45906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45907
45908 2003-09-07  Paul Eggert  <eggert@twinsun.com>
45909
45910         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
45911         copy_tm_result.  Bug reported by Simon Josefsson in
45912         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
45913
45914 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45915
45916         * m4/time_r.m4: New file.
45917         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
45918         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
45919         is. Check for timegm declaration.
45920         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
45921         Do not check for gmtime_r.
45922         Replace mktime if __mktime_internal does not exist and if mktime
45923         hasn't been replaced already.
45924
45925 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45926
45927         * lib/time_r.c, lib/time_r.h: New files.
45928
45929         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
45930         __localtime_r.
45931         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
45932         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
45933
45934         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
45935         __gmtime_r.
45936         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
45937         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
45938         Include <time_r.h>.
45939
45940         * lib/timegm.c: Switch to glibc implementation, with the following
45941         changes:
45942         [defined HAVE_CONFIG_H]: Include <config.h>.
45943         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
45944         (__mktime_internal) [!defined _LIBC]: New decl.
45945         (__gmtime_r) [!defined _LIBC]: New macro and function.
45946         (timegm): Use a prototype, since gnulib assumes C89.
45947         Do not bother declaring tmp to be const, as it's not really usefu.
45948         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
45949         (timegm): Declare only if HAVE_DECL_TIMEGM.
45950
45951 2003-09-06  Paul Eggert  <eggert@twinsun.com>
45952
45953         * MODULES.html.sh (func_all_modules): Add time_r.
45954         * modules/time_r: New file.
45955         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
45956         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
45957
45958 2003-09-03  Paul Eggert  <eggert@twinsun.com>
45959
45960         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
45961         Bug reported by Lute Kamstra in
45962         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
45963
45964         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
45965         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
45966         course with correspondingly smaller numbers for tomorrow and
45967         yesterday.  From Tadayoshi Funaba.  Originally installed into
45968         sh-utils on 1999-08-07, but the patch got lost (I guess during the
45969         coreutils merge?).
45970
45971 2003-08-31  Simon Josefsson  <jas@extundo.com>
45972
45973         * modules/timegm: New file.
45974         * MODULES.html.sh (func_all_modules): Add timegm.
45975
45976 2003-08-31  Simon Josefsson  <jas@extundo.com>
45977
45978         * m4/timegm.m4: New file.
45979
45980 2003-08-31  Simon Josefsson  <jas@extundo.com>
45981
45982         * lib/timegm.h: New file.
45983         * lib/timegm.c: New file.  Based on
45984         wget-1.8.2/src/http.c:mktime_from_utc.
45985
45986 2003-08-31  Karl Berry  <karl@gnu.org>
45987
45988         * lib/argp.h: update from libc.
45989
45990 2003-08-28  Bruno Haible  <bruno@clisp.org>
45991
45992         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
45993         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
45994         followed by '#define fnmatch fnmatch_posix' gives an error.
45995
45996 2003-08-28  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
45999         warning on QNX, which defines O_BINARY to 000000.
46000
46001 2003-08-27  Jim Meyering  <jim@meyering.net>
46002
46003         * m4/mkstemp.m4: Require that the system mkstemp be able to create
46004         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
46005         would fail after 32.  Reported by Danny Levinson.  Details here:
46006         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
46007
46008 2003-08-24  Bruno Haible  <bruno@clisp.org>
46009
46010         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
46011         MSVC7 <stdio.h> is included later.
46012
46013 2003-08-22  Simon Josefsson  <jas@extundo.com>
46014
46015         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
46016
46017 2003-08-20  Karl Berry  <karl@gnu.org>
46018
46019         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
46020
46021 2003-08-20  Bruno Haible  <bruno@clisp.org>
46022
46023         * modules/progname: New file.
46024         * MODULES.html.sh (func_all_modules): Add progname.
46025
46026 2003-08-20  Bruno Haible  <bruno@clisp.org>
46027
46028         * lib/progname.h: New file, from GNU gettext.
46029         * lib/progname.c: New file, from GNU gettext.
46030         * lib/progreloc.c: New file, from GNU gettext.
46031
46032 2003-08-19  Jim Meyering  <jim@meyering.net>
46033
46034         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
46035         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
46036
46037 2003-08-19  Bruno Haible  <bruno@clisp.org>
46038
46039         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
46040         more.
46041
46042 2003-08-19  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/xstrdup.c: Assume <string.h> exists.
46045
46046 2003-08-18  Paul Eggert  <eggert@twinsun.com>
46047
46048         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
46049         in makefile rules.
46050
46051 2003-08-18  Jim Meyering  <jim@meyering.net>
46052
46053         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
46054         * m4/lib-ld.m4: Likewise.
46055
46056 2003-08-18  Jim Meyering  <jim@meyering.net>
46057
46058         * lib/setenv.h: Indent nested cpp directive.
46059         * lib/vasnprintf.c: Remove trailing blanks.
46060
46061 2003-08-17  Simon Josefsson  <jas@extundo.com>
46062
46063         * modules/xstrndup: New file.
46064         * MODULES.html.sh (func_all_modules): Add xstrndup.
46065
46066 2003-08-17  Simon Josefsson  <jas@extundo.com>
46067
46068         * modules/argp: Fix autoconf macro name. Add more dependencies.
46069
46070 2003-08-17  Simon Josefsson  <jas@extundo.com>
46071
46072         * m4/xstrndup.m4: New file.
46073
46074 2003-08-17  Simon Josefsson  <jas@extundo.com>
46075
46076         * m4/argp.m4: New file.
46077
46078 2003-08-17  Simon Josefsson  <jas@extundo.com>
46079             Bruno Haible  <bruno@clisp.org>
46080
46081         * lib/xstrndup.h: New file.
46082         * lib/xstrndup.c: New file.
46083
46084 2003-08-17  Bruno Haible  <bruno@clisp.org>
46085
46086         * modules/strndup (Files, Include): Add lib/strndup.h.
46087
46088 2003-08-17  Bruno Haible  <bruno@clisp.org>
46089
46090         * modules/euidaccess (Files): Add lib/euidaccess.h.
46091
46092 2003-08-17  Bruno Haible  <bruno@clisp.org>
46093
46094         * lib/strndup.h: New file.
46095
46096 2003-08-17  Bruno Haible  <bruno@clisp.org>
46097
46098         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
46099         like AC_GNU_SOURCE.
46100         * modules/extensions (configure.ac): Comment out the invocation of
46101         gl_USE_SYSTEM_EXTENSIONS.
46102
46103 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46104
46105         Merges from coreutils, etc.
46106         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
46107         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
46108         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
46109         fixing a typo.
46110         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
46111         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
46112
46113 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46114
46115         Document merge from coreutils.
46116         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
46117         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
46118         * modules/utime: Add m4/utimes-null.m4.
46119
46120 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46121
46122         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
46123         space, undoing this 2003-08-12 change:
46124         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46125
46126 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46127
46128         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
46129         strtoul.c from libc, undoing this 2003-08-12 change:
46130         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46131
46132 2003-08-16  Jim Meyering  <jim@meyering.net>
46133
46134         Merges from coreutils.
46135         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
46136         prefix.  Adjust cache variables similarly.  Create 500 rather than
46137         just 300 files, to exercise bug on Darwin6.5, too.
46138         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
46139         $missing_dir.
46140         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
46141         AM_SYS_POSIX_TERMIOS.
46142         Reported by mkc@mathdogs.com.
46143         Also change use of $am_cv_sys_posix_termios
46144         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
46145         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
46146         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
46147         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
46148         in /proc/mounts until it finds one with matching device number.  This
46149         is unnecessary when the FILE argument *is* a mount point.  No stat call
46150         is necessary in that case.  So, disable the statvfs-testing code on
46151         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
46152         as RedHat bug# 84846.
46153         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46154         to 1MB, so as not to render systems with no stack size limit (e.g.,
46155         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46156         Include <unistd.h>.  On some systems,
46157         it is required for the definition of _SC_PAGESIZE.
46158
46159 2003-08-16  Jim Meyering  <jim@meyering.net>
46160
46161         Merge from coreutils.
46162         * lib/xstrtoimax.c: #else #if -> #elif.
46163         * lib/xstrtoumax.c: Likewise.
46164
46165 2003-08-16  Jim Meyering  <jim@meyering.net>
46166
46167         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
46168         * m4/utimes.m4: Removed.
46169         * m4/utimes-null.m4: Renamed from utimes.m4.
46170
46171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46172         to 1MB, so as not to render systems with no stack size limit (e.g.,
46173         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46174         Include <unistd.h>.  On some systems,
46175         it is required for the definition of _SC_PAGESIZE.
46176
46177 2003-08-16  Jim Meyering  <jim@meyering.net>
46178         and Paul Eggert  <eggert@cs.ucla.edu>
46179
46180         Merges from coreutils, etc.
46181
46182         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
46183         using the latest version from cvs.  This avoids problems with #line
46184         directives using a vendor (Sun) compiler.
46185         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
46186         Don't set GETGROUPS_LIB here; now it's
46187         done via getgroups.m4's wrapper function.
46188         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
46189         rather than just in sh-util/configure.in, so that the
46190         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
46191         same.
46192         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
46193         AC_FUNC_GETLOADAVG where to find getloadavg.c.
46194         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
46195         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
46196         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
46197         Remove code that is now done by the newly-required macros.
46198         Append $(EXEEXT) to DF_PROG.
46199         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
46200         Do not invoke or require the following here,
46201         since prereq.m4 or some gnulib .m4 now does this for us:
46202         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
46203         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
46204         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
46205         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
46206         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
46207         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
46208         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
46209         AC_FUNC_OBSTACK.
46210         Do not replace the following functions, as this is now the job
46211         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
46212         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
46213         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
46214         atexit getpass, strdup, getpagesize.
46215         Replace 'raise'.
46216         Do not check for the following functions, as this is now the job
46217         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
46218         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
46219         setregid.
46220         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
46221         Check for sys/sysctl.h.
46222         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
46223         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
46224         of checking for ssize_t ourselves.
46225
46226         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
46227         Require every macro that gnulib/modules/* suggests for us.
46228         (jm_PREREQ_ADDEXT): New macro.
46229         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
46230         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
46231
46232         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
46233         (gl_PHYSMEM): Use it.
46234         Also check for `table' function.
46235         Check for new headers and functions.
46236         Add check for sys/sysmp.h.
46237         With suggestions from Kaveh Ghazi.
46238         Ignore headers that are present but cannot be compiled.  This
46239         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
46240         C 5.4.
46241
46242 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46243
46244         Document merge from coreutils.
46245         * modules/userspec: Depend on posixver.
46246         * modules/strftime: Depend on tzset.
46247
46248 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46249
46250         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
46251         rather than tab, after '#' in shell-script copyright notices.
46252         Suggested by Bruno Haible.
46253
46254 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46255
46256         * config/srclist-update: Use three spaces, rather than tab, after '#'
46257         in shell-script copyright notices.  Suggested by Bruno Haible.
46258         Remove unnecessary parenthesization in regular expression.
46259
46260 2003-08-15  Jim Meyering  <jim@meyering.net>
46261
46262         Merge from coreutils.
46263         * lib/xgethostname.c: Include <stdlib.h>.
46264         (xghostname): Don't exit for anything other than memory-related
46265         failure; just return NULL.
46266         * lib/userspec.c: Include "posixver.h".
46267         (parse_user_spec): Accept `.' as a separator only
46268         in pre-POSIX-200112 mode.
46269         * lib/strtoimax.c: Use #elif rather than #else #if.
46270         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
46271         Remove function, now that we can rely on a working tzset function.
46272         [!_LIBC]: Ensure that the required autoconf test has been run.
46273         [!defined _NL_CURRENT && HAVE_STRFTIME]:
46274         Use underlying_strftime for %r.
46275         * lib/sha.c: Merge in some clean-up and optimization changes from
46276         glibc.
46277         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
46278         Ensure that it is a multiple of 64.
46279         Rearrange loop exit tests so as to avoid performing an
46280         additional fread after encountering an error or EOF.
46281         * lib/realloc.c: Update copyright date.
46282
46283 2003-08-15  Jim Meyering  <jim@meyering.net>
46284         and Paul Eggert  <eggert@twinsun.com>
46285
46286         Merge from coreutils.
46287         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
46288         member but strut utmpx does not.  Needed for AIX 4.3.3.
46289         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
46290
46291 2003-08-15  Jim Meyering  <jim@meyering.net>
46292         and Paul Eggert  <eggert@cs.ucla.edu>
46293
46294         Merges from coreutils, etc.
46295         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
46296         Require gl_FUNC_TZSET_CLOBBER.
46297         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
46298         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
46299         members.
46300
46301 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46302
46303         Help the merge from coreutils.
46304         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
46305         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
46306         * m4/tzset.m4: Use it too.
46307
46308 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46309
46310         * modules/tzset: New file.
46311
46312 2003-08-14  Jim Meyering  <jim@meyering.net>
46313
46314         Merges from coreutils.
46315         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
46316         variable names, rather than @FNMATCH_H@.
46317         * modules/alloca: Likewise for $(ALLOCA_H).
46318
46319         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
46320         the three copies of the literal target, `fnmatch.h'.
46321         * modules/alloca (alloca.h): Likewise.
46322
46323 2003-08-14  Jim Meyering  <jim@meyering.net>
46324
46325         Merge from coreutils.
46326         * m4/tzset.m4: New file.
46327         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
46328         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
46329         otherwise, AIX 5.1 systems would end up using the latter.
46330         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
46331         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
46332         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
46333         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
46334
46335 2003-08-14  Jim Meyering  <jim@meyering.net>
46336
46337         Merge from coreutils.
46338         * lib/obstack.h: Whitespace changes.
46339         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
46340         and xcalloc return values.
46341         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
46342         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
46343         hang on OSF/1 5.1 for DIR on both local and remote file systems.
46344         Reported by (and fix confirmed by) Nelson H. F. Beebe.
46345         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46346         error from mntctl.
46347         Use mntctl's return value to drive the entry-processing loop, since
46348         we can't rely on the value of the vmt_length member in the last
46349         entry.  On some systems doing so could result in exhausting
46350         virtual memory.  Based in part on a patch from Mike Jetzer.
46351
46352 2003-08-14  Jim Meyering  <jim@meyering.net>
46353         and Paul Eggert  <eggert@twinsun.com>
46354
46355         Merges from coreutils, plus other fixes.
46356         * lib/physmem.c: Merge in portability changes from gcc/libiberty
46357         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
46358         for credits and details.  Thanks to Kaveh Ghazi for helping
46359         to keep these files in sync.
46360         (ARRAY_SIZE): Define it.
46361         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
46362         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
46363         (memcasecmp): Don't assume size_t fits in unsigned int.
46364         Remove casts and duplicate code.
46365         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
46366         (memcpy): Remove definition.
46367         Merge in some clean-up and optimization changes from glibc.
46368         [BLOCKSIZE]: Move definition to top of file.
46369         Ensure that it is a multiple of 64.
46370         Rearrange loop exit tests so as to avoid performing an
46371         additional fread after encountering an error or EOF.
46372         * lib/md5.h (md5_uintptr): Define.
46373         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
46374         return to the initial working directory.  Preserve errno
46375         for caller.
46376         * lib/idcache.c: Include "xalloc.h".
46377         (xmalloc, xrealloc): Remove decls.
46378         (getuser): Remove casts no longer required in C89.
46379         * lib/human.c: Include stdio.h, for sprintf.
46380         * lib/group-member.c: Include "xalloc.h".
46381         (xmalloc, xrealloc): Remove decls.
46382         (get_group_info): Remove casts no longer required in C89.
46383         * lib/getusershell.c (readname): Remove casts no longer required in
46384         C89.
46385         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
46386         * lib/getline.c: Whitespace fix, from coreutils.
46387
46388 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46389
46390         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
46391         Check for isascii.
46392
46393         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46394         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46395         Undo previous (whitespace-only) change.
46396
46397 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46398
46399         * lib/exclude.c: Include <ctype.h>
46400         (IN_CTYPE_DOMAIN): New macro.
46401         (is_space): New fn.
46402         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
46403         and empty lines.
46404
46405         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46406         Undo previous (whitespace-only) change.
46407
46408 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46409
46410         * config/srclist-update: Change update back to the old behavior,
46411         leaving whitespace alone.  Use one 'sed' command rather than a
46412         pipeline.
46413         (fixlicense): Now a variable, not a function.
46414         (remove_trailing_blanks): Remove.
46415         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
46416         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46417         Undo previous (whitespace-only) change.
46418
46419 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46420
46421         Merge from coreutils.
46422         * modules/euidaccess: Add lib_SOURCES, include for new
46423         file euidaccess.h
46424
46425 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46426
46427         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46428         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46429         Normalize leading white space and remove trailing white space.
46430
46431         Merge from coreutils
46432         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
46433
46434         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
46435         0.12.1.  These files are now being upgraded automatically by
46436         ../config/srclist-update.
46437
46438 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46439
46440         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46441         Normalize leading white space and remove trailing white space.
46442         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
46443         notice, as per ../config/srclist-update.
46444
46445         Merge from coreutils.
46446         * lib/euidaccess.h: New file.
46447         * lib/euidaccess.c: Include it.
46448         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
46449         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
46450         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
46451
46452 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46453
46454         * config/srclist-update: Add copyright notice.
46455         (remove_id_lines, remove_trailing_blanks): New constants.
46456         (fixfile): Use them to normalize spacing a bit in copied files.
46457         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46458         Normalize leading white space and remove trailing white space.
46459
46460         * config/texinfo.tex: Sync with texinfo.
46461
46462         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
46463         strtoul.c from libc, to merge coreutils whitespace changes.
46464
46465         * config/srclist.txt: Get the following m4 files from gettext:
46466         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
46467         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
46468         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
46469         wint_t.m4.
46470
46471 2003-08-12  Karl Berry  <karl@gnu.org>
46472
46473         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
46474         been made.
46475
46476 2003-08-11  Paul Eggert  <eggert@twinsun.com>
46477
46478         * modules/gnu-source, m4/gnu-source.m4:
46479         Remove; we're assuming Autoconf 2.54 or later now.
46480         Suggested by Bruno Haible.
46481         * MODULES.html.sh (func_all_modules): Remove gnu-source.
46482
46483 2003-08-11  Bruno Haible  <bruno@clisp.org>
46484
46485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
46486
46487 2003-08-11  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
46490         (vasnprintf): Use it instead of wcslen.
46491
46492 2003-08-11  Bruno Haible  <bruno@clisp.org>
46493
46494         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
46495         value to ensure that _Bool promotes to int. Use #define for _Bool when
46496         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
46497
46498 2003-08-10  Karl Berry  <karl@gnu.org>
46499
46500         * lib/regex.h: update from libc (whitespace fix).
46501
46502 2003-08-09  Paul Eggert  <eggert@twinsun.com>
46503
46504         Merge some files from coreutils.  These changes were
46505         originally made by Jim Meyering.
46506         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
46507         many older Unixes require this.
46508         * lib/alloca.c (alloca): Remove cast to argument of free;
46509         no longer needed in C89.
46510         * lib/alloca_.h, regex.h: Fix white space to match
46511         what GNU indent does.
46512
46513 2003-08-09  Paul Eggert  <eggert@twinsun.com>
46514
46515         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
46516         apparently Emacs's Unicode mode got confused before my 2003-08-05
46517         checkin.
46518
46519 2003-08-08  Paul Eggert  <eggert@twinsun.com>
46520
46521         * m4/extensions.m4: New file.
46522         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
46523         Require gl_USE_SYSTEM_EXTENSIONS.
46524         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
46525         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
46526
46527 2003-08-08  Paul Eggert  <eggert@twinsun.com>
46528
46529         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
46530         * modules/extensions, modules/gnu-source: New files.
46531         * modules/timespec, modules/unlocked-io: Depend on extensions.
46532
46533 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46534
46535         * modules/restrict: New file.
46536         * MODULES.html.sh (func_all_modules): Add restrict.
46537         * modules/regex: Depend on restrict.
46538
46539 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46540
46541         * m4/restrict.m4: New file.
46542         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
46543
46544 2003-08-07  Bruno Haible  <bruno@clisp.org>
46545
46546         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
46547         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
46548
46549 2003-08-07  Bruno Haible  <bruno@clisp.org>
46550
46551         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
46552         makes the module 'getndelim2' compatible with the module 'getline'.
46553
46554 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46555
46556         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
46557         byte with "\201" to avoid glitches when editing that source file
46558         with multi-gnome-terminal.
46559
46560 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46561
46562         * lib/bumpalloc.h: Remove.
46563
46564 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46565
46566         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
46567         * modules/bumpalloc: Remove.
46568
46569 2003-08-04  Paul Eggert  <eggert@twinsun.com>
46570
46571         * lib/getloadavg.c: Change copyright notice and spacing to conform to
46572         GNU coding style.
46573
46574         Merge from coreutils.
46575         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
46576         1. From glibc.
46577         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
46578         from Karl Berry, implemented by Jim Meyering.
46579         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
46580         from Dmitry V. Levin.
46581         Remove anachronistic cast of xrealloc.
46582         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
46583         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
46584         type. Otherwise, it wouldn't compile with at least /bin/cc on
46585         ymp-cray-unicos9.0.2.X.
46586         Combine two mostly-identical uses of alloca into one.
46587         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
46588
46589 2003-08-04  Dave Love  <d.love@dl.ac.uk>
46590
46591         [From Emacs.]
46592
46593         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
46594         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
46595         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
46596         obsolete NLIST_NAME_UNION.
46597         [__GNU__]: Undef BSD and FSCALE.
46598         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
46599
46600 2003-08-03  Paul Eggert  <eggert@twinsun.com>
46601
46602         * lib/stdbool_.h (_Bool): Make it signed char, instead of
46603         an enum type, so that it's guaranteed to promote to int.  See:
46604         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
46605
46606 2003-08-03  Karl Berry  <karl@gnu.org>
46607
46608         * config/depcomp: update from automake.
46609
46610 2003-07-31  Paul Eggert  <eggert@twinsun.com>
46611
46612         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
46613         (strerror): Don't assume that a printable int fits in 14 bytes.
46614
46615 2003-07-31  Bruno Haible  <bruno@clisp.org>
46616
46617         * modules/getpass-gnu: New file.
46618         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
46619
46620 2003-07-31  Bruno Haible  <bruno@clisp.org>
46621
46622         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
46623
46624 2003-07-24  Karl Berry  <karl@gnu.org>
46625
46626         * config/missing: update from automake.
46627
46628 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
46629             Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
46632         * lib/getline.c (getline, getdelim): Likewise.
46633         Remove _GNU_SOURCE define; now it's defined in config.h through
46634         m4/getline.m4.
46635
46636 2003-07-23  Karl Berry  <karl@gnu.org>
46637
46638         * config/config.sub: update from prep.
46639
46640 2003-07-22  Paul Eggert  <eggert@twinsun.com>
46641
46642         * modules/xalloc (Depends-on): Add exitfail.
46643         * modules/xmemcoll: Likewise.
46644
46645 2003-07-22  Paul Eggert  <eggert@twinsun.com>
46646
46647         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
46648         over-parenthesization in macros.
46649
46650         Sync with coreutils.
46651
46652         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
46653         required by C99.
46654
46655         Use `exit_failure' for xalloc and xmemcoll instead of their own
46656         private exit-failure variables.
46657         * lib/xalloc.h (xalloc_exit_failure): Remove.
46658         * lib/xmalloc.c: Likewise.  Include exitfail.h.
46659         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
46660         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
46661         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
46662         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
46663
46664 2003-07-20  Jim Meyering  <jim@meyering.net>
46665
46666         * modules/closeout (Depends-on): Add exitfail.
46667         Suggestion from Bruno Haible.
46668
46669 2003-07-19  Karl Berry  <karl@gnu.org>
46670
46671         * config/config.sub: update from prep.
46672
46673 2003-07-18  Paul Eggert  <eggert@twinsun.com>
46674
46675         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
46676         Remove.
46677         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
46678         to test that it can stand by itself.  Include "exitfail.h".
46679         Clients should set exit_failure instead.
46680         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
46681
46682 2003-07-18  Bruno Haible  <bruno@clisp.org>
46683
46684         * modules/getndelim2: New file.
46685         * modules/getline: Share files with module getndelim2.
46686         * modules/getnline: Depend on getndelim2 instead of sharing files with
46687         it. Add getnline.c to lib_SOURCES.
46688         * MODULES.html.sh (func_all_modules): Add getndelim2.
46689
46690 2003-07-18  Bruno Haible  <bruno@clisp.org>
46691
46692         * m4/getndelim2.m4: New file.
46693         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
46694         invoke gl_PREREQ_GETNDELIM2.
46695         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
46696         gl_PREREQ_GETNDELIM2.
46697         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
46698         gl_GETNDELIM2.
46699
46700 2003-07-18  Bruno Haible  <bruno@clisp.org>
46701
46702         * lib/getndelim2.h: New file.
46703         * lib/getndelim2.c: Make into a module of its own. Include config.h,
46704         getndelim2.h.
46705         (getndelim2): Make non-static. Change return type to ssize_t.
46706         * lib/getline.h: Change argument names.
46707         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
46708         * lib/getnline.c: Include getndelim2.h.
46709
46710 2003-07-18  Andreas Schwab  <schwab@suse.de>
46711
46712         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
46713
46714 2003-07-17  Karl Berry  <karl@gnu.org>
46715
46716         * config/config.sub: update from prep.
46717
46718 2003-07-17  Bruno Haible  <bruno@clisp.org>
46719
46720         * modules/getnline: New file.
46721         * modules/getline: Add lib/getndelim2.c to source file list.
46722         * MODULES.html.sh (func_all_modules): Add getnline.
46723
46724 2003-07-17  Bruno Haible  <bruno@clisp.org>
46725
46726         * m4/getnline.m4: New file.
46727
46728 2003-07-17  Bruno Haible  <bruno@clisp.org>
46729
46730         * m4/Makefile.am.in: Remove file.
46731         * m4/Makefile.am: Remove file.
46732         * m4/Makefile.in: Remove file.
46733
46734 2003-07-17  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/getnline.h: New file.
46737         * lib/getnline.c: New file.
46738         * lib/getndelim2.c: New file, extracted from getline.c.
46739         (getndelim2): Renamed from getdelim2, with added nmax argument.
46740         * lib/getline.c: Include getndelim2.c.
46741         (getdelim2): Moved out to getndelim2.c.
46742         (getline, getdelim): Update.
46743
46744 2003-07-17  Bruno Haible  <bruno@clisp.org>
46745
46746         * lib/Makefile.am: Remove file.
46747         * lib/Makefile.in: Remove file.
46748
46749 2003-07-17  Bruno Haible  <bruno@clisp.org>
46750
46751         * configure.in: Remove file.
46752         * Makefile.in: Remove file.
46753
46754 2003-07-17  Bruno Haible  <bruno@clisp.org>
46755
46756         * MODULES.html.sh: Put the </BODY> right before </HTML>.
46757
46758 2003-07-16  Karl Berry  <karl@gnu.org>
46759
46760         * config/srclist-update: was running fixlicense twice, which caused
46761                 texinfo.tex to be nullified for some reason.  Simplify,
46762                 $gplsrc is no longer needed as far as I can see?
46763
46764 2003-07-16  Jim Meyering  <jim@meyering.net>
46765
46766         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
46767
46768 2003-07-15  Paul Eggert  <eggert@twinsun.com>
46769
46770         * config/srclist.txt: Get the following files from gettext-runtime/intl
46771         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
46772         ref-del.sin.  From Bruno Haible.
46773         * config/srclist-update (fixfile): Change grep pattern again, since the
46774         previous fix didn't work (there was another trailing $).  Use
46775         '[$]' to escape the $s.
46776
46777 2003-07-15  Karl Berry  <karl@gnu.org>
46778
46779         * lib/vasnprintf.c: update from gettext.
46780
46781 2003-07-15  Karl Berry  <karl@gnu.org>
46782
46783         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
46784         gets expanded when surrounded by '$'.
46785
46786 2003-07-15  Jim Meyering  <jim@meyering.net>
46787
46788         * modules/save-cwd: Don't depend on error.  From Derek Price.
46789
46790 2003-07-15  Jim Meyering  <jim@meyering.net>
46791
46792         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
46793
46794 2003-07-14  Simon Josefsson  <jas@extundo.com>
46795
46796         * modules/mempcpy: New file.
46797         * MODULES.html.sh (func_all_modules): Add mempcpy.
46798
46799 2003-07-14  Simon Josefsson  <jas@extundo.com>
46800
46801         * m4/mempcpy.m4: New file.
46802
46803 2003-07-14  Simon Josefsson  <jas@extundo.com>
46804
46805         * lib/mempcpy.h: New file.
46806         * lib/mempcpy.c: New file.
46807
46808 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46809
46810         * modules/getdate, modules/posixtm: Depend on mktime.
46811
46812 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46813
46814         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
46815         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
46816         unicodeio.c, unicodeio.h, unlocked-io.h:
46817         Switch from LGPL to GPL.
46818
46819 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46820
46821         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
46822         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
46823         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
46824         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
46825         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
46826         updated automatically by ../config/srclist-update.  This changes
46827         their license from LPGL to GPL.
46828
46829 2003-07-14  Paul Eggert  <eggert@twinsun.com>
46830
46831         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
46832         assumed to refer to the root of the most recent stable gettext version.
46833         * config/srclistvars.sh: Add defaults for eggert.
46834         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
46835         Match "This program" as well as "The program".  This is needed
46836         for gettext.
46837
46838 2003-07-14  Jim Meyering  <jim@meyering.net>
46839
46840         Don't emit diagnostics.  Let callers do that.
46841         * lib/save-cwd.c: Don't include "error.h".
46842         (save_cwd): Don't call error.  Ensure that errno is valid
46843         when returning nonzero.
46844
46845         * lib/save-cwd.h (restore_cwd): Update prototype.
46846         * lib/save-cwd.c (restore_cwd): Remove two parameters.
46847         Simplify.  Don't call error upon failure.  Let callers do that.
46848         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
46849         when auditing is enabled.  But don't bother updating the #if.
46850
46851 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
46852
46853         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
46854         it breaks C++ compilation.
46855         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
46856
46857 2003-07-10  Simon Josefsson  <jas@extundo.com>
46858
46859         * modules/strchrnul (Makefile.am): Add strchrnul.h.
46860
46861 2003-07-10  Jim Meyering  <jim@meyering.net>
46862
46863         * m4/clock_time.m4: Remove trailing blank.
46864         * m4/intmax_t.m4: Likewise.
46865
46866 2003-07-10  Jim Meyering  <jim@meyering.net>
46867
46868         * lib/vasnprintf.c: Remove trailing blanks.
46869         Make cpp indentation consistent.
46870
46871 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46872
46873         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
46874         posixver.c, strftime.c, strnlen.c, strverscmp.c:
46875         Switch from LGPL to GPL.
46876
46877 2003-07-09  Paul Eggert  <eggert@twinsun.com>
46878
46879         * config/srclist.txt: Sort sublists.  Add
46880         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
46881         that differ from gnulib for one reason or another; we'd like this list
46882         to be smaller but for now let's document what we have.
46883
46884 2003-07-08  Paul Eggert  <eggert@twinsun.com>
46885
46886         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
46887         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
46888         and sweeter "eval x=$x".
46889         * config/srclist.txt: Get lib/argp* from glibc.
46890
46891 2003-07-07  Paul Eggert  <eggert@twinsun.com>
46892
46893         * lib/mktime.c: Fix some boundary cases and remove need for floating
46894         point.
46895
46896         Issue a compile-time diagnostic if time_t is floating point, or if
46897         two's complement arithmetic is not in effect, or if arithmetic
46898         right shift does not propagate the sign.  These assumptions were
46899         all in the original code but they weren't checked.
46900
46901         (TIME_T_MIDPOINT, verify): New macros.
46902         (__isleap): Remove; it has integer overflow problems.
46903         (leapyear): New function, without those problems.
46904         (ydhms_tm_diff): Remove; splitting into two parts.
46905         (ydhms_diff): New function, containing the arithmetic part of
46906         the old ydhms_tm_diff function.  Issue a compile-time
46907         diagnostic if we are not using C99 integer division.
46908         Avoid casts when possible.
46909         (guess_time_tm): New function, containing the checking part of
46910         the old ydhms_tm_diff function.  Return the new value, rather than
46911         the difference between it and the old.  Accept a new argument T
46912         so that *T specifies the old value.  Check for overflow in the result.
46913
46914         (__mktime_internal): Use a time_t offset, not a long int offset.
46915         This undoes the 2003-06-04 change, which is no longer needed now
46916         that we have better overflow checking.
46917         (localtime_offset): Likewise.
46918
46919         (__mktime_internal): Avoid harmful overflow on hosts where time_t
46920         and long are 64-bit but int is only 32-bit.
46921         (ydhms_diff): Use long int to store year1 and yday1.
46922         Issue a compile-time diagnostic if long int is not wide enough.
46923
46924         (__mktime_internal): Use long int to store adjusted year and yday.
46925         Use plain C rather than preprocessor commands, if that doesn't
46926         affect efficiency.
46927         Check for overflow (and try to repair) after each probe
46928         rather than checking only at the very end.  This avoids some bugs
46929         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
46930         does not equal GMT offset at maximum time).
46931         Use integer to check for overflow rather than floating point; this
46932         is more portable to non-IEEE hosts, and is a tad faster.
46933         When we detect that we are oscillating between two values,
46934         don't check whether tm_isdst has the requested value, since
46935         we already know the answer.  When tm_isdst has the wrong value,
46936         use a different heuristic to find the right one, based on the
46937         extreme values actually observed in practice in tz2003a,
46938         rather than the (overly optimistic) "previous 3 calendar quarters".
46939
46940         (not_equal_tm, print_tm, check_result): Use "const T" rather than
46941         "T const" to accommodate glibc style.
46942         (check_result): Use less-confusing report format.  "long" -> "long int.
46943         (main): Likewise.
46944         Don't loop if the iteration overflows time_t.
46945         Allow a negative step in the iteration.
46946
46947 2003-07-06  Karl Berry  <karl@gnu.org>
46948
46949         * config/depcomp: update from automake.
46950         * config/config.sub: update from prep.
46951
46952 2003-07-03  Karl Berry  <karl@gnu.org>
46953
46954         * config/config.guess: update from prep.
46955
46956 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46957
46958         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
46959         xreadlink.c now includes it unconditionally.
46960
46961 2003-07-01  Paul Eggert  <eggert@twinsun.com>
46962
46963         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
46964         having it depend on HAVE_SYS_TYPES_H.
46965
46966 2003-07-01  Bruno Haible  <bruno@clisp.org>
46967
46968         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
46969         <sys/types.h> should be sufficient.
46970         Reported by Paul Eggert.
46971
46972 2003-06-26  Karl Berry  <karl@gnu.org>
46973
46974         * config/depcomp: update from automake.
46975
46976 2003-06-26  Bruno Haible  <bruno@clisp.org>
46977
46978         * modules/human: Depend on module stdbool.
46979
46980 2003-06-25  Bruno Haible  <bruno@clisp.org>
46981
46982         * modules/readlink: New file.
46983         * modules/xreadlink: Depend on it.
46984         * MODULES.html.sh (func_all_modules): Add readlink.
46985
46986 2003-06-25  Bruno Haible  <bruno@clisp.org>
46987
46988         * m4/readlink.m4: New file.
46989
46990 2003-06-25  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/readlink.c: New file.
46993
46994 2003-06-22  Karl Berry  <karl@gnu.org>
46995
46996         * config/srclist.txt: update mkinstalldirs from automake.
46997         * config/mkinstalldirs: update.
46998
46999 2003-06-22  Bruno Haible  <bruno@clisp.org>
47000
47001         Portability to mingw32.
47002         * m4/ssize_t.m4: New file, from GNU gettext.
47003         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
47004         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
47005
47006 2003-06-22  Bruno Haible  <bruno@clisp.org>
47007
47008         * modules/safe-read: Add m4/ssize_t.m4.
47009         * modules/xreadlink: Add m4/ssize_t.m4.
47010
47011 2003-06-20  Bruno Haible  <bruno@clisp.org>
47012
47013         Assume C89, so PARAMS isn't needed.
47014         * lib/unicodeio.h (PARAMS): Remove.
47015         * lib/unicodeio.c: Don't use PARAMS.
47016
47017 2003-06-18  Karl Berry  <karl@gnu.org>
47018
47019         * config/config.{guess,sub}: update from prep.
47020
47021 2003-06-18  Jim Meyering  <jim@meyering.net>
47022
47023         Merge changes from coreutils.
47024         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
47025         Remove explicit declarations of xmalloc and realloc.
47026         Include xalloc.h.
47027         (read_utmp): Remove anachronistic cast of xmalloc.
47028
47029 2003-06-17  Paul Eggert  <eggert@twinsun.com>
47030
47031         Assume C89, so PARAMS isn't needed.
47032         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
47033         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
47034         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
47035         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
47036         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
47037         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
47038         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
47039         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
47040         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
47041         lib/xstrtod.h, lib/xstrtol.h: Likewise.
47042         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
47043         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
47044         no longer needed. Anyway, config.h should always be included before any
47045         other file.
47046
47047 2003-06-11  Simon Josefsson  <jas@extundo.com>
47048
47049         * modules/sysexits: New file.
47050         * MODULES.html.sh (func_all_modules): Add sysexits.
47051
47052 2003-06-11  Simon Josefsson  <jas@extundo.com>
47053
47054         * lib/sysexit_.h: New file.
47055
47056 2003-06-11  Derek Price  <derek@ximbiot.com>
47057
47058         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
47059         necessary.
47060
47061 2003-06-11  Bruno Haible  <bruno@clisp.org>
47062
47063         * m4/sysexits.m4: New file.
47064
47065 2003-06-10  Simon Josefsson  <jas@extundo.com>
47066
47067         * lib/argp.h: New file, from glibc.
47068         * lib/argp-ba.c: New file, from glibc.
47069         * lib/argp-eexst.c: New file, from glibc.
47070         * lib/argp-fmtstream.c: New file, from glibc.
47071         * lib/argp-fmtstream.h: New file, from glibc.
47072         * lib/argp-fs-xinl.c: New file, from glibc.
47073         * lib/argp-help.c: New file, from glibc.
47074         * lib/argp-namefrob.h: New file, from glibc.
47075         * lib/argp-parse.c: New file, from glibc.
47076         * lib/argp-pv.c: New file, from glibc.
47077         * lib/argp-pvh.c: New file, from glibc.
47078         * lib/argp-xinl.c: New file, from glibc.
47079
47080 2003-06-10  Simon Josefsson  <jas@extundo.com>
47081
47082         * modules/strchrnul: New file.
47083
47084 2003-06-10  Simon Josefsson  <jas@extundo.com>
47085
47086         * modules/argp: New file.
47087
47088 2003-06-10  Simon Josefsson  <jas@extundo.com>
47089
47090         * m4/strchrnul.m4: New file.
47091
47092 2003-06-10  Simon Josefsson  <jas@extundo.com>
47093
47094         * lib/strchrnul.h: New file.
47095         * lib/strchrnul.c: New file.
47096
47097 2003-06-10  Bruno Haible  <bruno@clisp.org>
47098
47099         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
47100
47101 2003-06-07  Karl Berry  <karl@gnu.org>
47102
47103         * config/config.{guess,sub}: update from prep.
47104
47105 2003-06-07  Jim Meyering  <jim@meyering.net>
47106
47107         * modules/strtod: Use $(...) notation, not @...@ for
47108         AC_REPLACE'd variables.
47109         * modules/localcharset: Likewise.
47110
47111 2003-06-07  Jim Meyering  <jim@meyering.net>
47112
47113         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
47114         in place of my name in the copyright comment.
47115         Remove definition and uses of __P.
47116
47117         From coreutils.
47118         * lib/stat.c: Don't declare xmalloc explicitly.
47119         Instead, include "xalloc.h".
47120         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
47121         xrealloc, and xcalloc return values.
47122         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
47123         Improve comment.
47124         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
47125
47126 2003-06-07  Bruno Haible  <bruno@clisp.org>
47127
47128         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
47129         avoid AC_CONFIG_LINKS.
47130         * modules/fnmatch (Makefile.am): Use explicit creation rule for
47131         fnmatch.h, to avoid AC_CONFIG_LINKS.
47132         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
47133
47134 2003-06-07  Bruno Haible  <bruno@clisp.org>
47135
47136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
47137         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
47138         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47139         directory.
47140         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
47141         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47142         directory.
47143
47144 2003-06-06  Jim Meyering  <jim@meyering.net>
47145
47146         Merge from coreutils.
47147         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
47148         Consolidate declarations and initializations of *_base* locals.
47149
47150         Merge from coreutils.
47151         This avoids a core dump on systems without GNU putenv,
47152         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
47153         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
47154         (unsetenv): New static function, from GNU libc.
47155         (rpl_putenv): Use it.
47156
47157         * lib/modechange.c: Remove trailing blanks.
47158
47159         Merge from coreutils.
47160         * lib/fsusage.c: Remove declaration of statfs.
47161         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
47162
47163         * lib/posixtm.c: Include <stdbool.h> unconditionally.
47164
47165 2003-06-06  Jim Meyering  <jim@meyering.net>
47166
47167         * lib/stdbool_.h: Renamed from stdbool.h.in.
47168
47169 2003-06-06  Jim Meyering  <jim@meyering.net>
47170             Bruno Haible  <bruno@clisp.org>
47171
47172         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
47173         Adjust Makefile.am snippet not to redirect directly to target.
47174         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
47175
47176 2003-06-05  Paul Eggert  <eggert@twinsun.com>
47177
47178         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
47179         mismatch, look in future quarters as well as past.  This fixes a
47180         bug when processing fall-backwards gaps immediately after a long
47181         period of daylight-saving time.
47182
47183         * lib/mktime.c: Assume freestanding C89 or better.
47184         (HAVE_LIMITS_H): Remove.  Assume it's 1.
47185         (__P): Remove; not used.
47186         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
47187         (mktime, not_equal_tm, print_tm, check_result,
47188         main): Use prototypes.  Use const * where appropriate.
47189         (main): Fix typo in testing code that uncovered by above changes.
47190         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
47191
47192 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47193
47194         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
47195         locale.h, localeconv.  This merges changes from coreutils.
47196
47197         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
47198         It can be removed after the next Autoconf is released.
47199         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
47200         needed.
47201
47202 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47203
47204         * lib/mktime.c: Fix Debian bug 177940
47205         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
47206         (localtime_offset): Now long int, not time_t, because we want it
47207         to be guaranteed to be signed.  All uses changed.
47208         (__mktime_internal): If overflow would occur when adding offset,
47209         don't add it.
47210
47211         Merge 'human' changes from coreutils.  Rewrite to support
47212         locale-specific notations like thousands separators.
47213         * lib/human.c: Simplify authorship notice.
47214         Include human.h immediately after config.h.
47215         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
47216         <limits.h>: Do not include, since human.h does.
47217         (SIZE_MAX, UINTMAX_MAX): New macros.
47218         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
47219         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
47220         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
47221         (power_letter): Renamed from suffixes.
47222         (generate_suffix_backwards): Remove.
47223         (adjust_value): Now takes int style (because of human.h changes)
47224         and long double value (for greater precision on some platforms).
47225         (group_number): New function.
47226         (human_readable): Use it.  Use integer options, not enum.
47227         Put the options before the sizes in the arg list.
47228         Support all the new options.
47229         The old human_readable function has been removed;
47230         use inttostr.h instead.
47231         (human_readable, default_block_size, humblock):
47232         Use uintmax_t, not int, for block sizes.
47233         (human_readable_inexact, block_size_types): Remove.
47234         (block_size_opts): New constant.
47235         (human_options): Renamed from human_block_size, with new signature
47236         that allows block sizes up to UINTMAX_MAX.  All callers changed.
47237         * lib/human.h: Add copyright and authorship notice.
47238         Include <limits.h> and <stdbool.h> unconditionally.
47239         (PARAMS): Remove.  All uses removed.
47240         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
47241         (enum human_inexact_style): Remove tag; now a nameless enum.
47242         (human_floor, human_ceiling, human_round_to_even): Now have
47243         values 2, 0, 1 rather than -1, 1, 0.
47244         (human_group_digits, human_suppress_point_zero, human_autoscale,
47245         human_base_1024, human_SI, human_B): New constants.
47246         (human_readable_inexact, human_block_size): Remove.
47247         (human_readable): Size args are now uintmax_t, not int.
47248         (human_options): New decl.
47249
47250         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
47251         unnecessary now that we assume C89 or better.  This change
47252         imported from coreutils.
47253
47254         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47255         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
47256         in the 2003-05-30 sync from glibc.
47257
47258         .h files should stand alone, but we shouldn't include <sys/types.h>
47259         if we can get away with just <stddef.h>.
47260
47261         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
47262         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
47263         rather than <sys/types.h>, as we merely need size_t.
47264         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
47265         to get size_t.
47266         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
47267         Include <stdio.h>, to get FILE.
47268         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
47269         memcasecmp.h has included <stddef.h> and all we need is size_t.
47270         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
47271         our interface, instead of including <sys/types.h>
47272
47273 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47274
47275         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
47276         now, as glibc mktime is buggy on non-glibc systems.
47277
47278 2003-06-03  Karl Berry  <karl@gnu.org>
47279
47280         * config/config.sub: update from prep.
47281
47282 2003-06-02  Paul Eggert  <eggert@twinsun.com>
47283
47284         [from coreutils]
47285         Fix some minor time-related bugs with POSIX time arguments.
47286         Some valid time stamps were being rejected (notably -1, and
47287         time stamps before 1900 on 64-bit hosts).  And some invalid
47288         time stamps were being accepted, e.g. September 31.
47289
47290         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
47291         that we can return (time_t) -1 successfully.
47292         * lib/posixtm.c: Likewise.
47293         [HAVE_STDBOOL_H]: Include <stdbool.h>.
47294         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
47295         (t): Remove static var.
47296         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
47297         of static var.  All uses changed.
47298         (year): Do not reject years before 1900; they can occur with
47299         64-bit time_t.
47300         (posix_time_parse): Do not check for out-of-range components;
47301         that is now the caller's responsibility, since our checks were
47302         only approximations.
47303         (posixtime): Use mktime to check for out-of-range components,
47304         since it knows them exactly.
47305         If mktime returns (time_t) -1, check whether an error actually occurred
47306         by invoking localtime on -1.
47307         (main) [TEST_POSIXTIME]: Check for input data errors, and report
47308         posixtime failures better.
47309         Improve the test data (in comments only).
47310
47311 2003-06-02  Karl Berry  <karl@gnu.org>
47312
47313         * config/mkinstalldirs (version): new variable.
47314         (--version): new option.
47315         (usage): improve message.
47316
47317 2003-05-30  Karl Berry  <karl@gnu.org>
47318
47319         * lib/mktime.c: update from libc.
47320
47321 2003-05-30  Bruno Haible  <bruno@clisp.org>
47322
47323         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
47324         * config/config.rpath: Upgrade to gettext-0.12.1.
47325
47326 2003-05-30  Bruno Haible  <bruno@clisp.org>
47327
47328         * m4/gettext.m4: Upgrade to gettext-0.12.1.
47329         * m4/nls.m4: New file, from gettext-0.12.1.
47330         * m4/po.m4: New file, from gettext-0.12.1.
47331         * m4/progtest.m4: Upgrade to gettext-0.12.1.
47332
47333 2003-05-30  Bruno Haible  <bruno@clisp.org>
47334
47335         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
47336         * lib/localcharset.h: Likewise.
47337         * lib/localcharset.c: Likewise.
47338
47339 2003-05-29  Karl Berry  <karl@gnu.org>
47340
47341         * config/config.rpath: update from gettext.
47342
47343 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47344
47345         Assume the headers required for C89 freestanding compilers.
47346         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
47347         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
47348         * m4/human.m4 (gl_HUMAN): Likewise.
47349         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
47350         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
47351         * m4/userspec.m4 (gl_USERSPEC): Likewise.
47352         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
47353         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47354         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
47355
47356 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47357
47358         Assume the headers required for C89 freestanding compilers.
47359         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
47360         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
47361         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
47362         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
47363         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
47364         define, since <limits.h> is guaranteed to do that.
47365         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
47366         * lib/exclude.c: Include <stdbool.h> unconditionally.
47367         * lib/tempname.c: Include <stddef.h> unconditionally.
47368         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
47369         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
47370         <stddef.h> does that.
47371         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
47372         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
47373         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
47374         needed.
47375         * lib/xstrtol.c: Likewise.
47376         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
47377         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
47378
47379         * lib/addext.c (addext): Use assignment rather than cast, to avoid
47380         warnings on some platforms.
47381
47382         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47383         arbitrarily.
47384
47385 2003-05-26  Jim Meyering  <jim@meyering.net>
47386
47387         Merge in a change from coreutils:
47388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
47389         that is guaranteed to be `no'.  Use `no_such_member' to indicate
47390         that condition, rather than `-1' which is slightly misleading.
47391         Change the name of the cache variable to have the gl_ prefix.
47392         Prompted by a patch from Richard Dawe for DJGPP.
47393
47394 2003-05-24  Karl Berry  <karl@gnu.org>
47395
47396         * config/config.guess: update from prep.
47397
47398 2003-05-22  Karl Berry  <karl@gnu.org>
47399
47400         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
47401
47402 2003-05-20  Karl Berry  <karl@gnu.org>
47403
47404         * config/config.guess: update from prep.
47405
47406 2003-05-18  Karl Berry  <karl@gnu.org>
47407
47408         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
47409         might actually be set by the user.
47410
47411         * config/depcomp, install-sh, mdate-sh: update from automake.
47412
47413 2003-05-17  Bruno Haible  <bruno@clisp.org>
47414
47415         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
47416         invalid expansion for AC_EGREP_CPP.
47417         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47418         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47419         Suggested by Akim Demaille <akim@epita.fr> in
47420         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
47421
47422 2003-05-12  Jim Meyering  <jim@meyering.net>
47423
47424         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
47425         the space-padded-by-default conversion specifiers, %e, %k, %l.
47426
47427 2003-05-12  Bruno Haible  <bruno@clisp.org>
47428
47429         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
47430         the string is longer than 4 KB.
47431
47432 2003-05-11  Karl Berry  <karl@gnu.org>
47433
47434         * config/config.{guess,sub}: update from prep.
47435
47436 2003-05-09  Bruno Haible  <bruno@clisp.org>
47437
47438         * modules/error: Add m4/strerror_r.m4 to file list.
47439
47440 2003-05-03  Bruno Haible  <bruno@clisp.org>
47441
47442         Upgrade to Unicode-4.0.
47443         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
47444         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
47445         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
47446         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
47447         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
47448         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
47449         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
47450         Change width of U+E0100..U+E01EF from 1 to 0.
47451
47452 2003-04-25  Jim Meyering  <jim@meyering.net>
47453
47454         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
47455         of type size_t, not int.
47456
47457 2003-04-25  Bruno Haible  <bruno@clisp.org>
47458
47459         * lib/copy-file.c: Include <stddef.h>, for size_t.
47460
47461 2003-04-21  Paul Eggert  <eggert@twinsun.com>
47462
47463         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
47464         code which expansion is under static control.  Patch imported from
47465         Akim Demaille's patch to Bison; see
47466         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
47467
47468 2003-04-14  Bruno Haible  <bruno@clisp.org>
47469
47470         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
47471
47472 2003-04-11  Jim Meyering  <jim@meyering.net>
47473
47474         Merge changes from Coreutils.
47475
47476         2003-03-22  Jim Meyering  <jim@meyering.net>
47477
47478         * lib/strftime.c (widen): Cast alloca return value to proper type.
47479
47480         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
47481
47482         From GNU libc.
47483         * lib/strftime.c (my_strftime): Handle very large width
47484         specifications for numeric values correctly.  Improve checks for
47485         overflow.
47486
47487         2003-01-19  Jim Meyering  <jim@meyering.net>
47488
47489         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
47490         definitions.
47491         (nl_get_alt_digit) [! defined my_strftime]: Define.
47492         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
47493         _nl_get_alt_digit and _nl_get_walt_digit.
47494
47495         * lib/strftime.c (my_strftime): Merge in locale-related changes from
47496         libc. These changes have no effect outside of _LIBC.
47497
47498 2003-04-10  Bruno Haible  <bruno@clisp.org>
47499
47500         * modules/findprog: New file.
47501         * MODULES.html.sh (func_all_modules): Add it.
47502
47503 2003-04-10  Bruno Haible  <bruno@clisp.org>
47504
47505         * m4/findprog.m4: New file.
47506         * m4/eaccess.m4: New file.
47507
47508 2003-04-10  Bruno Haible  <bruno@clisp.org>
47509
47510         * lib/findprog.h: New file, from GNU gettext.
47511         * lib/findprog.c: New file, from GNU gettext.
47512
47513 2003-04-05  Jim Meyering  <jim@meyering.net>
47514
47515         Merge changes from Coreutils.
47516
47517         * lib/exclude.h (PARAMS): Remove definition and uses.
47518         * lib/exclude.c: Remove uses of `PARAMS'.
47519
47520         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
47521         Add test-cases for DOS filenames. Declare program_name.
47522         (main): Set up program_name.  Patch by Rich Dawe.
47523
47524         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
47525         error from mntctl.
47526         Use mntctl's return value to drive the entry-processing loop, since
47527         we can't rely on the value of the vmt_length member in the last
47528         entry.  On some systems doing so could result in exhausting
47529         virtual memory.  Based in part on a patch from Mike Jetzer.
47530
47531 2003-04-04  Bruno Haible  <bruno@clisp.org>
47532
47533         * modules/linebreak: New file.
47534         * MODULES.html.sh (func_all_modules): Add it.
47535
47536 2003-04-04  Bruno Haible  <bruno@clisp.org>
47537
47538         * m4/linebreak.m4: New file.
47539
47540 2003-04-04  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/linebreak.h: New file, from GNU gettext.
47543         * lib/linebreak.c: New file, from GNU gettext with slight
47544         modifications.
47545         * lib/lbrkprop.h: New file, from GNU gettext.
47546
47547 2003-04-03  Bruno Haible  <bruno@clisp.org>
47548
47549         * modules/utf8-ucs4: New file.
47550         * modules/utf16-ucs4: New file.
47551         * modules/ucs4-utf8: New file.
47552         * modules/ucs4-utf16: New file.
47553         * MODULES.html.sh (func_all_modules): Add them.
47554
47555 2003-04-03  Bruno Haible  <bruno@clisp.org>
47556
47557         * m4/utf-ucs4.m4: New file.
47558         * m4/ucs4-utf.m4: New file.
47559
47560 2003-04-03  Bruno Haible  <bruno@clisp.org>
47561
47562         * lib/utf8-ucs4.h: New file, from GNU gettext.
47563         * lib/utf16-ucs4.h: New file, from GNU gettext.
47564         * lib/ucs4-utf8.h: New file, from GNU gettext.
47565         * lib/ucs4-utf16.h: New file, from GNU gettext.
47566
47567 2003-04-02  Bruno Haible  <bruno@clisp.org>
47568
47569         * modules/binary-io: New file.
47570         * MODULES.html.sh (func_all_modules): Add it.
47571
47572 2003-04-02  Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/binary-io.h: New file, from GNU gettext.
47575
47576 2003-04-01  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/pathname: New file.
47579         * MODULES.html.sh (func_all_modules): Add it.
47580
47581 2003-04-01  Bruno Haible  <bruno@clisp.org>
47582
47583         * lib/pathname.h: New file, from GNU gettext.
47584         * lib/concatpath.c: New file, from GNU gettext.
47585
47586 2003-03-30  Bruno Haible  <bruno@clisp.org>
47587
47588         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
47589
47590 2003-03-30  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
47593         function chown() doesn't exist.
47594
47595 2003-03-28  Bruno Haible  <bruno@clisp.org>
47596
47597         * modules/copy-file: New file.
47598         * MODULES.html.sh (func_all_modules): Add it.
47599
47600 2003-03-28  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/copy-file.m4: New file.
47603
47604 2003-03-28  Bruno Haible  <bruno@clisp.org>
47605
47606         * lib/copy-file.h: New file, from GNU gettext.
47607         * lib/copy-file.c: New file, from GNU gettext.
47608
47609 2003-03-18  Jim Meyering  <jim@meyering.net>
47610
47611         * lib/quote.c (quote_n): Fix typo in comment.
47612
47613 2003-03-18  Bruno Haible  <bruno@clisp.org>
47614
47615         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
47616         checking.
47617         * m4/onceonly_2_57.m4: Likewise.
47618
47619 2003-03-17  Bruno Haible  <bruno@clisp.org>
47620
47621         * m4/onceonly.m4: Require autoconf 2.54 or newer.
47622         (m4_quote): Remove macro.
47623         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
47624
47625 2003-03-14  Jim Meyering  <jim@meyering.net>
47626
47627         Merge changes from Coreutils.
47628         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
47629         to be const, in order to avoid warnings.
47630         (obstack_room): Likewise.
47631         (obstack_empty_p): Likewise.
47632
47633 2003-03-14  Bruno Haible  <bruno@clisp.org>
47634
47635         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
47636         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
47637
47638 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47639
47640         Merge changes from Bison.
47641         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
47642         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
47643         when compiling Bison 1.875's `bitset bset = obstack_alloc
47644         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
47645         * lib/hash.c: Include <stdbool.h> unconditionally.
47646
47647 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47648
47649         * m4/onceonly.m4 (m4_quote): New macro.
47650         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
47651         Quote AC_FOREACH variable-expansions properly.
47652
47653 2003-03-13  Paul Eggert  <eggert@twinsun.com>
47654
47655         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
47656
47657 2003-03-09  Paul Eggert  <eggert@twinsun.com>
47658
47659         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
47660         Reported by Bruce Becker; see:
47661         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
47662
47663 2003-03-03  Paul Eggert  <eggert@twinsun.com>
47664             Bruno Haible  <bruno@clisp.org>
47665
47666         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
47667         Reported by John Hughes, see
47668         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
47669
47670 2003-02-20  Bruno Haible  <bruno@clisp.org>
47671
47672         * MODULES.html.sh (func_all_modules): Add poll.
47673
47674 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47675
47676         * modules/poll: New file.
47677
47678 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47679
47680         * lib/poll_.h: New file.
47681         * lib/poll.c: New file.
47682
47683 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
47684
47685         * m4/poll.m4: New file.
47686
47687 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47688
47689         * modules/mathl: New file.
47690
47691 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47692
47693         * lib/mathl.h: New file.
47694         * lib/acosl.c: New file.
47695         * lib/asinl.c: New file.
47696         * lib/atanl.c: New file.
47697         * lib/ceill.c: New file.
47698         * lib/cosl.c: New file.
47699         * lib/expl.c: New file.
47700         * lib/floorl.c: New file.
47701         * lib/frexpl.c: New file.
47702         * lib/ldexpl.c: New file.
47703         * lib/logl.c: New file.
47704         * lib/sincosl.c: New file.
47705         * lib/sinl.c: New file.
47706         * lib/sqrtl.c: New file.
47707         * lib/tanl.c: New file.
47708         * lib/trigl.c: New file.
47709         * lib/trigl.h: New file.
47710
47711 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
47712
47713         * m4/mathl.m4: New file.
47714
47715 2003-02-18  Bruno Haible  <bruno@clisp.org>
47716
47717         * MODULES.html.sh (func_all_modules): Add mathl.
47718
47719 2003-02-17  Bruno Haible  <bruno@clisp.org>
47720
47721         * modules/mkdtemp: New module.
47722         * MODULES.html.sh (func_all_modules): Add it.
47723
47724 2003-02-17  Bruno Haible  <bruno@clisp.org>
47725
47726         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
47727
47728 2003-02-17  Bruno Haible  <bruno@clisp.org>
47729
47730         * lib/mkdtemp.h: New file, from GNU gettext.
47731         * lib/mkdtemp.c: New file, from GNU gettext.
47732
47733 2003-02-02  Jim Meyering  <jim@meyering.net>
47734
47735         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
47736         e.g. glibc-2.2.93.
47737
47738 2003-01-31  Bruno Haible  <bruno@clisp.org>
47739
47740         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
47741         'rpl_rename'.
47742         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
47743         'rpl_strnlen'.
47744         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
47745         'rpl_strtod'.
47746         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
47747         'rpl_utime'.
47748
47749 2003-01-31  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/rename.c: #undef rename before defining rpl_rename.
47752         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
47753
47754 2003-01-30  Bruno Haible  <bruno@clisp.org>
47755
47756         * modules/vasnprintf, modules/vasprintf: New modules.
47757         * MODULES.html.sh (func_all_modules): Add them.
47758
47759 2003-01-30  Bruno Haible  <bruno@clisp.org>
47760
47761         * m4/signed.m4: New file, from GNU gettext.
47762         * m4/longdouble.m4: New file, from GNU gettext.
47763         * m4/wchar_t.m4: New file, from GNU gettext.
47764         * m4/wint_t.m4: New file, from GNU gettext.
47765         * m4/vasnprintf.m4: New file.
47766         * m4/vasprintf.m4: New file.
47767
47768 2003-01-30  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/printf-args.h: New file, from GNU gettext.
47771         * lib/printf-args.c: New file, from GNU gettext.
47772         * lib/printf-parse.h: New file, from GNU gettext.
47773         * lib/printf-parse.c: New file, from GNU gettext.
47774         * lib/vasnprintf.h: New file, from GNU gettext.
47775         * lib/vasnprintf.c: New file, from GNU gettext.
47776         * lib/asnprintf.c: New file, from GNU gettext.
47777         * lib/vasprintf.h: New file, from GNU gettext with modifications.
47778         * lib/vasprintf.c: New file, from GNU gettext.
47779         * lib/asprintf.c: New file, from GNU gettext.
47780
47781 2003-01-29  Bruno Haible  <bruno@clisp.org>
47782
47783         * modules/stpncpy: New module.
47784         * MODULES.html.sh (func_all_modules): Add it.
47785
47786 2003-01-29  Bruno Haible  <bruno@clisp.org>
47787
47788         * m4/stpncpy.m4: New file.
47789
47790 2003-01-29  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/stpncpy.h: New file, from GNU gettext with modifications.
47793         * lib/stpncpy.c: New file, from GNU gettext with modifications.
47794
47795 2003-01-28  Bruno Haible  <bruno@clisp.org>
47796
47797         * modules/c-ctype: New module.
47798         * MODULES.html.sh (func_all_modules): Add it.
47799
47800 2003-01-28  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
47803         Paul Eggert.
47804         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
47805         Paul Eggert.
47806
47807 2003-01-27  Bruno Haible  <bruno@clisp.org>
47808
47809         * modules/xsetenv: New module.
47810         * MODULES.html.sh (func_all_modules): Add it.
47811
47812 2003-01-27  Bruno Haible  <bruno@clisp.org>
47813
47814         * lib/xsetenv.h: New file, from GNU gettext.
47815         * lib/xsetenv.c: New file, from GNU gettext.
47816
47817 2003-01-23  Jim Meyering  <jim@meyering.net>
47818
47819         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
47820         from working on systems without dirfd (at least Irix and OSF1/Tru64).
47821
47822 2003-01-23  Bruno Haible  <bruno@clisp.org>
47823
47824         * modules/minmax: New module.
47825         * MODULES.html.sh (func_all_modules): Add it.
47826
47827 2003-01-23  Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
47830         Eggert.
47831
47832 2003-01-22  Bruno Haible  <bruno@clisp.org>
47833
47834         * modules/exit: New module.
47835         * MODULES.html.sh (func_all_modules): Add it.
47836
47837 2003-01-22  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/exit.h: New file, from GNU gettext.
47840
47841 2003-01-19  Bruno Haible  <bruno@clisp.org>
47842
47843         * gnulib-tool: Recognize option --extract-maintainer.
47844         (func_get_maintainer): New function.
47845         * modules/*: Add Maintainer entry.
47846
47847 2003-01-16  Jim Meyering  <jim@meyering.net>
47848
47849         * m4/regex.m4: The `regex' struct is both input and output.
47850         Initialize it before each use.  Patch by Tim Waugh.
47851
47852 2003-01-16  Bruno Haible  <bruno@clisp.org>
47853
47854         * MODULES.html.sh: Add a table of contents. Add the module name as
47855         leftmost column. Add hyperlinks.
47856
47857 2003-01-15  Bruno Haible  <bruno@clisp.org>
47858
47859         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
47860
47861 2003-01-15  Bruno Haible  <bruno@clisp.org>
47862
47863         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
47864         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
47865         suffix.
47866
47867 2003-01-15  Bruno Haible  <bruno@clisp.org>
47868
47869         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
47870
47871 2003-01-15  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
47874         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
47875
47876 2003-01-14  Jim Meyering  <jim@meyering.net>
47877
47878         * lib/same.c (same_name): Tweak a comment.
47879
47880 2003-01-14  Bruno Haible  <bruno@clisp.org>
47881
47882         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
47883         when a string comparison is sufficient.
47884
47885 2003-01-14  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
47888         'unsigned int'.
47889
47890 2003-01-14  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/hash-pjw.c: Add comment about low quality of this function.
47893
47894 2003-01-13  Bruno Haible  <bruno@clisp.org>
47895
47896         * modules/stpcpy: Distribute lib/stpcpy.h.
47897         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
47898
47899 2003-01-13  Bruno Haible  <bruno@clisp.org>
47900
47901         * modules/*: Add a description.
47902         * modules/strpbrk: Fix Makefile.am snippet.
47903         * modules/strtoimax: Fix dependencies.
47904         * modules/strtoumax: Likewise.
47905
47906 2003-01-13  Bruno Haible  <bruno@clisp.org>
47907
47908         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
47909         * modules/alloca (Makefile.am): All object files depend on alloca.h.
47910         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
47911
47912 2003-01-13  Bruno Haible  <bruno@clisp.org>
47913
47914         * gnulib-tool (func_create_testdir): Store config/* files in the main
47915         directory.
47916         * config.rpath: Move to ...
47917         * config/config.rpath: ... here.
47918         * modules/gettext: Contains config/config.rpath, not config.rpath.
47919         * modules/iconv: Likewise.
47920
47921 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47922
47923         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47924         to avoid collisions with libcurses and libreadline.
47925
47926         * m4/getstr.m4: Remove.
47927         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
47928
47929 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47930
47931         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47932         to avoid collisions with libcurses and libreadline.
47933
47934         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
47935         * lib/getstr.h, getstr.c: Remove.
47936         * lib/getline.c: Include "getline.h", to check interface.
47937         Move body of old getstr.c here: this defines MIN_CHUNK and
47938         declares getdelim2, which is renamed from getstr.
47939         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
47940
47941         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
47942         All uses changed.
47943         * lib/linebuffer.h: Likewise.
47944         (readline): Remove backward-compatibility macro.
47945
47946 2003-01-12  Paul Eggert  <eggert@twinsun.com>
47947
47948         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
47949         to avoid collisions with libcurses and libreadline.
47950         * getstr: Remove.
47951         * MODULES.html.sh: Remove getstr.
47952         * modules/getline: Depend on unlocked-io, not getstr.
47953
47954 2003-01-12  Jim Meyering  <jim@meyering.net>
47955
47956         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
47957
47958 2003-01-10  Bruno Haible  <bruno@clisp.org>
47959
47960         * modules/alloca: Change Makefile.am requirements. Simplify Include
47961         requirements. Add lib/alloca_.h to file list.
47962
47963 2003-01-10  Bruno Haible  <bruno@clisp.org>
47964
47965         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
47966
47967 2003-01-10  Bruno Haible  <bruno@clisp.org>
47968
47969         * lib/alloca_.h: New file.
47970         * lib/getdate.y: Unconditionally include alloca.h.
47971         * lib/makepath.c: Likewise.
47972         * lib/setenv.c: Likewise.
47973         * lib/userspec.c: Likewise.
47974
47975 2003-01-09  Karl Berry  <karl@gnu.org>
47976
47977         * MODULES.html.sh: include `dirname $0` in PATH, to find
47978         gnulib-tool.
47979
47980 2003-01-09  Bruno Haible  <bruno@clisp.org>
47981
47982         * modules/stdbool: Change configure.ac, Makefile.am requirements.
47983         Simplify Include requirements. Add lib/stdbool.h.in to file list.
47984
47985 2003-01-09  Bruno Haible  <bruno@clisp.org>
47986
47987         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
47988
47989 2003-01-09  Bruno Haible  <bruno@clisp.org>
47990
47991         * lib/stdbool.h.in: New file.
47992
47993 2003-01-09  Bruno Haible  <bruno@clisp.org>
47994
47995         * gnulib-tool (func_all_modules): Ignore files ending in ~.
47996         * MODULES.html.sh: Likewise.
47997
47998 2003-01-08  Jim Meyering  <jim@meyering.net>
47999
48000         * lib/full-write.c: Undefine and define-away `const' after inclusion
48001         of errno.h, not before.  Suggestion from Bruno Haible.
48002
48003 2003-01-08  Bruno Haible  <bruno@clisp.org>
48004
48005         * modules/full-read: Depend on full-write.
48006
48007 2003-01-08  Bruno Haible  <bruno@clisp.org>
48008
48009         * lib/safe-read.c: Include specification header first, to ensure its
48010         selfcontainedness.
48011         * lib/full-write.c: Likewise.
48012
48013 2003-01-07  Jim Meyering  <jim@meyering.net>
48014
48015         * lib/full-write.c: Rework so that it may serve to define full_read,
48016         too.
48017         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
48018
48019 2003-01-07  Bruno Haible  <bruno@clisp.org>
48020
48021         * lib/strtoimax.c: Include <stdint.h> as an alternative to
48022         <inttypes.h>.
48023         * lib/xstrtol.h: Likewise.
48024         * lib/xstrtoimax.c: Likewise.
48025         * lib/xstrtoumax.c: Likewise.
48026         * lib/human.h: Likewise.
48027
48028         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
48029         on systems that have <inttypes.h> but not <stdint.h>.
48030
48031 2003-01-07  Bruno Haible  <bruno@clisp.org>
48032
48033         * MODULES.html.sh: Add copyright notice.
48034         (missed_files): Omit CVS directory entries.
48035         (func_module): Make it work with sed-3.02.
48036         * MODULES.txt: Remove file.
48037
48038 2003-01-06  Jim Meyering  <jim@meyering.net>
48039
48040         * lib/version-etc.c: Update year in translatable copyright string.
48041
48042 2003-01-03  Karl Berry  <karl@gnu.org>
48043
48044         * config/config.{guess,sub}: update from prep.
48045
48046 2003-01-02  Karl Berry  <karl@gnu.org>
48047
48048         * doc/COPYING.DOC: belatedly updated to 1.2.
48049
48050 2003-01-01  Karl Berry  <karl@gnu.org>
48051
48052         * gnulib-tool (func_verify_module): report module name $module in
48053         error message, not $1.
48054         * gnulib-tool (create-testdir): don't complain if destdir couldn't
48055         be created, only if it doesn't exist.
48056         * gnulib-tool (last_checkin_date): don't expand the $Date here.
48057
48058 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48059
48060         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
48061
48062 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48063
48064         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
48065         memcmp if strcoll doesn't work.
48066
48067 2002-12-31  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/utime.c (utime_null): No need to call ftruncate if the file was
48070         nonempty.
48071
48072 2002-12-31  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/memcoll.c (STRCOLL): New macro.
48075         (memcoll): Use it.
48076
48077 2002-12-31  Bruno Haible  <bruno@clisp.org>
48078
48079         * lib/localcharset.h: New file.
48080         * lib/localcharset.c: Include it.
48081         * lib/unicodeio.c: Likewise.
48082
48083 2002-12-31  Bruno Haible  <bruno@clisp.org>
48084
48085         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
48086         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
48087
48088 2002-12-31  Bruno Haible  <bruno@clisp.org>
48089
48090         * lib/getline.h: Include <stddef.h>, for size_t.
48091
48092         * lib/unicodeio.h: Include <stddef.h>, for size_t.
48093         * lib/unicodeio.c: Don't include <stddef.h>.
48094
48095 2002-12-31  Bruno Haible  <bruno@clisp.org>
48096
48097         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
48098         HAVE_TM_ZONE.
48099
48100 2002-12-24  Karl Berry  <karl@gnu.org>
48101
48102         * config/config.guess: update from prep.
48103
48104 2002-12-24  Bruno Haible  <bruno@clisp.org>
48105
48106         General infrasructure.
48107         * m4/README: Rewritten.
48108         * m4/onceonly.m4: New file.
48109         * m4/onceonly_2_57.m4: New file.
48110
48111         Module atexit.
48112         * m4/atexit.m4: New file.
48113
48114         Module strtod.
48115         * m4/strtod.m4: New file.
48116
48117         Module strtol.
48118         * m4/strtol.m4: New file.
48119
48120         Module strtoul.
48121         * m4/strtoul.m4: New file.
48122
48123         Module memchr.
48124         * m4/memchr.m4: New file.
48125
48126         Module memcmp.
48127         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
48128         (jm_FUNC_MEMCMP): Invoke it.
48129
48130         Module memcpy.
48131         * m4/memcpy.m4: New file.
48132
48133         Module memmove.
48134         * m4/memmove.m4: New file.
48135
48136         Module memset.
48137         * m4/memset.m4: New file.
48138
48139         Module strcspn.
48140         * m4/strcspn.m4: New file.
48141
48142         Module strpbrk.
48143         * m4/strpbrk.m4: New file.
48144
48145         Module strstr.
48146         * m4/strstr.m4: New file.
48147
48148         Module strerror.
48149         * m4/strerror.m4: New file.
48150
48151         Module mktime.
48152         * m4/mktime.m4: Renamed from jm-mktime.m4.
48153         (gl_PREREQ_MKTIME): New macro.
48154         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
48155
48156         Module malloc.
48157         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
48158         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
48159         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
48160
48161         Module realloc.
48162         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
48163         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
48164         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
48165
48166         Module strftime.
48167         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
48168         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
48169         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
48170         gl_TM_GMTOFF.
48171         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
48172
48173         Module xalloc.
48174         * m4/xalloc.m4: New file.
48175
48176         Module alloca.
48177         * m4/alloca.m4: New file.
48178
48179         Module putenv.
48180         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
48181         (jm_FUNC_PUTENV): Invoke it.
48182
48183         Module setenv.
48184         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
48185         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
48186         when invoked twice.
48187         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
48188         gt_FUNC_SETENV.
48189
48190         Module memrchr.
48191         * m4/memrchr.m4: New file.
48192
48193         Module stpcpy.
48194         * m4/stpcpy.m4: New file.
48195
48196         Module strcase.
48197         * m4/strcase.m4: New file.
48198
48199         Module strdup.
48200         * m4/strdup.m4: New file.
48201
48202         Module strnlen.
48203         * m4/strnlen.m4: New file.
48204
48205         Module strndup.
48206         * m4/strndup.m4: New file.
48207
48208         Module xstrtod.
48209         * m4/xstrtod.m4: New file.
48210
48211         Module xstrtol.
48212         * m4/xstrtol.m4: New file.
48213
48214         Module getdate.
48215         * m4/getdate.m4: New file.
48216
48217         Module unlocked-io.
48218         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
48219         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
48220         * m4/jm-glibc-io.m4n: Remove file.
48221
48222         Module long-options.
48223         * m4/long-options.m4: New file.
48224
48225         Module md5.
48226         * m4/md5.m4: New file.
48227
48228         Module sha.
48229         * m4/sha.m4: New file.
48230
48231         Module getstr.
48232         * m4/getstr.m4: New file.
48233
48234         Module getline.
48235         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
48236         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
48237         <sys/types.h>, for size_t. Use the function name gnu_getline, not
48238         simply getline. Infoke gl_PREREQ_GETLINE.
48239
48240         Module obstack.
48241         * m4/obstack.m4: New file.
48242
48243         Module hash.
48244         * m4/hash.m4: New file.
48245
48246         Module readtokens.
48247         * m4/readtokens.m4: New file.
48248
48249         Module strverscmp.
48250         * m4/strverscmp.m4: New file.
48251
48252         Module stdbool.
48253         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
48254         OSF/1.
48255
48256         Module strtoll.
48257         * m4/strtoll.m4: New file.
48258
48259         Module strtoull.
48260         * m4/strtoull.m4: New file.
48261
48262         Module strtoimax.
48263         * m4/strtoimax.m4: New file.
48264
48265         Module strtoumax.
48266         * m4/strtoumax.m4: New file.
48267
48268         Module xstrtoimax.
48269         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
48270         jm_AC_PREREQ_XSTRTOIMAX.
48271         Moved the strtol prerequisites to strtol.m4.
48272         Moved the strtoll prerequisites to strtoll.m4.
48273         Moved the strtoimax prerequisites to strtoimax.m4.
48274
48275         Module xstrtoumax.
48276         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
48277         jm_AC_PREREQ_XSTRTOUMAX.
48278         Moved the strtoul prerequisites to strtoul.m4.
48279         Moved the strtoull prerequisites to strtoull.m4.
48280         Moved the strtoumax prerequisites to strtoumax.m4.
48281
48282         Module chown.
48283         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
48284         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
48285
48286         Module dup2.
48287         * m4/dup2.m4: New file.
48288
48289         Module ftruncate.
48290         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
48291         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
48292
48293         Module getgroups.
48294         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
48295         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
48296
48297         Module gettimeofday.
48298         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
48299         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
48300         gl_PREREQ_GETTIMEOFDAY.
48301
48302         Module mkdir.
48303         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
48304         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
48305
48306         Module mkstemp.
48307         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
48308         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
48309         jm_AC_TYPE_UINTMAX_T.
48310         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
48311
48312         Module stat.
48313         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
48314         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
48315
48316         Module lstat.
48317         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
48318         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
48319
48320         Module timespec.
48321         * m4/timespec.m4 (gl_TIMESPEC): New macro.
48322         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
48323         * m4/st_mtim.m4: Indentation.
48324
48325         Module nanosleep.
48326         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
48327         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
48328         gl_PREREQ_NANOSLEEP.
48329
48330         Module regex.
48331         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
48332         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
48333         (gl_REGEX): New macro.
48334
48335         Module rename.
48336         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
48337         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
48338
48339         Module rmdir.
48340         * m4/rmdir.m4: New file.
48341
48342         Module utime.
48343         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
48344         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
48345         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
48346
48347         Module dirname.
48348         * m4/dirname.m4: New file.
48349
48350         Module getopt.
48351         * m4/getopt.m4: New file.
48352
48353         Module unistd-safer.
48354         * m4/unistd-safer.m4: New file.
48355
48356         Module fnmatch.
48357         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
48358         declaration.
48359         (gl_PREREQ_FNMATCH_EXTRA): New macro.
48360         (gl_FUNC_FNMATCH_POSIX): New macro.
48361         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
48362         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
48363         simply fnmatch.
48364
48365         Module exclude.
48366         * m4/exclude.m4: New file.
48367
48368         Module human.
48369         * m4/human.m4: New file.
48370
48371         Module acl.
48372         * m4/acl.m4: Nop.
48373
48374         Module backupfile.
48375         * m4/backupfile.m4: New file.
48376         * m4/d-ino.m4: Indentation.
48377
48378         Module fsusage.
48379         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
48380         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
48381         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
48382
48383         Module dirfd.
48384         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
48385         requirements.
48386
48387         Module euidaccess.
48388         * m4/euidaccess.m4: New file.
48389
48390         Module file-type.
48391         * m4/file-type.m4: New file.
48392
48393         Module fileblocks.
48394         * m4/fileblocks.m4: New file.
48395
48396         Module filemode.
48397         * m4/filemode.m4: New file.
48398
48399         Module isdir.
48400         * m4/isdir.m4: New file.
48401
48402         Module lchown.
48403         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
48404         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
48405
48406         Module makepath.
48407         * m4/makepath.m4: New file.
48408
48409         Module modechange.
48410         * m4/modechange.m4: New file.
48411
48412         Module mountlist.
48413         * m4/mountlist.m4: New file.
48414         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
48415         Indentation.
48416
48417         Module path-concat.
48418         * m4/path-concat.m4: New file.
48419
48420         Module pathmax.
48421         * m4/pathmax.m4: New file.
48422
48423         Module same.
48424         * m4/same.m4: New file.
48425
48426         Module save-cwd.
48427         * m4/save-cwd.m4: New file.
48428
48429         Module savedir.
48430         * m4/savedir.m4: New file.
48431
48432         Module xgetcwd.
48433         * m4/xgetcwd.m4: New file.
48434         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
48435
48436         Module xreadlink.
48437         * m4/xreadlink.m4: New file.
48438
48439         Module safe-read.
48440         * m4/safe-read.m4: New file.
48441
48442         Module safe-write.
48443         * m4/safe-write.m4: New file.
48444
48445         Module closeout.
48446         * m4/closeout.m4: New file.
48447
48448         Module stdio-safer.
48449         * m4/stdio-safer.m4: New file.
48450
48451         Module getpass.
48452         * m4/getpass.m4: New file.
48453
48454         Module getugroups.
48455         * m4/getugroups.m4: New file.
48456
48457         Module group-member.
48458         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
48459         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
48460
48461         Module idcache.
48462         * m4/idcache.m4: New file.
48463
48464         Module userspec.
48465         * m4/userspec.m4: New file.
48466
48467         Module gettime.
48468         * m4/clock_time.m4: New file.
48469         * m4/gettime.m4: New file.
48470
48471         Module settime.
48472         * m4/settime.m4: New file.
48473
48474         Module posixtm.
48475         * m4/posixtm.m4: New file.
48476
48477         Module gethostname.
48478         * m4/gethostname.m4: New file.
48479
48480         Module canon-host.
48481         * m4/canon-host.m4: New file.
48482
48483         Module gettext.
48484         * m4/codeset.m4: New file, from gettext-0.11.5.
48485         * m4/gettext.m4: New file, from gettext-0.11.5.
48486         * m4/glibc21.m4: New file, from gettext-0.11.5.
48487         * m4/iconv.m4: New file, from gettext-0.11.5.
48488         * m4/intdiv0.m4: New file, from gettext-0.11.5.
48489         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
48490         * m4/inttypes.m4: New file, from gettext-0.11.5.
48491         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
48492         * m4/isc-posix.m4: New file, from gettext-0.11.5.
48493         * m4/lcmessage.m4: New file, from gettext-0.11.5.
48494         * m4/lib-ld.m4: New file, from gettext-0.11.5.
48495         * m4/lib-link.m4: New file, from gettext-0.11.5.
48496         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
48497         * m4/progtest.m4: New file, from gettext-0.11.5.
48498         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
48499         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
48500         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
48501
48502         Module localcharset.
48503         * m4/localcharset.m4: New file.
48504
48505         Module hard-locale.
48506         * m4/hard-locale.m4: New file.
48507
48508         Module mbswidth.
48509         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
48510         onceonly macros.
48511         * m4/mbrtowc.m4: Add comment.
48512
48513         Module memcasecmp.
48514         * m4/memcasecmp.m4: New file.
48515
48516         Module memcoll.
48517         * m4/memcoll.m4: New file.
48518
48519         Module unicodeio.
48520         * m4/unicodeio.m4: New file.
48521
48522         Module rpmatch.
48523         * m4/rpmatch.m4: New file.
48524
48525         Module yesno.
48526         * m4/yesno.m4: New file.
48527
48528         Module exitfail.
48529         * m4/exitfail.m4: New file.
48530
48531         Module c-stack.
48532         * m4/c-stack.m4 (gl_C_STACK): New macro.
48533         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
48534
48535         Module error.
48536         * m4/error.m4 (gl_ERROR): New macro.
48537         (jm_PREREQ_ERROR): Use onceonly macros.
48538
48539         Module fatal.
48540         * m4/fatal.m4: New file.
48541
48542         Module getloadavg.
48543         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
48544         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
48545
48546         Module getpagesize.
48547         * m4/getpagesize.m4: New file.
48548
48549         Module getusershell.
48550         * m4/getusershell.m4: New file.
48551
48552         Module physmem.
48553         * m4/physmem.m4: New file.
48554
48555         Module posixver.
48556         * m4/posixver.m4: New file.
48557
48558         Module quotearg.
48559         * m4/quotearg.m4: New file.
48560
48561         Module quote.
48562         * m4/quote.m4: New file.
48563
48564         Module readutmp.
48565         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
48566
48567         Module sig2str.
48568         * m4/sig2str.m4: New file.
48569
48570         Other.
48571         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
48572         ulonglong.m4.
48573         * m4/intmax_t.m4: New file.
48574         * m4/d-type.m4: Indentation.
48575         * m4/jm-macros.m4: Update.
48576         * m4/prereq.m4 (jm_PREREQ): Update.
48577         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
48578         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
48579         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
48580         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
48581         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
48582         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
48583         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
48584         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
48585         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
48586         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
48587         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
48588         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
48589         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
48590         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
48591         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
48592         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
48593         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
48594         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
48595         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
48596
48597 2002-12-24  Bruno Haible  <bruno@clisp.org>
48598
48599         * MODULES.txt: Update according to m4/ changes.
48600
48601         Module gettext.
48602         * config.rpath: New file, from gettext-0.11.5.
48603
48604         * modules/*: New module descriptions.
48605         * gnulib-tool: New file.
48606         * MODULES.html.sh: New file.
48607
48608 2002-12-21  Karl Berry  <karl@gnu.org>
48609
48610         * doc/fdl.texi: update to version 1.2.
48611
48612 2002-12-19  Karl Berry  <karl@gnu.org>
48613
48614         * config/config.guess: update from prep.
48615
48616 2002-12-18  Bruno Haible  <bruno@clisp.org>
48617
48618         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
48619         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
48620
48621 2002-12-17  Bruno Haible  <bruno@clisp.org>
48622
48623         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
48624         stdlib.h, string.h.
48625
48626 2002-12-17  Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/canon-host.c (strdup): Remove unused declaration.
48629
48630         * lib/fsusage.c: Include full_read.h.
48631         (get_fs_usage): Use full_read instead of safe_read.
48632
48633         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
48634
48635 2002-12-12  Karl Berry  <karl@gnu.org>
48636
48637         * config/config.guess: update from prep.
48638
48639 2002-12-11  Bruno Haible  <bruno@clisp.org>
48640
48641         * m4/setenv.m4: New file, from gettext-0.11.5.
48642
48643 2002-12-11  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
48646         not unsetenv().
48647         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
48648         modifications:
48649
48650         2002-12-11  Bruno Haible  <bruno@clisp.org>
48651
48652                 * setenv.c (alloca): Fall back to malloc.
48653                 (freea): New macro.
48654                 (setenv): Use freea() to free memory allocated with alloca().
48655
48656         2002-11-13  Bruno Haible  <bruno@clisp.org>
48657
48658                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
48659                 function declarations.
48660                 * unsetenv.c (unsetenv): Likewise.
48661
48662         2002-03-04  Bruno Haible  <bruno@clisp.org>
48663
48664                 Portability to AIX 4.3.3.
48665                 * unsetenv.c: New file, extracted from setenv.c.
48666                 * setenv.c: Move the unsetenv() function to unsetenv.c.
48667
48668         2001-12-20  Bruno Haible  <bruno@clisp.org>
48669
48670                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
48671                 use malloc instead. For SunOS 4.
48672
48673         2001-12-11  Bruno Haible  <bruno@clisp.org>
48674
48675                 * setenv.c: Declare alloca.
48676                 (compar_fn_t): New typedef.
48677                 (KNOWN_VALUE, STORE_VALUE): Use it.
48678
48679         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
48680         setenv.h.
48681
48682 2002-12-10  Paul Eggert  <eggert@twinsun.com>
48683
48684         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
48685         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
48686         Choose values that are less likely to collide with system fnmatch
48687         options.
48688         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
48689         defined (e.g., a pure POSIX system).
48690         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
48691         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
48692
48693 2002-12-06  Paul Eggert  <eggert@twinsun.com>
48694
48695         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
48696         a pain in practice to deal with generated m4 files.  This change
48697         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
48698
48699         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
48700         and jm-glibc-io.m4, as they are no longer a special case.
48701         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
48702         kludge and the auto-generation stuff.  Check only whether the
48703         functions are declared, not whether they exist, since older hosts
48704         that don't declare the functions can't use the optimization anyway.
48705
48706 2002-12-06  Jim Meyering  <jim@meyering.net>
48707
48708         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
48709
48710         Merge in changes from libc's misc/error.c, in preparation
48711         for the merge of gnulib's changes back into libc.
48712
48713         * lib/error.c (_): Define only if not already defined.
48714         Move definition to follow all #include directives.
48715         Include unlocked-io.h only if !_LIBC.
48716         [_LIBC]: Include <libio/libioP.h>.
48717         [USE_IN_LIBIO]: Include <libio/iolibio.h>
48718         (fflush): Tweak definition to use INTUSE.
48719         (putc): Define.
48720
48721 2002-12-05  Paul Eggert  <eggert@twinsun.com>
48722
48723         * lib/alloca.c [defined emacs]: Include "lisp.h".
48724         (xalloc_die) [defined emacs]: New macro.
48725         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
48726         [! defined emacs]: Include <xalloc.h>.
48727         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
48728         (pointer): Typedef to POINTER_TYPE *.
48729         (malloc): Remove decl; we now always use xmalloc.
48730         (alloca): Use old-style definition, since Emacs needs this.
48731         Check for arithmetic overflow when computing combined size.
48732
48733 2002-12-04  Paul Eggert  <eggert@twinsun.com>
48734
48735         Do not generate unlocked-io.h automatically, since it's easier to
48736         maintain it by hand.
48737
48738         * lib/unlocked-io.h: New file, from GNU diffutils,
48739         but with proper copyright notice and attribution.
48740         * lib/gen-uio: Remove.
48741         * lib/Makefile.am: Add copyright notice.
48742         (libfetish_a_SOURCES): Add unlocked-io.h.
48743         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
48744         (DISTCLEANFILES, io_functions): Remove macros.
48745         (EXTRA_DIST): Remove gen_uio.
48746         (unlocked-io.h): Remove rule.
48747
48748 2002-12-04  Jim Meyering  <jim@meyering.net>
48749
48750         Reflect the fact that stat.c and lstat.c are no longer generated.
48751         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
48752         (DISTCLEANFILES): Likewise.
48753         (EXTRA_DIST): Likewise.
48754         (all_local): Don't depend on stat.c or lstat.c.
48755         (stat.c, lstat.c): Remove rules.
48756         (EXTRA_DIST): Remove xstat.in.
48757
48758         * lib/xstat.in: Remove file.  Contents moved into stat.c.
48759         * lib/stat.c: New file.  Contents mostly from xstat.in.
48760         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
48761         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
48762
48763         * lib/safe-read.c: Rework so that it may serve to define safe_write,
48764         too.
48765         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
48766
48767 2002-12-03  Jim Meyering  <jim@meyering.net>
48768
48769         * lib/safe-read.c, safe-write.c: Change variable names and comments,
48770         but not semantics, to minimize the differences between these two files.
48771         (safe_read): Change comment to mention SAFE_READ_ERROR.
48772
48773         * lib/safe-read.c (IS_EINTR): Define.
48774         (safe_read): Use IS_EINTR in place of in-function cpp directives.
48775
48776 2002-12-02  Jim Meyering  <jim@meyering.net>
48777
48778         * lib/safe-read.c (EINTR): Define.
48779         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48780         (INT_MAX): Provide fallback.
48781         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
48782
48783         * lib/safe-read.h (SAFE_READ_ERROR): Define.
48784
48785 2002-12-02  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
48788         Define, taken from safe-read.c.
48789         (INT_MAX): Provide fallback.
48790         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
48791         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
48792
48793         * lib/safe-read.c (EINTR): Remove definition.
48794         (safe_read): Don't use EINTR if it is absent.
48795
48796 2002-12-01  Jim Meyering  <jim@meyering.net>
48797
48798         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
48799         zero.
48800         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
48801
48802 2002-11-27  Paul Eggert  <eggert@twinsun.com>
48803
48804         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
48805         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
48806         with `if (! (value < limit)) abort ();', for readability.
48807
48808 2002-11-26  Karl Berry  <karl@gnu.org>
48809
48810         * lib/strdup.c: copy from libc again, with jim's ok.
48811         * lib/.cppi-disable: re-add strdup.c
48812
48813 2002-11-25  Karl Berry  <karl@gnu.org>
48814
48815         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
48816         instead of "strtol.c".
48817
48818 2002-11-25  Karl Berry  <karl@gnu.org>
48819
48820         * config/install-sh: update from automake for variable quoting, $0 in
48821         error msgs, etc.
48822
48823         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
48824         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
48825         entry.
48826
48827 2002-11-25  Jim Meyering  <jim@meyering.net>
48828
48829         * lib/mktime.c: Sync from libc, now that it has the latest fix.
48830
48831 2002-11-24  Karl Berry  <karl@gnu.org>
48832
48833         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
48834         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
48835
48836 2002-11-24  Jim Meyering  <jim@meyering.net>
48837
48838         Update from coreutils:
48839
48840         * lib/mktime.c: Merge in changes from libc.
48841
48842         Avoid a link-time failure on some Linux systems.
48843         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
48844         (otherwise).
48845         (__mon_yday): Declare with the STATIC attribute.
48846         (__mktime_internal): Likewise.
48847         Based on a report from Greg Schafer.
48848
48849 2002-11-23  Jim Meyering  <jim@meyering.net>
48850
48851         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
48852         Use `unsigned', not `int', as type of index.
48853
48854         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
48855
48856         * lib/fsusage.c: Remove unneeded parentheses around operands of
48857         `defined'.
48858
48859 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48860
48861         * lib/quotearg.h: Allow multiple inclusion by surrounding with
48862         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
48863         so that we can be included first.
48864         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
48865         * lib/quotearg.c: Include quotearg.h immediately after config.h.
48866         No need to include stddef.h or sys/types.h any more.
48867         Surround local include files with "", not "<>".
48868         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
48869         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
48870         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
48871         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
48872         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
48873         (ISPRINT): Remove; no longer needed now that we assume C89.
48874
48875         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
48876         Preserve errno.
48877
48878         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
48879         quotearg_char): Use SIZE_MAX rather than
48880         (size_t) -1 when we are talking about "infinity".
48881
48882         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
48883
48884 2002-11-22  Paul Eggert  <eggert@twinsun.com>
48885
48886         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
48887         hint that one should use `if (! x) abort ();' rather than `assert
48888         (x);', and anyway it's one less thing to worry about configuring.
48889         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
48890         hash_rehash, hash_insert): Use abort rather than assert.
48891
48892 2002-11-22  Bruno Haible  <bruno@clisp.org>
48893
48894         * lib/safe-read.h: Assume C89. Add comments.
48895         (safe_read): Change return type to size_t.
48896         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
48897         byte counts > SSIZE_MAX correctly.
48898         * lib/safe-write.h: New file.
48899         * lib/safe-write.c: New file.
48900         * lib/full-read.h: New file.
48901         * lib/full-read.c: New file.
48902         * lib/full-write.h: Assume C89. Add comments.
48903         * lib/full-write.c: Include safe-write.h.
48904         (full_write): Rewritten to use safe_write.
48905         Suggested by Jim Meyering and Paul Eggert.
48906
48907 2002-11-21  Jim Meyering  <jim@meyering.net>
48908
48909         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
48910
48911         Merge in changes from the coreutils.
48912
48913         2002-09-25  Paul Eggert  <eggert@twinsun.com>
48914         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
48915         <stdint.h>.
48916         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
48917         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
48918         int.  Work more efficiently if X is the same width as uintmax_t.
48919         Do not compare X to -1, to avoid bogus compiler warning.
48920         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
48921         Don't assume that f_frsize and f_bsize are the same type.
48922
48923         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
48924         warning on FreeBSD.
48925
48926         * lib/makepath.c (make_path): Restore umask *before* creating the final
48927         component.
48928         (make_path): Minor reformatting.
48929
48930         * lib/xmalloc.c: Adjust to work with new autoconf macros,
48931         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
48932         HAVE_MALLOC/HAVE_REALLOC.
48933
48934         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
48935         dummy ones.  At least on GNU/Linux systems, `auto' means something
48936         else.
48937         From Michael Stone.
48938
48939 2002-11-21  Bruno Haible  <bruno@clisp.org>
48940
48941         Remove case insensitive option matching.
48942         * lib/argmatch.h (argcasematch): Remove declaration.
48943         (ARGCASEMATCH): Remove macro.
48944         (__xargmatch_internal): Remove case_sensitive argument.
48945         (XARGMATCH): Update.
48946         (XARGCASEMATCH): Remove macro.
48947         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
48948         case_sensitive argument.
48949         (argcasematch): Remove function.
48950         (__xargmatch_internal): Remove case_sensitive argument.
48951         (main): Use XARGMATCH instead of XARGCASEMATCH.
48952
48953         * lib/xmalloc.c: Change compile-time error message. Add comment about
48954         required autoconf version.
48955
48956 2002-11-20  Paul Eggert  <eggert@twinsun.com>
48957
48958         Merge argmatch cleanups from Bison.  Assume C89.
48959
48960         * lib/argmatch.c: Include config.h here, not in argmatch.h.
48961         Include stdlib.h, for EXIT_FAILURE.
48962         Always include <string.h>, since we assume C89.
48963         (EXIT_FAILURE): Remove pre-C89 bug workaround.
48964         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
48965         Include <stddef.h> instead, since it's all we need for size_t.
48966         (PARAMS): Remove.  All uses removed.
48967         (ARRAY_CARDINALITY): Do not bother to #undef.
48968         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
48969         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48970         Remove unnecessary parentheses.
48971         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
48972         Insert necessary parentheses.
48973         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
48974         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
48975
48976 2002-11-19  Bruno Haible  <bruno@clisp.org>
48977
48978         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
48979         * lib/mbswidth.h: Include <stddef.h>, for size_t.
48980
48981         * lib/mbswidth.h (PARAMS): Remove macro.
48982         (mbswidth, mbsnwidth): Use ANSI C function declarations.
48983         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
48984
48985         * lib/gcd.h (PARAMS): Remove macro.
48986         (gcd): Use ANSI C function declarations.
48987         * lib/gcd.c (gcd): Likewise.
48988
48989 2002-11-15  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/strcspn.c: Include <stddef.h>.
48992         (strcspn): Use ANSI C function declaration. Change return type to
48993         size_t. Use NULL.
48994         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
48995         (strpbrk): Use NULL.
48996         * lib/strpbrk.h (PARAMS): Remove macro.
48997         (strpbrk): Use ANSI C function declaration.
48998         * lib/strstr.c: Don't include <sys/types.h>.
48999         * lib/strstr.h (PARAMS): Remove macro.
49000         (strstr): Use ANSI C function declarations.
49001
49002 2002-11-14  Karl Berry  <karl@gnu.org>
49003
49004         * config/mkinstalldirs: `do' on separate line, instead of
49005         `for var; do'.
49006
49007 2002-11-06  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
49010         * lib/gcd.c (gcd): Likewise.
49011
49012 2002-11-05  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/gcd.h: New file, from gettext-0.11.5.
49015         * lib/gcd.c: New file, from gettext-0.11.5.
49016
49017 2002-11-05  Bruno Haible  <bruno@clisp.org>
49018
49019         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49020         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49021         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49022         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49023
49024         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
49025         <libintl.h>.
49026         * lib/makepath.c: Include gettext.h instead of <locale.h> and
49027         <libintl.h>.
49028
49029         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
49030         * lib/human.c: Include gettext.h instead of <libintl.h>.
49031         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
49032         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
49033         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
49034         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
49035         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
49036         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
49037         (textdomain): Remove definition.
49038         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
49039
49040         * lib/long-options.c: Remove include of <libintl.h> and definition of
49041         _.
49042         * lib/same.c: Remove include of <libintl.h> and definition of _.
49043
49044 2002-11-04  Owen Taylor  <otaylor@redhat.com>
49045
49046         * lib/config.charset: A few additions for Solaris.
49047
49048 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49049
49050         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
49051         * lib/localcharset.c (locale_charset): Declare as extern "C".
49052
49053 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49054
49055         * lib/config.charset: msdos in uk_UA uses CP1125.
49056
49057 2002-11-04  Bruno Haible  <bruno@clisp.org>
49058
49059         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
49060         * lib/strcase.h: New file, from GNU gettext-0.11.5.
49061         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
49062         * lib/strstr.h: New file, from GNU gettext-0.11.5.
49063         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
49064
49065 2002-11-04  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/localcharset.c (locale_charset): Don't return an empty string.
49068
49069 2002-11-04  Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
49072         aliases.
49073
49074 2002-11-04  Bruno Haible  <bruno@clisp.org>
49075
49076         * lib/config.charset: Update for newest glibc. Add canonical names
49077         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
49078
49079 2002-11-04  Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/config.charset: Add support for NetBSD.
49082
49083 2002-11-04  Bruno Haible  <bruno@clisp.org>
49084
49085         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
49086
49087 2002-11-01  Bruno Haible  <bruno@clisp.org>
49088
49089         * configure.in: Add AC_CONFIG_AUX_DIR call.
49090         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
49091         test/Makefile.
49092         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
49093
49094 2002-09-28  Karl Berry  <karl@gnu.org>
49095
49096         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
49097         installed automake until the next release, since changes have been
49098         made.
49099
49100 2002-09-25  Karl Berry  <karl@gnu.org>
49101
49102         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
49103         * lib/getopt*: copy from libc/posix.
49104         * lib/gettext.h: copy from gettext.
49105         * lib/.cppi-disable: add strdup.c, gettext.h.
49106
49107 2002-09-25  Karl Berry  <karl@gnu.org>
49108
49109         * config/srclist.txt: enable gettext.h check.
49110         * config/config.{guess,sub}: update from prep.
49111         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
49112                 from automake 1.6.3.
49113         See srclist*.
49114
49115 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
49116
49117         * regex.c (PATFETCH): Remove the translating fetch.
49118         (PATFETCH_RAW): Rename to PATFETCH.
49119         (set_image_of_range): New fun.
49120         (SET_RANGE_TABLE_WORK_AREA): Use it.
49121         (regex_compile): Don't translate the pattern chars so eagerly.
49122         Only do it when inserting an `exactn' bytecode or when handling
49123         a char-range.
49124         (mutually_exclusive_p): Avoid empty statement.
49125
49126 2002-07-06  Jim Meyering  <meyering@lucent.com>
49127
49128         * m4/README: Don't mention Makefile.am.in.
49129         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
49130
49131 2002-07-01  Jim Meyering  <meyering@lucent.com>
49132
49133         * lib/c-stack.c: Include sys/time.h.
49134         From Volker Borchert.
49135
49136 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49137
49138         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
49139
49140 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49141
49142         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
49143         New macro.  Use it uniformly instead of
49144         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
49145         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
49146         reported by Vin Shelton.
49147
49148 2002-06-22  Paul Eggert  <eggert@twinsun.com>
49149
49150         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
49151         Do not assume SA_SIGINFO behavior.
49152         Bug reported by Jim Meyering on NetBSD 1.5.2.
49153
49154 2002-06-22  Jim Meyering  <meyering@lucent.com>
49155
49156         * m4/c-stack.m4: New file, from diffutils-2.8.2.
49157         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
49158
49159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
49160         now that configure.ac uses AC_GNU_SOURCE.
49161         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
49162         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
49163
49164         Update to latest tools.  Suggestions from Paul Eggert.
49165         * m4/stdbool.m4: New file, from diffutils-2.8.2.
49166         * m4/gnu-source.m4: Update from diffutils-2.8.2.
49167         * m4/fnmatch.m4: Likewise.
49168         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
49169         to AC_HEADER_STDBOOL
49170
49171 2002-06-22  Jim Meyering  <meyering@lucent.com>
49172
49173         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
49174         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
49175
49176 2002-06-22  Jim Meyering  <meyering@lucent.com>
49177
49178         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
49179
49180         * lib/exitfail.c, exitfail.h: Likewise.
49181         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
49182
49183         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
49184         of fnmatch.h.
49185         (EXTRA_DIST): Add fnmatch_loop.c.
49186         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
49187
49188         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
49189         * lib/fnmatch.c: Update from diffutils-2.8.2.
49190         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
49191         * lib/fnmatch.h: Remove file.
49192
49193 2002-06-21  Jim Meyering  <meyering@lucent.com>
49194
49195         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
49196         * m4/mbrtowc.m4: Likewise.
49197
49198         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
49199         * m4/mbswidth.m4: Reflect name change:
49200         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
49201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
49202
49203         * m4/lib-link.m4: Update from gettext-0.11.2.
49204         * m4/gettext.m4: Likewise.
49205
49206         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
49207         From Alfred M. Szmidt.
49208
49209 2002-06-18  Paul Eggert  <eggert@twinsun.com>
49210
49211         * lib/file-type.h: Report an error if neither S_ISREG nor
49212         S_IFREG is defined, instead of using a test specific to glibc
49213         2.2.  This should be safe, since POSIX requires S_ISREG and
49214         Unix Version 7 had S_IFREG.  We don't need to check for
49215         <sys/types.h> since we don't use any symbols that it defines.
49216
49217 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
49218
49219         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
49220         $@-t, so that each temporary file name is unique and valid in the first
49221         8 characters, for operation under DOS.
49222
49223 2002-06-15  Paul Eggert  <eggert@twinsun.com>
49224
49225         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
49226
49227 2002-06-15  Jim Meyering  <meyering@lucent.com>
49228
49229         Work even with DJGPP 2.03, which lacks support for symlinks.
49230         From Richard Dawe.
49231         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
49232         is defined.
49233         * lib/lchown.c (S_ISLNK): Likewise.
49234
49235 2002-06-15  Jim Meyering  <meyering@lucent.com>
49236
49237         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
49238         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
49239         have been included before this file.
49240
49241 2002-06-14  Jim Meyering  <meyering@lucent.com>
49242
49243         * lib/file-type.h: Use the version from diffutils-2.8.2.
49244         * lib/file-type.c: Likewise.
49245
49246 2002-06-07  Jim Meyering  <meyering@lucent.com>
49247
49248         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
49249         They're needed at least for NetBSD 1.5.2.
49250         ($statxfs_includes): Include those same headers.
49251         ($statxfs_includes): Include sys/vfs.h if available.
49252         ($statxfs_includes): Likewise for sys/statvfs.h.
49253         Check for the following members in both structs statfs and statvfs:
49254         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
49255
49256 2002-06-01  Jim Meyering  <meyering@lucent.com>
49257
49258         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
49259         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
49260
49261 2002-05-28  Jim Meyering  <meyering@lucent.com>
49262
49263         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
49264         Reported by Volker Borchert.
49265
49266 2002-05-27  Jim Meyering  <meyering@lucent.com>
49267
49268         Fix a problem seen only on nonconforming systems whereby ls.c's
49269         use of localtime, and then of gettimeofday would cause trouble:
49270         the localtime call used to initialize rpl_gettimeofday's save
49271         mechanism would clobber ls's current local time information so
49272         that in any long listing the first file would always be listed
49273         with date 1970-01-01.  Analysis by Volker Borchert.
49274
49275         * lib/gettimeofday.c (localtime): Undefine.
49276         (rpl_localtime): New function.
49277
49278 2002-05-27  Jim Meyering  <meyering@lucent.com>
49279
49280         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
49281         localtime.
49282
49283         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
49284         use the replacement function; it wouldn't resolve at link time.
49285         Reported by Volker Borchert.
49286
49287 2002-05-22  Jim Meyering  <meyering@lucent.com>
49288
49289         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
49290         file-type.h.
49291         * lib/file-type.h: New file.
49292         * lib/file-type.c (file_type): New file/function.  Extracted from
49293         diffutils.
49294
49295 2002-04-30  Jim Meyering  <meyering@lucent.com>
49296
49297         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
49298
49299 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49300
49301         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
49302
49303 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49304
49305         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
49306         Do not check for alloca.h (no longer used) or stdbool.h (was never
49307         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
49308
49309 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49310
49311         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
49312
49313 2002-04-29  Jim Meyering  <meyering@lucent.com>
49314
49315         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
49316         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
49317         Use AC_FUNC_STRNLEN here instead.
49318
49319         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
49320         With autoconf-2.53a, it's part of AC_PROG_CC.
49321
49322 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49323
49324         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
49325         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
49326
49327 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49328
49329         * lib/sig2str.h, lib/sig2str.c: New files.
49330         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
49331
49332 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49333
49334         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
49335         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
49336         of 127, since 64 is the largest conceivable number for ancient
49337         nonstandard hosts.
49338         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
49339
49340 2002-04-28  Jim Meyering  <meyering@lucent.com>
49341
49342         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
49343
49344 2002-04-24  Jim Meyering  <meyering@lucent.com>
49345
49346         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
49347         (jm_PREREQ): Use it.
49348
49349         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
49350         mach/mach.h fcntl.h.
49351         Check for this function: setlocale.
49352
49353 2002-04-24  Jim Meyering  <meyering@lucent.com>
49354
49355         * lib/gettext.h: New file, from Gettext.
49356         * lib/Makefile.am (INCLUDES): Remove -I../intl.
49357         (libfetish_a_SOURCES): Add gettext.h.
49358
49359 2002-04-16  Jim Meyering  <meyering@lucent.com>
49360
49361         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
49362         ut_pid, ut_id, ut_exit.
49363
49364 2002-04-16  Jim Meyering  <meyering@lucent.com>
49365
49366         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
49367         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
49368         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
49369
49370 2002-04-12  Jim Meyering  <meyering@lucent.com>
49371
49372         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
49373         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
49374         existence of the getmntinfo function.  Needed for Darwin 5.3.
49375
49376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
49377         This is necessary at least on Darwin 5.3.
49378
49379         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
49380         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
49381         strnlen.o in the library, and that makes some versions of ranlib
49382         object.
49383
49384 2002-04-12  Jim Meyering  <meyering@lucent.com>
49385
49386         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
49387
49388 2002-04-09  Jim Meyering  <meyering@lucent.com>
49389
49390         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
49391         to be more precise.  Rather than saying we're checking whether the
49392         function `works', say what we're testing.
49393         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
49394         Reported by Bruno Haible.
49395
49396 2002-03-10  Jim Meyering  <meyering@lucent.com>
49397
49398         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
49399         Suggestion from Santiago Vila.
49400
49401 2002-03-08  Jim Meyering  <meyering@lucent.com>
49402
49403         * lib/rename.c: Mention that this wrapper is needed also on
49404         mips-dec-ultrix4.4 systems.
49405
49406 2002-03-02  Jim Meyering  <meyering@lucent.com>
49407
49408         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
49409         not HAVE_CLOCK_SETTIME.
49410
49411 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49412
49413         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
49414         Check for clock_settime.
49415
49416 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49417
49418         * lib/nanosleep.h: Rename to....
49419         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
49420
49421         * lib/gettime.c: New file.
49422         * lib/settime.c: New file.
49423         * lib/stime.c: Remove.
49424
49425         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
49426         timespec.h.  Remove nanosleep.h.
49427
49428 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49429
49430         * m4/acl.m4: New file.
49431         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
49432         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
49433
49434 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49435
49436         * lib/acl.c, lib/acl.h: New files.
49437         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
49438
49439 2002-02-24  Jim Meyering  <meyering@lucent.com>
49440
49441         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
49442         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
49443         cause trouble.  Reported by Nelson Beebe.
49444
49445 2002-02-23  Paul Eggert  <eggert@twinsun.com>
49446
49447         * lib/path-concat.c (xpath_concat): Reorder code to pacify
49448         compilers that don't know that xalloc_die never returns.
49449
49450 2002-02-20  Jim Meyering  <meyering@lucent.com>
49451
49452         * lib/getdate.c: Regenerate using bison-1.33.
49453
49454 2002-02-17  Jim Meyering  <meyering@lucent.com>
49455
49456         * config/config.guess (main): Don't use `head -1'; it's no longer
49457         portable. Use `sed 1q' instead.
49458
49459 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
49460
49461         * m4/codeset.m4: Upgrade to gettext-0.11.
49462         * m4/gettext.m4: Upgrade to gettext-0.11.
49463         * m4/glibc21.m4: Upgrade to gettext-0.11.
49464         * m4/iconv.m4: Upgrade to gettext-0.11.
49465         * m4/isc-posix.m4: Upgrade to gettext-0.11.
49466         * m4/lcmessage.m4: Upgrade to gettext-0.11.
49467         * m4/lib-ld.m4: New file, from gettext-0.11.
49468         * m4/lib-link.m4: New file, from gettext-0.11.
49469         * m4/lib-prefix.m4: New file, from gettext-0.11.
49470         * m4/progtest.m4: Upgrade to gettext-0.11.
49471
49472 2002-02-15  Paul Eggert  <eggert@twinsun.com>
49473
49474         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
49475         (jm_PREREQ): Use it.
49476
49477 2002-02-15  Paul Eggert  <eggert@twinsun.com>
49478
49479         * lib/posixver.c, lib/posixver.h: New files.
49480         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
49481
49482 2002-02-02  Paul Eggert  <eggert@twinsun.com>
49483             Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
49486         (fwrite_success_callback): New declaration.
49487         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
49488         print_unicode_char. Call failure callback instead of error.
49489         (fwrite_success_callback): New function.
49490         (exit_failure_callback): New function.
49491         (fallback_failure_callback): New function.
49492         (print_unicode_char): Call unicode_to_mb.
49493
49494 2002-01-26  Jim Meyering  <meyering@lucent.com>
49495
49496         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
49497         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
49498
49499 2002-01-26  Jim Meyering  <meyering@lucent.com>
49500
49501         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
49502
49503 2002-01-22  Paul Eggert  <eggert@twinsun.com>
49504
49505         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
49506
49507 2002-01-22  Jim Meyering  <meyering@lucent.com>
49508
49509         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
49510         Otherwise, some versions of automake would omit the rule that makes
49511         Makefile from Makefile.in.
49512
49513 2002-01-21  Paul Eggert  <eggert@twinsun.com>
49514
49515         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
49516         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
49517         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
49518         (memcoll): Set errno to zero if there is no error.
49519
49520         * lib/quotearg.c (quotearg_buffer_restyled):
49521         Fix bug with quoting buffers containing NUL when backslashing escapes.
49522         This bug was exposed by the other changes in this patch.
49523         (quotearg_n_options): New arg ARGSIZE.
49524         All callers changed.
49525         (quoting_options_from_style): New function.
49526         (quotearg_n_style): Use it.
49527         (quotearg_n_style_mem): New function.
49528
49529         * lib/quotearg.h (quotearg_n_style_mem): New function.
49530
49531 2002-01-19  Jim Meyering  <meyering@lucent.com>
49532
49533         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
49534         Remove useless quotes: DF_PROG="df".
49535         * m4/strnlen.m4: New file.
49536
49537 2002-01-16  Paul Eggert  <eggert@twinsun.com>
49538
49539         * lib/backupfile.c (ISDIGIT): Comment fix.
49540         * lib/getdate.y (ISDIGIT): Likewise.
49541         * lib/posixtm.c (ISDIGIT, year): Likewise.
49542         * lib/strverscmp.c (ISDIGIT): Likewise.
49543         * lib/userspec.c (ISDIGIT): Likewise.
49544
49545 2002-01-16  Jim Meyering  <meyering@lucent.com>
49546
49547         * lib/getdate.y: Add three semicolons, each just before a closing
49548         brace. Bison (as of version 1.31) no longer papers over that mistake.
49549
49550 2002-01-05  Jim Meyering  <meyering@lucent.com>
49551
49552         * lib/version-etc.c (version_etc_copyright): Update copyright year.
49553
49554 2001-12-19  Paul Eggert  <eggert@twinsun.com>
49555
49556         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
49557         not silently exit merely because the output buffer happens to
49558         have nothing pending.
49559
49560 2001-12-18  Paul Eggert  <eggert@twinsun.com>
49561
49562         See the big note in ../ChangeLog.
49563         * lib/human.c (suffixes): Prefer K to k for 1024.
49564         (generate_suffix_backwards): New function.
49565         (human_readable_inexact): Use it.
49566         * lib/xstrtol.c (__xstrtol): If there is no number but there
49567         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
49568         Accept 'K' as well as 'k'.
49569
49570 2001-12-15  Jim Meyering  <meyering@lucent.com>
49571
49572         * lib/regex.h (__restrict_arr): Update from libc.
49573
49574         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
49575         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
49576         (STREQ): Define.
49577
49578 2001-12-14  Jim Meyering  <meyering@lucent.com>
49579
49580         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
49581         Suggestion from Bruno Haible.
49582
49583 2001-12-10  Jim Meyering  <meyering@lucent.com>
49584
49585         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
49586         xrealloc, Instead, include "xalloc.h".
49587         (initbuffer): Don't cast xmalloc return value to char*.
49588         (readline): Reword comment.
49589         Don't cast xrealloc return value to char*
49590         Return NULL, not 0.
49591
49592 2001-12-09  Jim Meyering  <meyering@lucent.com>
49593
49594         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
49595         about `signed and unsigned type in conditional expression'.
49596         * lib/posixtm.c (posix_time_parse): Likewise.
49597
49598         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
49599
49600         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
49601         to avoid a pedantic warning.
49602
49603         * lib/getstr.c: Don't include assert.h.
49604         (getstr): Remove warning-evoking assertions.
49605         Return -1 if offset parameter is out of bounds.
49606         Change the type of a local from int to size_t.
49607
49608         * lib/strftime.c (my_strftime_localtime_r): Include this function
49609         definition in the `#if ! HAVE_TM_GMTOFF' block.
49610
49611         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
49612         Include xalloc.h instead.
49613
49614 2001-12-02  Jim Meyering  <meyering@lucent.com>
49615
49616         * lib/tempname.c: Don't declare getenv, thus reverting the change of
49617         2001-11-18.  It's no longer necessary, now that stdlib.h is always
49618         included.
49619
49620         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
49621         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
49622
49623 2001-11-30  Akim Demaille  <akim@epita.fr>
49624
49625         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
49626         before being defined.
49627
49628 2001-11-27  Paul Eggert  <eggert@twinsun.com>
49629
49630         * lib/quotearg.h (quotearg_n, quotearg_n_style):
49631         First arg is int, not unsigned.
49632         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
49633         (SIZE_MAX, UINT_MAX): New macros.
49634         (quotearg_n_options): Abort if N is negative.
49635         Avoid overflow check on hosts where size_t is 64 bits and int
49636         is 32 bits, as overflow is impossible there.
49637         Fix off-by-one typo that caused unnecessary reallocation.
49638
49639 2001-11-27  Jim Meyering  <meyering@lucent.com>
49640
49641         * lib/tempname.c: Merge with version from libc.
49642         * lib/regex.c: Likewise.
49643
49644         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
49645         systems for which STDC_HEADERS is 0, it was not included, resulting in
49646         a warning about an integer-to-pointer conversion problem with getenv.
49647         Reported by Volker Borchert.
49648
49649 2001-11-26  Jim Meyering  <meyering@lucent.com>
49650
49651         * lib/gtod.h: Remove file.
49652         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
49653         * lib/gettimeofday.c: Don't include gtod.h.
49654         (GTOD_init): Remove function.
49655         (rpl_gettimeofday): Do its job here instead, rather than aborting.
49656         Suggestion from Volker Borchert.
49657
49658 2001-11-23  Jim Meyering  <meyering@lucent.com>
49659
49660         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
49661         it.
49662         * lib/hash.c (struct hash_table): Define it here instead.
49663
49664 2001-11-22  Jim Meyering  <meyering@lucent.com>
49665
49666         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
49667
49668 2001-11-20  Jim Meyering  <meyering@lucent.com>
49669
49670         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
49671         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
49672
49673 2001-11-19  Jim Meyering  <meyering@lucent.com>
49674
49675         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
49676         directory.  Use "conftestXXXXXX" as the template.
49677         Suggestion from Paul Eggert.
49678
49679         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
49680         immediately, so the test doesn't mistakenly hit the max-open-files
49681         limit.
49682
49683 2001-11-18  Paul Eggert  <eggert@twinsun.com>
49684
49685         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
49686         (TEMPORARIES): New macro.
49687         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
49688         removes an artificial limitation (e.g. HP-UX 10.20, where
49689         TMP_MAX is 17576).
49690
49691 2001-11-18  Jim Meyering  <meyering@lucent.com>
49692
49693         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
49694
49695 2001-11-18  Jim Meyering  <meyering@lucent.com>
49696
49697         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
49698         on SunOS 4.
49699
49700         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
49701         files will be created before anything else.
49702
49703 2001-11-17  Paul Eggert  <eggert@twinsun.com>
49704
49705         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
49706         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
49707
49708 2001-11-17  Jim Meyering  <meyering@lucent.com>
49709
49710         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
49711         Prompted by a report from Bob Proulx.
49712
49713         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
49714         Instead, require UTILS_FUNC_MKSTEMP.
49715
49716 2001-11-17  Jim Meyering  <meyering@lucent.com>
49717
49718         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
49719         Now, that's done as part of AC_FUNC_STRTOD.
49720
49721 2001-11-17  Jim Meyering  <meyering@lucent.com>
49722
49723         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
49724         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
49725         rather than group writable.  Patch by Juan F. Codagnone.
49726
49727         * lib/readtokens.c: Remove explicit declarations of xmalloc and
49728         xrealloc, Instead, include "xalloc.h".
49729
49730         * lib/mountlist.c: Include unlocked-io.h after all system headers.
49731         Remove explicit declarations of xmalloc, xrealloc,
49732         and xstrdup.  Instead, include "xalloc.h".
49733
49734         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
49735         unlocked-io.h.
49736         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
49737         Likewise.
49738         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
49739
49740         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
49741         Reported by Padraig Brady.
49742
49743         * lib/mkstemp.c: #undef mkstemp.
49744         Include config.h.
49745         (rpl_mkstemp): Rename from mkstemp.
49746         Protoize.
49747
49748 2001-11-16  Jim Meyering  <meyering@lucent.com>
49749
49750         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
49751         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
49752         determine the amount of total physical memory, use pstat_getstatic.
49753         HPUX-11 doesn't define _SC_PHYS_PAGES.
49754         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
49755         If sysconf couldn't be used to determine the amount of available
49756         physical memory, use both pstat_getstatic and pstat_getdynamic.
49757         Based on a patch from Bob Proulx.
49758
49759 2001-11-10  Jim Meyering  <meyering@lucent.com>
49760
49761         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
49762         (jm_PREREQ): Use it.
49763
49764 2001-11-09  Jim Meyering  <meyering@lucent.com>
49765
49766         * m4/jm-macros.m4: Require autoconf-2.52f.
49767         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
49768         Use these AC_-prefixed names, not the AM_-prefixed ones.
49769
49770         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
49771
49772 2001-11-05  Jim Meyering  <meyering@lucent.com>
49773
49774         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
49775
49776 2001-11-04  Jim Meyering  <meyering@lucent.com>
49777
49778         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
49779         $DEFS.
49780
49781 2001-11-03  Jim Meyering  <meyering@lucent.com>
49782
49783         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
49784         of AC_DEFUN.
49785
49786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
49787         know the name of the variable in the macro definition.
49788
49789 2001-11-03  Jim Meyering  <meyering@lucent.com>
49790
49791         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
49792         in argmatch_to_argument call.
49793
49794         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
49795         argument.
49796
49797         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
49798         e.g., a fault due to an attempt to free a NULL pointer.
49799
49800 2001-11-01  Jim Meyering  <meyering@lucent.com>
49801
49802         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
49803         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
49804
49805 2001-11-01  Jim Meyering  <meyering@lucent.com>
49806
49807         * lib/dirfd.c, lib/dirfd.h: New files.
49808         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
49809
49810         * lib/hash.c (hash_print) [TESTING]: Clean up.
49811
49812 2001-10-22  Paul Eggert  <eggert@twinsun.com>
49813
49814         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
49815         to avoid a warning if -Wall.
49816
49817 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
49818
49819         * README: New file
49820         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
49821         (per RMS's instructions, this is now the canonical source)
49822         * lgpl/, gpl/: New directories.
49823
49824 2001-10-21  Paul Eggert  <eggert@twinsun.com>
49825
49826         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
49827
49828 2001-10-21  Jim Meyering  <meyering@lucent.com>
49829
49830         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
49831         this code would end up calling gettext even in packages built
49832         with --disable-nls.
49833         * lib/getopt.c (_): Likewise.
49834         * lib/regex.c (_): Likewise.
49835
49836 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49837
49838         * m4/error.m4 (jm_PREREQ_ERROR):
49839         Do not invoke AC_CHECK_FUNCS with strerror_r, as
49840         AC_FUNC_STRERROR_R does that.
49841         Check for strerror declaration.
49842
49843         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
49844         are supposed to have them these days.
49845         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
49846         Merge changes from latest Autoconf CVS.
49847         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
49848         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
49849         POSIX decided to standardize on the int flavor of strerror_r.
49850
49851 2001-10-20  Paul Eggert  <eggert@twinsun.com>
49852
49853         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
49854         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
49855         Use strerror_r that is only a macro, even if it is not a function.
49856         (strerror): Check for HAVE_DECL_STRERROR before declaring.
49857         (private_strerror): Use prototypes, not old-style function definition.
49858         (print_errno_message): New function.
49859         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
49860         char*-flavored one.
49861         (error_tail, error, error_at_line): Use it.
49862
49863 2001-10-11  Jim Meyering  <meyering@lucent.com>
49864
49865         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
49866         and quote_n (1, ... to avoid clobbering a buffer.
49867
49868 2001-10-05  Jim Meyering  <meyering@lucent.com>
49869
49870         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
49871         hash-pjw.h.
49872         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
49873         * lib/hash-pjw.h: New file.
49874
49875 2001-09-30  Jim Meyering  <meyering@lucent.com>
49876
49877         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
49878         `struct fsstat' has the `f_fstypename' member.
49879         Use that to define FS_TYPE, which is now used to make
49880         the getfsstat link test tighter.
49881
49882 2001-09-30  Jim Meyering  <meyering@lucent.com>
49883
49884         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
49885         Include <sys/ucred.h>, for Apple Darwin.
49886         Include sys/mount.h and sys/fs_types.h only if available.
49887         (FS_TYPE): Define.
49888         (read_filesystem_list): Use FS_TYPE.
49889
49890 2001-09-29  Paul Eggert  <eggert@twinsun.com>
49891
49892         * lib/exclude.c (excluded_filename): 0 -> false, since it's
49893         a boolean context.
49894
49895 2001-09-29  Jim Meyering  <meyering@lucent.com>
49896
49897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49898         [one-argument getmntent function]): Include stdio.h before mntent.h.
49899         SunOS 4.1.x needs it for the declaration of `FILE'.
49900         Patch by Volker Borchert.
49901
49902         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
49903         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
49904         sys/fs_types.h, and make the link-test for getfsstat guard #include
49905         directives with appropriate #if HAVE_*_H tests so that we can
49906         detect getfsstat on Apple Darwin1.3.7 systems.
49907         Reported by Nelson Beebe.
49908         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
49909
49910 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49911
49912         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49913         #defines strtoimax.  Also treat the other strto* functions
49914         like strtoimax.
49915
49916         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
49917         Check for strtoul and strtoumax,
49918         as those declarations are made even in the signed case.
49919         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
49920         Likewise, for strtol and strtoimax.
49921
49922 2001-09-28  Paul Eggert  <eggert@twinsun.com>
49923
49924         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
49925         #defines strtoimax.  Also treat the other strto* functions
49926         like strtoimax.
49927
49928         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
49929         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
49930         (strtoimax, strtoumax): Do not declare if already defined as a macro.
49931
49932 2001-09-26  Jim Meyering  <meyering@lucent.com>
49933
49934         Most macros in unlocked-io.h had the wrong number of arguments.
49935         * lib/gen-uio: New script.
49936         (USE_UNLOCKED_IO): Define to 1 if not already defined.
49937         * lib/unlocked-io.hin: Remove file.
49938         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
49939         rather than trying to embed it here.
49940         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
49941         Reported by Padraig Brady.
49942
49943 2001-09-25  Volker Borchert  <bt@teknon.de>
49944
49945         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
49946         `result'.
49947
49948 2001-09-24  Jim Meyering  <meyering@lucent.com>
49949
49950         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
49951
49952 2001-09-23  Jim Meyering  <meyering@lucent.com>
49953
49954         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
49955         instead of the mere test for existence of mntent.h.  The latter
49956         would get a false-positive on AIX 3.4 systems.
49957         In the outer getmntent if-block, don't die if neither of the getmntent
49958         tests succeeds.  Instead, just fall through and continue with the
49959         remaining tests.
49960
49961 2001-09-23  Jim Meyering  <meyering@lucent.com>
49962
49963         * lib/mountlist.c: Remove useless parentheses in #if directives.
49964         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
49965         the deprecated MOUNTED symbol is no longer defined in mntent.h.
49966
49967 2001-09-22  Jim Meyering  <meyering@lucent.com>
49968
49969         * m4/gettext.m4: New file.  From gettext.
49970         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
49971         * m4/progtest.m4: Likewise
49972         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
49973         * m4/glibc21.m4: Likewise.
49974
49975         * m4/libintl.m4: Remove.  No longer used.
49976
49977 2001-09-22  Jim Meyering  <meyering@lucent.com>
49978
49979         * lib/localcharset.c: Update from latest gettext.
49980         * lib/config.charset: Likewise.
49981
49982 2001-09-20  Jim Meyering  <meyering@lucent.com>
49983
49984         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
49985         strtoimax.
49986         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
49987         strtoumax.
49988
49989 2001-09-20  Jim Meyering  <meyering@lucent.com>
49990
49991         * lib/xstrtol.c (strtoimax): Guard declaration with
49992         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
49993         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
49994         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
49995         (strtoumax): Likewise, for completeness (it wasn't necessary).
49996
49997 2001-09-17  Paul Eggert  <eggert@twinsun.com>
49998
49999         * lib/strtoimax.c (HAVE_LONG_LONG):
50000         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
50001         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
50002         to work around bug in IBM C compiler.
50003
50004 2001-09-17  Jim Meyering  <meyering@lucent.com>
50005
50006         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
50007         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
50008         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
50009         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
50010         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
50011         whenever the right hand side need not be expanded by the shell.
50012
50013 2001-09-16  Paul Eggert  <eggert@twinsun.com>
50014
50015         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
50016         library.  It's not correct, as some older glibcs are buggy.
50017         fnmatch wasn't fixed until glibc 2.2.
50018
50019         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
50020         special shell magic here.
50021
50022 2001-09-16  Jim Meyering  <meyering@lucent.com>
50023
50024         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
50025         * m4/jm-macros.m4: Require it.
50026
50027 2001-09-16  Jim Meyering  <meyering@lucent.com>
50028
50029         * lib/mkdir.c: New file.
50030
50031 2001-09-15  Jim Meyering  <meyering@lucent.com>
50032
50033         * m4/jm-macros.m4: Check for help2man.
50034
50035 2001-09-11  Jim Meyering  <meyering@lucent.com>
50036
50037         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
50038         The body, by Paul Eggert, was moved here from configure.in.
50039         * m4/jm-macros.m4: Require UTILS_HOST_OS.
50040
50041 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50042
50043         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
50044         (jm_PREREQ): Use it.
50045
50046 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50047
50048         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
50049         Use ssize_t, not int, to store result of readlink.
50050         Check for ssize_t overflow as well as size_t overflow,
50051         as POSIX says the result of readlink is implementation-defined
50052         when ssize_t overflows.
50053         Remove unnecessary cast to char*.
50054         Use free+malloc instead of realloc, as the storage doesn't need
50055         to be preserved and it's clearer and can be more efficient that way.
50056         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
50057         * lib/xreadlink.h (xreadlink): Update prototype.
50058
50059 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50060
50061         * lib/xgetcwd.c: Revert some of the previous change; intead,
50062         fix the HAVE_GETCWD_NULL code to behave more like the
50063         !HAVE_GETCWD_NULL code used to.
50064
50065         Include "xalloc.h".
50066         (xgetcwd): Do not return NULL when memory is exhausted; instead,
50067         invoke xalloc_die.
50068
50069 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50070
50071         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
50072         sys/param.h, as pathmax.h includes them.
50073
50074 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50075
50076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
50077         (jm_PREREQ_XGETCWD): New macro.
50078
50079         * m4/getcwd.m4: New file.
50080
50081 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50082
50083         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
50084         like the HAVE_GETCWD_NULL code.
50085         Include pathmax.h if not HAVE_GETCWD.
50086         Do not include xalloc.h.
50087         (INITIAL_BUFFER_SIZE): New symbol.
50088         Do not use xmalloc / xrealloc, since the caller is responsible for
50089         handling errors.  Preserve errno around `free' during failure.
50090         Do not overrun buffer when using getwd.
50091
50092 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50093
50094         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
50095         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
50096         getcwd (NULL, 0).
50097
50098 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50099
50100         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
50101         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
50102         spotted by Jim Meyering.
50103
50104 2001-09-03  Jim Meyering  <meyering@lucent.com>
50105
50106         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
50107         failure.
50108
50109 2001-09-02  Jim Meyering  <meyering@lucent.com>
50110
50111         * lib/error.c: Update from GNU libc.
50112
50113 2001-09-01  Jim Meyering  <meyering@lucent.com>
50114
50115         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
50116         Used by df.
50117
50118 2001-09-01  Jim Meyering  <meyering@lucent.com>
50119
50120         * lib/xreadlink.c: New file.
50121         * lib/xreadlink.h: New file.
50122         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
50123         xreadlink.h.
50124
50125         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
50126         doesn't conflict with sparc Solaris 7's definition in
50127         /usr/include/sys/int_types.h.
50128
50129         * lib/exclude.c: Use `""', not `<>' to #include non-system header
50130         files.
50131         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
50132         and strncasecmp as r-values.  Unixware didn't have declarations.
50133
50134 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50135
50136         * lib/xstrtol.h: Add copyright notice.
50137         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
50138         LONGINT_INVALID_SUFFIX_CHAR.
50139
50140 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50141
50142         * lib/xstrtol.c (strtoimax): New decl.
50143
50144 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50145
50146         * lib/xgetcwd.c: Don't include pathmax.h.
50147         Include stdlib.h and unistd.h if available.
50148         Include xalloc.h.
50149         (xmalloc, xstrdup, free): Remove decls.
50150         (xgetcwd): Don't assume sizes fit in unsigned.
50151         Check for overflow when computing sizes.
50152         Simplify reallocation code.
50153
50154 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50155
50156         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
50157         a directory's st_size can have an arbitrary value, so the old
50158         usage could waste an arbitrary amount of memory.  All uses
50159         changed.
50160         * lib/savedir.h: Update prototype.
50161
50162 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50163
50164         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
50165
50166         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
50167         old strtoimax.c.
50168
50169         Also, make the following further changes to make this file's
50170         configuration more similar to that of strtol.c:
50171         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
50172         (strtoumax, uintmax_t, strtoull, strtol): Remove.
50173         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
50174         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
50175         changed to signed values.
50176
50177         And make the following changes as well:
50178         Fix copyright notice, as 1999 was missing.
50179         (verify): New macro.
50180         (strtoimax): Check sizes at compile-time, not run-time.
50181         Prefer strtol to strtoll if both work.
50182         (main): Remove; it was not that useful and was a pain to maintain.
50183
50184         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
50185
50186 2001-08-31  Jim Meyering  <meyering@lucent.com>
50187
50188         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
50189         Use an initial, malloc'd, buffer of length 128 rather than
50190         a statically allocated one of length 1024.
50191
50192 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50193
50194         Simplify code, partly by assuming autoconf 2.52 semantics.
50195
50196         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
50197
50198         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
50199         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
50200         All uses removed.
50201         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
50202         Move AC_REQUIRE to next-to-top level, to avoid confusion.
50203         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
50204         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
50205         jm_AC_HEADER_INTTYPES_H.
50206         * m4/jm-macros.m4 (jm_MACROS): Likewise.
50207
50208         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
50209
50210         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50211         Quote first arg of AC_DEFUN.
50212         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
50213         since they are needed to parse the include file even if we need
50214         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
50215         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
50216         but with opposite signedness.
50217
50218 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50219
50220         Merge 'exclude' changes from tar 1.13.22.
50221         This fixes one or two unlikely storage allocation overflow bugs,
50222         but doesn't change user-visible behavior otherwise.
50223
50224 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50225
50226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
50227         (jm_PREREQ_EXCLUDE): New macro.
50228
50229 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50230
50231         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
50232         tm to be declared.
50233
50234 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50235
50236         * lib/hash.c: Remove '2001' from copyright notice.
50237
50238 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50239
50240         * lib/full-write.h: New file.
50241         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
50242         * lib/full-write.c: Correct credits, as cccp.c no longer
50243         exists and anyway it was so heavily changed from the old cccp
50244         code as to be unrecognizable.  Include full-write.h.
50245         (full_write) Return size_t, with short writes meaning failure.
50246         All callers changed.  This fixes a bug with large buffers
50247         on 64-bit hosts.
50248         * lib/utime.c: Include full-write.h.
50249
50250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50251
50252         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
50253         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
50254         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
50255         Include if available.
50256         (<xalloc.h>): Include
50257         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
50258         (verify): New macro.  Use it to verify that EXCLUDE macros do not
50259         collide with FNM macros.
50260         (struct patopts): New struct.
50261         (struct exclude): Use it, as exclude patterns now come with options.
50262         (new_exclude): Support above changes.
50263         (new_exclude, add_exclude_file):
50264         Initial size must now be a power of two to simplify overflow checking.
50265         (free_exclude, fnmatch_no_wildcards): New function.
50266         (excluded_filename): No longer requires options arg, as the options
50267         are determined by add_exclude.  Now returns bool, not int.
50268         (excluded_filename, add_exclude):
50269         Add support for the fancy new exclusion options.
50270         (add_exclude, add_exclude_file): Now takes int options arg.
50271         Check for arithmetic overflow when computing sizes.
50272         (add_exclude_file): xrealloc might modify errno, so don't
50273         realloc until after errno might be used.
50274
50275         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
50276         New macros.
50277         (free_exclude): New decl.
50278         (add_exclude, add_exclude_file): Now takes int options arg.
50279         (excluded_filename): No longer requires options arg, as the options
50280         are determined by add_exclude.  Now returns bool, not int.
50281
50282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50283
50284         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
50285
50286 2001-08-27  Jim Meyering  <meyering@lucent.com>
50287
50288         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
50289
50290         * lib/version-etc.c (N_): Remove definition.
50291         Revert most of last change.
50292         Instead, simply don't mark the `Copyright...' string for translation.
50293         Based on advice from Paul Eggert.
50294
50295         * lib/strtoxmax.c: Tweak comment.
50296
50297 2001-08-26  Jim Meyering  <meyering@lucent.com>
50298
50299         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
50300
50301         * m4/xstrtoimax.m4: New file.
50302         * m4/xstrtoumax.m4: Add comments explaining why we
50303         AC_REPLACE_FUNCS(strtol).
50304
50305 2001-08-26  Jim Meyering  <meyering@lucent.com>
50306
50307         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
50308         of copyright with `%s' so translators don't get an untranslated
50309         message in 2002.
50310         (COPYRIGHT_YEAR): Define.
50311         (version_etc): Use fprintf rather than fputs.
50312         Suggestion from Ulrich Drepper.
50313
50314         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
50315
50316         * lib/strtoll.c: New file, from GNU libc.
50317         * lib/xstrtoimax.c: New file.
50318
50319         * lib/xstrtol.h: Add xstrtoimax.
50320         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
50321         * lib/strtoimax.c: New file.  Likewise, but first define
50322         STRTOUXMAX_SIGNED.
50323
50324         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
50325         ...
50326         * lib/strtoxmax.c: ... then renamed to this.
50327
50328 2001-08-18  Paul Eggert  <eggert@twinsun.com>
50329
50330         * m4/inttypes.m4: Add AC_PREREQ(2.13).
50331         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
50332         (jm_AC_TYPE_INTMAX_T): New macro.
50333         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
50334
50335         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
50336
50337         * m4/longlong.m4: Renamed from ulonglong.m4.
50338         * m4/inttypes.m4: Renamed from inttypes_h.m4.
50339         * m4/uintmax_t.m4: Removed.
50340
50341 2001-08-13  Paul Eggert  <eggert@twinsun.com>
50342
50343         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
50344         Port to Solaris 8, where 'sed' requires a space after the 'r'
50345         command, and where sh dislikes "$/".  Clean up the spacing a bit.
50346         Redirect output to $tmp just once.
50347
50348 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
50349
50350         * lib/addext.c (<errno.h>): Include.
50351         (errno): Declare if not defined.
50352         (addext): Work correctly when pathconf returns -1 and leaves
50353         errno alone because there is no limit.  Also, work even if
50354         pathconf returns a value greater than SIZE_MAX.
50355
50356 2001-08-12  Jim Meyering  <meyering@lucent.com>
50357
50358         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
50359         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
50360         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
50361         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
50362         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
50363         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
50364         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
50365         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
50366         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
50367         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
50368         utime.m4, utimes.m4, xstrtoumax.m4:
50369         Quote the first argument in each use of AC_DEFUN.
50370
50371 2001-08-12  Jim Meyering  <meyering@lucent.com>
50372
50373         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
50374         Simply `return getcwd (NULL, 0);'.
50375         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
50376         Use 1300 as initial value for length, not PATH_MAX.
50377
50378         * lib/pathmax.h: Clean up cpp syntax.
50379
50380 2001-08-12  Jim Meyering  <meyering@lucent.com>
50381
50382         * lib/gettimeofday.c: New file.
50383         * lib/gtod.h: New file.
50384         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
50385
50386 2001-08-05  Jim Meyering  <meyering@lucent.com>
50387
50388         * m4/jm-macros.m4: Require autoconf-2.52.
50389
50390 2001-08-04  Jim Meyering  <meyering@lucent.com>
50391
50392         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
50393         stmt, to get in sync with glibc.
50394
50395 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50396
50397         The following changes are from gettext 0.10.39 as maintained by
50398         Bruno Haible.
50399
50400         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
50401         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
50402         with inverted sense.  All uses changed.
50403
50404         * lib/mbswidth.c: Don't include <limits.h>.
50405         Include <stdlib.h> and <string.h> unconditionally.
50406         (iswcntrl, mbsinit, ISCNTRL): New macros.
50407         (mbsnwidth): Use K&R style function declarations.
50408         Don't bother checking for MB_LEN_MAX == 1, since the compiler
50409         can optimize it when MB_CUR_MAX == 1.
50410         The width of control characters is zero, not 1.
50411
50412 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50413
50414         The following changes are from gettext 0.10.39 as maintained by
50415         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
50416
50417         * m4/codeset.m4: Upgrade to serial AM1.
50418         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
50419         all uses changed.  Quote first arg of AC_DEFUN.
50420         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
50421
50422         * m4/iconv.m4: Upgrade to serial AM2.
50423         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
50424         Add --with-libconv-prefix.
50425         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
50426         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
50427         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
50428         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
50429         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
50430
50431         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
50432         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
50433         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
50434         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
50435         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
50436         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
50437         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50438         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
50439         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
50440
50441         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
50442         string.h any more.
50443
50444         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
50445         not the default value.
50446
50447         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
50448         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
50449         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
50450         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
50451         Also check for iswcntrl, used for wcwidth fallback.
50452         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
50453         to Autoconf 2.13.
50454
50455 2001-08-03  Jim Meyering  <meyering@lucent.com>
50456
50457         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
50458         as it was in the original.  Reported by Paul Eggert.
50459
50460 2001-07-16  Jim Meyering  <meyering@lucent.com>
50461
50462         * m4/gettimeofday.m4: New file.
50463         Prompted by a report from Bernhard Baehr.
50464
50465 2001-07-15  Jim Meyering  <meyering@lucent.com>
50466
50467         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
50468         stuff. Now it's in ../Makefile.cfg.
50469
50470 2001-07-15  Jim Meyering  <meyering@lucent.com>
50471
50472         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
50473         (BUILT_SOURCES): Add unlocked-io.h.
50474         (io_functions): Define.
50475         (unlocked-io.h): New rule.
50476         (DISTCLEANFILES): Add unlocked-io.h.
50477         (all-local): Depend on unlocked-io.h, to ensure it is created.
50478
50479         * lib/unlocked-io.hin: New file
50480
50481         * lib/regex.c: Update from glibc.
50482
50483 2001-07-05  Jim Meyering  <meyering@lucent.com>
50484
50485         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
50486         recommendation.
50487         (libfetish_a_SOURCES): Put all .h files here instead.
50488         Remove a thus-exposed (better checks in automake) duplicate and
50489         two unnecessary .h files.
50490
50491 2001-07-04  Jim Meyering  <meyering@lucent.com>
50492
50493         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
50494         that generates jm-glibc-io.m4 so that it doesn't trigger any make
50495         distcheck failure.
50496
50497 2001-07-02  Jim Meyering  <meyering@lucent.com>
50498
50499         The following changes were prompted by suggestions from Bruno Haible.
50500
50501         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
50502         is now generated.
50503         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
50504         definition of EXTRA_DIST.
50505         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
50506         ensure that the generated file is created/updated whenever the list
50507         of $(unlocked_functions) is changed.
50508         (jm-glibc-io.m4): New rule.
50509         (unlocked-io.h): New rule -- currently unused.
50510
50511 2001-06-24  Jim Meyering  <meyering@lucent.com>
50512
50513         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
50514         unmatched right bracket, rather than kludging it with an extra,
50515         falsely-matching quote in a comment.  Patch by Akim Demaille.
50516
50517 2001-06-11  Jim Meyering  <meyering@lucent.com>
50518
50519         * lib/regex.c: Update from GNU libc.
50520
50521 2001-05-27  Jim Meyering  <meyering@lucent.com>
50522
50523         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
50524         Check for ut_type in struct utmp.
50525
50526 2001-05-27  Jim Meyering  <meyering@lucent.com>
50527
50528         * lib/readutmp.h (UT_TYPE): Define.
50529
50530 2001-05-24  Jim Meyering  <meyering@lucent.com>
50531
50532         * lib/argmatch.c: Include "quote.h".
50533         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
50534         quote function.  Reported by Göran Uddeborg.
50535
50536 2001-05-22  Jim Meyering  <meyering@lucent.com>
50537
50538         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
50539         now that we use the package-supplied version unconditionally.
50540         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
50541
50542 2001-05-21  Jim Meyering  <meyering@lucent.com>
50543
50544         * m4/regex.m4: Change a couple backticks to single quotes to avoid
50545         shell syntax errors.
50546
50547 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50548
50549         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
50550
50551 2001-05-20  Paul Eggert  <eggert@twinsun.com>
50552
50553         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
50554         Don't bother to check library strftime, since
50555         we'll be using our own my_strftime function anyway.
50556         Define my_strftime instead of strftime.
50557
50558 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
50559
50560         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
50561         which is not yet declared.
50562
50563 2001-05-15  Jim Meyering  <meyering@lucent.com>
50564
50565         * m4/regex.m4: Use proper quoting so brackets appear in the test
50566         program.
50567         Reported by, and with help from, Bruno Haible.
50568
50569 2001-05-13  Jim Meyering  <meyering@lucent.com>
50570
50571         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
50572         undefined.
50573
50574 2001-05-11  Paul Eggert  <eggert@twinsun.com>
50575
50576         dirname code cleanup.  base_name now behaves more compatibly
50577         with POSIX basename when given file names that have trailing
50578         slashes, and similarly for dir_name.  Add new primitives
50579         base_len and dir_len.  Put the directory-name-related decls
50580         into dirname.h.
50581
50582         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
50583         * lib/backupfile.c (base_name): Likewise.
50584         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
50585         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
50586         * lib/makepath.c (strip_trailing_slashes): Likewise.
50587         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
50588         ISSLASH): Likewise.
50589         * lib/rename.c (strip_trailing_slashes): Likewise.
50590         * lib/same.c (base_name): Likewise.
50591         * lib/stripslash.c (ISSLASH): Likewise.
50592
50593         * lib/addext.c: Include <dirname.h> after size_t is defined.
50594         * lib/backupfile.c: Likewise.
50595
50596         * lib/addext.c (addext): Use base_len to trim redundant
50597         trailing slashes instead of doing it ourselves.
50598         But do not trim the last slash if it is not redundant.
50599
50600         * lib/backupfile.c (find_backup_file_name,
50601         max_backup_version): Use base_len instead of rolling it ourselves.
50602         Handle the case of "" and (on DOS) "C:" correctly.
50603
50604         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
50605         needed. Include <string.h>, <dirname.h>.
50606         (base_name): Allow file names ending in slashes, other than names
50607         that are all slashes.  In this case, return the basename followed
50608         by the slashes.  This is more general, and can be used in places
50609         where the original base_name purposely had an assertion failure.
50610         (base_len): New function.
50611
50612         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
50613         Do not include <assert.h>; no longer needed.
50614         Include xalloc.h.
50615         (memrchr): Remove decl.
50616         (dir_name_r): Remove.
50617         (dir_len): Renamed from dirlen.  All callers changed.
50618         Rewrite in terms of base_name, for simplicity and consistency.
50619         (dir_name): Never return NULL.  All callers changed.
50620         Do not include <stdlib.h> in test program; no longer needed.
50621         return 0; is fine for test program.
50622
50623         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
50624         New macros.
50625         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
50626
50627         * lib/path-concat.c (path_concat): Use base_len to compute
50628         base length, not strlen; this means we cannot rely on memcpy
50629         to null-terminate.
50630
50631         * lib/same.c (STREQ): Remove.
50632         (same_name): Handle the case where the basename ends in trailing '/'.
50633
50634         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
50635         a slash was stripped.  Do not strip the last slash after a
50636         file system prefix.
50637
50638 2001-05-11  Paul Eggert  <eggert@twinsun.com>
50639
50640         * lib/Makefile.am (libfetish_a_SOURCES):
50641         Add strftime.c, since we now compile it on all hosts.
50642
50643         * lib/strftime.c (my_strftime):
50644         Define to nstrftime if emacs, but only if my_strftime is not defined.
50645         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
50646         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
50647         Add one more extra argument: a nanoseconds value.
50648         All uses changed.
50649         (ns): New macro.
50650         (my_strftime function): Add %N format.
50651         (emacs_strftimeu): Renamed from emacs_strftime,
50652         with extra ut argument.
50653
50654 2001-05-09  Paul Eggert  <eggert@twinsun.com>
50655
50656         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
50657
50658 2001-04-21  Jim Meyering  <meyering@lucent.com>
50659
50660         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
50661         doesn't interfere.
50662
50663 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50664
50665         * m4/ftruncate.m4: Check for chsize.
50666         Link with ftruncate.o unconditionally if ftruncate is missing.
50667         This was required when cross-compiling to i586-mingw32msvc.
50668
50669 2001-04-08  Jim Meyering  <meyering@lucent.com>
50670
50671         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
50672         recomputed; that's necessary when the offset spans a DST transition.
50673         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
50674
50675 2001-04-02  Jim Meyering  <meyering@lucent.com>
50676
50677         * lib/regex.h, regex.c: Update from GNU libc.
50678
50679 2001-03-24  Jim Meyering  <meyering@lucent.com>
50680
50681         * m4/jm-macros.m4: Require autoconf-2.49d.
50682
50683 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
50684
50685         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
50686
50687 2001-03-19  Paul Eggert  <eggert@twinsun.com>
50688
50689         * lib/version-etc.c (version_etc_copyright): Update to 2001.
50690
50691 2001-03-17  Jim Meyering  <meyering@lucent.com>
50692
50693         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
50694         now that the version in autoconf is equivalent.
50695         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
50696
50697         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
50698         Suggestion from Akim Demaille.
50699
50700         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
50701         (jm_PREREQ_TEMPNAME): New function.
50702
50703 2001-03-16  Paul Eggert  <eggert@twinsun.com>
50704
50705         * lib/tempname.c (uint64_t): Define to uintmax_t if
50706         not defined, and if UINT64_MAX is not defined.
50707         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
50708         Reported by John David Anglin.
50709
50710 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
50711
50712         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
50713         resolve alias if codeset is empty.
50714         * lib/config.charset (BeOS): Use wildcard syntax.
50715
50716 2001-03-13  Jim Meyering  <meyering@lucent.com>
50717
50718         * lib/path-concat.c (path_concat)
50719         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
50720         concatenating e.g., `C:' and `foo'.
50721         From Bruno Haible.
50722
50723 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50724
50725         * lib/localcharset.c (locale_charset): Don't use
50726         setlocale(LC_CTYPE,NULL). Don't return NULL.
50727         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
50728
50729 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
50730
50731         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
50732         support for DOS/DJGPP.
50733
50734 2001-03-01  Paul Eggert  <eggert@twinsun.com>
50735
50736         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
50737         lacks mkstemp.  Compile our own tempname.c if we compile our own
50738         mkstemp.c, as mkstemp relies on tempname.
50739
50740 2001-03-01  Jim Meyering  <meyering@lucent.com>
50741
50742         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
50743         AH_VERBATIM really does output its argument verbatim.
50744
50745 2001-02-28  Paul Eggert  <eggert@twinsun.com>
50746
50747         * lib/Makefile.am (libfetish_a_SOURCES):
50748         Add dup-safer.c, fopen-safer.c.
50749         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
50750
50751         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
50752         * lib/unistd-safer.h: New files.
50753
50754 2001-02-25  Paul Eggert  <eggert@twinsun.com>
50755
50756         The mkstemp replacement is taken from glibc 2.2.2, with some
50757         portability fixes for use outside glibc, as follows:
50758
50759         * lib/tempname.c (struct_stat64): New macro.
50760         (direxists, __gen_tempname): Use it.
50761         This avoids a portability problem with Solaris 8.
50762
50763         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
50764         (<stddef.h>, <stdint.h>, <string.h>):
50765         Include only if STDC_HEADERS || _LIBC.
50766         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
50767         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
50768         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
50769         (__set_errno): Define this macro if <errno.h> doesn't.
50770         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
50771         Define these macros if <stdio.h> doesn't.
50772         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
50773         Define these macros if <sys/stat.h>
50774         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
50775         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
50776         __xstat64): Define if not _LIBC.
50777         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
50778         (__gen_tempname): Invoke gettimeofday only if
50779         HAVE_GETTIMEOFDAY || _LIBC;
50780         otherwise, fall back on plain "time".
50781         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
50782
50783         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
50784
50785         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
50786
50787 2001-02-18  Paul Eggert  <eggert@twinsun.com>
50788
50789         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
50790
50791 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50792
50793         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
50794         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
50795         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
50796         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
50797
50798 2001-02-17  Paul Eggert  <eggert@twinsun.com>
50799
50800         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
50801         Remove workaround macros for hosts that have mbrtowc but not
50802         mbstate_t, as we now insist on proper declarations for both
50803         before using mbrtowc.
50804
50805 2001-02-17  Jim Meyering  <meyering@lucent.com>
50806
50807         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
50808         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
50809         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
50810         UnixWare 7.1.1.
50811
50812         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
50813         rather than AC_CACHE_VAL.
50814
50815 2001-02-17  Jim Meyering  <meyering@lucent.com>
50816
50817         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
50818         around included file name.
50819
50820         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
50821
50822         * lib/strftime.c: Update from GNU libc (the only changes were to
50823         comments).
50824
50825 2001-02-17  Jim Meyering  <meyering@lucent.com>
50826
50827         * lib/regex.c: Update from libc.
50828
50829 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
50830
50831         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
50832         clash.
50833
50834 2001-02-16  Paul Eggert  <eggert@twinsun.com>
50835
50836         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
50837         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
50838         Reported by Mark Hounschell via Paul Eggert.
50839
50840 2001-02-07  Jim Meyering  <meyering@lucent.com>
50841
50842         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
50843
50844 2001-02-05  Jim Meyering  <meyering@lucent.com>
50845
50846         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
50847         it includes the patch required for `large file' support with at least
50848         HP-UX's 10.20 /bin/cc.
50849
50850 2001-02-03  Jim Meyering  <meyering@lucent.com>
50851
50852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
50853         AS_IF, now that it works once again (mysteriously).
50854         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50855
50856 2001-01-30  Jim Meyering  <meyering@lucent.com>
50857
50858         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
50859         * m4/chown.m4: Rename conftestchown to conftest.chown.
50860         * m4/rename.m4: s/conftestdir/conftest.d1/ and
50861         s/conftestdir2/conftest.d2/.
50862         * m4/utimes.m4: s/conftestdata/conftest.data/
50863         Inspired by Pavel Roskin's change in autoconf.
50864
50865 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
50866
50867         * lib/config.charset: Update for FreeBSD 4.2.
50868
50869 2001-01-27  Jim Meyering  <meyering@lucent.com>
50870
50871         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
50872         a use of AS_IF.
50873         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
50874
50875 2001-01-26  Jim Meyering  <meyering@lucent.com>
50876
50877         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
50878         quotearg.c includes it.
50879
50880 2001-01-26  Jim Meyering  <meyering@lucent.com>
50881
50882         * lib/quotearg.c: Include stddef.h.
50883         * lib/quote.c: Include stddef.h.
50884         Reported by Axel Kittenberger.
50885
50886         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
50887         line in double quotes so that it evokes a better diagnostic.
50888         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
50889         Reported by Axel Kittenberger.
50890
50891 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
50892
50893         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
50894         as if it was a `charset'.
50895
50896 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50897
50898         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
50899         has const.
50900
50901 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
50902
50903         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
50904         to avoid a warning.  Add back 'const' to inptr.
50905
50906 2001-01-20  Jim Meyering  <meyering@lucent.com>
50907
50908         Be sure that headers are checked before used in code compiled
50909         for the type checks.
50910         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
50911         In place of that, invoke jm_CHECK_ALL_TYPES.
50912         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
50913         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
50914         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
50915         The check for ssize_t was mistakenly run before the test for unistd.h.
50916
50917         The configure-time check for stdbool.h was missing.
50918         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
50919         (jm_PREREQ_HASH): New function.
50920
50921 2001-01-17  Jim Meyering  <meyering@lucent.com>
50922
50923         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
50924         for autoconf-2.49c.
50925         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
50926
50927 2001-01-16  Jim Meyering  <meyering@lucent.com>
50928
50929         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
50930         From Bruno Haible.
50931
50932 2001-01-14  Jim Meyering  <meyering@lucent.com>
50933
50934         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
50935         foo and bar.  Create conftestdir/ in the script, not in the C code.
50936         Remove directories in the script, not in the C code.
50937         Remove conftestdir{,2} before trying to create the directory.
50938         Make the entire configure script fail if the mkdir fails.
50939
50940 2001-01-14  Jim Meyering  <meyering@lucent.com>
50941
50942         * lib/rename.c: New file.  From Volker Borchert.
50943         Include stdlib.h, string.h or strings.h, and xalloc.h.
50944         Use strip_trailing_slashes rather than open-coding it.
50945
50946 2001-01-03  Paul Eggert  <eggert@twinsun.com>
50947
50948         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
50949
50950 2001-01-03  Jim Meyering  <meyering@lucent.com>
50951
50952         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
50953         of local `inptr' to avoid warning with some system declarations of
50954         iconv.
50955
50956 2001-01-02  Volker Borchert  <bt@teknon.de>
50957
50958         * m4/rename.m4: New file.
50959         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
50960
50961 2001-01-01  Jim Meyering  <meyering@lucent.com>
50962
50963         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
50964         even on systems with utmpx.h.  It's necessary for the declaration of
50965         utmp's ut_user member.  Reported by Andreas Jaeger.
50966
50967         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
50968         available. They are required for the declarations of getgrgid and
50969         getpwuid resp.
50970         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
50971         Reported by Andreas Jaeger.
50972
50973 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
50974
50975         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
50976         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
50977         so `make install' also works in VPATH builds.
50978
50979 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
50980
50981         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
50982         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
50983         can be used in subdirectories.
50984
50985 2000-12-29  Paul Eggert  <eggert@twinsun.com>
50986
50987         * lib/modechange.c: Do not assume that mode_t uses the
50988         traditional octal encoding.  E.g. "chmod 1 FOO" should set
50989         the other-execute bit of FOO even if S_IXOTH != 1.
50990
50991         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
50992         WOTH, XOTH, ALLM): New macros.
50993         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
50994          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
50995         Use them.
50996         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
50997         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
50998         (mode_compile):
50999         No need to use uintmax_t; unsigned long is long enough.
51000         Don't bother to get suffix since we don't use it.
51001
51002 2000-12-26  Jim Meyering  <meyering@lucent.com>
51003
51004         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
51005         better with autoheader.
51006
51007 2000-12-24  Jim Meyering  <meyering@lucent.com>
51008
51009         * lib/hash.c (is_prime): Return explicit boolean values.
51010         (hash_get_first): Return NULL to appease Irix5.6's 89.
51011         Reported by Nelson Beebe.
51012
51013 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
51014
51015         * lib/localcharset.c (locale_charset): Add support for Win32.
51016
51017 2000-12-18  Paul Eggert  <eggert@twinsun.com>
51018
51019         * lib/physmem.h, lib/physmem.c: New files.
51020
51021         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
51022         (noinst_HEADERS): Add physmem.h.
51023
51024         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
51025         't' for compatibility with Solaris 8 sort.
51026
51027 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
51028
51029         * lib/config.charset: Add support for BeOS.
51030
51031 2000-12-17  Jim Meyering  <meyering@lucent.com>
51032
51033         * m4/dos.m4 (jm_AC_DOS): New file and macro.
51034         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
51035
51036 2000-12-16  Jim Meyering  <meyering@lucent.com>
51037
51038         This bug had a serious impact on chown: `chown N:M FILE' (for integer
51039         N and M) would have treated it like `chown N:N FILE'.
51040
51041         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
51042
51043 2000-12-16  Jim Meyering  <meyering@lucent.com>
51044
51045         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
51046         SHELLS_FILE to a file name that's useful on djgpp systems.
51047         Include stdlib.h.
51048         (ADDITIONAL_DEFAULT_SHELLS): Define.
51049         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
51050         Based mostly on a patch from Prashant TR.
51051
51052 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
51053
51054         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
51055         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
51056         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
51057
51058 2000-12-08  Andreas Schwab  <schwab@suse.de>
51059
51060         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
51061         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
51062
51063 2000-12-07  Jim Meyering  <meyering@lucent.com>
51064
51065         * lib/stripslash.c (ISSLASH): Define.
51066         (strip_trailing_slashes): Use ISSLASH rather than comparing against
51067         `/'.
51068         From Prashant TR.
51069
51070         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
51071         (dir_name_r): Declare this function as static.
51072         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
51073         manifest itself on a name containing a mix of slashes and
51074         backslashes.
51075         Make this function work with names starting with a DOS-style
51076         drive letter and colon prefix.
51077         (dir_name): Append `.' if necessary.
51078         Based mostly on patches from Prashant TR and Eli Zaretskii.
51079
51080         * lib/dirname.h (dir_name_r): Remove prototype.
51081
51082 2000-12-06  Paul Eggert  <eggert@twinsun.com>
51083
51084         * m4/off_t-format.m4: Remove this file.
51085         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
51086
51087 2000-12-06  Jim Meyering  <meyering@lucent.com>
51088
51089         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
51090         replacement strtoull, we may well need the replacement strtoul, too.
51091         Check for declarations of strtoul and strtoull.
51092         Check for strtol.  Mainly as a cue to cause automake to include
51093         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
51094         Check for limits.h -- strtol.c needs it.
51095
51096 2000-12-05  Jim Meyering  <meyering@lucent.com>
51097
51098         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
51099
51100 2000-12-04  Jim Meyering  <meyering@lucent.com>
51101
51102         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
51103         Also include memory.h, stdlib.h, unistd.h if appropriate.
51104         Reported by Andreas Jaeger (conflicting declaration of malloc).
51105
51106 2000-12-02  Jim Meyering  <meyering@lucent.com>
51107
51108         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
51109         * m4/jm-macros.m4 (jm_MACROS): require it.
51110
51111 2000-12-02  Jim Meyering  <meyering@lucent.com>
51112
51113         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
51114
51115 2000-12-01  Paul Eggert  <eggert@twinsun.com>
51116
51117         * lib/memrchr.c: Include <config.h> before any system include file.
51118
51119 2000-11-30  Jim Meyering  <meyering@lucent.com>
51120
51121         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
51122
51123 2000-11-30  Jim Meyering  <meyering@lucent.com>
51124
51125         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
51126
51127 2000-11-29  Paul Eggert  <eggert@twinsun.com>
51128
51129         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
51130
51131 2000-11-26  Jim Meyering  <meyering@lucent.com>
51132
51133         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
51134
51135 2000-11-22  Paul Eggert  <eggert@twinsun.com>
51136
51137         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
51138         size of (size_t) -1; it's not portable.
51139
51140 2000-11-17  Jim Meyering  <meyering@lucent.com>
51141
51142         * lib/strstr.c: Update from GNU libc.
51143
51144 2000-11-17  Akim Demaille  <akim@epita.fr>
51145
51146         * lib/obstack.h: Formatting changes.
51147         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
51148         prevent type checking.
51149         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
51150         cast the value to (void *): assigning a `foo *' to a `void *'
51151         variable is valid.
51152         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
51153
51154 2000-11-16  Jim Meyering  <meyering@lucent.com>
51155
51156         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
51157
51158 2000-11-11  Jim Meyering  <meyering@lucent.com>
51159
51160         * lib/error.c: Add a couple #includes, merging from GNU libc version.
51161
51162 2000-11-10  Jim Meyering  <meyering@lucent.com>
51163
51164         * lib/obstack.h: Update from GNU libc.
51165         * lib/obstack.c: Likewise.
51166
51167 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
51168
51169         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
51170
51171 2000-11-06  Paul Eggert  <eggert@twinsun.com>
51172
51173         * lib/getusershell.c (setusershell): Use rewind rather than
51174         fseek/fseeko, to avoid configuration hassles with fseeko.
51175         Don't bother opening SHELLS_FILE if shellstream is NULL;
51176         it's not necessary.
51177
51178 2000-11-05  Jim Meyering  <meyering@lucent.com>
51179
51180         * lib/makepath.h (make_dir): Declare.
51181         * lib/makepath.c (make_dir): Remove `static' attribute.
51182         Tweak a comment.
51183
51184 2000-11-04  Jim Meyering  <meyering@lucent.com>
51185
51186         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
51187
51188 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
51189
51190         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
51191         last one in a bucket, advance to the next bucket.
51192
51193 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
51194
51195         * lib/fnmatch.c: Do not comment out all the code if we are using
51196         the GNU C library, because in some cases we are replacing buggy
51197         code in the GNU C library itself.
51198
51199 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
51200
51201         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
51202         (regex_compile): Catch bogus \(\1\).
51203
51204 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51205
51206         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
51207         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
51208         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
51209
51210 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51211
51212         * lib/error.h, getline.h, modechange.h:
51213         Remove "2000" from Copyright line, as the file hasn't been
51214         changed this year other than in the copyright notice.
51215
51216         * lib/xalloc.h: Add "2000" to Copyright line, as this file
51217         was changed this year.
51218
51219 2000-10-29  Jim Meyering  <meyering@lucent.com>
51220
51221         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
51222         renaming.
51223         * m4/ls-mntd-fs.m4: Likewise
51224
51225 2000-10-29  Jim Meyering  <meyering@lucent.com>
51226
51227         * lib/xstat.in: Fix grammar in comment.
51228
51229 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
51230
51231         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
51232         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
51233         doesn't define __restrict_arr.
51234
51235 2000-10-28  Jim Meyering  <meyering@lucent.com>
51236
51237         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
51238         (jm_PREREQ_MEMCHR): New function.
51239
51240 2000-10-28  Jim Meyering  <meyering@lucent.com>
51241
51242         * lib/memchr.c: Update from libc.
51243         Adjust for portability:
51244         [HAVE_STDLIB_H]: Include stdlib.h.
51245         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
51246         Undef __memchr, too.
51247         [!weak_alias]: Define __memchr to memchr.
51248
51249         * lib/regex.c: Update from libc.
51250         * lib/regex.h: Likewise.
51251         * lib/getopt1.c: Likewise.
51252         * lib/memcmp.c: Likewise.
51253
51254         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
51255         Avoid using fseek, when possible -- it's broken by design.
51256         Patch by Ulrich Drepper.
51257
51258 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
51259
51260         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
51261         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
51262         Giving in to popular pressure to shut up the compiler with casts.
51263
51264 2000-10-26  Jim Meyering  <meyering@lucent.com>
51265
51266         * lib/strftime.c: Update from libc.
51267
51268 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
51269
51270         * regex.c: More `unsigned char' -> `re_char' changes.
51271         Also change several `int' into `re_wchar_t'.
51272         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
51273         (PUSH_FAILURE_POINTER): Don't cast any more.
51274         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
51275         We want GCC to complain, since this piece of code makes
51276         re_match non-reentrant, which *should* be fixed.
51277         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
51278         (EXTEND_BUFFER): Use RETALLOC.
51279         (SET_LIST_BIT): Don't cast.
51280         (re_wchar_t): New type.
51281         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
51282         that those two functions will always properly return.
51283         (IMMEDIATE_QUIT_CHECK): Cast to void.
51284         (analyse_first): Use recursion rather than an explicit stack.
51285         (re_compile_fastmap): Can't fail anymore.
51286         (re_search_2): Don't check re_compile_fastmap for failure.
51287         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
51288         Now also sets the new value (passed in a new argument).
51289         (re_match_2_internal): Use it.
51290         Also, use a new var `reg' of type size_t when looping through regs
51291         rather than reuse the inappropriate `mcnt'.
51292
51293 2000-10-25  Jim Meyering  <meyering@lucent.com>
51294
51295         * lib/obstack.c: Update from libc.
51296
51297 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
51298
51299         * regex.c (regex_compile): Change the way of handling a range from
51300         a char less than 256 to a char not less than 256.
51301
51302 2000-10-24  Andrew Innes  <andrewi@gnu.org>
51303
51304         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
51305         NT-Emacs only.
51306         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
51307         so that re_search functions only quit when callers expect them to.
51308
51309 2000-10-23  Jim Meyering  <meyering@lucent.com>
51310
51311         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
51312         wrong.  That set_locale call must not have any side effects.
51313         From Paul Eggert.
51314
51315 2000-10-22  Jim Meyering  <meyering@lucent.com>
51316
51317         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
51318         [CYCLIC]: Remove now-unused definition.
51319
51320         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
51321         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
51322         Suggestion from Ulrich Drepper.
51323
51324 2000-10-21  Jim Meyering  <meyering@lucent.com>
51325
51326         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
51327         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
51328         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
51329
51330 2000-10-21  Jim Meyering  <meyering@lucent.com>
51331
51332         * lib/dirname.c (memrchr): Declare if necessary.
51333         (dir_name): Remove the restriction that there be no
51334         trailing slashes.  Now, this code skips past them, effectively
51335         ignoring them.
51336         [TEST_DIRNAME] (main): New unit tests.
51337
51338         * lib/memrchr.c: New file from GNU libc.
51339         Undef __memrchr, too.
51340         [!weak_alias]: Define __memrchr to memrchr.
51341         Guard weak_alias use with `#ifdef weak_alias'.
51342
51343 2000-10-21  Jim Meyering  <meyering@lucent.com>
51344
51345         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
51346         (dir_name): Use dir_name_r.
51347         * lib/dirname.h (dir_name_r): Declare it.
51348
51349 2000-10-17  Jim Meyering  <meyering@lucent.com>
51350
51351         * lib/quote.h (PARAMS): Define and use.
51352         Reported by Akim Demaille.
51353
51354         * lib/getopt.c: Update from libc.
51355
51356 2000-10-16  Jim Meyering  <meyering@lucent.com>
51357
51358         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
51359         setlocale.
51360         From Jan Fedak.
51361
51362 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
51363
51364         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
51365
51366 2000-09-25  Jim Meyering  <meyering@lucent.com>
51367
51368         * lib/md5.h (rol): Define (from GnuPG).
51369
51370         * lib/sha.c: Give credit (GnuPG) where due.
51371         (M): Use rol rather than open-coding it.
51372         Add a FIXME comment.
51373
51374 2000-09-21  Jim Meyering  <meyering@lucent.com>
51375
51376         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
51377         Reported by Michael Stone.
51378
51379 2000-09-20  Jim Meyering  <meyering@lucent.com>
51380
51381         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
51382         (noinst_HEADERS): Add sha.h.
51383         Based on code from Scott G. Miller and from GnuPG.
51384
51385 2000-09-18  Jim Meyering  <meyering@lucent.com>
51386
51387         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
51388         LIBS. Otherwise, everyone ends up linking with -lelf for some
51389         configurations.
51390         Reported by Mike Stone.
51391
51392 2000-09-15  Jim Meyering  <meyering@lucent.com>
51393
51394         * lib/regex.c: Update from libc.
51395
51396 2000-09-10  Jim Meyering  <meyering@lucent.com>
51397
51398         * lib/getopt.c (_getopt_internal): Update from glibc.
51399
51400 2000-09-09  Jim Meyering  <meyering@lucent.com>
51401
51402         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
51403         think it should be used as a general replacement for isascii.
51404         * lib/fnmatch.c: Likewise.
51405         * lib/mbswidth.c: Likewise
51406         * lib/regex.c: Likewise.
51407
51408         Don't use atoi.
51409         * lib/userspec.c: Include sys/param.h and limits.h.
51410         Include xstrtol.h.
51411         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51412         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
51413         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
51414         UID, GID.  Check range.
51415
51416 2000-09-06  Jim Meyering  <meyering@lucent.com>
51417
51418         * lib/getopt.c (_getopt_internal): Update from glibc.
51419
51420 2000-08-30  Jim Meyering  <meyering@lucent.com>
51421
51422         * lib/strftime.c: Merge in changes from GNU libc.
51423
51424 2000-08-26  Jim Meyering  <meyering@lucent.com>
51425
51426         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
51427         * m4/fpending.m4: New file.
51428
51429 2000-08-26  Jim Meyering  <meyering@lucent.com>
51430
51431         * lib/closeout.c: Include "__fpending.h".
51432         (close_stdout_status): Return right away if there's nothing to flush.
51433
51434         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
51435         * lib/__fpending.c: New file.
51436         * lib/__fpending.h: New file.
51437
51438 2000-08-20  Jim Meyering  <meyering@lucent.com>
51439
51440         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
51441         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
51442         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
51443
51444 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
51445
51446         Improve fileutils installation on systems where running
51447         programs (like install) can't be unlinked.
51448         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
51449         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
51450
51451 2000-08-07  Paul Eggert  <eggert@twinsun.com>
51452
51453         Standardize on "memory exhausted" instead of "Memory exhausted"
51454         or "virtual memory exhausted".
51455         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
51456         "virtual memory exhausted".
51457         * lib/same.c (same_name): Invoke xalloc_die instead of printing
51458         our own message.
51459         * lib/userspec.c (parse_user_spec): Likewise.
51460         * lib/bumpalloc.h: comment fix
51461         * lib/same.c, userspec.c: Include xalloc.h.
51462
51463         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
51464         not char *const and pointing to a constant array.
51465         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
51466         (xrealloc): Comment fix.
51467
51468         * lib/userspec.c (parse_user_spec):
51469         Don't translate a message until just before returning,
51470         to avoid unnecessary translation.
51471
51472 2000-08-07  Jim Meyering  <meyering@lucent.com>
51473
51474         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
51475         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
51476         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
51477         getgroups.c, gethostname.c, getopt.h, group-member.c,
51478         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
51479         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
51480         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
51481         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
51482         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
51483         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
51484         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
51485         yesno.c: Back out Copyright date changes for each file with no change
51486         this year.  This eases coordination with other programs using the same
51487         source code modules.  From Paul Eggert.
51488
51489 2000-08-06  Paul Eggert  <eggert@twinsun.com>
51490
51491         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
51492         not char, for compatibility with glibc 2.1.3 strftime.c.
51493
51494 2000-08-03  Greg McGary  <greg@mcgary.org>
51495
51496         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
51497         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
51498         (EXTEND_BUFFER): Use them.
51499
51500 2000-08-01  Jim Meyering  <meyering@lucent.com>
51501
51502         * lib/dirname.c (ISSLASH): Define.
51503         (BACKSLASH_IS_PATH_SEPARATOR): Define.
51504         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
51505         both `\' and `/' may be use as path separators.
51506         Based on a patch from Prashant TR.
51507
51508 2000-07-31  Paul Eggert  <eggert@twinsun.com>
51509
51510         * lib/quotearg.c (quotearg_n_options): Don't make the initial
51511         slot vector a constant, since it might get modified.
51512
51513 2000-07-31  Jim Meyering  <meyering@lucent.com>
51514
51515         * lib/xmalloc.c: Use `virtual memory exhausted', not
51516         `Memory exhausted'.
51517         * lib/obstack.c (print_and_abort): Likewise.
51518
51519 2000-07-30  Paul Eggert  <eggert@twinsun.com>
51520
51521         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
51522         buffer, so that the caller can always quote one small
51523         component of a "memory exhausted" message in slot 0.
51524         From a suggestion by Jim Meyering.
51525
51526 2000-07-30  Jim Meyering  <meyering@lucent.com>
51527
51528         * lib/makepath.c (make_path): Quote the other instance, too.
51529
51530         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
51531         (STATIC_BUF_SIZE): Define.
51532         (quotearg_n_options): Use only statically allocated storage when
51533         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
51534         than STATIC_BUF_SIZE.
51535
51536 2000-07-29  Jim Meyering  <meyering@lucent.com>
51537
51538         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
51539         * lib/dirname.c (dir_name): Likewise.
51540
51541         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
51542         `/'.
51543
51544         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
51545         (dir_name): Assert that there are no trailing slashes.
51546
51547 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
51548
51549         * lib/mbswidth.h (mbswidth): Add a flags argument.
51550         (mbswidth): New declaration.
51551         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
51552         * lib/mbswidth.c (mbswidth): Add a flags argument.
51553         (mbsnwidth): New function.
51554
51555 2000-07-24  Jim Meyering  <meyering@lucent.com>
51556
51557         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
51558
51559 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51560
51561         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
51562
51563 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51564
51565         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
51566         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
51567         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
51568         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
51569         invoke multibyte primitives.
51570
51571 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51572
51573         * lib/quotearg.c:
51574         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
51575         so that mbstate_t is always defined.
51576
51577         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
51578         be 1 in at least one GCC installation, and this configuration
51579         error is likely to be common.  Ignoring MB_LEN_MAX hurts
51580         performance on hosts that have mbrtowc but have only unibyte
51581         locales, but I assume these hosts are rare.
51582
51583 2000-07-23  Paul Eggert  <eggert@twinsun.com>
51584
51585         * lib/mbswidth.c (_XOPEN_SOURCE):
51586         Don't define; this causes problems on Solaris 7.
51587         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
51588
51589 2000-07-23  Jim Meyering  <meyering@lucent.com>
51590
51591         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
51592         too: getgrgid, getpwuid, getuid.
51593
51594 2000-07-23  Jim Meyering  <meyering@lucent.com>
51595
51596         * lib/basename.c (base_name): Add an assertion.
51597
51598 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
51599
51600         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
51601         shadow its mbsinit function.
51602
51603 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
51604
51605         * lib/mbswidth.h: New file.
51606         * lib/mbswidth.c: New file.
51607         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
51608         (noinst_HEADERS): Add mbswidth.h.
51609
51610 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
51611
51612         * lib/config.charset: Add support for FreeBSD. Improve support for
51613         HP-UX and IRIX 6.
51614
51615 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
51616
51617         * m4/mbswidth.m4: New file.
51618         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
51619
51620 2000-07-15  Jim Meyering  <meyering@lucent.com>
51621
51622         * lib/makepath.c: Include quote.h.
51623         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
51624         corresponding argument in a `quote (...)' call.
51625         Give better diagnostics.
51626
51627         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
51628         (noinst_HEADERS): Add quote.h.
51629
51630         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
51631         from tar's src/misc.c.
51632         * lib/quote.h: New file.  Prototypes for same.
51633
51634 2000-07-14  Paul Eggert  <eggert@twinsun.com>
51635
51636         From a suggestion by Bruno Haible.
51637         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
51638         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
51639         to decide whether to define the BeOS workaround macro;
51640         this adjusts to the change to AC_MBSTATE_T.
51641
51642 2000-07-14  Jim Meyering  <meyering@lucent.com>
51643
51644         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
51645         jm_AC_TYPE_UINTMAX_T.
51646
51647 2000-07-13  Paul Eggert  <eggert@twinsun.com>
51648
51649         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
51650
51651         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
51652         quotearg_buffer_restyled): Add support for
51653         clocale_quoting_style.  Undo previous change to
51654         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
51655         and "{RIGHT QUOTATION MARK}" msgids.
51656
51657 2000-07-10  Paul Eggert  <eggert@twinsun.com>
51658
51659         From a suggestion by Bruno Haible.
51660         * m4/mbstate_t.m4 (AC_MBSTATE_T):
51661         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
51662         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
51663         and mbstate_t, to a single-part test that simply defines mbstate_t.
51664         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
51665         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
51666
51667 2000-07-10  Jim Meyering  <meyering@lucent.com>
51668
51669         * m4/strerror_r.m4: Mirror the correction made in autoconf.
51670
51671         * m4/gnu-source.m4: Output to confdefs.h directly.
51672         Suggestion from Akim Demaille.
51673
51674 2000-07-09  Paul Eggert  <eggert@twinsun.com>
51675
51676         The old behavior of quoting `like this' doesn't look good with
51677         newer, ISO-style fonts.  See:
51678         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
51679
51680         Instead, quote "like this" by default.  Let the translator
51681         tailor the locale-specific quoting behavior by providing
51682         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
51683
51684         * lib/quotearg.c (N_): New macro.
51685         (gettext_default): New function.
51686         (quotearg_buffer_restyled): Use
51687         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
51688         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
51689
51690 2000-07-09  Jim Meyering  <meyering@lucent.com>
51691
51692         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
51693         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
51694
51695         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
51696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
51697
51698 2000-07-09  Jim Meyering  <meyering@lucent.com>
51699
51700         * lib/Most files: Update copyright dates to include 2000.
51701
51702 2000-07-08  Jim Meyering  <meyering@lucent.com>
51703
51704         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
51705         if not defined.
51706         (xgethostname): Remove now-unnecessary #ifdef.
51707         Move declaration of `err' into loop where it's used.
51708
51709 2000-07-05  Paul Eggert  <eggert@twinsun.com>
51710         and Bruno Haible  <haible@clisp.cons.org>
51711
51712         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
51713         only if the test for an object-type mbstate_t fails.  This
51714         prevents us from mistakenly reporting that mbstate_t is a
51715         system object type after we "#define mbstate_t int" to work
51716         around its lack.
51717
51718 2000-07-05  Paul Eggert  <eggert@twinsun.com>
51719         and Bruno Haible  <haible@clisp.cons.org>
51720
51721         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
51722
51723 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51724
51725         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
51726         to strerror_r.
51727         Include <ctype.h> for use of isalpha.
51728
51729 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51730
51731         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
51732         by allocating a larger buffer. Test the gethostname return value for
51733         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
51734         returns an error and ENAMETOOLONG isn't defined.
51735
51736 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
51737
51738         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
51739         dimension.
51740
51741 2000-07-04  Jim Meyering  <meyering@lucent.com>
51742
51743         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
51744         of the deprecated AC_CHECKING.
51745
51746 2000-07-04  Jim Meyering  <meyering@lucent.com>
51747
51748         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
51749         Reported by Bruno Haible.
51750
51751 2000-07-04  Jim Meyering  <meyering@lucent.com>
51752
51753         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
51754         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
51755         lacks mbrtowc.
51756
51757 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51758
51759         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
51760         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
51761
51762 2000-07-03  Paul Eggert  <eggert@twinsun.com>
51763         and Bruno Haible  <haible@clisp.cons.org>
51764
51765         * lib/quotearg.c (mbrtowc):
51766         Assign to *pwc, and return 1 only if result is nonzero.
51767         (iswprint): Use ISPRINT when substituting our own mbrtowc.
51768
51769 2000-07-03  Jim Meyering  <meyering@lucent.com>
51770
51771         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
51772
51773 2000-07-03  Jim Meyering  <meyering@lucent.com>
51774
51775         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
51776         This is necessary to get a definition of e.g., UTMP_FILE on
51777         HP-UX 10.20.
51778         From Bob Proulx.
51779
51780 2000-07-02  Jim Meyering  <meyering@lucent.com>
51781
51782         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
51783
51784         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
51785         AC_LIBOBJ(function_name).
51786         * m4/chown.m4: Likewise.
51787         * m4/fnmatch.m4: Likewise.
51788         * m4/ftruncate.m4: Likewise.
51789         * m4/getgroups.m4: Likewise.
51790         * m4/getline.m4: Likewise.
51791         * m4/group-member.m4: Likewise.
51792         * m4/jm-macros.m4: Likewise.
51793         * m4/lstat.m4: Likewise.
51794         * m4/malloc.m4: Likewise.
51795         * m4/memcmp.m4: Likewise.
51796         * m4/nanosleep.m4: Likewise.
51797         * m4/putenv.m4: Likewise.
51798         * m4/realloc.m4: Likewise.
51799         * m4/regex.m4: Likewise.
51800         * m4/stat.m4: Likewise.
51801         * m4/strftime.m4: Likewise.
51802
51803 2000-07-02  Jim Meyering  <meyering@lucent.com>
51804
51805         * lib/quotearg.c (mbstate_t): Don't define here.
51806
51807 2000-07-02  Jim Meyering  <meyering@lucent.com>
51808
51809         * lib/nanosleep.c (SIGCONT): Define if not already defined.
51810
51811 2000-07-01  Jim Meyering  <meyering@lucent.com>
51812
51813         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
51814
51815 2000-07-01  Jim Meyering  <meyering@lucent.com>
51816
51817         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
51818         problem.
51819
51820 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51821
51822         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
51823         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
51824
51825 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
51826
51827         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
51828         per change in ../m4/ls-mntd-fs.m4.
51829         (read_filesystem_list): Ignore symbolic links.
51830
51831 2000-06-29  Jim Meyering  <meyering@lucent.com>
51832
51833         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
51834         for declaration of strcmp.
51835
51836         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
51837
51838         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
51839         Avoid warning by casting result to `char *' to remove `const'.
51840
51841 2000-06-28  Jim Meyering  <meyering@lucent.com>
51842
51843         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
51844         included by quotearg.c, for which we perform this test.  From
51845         Bruno Haible.
51846
51847 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51848
51849         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
51850         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
51851         <utmpx.h> exists, put readutmp.o into LIBOBJS.
51852
51853 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
51854
51855         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
51856
51857 2000-06-26  Paul Eggert  <eggert@twinsun.com>
51858
51859         savedir now sets errno on failure and invokes xmalloc to get memory.
51860         Fix a couple of other minor bugs while we're at it.
51861
51862         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
51863         (NAMLEN): Remove macro.
51864         (malloc, realloc): Remove decls.
51865         (stpcpy): Likewise.
51866         ("xalloc.h"): Include.
51867         (NAME_SIZE_DEFAULT): New macro.
51868         (savedir): Use xmalloc / xrealloc to allocate memory.
51869         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
51870         Skip "" directory entries.
51871         Use strlen to calculate directory entry length, since the old method
51872         is rarely used these days and isn't worth supporting.
51873         Don't use a pointer after freeing it.
51874         Check for integer overflow when calculating allocation size.
51875         Use memcpy to copy entries, instead of stpcpy.
51876         Set errno properly when returning NULL.
51877         Check for readdir error.
51878
51879 2000-06-26  Jim Meyering  <meyering@lucent.com>
51880
51881         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
51882
51883 2000-06-25  Jim Meyering  <meyering@lucent.com>
51884
51885         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
51886         Linux header bug when _XOPEN_SOURCE is defined to 500.
51887
51888 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51889
51890         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
51891         deficiency.
51892
51893 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
51894
51895         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
51896         Include xalloc.h.
51897         Don't include <stdlib.h>.  Don't declare malloc, realloc.
51898
51899 2000-06-24  Jim Meyering  <meyering@lucent.com>
51900
51901         * m4/strerror_r.m4: Revive this file -- to try out an experimental
51902         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
51903         for which strerror does return char*, but which lacks a conveniently
51904         accessible declaration of the function.  If the compile-test says
51905         strerror_r doesn't work, then resort to a `run'-test that works on
51906         BeOS and segfaults on DEC Unix.
51907
51908 2000-06-24  Jim Meyering  <meyering@lucent.com>
51909
51910         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
51911
51912 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51913
51914         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
51915         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
51916
51917 2000-06-23  Paul Eggert  <eggert@twinsun.com>
51918
51919         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
51920         (mbrtowc, mbstate_t): Define substitutes if
51921         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
51922         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
51923         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
51924
51925 2000-06-23  Jim Meyering  <meyering@lucent.com>
51926
51927         * m4/afs.m4: Add missing AC_MSG_RESULT.
51928         Reported by Bruno Haible.
51929
51930         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
51931         Suggestion from Bruno Haible.
51932
51933 2000-06-23  Jim Meyering  <meyering@lucent.com>
51934
51935         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
51936
51937 2000-06-21  Jim Meyering  <meyering@lucent.com>
51938
51939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
51940
51941 2000-06-21  Jim Meyering  <meyering@lucent.com>
51942
51943         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
51944         (noinst_HEADERS): Add getstr.h.
51945
51946         * lib/getline.c (getstr): Move into a separate file.
51947         * lib/getstr.c (getstr): New file, extracted from getline.c, with
51948         the following changes: new parameter, delim2; both delim[12]
51949         parameters have type `int', not `char'.  The latter would lose
51950         with 8-bit delimiters.
51951         * lib/getstr.h: New file.
51952
51953 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51954
51955         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
51956         than 1024, return a memory chunk of least possible size, instead
51957         of size PATH_MAX + 2. In the loop, increment the size proportionally.
51958         Use free/xmalloc instead of xrealloc to avoid copying for very long
51959         paths.
51960
51961 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51962
51963         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
51964         the empty string.
51965
51966 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
51967
51968         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
51969         address, not strdup.  Include <stdlib.h> and don't declare free().
51970
51971 2000-06-19  Jim Meyering  <meyering@lucent.com>
51972
51973         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
51974
51975 2000-06-18  Jim Meyering  <meyering@lucent.com>
51976
51977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
51978
51979         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
51980         `checking whether...' message to be consistent with that of the
51981         lstat test.
51982
51983 2000-06-18  Jim Meyering  <meyering@lucent.com>
51984
51985         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
51986         Besides, these days every porting target provides a mkdir function.
51987
51988         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
51989         needed. (this snippet comes from src/system.h).
51990
51991 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
51992
51993         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
51994
51995 2000-06-15  Paul Eggert  <eggert@twinsun.com>
51996
51997         * lib/human.c (adjust_value): New function.
51998         (human_readable_inexact): Apply rounding style even when
51999         printing approximate values.
52000
52001 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52002
52003         * lib/human.c (human_readable_inexact): Allow an input block
52004         size that is not a multiple of the output block size, and vice versa.
52005         Reported by Piergiorgio Sartor.
52006
52007 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52008
52009         * lib/getdate.y (get_date): Apply relative times after time
52010         zone indicator, not before.  Reported by Todd A. Jacobs.
52011
52012 2000-06-13  Jim Meyering  <meyering@lucent.com>
52013
52014         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
52015
52016         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
52017
52018 2000-06-12  Paul Eggert  <eggert@twinsun.com>
52019
52020         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
52021
52022 2000-06-12  Jim Meyering  <meyering@lucent.com>
52023
52024         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
52025         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
52026         optional argument.
52027         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
52028         the optional argument, `lib'.
52029
52030 2000-06-08  Jim Meyering  <meyering@lucent.com>
52031
52032         * m4/largefile.m4: Remove file (now that it's part of autoconf).
52033
52034 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52035
52036         Rewrite largefile configuration so that we don't need to run
52037         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
52038         AC_CANONICAL_HOST in configure.in -- jmm]
52039
52040         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
52041         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
52042         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
52043         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
52044         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
52045         All uses changed.
52046         Instead of inspecting the output of getconf, try to compile the
52047         test program without and with the macro definition.
52048         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
52049         for getconf.  Instead, check for the needed flags by compiling
52050         test programs.
52051
52052 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52053
52054         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
52055
52056 2000-06-04  Jim Meyering  <meyering@lucent.com>
52057
52058         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
52059         SunOS 4.1.4 for which gid_t is an unsigned type.
52060
52061 2000-06-03  Jim Meyering  <meyering@lucent.com>
52062
52063         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
52064         now that autoconf requires that.
52065
52066         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
52067         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
52068         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
52069
52070 2000-06-03  Jim Meyering  <meyering@lucent.com>
52071
52072         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
52073
52074 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52075
52076         * m4/glibc21.m4: New file.
52077         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
52078
52079 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52080
52081         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
52082         newer, don't install charset.alias.
52083         * lib/config.charset: Change the Linux/glibc rules so they become empty
52084         on glibc-2.1 or newer.
52085
52086 2000-06-02  Jim Meyering  <meyering@lucent.com>
52087
52088         * lib/mountlist.c: Back out last change.  Instead, do this...
52089         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
52090         me_dummy member using the same `ignore'-testing code.
52091         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
52092         fs_type strings.
52093         From Mark D. Roth.
52094
52095 2000-05-29  Jim Meyering  <meyering@lucent.com>
52096
52097         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
52098         mounts with the `ignore' attribute.  Based on a patch from
52099         Mark D. Roth.
52100
52101 2000-05-28  Jim Meyering  <meyering@lucent.com>
52102
52103         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
52104         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52105         * m4/stat.m4: Likewise.
52106         * m4/lstat.m4: Likewise.
52107         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
52108
52109         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
52110         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
52111
52112 2000-05-26  Jim Meyering  <meyering@lucent.com>
52113
52114         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
52115
52116 2000-05-24  Jim Meyering  <meyering@lucent.com>
52117
52118         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
52119         autoconf requires that.
52120         * m4/lib-check.m4: Likewise.
52121         * m4/jm-macros.m4: Likewise.
52122         * m4/strftime.m4: Likewise.
52123
52124         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
52125         AC_CHECK_DECLS, now that autoconf requires that.
52126
52127 2000-05-22  Jim Meyering  <meyering@lucent.com>
52128
52129         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52130         * m4/lstat.m4: Likewise.
52131
52132 2000-05-22  Jim Meyering  <meyering@lucent.com>
52133
52134         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
52135
52136 2000-05-20  Jim Meyering  <meyering@lucent.com>
52137
52138         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
52139         (jm_PREREQ): Use it.
52140
52141 2000-05-18  Jim Meyering  <meyering@lucent.com>
52142
52143         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
52144         back, too, since it may have been modified by allocate_entry.
52145         (hash_delete): Rewrite to use neither the assignment operator
52146         nor the comma operator in an if-expression.
52147
52148 2000-05-15  Paul Eggert  <eggert@twinsun.com>
52149
52150         * lib/closeout.c:
52151         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
52152         Remove; no longer needed.
52153         "quotearg.h": Add include.
52154         (file_name): Do not bother to explicitly initialize to NULL; it's less
52155         efficient on some hosts.
52156         (close_stdout_status): Remove test as to whether stdout was already
52157         closed; it breaks for the case "echo x | sort >&-".
52158         Quote file name colons.
52159         Do not assume that _("write error") lacks format strings.
52160
52161 2000-05-15  Jim Meyering  <meyering@lucent.com>
52162
52163         * lib/version-etc.c (version_etc_copyright): Update the copyright
52164         string used in all --version output.
52165
52166 2000-05-14  Jim Meyering  <meyering@lucent.com>
52167
52168         * lib/closeout.c (close_stdout_set_file_name): New function.
52169         (close_stdout_status): Use new file-scoped global.
52170         Return right away if fstat says the stdout file descriptor is invalid.
52171         * lib/closeout.h (close_stdout_set_file_name): Declare.
52172
52173 2000-05-10  Jim Meyering  <meyering@lucent.com>
52174
52175         * lib/closeout.c [default_exit_status]: New file-scoped variable.
52176         (close_stdout_set_status): New function.
52177         * lib/closeout.h (close_stdout_set_status): Declare.
52178
52179 2000-05-09  Jim Meyering  <meyering@lucent.com>
52180
52181         * m4/gettext.m4: Rename this...
52182         * m4/libintl.m4: ...to this.
52183
52184 2000-05-08  Jim Meyering  <meyering@lucent.com>
52185
52186         * lib/long-options.c: Don't include closeout.h.
52187         (parse_long_options): Don't call close_stdout for --version.
52188
52189 2000-05-06  Paul Eggert  <eggert@twinsun.com>
52190
52191         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
52192         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
52193         2.1.3 bug.  This avoids a clash when files like regex.c define
52194         _GNU_SOURCE.
52195
52196 2000-05-06  Jim Meyering  <meyering@lucent.com>
52197
52198         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
52199         (AC_REPLACE_FUNCS): Add strnlen.
52200
52201         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
52202         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
52203
52204         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
52205         AC_SEARCH_LIBS call for nanosleep.
52206         (LIB_NANOSLEEP): Set and AC_SUBST.
52207
52208 2000-05-06  Jim Meyering  <meyering@lucent.com>
52209
52210         * lib/strnlen.c: Undefine __strnlen and strnlen.
52211         [!weak_alias]: Define __strnlen to strnlen.
52212
52213         * lib/atexit.c: New file, from libiberty.
52214
52215 2000-05-06  Jim Meyering  <meyering@lucent.com>
52216
52217         * lib/closeout.c (close_stdout_status): Also check for errors on the
52218         stderr stream.
52219
52220 2000-05-05  Jim Meyering  <meyering@lucent.com>
52221
52222         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
52223         AC_SEARCH_LIBS call for clock_gettime.
52224         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
52225
52226         * m4/search-libs.m4: Update from autoconf.
52227
52228         su doesn't work on Solaris 2.6.
52229         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
52230         <shadow.h>.  Reported by Dragos Harabor.
52231
52232 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
52233
52234         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
52235         memcpy instead of xmalloc, xrealloc, path_concat.
52236         (locale_charset): Treat empty environment variables as absent.
52237         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
52238
52239 2000-05-04  Jim Meyering  <meyering@lucent.com>
52240
52241         * lib/getopt.c: Update from glibc.
52242         * lib/obstack.c: Likewise.
52243         * lib/obstack.h: Likewise.
52244         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
52245         file
52246
52247         * lib/regex.h: Likewise.
52248         * lib/strndup.c: Likewise.
52249         * lib/strnlen.c: New file, from glibc.
52250
52251 2000-05-03  Jim Meyering  <meyering@lucent.com>
52252
52253         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
52254
52255 2000-05-02  Paul Eggert  <eggert@twinsun.com>
52256
52257         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
52258         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
52259         compile-time test, rather than inspecting host and OS, to
52260         decide whether to define _LARGEFILE_SOURCE.
52261
52262 2000-05-01  Jim Meyering  <meyering@lucent.com>
52263
52264         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
52265
52266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
52267         Based on a patch from Bruno Haible.
52268
52269 2000-05-01  Jim Meyering  <meyering@lucent.com>
52270
52271         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
52272
52273 2000-04-29  Jim Meyering  <meyering@lucent.com>
52274
52275         * lib/path-concat.c: Declare strdup only if it's not defined.
52276         * lib/canon-host.c: Likewise.
52277
52278 2000-04-28  Jim Meyering  <meyering@lucent.com>
52279
52280         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
52281         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
52282         is included first, then limits.h is included by locale.h by libintl.h.
52283         From John David Anglin.
52284
52285 2000-04-25  Jim Meyering  <meyering@lucent.com>
52286
52287         * lib/makepath.c (S_IRWXUGO): Define.
52288         (make_path): Always perform explicit chmod if MODE specifies any
52289         of the `special' permission bits.  Prompted by a bug report against
52290         install from Mate Wierdl and Joost van Baal.
52291
52292 2000-04-18  Jim Meyering  <meyering@lucent.com>
52293
52294         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
52295         (jm_PREREQ): Use it.
52296
52297 2000-04-18  Jim Meyering  <meyering@lucent.com>
52298
52299         * lib/README: New file.
52300
52301         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
52302         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
52303
52304 2000-04-17  Jim Meyering  <meyering@lucent.com>
52305
52306         Get it right :-)
52307         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
52308         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
52309         Suggestion from Akim Demaille.
52310
52311 2000-04-17  Jim Meyering  <meyering@lucent.com>
52312
52313         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
52314         the definition of it to rpl_strftime also defined-away the system's
52315         declaration.
52316
52317 2000-04-15  Jim Meyering  <meyering@lucent.com>
52318
52319         Use `C' to denote so-called `contiguous' files, the same way
52320         that tar does.
52321         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
52322         (ftypelet): Use S_ISCTG.
52323         From Michael Deutschmann.
52324
52325 2000-04-14  Jim Meyering  <meyering@lucent.com>
52326
52327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
52328         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
52329         clobbered.
52330
52331 2000-04-14  Jim Meyering  <meyering@lucent.com>
52332
52333         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
52334
52335 2000-04-13  Jim Meyering  <meyering@lucent.com>
52336
52337         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
52338         AH_VERBATIM to insert required #ifndef into config.h.in.
52339         Suggestion from Akim Demaille.
52340
52341 2000-04-12  Jim Meyering  <meyering@lucent.com>
52342
52343         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
52344         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
52345         Christian Krackowizer.
52346
52347         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
52348         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
52349         (AC_SYS_LARGEFILE): Require.
52350         (AM_C_PROTOTYPES): Require.
52351
52352 2000-04-08  Jim Meyering  <meyering@lucent.com>
52353
52354         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
52355         names don't conflict.  Reported by Eli Zaretskii.
52356
52357 2000-04-07  Jim Meyering  <meyering@lucent.com>
52358
52359         * lib/putenv.c: Move inclusion of errno.h so it follows that of
52360         sys/types.h, to work around system header problems on AIX 3.2.5.
52361         From Bruno Haible.
52362
52363 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
52364
52365         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
52366         bug.  Deal with the different error behavior of Irix iconv.
52367
52368 2000-04-05  Paul Eggert  <eggert@twinsun.com>
52369
52370         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
52371         IRIX if the installer said otherwise.
52372
52373 2000-04-05  Jim Meyering  <meyering@lucent.com>
52374
52375         Portability tweaks required for ultrix4.3.
52376         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
52377         (jm_CHECK_DECLS): Add getutent to the list of functions.
52378         (_jm_DECL_HEADERS): Add utmpx.h.
52379         From John David Anglin.
52380
52381         * m4/strftime.m4: Back out the 2000-04-02 change.
52382         Instead of that change, simply undefine putenv in the test program.
52383
52384 2000-04-05  Jim Meyering  <meyering@lucent.com>
52385
52386         Portability tweaks required for ultrix4.3.
52387         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
52388         getutent.
52389         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
52390         * lib/canon-host.c: Declare strdup.
52391         * lib/path-concat.c: Likewise.
52392         From John David Anglin.
52393
52394 2000-04-04  Jim Meyering  <meyering@lucent.com>
52395
52396         Be more DOS 8.3-friendly.
52397         * lib/ref-add.sin: Renamed from ref-add.sed.in.
52398         * lib/ref-del.sin: Renamed from ref-del.sed.in.
52399         * lib/Makefile.am: Reflect renaming.
52400         Reported by Eli Zaretskii.
52401
52402         Use a temporary file name that won't clash with `charset.alias'
52403         in the DOS 8.3 name space.
52404         * lib/Makefile.am (charset_tmp): Define.
52405         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
52406         (uninstall-local): Likewise.
52407         Reported by Eli Zaretskii.
52408
52409 2000-04-03  Jim Meyering  <meyering@lucent.com>
52410
52411         * m4/gettext.m4: Fix typo in comment.
52412
52413         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
52414         textutils/configure.in).  Suggestion from Paul Eggert.
52415         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
52416
52417 2000-04-02  Paul Eggert  <eggert@twinsun.com>
52418
52419         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
52420         variable in the shell rather than using putenv, which isn't
52421         portable.  This avoids the configure-time inter-test dependency
52422         on the potentially-renamed putenv function.
52423
52424 2000-03-30  Paul Eggert  <eggert@twinsun.com>
52425
52426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
52427         before checking struct stat.st_blksize, so that
52428         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
52429
52430 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52431
52432         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
52433         since strftime.c uses HAVE_STRFTIME to decide whether to use
52434         the underlying strftime.
52435
52436 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52437
52438         * lib/time/strftime.c (my_strftime): Make sure we call the system
52439         strftime, not ourselves, when invoking the underlying strftime.
52440
52441 2000-03-24  Jim Meyering  <meyering@lucent.com>
52442
52443         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
52444         (charset_alias): Define.
52445         (install-exec-local): Factor out common code.
52446         (uninstall-local): Split lines longer than 80.
52447         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
52448         (SUFFIXES): Define.
52449         (.sed.in.sed): New rule.  Don't redirect directly to $@.
52450         (CLEANFILES): Add ref-add.sed and ref-del.sed.
52451
52452 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
52453
52454         * lib/config.charset: Output a line containing "Packages using this
52455         file".
52456         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
52457         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
52458         ref-del.sed): New rules.
52459
52460 2000-03-17  Jim Meyering  <meyering@lucent.com>
52461
52462         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
52463         Otherwise, include <strings.h>
52464
52465 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
52466
52467         * lib/unicodeio.c (utf8_wctomb): New function.
52468         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
52469         format instead of in UCS-4 with platform dependent endianness.
52470
52471 2000-03-10  Jim Meyering  <meyering@lucent.com>
52472
52473         * m4/lib-check.m4: Look for getspnam in -lgen, too.
52474         From Marco Franzen.
52475
52476 2000-03-07  Paul Eggert  <eggert@twinsun.com>
52477
52478         * lib/savedir.c (savedir): Work even if directory size is
52479         negative; this can happen with some screwy NFS configurations.
52480
52481 2000-03-06  Jim Meyering  <meyering@lucent.com>
52482
52483         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
52484         if it's NULL (because we ran out of memory).  From Bruno Haible.
52485
52486 2000-03-05  Jim Meyering  <meyering@lucent.com>
52487
52488         * lib/localcharset.c ("path-concat.h"): Include.
52489         (get_charset_aliases): Use path_concat instead of ANSI string
52490         concatenation.
52491
52492         * lib/unicodeio.h (PARAMS): Define.
52493         Use it to guard prototype.
52494
52495 2000-03-04  Jim Meyering  <meyering@lucent.com>
52496
52497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
52498         for lib/localcharset.c.
52499
52500 2000-03-04  Jim Meyering  <meyering@lucent.com>
52501
52502         * lib/Makefile.am (install-exec-local): Create $(libdir) before
52503         installing into it.
52504         (uninstall-local): Uncomment this rule so `make distcheck' works
52505         once again.
52506
52507         * lib/unicodeio.c (<errno.h>): Include it.
52508         (errno): Declare if not defined.
52509
52510         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
52511
52512         * lib/config.charset: New version, incorporating remarks from a linux
52513         i18n mailing list.  From Bruno Haible.
52514
52515 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
52516
52517         * m4/codeset.m4: New file.
52518         * m4/iconv.m4: New file.
52519         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
52520
52521 2000-03-03  Jim Meyering  <meyering@lucent.com>
52522
52523         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
52524
52525 2000-03-02  Jim Meyering  <meyering@lucent.com>
52526
52527         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
52528         the messages come out on separate lines.
52529
52530         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
52531         rather than jm_CHECK_DECLARATIONS.
52532         * m4/decl.m4: Remove now-unused file.
52533
52534         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
52535         geteuid.
52536
52537 2000-03-02  Jim Meyering  <meyering@lucent.com>
52538
52539         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
52540
52541 2000-03-01  Jim Meyering  <meyering@lucent.com>
52542
52543         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
52544         * lib/unicodeio.c: Likewise.
52545
52546 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
52547
52548         * lib/config.charset: New file.
52549         * lib/localcharset.c: New file.
52550         * lib/unicodeio.h, lib/unicodeio.c: New files.
52551         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
52552         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
52553         (noinst_HEADERS): Add unicodeio.h.
52554         (all-local, install-exec-local, charset.alias): New targets.
52555
52556 2000-02-28  Paul Eggert  <eggert@twinsun.com>
52557
52558         * lib/quotearg.c (ALERT_CHAR): New macro.
52559         (quotearg_buffer_restyled): Use it.
52560
52561 2000-02-27  Jim Meyering  <meyering@lucent.com>
52562
52563         * m4/check-decl.m4: Add getenv to the list.
52564
52565 2000-02-27  Jim Meyering  <meyering@lucent.com>
52566
52567         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
52568         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
52569
52570         * lib/backupfile.c: Guard inclusion of stdlib.h with
52571         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
52572         Declare malloc if needed.
52573
52574         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
52575         `#ifndef HAVE_DECL..'
52576         now that autoconf always defines the HAVE_DECL_ symbols.
52577         * lib/human.c: Likewise.
52578         * lib/same.c: Likewise.
52579         * lib/strtoumax.c: Likewise.
52580
52581         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
52582         declaration check was not run.
52583         * lib/hash.c: Likewise.
52584         * lib/human.c: Likewise.
52585         * lib/same.c: Likewise.
52586         * lib/strtoumax.c: Likewise.
52587
52588         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
52589         `.', then first look up the entire `.'-containing string as a login
52590         name.
52591
52592 2000-02-23  Jim Meyering  <meyering@lucent.com>
52593
52594         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
52595         in place of my hack.
52596
52597 2000-02-18  Paul Eggert  <eggert@twinsun.com>
52598
52599         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
52600         (textint): New typedef.
52601         (parser_control): Member year changed from int to textint.
52602         All uses changed.
52603         (YYSTYPE): Removed; replaced by %union with int and textint members.
52604         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
52605         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
52606         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
52607         (tSNUMBER, tUNUMBER): Now of type <textintval>.
52608         (date, number, to_year): Use width of number in digits, not its value,
52609         to determine whether it's a 2-digit year, or a 2-digit time.
52610         (yylex): Store number of digits of numeric tokens.
52611         Reported by John Kendall.
52612
52613         (parser_control): Changed from struct parser_control to typedef (for
52614         consistency).  All uses changed.
52615
52616         (tID): Removed; not used.
52617         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
52618
52619 2000-02-14  Paul Eggert  <eggert@twinsun.com>
52620
52621         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
52622         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
52623
52624 2000-02-12  Jim Meyering  <meyering@lucent.com>
52625
52626         * lib/userspec.c (ISDIGIT): Define it.
52627         (isdigit): Remove definition.
52628         (is_number): Use ISDIGIT, not isdigit.
52629         <libintl.h>: Include.
52630         (_ and N_): Define.
52631         (parse_user_spec): Mark translatable strings.
52632
52633 2000-02-10  Jim Meyering  <meyering@lucent.com>
52634
52635         With these changes, nanosleep.[ch] are finally enough like the other
52636         lib/* replacement files to compile on a few more losing systems.
52637
52638         * lib/nanosleep.h: Don't include config.h.
52639         Remove prototype from declaration of nanosleep.
52640         (PARAMS): Remove now-unneeded definition.
52641         * lib/nanosleep.c: #undef nanosleep.
52642         (rpl_nanosleep): Rename from nanosleep.
52643
52644 2000-02-10  Jim Meyering  <meyering@lucent.com>
52645
52646         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
52647         gnu_nanosleep to rpl_nanosleep.
52648
52649 2000-02-09  Jim Meyering  <meyering@lucent.com>
52650
52651         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
52652         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
52653
52654 2000-02-08  Akim Demaille  <akim@epita.fr>
52655
52656         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
52657         `[' and `]' and remove uses of `changequote'.
52658         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
52659         (AC_SYS_LARGEFILE): Likewise.
52660         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52661         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
52662         of changequote.
52663         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
52664         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
52665         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
52666         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
52667
52668 2000-02-05  Jim Meyering  <meyering@lucent.com>
52669
52670         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
52671         Remove explicit use of AC_HEADER_TIME.  It is required by
52672         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
52673         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
52674         in autoconf whereby the expansion of the latter ended up preceding
52675         the expansion of its prerequisite, AC_HEADER_TIME.
52676         Reported by Volker Borchert.
52677
52678 2000-02-03  Jim Meyering  <meyering@lucent.com>
52679
52680         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
52681
52682 2000-02-03  Jim Meyering  <meyering@lucent.com>
52683
52684         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
52685         rather than with `#if HAVE_UTMPNAME'.
52686
52687 2000-02-02  Jim Meyering  <meyering@lucent.com>
52688
52689         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
52690         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
52691         Reported by Eli Zaretskii.
52692
52693 2000-02-01  Jim Meyering  <meyering@lucent.com>
52694
52695         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
52696
52697 2000-01-31  Jim Meyering  <meyering@lucent.com>
52698
52699         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
52700         functions.  Add the time.h and sys/time.h headers along with the
52701         AC_REQUIRE'ment of AC_HEADER_TIME.
52702
52703 2000-01-31  Jim Meyering  <meyering@lucent.com>
52704
52705         * lib/nanosleep.h (nanosleep): Guard declaration with
52706         `#if ! HAVE_DECL_NANOSLEEP'.
52707         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
52708         the declaration in that vendor's sys/timers.h.
52709         Reported by Christian Krackowizer.
52710
52711         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
52712         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
52713         (ISPRINT): Likewise.
52714         Reported by Tom Tromey.
52715
52716 2000-01-30  Jim Meyering  <meyering@lucent.com>
52717
52718         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
52719
52720         * m4/prereq.m4 (utmp_includes): Define.
52721         Check for ut_user and ut_name members in both struct utmpx
52722         and struct utmp.
52723
52724 2000-01-30  Jim Meyering  <meyering@lucent.com>
52725
52726         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
52727         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
52728         header files where only utmpx.ut_user is declared.
52729
52730         * lib/readutmp.h (UT_USER): Define.
52731
52732 2000-01-29  Jim Meyering  <meyering@lucent.com>
52733
52734         * m4/lib-check.m4: New file containing library-related checks from
52735         fileutils and sh-utils (textutils had none).
52736
52737 2000-01-28  Jim Meyering  <meyering@lucent.com>
52738
52739         * m4/perl.m4: Change format of warning message to look more like that
52740         from the missing script.  Suggestion from François Pinard.
52741
52742 2000-01-25  Jim Meyering  <meyering@lucent.com>
52743
52744         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
52745         well as time.h in the compile check.
52746         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
52747         Fix typo in cross-compiling case: s/yes/no/.
52748
52749 2000-01-23  Jim Meyering  <meyering@lucent.com>
52750
52751         * m4/jm-macros.m4: Move df-related tests here from
52752         fileutils/configure.in
52753
52754         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
52755         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
52756
52757         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
52758         s/space/ac_fsusage_space/.
52759         (jm_FILE_SYSTEM_USAGE): Take two parameters.
52760
52761         * m4/ftruncate.m4: New file (derived from part of
52762         fileutils/configure.in).
52763         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
52764         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
52765
52766         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
52767         AC_SUBST these here, rather than just in sh-util/configure.in, so
52768         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
52769         all the same.
52770         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
52771         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
52772         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
52773         (AC_SUBST(POW_LIBM)): Likewise.
52774         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
52775
52776 2000-01-23  Jim Meyering  <meyering@lucent.com>
52777
52778         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
52779         obstack.c.
52780
52781 2000-01-22  Jim Meyering  <meyering@lucent.com>
52782
52783         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
52784
52785         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
52786
52787         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
52788         configure.in
52789         (AC_CHECK_HEADERS): Likewise for sh-utils.
52790         (AC_CHECK_HEADERS): Likewise for textutils.
52791         Merge the three lists of headers.
52792
52793         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
52794         from fileutils' configure.in.
52795
52796         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
52797         code. Moved tests into their own function (_jm_DECL_HEADERS) in
52798         check-decl.m4.
52799
52800         * m4/check-decl.m4: Use #if rather than #ifdef.
52801         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
52802         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
52803         (_jm_DECL_HEADERS): Define new function.
52804         (jm_CHECK_DECLARATIONS): Require it.
52805
52806 2000-01-22  Jim Meyering  <meyering@lucent.com>
52807
52808         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
52809         [! HAVE_DECL_STRTOULL]: Declare strtoull.
52810         Required for some AIX systems.  Reported by Christian Krackowizer.
52811         [TESTING] (main): New function.
52812
52813         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
52814         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
52815         letters.
52816
52817         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
52818         iswprint.
52819
52820         * lib/strverscmp.c (ISDIGIT): Define.
52821         (strverscmp): Use ISDIGIT, not isdigit.
52822
52823 2000-01-19  Jim Meyering  <meyering@lucent.com>
52824
52825         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
52826         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
52827         defines `struct timespec' in <sys/time.h>
52828
52829         * m4/c-bs-a.m4: Remove uses of changequote altogether.
52830         Thanks to Akim for explaining.
52831
52832 2000-01-17  Paul Eggert  <eggert@twinsun.com>
52833
52834         * lib/nanosleep.c (nanosleep):
52835         Don't use SA_INTERRUPT to decide whether to call sigaction, as
52836         POSIX.1 doesn't require SA_INTERRUPT and some systems
52837         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
52838         it's been part of POSIX.1 since day 1 (in 1988).
52839
52840 2000-01-17  Jim Meyering  <meyering@lucent.com>
52841
52842         * lib/interlock: Remove unused file.  Reported by François Pinard.
52843
52844 2000-01-16  Paul Eggert  <eggert@twinsun.com>
52845
52846         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
52847         alert, backslash, formfeed, and vertical tab unnecessarily in
52848         shell quoting style.
52849
52850 2000-01-16  Jim Meyering  <meyering@lucent.com>
52851
52852         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
52853         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
52854         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
52855         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
52856
52857 2000-01-16  Jim Meyering  <meyering@lucent.com>
52858
52859         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
52860         because the latter didn't work.
52861
52862 2000-01-15  Jim Meyering  <meyering@lucent.com>
52863
52864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
52865         (AC_REPLACE_FUNCS): Add memcpy and memset.
52866         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
52867         Add strpbrk.
52868         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
52869
52870 2000-01-12  Jim Meyering  <meyering@lucent.com>
52871
52872         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
52873         (jm_PREREQ): Use it.
52874         (jm_PREREQ_READUTMP): New macro.
52875         (jm_PREREQ): Use it.
52876
52877 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52878
52879         Quote multibyte characters correctly.
52880         * m4/c-bs-a.m4: New file.
52881         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
52882         (jm_PREREQ): Use it.
52883
52884 2000-01-11  Paul Eggert  <eggert@twinsun.com>
52885
52886         * m4/uintmax_t.m4: Port to autoconf 2.13.
52887
52888 2000-01-08  Jim Meyering  <meyering@ascend.com>
52889
52890         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
52891         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
52892
52893 2000-01-04  Jim Meyering  <meyering@ascend.com>
52894
52895         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
52896         jm_STRUCT_DIRENT_D_TYPE.
52897         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
52898         jm_STRUCT_DIRENT_D_INO.
52899         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
52900         jm_STRUCT_UTIMBUF.
52901         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
52902         renamings.
52903         * m4/utime.m4: Likewise.
52904
52905         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
52906         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
52907
52908 2000-01-03  Paul Eggert  <eggert@twinsun.com>
52909
52910         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
52911         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
52912
52913 2000-01-02  Jim Meyering  <meyering@ascend.com>
52914
52915         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
52916         remember if this is necessary.
52917
52918 1999-12-26  Jim Meyering  <meyering@ascend.com>
52919
52920         * m4/jm-macros.m4: Use it here.
52921         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
52922
52923 1999-12-23  Jim Meyering  <meyering@ascend.com>
52924
52925         * m4/jm-macros.m4: Check for clock_gettime (moved from
52926         fileutils/configure.in)
52927         Check for gettimeofday.
52928
52929 1999-12-20  Jim Meyering  <meyering@ascend.com>
52930
52931         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
52932         autoconf-2.14a-1999-12-20.
52933
52934 1999-12-19  Jim Meyering  <meyering@ascend.com>
52935
52936         * m4/lstat-slash.m4: New file.
52937         * m4/jm-macros.m4: Use the new macro:
52938         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52939
52940 1999-12-07  Jim Meyering  <meyering@ascend.com>
52941
52942         * m4/perl.m4: Require that File::Compare be available, too.
52943         Too many systems seem to lack it.
52944
52945         * m4/strftime.m4: Add checks for most of the cpp macros tested in
52946         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
52947
52948 1999-11-18  Paul Eggert  <eggert@twinsun.com>
52949
52950         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
52951         problem with the QNX 4.25 shell, which doesn't propagate exit
52952         status of failed commands inside shell assignments.
52953
52954 1999-11-17  Jim Meyering  <meyering@ascend.com>
52955
52956         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
52957
52958 1999-11-07  Jim Meyering  <meyering@ascend.com>
52959
52960         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
52961
52962 1999-11-06  Jim Meyering  <meyering@ascend.com>
52963
52964         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
52965         * m4/jm-macros.m4 (jm_MACROS): Use it here.
52966
52967 1999-11-05  Jim Meyering  <meyering@ascend.com>
52968
52969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
52970         configure.in of textutils, fileutils, and sh-utils into this one
52971         (shared between those packages) file.
52972         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
52973         AC_STRUCT_ST_BLKSIZE.
52974
52975 1999-11-03  Jim Meyering  <meyering@ascend.com>
52976
52977         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
52978         of AC_CHECK_TYPE checks includes unistd.h.
52979         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
52980         Suggestion from Akim Demaille.
52981
52982 1999-10-30  Jim Meyering  <meyering@ascend.com>
52983
52984         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
52985         m4-quoted string.
52986         * m4/ls-mntd-fs.m4: Likewise.
52987         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
52988         * m4/jm-winsz1.m4: Likewise.
52989
52990         * m4/const.m4: Remove file, since the fix made it into the experimental
52991         version of autoconf.
52992         * m4/mktime.m4: Likewise.
52993
52994         * m4/check-type.m4: Remove file, now that the latest version of
52995         AC_CHECK_TYPE takes a third arg to specify additional #includes.
52996
52997         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
52998         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
52999         AC_CHECK_TYPE.
53000
53001 1999-10-04  Jim Meyering  <meyering@ascend.com>
53002
53003         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
53004
53005 1999-09-22  Paul Eggert  <eggert@twinsun.com>
53006
53007         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
53008         2.95.1 bug with HP-UX 10.20.
53009
53010 1999-09-17  Jim Meyering  <meyering@ascend.com>
53011
53012         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
53013         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
53014         due to missing strdup (against sh-utils-2.0).
53015
53016 1999-08-29  Jim Meyering  <meyering@ascend.com>
53017
53018         * m4/jm-macros.m4: Require jm_BISON.
53019         * m4/bison.m4: New file.
53020
53021 1999-08-17  Paul Eggert  <eggert@twinsun.com>
53022
53023         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
53024         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
53025
53026 1999-08-05  Jim Meyering  <meyering@ascend.com>
53027
53028         * m4/getline.m4: Rename test file from conftestdata to conftest.data
53029         to avoid conflicts with `conftest' on 8+3 filesystems.
53030         Suggestion from Eli Zaretskii.
53031
53032 1999-08-04  Jim Meyering  <meyering@ascend.com>
53033
53034         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
53035         fileutils and sh-utils (textutils's getline test was inadequate).
53036         (AM_FUNC_GETLINE): Run this test.
53037         (AC_CHECK_FUNCS): Check for getdelim.
53038         Reported by Bob Proulx.
53039
53040 1999-08-02  Jim Meyering  <meyering@ascend.com>
53041
53042         * m4/jm-macros.m4: Add a comment.
53043
53044 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53045
53046         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
53047         <inttypes.h> defines strtoumax as a macro (and not as a
53048         function).
53049
53050 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53051
53052         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
53053         that we can shift, multiply and divide unsigned long long
53054         values; Ultrix cc can't do it.
53055
53056 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53057
53058         * m4/mktime.m4: New file, which is a preview of what should appear
53059         in the next public autoconf release.
53060
53061 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53062
53063         * m4/lfs.m4: Remove this file.
53064         * m4/largefile.m4: New file.  It contains the old contents of
53065         lfs.m4, except that all names with prefix AC_LFS have been
53066         changed to use the prefix AC_SYS_LARGEFILE instead, to be
53067         compatible with future autoconf versions.  Also, some minor m4
53068         quoting problems have been fixed.
53069
53070 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53071
53072         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
53073         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
53074         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
53075         and simplify the shell code.
53076
53077 1999-08-01  Jim Meyering  <meyering@ascend.com>
53078
53079         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
53080         m4.
53081
53082 1999-07-20  Jim Meyering  <meyering@ascend.com>
53083
53084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
53085
53086 1999-07-15  Jim Meyering  <meyering@ascend.com>
53087
53088         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
53089
53090 1999-05-22  Jim Meyering  <meyering@ascend.com>
53091
53092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
53093
53094 1999-05-20  Jim Meyering  <meyering@ascend.com>
53095
53096         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
53097         Add a colon after each `then' in case $4 is empty.
53098
53099 1999-05-16  Jim Meyering  <meyering@ascend.com>
53100
53101         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
53102
53103 1999-05-10  Jim Meyering  <meyering@ascend.com>
53104
53105         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
53106
53107         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
53108         AC_FUNC_MKTIME.
53109
53110 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
53111
53112         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
53113
53114 1999-05-04  Paul Eggert  <eggert@twinsun.com>
53115
53116         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
53117         not CPPFLAGS, so that linking works correctly in IRIX.
53118
53119 1999-04-30  Paul Eggert  <eggert@twinsun.com>
53120
53121         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
53122
53123 1999-04-20  Paul Eggert  <eggert@twinsun.com>
53124
53125         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
53126         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
53127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
53128         jm_AC_TYPE_UNSIGNED_LONG_LONG.
53129         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
53130
53131         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
53132
53133 1999-04-20  Jim Meyering  <meyering@ascend.com>
53134
53135         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
53136         AC_REPLACE xstroull if necessary.  From Paul Eggert.
53137         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
53138
53139 1999-04-18  Jim Meyering  <meyering@ascend.com>
53140
53141         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
53142         * m4/jm-macros.m4: Use it.
53143
53144 1999-04-06  Jim Meyering  <meyering@ascend.com>
53145
53146         * m4/strftime.m4: Remove test for %f.
53147
53148 1999-03-29  Jim Meyering  <meyering@ascend.com>
53149
53150         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
53151         superset of the AC_TYPE_* checks in the textutils, fileutils,
53152         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
53153         AC_TYPE_PID_T.
53154
53155 1999-03-28  Jim Meyering  <meyering@ascend.com>
53156
53157         * m4/jm-macros.m4: Define GNU_PACKAGE here.
53158         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
53159         replaced e.g., in the *.sh files of the sh-utils.
53160
53161 1999-03-20  Jim Meyering  <meyering@ascend.com>
53162
53163         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
53164         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
53165         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
53166
53167 1999-03-19  Jim Meyering  <meyering@ascend.com>
53168
53169         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
53170
53171 1999-03-12  Jim Meyering  <meyering@ascend.com>
53172
53173         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
53174
53175 1999-03-07  Jim Meyering  <meyering@ascend.com>
53176
53177         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
53178         declared.
53179
53180 1999-02-17  Jim Meyering  <meyering@ascend.com>
53181
53182         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
53183         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
53184
53185 1999-02-07  Jim Meyering  <meyering@ascend.com>
53186
53187         * m4/group-member.m4: New file -- extracted from sh-utils'
53188         configure.in.
53189
53190         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
53191         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
53192
53193 1999-02-06  Jim Meyering  <meyering@ascend.com>
53194
53195         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
53196         * m4/fnmatch.m4: Likewise.
53197         * m4/getgroups.m4: Likewise.
53198         * m4/lstat.m4: Likewise.
53199         * m4/malloc.m4: Likewise.
53200         * m4/putenv.m4: Likewise.
53201         * m4/realloc.m4: Likewise.
53202         * m4/regex.m4: Likewise.
53203         * m4/stat.m4: Likewise.
53204         * m4/strftime.m4: Likewise.
53205         Suggestion from Alain Magloire.
53206
53207         * m4/chown.m4: Use `.$ac_objext', not `.o'.
53208         * m4/fnmatch.m4: Likewise.
53209         * m4/getgroups.m4: Likewise.
53210         * m4/getline.m4: Likewise.
53211         * m4/lstat.m4: Likewise.
53212         * m4/malloc.m4: Likewise.
53213         * m4/memcmp.m4: Likewise.
53214         * m4/putenv.m4: Likewise.
53215         * m4/realloc.m4: Likewise.
53216         * m4/regex.m4: Likewise.
53217         * m4/stat.m4: Likewise.
53218         * m4/strftime.m4: Likewise.
53219         Suggestion from Alain Magloire.
53220
53221         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
53222         an argument.
53223
53224         * m4/regex.m4: Add a run-time Test for proper operation of
53225         re_compile_pattern.
53226
53227 1999-01-31  Jim Meyering  <meyering@ascend.com>
53228
53229         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
53230
53231 1999-01-30  Jim Meyering  <meyering@ascend.com>
53232
53233         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
53234
53235         * m4/jm-mktime.m4: Make this a wrapper around the official
53236         AM_FUNC_MKTIME rather than my private copy, now that the official one
53237         is up to date.
53238         * m4/mktime.m4: Remove file.
53239
53240         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
53241         * m4/uptime.m4: Likewise.
53242         * m4/uintmax_t.m4: Likewise.
53243
53244 1999-01-28  Jim Meyering  <meyering@ascend.com>
53245
53246         * m4/jm-macros.m4: Use jm_AFS.
53247         * m4/afs.m4: New file (from fileutils' configure.in).
53248
53249         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
53250         * m4/chown.m4: Likewise.
53251         * m4/d-ino.m4: Likewise.
53252         * m4/d-type.m4: Likewise.
53253         * m4/fnmatch.m4: Likewise.
53254         * m4/getgroups.m4: Likewise.
53255         * m4/gettext.m4: Likewise.
53256         * m4/jm-mktime.m4: Likewise.
53257         * m4/jm-winsz2.m4: Likewise.
53258         * m4/lcmessage.m4: Likewise.
53259         * m4/ls-mntd-fs.m4: Likewise.
53260         * m4/malloc.m4: Likewise.
53261         * m4/memcmp.m4: Likewise.
53262         * m4/putenv.m4: Likewise.
53263         * m4/realloc.m4: Likewise.
53264         * m4/st_mtim.m4: Likewise.
53265         * m4/strftime.m4: Likewise.
53266
53267 1999-01-16  Jim Meyering  <meyering@ascend.com>
53268
53269         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
53270         (ARGMATCH_DIE_DECL): Define.
53271
53272 1999-01-12  Jim Meyering  <meyering@ascend.com>
53273
53274         * m4/Makefile.am.in: Rewrite to avoid using fmt.
53275         Reported by Lars Hecking.
53276
53277 1999-01-10  Jim Meyering  <meyering@ascend.com>
53278
53279         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
53280         gross kludge.
53281         * m4/inttypes_h.m4: Likewise.
53282         * m4/lstat.m4: Likewise.
53283         * m4/malloc.m4: Likewise.
53284         * m4/readdir.m4: Likewise.
53285         * m4/realloc.m4: Likewise.
53286         * m4/st_dm_mode.m4: Likewise.
53287         * m4/stat.m4: Likewise.
53288         * m4/utimbuf.m4: Likewise.
53289         * m4/utimes.m4: Likewise.
53290
53291         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
53292         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
53293         comments in config.h.in are meaningful.
53294
53295         * m4/jm-macros.m4: Require autoconf-2.13 here.
53296
53297         * m4/regex.m4: By default, don't use the included regex.c on systems
53298         with glibc 2.  Suggestion from Uli Drepper.
53299
53300 1999-01-02  Jim Meyering  <meyering@ascend.com>
53301
53302         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
53303
53304 1998-12-18  Jim Meyering  <meyering@ascend.com>
53305
53306         * m4/Makefile.am.in (Makefile.am): Simplify rule.
53307         Based on a suggestion from Lars Hecking.
53308
53309 1998-11-16  Paul Eggert  <eggert@twinsun.com>
53310
53311         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
53312
53313 1998-11-16  Jim Meyering  <meyering@ascend.com>
53314
53315         * m4/lfs.m4: Double-quote the `uname...` expression.
53316
53317 1998-11-14  Jim Meyering  <meyering@ascend.com>
53318
53319         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
53320         * m4/stat.m4: Likewise.
53321
53322 1998-11-03  Jim Meyering  <meyering@ascend.com>
53323
53324         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
53325         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
53326
53327 1998-10-18  Jim Meyering  <meyering@ascend.com>
53328
53329         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
53330
53331 1998-10-17  Jim Meyering  <meyering@ascend.com>
53332
53333         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
53334         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
53335         calls for those previously hard-coded headers.  Instead, take a new
53336         parameter.
53337         (jm_CHECK_DECLARATIONS): Reflect interface change.
53338         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
53339         (jm_CHECK_DECL_LOCALTIME_R): New macro.
53340
53341         * m4/mktime.m4: Test for spring-forward gap before long-running test.
53342
53343 1998-10-14  Jim Meyering  <meyering@ascend.com>
53344
53345         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
53346         instead of "TZ=America/Vancouver".  From Paul Eggert.
53347
53348 1998-10-11  Jim Meyering  <meyering@ascend.com>
53349
53350         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
53351         This adds a test for a recently added compatibility fix for mktime.c.
53352         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
53353
53354 1998-09-27  Jim Meyering  <meyering@ascend.com>
53355
53356         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
53357
53358         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
53359         ../configure.in, including a change from Gordon Matzigkeit to allow
53360         cross-compiling for the Hurd.
53361
53362         * m4/glibc.m4: New file/macro to test for the GNU C Library
53363         versions 1 and 2.  From Gordon Matzigkeit.
53364         Indent.
53365
53366 1998-09-21  Jim Meyering  <meyering@ascend.com>
53367
53368         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
53369
53370 1998-08-18  Paul Eggert  <eggert@twinsun.com>
53371
53372         Port nanosecond-resolution times to UnixWare 2.1.2 and
53373         pedantic Solaris 2.6.
53374
53375         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
53376         AC_STRUCT_ST_MTIM.
53377         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
53378         Generate name of ns member, instead of just 1 or undef.
53379         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
53380
53381 1998-08-15  Jim Meyering  <meyering@ascend.com>
53382
53383         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
53384         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
53385         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
53386         instead of jm_TYPE_SSIZE_T.
53387
53388 1998-08-12  Jim Meyering  <meyering@ascend.com>
53389
53390         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
53391
53392 1998-08-02  Jim Meyering  <meyering@ascend.com>
53393
53394         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
53395         in acconfig.h manually.
53396
53397 1998-07-31  Paul Eggert  <eggert@twinsun.com>
53398
53399         * m4/st_mtim.m4: New file.
53400
53401 1998-07-28  Jim Meyering  <meyering@ascend.com>
53402
53403         * m4/utimes.m4: Undef stat.
53404
53405 1998-07-25  Jim Meyering  <meyering@ascend.com>
53406
53407         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
53408         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
53409
53410 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
53411
53412         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
53413         uid and gid actually remain unchanged.
53414
53415 1998-07-07  Jim Meyering  <meyering@ascend.com>
53416
53417         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
53418
53419 1998-07-04  Jim Meyering  <meyering@ascend.com>
53420
53421         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
53422         to prove that this macro can be used in packages without regex.c.
53423
53424 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
53425
53426         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
53427         is to be used.
53428
53429 1998-07-03  Jim Meyering  <meyering@ascend.com>
53430
53431         * m4/gettext.m4: Add -lintl if it's found to be necessary.
53432
53433         * m4/gettext.m4: New file -- from gettext-0.10.35.
53434         * m4/lcmessage.m4: Likewise.
53435         * m4/progtest.m4: Likewise.
53436
53437         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
53438         * m4/jm-macros.m4: Require the new macro.
53439
53440 1998-06-29  Jim Meyering  <meyering@ascend.com>
53441
53442         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
53443         for the definition of NGROUPS (used in a system header included
53444         by sys/mount.h).
53445
53446 1998-06-28  Jim Meyering  <meyering@ascend.com>
53447
53448         * m4/ls-mntd-fs.m4: New file.
53449         * m4/fstypename.m4: New file.
53450
53451         * m4/jm-macros.m4: Require the new macro.
53452         * m4/jm-glibc-io.m4: New file.
53453
53454 1998-05-19  Jim Meyering  <meyering@ascend.com>
53455
53456         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
53457         * m4/lchown.m4: New file.
53458
53459         * m4/Makefile.am.in: New file.
53460         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
53461
53462 1998-05-14  Jim Meyering  <meyering@ascend.com>
53463
53464         * m4/Makefile.am (EXTRA_DIST): Add them.
53465         * m4/jm-macros.m4: New file.
53466         * m4/utimbuf.m4: New file.
53467
53468 1998-05-12  Jim Meyering  <meyering@ascend.com>
53469
53470         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
53471
53472 1998-05-11  Jim Meyering  <meyering@ascend.com>
53473
53474         * m4/isc-posix.m4: New file.
53475
53476 1998-05-10  Jim Meyering  <meyering@ascend.com>
53477
53478         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
53479
53480 1998-05-09  Jim Meyering  <meyering@ascend.com>
53481
53482         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
53483         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
53484         with automake.
53485
53486         * m4/ssize_t.m4: New file.
53487         * m4/mktime.m4: Remove file -- the new automake has this now.
53488
53489 1998-04-26  Jim Meyering  <meyering@ascend.com>
53490
53491         * m4/assert.m4: New file.
53492         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
53493
53494 1998-04-05  Jim Meyering  <meyering@ascend.com>
53495
53496         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
53497         (jm_PREREQ): Use it here.
53498
53499 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
53500
53501         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
53502         in acconfig.h.
53503
53504 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
53505
53506         * m4/prereq.m4: New file.
53507         * m4/error.m4: New file.
53508         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
53509
53510 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
53511
53512         * m4/getline.m4: Don't set am_cv_func_working_getline before the
53513         cache-check for the same variable -- that defeated the purpose of
53514         the test; the test program was never run.  This was a problem only
53515         on systems with losing getline functions -- HP-UX 10.20 is one.
53516         Reported by Bjorn Helgaas.
53517
53518 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
53519
53520         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
53521
53522 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
53523
53524         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
53525
53526         * m4/const.m4: New file.  Use an initializer in this declaration
53527         typedef int charset[2]; const charset x;
53528         Reported by Bob Glickstein.
53529
53530 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
53531
53532         * m4/chown.m4: Fix reversed types on -1 args to chown.
53533         From Kaveh Ghazi.
53534
53535 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
53536
53537         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
53538         Add lseek and memchr.
53539
53540         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
53541         T.E.Dickey <dickey@clark.net> said that some older preprocessors
53542         have a 20-character limit on names.
53543
53544 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
53545
53546         * m4/inttypes_h.m4: New file.
53547         * m4/uintmax_t.m4: New file.
53548         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
53549
53550
53551         -----
53552
53553         Local Variables:
53554         coding: utf-8
53555         End:
53556
53557         Copyright (C) 1997-2009 Free Software Foundation, Inc.
53558
53559         Copying and distribution of this file, with or without
53560         modification, are permitted provided the copyright notice
53561         and this notice are preserved.